]> git.saurik.com Git - cycript.git/blob - configure
Further improvements to the autoconf scripting.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (C) 2009-2012 Jay Freeman (saurik)
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 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='Cycript'
594 PACKAGE_TARNAME='cycript'
595 PACKAGE_VERSION='0.9'
596 PACKAGE_STRING='Cycript 0.9'
597 PACKAGE_BUGREPORT='saurik@saurik.com'
598 PACKAGE_URL='http://www.cycript.org/'
599
600 ac_unique_file="Console.cpp"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 CY_ATTACH_GROUP
642 CY_MACH
643 ac_ct__NM
644 _NM
645 ac_ct__LIPO
646 _LIPO
647 ac_ct__OTOOL
648 _OTOOL
649 SO
650 LTFLAGS
651 LTLIBICONV
652 LIBICONV
653 GNUSTEP_CONFIG
654 CY_OBJECTIVEC
655 LIBFFI_LIBS
656 LIBFFI_CFLAGS
657 LTLIBAPR
658 CY_EXECUTE
659 WEBKIT_LIBS
660 WEBKIT_CFLAGS
661 am__fastdepOBJCXX_FALSE
662 am__fastdepOBJCXX_TRUE
663 OBJCXXDEPMODE
664 ac_ct_OBJCXX
665 OBJCXXFLAGS
666 OBJCXX
667 CXXCPP
668 am__fastdepCXX_FALSE
669 am__fastdepCXX_TRUE
670 CXXDEPMODE
671 ac_ct_CXX
672 CXXFLAGS
673 CXX
674 GNUTAR
675 GPERF
676 FLEX
677 BISON
678 TIME
679 GIT
680 _BASH
681 GMAKE
682 ifGNUmake
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CPP
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 ac_ct_AR
695 AR
696 DLLTOOL
697 OBJDUMP
698 LN_S
699 NM
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 EGREP
705 GREP
706 SED
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 LIBTOOL
733 AM_BACKSLASH
734 AM_DEFAULT_VERBOSITY
735 AM_DEFAULT_V
736 AM_V
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_silent_rules
802 enable_static
803 enable_shared
804 with_pic
805 enable_fast_install
806 enable_dependency_tracking
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 with_frameworks
811 enable_javascript
812 with_apr
813 enable_rpath
814 with_libiconv_prefix
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 PKG_CONFIG
826 PKG_CONFIG_PATH
827 PKG_CONFIG_LIBDIR
828 BISON
829 FLEX
830 GPERF
831 GNUTAR
832 CXX
833 CXXFLAGS
834 CCC
835 CXXCPP
836 OBJCXX
837 OBJCXXFLAGS
838 WEBKIT_CFLAGS
839 WEBKIT_LIBS
840 LIBFFI_CFLAGS
841 LIBFFI_LIBS
842 GNUSTEP_CONFIG'
843
844
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
866
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of Cycript 0.9:";;
1454 esac
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --enable-static[=PKGS] build static libraries [default=no]
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-javascript[=ENGINE]
1473 use a JavaScript runtime (currently the only
1474 available option for ENGINE is JavaScriptCore)
1475 [default=yes]
1476 --disable-rpath do not hardcode runtime library paths
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot=DIR Search for dependent libraries within DIR
1485 (or the compiler's sysroot if not specified).
1486 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1487 path for frameworks with -F
1488 --with-apr=PATH prefix for installed APR or the full path to
1489 apr-config
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1492 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 PKG_CONFIG path to pkg-config utility
1504 PKG_CONFIG_PATH
1505 directories to add to pkg-config's search path
1506 PKG_CONFIG_LIBDIR
1507 path overriding pkg-config's built-in search path
1508 BISON GNU Project parser generator (yacc replacement)
1509 FLEX the fast lexical analyser generator
1510 GPERF perfect hash function generator
1511 GNUTAR a very sticky lump of files
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1514 CXXCPP C++ preprocessor
1515 OBJCXX Objective C++ compiler command
1516 OBJCXXFLAGS Objective C++ compiler flags
1517 WEBKIT_CFLAGS
1518 C compiler flags for WEBKIT, overriding pkg-config
1519 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1520 LIBFFI_CFLAGS
1521 C compiler flags for LIBFFI, overriding pkg-config
1522 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1523 GNUSTEP_CONFIG
1524 prints information about the current gnustep installation
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to <saurik@saurik.com>.
1530 Cycript home page: <http://www.cycript.org/>.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 Cycript configure 0.9
1594 generated by GNU Autoconf 2.69
1595
1596 Copyright (C) 2012 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599
1600 Copyright (C) 2009-2012 Jay Freeman (saurik)
1601 _ACEOF
1602 exit
1603 fi
1604
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1608
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_c_try_link LINENO
1648 # -----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_link ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext conftest$ac_exeext
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest$ac_exeext && {
1673 test "$cross_compiling" = yes ||
1674 test -x conftest$ac_exeext
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685 # interfere with the next link command; also delete a directory that is
1686 # left behind by Apple's compiler. We do this before executing the actions.
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_link
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_cpp LINENO
1725 # ----------------------
1726 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_cpp ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } > conftest.i && {
1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_cpp
1760
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764 # that executables *can* be run.
1765 ac_fn_c_try_run ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>&5
1776 ac_status=$?
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779 { { case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_try") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; }; }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: program exited with status $ac_status" >&5
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=$ac_status
1796 fi
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_run
1802
1803 # ac_fn_c_check_func LINENO FUNC VAR
1804 # ----------------------------------
1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1806 ac_fn_c_check_func ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1818 #define $2 innocuous_$2
1819
1820 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $2 (); below.
1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823 <limits.h> exists even on freestanding compilers. */
1824
1825 #ifdef __STDC__
1826 # include <limits.h>
1827 #else
1828 # include <assert.h>
1829 #endif
1830
1831 #undef $2
1832
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1836 #ifdef __cplusplus
1837 extern "C"
1838 #endif
1839 char $2 ();
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1844 choke me
1845 #endif
1846
1847 int
1848 main ()
1849 {
1850 return $2 ();
1851 ;
1852 return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"; then :
1856 eval "$3=yes"
1857 else
1858 eval "$3=no"
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext \
1861 conftest$ac_exeext conftest.$ac_ext
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_func
1869
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902 fi
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906 } # ac_fn_cxx_try_compile
1907
1908 # ac_fn_cxx_try_cpp LINENO
1909 # ------------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_cpp ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } > conftest.i && {
1930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 }; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939 fi
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_cxx_try_cpp
1944
1945 # ac_fn_cxx_try_link LINENO
1946 # -------------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_link ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_cxx_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 test -x conftest$ac_exeext
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989 } # ac_fn_cxx_try_link
1990
1991 # ac_fn_objcxx_try_compile LINENO
1992 # -------------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_objcxx_try_compile ()
1995 {
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_objcxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023 fi
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2026
2027 } # ac_fn_objcxx_try_compile
2028
2029 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2030 # ---------------------------------------------------------
2031 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2032 # the include files in INCLUDES and setting the cache variable VAR
2033 # accordingly.
2034 ac_fn_cxx_check_header_mongrel ()
2035 {
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if eval \${$3+:} false; then :
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 else
2047 # Is the header compilable?
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2049 $as_echo_n "checking $2 usability... " >&6; }
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $4
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_cxx_try_compile "$LINENO"; then :
2056 ac_header_compiler=yes
2057 else
2058 ac_header_compiler=no
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2062 $as_echo "$ac_header_compiler" >&6; }
2063
2064 # Is the header present?
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2066 $as_echo_n "checking $2 presence... " >&6; }
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_cxx_try_cpp "$LINENO"; then :
2072 ac_header_preproc=yes
2073 else
2074 ac_header_preproc=no
2075 fi
2076 rm -f conftest.err conftest.i conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2078 $as_echo "$ac_header_preproc" >&6; }
2079
2080 # So? What about this header?
2081 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2082 yes:no: )
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2084 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 ;;
2088 no:yes:* )
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2090 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2092 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2094 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2096 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2098 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2099 ( $as_echo "## -------------------------------- ##
2100 ## Report this to saurik@saurik.com ##
2101 ## -------------------------------- ##"
2102 ) | sed "s/^/$as_me: WARNING: /" >&2
2103 ;;
2104 esac
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 eval "$3=\$ac_header_compiler"
2111 fi
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 fi
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117
2118 } # ac_fn_cxx_check_header_mongrel
2119
2120 # ac_fn_objcxx_try_link LINENO
2121 # ----------------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_objcxx_try_link ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 rm -f conftest.$ac_objext conftest$ac_exeext
2127 if { { ac_try="$ac_link"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2140 fi
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && {
2143 test -z "$ac_objcxx_werror_flag" ||
2144 test ! -s conftest.err
2145 } && test -s conftest$ac_exeext && {
2146 test "$cross_compiling" = yes ||
2147 test -x conftest$ac_exeext
2148 }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155 fi
2156 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2157 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2158 # interfere with the next link command; also delete a directory that is
2159 # left behind by Apple's compiler. We do this before executing the actions.
2160 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2163
2164 } # ac_fn_objcxx_try_link
2165 cat >config.log <<_ACEOF
2166 This file contains any messages produced by compilers while
2167 running configure, to aid debugging if configure makes a mistake.
2168
2169 It was created by Cycript $as_me 0.9, which was
2170 generated by GNU Autoconf 2.69. Invocation command line was
2171
2172 $ $0 $@
2173
2174 _ACEOF
2175 exec 5>>config.log
2176 {
2177 cat <<_ASUNAME
2178 ## --------- ##
2179 ## Platform. ##
2180 ## --------- ##
2181
2182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2187
2188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2190
2191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2194 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2198
2199 _ASUNAME
2200
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 $as_echo "PATH: $as_dir"
2207 done
2208 IFS=$as_save_IFS
2209
2210 } >&5
2211
2212 cat >&5 <<_ACEOF
2213
2214
2215 ## ----------- ##
2216 ## Core tests. ##
2217 ## ----------- ##
2218
2219 _ACEOF
2220
2221
2222 # Keep a trace of the command line.
2223 # Strip out --no-create and --no-recursion so they do not pile up.
2224 # Strip out --silent because we don't want to record it for future runs.
2225 # Also quote any args containing shell meta-characters.
2226 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_configure_args=
2228 ac_configure_args0=
2229 ac_configure_args1=
2230 ac_must_keep_next=false
2231 for ac_pass in 1 2
2232 do
2233 for ac_arg
2234 do
2235 case $ac_arg in
2236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2238 | -silent | --silent | --silen | --sile | --sil)
2239 continue ;;
2240 *\'*)
2241 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 esac
2243 case $ac_pass in
2244 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2245 2)
2246 as_fn_append ac_configure_args1 " '$ac_arg'"
2247 if test $ac_must_keep_next = true; then
2248 ac_must_keep_next=false # Got value, back to normal.
2249 else
2250 case $ac_arg in
2251 *=* | --config-cache | -C | -disable-* | --disable-* \
2252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2254 | -with-* | --with-* | -without-* | --without-* | --x)
2255 case "$ac_configure_args0 " in
2256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2257 esac
2258 ;;
2259 -* ) ac_must_keep_next=true ;;
2260 esac
2261 fi
2262 as_fn_append ac_configure_args " '$ac_arg'"
2263 ;;
2264 esac
2265 done
2266 done
2267 { ac_configure_args0=; unset ac_configure_args0;}
2268 { ac_configure_args1=; unset ac_configure_args1;}
2269
2270 # When interrupted or exit'd, cleanup temporary files, and complete
2271 # config.log. We remove comments because anyway the quotes in there
2272 # would cause problems or look ugly.
2273 # WARNING: Use '\'' to represent an apostrophe within the trap.
2274 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2275 trap 'exit_status=$?
2276 # Save into config.log some information that might help in debugging.
2277 {
2278 echo
2279
2280 $as_echo "## ---------------- ##
2281 ## Cache variables. ##
2282 ## ---------------- ##"
2283 echo
2284 # The following way of writing the cache mishandles newlines in values,
2285 (
2286 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in #(
2289 *${as_nl}*)
2290 case $ac_var in #(
2291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293 esac
2294 case $ac_var in #(
2295 _ | IFS | as_nl) ;; #(
2296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297 *) { eval $ac_var=; unset $ac_var;} ;;
2298 esac ;;
2299 esac
2300 done
2301 (set) 2>&1 |
2302 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2303 *${as_nl}ac_space=\ *)
2304 sed -n \
2305 "s/'\''/'\''\\\\'\'''\''/g;
2306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307 ;; #(
2308 *)
2309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310 ;;
2311 esac |
2312 sort
2313 )
2314 echo
2315
2316 $as_echo "## ----------------- ##
2317 ## Output variables. ##
2318 ## ----------------- ##"
2319 echo
2320 for ac_var in $ac_subst_vars
2321 do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 $as_echo "$ac_var='\''$ac_val'\''"
2327 done | sort
2328 echo
2329
2330 if test -n "$ac_subst_files"; then
2331 $as_echo "## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##"
2334 echo
2335 for ac_var in $ac_subst_files
2336 do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 $as_echo "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2344 fi
2345
2346 if test -s confdefs.h; then
2347 $as_echo "## ----------- ##
2348 ## confdefs.h. ##
2349 ## ----------- ##"
2350 echo
2351 cat confdefs.h
2352 echo
2353 fi
2354 test "$ac_signal" != 0 &&
2355 $as_echo "$as_me: caught signal $ac_signal"
2356 $as_echo "$as_me: exit $exit_status"
2357 } >&5
2358 rm -f core *.core core.conftest.* &&
2359 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 exit $exit_status
2361 ' 0
2362 for ac_signal in 1 2 13 15; do
2363 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 done
2365 ac_signal=0
2366
2367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2368 rm -f -r conftest* confdefs.h
2369
2370 $as_echo "/* confdefs.h */" > confdefs.h
2371
2372 # Predefined preprocessor variables.
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_NAME "$PACKAGE_NAME"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_STRING "$PACKAGE_STRING"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_URL "$PACKAGE_URL"
2396 _ACEOF
2397
2398
2399 # Let the site file select an alternate cache file if it wants to.
2400 # Prefer an explicitly selected file to automatically selected ones.
2401 ac_site_file1=NONE
2402 ac_site_file2=NONE
2403 if test -n "$CONFIG_SITE"; then
2404 # We do not want a PATH search for config.site.
2405 case $CONFIG_SITE in #((
2406 -*) ac_site_file1=./$CONFIG_SITE;;
2407 */*) ac_site_file1=$CONFIG_SITE;;
2408 *) ac_site_file1=./$CONFIG_SITE;;
2409 esac
2410 elif test "x$prefix" != xNONE; then
2411 ac_site_file1=$prefix/share/config.site
2412 ac_site_file2=$prefix/etc/config.site
2413 else
2414 ac_site_file1=$ac_default_prefix/share/config.site
2415 ac_site_file2=$ac_default_prefix/etc/config.site
2416 fi
2417 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2418 do
2419 test "x$ac_site_file" = xNONE && continue
2420 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2422 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2423 sed 's/^/| /' "$ac_site_file" >&5
2424 . "$ac_site_file" \
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_fn_error $? "failed to load site script $ac_site_file
2428 See \`config.log' for more details" "$LINENO" 5; }
2429 fi
2430 done
2431
2432 if test -r "$cache_file"; then
2433 # Some versions of bash will fail to source /dev/null (special files
2434 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2435 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2437 $as_echo "$as_me: loading cache $cache_file" >&6;}
2438 case $cache_file in
2439 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2440 *) . "./$cache_file";;
2441 esac
2442 fi
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2445 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 >$cache_file
2447 fi
2448
2449 # Check that the precious variables saved in the cache have kept the same
2450 # value.
2451 ac_cache_corrupted=false
2452 for ac_var in $ac_precious_vars; do
2453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2454 eval ac_new_set=\$ac_env_${ac_var}_set
2455 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2456 eval ac_new_val=\$ac_env_${ac_var}_value
2457 case $ac_old_set,$ac_new_set in
2458 set,)
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2460 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2461 ac_cache_corrupted=: ;;
2462 ,set)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,);;
2467 *)
2468 if test "x$ac_old_val" != "x$ac_new_val"; then
2469 # differences in whitespace do not lead to failure.
2470 ac_old_val_w=`echo x $ac_old_val`
2471 ac_new_val_w=`echo x $ac_new_val`
2472 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2474 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2475 ac_cache_corrupted=:
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2478 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2479 eval $ac_var=\$ac_old_val
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2482 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2484 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2485 fi;;
2486 esac
2487 # Pass precious variables to config.status.
2488 if test "$ac_new_set" = set; then
2489 case $ac_new_val in
2490 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2491 *) ac_arg=$ac_var=$ac_new_val ;;
2492 esac
2493 case " $ac_configure_args " in
2494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2495 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496 esac
2497 fi
2498 done
2499 if $ac_cache_corrupted; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2503 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2504 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2505 fi
2506 ## -------------------- ##
2507 ## Main body of script. ##
2508 ## -------------------- ##
2509
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515
2516
2517
2518
2519
2520 ac_aux_dir=
2521 for ac_dir in . "$srcdir"/.; do
2522 if test -f "$ac_dir/install-sh"; then
2523 ac_aux_dir=$ac_dir
2524 ac_install_sh="$ac_aux_dir/install-sh -c"
2525 break
2526 elif test -f "$ac_dir/install.sh"; then
2527 ac_aux_dir=$ac_dir
2528 ac_install_sh="$ac_aux_dir/install.sh -c"
2529 break
2530 elif test -f "$ac_dir/shtool"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/shtool install -c"
2533 break
2534 fi
2535 done
2536 if test -z "$ac_aux_dir"; then
2537 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2538 fi
2539
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2545 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2546 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2547
2548
2549
2550
2551 am__api_version='1.13'
2552
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2559 # AIX /bin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 # Reject install programs that cannot install multiple files.
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2569 if test -z "$INSTALL"; then
2570 if ${ac_cv_path_install+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 # Account for people who put trailing slashes in PATH elements.
2579 case $as_dir/ in #((
2580 ./ | .// | /[cC]/* | \
2581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2583 /usr/ucb/* ) ;;
2584 *)
2585 # OSF1 and SCO ODT 3.0 have their own names for install.
2586 # Don't use installbsd from OSF since it installs stuff as root
2587 # by default.
2588 for ac_prog in ginstall scoinst install; do
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2591 if test $ac_prog = install &&
2592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593 # AIX install. It has an incompatible calling convention.
2594 :
2595 elif test $ac_prog = install &&
2596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # program-specific install script used by HP pwplus--don't use.
2598 :
2599 else
2600 rm -rf conftest.one conftest.two conftest.dir
2601 echo one > conftest.one
2602 echo two > conftest.two
2603 mkdir conftest.dir
2604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2605 test -s conftest.one && test -s conftest.two &&
2606 test -s conftest.dir/conftest.one &&
2607 test -s conftest.dir/conftest.two
2608 then
2609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2610 break 3
2611 fi
2612 fi
2613 fi
2614 done
2615 done
2616 ;;
2617 esac
2618
2619 done
2620 IFS=$as_save_IFS
2621
2622 rm -rf conftest.one conftest.two conftest.dir
2623
2624 fi
2625 if test "${ac_cv_path_install+set}" = set; then
2626 INSTALL=$ac_cv_path_install
2627 else
2628 # As a last resort, use the slow shell script. Don't cache a
2629 # value for INSTALL within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the value is a relative name.
2632 INSTALL=$ac_install_sh
2633 fi
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636 $as_echo "$INSTALL" >&6; }
2637
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2647 $as_echo_n "checking whether build environment is sane... " >&6; }
2648 # Reject unsafe characters in $srcdir or the absolute working directory
2649 # name. Accept space and tab only in the latter.
2650 am_lf='
2651 '
2652 case `pwd` in
2653 *[\\\"\#\$\&\'\`$am_lf]*)
2654 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2655 esac
2656 case $srcdir in
2657 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2658 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2659 esac
2660
2661 # Do 'set' in a subshell so we don't clobber the current shell's
2662 # arguments. Must try -L first in case configure is actually a
2663 # symlink; some systems play weird games with the mod time of symlinks
2664 # (eg FreeBSD returns the mod time of the symlink's containing
2665 # directory).
2666 if (
2667 am_has_slept=no
2668 for am_try in 1 2; do
2669 echo "timestamp, slept: $am_has_slept" > conftest.file
2670 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2671 if test "$*" = "X"; then
2672 # -L didn't work.
2673 set X `ls -t "$srcdir/configure" conftest.file`
2674 fi
2675 if test "$*" != "X $srcdir/configure conftest.file" \
2676 && test "$*" != "X conftest.file $srcdir/configure"; then
2677
2678 # If neither matched, then we have a broken ls. This can happen
2679 # if, for instance, CONFIG_SHELL is bash and it inherits a
2680 # broken ls alias from the environment. This has actually
2681 # happened. Such a system could not be considered "sane".
2682 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2684 fi
2685 if test "$2" = conftest.file || test $am_try -eq 2; then
2686 break
2687 fi
2688 # Just in case.
2689 sleep 1
2690 am_has_slept=yes
2691 done
2692 test "$2" = conftest.file
2693 )
2694 then
2695 # Ok.
2696 :
2697 else
2698 as_fn_error $? "newly created file is older than distributed files!
2699 Check your system clock" "$LINENO" 5
2700 fi
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2703 # If we didn't sleep, we still need to ensure time stamps of config.status and
2704 # generated files are strictly newer.
2705 am_sleep_pid=
2706 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2707 ( sleep 1 ) &
2708 am_sleep_pid=$!
2709 fi
2710
2711 rm -f conftest.file
2712
2713 test "$program_prefix" != NONE &&
2714 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2715 # Use a double $ so make ignores it.
2716 test "$program_suffix" != NONE &&
2717 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2718 # Double any \ or $.
2719 # By default was `s,x,x', remove it if useless.
2720 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2721 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2722
2723 # expand $ac_aux_dir to an absolute path
2724 am_aux_dir=`cd $ac_aux_dir && pwd`
2725
2726 if test x"${MISSING+set}" != xset; then
2727 case $am_aux_dir in
2728 *\ * | *\ *)
2729 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2730 *)
2731 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2732 esac
2733 fi
2734 # Use eval to expand $SHELL
2735 if eval "$MISSING --is-lightweight"; then
2736 am_missing_run="$MISSING "
2737 else
2738 am_missing_run=
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2740 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2741 fi
2742
2743 if test x"${install_sh}" != xset; then
2744 case $am_aux_dir in
2745 *\ * | *\ *)
2746 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2747 *)
2748 install_sh="\${SHELL} $am_aux_dir/install-sh"
2749 esac
2750 fi
2751
2752 # Installed binaries are usually stripped using 'strip' when the user
2753 # run "make install-strip". However 'strip' might not be the right
2754 # tool to use in cross-compilation environments, therefore Automake
2755 # will honor the 'STRIP' environment variable to overrule this program.
2756 if test "$cross_compiling" != no; then
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}strip; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_STRIP+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$STRIP"; then
2766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 STRIP=$ac_cv_prog_STRIP
2786 if test -n "$STRIP"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2788 $as_echo "$STRIP" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795 fi
2796 if test -z "$ac_cv_prog_STRIP"; then
2797 ac_ct_STRIP=$STRIP
2798 # Extract the first word of "strip", so it can be a program name with args.
2799 set dummy strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$ac_ct_STRIP"; then
2806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_ac_ct_STRIP="strip"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2826 if test -n "$ac_ct_STRIP"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2828 $as_echo "$ac_ct_STRIP" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834 if test "x$ac_ct_STRIP" = x; then
2835 STRIP=":"
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 STRIP=$ac_ct_STRIP
2844 fi
2845 else
2846 STRIP="$ac_cv_prog_STRIP"
2847 fi
2848
2849 fi
2850 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2853 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2854 if test -z "$MKDIR_P"; then
2855 if ${ac_cv_path_mkdir+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_prog in mkdir gmkdir; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2866 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2867 'mkdir (GNU coreutils) '* | \
2868 'mkdir (coreutils) '* | \
2869 'mkdir (fileutils) '4.1*)
2870 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2871 break 3;;
2872 esac
2873 done
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879
2880 test -d ./--version && rmdir ./--version
2881 if test "${ac_cv_path_mkdir+set}" = set; then
2882 MKDIR_P="$ac_cv_path_mkdir -p"
2883 else
2884 # As a last resort, use the slow shell script. Don't cache a
2885 # value for MKDIR_P within a source directory, because that will
2886 # break other packages using the cache if that directory is
2887 # removed, or if the value is a relative name.
2888 MKDIR_P="$ac_install_sh -d"
2889 fi
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2892 $as_echo "$MKDIR_P" >&6; }
2893
2894 for ac_prog in gawk mawk nawk awk
2895 do
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_AWK+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$AWK"; then
2904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_AWK="$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 AWK=$ac_cv_prog_AWK
2924 if test -n "$AWK"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2926 $as_echo "$AWK" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932
2933 test -n "$AWK" && break
2934 done
2935
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2938 set x ${MAKE-make}
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 cat >conftest.make <<\_ACEOF
2944 SHELL = /bin/sh
2945 all:
2946 @echo '@@@%%%=$(MAKE)=@@@%%%'
2947 _ACEOF
2948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2950 *@@@%%%=?*=@@@%%%*)
2951 eval ac_cv_prog_make_${ac_make}_set=yes;;
2952 *)
2953 eval ac_cv_prog_make_${ac_make}_set=no;;
2954 esac
2955 rm -f conftest.make
2956 fi
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960 SET_MAKE=
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 SET_MAKE="MAKE=${MAKE-make}"
2965 fi
2966
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2970 am__leading_dot=.
2971 else
2972 am__leading_dot=_
2973 fi
2974 rmdir .tst 2>/dev/null
2975
2976 # Check whether --enable-silent-rules was given.
2977 if test "${enable_silent_rules+set}" = set; then :
2978 enableval=$enable_silent_rules;
2979 fi
2980
2981 case $enable_silent_rules in # (((
2982 yes) AM_DEFAULT_VERBOSITY=0;;
2983 no) AM_DEFAULT_VERBOSITY=1;;
2984 *) AM_DEFAULT_VERBOSITY=1;;
2985 esac
2986 am_make=${MAKE-make}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2988 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2989 if ${am_cv_make_support_nested_variables+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if $as_echo 'TRUE=$(BAR$(V))
2993 BAR0=false
2994 BAR1=true
2995 V=1
2996 am__doit:
2997 @$(TRUE)
2998 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2999 am_cv_make_support_nested_variables=yes
3000 else
3001 am_cv_make_support_nested_variables=no
3002 fi
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3005 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3006 if test $am_cv_make_support_nested_variables = yes; then
3007 AM_V='$(V)'
3008 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3009 else
3010 AM_V=$AM_DEFAULT_VERBOSITY
3011 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3012 fi
3013 AM_BACKSLASH='\'
3014
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3022 fi
3023 fi
3024
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3029 else
3030 CYGPATH_W=echo
3031 fi
3032 fi
3033
3034
3035 # Define the identity of the package.
3036 PACKAGE='cycript'
3037 VERSION='0.9'
3038
3039
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE "$PACKAGE"
3042 _ACEOF
3043
3044
3045 cat >>confdefs.h <<_ACEOF
3046 #define VERSION "$VERSION"
3047 _ACEOF
3048
3049 # Some tools Automake needs.
3050
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
3065 # For better backward compatibility. To be removed once Automake 1.9.x
3066 # dies out for good. For more background, see:
3067 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3069 mkdir_p='$(MKDIR_P)'
3070
3071 # We need awk for the "check" target. The system "awk" is bad on
3072 # some platforms.
3073 # Always define AMTAR for backward compatibility. Yes, it's still used
3074 # in the wild :-( We should find a proper way to deprecate it ...
3075 AMTAR='$${TAR-tar}'
3076
3077 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3078
3079
3080
3081
3082
3083 case `pwd` in
3084 *\ * | *\ *)
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3086 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3087 esac
3088
3089
3090
3091 macro_version='2.4.2'
3092 macro_revision='1.3337'
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106 ltmain="$ac_aux_dir/ltmain.sh"
3107
3108 # Make sure we can run config.sub.
3109 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3110 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3113 $as_echo_n "checking build system type... " >&6; }
3114 if ${ac_cv_build+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 ac_build_alias=$build_alias
3118 test "x$ac_build_alias" = x &&
3119 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3120 test "x$ac_build_alias" = x &&
3121 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3122 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3123 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3124
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3127 $as_echo "$ac_cv_build" >&6; }
3128 case $ac_cv_build in
3129 *-*-*) ;;
3130 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3131 esac
3132 build=$ac_cv_build
3133 ac_save_IFS=$IFS; IFS='-'
3134 set x $ac_cv_build
3135 shift
3136 build_cpu=$1
3137 build_vendor=$2
3138 shift; shift
3139 # Remember, the first character of IFS is used to create $*,
3140 # except with old shells:
3141 build_os=$*
3142 IFS=$ac_save_IFS
3143 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3144
3145
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3147 $as_echo_n "checking host system type... " >&6; }
3148 if ${ac_cv_host+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test "x$host_alias" = x; then
3152 ac_cv_host=$ac_cv_build
3153 else
3154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3156 fi
3157
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3160 $as_echo "$ac_cv_host" >&6; }
3161 case $ac_cv_host in
3162 *-*-*) ;;
3163 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3164 esac
3165 host=$ac_cv_host
3166 ac_save_IFS=$IFS; IFS='-'
3167 set x $ac_cv_host
3168 shift
3169 host_cpu=$1
3170 host_vendor=$2
3171 shift; shift
3172 # Remember, the first character of IFS is used to create $*,
3173 # except with old shells:
3174 host_os=$*
3175 IFS=$ac_save_IFS
3176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3177
3178
3179 # Backslashify metacharacters that are still active within
3180 # double-quoted strings.
3181 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3182
3183 # Same as above, but do not quote variable references.
3184 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3185
3186 # Sed substitution to delay expansion of an escaped shell variable in a
3187 # double_quote_subst'ed string.
3188 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3189
3190 # Sed substitution to delay expansion of an escaped single quote.
3191 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3192
3193 # Sed substitution to avoid accidental globbing in evaled expressions
3194 no_glob_subst='s/\*/\\\*/g'
3195
3196 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3198 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3201 $as_echo_n "checking how to print strings... " >&6; }
3202 # Test print first, because it will be a builtin if present.
3203 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3204 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3205 ECHO='print -r --'
3206 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3207 ECHO='printf %s\n'
3208 else
3209 # Use this function as a fallback that always works.
3210 func_fallback_echo ()
3211 {
3212 eval 'cat <<_LTECHO_EOF
3213 $1
3214 _LTECHO_EOF'
3215 }
3216 ECHO='func_fallback_echo'
3217 fi
3218
3219 # func_echo_all arg...
3220 # Invoke $ECHO with all args, space-separated.
3221 func_echo_all ()
3222 {
3223 $ECHO ""
3224 }
3225
3226 case "$ECHO" in
3227 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3228 $as_echo "printf" >&6; } ;;
3229 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3230 $as_echo "print -r" >&6; } ;;
3231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3232 $as_echo "cat" >&6; } ;;
3233 esac
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248 DEPDIR="${am__leading_dot}deps"
3249
3250 ac_config_commands="$ac_config_commands depfiles"
3251
3252
3253 am_make=${MAKE-make}
3254 cat > confinc << 'END'
3255 am__doit:
3256 @echo this is the am__doit target
3257 .PHONY: am__doit
3258 END
3259 # If we don't find an include directive, just comment out the code.
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3261 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3262 am__include="#"
3263 am__quote=
3264 _am_result=none
3265 # First try GNU make style include.
3266 echo "include confinc" > confmf
3267 # Ignore all kinds of additional output from 'make'.
3268 case `$am_make -s -f confmf 2> /dev/null` in #(
3269 *the\ am__doit\ target*)
3270 am__include=include
3271 am__quote=
3272 _am_result=GNU
3273 ;;
3274 esac
3275 # Now try BSD make style include.
3276 if test "$am__include" = "#"; then
3277 echo '.include "confinc"' > confmf
3278 case `$am_make -s -f confmf 2> /dev/null` in #(
3279 *the\ am__doit\ target*)
3280 am__include=.include
3281 am__quote="\""
3282 _am_result=BSD
3283 ;;
3284 esac
3285 fi
3286
3287
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3289 $as_echo "$_am_result" >&6; }
3290 rm -f confinc confmf
3291
3292 # Check whether --enable-dependency-tracking was given.
3293 if test "${enable_dependency_tracking+set}" = set; then :
3294 enableval=$enable_dependency_tracking;
3295 fi
3296
3297 if test "x$enable_dependency_tracking" != xno; then
3298 am_depcomp="$ac_aux_dir/depcomp"
3299 AMDEPBACKSLASH='\'
3300 am__nodep='_no'
3301 fi
3302 if test "x$enable_dependency_tracking" != xno; then
3303 AMDEP_TRUE=
3304 AMDEP_FALSE='#'
3305 else
3306 AMDEP_TRUE='#'
3307 AMDEP_FALSE=
3308 fi
3309
3310
3311 ac_ext=c
3312 ac_cpp='$CPP $CPPFLAGS'
3313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354 fi
3355 if test -z "$ac_cv_prog_CC"; then
3356 ac_ct_CC=$CC
3357 # Extract the first word of "gcc", so it can be a program name with args.
3358 set dummy gcc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_CC="gcc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393 if test "x$ac_ct_CC" = x; then
3394 CC=""
3395 else
3396 case $cross_compiling:$ac_tool_warned in
3397 yes:)
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400 ac_tool_warned=yes ;;
3401 esac
3402 CC=$ac_ct_CC
3403 fi
3404 else
3405 CC="$ac_cv_prog_CC"
3406 fi
3407
3408 if test -z "$CC"; then
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}cc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}cc"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446
3447 fi
3448 fi
3449 if test -z "$CC"; then
3450 # Extract the first word of "cc", so it can be a program name with args.
3451 set dummy cc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 ac_prog_rejected=no
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3469 ac_prog_rejected=yes
3470 continue
3471 fi
3472 ac_cv_prog_CC="cc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 if test $ac_prog_rejected = yes; then
3481 # We found a bogon in the path, so make sure we never use it.
3482 set dummy $ac_cv_prog_CC
3483 shift
3484 if test $# != 0; then
3485 # We chose a different compiler from the bogus one.
3486 # However, it has the same basename, so the bogon will be chosen
3487 # first if we set CC to just the basename; use the full file name.
3488 shift
3489 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3490 fi
3491 fi
3492 fi
3493 fi
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503
3504 fi
3505 if test -z "$CC"; then
3506 if test -n "$ac_tool_prefix"; then
3507 for ac_prog in cl.exe
3508 do
3509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_CC+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545
3546 test -n "$CC" && break
3547 done
3548 fi
3549 if test -z "$CC"; then
3550 ac_ct_CC=$CC
3551 for ac_prog in cl.exe
3552 do
3553 # Extract the first word of "$ac_prog", so it can be a program name with args.
3554 set dummy $ac_prog; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC="$ac_prog"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574 done
3575 done
3576 IFS=$as_save_IFS
3577
3578 fi
3579 fi
3580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3583 $as_echo "$ac_ct_CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 fi
3588
3589
3590 test -n "$ac_ct_CC" && break
3591 done
3592
3593 if test "x$ac_ct_CC" = x; then
3594 CC=""
3595 else
3596 case $cross_compiling:$ac_tool_warned in
3597 yes:)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600 ac_tool_warned=yes ;;
3601 esac
3602 CC=$ac_ct_CC
3603 fi
3604 fi
3605
3606 fi
3607
3608
3609 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "no acceptable C compiler found in \$PATH
3612 See \`config.log' for more details" "$LINENO" 5; }
3613
3614 # Provide some information about the compiler.
3615 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3616 set X $ac_compile
3617 ac_compiler=$2
3618 for ac_option in --version -v -V -qversion; do
3619 { { ac_try="$ac_compiler $ac_option >&5"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3627 ac_status=$?
3628 if test -s conftest.err; then
3629 sed '10a\
3630 ... rest of stderr output deleted ...
3631 10q' conftest.err >conftest.er1
3632 cat conftest.er1 >&5
3633 fi
3634 rm -f conftest.er1 conftest.err
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }
3637 done
3638
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641
3642 int
3643 main ()
3644 {
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 ac_clean_files_save=$ac_clean_files
3651 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3652 # Try to create an executable without -o first, disregard a.out.
3653 # It will help us diagnose broken compilers, and finding out an intuition
3654 # of exeext.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3656 $as_echo_n "checking whether the C compiler works... " >&6; }
3657 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3658
3659 # The possible output files:
3660 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3661
3662 ac_rmfiles=
3663 for ac_file in $ac_files
3664 do
3665 case $ac_file in
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3667 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3668 esac
3669 done
3670 rm -f $ac_rmfiles
3671
3672 if { { ac_try="$ac_link_default"
3673 case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679 (eval "$ac_link_default") 2>&5
3680 ac_status=$?
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }; then :
3683 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3684 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3685 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3686 # so that the user can short-circuit this test for compilers unknown to
3687 # Autoconf.
3688 for ac_file in $ac_files ''
3689 do
3690 test -f "$ac_file" || continue
3691 case $ac_file in
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3693 ;;
3694 [ab].out )
3695 # We found the default executable, but exeext='' is most
3696 # certainly right.
3697 break;;
3698 *.* )
3699 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3700 then :; else
3701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702 fi
3703 # We set ac_cv_exeext here because the later test for it is not
3704 # safe: cross compilers may not add the suffix if given an `-o'
3705 # argument, so we may need to know it at that point already.
3706 # Even if this section looks crufty: it has the advantage of
3707 # actually working.
3708 break;;
3709 * )
3710 break;;
3711 esac
3712 done
3713 test "$ac_cv_exeext" = no && ac_cv_exeext=
3714
3715 else
3716 ac_file=''
3717 fi
3718 if test -z "$ac_file"; then :
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error 77 "C compiler cannot create executables
3727 See \`config.log' for more details" "$LINENO" 5; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 $as_echo "yes" >&6; }
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3733 $as_echo_n "checking for C compiler default output file name... " >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3735 $as_echo "$ac_file" >&6; }
3736 ac_exeext=$ac_cv_exeext
3737
3738 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3739 ac_clean_files=$ac_clean_files_save
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3741 $as_echo_n "checking for suffix of executables... " >&6; }
3742 if { { ac_try="$ac_link"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_link") 2>&5
3750 ac_status=$?
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }; then :
3753 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3754 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3755 # work properly (i.e., refer to `conftest.exe'), while it won't with
3756 # `rm'.
3757 for ac_file in conftest.exe conftest conftest.*; do
3758 test -f "$ac_file" || continue
3759 case $ac_file in
3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3761 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762 break;;
3763 * ) break;;
3764 esac
3765 done
3766 else
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3770 See \`config.log' for more details" "$LINENO" 5; }
3771 fi
3772 rm -f conftest conftest$ac_cv_exeext
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3774 $as_echo "$ac_cv_exeext" >&6; }
3775
3776 rm -f conftest.$ac_ext
3777 EXEEXT=$ac_cv_exeext
3778 ac_exeext=$EXEEXT
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <stdio.h>
3782 int
3783 main ()
3784 {
3785 FILE *f = fopen ("conftest.out", "w");
3786 return ferror (f) || fclose (f) != 0;
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 ac_clean_files="$ac_clean_files conftest.out"
3793 # Check that the compiler produces executables we can run. If not, either
3794 # the compiler is broken, or we cross compile.
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3796 $as_echo_n "checking whether we are cross compiling... " >&6; }
3797 if test "$cross_compiling" != yes; then
3798 { { ac_try="$ac_link"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_link") 2>&5
3806 ac_status=$?
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 if { ac_try='./conftest$ac_cv_exeext'
3810 { { case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_try") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; }; then
3820 cross_compiling=no
3821 else
3822 if test "$cross_compiling" = maybe; then
3823 cross_compiling=yes
3824 else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot run C compiled programs.
3828 If you meant to cross compile, use \`--host'.
3829 See \`config.log' for more details" "$LINENO" 5; }
3830 fi
3831 fi
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3834 $as_echo "$cross_compiling" >&6; }
3835
3836 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3837 ac_clean_files=$ac_clean_files_save
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3839 $as_echo_n "checking for suffix of object files... " >&6; }
3840 if ${ac_cv_objext+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845
3846 int
3847 main ()
3848 {
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 rm -f conftest.o conftest.obj
3855 if { { ac_try="$ac_compile"
3856 case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_compile") 2>&5
3863 ac_status=$?
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }; then :
3866 for ac_file in conftest.o conftest.obj conftest.*; do
3867 test -f "$ac_file" || continue;
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3870 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3871 break;;
3872 esac
3873 done
3874 else
3875 $as_echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $? "cannot compute suffix of object files: cannot compile
3881 See \`config.log' for more details" "$LINENO" 5; }
3882 fi
3883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3886 $as_echo "$ac_cv_objext" >&6; }
3887 OBJEXT=$ac_cv_objext
3888 ac_objext=$OBJEXT
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3890 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3891 if ${ac_cv_c_compiler_gnu+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 int
3898 main ()
3899 {
3900 #ifndef __GNUC__
3901 choke me
3902 #endif
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_compiler_gnu=yes
3910 else
3911 ac_compiler_gnu=no
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3915
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3918 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3919 if test $ac_compiler_gnu = yes; then
3920 GCC=yes
3921 else
3922 GCC=
3923 fi
3924 ac_test_CFLAGS=${CFLAGS+set}
3925 ac_save_CFLAGS=$CFLAGS
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3927 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3928 if ${ac_cv_prog_cc_g+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 ac_save_c_werror_flag=$ac_c_werror_flag
3932 ac_c_werror_flag=yes
3933 ac_cv_prog_cc_g=no
3934 CFLAGS="-g"
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_prog_cc_g=yes
3948 else
3949 CFLAGS=""
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952
3953 int
3954 main ()
3955 {
3956
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962
3963 else
3964 ac_c_werror_flag=$ac_save_c_werror_flag
3965 CFLAGS="-g"
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_g=yes
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3988 $as_echo "$ac_cv_prog_cc_g" >&6; }
3989 if test "$ac_test_CFLAGS" = set; then
3990 CFLAGS=$ac_save_CFLAGS
3991 elif test $ac_cv_prog_cc_g = yes; then
3992 if test "$GCC" = yes; then
3993 CFLAGS="-g -O2"
3994 else
3995 CFLAGS="-g"
3996 fi
3997 else
3998 if test "$GCC" = yes; then
3999 CFLAGS="-O2"
4000 else
4001 CFLAGS=
4002 fi
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4005 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4006 if ${ac_cv_prog_cc_c89+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 ac_cv_prog_cc_c89=no
4010 ac_save_CC=$CC
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #include <stdarg.h>
4014 #include <stdio.h>
4015 struct stat;
4016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4017 struct buf { int x; };
4018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4019 static char *e (p, i)
4020 char **p;
4021 int i;
4022 {
4023 return p[i];
4024 }
4025 static char *f (char * (*g) (char **, int), char **p, ...)
4026 {
4027 char *s;
4028 va_list v;
4029 va_start (v,p);
4030 s = g (p, va_arg (v,int));
4031 va_end (v);
4032 return s;
4033 }
4034
4035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4036 function prototypes and stuff, but not '\xHH' hex character constants.
4037 These don't provoke an error unfortunately, instead are silently treated
4038 as 'x'. The following induces an error, until -std is added to get
4039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4040 array size at least. It's necessary to write '\x00'==0 to get something
4041 that's true only with -std. */
4042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4043
4044 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4045 inside strings and character constants. */
4046 #define FOO(x) 'x'
4047 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4048
4049 int test (int i, double x);
4050 struct s1 {int (*f) (int a);};
4051 struct s2 {int (*f) (double a);};
4052 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4053 int argc;
4054 char **argv;
4055 int
4056 main ()
4057 {
4058 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4065 do
4066 CC="$ac_save_CC $ac_arg"
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_cv_prog_cc_c89=$ac_arg
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext
4071 test "x$ac_cv_prog_cc_c89" != "xno" && break
4072 done
4073 rm -f conftest.$ac_ext
4074 CC=$ac_save_CC
4075
4076 fi
4077 # AC_CACHE_VAL
4078 case "x$ac_cv_prog_cc_c89" in
4079 x)
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4081 $as_echo "none needed" >&6; } ;;
4082 xno)
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4084 $as_echo "unsupported" >&6; } ;;
4085 *)
4086 CC="$CC $ac_cv_prog_cc_c89"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4088 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4089 esac
4090 if test "x$ac_cv_prog_cc_c89" != xno; then :
4091
4092 fi
4093
4094 ac_ext=c
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100 depcc="$CC" am_compiler_list=
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4103 $as_echo_n "checking dependency style of $depcc... " >&6; }
4104 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4108 # We make a subdir and do the tests there. Otherwise we can end up
4109 # making bogus files that we don't know about and never remove. For
4110 # instance it was reported that on HP-UX the gcc test will end up
4111 # making a dummy file named 'D' -- because '-MD' means "put the output
4112 # in D".
4113 rm -rf conftest.dir
4114 mkdir conftest.dir
4115 # Copy depcomp to subdir because otherwise we won't find it if we're
4116 # using a relative directory.
4117 cp "$am_depcomp" conftest.dir
4118 cd conftest.dir
4119 # We will build objects and dependencies in a subdirectory because
4120 # it helps to detect inapplicable dependency modes. For instance
4121 # both Tru64's cc and ICC support -MD to output dependencies as a
4122 # side effect of compilation, but ICC will put the dependencies in
4123 # the current directory while Tru64 will put them in the object
4124 # directory.
4125 mkdir sub
4126
4127 am_cv_CC_dependencies_compiler_type=none
4128 if test "$am_compiler_list" = ""; then
4129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130 fi
4131 am__universal=false
4132 case " $depcc " in #(
4133 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4134 esac
4135
4136 for depmode in $am_compiler_list; do
4137 # Setup a source with many dependencies, because some compilers
4138 # like to wrap large dependency lists on column 80 (with \), and
4139 # we should not choose a depcomp mode which is confused by this.
4140 #
4141 # We need to recreate these files for each test, as the compiler may
4142 # overwrite some of them when testing with obscure command lines.
4143 # This happens at least with the AIX C compiler.
4144 : > sub/conftest.c
4145 for i in 1 2 3 4 5 6; do
4146 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4147 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4148 # Solaris 10 /bin/sh.
4149 echo '/* dummy */' > sub/conftst$i.h
4150 done
4151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152
4153 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4154 # mode. It turns out that the SunPro C++ compiler does not properly
4155 # handle '-M -o', and we need to detect this. Also, some Intel
4156 # versions had trouble with output in subdirs.
4157 am__obj=sub/conftest.${OBJEXT-o}
4158 am__minus_obj="-o $am__obj"
4159 case $depmode in
4160 gcc)
4161 # This depmode causes a compiler race in universal mode.
4162 test "$am__universal" = false || continue
4163 ;;
4164 nosideeffect)
4165 # After this tag, mechanisms are not by side-effect, so they'll
4166 # only be used when explicitly requested.
4167 if test "x$enable_dependency_tracking" = xyes; then
4168 continue
4169 else
4170 break
4171 fi
4172 ;;
4173 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4174 # This compiler won't grok '-c -o', but also, the minuso test has
4175 # not run yet. These depmodes are late enough in the game, and
4176 # so weak that their functioning should not be impacted.
4177 am__obj=conftest.${OBJEXT-o}
4178 am__minus_obj=
4179 ;;
4180 none) break ;;
4181 esac
4182 if depmode=$depmode \
4183 source=sub/conftest.c object=$am__obj \
4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4186 >/dev/null 2>conftest.err &&
4187 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4188 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4189 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191 # icc doesn't choke on unknown options, it will just issue warnings
4192 # or remarks (even with -Werror). So we grep stderr for any message
4193 # that says an option was ignored or not supported.
4194 # When given -MP, icc 7.0 and 7.1 complain thusly:
4195 # icc: Command line warning: ignoring option '-M'; no argument required
4196 # The diagnosis changed in icc 8.0:
4197 # icc: Command line remark: option '-MP' not supported
4198 if (grep 'ignoring option' conftest.err ||
4199 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200 am_cv_CC_dependencies_compiler_type=$depmode
4201 break
4202 fi
4203 fi
4204 done
4205
4206 cd ..
4207 rm -rf conftest.dir
4208 else
4209 am_cv_CC_dependencies_compiler_type=none
4210 fi
4211
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4214 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4215 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216
4217 if
4218 test "x$enable_dependency_tracking" != xno \
4219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4220 am__fastdepCC_TRUE=
4221 am__fastdepCC_FALSE='#'
4222 else
4223 am__fastdepCC_TRUE='#'
4224 am__fastdepCC_FALSE=
4225 fi
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4229 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4230 if ${ac_cv_path_SED+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4234 for ac_i in 1 2 3 4 5 6 7; do
4235 ac_script="$ac_script$as_nl$ac_script"
4236 done
4237 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4238 { ac_script=; unset ac_script;}
4239 if test -z "$SED"; then
4240 ac_path_SED_found=false
4241 # Loop through the user's path and test for each of PROGNAME-LIST
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_prog in sed gsed; do
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4250 as_fn_executable_p "$ac_path_SED" || continue
4251 # Check for GNU ac_path_SED and select it if it is found.
4252 # Check for GNU $ac_path_SED
4253 case `"$ac_path_SED" --version 2>&1` in
4254 *GNU*)
4255 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4256 *)
4257 ac_count=0
4258 $as_echo_n 0123456789 >"conftest.in"
4259 while :
4260 do
4261 cat "conftest.in" "conftest.in" >"conftest.tmp"
4262 mv "conftest.tmp" "conftest.in"
4263 cp "conftest.in" "conftest.nl"
4264 $as_echo '' >> "conftest.nl"
4265 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267 as_fn_arith $ac_count + 1 && ac_count=$as_val
4268 if test $ac_count -gt ${ac_path_SED_max-0}; then
4269 # Best one so far, save it but keep looking for a better one
4270 ac_cv_path_SED="$ac_path_SED"
4271 ac_path_SED_max=$ac_count
4272 fi
4273 # 10*(2^10) chars as input seems more than enough
4274 test $ac_count -gt 10 && break
4275 done
4276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 esac
4278
4279 $ac_path_SED_found && break 3
4280 done
4281 done
4282 done
4283 IFS=$as_save_IFS
4284 if test -z "$ac_cv_path_SED"; then
4285 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4286 fi
4287 else
4288 ac_cv_path_SED=$SED
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4293 $as_echo "$ac_cv_path_SED" >&6; }
4294 SED="$ac_cv_path_SED"
4295 rm -f conftest.sed
4296
4297 test -z "$SED" && SED=sed
4298 Xsed="$SED -e 1s/^X//"
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312 if ${ac_cv_path_GREP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -z "$GREP"; then
4316 ac_path_GREP_found=false
4317 # Loop through the user's path and test for each of PROGNAME-LIST
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_prog in grep ggrep; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4326 as_fn_executable_p "$ac_path_GREP" || continue
4327 # Check for GNU ac_path_GREP and select it if it is found.
4328 # Check for GNU $ac_path_GREP
4329 case `"$ac_path_GREP" --version 2>&1` in
4330 *GNU*)
4331 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4332 *)
4333 ac_count=0
4334 $as_echo_n 0123456789 >"conftest.in"
4335 while :
4336 do
4337 cat "conftest.in" "conftest.in" >"conftest.tmp"
4338 mv "conftest.tmp" "conftest.in"
4339 cp "conftest.in" "conftest.nl"
4340 $as_echo 'GREP' >> "conftest.nl"
4341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343 as_fn_arith $ac_count + 1 && ac_count=$as_val
4344 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345 # Best one so far, save it but keep looking for a better one
4346 ac_cv_path_GREP="$ac_path_GREP"
4347 ac_path_GREP_max=$ac_count
4348 fi
4349 # 10*(2^10) chars as input seems more than enough
4350 test $ac_count -gt 10 && break
4351 done
4352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 esac
4354
4355 $ac_path_GREP_found && break 3
4356 done
4357 done
4358 done
4359 IFS=$as_save_IFS
4360 if test -z "$ac_cv_path_GREP"; then
4361 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362 fi
4363 else
4364 ac_cv_path_GREP=$GREP
4365 fi
4366
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4369 $as_echo "$ac_cv_path_GREP" >&6; }
4370 GREP="$ac_cv_path_GREP"
4371
4372
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4374 $as_echo_n "checking for egrep... " >&6; }
4375 if ${ac_cv_path_EGREP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4379 then ac_cv_path_EGREP="$GREP -E"
4380 else
4381 if test -z "$EGREP"; then
4382 ac_path_EGREP_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in egrep; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4392 as_fn_executable_p "$ac_path_EGREP" || continue
4393 # Check for GNU ac_path_EGREP and select it if it is found.
4394 # Check for GNU $ac_path_EGREP
4395 case `"$ac_path_EGREP" --version 2>&1` in
4396 *GNU*)
4397 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4398 *)
4399 ac_count=0
4400 $as_echo_n 0123456789 >"conftest.in"
4401 while :
4402 do
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 $as_echo 'EGREP' >> "conftest.nl"
4407 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
4410 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_EGREP="$ac_path_EGREP"
4413 ac_path_EGREP_max=$ac_count
4414 fi
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4417 done
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419 esac
4420
4421 $ac_path_EGREP_found && break 3
4422 done
4423 done
4424 done
4425 IFS=$as_save_IFS
4426 if test -z "$ac_cv_path_EGREP"; then
4427 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428 fi
4429 else
4430 ac_cv_path_EGREP=$EGREP
4431 fi
4432
4433 fi
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4436 $as_echo "$ac_cv_path_EGREP" >&6; }
4437 EGREP="$ac_cv_path_EGREP"
4438
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4441 $as_echo_n "checking for fgrep... " >&6; }
4442 if ${ac_cv_path_FGREP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4446 then ac_cv_path_FGREP="$GREP -F"
4447 else
4448 if test -z "$FGREP"; then
4449 ac_path_FGREP_found=false
4450 # Loop through the user's path and test for each of PROGNAME-LIST
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_prog in fgrep; do
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4459 as_fn_executable_p "$ac_path_FGREP" || continue
4460 # Check for GNU ac_path_FGREP and select it if it is found.
4461 # Check for GNU $ac_path_FGREP
4462 case `"$ac_path_FGREP" --version 2>&1` in
4463 *GNU*)
4464 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4465 *)
4466 ac_count=0
4467 $as_echo_n 0123456789 >"conftest.in"
4468 while :
4469 do
4470 cat "conftest.in" "conftest.in" >"conftest.tmp"
4471 mv "conftest.tmp" "conftest.in"
4472 cp "conftest.in" "conftest.nl"
4473 $as_echo 'FGREP' >> "conftest.nl"
4474 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4476 as_fn_arith $ac_count + 1 && ac_count=$as_val
4477 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4478 # Best one so far, save it but keep looking for a better one
4479 ac_cv_path_FGREP="$ac_path_FGREP"
4480 ac_path_FGREP_max=$ac_count
4481 fi
4482 # 10*(2^10) chars as input seems more than enough
4483 test $ac_count -gt 10 && break
4484 done
4485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486 esac
4487
4488 $ac_path_FGREP_found && break 3
4489 done
4490 done
4491 done
4492 IFS=$as_save_IFS
4493 if test -z "$ac_cv_path_FGREP"; then
4494 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495 fi
4496 else
4497 ac_cv_path_FGREP=$FGREP
4498 fi
4499
4500 fi
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4503 $as_echo "$ac_cv_path_FGREP" >&6; }
4504 FGREP="$ac_cv_path_FGREP"
4505
4506
4507 test -z "$GREP" && GREP=grep
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527 # Check whether --with-gnu-ld was given.
4528 if test "${with_gnu_ld+set}" = set; then :
4529 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4530 else
4531 with_gnu_ld=no
4532 fi
4533
4534 ac_prog=ld
4535 if test "$GCC" = yes; then
4536 # Check if gcc -print-prog-name=ld gives a path.
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4538 $as_echo_n "checking for ld used by $CC... " >&6; }
4539 case $host in
4540 *-*-mingw*)
4541 # gcc leaves a trailing carriage return which upsets mingw
4542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4543 *)
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4545 esac
4546 case $ac_prog in
4547 # Accept absolute paths.
4548 [\\/]* | ?:[\\/]*)
4549 re_direlt='/[^/][^/]*/\.\./'
4550 # Canonicalize the pathname of ld
4551 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4552 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4553 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4554 done
4555 test -z "$LD" && LD="$ac_prog"
4556 ;;
4557 "")
4558 # If it fails, then pretend we aren't using GCC.
4559 ac_prog=ld
4560 ;;
4561 *)
4562 # If it is relative, then search for the first ld in PATH.
4563 with_gnu_ld=unknown
4564 ;;
4565 esac
4566 elif test "$with_gnu_ld" = yes; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4568 $as_echo_n "checking for GNU ld... " >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4571 $as_echo_n "checking for non-GNU ld... " >&6; }
4572 fi
4573 if ${lt_cv_path_LD+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -z "$LD"; then
4577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4578 for ac_dir in $PATH; do
4579 IFS="$lt_save_ifs"
4580 test -z "$ac_dir" && ac_dir=.
4581 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4582 lt_cv_path_LD="$ac_dir/$ac_prog"
4583 # Check to see if the program is GNU ld. I'd rather use --version,
4584 # but apparently some variants of GNU ld only accept -v.
4585 # Break only if it was the GNU/non-GNU ld that we prefer.
4586 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4587 *GNU* | *'with BFD'*)
4588 test "$with_gnu_ld" != no && break
4589 ;;
4590 *)
4591 test "$with_gnu_ld" != yes && break
4592 ;;
4593 esac
4594 fi
4595 done
4596 IFS="$lt_save_ifs"
4597 else
4598 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4599 fi
4600 fi
4601
4602 LD="$lt_cv_path_LD"
4603 if test -n "$LD"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4605 $as_echo "$LD" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 fi
4610 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4612 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4613 if ${lt_cv_prog_gnu_ld+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4617 case `$LD -v 2>&1 </dev/null` in
4618 *GNU* | *'with BFD'*)
4619 lt_cv_prog_gnu_ld=yes
4620 ;;
4621 *)
4622 lt_cv_prog_gnu_ld=no
4623 ;;
4624 esac
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4627 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4628 with_gnu_ld=$lt_cv_prog_gnu_ld
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4639 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4640 if ${lt_cv_path_NM+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$NM"; then
4644 # Let the user override the test.
4645 lt_cv_path_NM="$NM"
4646 else
4647 lt_nm_to_check="${ac_tool_prefix}nm"
4648 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4649 lt_nm_to_check="$lt_nm_to_check nm"
4650 fi
4651 for lt_tmp_nm in $lt_nm_to_check; do
4652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4653 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4654 IFS="$lt_save_ifs"
4655 test -z "$ac_dir" && ac_dir=.
4656 tmp_nm="$ac_dir/$lt_tmp_nm"
4657 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4658 # Check to see if the nm accepts a BSD-compat flag.
4659 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4660 # nm: unknown option "B" ignored
4661 # Tru64's nm complains that /dev/null is an invalid object file
4662 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4663 */dev/null* | *'Invalid file or object type'*)
4664 lt_cv_path_NM="$tmp_nm -B"
4665 break
4666 ;;
4667 *)
4668 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4669 */dev/null*)
4670 lt_cv_path_NM="$tmp_nm -p"
4671 break
4672 ;;
4673 *)
4674 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4675 continue # so that we can try to find one that supports BSD flags
4676 ;;
4677 esac
4678 ;;
4679 esac
4680 fi
4681 done
4682 IFS="$lt_save_ifs"
4683 done
4684 : ${lt_cv_path_NM=no}
4685 fi
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4688 $as_echo "$lt_cv_path_NM" >&6; }
4689 if test "$lt_cv_path_NM" != "no"; then
4690 NM="$lt_cv_path_NM"
4691 else
4692 # Didn't find any BSD compatible name lister, look for dumpbin.
4693 if test -n "$DUMPBIN"; then :
4694 # Let the user override the test.
4695 else
4696 if test -n "$ac_tool_prefix"; then
4697 for ac_prog in dumpbin "link -dump"
4698 do
4699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_DUMPBIN+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$DUMPBIN"; then
4707 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 DUMPBIN=$ac_cv_prog_DUMPBIN
4727 if test -n "$DUMPBIN"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4729 $as_echo "$DUMPBIN" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 test -n "$DUMPBIN" && break
4737 done
4738 fi
4739 if test -z "$DUMPBIN"; then
4740 ac_ct_DUMPBIN=$DUMPBIN
4741 for ac_prog in dumpbin "link -dump"
4742 do
4743 # Extract the first word of "$ac_prog", so it can be a program name with args.
4744 set dummy $ac_prog; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$ac_ct_DUMPBIN"; then
4751 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4771 if test -n "$ac_ct_DUMPBIN"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4773 $as_echo "$ac_ct_DUMPBIN" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 test -n "$ac_ct_DUMPBIN" && break
4781 done
4782
4783 if test "x$ac_ct_DUMPBIN" = x; then
4784 DUMPBIN=":"
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 DUMPBIN=$ac_ct_DUMPBIN
4793 fi
4794 fi
4795
4796 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4797 *COFF*)
4798 DUMPBIN="$DUMPBIN -symbols"
4799 ;;
4800 *)
4801 DUMPBIN=:
4802 ;;
4803 esac
4804 fi
4805
4806 if test "$DUMPBIN" != ":"; then
4807 NM="$DUMPBIN"
4808 fi
4809 fi
4810 test -z "$NM" && NM=nm
4811
4812
4813
4814
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4818 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4819 if ${lt_cv_nm_interface+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 lt_cv_nm_interface="BSD nm"
4823 echo "int some_variable = 0;" > conftest.$ac_ext
4824 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4825 (eval "$ac_compile" 2>conftest.err)
4826 cat conftest.err >&5
4827 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4828 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4829 cat conftest.err >&5
4830 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4831 cat conftest.out >&5
4832 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4833 lt_cv_nm_interface="MS dumpbin"
4834 fi
4835 rm -rf conftest*
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4838 $as_echo "$lt_cv_nm_interface" >&6; }
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4841 $as_echo_n "checking whether ln -s works... " >&6; }
4842 LN_S=$as_ln_s
4843 if test "$LN_S" = "ln -s"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845 $as_echo "yes" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4848 $as_echo "no, using $LN_S" >&6; }
4849 fi
4850
4851 # find the maximum length of command line arguments
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4853 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4854 if ${lt_cv_sys_max_cmd_len+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 i=0
4858 teststring="ABCD"
4859
4860 case $build_os in
4861 msdosdjgpp*)
4862 # On DJGPP, this test can blow up pretty badly due to problems in libc
4863 # (any single argument exceeding 2000 bytes causes a buffer overrun
4864 # during glob expansion). Even if it were fixed, the result of this
4865 # check would be larger than it should be.
4866 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4867 ;;
4868
4869 gnu*)
4870 # Under GNU Hurd, this test is not required because there is
4871 # no limit to the length of command line arguments.
4872 # Libtool will interpret -1 as no limit whatsoever
4873 lt_cv_sys_max_cmd_len=-1;
4874 ;;
4875
4876 cygwin* | mingw* | cegcc*)
4877 # On Win9x/ME, this test blows up -- it succeeds, but takes
4878 # about 5 minutes as the teststring grows exponentially.
4879 # Worse, since 9x/ME are not pre-emptively multitasking,
4880 # you end up with a "frozen" computer, even though with patience
4881 # the test eventually succeeds (with a max line length of 256k).
4882 # Instead, let's just punt: use the minimum linelength reported by
4883 # all of the supported platforms: 8192 (on NT/2K/XP).
4884 lt_cv_sys_max_cmd_len=8192;
4885 ;;
4886
4887 mint*)
4888 # On MiNT this can take a long time and run out of memory.
4889 lt_cv_sys_max_cmd_len=8192;
4890 ;;
4891
4892 amigaos*)
4893 # On AmigaOS with pdksh, this test takes hours, literally.
4894 # So we just punt and use a minimum line length of 8192.
4895 lt_cv_sys_max_cmd_len=8192;
4896 ;;
4897
4898 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4899 # This has been around since 386BSD, at least. Likely further.
4900 if test -x /sbin/sysctl; then
4901 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4902 elif test -x /usr/sbin/sysctl; then
4903 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4904 else
4905 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4906 fi
4907 # And add a safety zone
4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4910 ;;
4911
4912 interix*)
4913 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4914 lt_cv_sys_max_cmd_len=196608
4915 ;;
4916
4917 os2*)
4918 # The test takes a long time on OS/2.
4919 lt_cv_sys_max_cmd_len=8192
4920 ;;
4921
4922 osf*)
4923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4925 # nice to cause kernel panics so lets avoid the loop below.
4926 # First set a reasonable default.
4927 lt_cv_sys_max_cmd_len=16384
4928 #
4929 if test -x /sbin/sysconfig; then
4930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4931 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4932 esac
4933 fi
4934 ;;
4935 sco3.2v5*)
4936 lt_cv_sys_max_cmd_len=102400
4937 ;;
4938 sysv5* | sco5v6* | sysv4.2uw2*)
4939 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4940 if test -n "$kargmax"; then
4941 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4942 else
4943 lt_cv_sys_max_cmd_len=32768
4944 fi
4945 ;;
4946 *)
4947 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4948 if test -n "$lt_cv_sys_max_cmd_len"; then
4949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4951 else
4952 # Make teststring a little bigger before we do anything with it.
4953 # a 1K string should be a reasonable start.
4954 for i in 1 2 3 4 5 6 7 8 ; do
4955 teststring=$teststring$teststring
4956 done
4957 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4958 # If test is not a shell built-in, we'll probably end up computing a
4959 # maximum length that is only half of the actual maximum length, but
4960 # we can't tell.
4961 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4962 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4963 test $i != 17 # 1/2 MB should be enough
4964 do
4965 i=`expr $i + 1`
4966 teststring=$teststring$teststring
4967 done
4968 # Only check the string length outside the loop.
4969 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4970 teststring=
4971 # Add a significant safety factor because C++ compilers can tack on
4972 # massive amounts of additional arguments before passing them to the
4973 # linker. It appears as though 1/2 is a usable value.
4974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4975 fi
4976 ;;
4977 esac
4978
4979 fi
4980
4981 if test -n $lt_cv_sys_max_cmd_len ; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4983 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4986 $as_echo "none" >&6; }
4987 fi
4988 max_cmd_len=$lt_cv_sys_max_cmd_len
4989
4990
4991
4992
4993
4994
4995 : ${CP="cp -f"}
4996 : ${MV="mv -f"}
4997 : ${RM="rm -f"}
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5000 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5001 # Try some XSI features
5002 xsi_shell=no
5003 ( _lt_dummy="a/b/c"
5004 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5005 = c,a/b,b/c, \
5006 && eval 'test $(( 1 + 1 )) -eq 2 \
5007 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5008 && xsi_shell=yes
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5010 $as_echo "$xsi_shell" >&6; }
5011
5012
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5014 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5015 lt_shell_append=no
5016 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5017 >/dev/null 2>&1 \
5018 && lt_shell_append=yes
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5020 $as_echo "$lt_shell_append" >&6; }
5021
5022
5023 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5024 lt_unset=unset
5025 else
5026 lt_unset=false
5027 fi
5028
5029
5030
5031
5032
5033 # test EBCDIC or ASCII
5034 case `echo X|tr X '\101'` in
5035 A) # ASCII based system
5036 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5037 lt_SP2NL='tr \040 \012'
5038 lt_NL2SP='tr \015\012 \040\040'
5039 ;;
5040 *) # EBCDIC based system
5041 lt_SP2NL='tr \100 \n'
5042 lt_NL2SP='tr \r\n \100\100'
5043 ;;
5044 esac
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5055 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5056 if ${lt_cv_to_host_file_cmd+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 case $host in
5060 *-*-mingw* )
5061 case $build in
5062 *-*-mingw* ) # actually msys
5063 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5064 ;;
5065 *-*-cygwin* )
5066 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5067 ;;
5068 * ) # otherwise, assume *nix
5069 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5070 ;;
5071 esac
5072 ;;
5073 *-*-cygwin* )
5074 case $build in
5075 *-*-mingw* ) # actually msys
5076 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5077 ;;
5078 *-*-cygwin* )
5079 lt_cv_to_host_file_cmd=func_convert_file_noop
5080 ;;
5081 * ) # otherwise, assume *nix
5082 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5083 ;;
5084 esac
5085 ;;
5086 * ) # unhandled hosts (and "normal" native builds)
5087 lt_cv_to_host_file_cmd=func_convert_file_noop
5088 ;;
5089 esac
5090
5091 fi
5092
5093 to_host_file_cmd=$lt_cv_to_host_file_cmd
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5095 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5102 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5103 if ${lt_cv_to_tool_file_cmd+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 #assume ordinary cross tools, or native build.
5107 lt_cv_to_tool_file_cmd=func_convert_file_noop
5108 case $host in
5109 *-*-mingw* )
5110 case $build in
5111 *-*-mingw* ) # actually msys
5112 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5113 ;;
5114 esac
5115 ;;
5116 esac
5117
5118 fi
5119
5120 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5122 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5129 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5130 if ${lt_cv_ld_reload_flag+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 lt_cv_ld_reload_flag='-r'
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5136 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5137 reload_flag=$lt_cv_ld_reload_flag
5138 case $reload_flag in
5139 "" | " "*) ;;
5140 *) reload_flag=" $reload_flag" ;;
5141 esac
5142 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5143 case $host_os in
5144 cygwin* | mingw* | pw32* | cegcc*)
5145 if test "$GCC" != yes; then
5146 reload_cmds=false
5147 fi
5148 ;;
5149 darwin*)
5150 if test "$GCC" = yes; then
5151 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5152 else
5153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5154 fi
5155 ;;
5156 esac
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_OBJDUMP+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$OBJDUMP"; then
5175 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 OBJDUMP=$ac_cv_prog_OBJDUMP
5195 if test -n "$OBJDUMP"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5197 $as_echo "$OBJDUMP" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 fi
5205 if test -z "$ac_cv_prog_OBJDUMP"; then
5206 ac_ct_OBJDUMP=$OBJDUMP
5207 # Extract the first word of "objdump", so it can be a program name with args.
5208 set dummy objdump; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test -n "$ac_ct_OBJDUMP"; then
5215 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 fi
5233 fi
5234 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5235 if test -n "$ac_ct_OBJDUMP"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5237 $as_echo "$ac_ct_OBJDUMP" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5242
5243 if test "x$ac_ct_OBJDUMP" = x; then
5244 OBJDUMP="false"
5245 else
5246 case $cross_compiling:$ac_tool_warned in
5247 yes:)
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5250 ac_tool_warned=yes ;;
5251 esac
5252 OBJDUMP=$ac_ct_OBJDUMP
5253 fi
5254 else
5255 OBJDUMP="$ac_cv_prog_OBJDUMP"
5256 fi
5257
5258 test -z "$OBJDUMP" && OBJDUMP=objdump
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5269 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5270 if ${lt_cv_deplibs_check_method+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 lt_cv_file_magic_cmd='$MAGIC_CMD'
5274 lt_cv_file_magic_test_file=
5275 lt_cv_deplibs_check_method='unknown'
5276 # Need to set the preceding variable on all platforms that support
5277 # interlibrary dependencies.
5278 # 'none' -- dependencies not supported.
5279 # `unknown' -- same as none, but documents that we really don't know.
5280 # 'pass_all' -- all dependencies passed with no checks.
5281 # 'test_compile' -- check by making test program.
5282 # 'file_magic [[regex]]' -- check by looking for files in library path
5283 # which responds to the $file_magic_cmd with a given extended regex.
5284 # If you have `file' or equivalent on your system and you're not sure
5285 # whether `pass_all' will *always* work, you probably want this one.
5286
5287 case $host_os in
5288 aix[4-9]*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 beos*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296 bsdi[45]*)
5297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5298 lt_cv_file_magic_cmd='/usr/bin/file -L'
5299 lt_cv_file_magic_test_file=/shlib/libc.so
5300 ;;
5301
5302 cygwin*)
5303 # func_win32_libid is a shell function defined in ltmain.sh
5304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5305 lt_cv_file_magic_cmd='func_win32_libid'
5306 ;;
5307
5308 mingw* | pw32*)
5309 # Base MSYS/MinGW do not provide the 'file' command needed by
5310 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5311 # unless we find 'file', for example because we are cross-compiling.
5312 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5313 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5315 lt_cv_file_magic_cmd='func_win32_libid'
5316 else
5317 # Keep this pattern in sync with the one in func_win32_libid.
5318 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5319 lt_cv_file_magic_cmd='$OBJDUMP -f'
5320 fi
5321 ;;
5322
5323 cegcc*)
5324 # use the weaker test based on 'objdump'. See mingw*.
5325 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5326 lt_cv_file_magic_cmd='$OBJDUMP -f'
5327 ;;
5328
5329 darwin* | rhapsody*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333 freebsd* | dragonfly*)
5334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5335 case $host_cpu in
5336 i*86 )
5337 # Not sure whether the presence of OpenBSD here was a mistake.
5338 # Let's accept both of them until this is cleared up.
5339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5340 lt_cv_file_magic_cmd=/usr/bin/file
5341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5342 ;;
5343 esac
5344 else
5345 lt_cv_deplibs_check_method=pass_all
5346 fi
5347 ;;
5348
5349 gnu*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353 haiku*)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357 hpux10.20* | hpux11*)
5358 lt_cv_file_magic_cmd=/usr/bin/file
5359 case $host_cpu in
5360 ia64*)
5361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5363 ;;
5364 hppa*64*)
5365 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]'
5366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5367 ;;
5368 *)
5369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5371 ;;
5372 esac
5373 ;;
5374
5375 interix[3-9]*)
5376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5378 ;;
5379
5380 irix5* | irix6* | nonstopux*)
5381 case $LD in
5382 *-32|*"-32 ") libmagic=32-bit;;
5383 *-n32|*"-n32 ") libmagic=N32;;
5384 *-64|*"-64 ") libmagic=64-bit;;
5385 *) libmagic=never-match;;
5386 esac
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389
5390 # This must be glibc/ELF.
5391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394
5395 netbsd*)
5396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5398 else
5399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5400 fi
5401 ;;
5402
5403 newos6*)
5404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5405 lt_cv_file_magic_cmd=/usr/bin/file
5406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5407 ;;
5408
5409 *nto* | *qnx*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412
5413 openbsd*)
5414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5416 else
5417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5418 fi
5419 ;;
5420
5421 osf3* | osf4* | osf5*)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424
5425 rdos*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428
5429 solaris*)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432
5433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436
5437 sysv4 | sysv4.3*)
5438 case $host_vendor in
5439 motorola)
5440 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]'
5441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5442 ;;
5443 ncr)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446 sequent)
5447 lt_cv_file_magic_cmd='/bin/file'
5448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5449 ;;
5450 sni)
5451 lt_cv_file_magic_cmd='/bin/file'
5452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5453 lt_cv_file_magic_test_file=/lib/libc.so
5454 ;;
5455 siemens)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458 pc)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461 esac
5462 ;;
5463
5464 tpf*)
5465 lt_cv_deplibs_check_method=pass_all
5466 ;;
5467 esac
5468
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5472
5473 file_magic_glob=
5474 want_nocaseglob=no
5475 if test "$build" = "$host"; then
5476 case $host_os in
5477 mingw* | pw32*)
5478 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5479 want_nocaseglob=yes
5480 else
5481 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5482 fi
5483 ;;
5484 esac
5485 fi
5486
5487 file_magic_cmd=$lt_cv_file_magic_cmd
5488 deplibs_check_method=$lt_cv_deplibs_check_method
5489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_DLLTOOL+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$DLLTOOL"; then
5521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 DLLTOOL=$ac_cv_prog_DLLTOOL
5541 if test -n "$DLLTOOL"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5543 $as_echo "$DLLTOOL" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 fi
5551 if test -z "$ac_cv_prog_DLLTOOL"; then
5552 ac_ct_DLLTOOL=$DLLTOOL
5553 # Extract the first word of "dlltool", so it can be a program name with args.
5554 set dummy dlltool; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_DLLTOOL"; then
5561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5581 if test -n "$ac_ct_DLLTOOL"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5583 $as_echo "$ac_ct_DLLTOOL" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589 if test "x$ac_ct_DLLTOOL" = x; then
5590 DLLTOOL="false"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 DLLTOOL=$ac_ct_DLLTOOL
5599 fi
5600 else
5601 DLLTOOL="$ac_cv_prog_DLLTOOL"
5602 fi
5603
5604 test -z "$DLLTOOL" && DLLTOOL=dlltool
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5616 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5617 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 lt_cv_sharedlib_from_linklib_cmd='unknown'
5621
5622 case $host_os in
5623 cygwin* | mingw* | pw32* | cegcc*)
5624 # two different shell functions defined in ltmain.sh
5625 # decide which to use based on capabilities of $DLLTOOL
5626 case `$DLLTOOL --help 2>&1` in
5627 *--identify-strict*)
5628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5629 ;;
5630 *)
5631 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5632 ;;
5633 esac
5634 ;;
5635 *)
5636 # fallback: assume linklib IS sharedlib
5637 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5638 ;;
5639 esac
5640
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5643 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5644 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5645 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5646
5647
5648
5649
5650
5651
5652
5653
5654 if test -n "$ac_tool_prefix"; then
5655 for ac_prog in ar
5656 do
5657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_AR+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$AR"; then
5665 ac_cv_prog_AR="$AR" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5677 fi
5678 done
5679 done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 AR=$ac_cv_prog_AR
5685 if test -n "$AR"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5687 $as_echo "$AR" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693
5694 test -n "$AR" && break
5695 done
5696 fi
5697 if test -z "$AR"; then
5698 ac_ct_AR=$AR
5699 for ac_prog in ar
5700 do
5701 # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy $ac_prog; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$ac_ct_AR"; then
5709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_ac_ct_AR="$ac_prog"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5729 if test -n "$ac_ct_AR"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5731 $as_echo "$ac_ct_AR" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 test -n "$ac_ct_AR" && break
5739 done
5740
5741 if test "x$ac_ct_AR" = x; then
5742 AR="false"
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745 yes:)
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748 ac_tool_warned=yes ;;
5749 esac
5750 AR=$ac_ct_AR
5751 fi
5752 fi
5753
5754 : ${AR=ar}
5755 : ${AR_FLAGS=cru}
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5768 $as_echo_n "checking for archiver @FILE support... " >&6; }
5769 if ${lt_cv_ar_at_file+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 lt_cv_ar_at_file=no
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775
5776 int
5777 main ()
5778 {
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785 echo conftest.$ac_objext > conftest.lst
5786 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5788 (eval $lt_ar_try) 2>&5
5789 ac_status=$?
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }
5792 if test "$ac_status" -eq 0; then
5793 # Ensure the archiver fails upon bogus file names.
5794 rm -f conftest.$ac_objext libconftest.a
5795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5796 (eval $lt_ar_try) 2>&5
5797 ac_status=$?
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799 test $ac_status = 0; }
5800 if test "$ac_status" -ne 0; then
5801 lt_cv_ar_at_file=@
5802 fi
5803 fi
5804 rm -f conftest.* libconftest.a
5805
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5811 $as_echo "$lt_cv_ar_at_file" >&6; }
5812
5813 if test "x$lt_cv_ar_at_file" = xno; then
5814 archiver_list_spec=
5815 else
5816 archiver_list_spec=$lt_cv_ar_at_file
5817 fi
5818
5819
5820
5821
5822
5823
5824
5825 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}strip; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_prog_STRIP+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$STRIP"; then
5834 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847 done
5848 done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 STRIP=$ac_cv_prog_STRIP
5854 if test -n "$STRIP"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5856 $as_echo "$STRIP" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 if test -z "$ac_cv_prog_STRIP"; then
5865 ac_ct_STRIP=$STRIP
5866 # Extract the first word of "strip", so it can be a program name with args.
5867 set dummy strip; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -n "$ac_ct_STRIP"; then
5874 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_ac_ct_STRIP="strip"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5894 if test -n "$ac_ct_STRIP"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5896 $as_echo "$ac_ct_STRIP" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902 if test "x$ac_ct_STRIP" = x; then
5903 STRIP=":"
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 STRIP=$ac_ct_STRIP
5912 fi
5913 else
5914 STRIP="$ac_cv_prog_STRIP"
5915 fi
5916
5917 test -z "$STRIP" && STRIP=:
5918
5919
5920
5921
5922
5923
5924 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_RANLIB+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$RANLIB"; then
5933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 RANLIB=$ac_cv_prog_RANLIB
5953 if test -n "$RANLIB"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5955 $as_echo "$RANLIB" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_RANLIB"; then
5964 ac_ct_RANLIB=$RANLIB
5965 # Extract the first word of "ranlib", so it can be a program name with args.
5966 set dummy ranlib; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if test -n "$ac_ct_RANLIB"; then
5973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_RANLIB="ranlib"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5993 if test -n "$ac_ct_RANLIB"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5995 $as_echo "$ac_ct_RANLIB" >&6; }
5996 else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001 if test "x$ac_ct_RANLIB" = x; then
6002 RANLIB=":"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010 RANLIB=$ac_ct_RANLIB
6011 fi
6012 else
6013 RANLIB="$ac_cv_prog_RANLIB"
6014 fi
6015
6016 test -z "$RANLIB" && RANLIB=:
6017
6018
6019
6020
6021
6022
6023 # Determine commands to create old-style static archives.
6024 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6025 old_postinstall_cmds='chmod 644 $oldlib'
6026 old_postuninstall_cmds=
6027
6028 if test -n "$RANLIB"; then
6029 case $host_os in
6030 openbsd*)
6031 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6032 ;;
6033 *)
6034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6035 ;;
6036 esac
6037 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6038 fi
6039
6040 case $host_os in
6041 darwin*)
6042 lock_old_archive_extraction=yes ;;
6043 *)
6044 lock_old_archive_extraction=no ;;
6045 esac
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 # If no C compiler was specified, use CC.
6086 LTCC=${LTCC-"$CC"}
6087
6088 # If no C compiler flags were specified, use CFLAGS.
6089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6090
6091 # Allow CC to be a program name with arguments.
6092 compiler=$CC
6093
6094
6095 # Check for command to grab the raw symbol name followed by C symbol from nm.
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6097 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6098 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101
6102 # These are sane defaults that work on at least a few old systems.
6103 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6104
6105 # Character class describing NM global symbol codes.
6106 symcode='[BCDEGRST]'
6107
6108 # Regexp to match symbols that can be accessed directly from C.
6109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6110
6111 # Define system-specific variables.
6112 case $host_os in
6113 aix*)
6114 symcode='[BCDT]'
6115 ;;
6116 cygwin* | mingw* | pw32* | cegcc*)
6117 symcode='[ABCDGISTW]'
6118 ;;
6119 hpux*)
6120 if test "$host_cpu" = ia64; then
6121 symcode='[ABCDEGRST]'
6122 fi
6123 ;;
6124 irix* | nonstopux*)
6125 symcode='[BCDEGRST]'
6126 ;;
6127 osf*)
6128 symcode='[BCDEGQRST]'
6129 ;;
6130 solaris*)
6131 symcode='[BDRT]'
6132 ;;
6133 sco3.2v5*)
6134 symcode='[DT]'
6135 ;;
6136 sysv4.2uw2*)
6137 symcode='[DT]'
6138 ;;
6139 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6140 symcode='[ABDT]'
6141 ;;
6142 sysv4)
6143 symcode='[DFNSTU]'
6144 ;;
6145 esac
6146
6147 # If we're using GNU nm, then use its standard symbol codes.
6148 case `$NM -V 2>&1` in
6149 *GNU* | *'with BFD'*)
6150 symcode='[ABCDGIRSTW]' ;;
6151 esac
6152
6153 # Transform an extracted symbol line into a proper C declaration.
6154 # Some systems (esp. on ia64) link data and code symbols differently,
6155 # so use this general approach.
6156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6157
6158 # Transform an extracted symbol line into symbol name and symbol address
6159 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6160 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'"
6161
6162 # Handle CRLF in mingw tool chain
6163 opt_cr=
6164 case $build_os in
6165 mingw*)
6166 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6167 ;;
6168 esac
6169
6170 # Try without a prefix underscore, then with it.
6171 for ac_symprfx in "" "_"; do
6172
6173 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6174 symxfrm="\\1 $ac_symprfx\\2 \\2"
6175
6176 # Write the raw and C identifiers.
6177 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6178 # Fake it for dumpbin and say T for any non-static function
6179 # and D for any global variable.
6180 # Also find C++ and __fastcall symbols from MSVC++,
6181 # which start with @ or ?.
6182 lt_cv_sys_global_symbol_pipe="$AWK '"\
6183 " {last_section=section; section=\$ 3};"\
6184 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6185 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6186 " \$ 0!~/External *\|/{next};"\
6187 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6188 " {if(hide[section]) next};"\
6189 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6190 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6191 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6192 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6193 " ' prfx=^$ac_symprfx"
6194 else
6195 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6196 fi
6197 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6198
6199 # Check to see that the pipe works correctly.
6200 pipe_works=no
6201
6202 rm -rf conftest*
6203 cat > conftest.$ac_ext <<_LT_EOF
6204 #ifdef __cplusplus
6205 extern "C" {
6206 #endif
6207 char nm_test_var;
6208 void nm_test_func(void);
6209 void nm_test_func(void){}
6210 #ifdef __cplusplus
6211 }
6212 #endif
6213 int main(){nm_test_var='a';nm_test_func();return(0);}
6214 _LT_EOF
6215
6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6217 (eval $ac_compile) 2>&5
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; }; then
6221 # Now try to grab the symbols.
6222 nlist=conftest.nm
6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6224 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6225 ac_status=$?
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; } && test -s "$nlist"; then
6228 # Try sorting and uniquifying the output.
6229 if sort "$nlist" | uniq > "$nlist"T; then
6230 mv -f "$nlist"T "$nlist"
6231 else
6232 rm -f "$nlist"T
6233 fi
6234
6235 # Make sure that we snagged all the symbols we need.
6236 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6237 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6238 cat <<_LT_EOF > conftest.$ac_ext
6239 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6240 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6241 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6242 relocations are performed -- see ld's documentation on pseudo-relocs. */
6243 # define LT_DLSYM_CONST
6244 #elif defined(__osf__)
6245 /* This system does not cope well with relocations in const data. */
6246 # define LT_DLSYM_CONST
6247 #else
6248 # define LT_DLSYM_CONST const
6249 #endif
6250
6251 #ifdef __cplusplus
6252 extern "C" {
6253 #endif
6254
6255 _LT_EOF
6256 # Now generate the symbol file.
6257 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6258
6259 cat <<_LT_EOF >> conftest.$ac_ext
6260
6261 /* The mapping between symbol names and symbols. */
6262 LT_DLSYM_CONST struct {
6263 const char *name;
6264 void *address;
6265 }
6266 lt__PROGRAM__LTX_preloaded_symbols[] =
6267 {
6268 { "@PROGRAM@", (void *) 0 },
6269 _LT_EOF
6270 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6271 cat <<\_LT_EOF >> conftest.$ac_ext
6272 {0, (void *) 0}
6273 };
6274
6275 /* This works around a problem in FreeBSD linker */
6276 #ifdef FREEBSD_WORKAROUND
6277 static const void *lt_preloaded_setup() {
6278 return lt__PROGRAM__LTX_preloaded_symbols;
6279 }
6280 #endif
6281
6282 #ifdef __cplusplus
6283 }
6284 #endif
6285 _LT_EOF
6286 # Now try linking the two files.
6287 mv conftest.$ac_objext conftstm.$ac_objext
6288 lt_globsym_save_LIBS=$LIBS
6289 lt_globsym_save_CFLAGS=$CFLAGS
6290 LIBS="conftstm.$ac_objext"
6291 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6293 (eval $ac_link) 2>&5
6294 ac_status=$?
6295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6297 pipe_works=yes
6298 fi
6299 LIBS=$lt_globsym_save_LIBS
6300 CFLAGS=$lt_globsym_save_CFLAGS
6301 else
6302 echo "cannot find nm_test_func in $nlist" >&5
6303 fi
6304 else
6305 echo "cannot find nm_test_var in $nlist" >&5
6306 fi
6307 else
6308 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6309 fi
6310 else
6311 echo "$progname: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6313 fi
6314 rm -rf conftest* conftst*
6315
6316 # Do not use the global_symbol_pipe unless it works.
6317 if test "$pipe_works" = yes; then
6318 break
6319 else
6320 lt_cv_sys_global_symbol_pipe=
6321 fi
6322 done
6323
6324 fi
6325
6326 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6327 lt_cv_sys_global_symbol_to_cdecl=
6328 fi
6329 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6331 $as_echo "failed" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6334 $as_echo "ok" >&6; }
6335 fi
6336
6337 # Response file support.
6338 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6339 nm_file_list_spec='@'
6340 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6341 nm_file_list_spec='@'
6342 fi
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6371 $as_echo_n "checking for sysroot... " >&6; }
6372
6373 # Check whether --with-sysroot was given.
6374 if test "${with_sysroot+set}" = set; then :
6375 withval=$with_sysroot;
6376 else
6377 with_sysroot=no
6378 fi
6379
6380
6381 lt_sysroot=
6382 case ${with_sysroot} in #(
6383 yes)
6384 if test "$GCC" = yes; then
6385 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6386 fi
6387 ;; #(
6388 /*)
6389 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6390 ;; #(
6391 no|'')
6392 ;; #(
6393 *)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6395 $as_echo "${with_sysroot}" >&6; }
6396 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6397 ;;
6398 esac
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6401 $as_echo "${lt_sysroot:-no}" >&6; }
6402
6403
6404
6405
6406
6407 # Check whether --enable-libtool-lock was given.
6408 if test "${enable_libtool_lock+set}" = set; then :
6409 enableval=$enable_libtool_lock;
6410 fi
6411
6412 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6413
6414 # Some flags need to be propagated to the compiler or linker for good
6415 # libtool support.
6416 case $host in
6417 ia64-*-hpux*)
6418 # Find out which ABI we are using.
6419 echo 'int i;' > conftest.$ac_ext
6420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6421 (eval $ac_compile) 2>&5
6422 ac_status=$?
6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; then
6425 case `/usr/bin/file conftest.$ac_objext` in
6426 *ELF-32*)
6427 HPUX_IA64_MODE="32"
6428 ;;
6429 *ELF-64*)
6430 HPUX_IA64_MODE="64"
6431 ;;
6432 esac
6433 fi
6434 rm -rf conftest*
6435 ;;
6436 *-*-irix6*)
6437 # Find out which ABI we are using.
6438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6440 (eval $ac_compile) 2>&5
6441 ac_status=$?
6442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443 test $ac_status = 0; }; then
6444 if test "$lt_cv_prog_gnu_ld" = yes; then
6445 case `/usr/bin/file conftest.$ac_objext` in
6446 *32-bit*)
6447 LD="${LD-ld} -melf32bsmip"
6448 ;;
6449 *N32*)
6450 LD="${LD-ld} -melf32bmipn32"
6451 ;;
6452 *64-bit*)
6453 LD="${LD-ld} -melf64bmip"
6454 ;;
6455 esac
6456 else
6457 case `/usr/bin/file conftest.$ac_objext` in
6458 *32-bit*)
6459 LD="${LD-ld} -32"
6460 ;;
6461 *N32*)
6462 LD="${LD-ld} -n32"
6463 ;;
6464 *64-bit*)
6465 LD="${LD-ld} -64"
6466 ;;
6467 esac
6468 fi
6469 fi
6470 rm -rf conftest*
6471 ;;
6472
6473 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6474 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6475 # Find out which ABI we are using.
6476 echo 'int i;' > conftest.$ac_ext
6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6478 (eval $ac_compile) 2>&5
6479 ac_status=$?
6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; }; then
6482 case `/usr/bin/file conftest.o` in
6483 *32-bit*)
6484 case $host in
6485 x86_64-*kfreebsd*-gnu)
6486 LD="${LD-ld} -m elf_i386_fbsd"
6487 ;;
6488 x86_64-*linux*)
6489 LD="${LD-ld} -m elf_i386"
6490 ;;
6491 ppc64-*linux*|powerpc64-*linux*)
6492 LD="${LD-ld} -m elf32ppclinux"
6493 ;;
6494 s390x-*linux*)
6495 LD="${LD-ld} -m elf_s390"
6496 ;;
6497 sparc64-*linux*)
6498 LD="${LD-ld} -m elf32_sparc"
6499 ;;
6500 esac
6501 ;;
6502 *64-bit*)
6503 case $host in
6504 x86_64-*kfreebsd*-gnu)
6505 LD="${LD-ld} -m elf_x86_64_fbsd"
6506 ;;
6507 x86_64-*linux*)
6508 LD="${LD-ld} -m elf_x86_64"
6509 ;;
6510 ppc*-*linux*|powerpc*-*linux*)
6511 LD="${LD-ld} -m elf64ppc"
6512 ;;
6513 s390*-*linux*|s390*-*tpf*)
6514 LD="${LD-ld} -m elf64_s390"
6515 ;;
6516 sparc*-*linux*)
6517 LD="${LD-ld} -m elf64_sparc"
6518 ;;
6519 esac
6520 ;;
6521 esac
6522 fi
6523 rm -rf conftest*
6524 ;;
6525
6526 *-*-sco3.2v5*)
6527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6528 SAVE_CFLAGS="$CFLAGS"
6529 CFLAGS="$CFLAGS -belf"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6531 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6532 if ${lt_cv_cc_needs_belf+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 ac_ext=c
6536 ac_cpp='$CPP $CPPFLAGS'
6537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543
6544 int
6545 main ()
6546 {
6547
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 if ac_fn_c_try_link "$LINENO"; then :
6553 lt_cv_cc_needs_belf=yes
6554 else
6555 lt_cv_cc_needs_belf=no
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext conftest.$ac_ext
6559 ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6567 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6568 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6569 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6570 CFLAGS="$SAVE_CFLAGS"
6571 fi
6572 ;;
6573 *-*solaris*)
6574 # Find out which ABI we are using.
6575 echo 'int i;' > conftest.$ac_ext
6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6577 (eval $ac_compile) 2>&5
6578 ac_status=$?
6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580 test $ac_status = 0; }; then
6581 case `/usr/bin/file conftest.o` in
6582 *64-bit*)
6583 case $lt_cv_prog_gnu_ld in
6584 yes*)
6585 case $host in
6586 i?86-*-solaris*)
6587 LD="${LD-ld} -m elf_x86_64"
6588 ;;
6589 sparc*-*-solaris*)
6590 LD="${LD-ld} -m elf64_sparc"
6591 ;;
6592 esac
6593 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6594 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6595 LD="${LD-ld}_sol2"
6596 fi
6597 ;;
6598 *)
6599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6600 LD="${LD-ld} -64"
6601 fi
6602 ;;
6603 esac
6604 ;;
6605 esac
6606 fi
6607 rm -rf conftest*
6608 ;;
6609 esac
6610
6611 need_locks="$enable_libtool_lock"
6612
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}mt; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 if test -n "$MANIFEST_TOOL"; then
6622 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6642 if test -n "$MANIFEST_TOOL"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6644 $as_echo "$MANIFEST_TOOL" >&6; }
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650
6651 fi
6652 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6653 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6654 # Extract the first word of "mt", so it can be a program name with args.
6655 set dummy mt; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 if test -n "$ac_ct_MANIFEST_TOOL"; then
6662 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675 done
6676 done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6682 if test -n "$ac_ct_MANIFEST_TOOL"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6684 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6685 else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6691 MANIFEST_TOOL=":"
6692 else
6693 case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6700 fi
6701 else
6702 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6703 fi
6704
6705 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6707 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6708 if ${lt_cv_path_mainfest_tool+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 lt_cv_path_mainfest_tool=no
6712 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6713 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6714 cat conftest.err >&5
6715 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6716 lt_cv_path_mainfest_tool=yes
6717 fi
6718 rm -rf conftest*
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6721 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6722 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6723 MANIFEST_TOOL=:
6724 fi
6725
6726
6727
6728
6729
6730
6731 case $host_os in
6732 rhapsody* | darwin*)
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 if test -n "$DSYMUTIL"; then
6742 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6762 if test -n "$DSYMUTIL"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6764 $as_echo "$DSYMUTIL" >&6; }
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_DSYMUTIL"; then
6773 ac_ct_DSYMUTIL=$DSYMUTIL
6774 # Extract the first word of "dsymutil", so it can be a program name with args.
6775 set dummy dsymutil; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 if test -n "$ac_ct_DSYMUTIL"; then
6782 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6802 if test -n "$ac_ct_DSYMUTIL"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6804 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810 if test "x$ac_ct_DSYMUTIL" = x; then
6811 DSYMUTIL=":"
6812 else
6813 case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819 DSYMUTIL=$ac_ct_DSYMUTIL
6820 fi
6821 else
6822 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6823 fi
6824
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_NMEDIT+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 if test -n "$NMEDIT"; then
6834 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 NMEDIT=$ac_cv_prog_NMEDIT
6854 if test -n "$NMEDIT"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6856 $as_echo "$NMEDIT" >&6; }
6857 else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862
6863 fi
6864 if test -z "$ac_cv_prog_NMEDIT"; then
6865 ac_ct_NMEDIT=$NMEDIT
6866 # Extract the first word of "nmedit", so it can be a program name with args.
6867 set dummy nmedit; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$ac_ct_NMEDIT"; then
6874 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6894 if test -n "$ac_ct_NMEDIT"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6896 $as_echo "$ac_ct_NMEDIT" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902 if test "x$ac_ct_NMEDIT" = x; then
6903 NMEDIT=":"
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911 NMEDIT=$ac_ct_NMEDIT
6912 fi
6913 else
6914 NMEDIT="$ac_cv_prog_NMEDIT"
6915 fi
6916
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_LIPO+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 if test -n "$LIPO"; then
6926 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 LIPO=$ac_cv_prog_LIPO
6946 if test -n "$LIPO"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6948 $as_echo "$LIPO" >&6; }
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955 fi
6956 if test -z "$ac_cv_prog_LIPO"; then
6957 ac_ct_LIPO=$LIPO
6958 # Extract the first word of "lipo", so it can be a program name with args.
6959 set dummy lipo; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 if test -n "$ac_ct_LIPO"; then
6966 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_LIPO="lipo"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6986 if test -n "$ac_ct_LIPO"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6988 $as_echo "$ac_ct_LIPO" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994 if test "x$ac_ct_LIPO" = x; then
6995 LIPO=":"
6996 else
6997 case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003 LIPO=$ac_ct_LIPO
7004 fi
7005 else
7006 LIPO="$ac_cv_prog_LIPO"
7007 fi
7008
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}otool; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_OTOOL+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$OTOOL"; then
7018 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031 done
7032 done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 OTOOL=$ac_cv_prog_OTOOL
7038 if test -n "$OTOOL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7040 $as_echo "$OTOOL" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046
7047 fi
7048 if test -z "$ac_cv_prog_OTOOL"; then
7049 ac_ct_OTOOL=$OTOOL
7050 # Extract the first word of "otool", so it can be a program name with args.
7051 set dummy otool; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$ac_ct_OTOOL"; then
7058 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_ac_ct_OTOOL="otool"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7078 if test -n "$ac_ct_OTOOL"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7080 $as_echo "$ac_ct_OTOOL" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086 if test "x$ac_ct_OTOOL" = x; then
7087 OTOOL=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 OTOOL=$ac_ct_OTOOL
7096 fi
7097 else
7098 OTOOL="$ac_cv_prog_OTOOL"
7099 fi
7100
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_OTOOL64+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$OTOOL64"; then
7110 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 OTOOL64=$ac_cv_prog_OTOOL64
7130 if test -n "$OTOOL64"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7132 $as_echo "$OTOOL64" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138
7139 fi
7140 if test -z "$ac_cv_prog_OTOOL64"; then
7141 ac_ct_OTOOL64=$OTOOL64
7142 # Extract the first word of "otool64", so it can be a program name with args.
7143 set dummy otool64; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 if test -n "$ac_ct_OTOOL64"; then
7150 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_OTOOL64="otool64"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7170 if test -n "$ac_ct_OTOOL64"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7172 $as_echo "$ac_ct_OTOOL64" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178 if test "x$ac_ct_OTOOL64" = x; then
7179 OTOOL64=":"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187 OTOOL64=$ac_ct_OTOOL64
7188 fi
7189 else
7190 OTOOL64="$ac_cv_prog_OTOOL64"
7191 fi
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7220 $as_echo_n "checking for -single_module linker flag... " >&6; }
7221 if ${lt_cv_apple_cc_single_mod+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 lt_cv_apple_cc_single_mod=no
7225 if test -z "${LT_MULTI_MODULE}"; then
7226 # By default we will add the -single_module flag. You can override
7227 # by either setting the environment variable LT_MULTI_MODULE
7228 # non-empty at configure time, or by adding -multi_module to the
7229 # link flags.
7230 rm -rf libconftest.dylib*
7231 echo "int foo(void){return 1;}" > conftest.c
7232 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7233 -dynamiclib -Wl,-single_module conftest.c" >&5
7234 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7235 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7236 _lt_result=$?
7237 # If there is a non-empty error log, and "single_module"
7238 # appears in it, assume the flag caused a linker warning
7239 if test -s conftest.err && $GREP single_module conftest.err; then
7240 cat conftest.err >&5
7241 # Otherwise, if the output was created with a 0 exit code from
7242 # the compiler, it worked.
7243 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7244 lt_cv_apple_cc_single_mod=yes
7245 else
7246 cat conftest.err >&5
7247 fi
7248 rm -rf libconftest.dylib*
7249 rm -f conftest.*
7250 fi
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7253 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7254
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7256 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7257 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 lt_cv_ld_exported_symbols_list=no
7261 save_LDFLAGS=$LDFLAGS
7262 echo "_main" > conftest.sym
7263 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266
7267 int
7268 main ()
7269 {
7270
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_ld_exported_symbols_list=yes
7277 else
7278 lt_cv_ld_exported_symbols_list=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 LDFLAGS="$save_LDFLAGS"
7283
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7286 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7289 $as_echo_n "checking for -force_load linker flag... " >&6; }
7290 if ${lt_cv_ld_force_load+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 lt_cv_ld_force_load=no
7294 cat > conftest.c << _LT_EOF
7295 int forced_loaded() { return 2;}
7296 _LT_EOF
7297 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7298 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7299 echo "$AR cru libconftest.a conftest.o" >&5
7300 $AR cru libconftest.a conftest.o 2>&5
7301 echo "$RANLIB libconftest.a" >&5
7302 $RANLIB libconftest.a 2>&5
7303 cat > conftest.c << _LT_EOF
7304 int main() { return 0;}
7305 _LT_EOF
7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7307 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7308 _lt_result=$?
7309 if test -s conftest.err && $GREP force_load conftest.err; then
7310 cat conftest.err >&5
7311 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7312 lt_cv_ld_force_load=yes
7313 else
7314 cat conftest.err >&5
7315 fi
7316 rm -f conftest.err libconftest.a conftest conftest.c
7317 rm -rf conftest.dSYM
7318
7319 fi
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7321 $as_echo "$lt_cv_ld_force_load" >&6; }
7322 case $host_os in
7323 rhapsody* | darwin1.[012])
7324 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7325 darwin1.*)
7326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7327 darwin*) # darwin 5.x on
7328 # if running on 10.5 or later, the deployment target defaults
7329 # to the OS version, if on x86, and 10.4, the deployment
7330 # target defaults to 10.4. Don't you love it?
7331 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7332 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7334 10.[012]*)
7335 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7336 10.*)
7337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7338 esac
7339 ;;
7340 esac
7341 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7342 _lt_dar_single_mod='$single_module'
7343 fi
7344 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7345 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7346 else
7347 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7348 fi
7349 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7350 _lt_dsymutil='~$DSYMUTIL $lib || :'
7351 else
7352 _lt_dsymutil=
7353 fi
7354 ;;
7355 esac
7356
7357 ac_ext=c
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7364 # On Suns, sometimes $CPP names a directory.
7365 if test -n "$CPP" && test -d "$CPP"; then
7366 CPP=
7367 fi
7368 if test -z "$CPP"; then
7369 if ${ac_cv_prog_CPP+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 # Double quotes because CPP needs to be expanded
7373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7374 do
7375 ac_preproc_ok=false
7376 for ac_c_preproc_warn_flag in '' yes
7377 do
7378 # Use a header file that comes with gcc, so configuring glibc
7379 # with a fresh cross-compiler works.
7380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 # <limits.h> exists even on freestanding compilers.
7382 # On the NeXT, cc -E runs the code through the compiler's parser,
7383 # not just through cpp. "Syntax error" is here to catch this case.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #ifdef __STDC__
7387 # include <limits.h>
7388 #else
7389 # include <assert.h>
7390 #endif
7391 Syntax error
7392 _ACEOF
7393 if ac_fn_c_try_cpp "$LINENO"; then :
7394
7395 else
7396 # Broken: fails on valid input.
7397 continue
7398 fi
7399 rm -f conftest.err conftest.i conftest.$ac_ext
7400
7401 # OK, works on sane cases. Now check whether nonexistent headers
7402 # can be detected and how.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <ac_nonexistent.h>
7406 _ACEOF
7407 if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: success on invalid input.
7409 continue
7410 else
7411 # Passes both tests.
7412 ac_preproc_ok=:
7413 break
7414 fi
7415 rm -f conftest.err conftest.i conftest.$ac_ext
7416
7417 done
7418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419 rm -f conftest.i conftest.err conftest.$ac_ext
7420 if $ac_preproc_ok; then :
7421 break
7422 fi
7423
7424 done
7425 ac_cv_prog_CPP=$CPP
7426
7427 fi
7428 CPP=$ac_cv_prog_CPP
7429 else
7430 ac_cv_prog_CPP=$CPP
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7433 $as_echo "$CPP" >&6; }
7434 ac_preproc_ok=false
7435 for ac_c_preproc_warn_flag in '' yes
7436 do
7437 # Use a header file that comes with gcc, so configuring glibc
7438 # with a fresh cross-compiler works.
7439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7440 # <limits.h> exists even on freestanding compilers.
7441 # On the NeXT, cc -E runs the code through the compiler's parser,
7442 # not just through cpp. "Syntax error" is here to catch this case.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #ifdef __STDC__
7446 # include <limits.h>
7447 #else
7448 # include <assert.h>
7449 #endif
7450 Syntax error
7451 _ACEOF
7452 if ac_fn_c_try_cpp "$LINENO"; then :
7453
7454 else
7455 # Broken: fails on valid input.
7456 continue
7457 fi
7458 rm -f conftest.err conftest.i conftest.$ac_ext
7459
7460 # OK, works on sane cases. Now check whether nonexistent headers
7461 # can be detected and how.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <ac_nonexistent.h>
7465 _ACEOF
7466 if ac_fn_c_try_cpp "$LINENO"; then :
7467 # Broken: success on invalid input.
7468 continue
7469 else
7470 # Passes both tests.
7471 ac_preproc_ok=:
7472 break
7473 fi
7474 rm -f conftest.err conftest.i conftest.$ac_ext
7475
7476 done
7477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7478 rm -f conftest.i conftest.err conftest.$ac_ext
7479 if $ac_preproc_ok; then :
7480
7481 else
7482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7485 See \`config.log' for more details" "$LINENO" 5; }
7486 fi
7487
7488 ac_ext=c
7489 ac_cpp='$CPP $CPPFLAGS'
7490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7496 $as_echo_n "checking for ANSI C header files... " >&6; }
7497 if ${ac_cv_header_stdc+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <stdlib.h>
7503 #include <stdarg.h>
7504 #include <string.h>
7505 #include <float.h>
7506
7507 int
7508 main ()
7509 {
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 ac_cv_header_stdc=yes
7517 else
7518 ac_cv_header_stdc=no
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521
7522 if test $ac_cv_header_stdc = yes; then
7523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 #include <string.h>
7527
7528 _ACEOF
7529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530 $EGREP "memchr" >/dev/null 2>&1; then :
7531
7532 else
7533 ac_cv_header_stdc=no
7534 fi
7535 rm -f conftest*
7536
7537 fi
7538
7539 if test $ac_cv_header_stdc = yes; then
7540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <stdlib.h>
7544
7545 _ACEOF
7546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7547 $EGREP "free" >/dev/null 2>&1; then :
7548
7549 else
7550 ac_cv_header_stdc=no
7551 fi
7552 rm -f conftest*
7553
7554 fi
7555
7556 if test $ac_cv_header_stdc = yes; then
7557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7558 if test "$cross_compiling" = yes; then :
7559 :
7560 else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #include <ctype.h>
7564 #include <stdlib.h>
7565 #if ((' ' & 0x0FF) == 0x020)
7566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7568 #else
7569 # define ISLOWER(c) \
7570 (('a' <= (c) && (c) <= 'i') \
7571 || ('j' <= (c) && (c) <= 'r') \
7572 || ('s' <= (c) && (c) <= 'z'))
7573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7574 #endif
7575
7576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7577 int
7578 main ()
7579 {
7580 int i;
7581 for (i = 0; i < 256; i++)
7582 if (XOR (islower (i), ISLOWER (i))
7583 || toupper (i) != TOUPPER (i))
7584 return 2;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_run "$LINENO"; then :
7589
7590 else
7591 ac_cv_header_stdc=no
7592 fi
7593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7594 conftest.$ac_objext conftest.beam conftest.$ac_ext
7595 fi
7596
7597 fi
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7600 $as_echo "$ac_cv_header_stdc" >&6; }
7601 if test $ac_cv_header_stdc = yes; then
7602
7603 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7604
7605 fi
7606
7607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7609 inttypes.h stdint.h unistd.h
7610 do :
7611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7613 "
7614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7615 cat >>confdefs.h <<_ACEOF
7616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7617 _ACEOF
7618
7619 fi
7620
7621 done
7622
7623
7624 for ac_header in dlfcn.h
7625 do :
7626 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7627 "
7628 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7629 cat >>confdefs.h <<_ACEOF
7630 #define HAVE_DLFCN_H 1
7631 _ACEOF
7632
7633 fi
7634
7635 done
7636
7637
7638
7639
7640
7641 # Set options
7642 # Check whether --enable-static was given.
7643 if test "${enable_static+set}" = set; then :
7644 enableval=$enable_static; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_static=yes ;;
7647 no) enable_static=no ;;
7648 *)
7649 enable_static=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_static=yes
7656 fi
7657 done
7658 IFS="$lt_save_ifs"
7659 ;;
7660 esac
7661 else
7662 enable_static=no
7663 fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 enable_dlopen=no
7675
7676
7677 enable_win32_dll=no
7678
7679
7680 # Check whether --enable-shared was given.
7681 if test "${enable_shared+set}" = set; then :
7682 enableval=$enable_shared; p=${PACKAGE-default}
7683 case $enableval in
7684 yes) enable_shared=yes ;;
7685 no) enable_shared=no ;;
7686 *)
7687 enable_shared=no
7688 # Look at the argument we got. We use all the common list separators.
7689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7690 for pkg in $enableval; do
7691 IFS="$lt_save_ifs"
7692 if test "X$pkg" = "X$p"; then
7693 enable_shared=yes
7694 fi
7695 done
7696 IFS="$lt_save_ifs"
7697 ;;
7698 esac
7699 else
7700 enable_shared=yes
7701 fi
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713 # Check whether --with-pic was given.
7714 if test "${with_pic+set}" = set; then :
7715 withval=$with_pic; lt_p=${PACKAGE-default}
7716 case $withval in
7717 yes|no) pic_mode=$withval ;;
7718 *)
7719 pic_mode=default
7720 # Look at the argument we got. We use all the common list separators.
7721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7722 for lt_pkg in $withval; do
7723 IFS="$lt_save_ifs"
7724 if test "X$lt_pkg" = "X$lt_p"; then
7725 pic_mode=yes
7726 fi
7727 done
7728 IFS="$lt_save_ifs"
7729 ;;
7730 esac
7731 else
7732 pic_mode=default
7733 fi
7734
7735
7736 test -z "$pic_mode" && pic_mode=default
7737
7738
7739
7740
7741
7742
7743
7744 # Check whether --enable-fast-install was given.
7745 if test "${enable_fast_install+set}" = set; then :
7746 enableval=$enable_fast_install; p=${PACKAGE-default}
7747 case $enableval in
7748 yes) enable_fast_install=yes ;;
7749 no) enable_fast_install=no ;;
7750 *)
7751 enable_fast_install=no
7752 # Look at the argument we got. We use all the common list separators.
7753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7754 for pkg in $enableval; do
7755 IFS="$lt_save_ifs"
7756 if test "X$pkg" = "X$p"; then
7757 enable_fast_install=yes
7758 fi
7759 done
7760 IFS="$lt_save_ifs"
7761 ;;
7762 esac
7763 else
7764 enable_fast_install=yes
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 # This can be used to rebuild libtool when needed
7778 LIBTOOL_DEPS="$ltmain"
7779
7780 # Always use our own libtool.
7781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812 test -z "$LN_S" && LN_S="ln -s"
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 if test -n "${ZSH_VERSION+set}" ; then
7828 setopt NO_GLOB_SUBST
7829 fi
7830
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7832 $as_echo_n "checking for objdir... " >&6; }
7833 if ${lt_cv_objdir+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 rm -f .libs 2>/dev/null
7837 mkdir .libs 2>/dev/null
7838 if test -d .libs; then
7839 lt_cv_objdir=.libs
7840 else
7841 # MS-DOS does not allow filenames that begin with a dot.
7842 lt_cv_objdir=_libs
7843 fi
7844 rmdir .libs 2>/dev/null
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7847 $as_echo "$lt_cv_objdir" >&6; }
7848 objdir=$lt_cv_objdir
7849
7850
7851
7852
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define LT_OBJDIR "$lt_cv_objdir/"
7856 _ACEOF
7857
7858
7859
7860
7861 case $host_os in
7862 aix3*)
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7867 COLLECT_NAMES=
7868 export COLLECT_NAMES
7869 fi
7870 ;;
7871 esac
7872
7873 # Global variables:
7874 ofile=libtool
7875 can_build_shared=yes
7876
7877 # All known linkers require a `.a' archive for static linking (except MSVC,
7878 # which needs '.lib').
7879 libext=a
7880
7881 with_gnu_ld="$lt_cv_prog_gnu_ld"
7882
7883 old_CC="$CC"
7884 old_CFLAGS="$CFLAGS"
7885
7886 # Set sane defaults for various variables
7887 test -z "$CC" && CC=cc
7888 test -z "$LTCC" && LTCC=$CC
7889 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7890 test -z "$LD" && LD=ld
7891 test -z "$ac_objext" && ac_objext=o
7892
7893 for cc_temp in $compiler""; do
7894 case $cc_temp in
7895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7897 \-*) ;;
7898 *) break;;
7899 esac
7900 done
7901 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7902
7903
7904 # Only perform the check for file, if the check method requires it
7905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7906 case $deplibs_check_method in
7907 file_magic*)
7908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7910 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7911 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 case $MAGIC_CMD in
7915 [\\/*] | ?:[\\/]*)
7916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7917 ;;
7918 *)
7919 lt_save_MAGIC_CMD="$MAGIC_CMD"
7920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922 for ac_dir in $ac_dummy; do
7923 IFS="$lt_save_ifs"
7924 test -z "$ac_dir" && ac_dir=.
7925 if test -f $ac_dir/${ac_tool_prefix}file; then
7926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7927 if test -n "$file_magic_test_file"; then
7928 case $deplibs_check_method in
7929 "file_magic "*)
7930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933 $EGREP "$file_magic_regex" > /dev/null; then
7934 :
7935 else
7936 cat <<_LT_EOF 1>&2
7937
7938 *** Warning: the command libtool uses to detect shared libraries,
7939 *** $file_magic_cmd, produces output that libtool cannot recognize.
7940 *** The result is that libtool may fail to recognize shared libraries
7941 *** as such. This will affect the creation of libtool libraries that
7942 *** depend on shared libraries, but programs linked with such libtool
7943 *** libraries will work regardless of this problem. Nevertheless, you
7944 *** may want to report the problem to your system manager and/or to
7945 *** bug-libtool@gnu.org
7946
7947 _LT_EOF
7948 fi ;;
7949 esac
7950 fi
7951 break
7952 fi
7953 done
7954 IFS="$lt_save_ifs"
7955 MAGIC_CMD="$lt_save_MAGIC_CMD"
7956 ;;
7957 esac
7958 fi
7959
7960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7961 if test -n "$MAGIC_CMD"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7963 $as_echo "$MAGIC_CMD" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970
7971
7972
7973 if test -z "$lt_cv_path_MAGIC_CMD"; then
7974 if test -n "$ac_tool_prefix"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7976 $as_echo_n "checking for file... " >&6; }
7977 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 case $MAGIC_CMD in
7981 [\\/*] | ?:[\\/]*)
7982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7983 ;;
7984 *)
7985 lt_save_MAGIC_CMD="$MAGIC_CMD"
7986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7988 for ac_dir in $ac_dummy; do
7989 IFS="$lt_save_ifs"
7990 test -z "$ac_dir" && ac_dir=.
7991 if test -f $ac_dir/file; then
7992 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7993 if test -n "$file_magic_test_file"; then
7994 case $deplibs_check_method in
7995 "file_magic "*)
7996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7999 $EGREP "$file_magic_regex" > /dev/null; then
8000 :
8001 else
8002 cat <<_LT_EOF 1>&2
8003
8004 *** Warning: the command libtool uses to detect shared libraries,
8005 *** $file_magic_cmd, produces output that libtool cannot recognize.
8006 *** The result is that libtool may fail to recognize shared libraries
8007 *** as such. This will affect the creation of libtool libraries that
8008 *** depend on shared libraries, but programs linked with such libtool
8009 *** libraries will work regardless of this problem. Nevertheless, you
8010 *** may want to report the problem to your system manager and/or to
8011 *** bug-libtool@gnu.org
8012
8013 _LT_EOF
8014 fi ;;
8015 esac
8016 fi
8017 break
8018 fi
8019 done
8020 IFS="$lt_save_ifs"
8021 MAGIC_CMD="$lt_save_MAGIC_CMD"
8022 ;;
8023 esac
8024 fi
8025
8026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if test -n "$MAGIC_CMD"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8029 $as_echo "$MAGIC_CMD" >&6; }
8030 else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8033 fi
8034
8035
8036 else
8037 MAGIC_CMD=:
8038 fi
8039 fi
8040
8041 fi
8042 ;;
8043 esac
8044
8045 # Use C for the default configuration in the libtool script
8046
8047 lt_save_CC="$CC"
8048 ac_ext=c
8049 ac_cpp='$CPP $CPPFLAGS'
8050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8053
8054
8055 # Source file extension for C test sources.
8056 ac_ext=c
8057
8058 # Object file extension for compiled C test sources.
8059 objext=o
8060 objext=$objext
8061
8062 # Code to be used in simple compile tests
8063 lt_simple_compile_test_code="int some_variable = 0;"
8064
8065 # Code to be used in simple link tests
8066 lt_simple_link_test_code='int main(){return(0);}'
8067
8068
8069
8070
8071
8072
8073
8074 # If no C compiler was specified, use CC.
8075 LTCC=${LTCC-"$CC"}
8076
8077 # If no C compiler flags were specified, use CFLAGS.
8078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8079
8080 # Allow CC to be a program name with arguments.
8081 compiler=$CC
8082
8083 # Save the default compiler, since it gets overwritten when the other
8084 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8085 compiler_DEFAULT=$CC
8086
8087 # save warnings/boilerplate of simple test code
8088 ac_outfile=conftest.$ac_objext
8089 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091 _lt_compiler_boilerplate=`cat conftest.err`
8092 $RM -r conftest*
8093
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097 _lt_linker_boilerplate=`cat conftest.err`
8098 $RM -r conftest*
8099
8100
8101 ## CAVEAT EMPTOR:
8102 ## There is no encapsulation within the following macros, do not change
8103 ## the running order or otherwise move them around unless you know exactly
8104 ## what you are doing...
8105 if test -n "$compiler"; then
8106
8107 lt_prog_compiler_no_builtin_flag=
8108
8109 if test "$GCC" = yes; then
8110 case $cc_basename in
8111 nvcc*)
8112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8113 *)
8114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8115 esac
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8119 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 lt_cv_prog_compiler_rtti_exceptions=no
8123 ac_outfile=conftest.$ac_objext
8124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125 lt_compiler_flag="-fno-rtti -fno-exceptions"
8126 # Insert the option either (1) after the last *FLAGS variable, or
8127 # (2) before a word containing "conftest.", or (3) at the end.
8128 # Note that $ac_compile itself does not contain backslashes and begins
8129 # with a dollar sign (not a hyphen), so the echo should work correctly.
8130 # The option is referenced via a variable to avoid confusing sed.
8131 lt_compile=`echo "$ac_compile" | $SED \
8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134 -e 's:$: $lt_compiler_flag:'`
8135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8136 (eval "$lt_compile" 2>conftest.err)
8137 ac_status=$?
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 if (exit $ac_status) && test -s "$ac_outfile"; then
8141 # The compiler can only warn and ignore the option if not recognized
8142 # So say no if there are warnings other than the usual output.
8143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8146 lt_cv_prog_compiler_rtti_exceptions=yes
8147 fi
8148 fi
8149 $RM -r conftest*
8150
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8154
8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8157 else
8158 :
8159 fi
8160
8161 fi
8162
8163
8164
8165
8166
8167
8168 lt_prog_compiler_wl=
8169 lt_prog_compiler_pic=
8170 lt_prog_compiler_static=
8171
8172
8173 if test "$GCC" = yes; then
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_static='-static'
8176
8177 case $host_os in
8178 aix*)
8179 # All AIX code is PIC.
8180 if test "$host_cpu" = ia64; then
8181 # AIX 5 now supports IA64 processor
8182 lt_prog_compiler_static='-Bstatic'
8183 fi
8184 ;;
8185
8186 amigaos*)
8187 case $host_cpu in
8188 powerpc)
8189 # see comment about AmigaOS4 .so support
8190 lt_prog_compiler_pic='-fPIC'
8191 ;;
8192 m68k)
8193 # FIXME: we need at least 68020 code to build shared libraries, but
8194 # adding the `-m68020' flag to GCC prevents building anything better,
8195 # like `-m68040'.
8196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8197 ;;
8198 esac
8199 ;;
8200
8201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8202 # PIC is the default for these OSes.
8203 ;;
8204
8205 mingw* | cygwin* | pw32* | os2* | cegcc*)
8206 # This hack is so that the source file can tell whether it is being
8207 # built for inclusion in a dll (and should export symbols for example).
8208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8209 # (--disable-auto-import) libraries
8210 lt_prog_compiler_pic='-DDLL_EXPORT'
8211 ;;
8212
8213 darwin* | rhapsody*)
8214 # PIC is the default on this platform
8215 # Common symbols not allowed in MH_DYLIB files
8216 lt_prog_compiler_pic='-fno-common'
8217 ;;
8218
8219 haiku*)
8220 # PIC is the default for Haiku.
8221 # The "-static" flag exists, but is broken.
8222 lt_prog_compiler_static=
8223 ;;
8224
8225 hpux*)
8226 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8227 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8228 # sets the default TLS model and affects inlining.
8229 case $host_cpu in
8230 hppa*64*)
8231 # +Z the default
8232 ;;
8233 *)
8234 lt_prog_compiler_pic='-fPIC'
8235 ;;
8236 esac
8237 ;;
8238
8239 interix[3-9]*)
8240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8241 # Instead, we relocate shared libraries at runtime.
8242 ;;
8243
8244 msdosdjgpp*)
8245 # Just because we use GCC doesn't mean we suddenly get shared libraries
8246 # on systems that don't support them.
8247 lt_prog_compiler_can_build_shared=no
8248 enable_shared=no
8249 ;;
8250
8251 *nto* | *qnx*)
8252 # QNX uses GNU C++, but need to define -shared option too, otherwise
8253 # it will coredump.
8254 lt_prog_compiler_pic='-fPIC -shared'
8255 ;;
8256
8257 sysv4*MP*)
8258 if test -d /usr/nec; then
8259 lt_prog_compiler_pic=-Kconform_pic
8260 fi
8261 ;;
8262
8263 *)
8264 lt_prog_compiler_pic='-fPIC'
8265 ;;
8266 esac
8267
8268 case $cc_basename in
8269 nvcc*) # Cuda Compiler Driver 2.2
8270 lt_prog_compiler_wl='-Xlinker '
8271 if test -n "$lt_prog_compiler_pic"; then
8272 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8273 fi
8274 ;;
8275 esac
8276 else
8277 # PORTME Check for flag to pass linker flags through the system compiler.
8278 case $host_os in
8279 aix*)
8280 lt_prog_compiler_wl='-Wl,'
8281 if test "$host_cpu" = ia64; then
8282 # AIX 5 now supports IA64 processor
8283 lt_prog_compiler_static='-Bstatic'
8284 else
8285 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8286 fi
8287 ;;
8288
8289 mingw* | cygwin* | pw32* | os2* | cegcc*)
8290 # This hack is so that the source file can tell whether it is being
8291 # built for inclusion in a dll (and should export symbols for example).
8292 lt_prog_compiler_pic='-DDLL_EXPORT'
8293 ;;
8294
8295 hpux9* | hpux10* | hpux11*)
8296 lt_prog_compiler_wl='-Wl,'
8297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8298 # not for PA HP-UX.
8299 case $host_cpu in
8300 hppa*64*|ia64*)
8301 # +Z the default
8302 ;;
8303 *)
8304 lt_prog_compiler_pic='+Z'
8305 ;;
8306 esac
8307 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8308 lt_prog_compiler_static='${wl}-a ${wl}archive'
8309 ;;
8310
8311 irix5* | irix6* | nonstopux*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # PIC (with -KPIC) is the default.
8314 lt_prog_compiler_static='-non_shared'
8315 ;;
8316
8317 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8318 case $cc_basename in
8319 # old Intel for x86_64 which still supported -KPIC.
8320 ecc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-static'
8324 ;;
8325 # icc used to be incompatible with GCC.
8326 # ICC 10 doesn't accept -KPIC any more.
8327 icc* | ifort*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-fPIC'
8330 lt_prog_compiler_static='-static'
8331 ;;
8332 # Lahey Fortran 8.1.
8333 lf95*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='--shared'
8336 lt_prog_compiler_static='--static'
8337 ;;
8338 nagfor*)
8339 # NAG Fortran compiler
8340 lt_prog_compiler_wl='-Wl,-Wl,,'
8341 lt_prog_compiler_pic='-PIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8345 # Portland Group compilers (*not* the Pentium gcc compiler,
8346 # which looks to be a dead project)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-fpic'
8349 lt_prog_compiler_static='-Bstatic'
8350 ;;
8351 ccc*)
8352 lt_prog_compiler_wl='-Wl,'
8353 # All Alpha code is PIC.
8354 lt_prog_compiler_static='-non_shared'
8355 ;;
8356 xl* | bgxl* | bgf* | mpixl*)
8357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8358 lt_prog_compiler_wl='-Wl,'
8359 lt_prog_compiler_pic='-qpic'
8360 lt_prog_compiler_static='-qstaticlink'
8361 ;;
8362 *)
8363 case `$CC -V 2>&1 | sed 5q` in
8364 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8368 lt_prog_compiler_wl=''
8369 ;;
8370 *Sun\ F* | *Sun*Fortran*)
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 lt_prog_compiler_wl='-Qoption ld '
8374 ;;
8375 *Sun\ C*)
8376 # Sun C 5.9
8377 lt_prog_compiler_pic='-KPIC'
8378 lt_prog_compiler_static='-Bstatic'
8379 lt_prog_compiler_wl='-Wl,'
8380 ;;
8381 *Intel*\ [CF]*Compiler*)
8382 lt_prog_compiler_wl='-Wl,'
8383 lt_prog_compiler_pic='-fPIC'
8384 lt_prog_compiler_static='-static'
8385 ;;
8386 *Portland\ Group*)
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-fpic'
8389 lt_prog_compiler_static='-Bstatic'
8390 ;;
8391 esac
8392 ;;
8393 esac
8394 ;;
8395
8396 newsos6)
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 ;;
8400
8401 *nto* | *qnx*)
8402 # QNX uses GNU C++, but need to define -shared option too, otherwise
8403 # it will coredump.
8404 lt_prog_compiler_pic='-fPIC -shared'
8405 ;;
8406
8407 osf3* | osf4* | osf5*)
8408 lt_prog_compiler_wl='-Wl,'
8409 # All OSF/1 code is PIC.
8410 lt_prog_compiler_static='-non_shared'
8411 ;;
8412
8413 rdos*)
8414 lt_prog_compiler_static='-non_shared'
8415 ;;
8416
8417 solaris*)
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 case $cc_basename in
8421 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8422 lt_prog_compiler_wl='-Qoption ld ';;
8423 *)
8424 lt_prog_compiler_wl='-Wl,';;
8425 esac
8426 ;;
8427
8428 sunos4*)
8429 lt_prog_compiler_wl='-Qoption ld '
8430 lt_prog_compiler_pic='-PIC'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433
8434 sysv4 | sysv4.2uw2* | sysv4.3*)
8435 lt_prog_compiler_wl='-Wl,'
8436 lt_prog_compiler_pic='-KPIC'
8437 lt_prog_compiler_static='-Bstatic'
8438 ;;
8439
8440 sysv4*MP*)
8441 if test -d /usr/nec ;then
8442 lt_prog_compiler_pic='-Kconform_pic'
8443 lt_prog_compiler_static='-Bstatic'
8444 fi
8445 ;;
8446
8447 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 ;;
8452
8453 unicos*)
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_can_build_shared=no
8456 ;;
8457
8458 uts4*)
8459 lt_prog_compiler_pic='-pic'
8460 lt_prog_compiler_static='-Bstatic'
8461 ;;
8462
8463 *)
8464 lt_prog_compiler_can_build_shared=no
8465 ;;
8466 esac
8467 fi
8468
8469 case $host_os in
8470 # For platforms which do not support PIC, -DPIC is meaningless:
8471 *djgpp*)
8472 lt_prog_compiler_pic=
8473 ;;
8474 *)
8475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8476 ;;
8477 esac
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8480 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8481 if ${lt_cv_prog_compiler_pic+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8487 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8488 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8489
8490 #
8491 # Check to make sure the PIC flag actually works.
8492 #
8493 if test -n "$lt_prog_compiler_pic"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8495 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8496 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 lt_cv_prog_compiler_pic_works=no
8500 ac_outfile=conftest.$ac_objext
8501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8503 # Insert the option either (1) after the last *FLAGS variable, or
8504 # (2) before a word containing "conftest.", or (3) at the end.
8505 # Note that $ac_compile itself does not contain backslashes and begins
8506 # with a dollar sign (not a hyphen), so the echo should work correctly.
8507 # The option is referenced via a variable to avoid confusing sed.
8508 lt_compile=`echo "$ac_compile" | $SED \
8509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8511 -e 's:$: $lt_compiler_flag:'`
8512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8513 (eval "$lt_compile" 2>conftest.err)
8514 ac_status=$?
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 if (exit $ac_status) && test -s "$ac_outfile"; then
8518 # The compiler can only warn and ignore the option if not recognized
8519 # So say no if there are warnings other than the usual output.
8520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler_pic_works=yes
8524 fi
8525 fi
8526 $RM -r conftest*
8527
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8530 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8531
8532 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8533 case $lt_prog_compiler_pic in
8534 "" | " "*) ;;
8535 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8536 esac
8537 else
8538 lt_prog_compiler_pic=
8539 lt_prog_compiler_can_build_shared=no
8540 fi
8541
8542 fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 #
8555 # Check to make sure the static flag actually works.
8556 #
8557 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8559 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8560 if ${lt_cv_prog_compiler_static_works+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 lt_cv_prog_compiler_static_works=no
8564 save_LDFLAGS="$LDFLAGS"
8565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8568 # The linker can only warn and ignore the option if not recognized
8569 # So say no if there are warnings
8570 if test -s conftest.err; then
8571 # Append any errors to the config.log.
8572 cat conftest.err 1>&5
8573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8575 if diff conftest.exp conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_static_works=yes
8577 fi
8578 else
8579 lt_cv_prog_compiler_static_works=yes
8580 fi
8581 fi
8582 $RM -r conftest*
8583 LDFLAGS="$save_LDFLAGS"
8584
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8587 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8588
8589 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8590 :
8591 else
8592 lt_prog_compiler_static=
8593 fi
8594
8595
8596
8597
8598
8599
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8603 if ${lt_cv_prog_compiler_c_o+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 lt_cv_prog_compiler_c_o=no
8607 $RM -r conftest 2>/dev/null
8608 mkdir conftest
8609 cd conftest
8610 mkdir out
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612
8613 lt_compiler_flag="-o out/conftest2.$ac_objext"
8614 # Insert the option either (1) after the last *FLAGS variable, or
8615 # (2) before a word containing "conftest.", or (3) at the end.
8616 # Note that $ac_compile itself does not contain backslashes and begins
8617 # with a dollar sign (not a hyphen), so the echo should work correctly.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>out/conftest.err)
8624 ac_status=$?
8625 cat out/conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8628 then
8629 # The compiler can only warn and ignore the option if not recognized
8630 # So say no if there are warnings
8631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_c_o=yes
8635 fi
8636 fi
8637 chmod u+w . 2>&5
8638 $RM -r conftest*
8639 # SGI C++ compiler will create directory out/ii_files/ for
8640 # template instantiation
8641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8642 $RM out/* && rmdir out
8643 cd ..
8644 $RM -r conftest
8645 $RM -r conftest*
8646
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8650
8651
8652
8653
8654
8655
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8658 if ${lt_cv_prog_compiler_c_o+:} false; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 lt_cv_prog_compiler_c_o=no
8662 $RM -r conftest 2>/dev/null
8663 mkdir conftest
8664 cd conftest
8665 mkdir out
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667
8668 lt_compiler_flag="-o out/conftest2.$ac_objext"
8669 # Insert the option either (1) after the last *FLAGS variable, or
8670 # (2) before a word containing "conftest.", or (3) at the end.
8671 # Note that $ac_compile itself does not contain backslashes and begins
8672 # with a dollar sign (not a hyphen), so the echo should work correctly.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>out/conftest.err)
8679 ac_status=$?
8680 cat out/conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8683 then
8684 # The compiler can only warn and ignore the option if not recognized
8685 # So say no if there are warnings
8686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8689 lt_cv_prog_compiler_c_o=yes
8690 fi
8691 fi
8692 chmod u+w . 2>&5
8693 $RM -r conftest*
8694 # SGI C++ compiler will create directory out/ii_files/ for
8695 # template instantiation
8696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8697 $RM out/* && rmdir out
8698 cd ..
8699 $RM -r conftest
8700 $RM -r conftest*
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8705
8706
8707
8708
8709 hard_links="nottested"
8710 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8711 # do not overwrite the value of need_locks provided by the user
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8713 $as_echo_n "checking if we can lock with hard links... " >&6; }
8714 hard_links=yes
8715 $RM -r conftest*
8716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8717 touch conftest.a
8718 ln conftest.a conftest.b 2>&5 || hard_links=no
8719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8721 $as_echo "$hard_links" >&6; }
8722 if test "$hard_links" = no; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8725 need_locks=warn
8726 fi
8727 else
8728 need_locks=no
8729 fi
8730
8731
8732
8733
8734
8735
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8737 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8738
8739 runpath_var=
8740 allow_undefined_flag=
8741 always_export_symbols=no
8742 archive_cmds=
8743 archive_expsym_cmds=
8744 compiler_needs_object=no
8745 enable_shared_with_static_runtimes=no
8746 export_dynamic_flag_spec=
8747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8748 hardcode_automatic=no
8749 hardcode_direct=no
8750 hardcode_direct_absolute=no
8751 hardcode_libdir_flag_spec=
8752 hardcode_libdir_separator=
8753 hardcode_minus_L=no
8754 hardcode_shlibpath_var=unsupported
8755 inherit_rpath=no
8756 link_all_deplibs=unknown
8757 module_cmds=
8758 module_expsym_cmds=
8759 old_archive_from_new_cmds=
8760 old_archive_from_expsyms_cmds=
8761 thread_safe_flag_spec=
8762 whole_archive_flag_spec=
8763 # include_expsyms should be a list of space-separated symbols to be *always*
8764 # included in the symbol list
8765 include_expsyms=
8766 # exclude_expsyms can be an extended regexp of symbols to exclude
8767 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8768 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8769 # as well as any symbol that contains `d'.
8770 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8771 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8772 # platforms (ab)use it in PIC code, but their linkers get confused if
8773 # the symbol is explicitly referenced. Since portable code cannot
8774 # rely on this symbol name, it's probably fine to never include it in
8775 # preloaded symbol tables.
8776 # Exclude shared library initialization/finalization symbols.
8777 extract_expsyms_cmds=
8778
8779 case $host_os in
8780 cygwin* | mingw* | pw32* | cegcc*)
8781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8782 # When not using gcc, we currently assume that we are using
8783 # Microsoft Visual C++.
8784 if test "$GCC" != yes; then
8785 with_gnu_ld=no
8786 fi
8787 ;;
8788 interix*)
8789 # we just hope/assume this is gcc and not c89 (= MSVC++)
8790 with_gnu_ld=yes
8791 ;;
8792 openbsd*)
8793 with_gnu_ld=no
8794 ;;
8795 esac
8796
8797 ld_shlibs=yes
8798
8799 # On some targets, GNU ld is compatible enough with the native linker
8800 # that we're better off using the native interface for both.
8801 lt_use_gnu_ld_interface=no
8802 if test "$with_gnu_ld" = yes; then
8803 case $host_os in
8804 aix*)
8805 # The AIX port of GNU ld has always aspired to compatibility
8806 # with the native linker. However, as the warning in the GNU ld
8807 # block says, versions before 2.19.5* couldn't really create working
8808 # shared libraries, regardless of the interface used.
8809 case `$LD -v 2>&1` in
8810 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8811 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8812 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8813 *)
8814 lt_use_gnu_ld_interface=yes
8815 ;;
8816 esac
8817 ;;
8818 *)
8819 lt_use_gnu_ld_interface=yes
8820 ;;
8821 esac
8822 fi
8823
8824 if test "$lt_use_gnu_ld_interface" = yes; then
8825 # If archive_cmds runs LD, not CC, wlarc should be empty
8826 wlarc='${wl}'
8827
8828 # Set some defaults for GNU ld with shared library support. These
8829 # are reset later if shared libraries are not supported. Putting them
8830 # here allows them to be overridden if necessary.
8831 runpath_var=LD_RUN_PATH
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 export_dynamic_flag_spec='${wl}--export-dynamic'
8834 # ancient GNU ld didn't support --whole-archive et. al.
8835 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8836 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8837 else
8838 whole_archive_flag_spec=
8839 fi
8840 supports_anon_versioning=no
8841 case `$LD -v 2>&1` in
8842 *GNU\ gold*) supports_anon_versioning=yes ;;
8843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8846 *\ 2.11.*) ;; # other 2.11 versions
8847 *) supports_anon_versioning=yes ;;
8848 esac
8849
8850 # See if GNU ld supports shared libraries.
8851 case $host_os in
8852 aix[3-9]*)
8853 # On AIX/PPC, the GNU linker is very broken
8854 if test "$host_cpu" != ia64; then
8855 ld_shlibs=no
8856 cat <<_LT_EOF 1>&2
8857
8858 *** Warning: the GNU linker, at least up to release 2.19, is reported
8859 *** to be unable to reliably create shared libraries on AIX.
8860 *** Therefore, libtool is disabling shared libraries support. If you
8861 *** really care for shared libraries, you may want to install binutils
8862 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8863 *** You will then need to restart the configuration process.
8864
8865 _LT_EOF
8866 fi
8867 ;;
8868
8869 amigaos*)
8870 case $host_cpu in
8871 powerpc)
8872 # see comment about AmigaOS4 .so support
8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds=''
8875 ;;
8876 m68k)
8877 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)'
8878 hardcode_libdir_flag_spec='-L$libdir'
8879 hardcode_minus_L=yes
8880 ;;
8881 esac
8882 ;;
8883
8884 beos*)
8885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8886 allow_undefined_flag=unsupported
8887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8888 # support --undefined. This deserves some investigation. FIXME
8889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 else
8891 ld_shlibs=no
8892 fi
8893 ;;
8894
8895 cygwin* | mingw* | pw32* | cegcc*)
8896 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8897 # as there is no search path for DLLs.
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 export_dynamic_flag_spec='${wl}--export-all-symbols'
8900 allow_undefined_flag=unsupported
8901 always_export_symbols=no
8902 enable_shared_with_static_runtimes=yes
8903 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'
8904 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8905
8906 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8908 # If the export-symbols file already is a .def file (1st line
8909 # is EXPORTS), use it as is; otherwise, prepend...
8910 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8911 cp $export_symbols $output_objdir/$soname.def;
8912 else
8913 echo EXPORTS > $output_objdir/$soname.def;
8914 cat $export_symbols >> $output_objdir/$soname.def;
8915 fi~
8916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8917 else
8918 ld_shlibs=no
8919 fi
8920 ;;
8921
8922 haiku*)
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 link_all_deplibs=yes
8925 ;;
8926
8927 interix[3-9]*)
8928 hardcode_direct=no
8929 hardcode_shlibpath_var=no
8930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8931 export_dynamic_flag_spec='${wl}-E'
8932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8933 # Instead, shared libraries are loaded at an image base (0x10000000 by
8934 # default) and relocated if they conflict, which is a slow very memory
8935 # consuming and fragmenting process. To avoid this, we pick a random,
8936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8937 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8939 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'
8940 ;;
8941
8942 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8943 tmp_diet=no
8944 if test "$host_os" = linux-dietlibc; then
8945 case $cc_basename in
8946 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8947 esac
8948 fi
8949 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8950 && test "$tmp_diet" = no
8951 then
8952 tmp_addflag=' $pic_flag'
8953 tmp_sharedflag='-shared'
8954 case $cc_basename,$host_cpu in
8955 pgcc*) # Portland Group C compiler
8956 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'
8957 tmp_addflag=' $pic_flag'
8958 ;;
8959 pgf77* | pgf90* | pgf95* | pgfortran*)
8960 # Portland Group f77 and f90 compilers
8961 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'
8962 tmp_addflag=' $pic_flag -Mnomain' ;;
8963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8964 tmp_addflag=' -i_dynamic' ;;
8965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8966 tmp_addflag=' -i_dynamic -nofor_main' ;;
8967 ifc* | ifort*) # Intel Fortran compiler
8968 tmp_addflag=' -nofor_main' ;;
8969 lf95*) # Lahey Fortran 8.1
8970 whole_archive_flag_spec=
8971 tmp_sharedflag='--shared' ;;
8972 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8973 tmp_sharedflag='-qmkshrobj'
8974 tmp_addflag= ;;
8975 nvcc*) # Cuda Compiler Driver 2.2
8976 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'
8977 compiler_needs_object=yes
8978 ;;
8979 esac
8980 case `$CC -V 2>&1 | sed 5q` in
8981 *Sun\ C*) # Sun C 5.9
8982 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'
8983 compiler_needs_object=yes
8984 tmp_sharedflag='-G' ;;
8985 *Sun\ F*) # Sun Fortran 8.3
8986 tmp_sharedflag='-G' ;;
8987 esac
8988 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989
8990 if test "x$supports_anon_versioning" = xyes; then
8991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993 echo "local: *; };" >> $output_objdir/$libname.ver~
8994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8995 fi
8996
8997 case $cc_basename in
8998 xlf* | bgf* | bgxlf* | mpixlf*)
8999 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9000 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9003 if test "x$supports_anon_versioning" = xyes; then
9004 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9006 echo "local: *; };" >> $output_objdir/$libname.ver~
9007 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9008 fi
9009 ;;
9010 esac
9011 else
9012 ld_shlibs=no
9013 fi
9014 ;;
9015
9016 netbsd*)
9017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9018 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9019 wlarc=
9020 else
9021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023 fi
9024 ;;
9025
9026 solaris*)
9027 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9030
9031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9032 *** create shared libraries on Solaris systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.9.1 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9037
9038 _LT_EOF
9039 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 else
9043 ld_shlibs=no
9044 fi
9045 ;;
9046
9047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9048 case `$LD -v 2>&1` in
9049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9050 ld_shlibs=no
9051 cat <<_LT_EOF 1>&2
9052
9053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9054 *** reliably create shared libraries on SCO systems. Therefore, libtool
9055 *** is disabling shared libraries support. We urge you to upgrade GNU
9056 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9057 *** your PATH or compiler configuration so that the native linker is
9058 *** used, and then restart.
9059
9060 _LT_EOF
9061 ;;
9062 *)
9063 # For security reasons, it is highly recommended that you always
9064 # use absolute paths for naming shared libraries, and exclude the
9065 # DT_RUNPATH tag from executables and libraries. But doing so
9066 # requires that you compile everything twice, which is a pain.
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071 else
9072 ld_shlibs=no
9073 fi
9074 ;;
9075 esac
9076 ;;
9077
9078 sunos4*)
9079 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080 wlarc=
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
9083 ;;
9084
9085 *)
9086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089 else
9090 ld_shlibs=no
9091 fi
9092 ;;
9093 esac
9094
9095 if test "$ld_shlibs" = no; then
9096 runpath_var=
9097 hardcode_libdir_flag_spec=
9098 export_dynamic_flag_spec=
9099 whole_archive_flag_spec=
9100 fi
9101 else
9102 # PORTME fill in a description of your system's linker (not GNU ld)
9103 case $host_os in
9104 aix3*)
9105 allow_undefined_flag=unsupported
9106 always_export_symbols=yes
9107 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'
9108 # Note: this linker hardcodes the directories in LIBPATH if there
9109 # are no directories specified by -L.
9110 hardcode_minus_L=yes
9111 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9112 # Neither direct hardcoding nor static linking is supported with a
9113 # broken collect2.
9114 hardcode_direct=unsupported
9115 fi
9116 ;;
9117
9118 aix[4-9]*)
9119 if test "$host_cpu" = ia64; then
9120 # On IA64, the linker does run time linking by default, so we don't
9121 # have to do anything special.
9122 aix_use_runtimelinking=no
9123 exp_sym_flag='-Bexport'
9124 no_entry_flag=""
9125 else
9126 # If we're using GNU nm, then we don't want the "-C" option.
9127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9128 # Also, AIX nm treats weak defined symbols like other global
9129 # defined symbols, whereas GNU nm marks them as "W".
9130 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9131 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'
9132 else
9133 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'
9134 fi
9135 aix_use_runtimelinking=no
9136
9137 # Test if we are trying to use run time linking or normal
9138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9139 # need to do runtime linking.
9140 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9141 for ld_flag in $LDFLAGS; do
9142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9143 aix_use_runtimelinking=yes
9144 break
9145 fi
9146 done
9147 ;;
9148 esac
9149
9150 exp_sym_flag='-bexport'
9151 no_entry_flag='-bnoentry'
9152 fi
9153
9154 # When large executables or shared objects are built, AIX ld can
9155 # have problems creating the table of contents. If linking a library
9156 # or program results in "error TOC overflow" add -mminimal-toc to
9157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159
9160 archive_cmds=''
9161 hardcode_direct=yes
9162 hardcode_direct_absolute=yes
9163 hardcode_libdir_separator=':'
9164 link_all_deplibs=yes
9165 file_list_spec='${wl}-f,'
9166
9167 if test "$GCC" = yes; then
9168 case $host_os in aix4.[012]|aix4.[012].*)
9169 # We only want to do this on AIX 4.2 and lower, the check
9170 # below for broken collect2 doesn't work under 4.3+
9171 collect2name=`${CC} -print-prog-name=collect2`
9172 if test -f "$collect2name" &&
9173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9174 then
9175 # We have reworked collect2
9176 :
9177 else
9178 # We have old collect2
9179 hardcode_direct=unsupported
9180 # It fails to find uninstalled libraries when the uninstalled
9181 # path is not listed in the libpath. Setting hardcode_minus_L
9182 # to unsupported forces relinking
9183 hardcode_minus_L=yes
9184 hardcode_libdir_flag_spec='-L$libdir'
9185 hardcode_libdir_separator=
9186 fi
9187 ;;
9188 esac
9189 shared_flag='-shared'
9190 if test "$aix_use_runtimelinking" = yes; then
9191 shared_flag="$shared_flag "'${wl}-G'
9192 fi
9193 else
9194 # not using gcc
9195 if test "$host_cpu" = ia64; then
9196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9197 # chokes on -Wl,-G. The following line is correct:
9198 shared_flag='-G'
9199 else
9200 if test "$aix_use_runtimelinking" = yes; then
9201 shared_flag='${wl}-G'
9202 else
9203 shared_flag='${wl}-bM:SRE'
9204 fi
9205 fi
9206 fi
9207
9208 export_dynamic_flag_spec='${wl}-bexpall'
9209 # It seems that -bexpall does not export symbols beginning with
9210 # underscore (_), so it is better to generate a list of symbols to export.
9211 always_export_symbols=yes
9212 if test "$aix_use_runtimelinking" = yes; then
9213 # Warning - without using the other runtime loading flags (-brtl),
9214 # -berok will link without error, but may produce a broken library.
9215 allow_undefined_flag='-berok'
9216 # Determine the default libpath from the value encoded in an
9217 # empty executable.
9218 if test "${lt_cv_aix_libpath+set}" = set; then
9219 aix_libpath=$lt_cv_aix_libpath
9220 else
9221 if ${lt_cv_aix_libpath_+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236
9237 lt_aix_libpath_sed='
9238 /Import File Strings/,/^$/ {
9239 /^0/ {
9240 s/^0 *\([^ ]*\) *$/\1/
9241 p
9242 }
9243 }'
9244 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245 # Check for a 64-bit object if we didn't find anything.
9246 if test -z "$lt_cv_aix_libpath_"; then
9247 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248 fi
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 if test -z "$lt_cv_aix_libpath_"; then
9253 lt_cv_aix_libpath_="/usr/lib:/lib"
9254 fi
9255
9256 fi
9257
9258 aix_libpath=$lt_cv_aix_libpath_
9259 fi
9260
9261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9262 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"
9263 else
9264 if test "$host_cpu" = ia64; then
9265 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9266 allow_undefined_flag="-z nodefs"
9267 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"
9268 else
9269 # Determine the default libpath from the value encoded in an
9270 # empty executable.
9271 if test "${lt_cv_aix_libpath+set}" = set; then
9272 aix_libpath=$lt_cv_aix_libpath
9273 else
9274 if ${lt_cv_aix_libpath_+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279
9280 int
9281 main ()
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289
9290 lt_aix_libpath_sed='
9291 /Import File Strings/,/^$/ {
9292 /^0/ {
9293 s/^0 *\([^ ]*\) *$/\1/
9294 p
9295 }
9296 }'
9297 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9298 # Check for a 64-bit object if we didn't find anything.
9299 if test -z "$lt_cv_aix_libpath_"; then
9300 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9301 fi
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 if test -z "$lt_cv_aix_libpath_"; then
9306 lt_cv_aix_libpath_="/usr/lib:/lib"
9307 fi
9308
9309 fi
9310
9311 aix_libpath=$lt_cv_aix_libpath_
9312 fi
9313
9314 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315 # Warning - without using the other run time loading flags,
9316 # -berok will link without error, but may produce a broken library.
9317 no_undefined_flag=' ${wl}-bernotok'
9318 allow_undefined_flag=' ${wl}-berok'
9319 if test "$with_gnu_ld" = yes; then
9320 # We only use this code for GNU lds that support --whole-archive.
9321 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9322 else
9323 # Exported symbols can be pulled into shared objects from archives
9324 whole_archive_flag_spec='$convenience'
9325 fi
9326 archive_cmds_need_lc=yes
9327 # This is similar to how AIX traditionally builds its shared libraries.
9328 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'
9329 fi
9330 fi
9331 ;;
9332
9333 amigaos*)
9334 case $host_cpu in
9335 powerpc)
9336 # see comment about AmigaOS4 .so support
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 archive_expsym_cmds=''
9339 ;;
9340 m68k)
9341 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)'
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_minus_L=yes
9344 ;;
9345 esac
9346 ;;
9347
9348 bsdi[45]*)
9349 export_dynamic_flag_spec=-rdynamic
9350 ;;
9351
9352 cygwin* | mingw* | pw32* | cegcc*)
9353 # When not using gcc, we currently assume that we are using
9354 # Microsoft Visual C++.
9355 # hardcode_libdir_flag_spec is actually meaningless, as there is
9356 # no search path for DLLs.
9357 case $cc_basename in
9358 cl*)
9359 # Native MSVC
9360 hardcode_libdir_flag_spec=' '
9361 allow_undefined_flag=unsupported
9362 always_export_symbols=yes
9363 file_list_spec='@'
9364 # Tell ltmain to make .lib files, not .a files.
9365 libext=lib
9366 # Tell ltmain to make .dll files, not .so files.
9367 shrext_cmds=".dll"
9368 # FIXME: Setting linknames here is a bad hack.
9369 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9370 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9371 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9372 else
9373 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9374 fi~
9375 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9376 linknames='
9377 # The linker will not automatically build a static lib if we build a DLL.
9378 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9379 enable_shared_with_static_runtimes=yes
9380 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9382 # Don't use ranlib
9383 old_postinstall_cmds='chmod 644 $oldlib'
9384 postlink_cmds='lt_outputfile="@OUTPUT@"~
9385 lt_tool_outputfile="@TOOL_OUTPUT@"~
9386 case $lt_outputfile in
9387 *.exe|*.EXE) ;;
9388 *)
9389 lt_outputfile="$lt_outputfile.exe"
9390 lt_tool_outputfile="$lt_tool_outputfile.exe"
9391 ;;
9392 esac~
9393 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9394 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9395 $RM "$lt_outputfile.manifest";
9396 fi'
9397 ;;
9398 *)
9399 # Assume MSVC wrapper
9400 hardcode_libdir_flag_spec=' '
9401 allow_undefined_flag=unsupported
9402 # Tell ltmain to make .lib files, not .a files.
9403 libext=lib
9404 # Tell ltmain to make .dll files, not .so files.
9405 shrext_cmds=".dll"
9406 # FIXME: Setting linknames here is a bad hack.
9407 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9408 # The linker will automatically build a .lib file if we build a DLL.
9409 old_archive_from_new_cmds='true'
9410 # FIXME: Should let the user specify the lib program.
9411 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9412 enable_shared_with_static_runtimes=yes
9413 ;;
9414 esac
9415 ;;
9416
9417 darwin* | rhapsody*)
9418
9419
9420 archive_cmds_need_lc=no
9421 hardcode_direct=no
9422 hardcode_automatic=yes
9423 hardcode_shlibpath_var=unsupported
9424 if test "$lt_cv_ld_force_load" = "yes"; then
9425 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\"`'
9426
9427 else
9428 whole_archive_flag_spec=''
9429 fi
9430 link_all_deplibs=yes
9431 allow_undefined_flag="$_lt_dar_allow_undefined"
9432 case $cc_basename in
9433 ifort*) _lt_dar_can_shared=yes ;;
9434 *) _lt_dar_can_shared=$GCC ;;
9435 esac
9436 if test "$_lt_dar_can_shared" = "yes"; then
9437 output_verbose_link_cmd=func_echo_all
9438 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9439 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9440 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}"
9441 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}"
9442
9443 else
9444 ld_shlibs=no
9445 fi
9446
9447 ;;
9448
9449 dgux*)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_libdir_flag_spec='-L$libdir'
9452 hardcode_shlibpath_var=no
9453 ;;
9454
9455 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9456 # support. Future versions do this automatically, but an explicit c++rt0.o
9457 # does not break anything, and helps significantly (at the cost of a little
9458 # extra space).
9459 freebsd2.2*)
9460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9461 hardcode_libdir_flag_spec='-R$libdir'
9462 hardcode_direct=yes
9463 hardcode_shlibpath_var=no
9464 ;;
9465
9466 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9467 freebsd2.*)
9468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_direct=yes
9470 hardcode_minus_L=yes
9471 hardcode_shlibpath_var=no
9472 ;;
9473
9474 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9475 freebsd* | dragonfly*)
9476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9477 hardcode_libdir_flag_spec='-R$libdir'
9478 hardcode_direct=yes
9479 hardcode_shlibpath_var=no
9480 ;;
9481
9482 hpux9*)
9483 if test "$GCC" = yes; then
9484 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'
9485 else
9486 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'
9487 fi
9488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9489 hardcode_libdir_separator=:
9490 hardcode_direct=yes
9491
9492 # hardcode_minus_L: Not really in the search PATH,
9493 # but as the default location of the library.
9494 hardcode_minus_L=yes
9495 export_dynamic_flag_spec='${wl}-E'
9496 ;;
9497
9498 hpux10*)
9499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9500 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9501 else
9502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9503 fi
9504 if test "$with_gnu_ld" = no; then
9505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 hardcode_direct=yes
9508 hardcode_direct_absolute=yes
9509 export_dynamic_flag_spec='${wl}-E'
9510 # hardcode_minus_L: Not really in the search PATH,
9511 # but as the default location of the library.
9512 hardcode_minus_L=yes
9513 fi
9514 ;;
9515
9516 hpux11*)
9517 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9518 case $host_cpu in
9519 hppa*64*)
9520 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 ;;
9522 ia64*)
9523 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9524 ;;
9525 *)
9526 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9527 ;;
9528 esac
9529 else
9530 case $host_cpu in
9531 hppa*64*)
9532 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 ;;
9534 ia64*)
9535 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9536 ;;
9537 *)
9538
9539 # Older versions of the 11.00 compiler do not understand -b yet
9540 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9542 $as_echo_n "checking if $CC understands -b... " >&6; }
9543 if ${lt_cv_prog_compiler__b+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 lt_cv_prog_compiler__b=no
9547 save_LDFLAGS="$LDFLAGS"
9548 LDFLAGS="$LDFLAGS -b"
9549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9551 # The linker can only warn and ignore the option if not recognized
9552 # So say no if there are warnings
9553 if test -s conftest.err; then
9554 # Append any errors to the config.log.
9555 cat conftest.err 1>&5
9556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9558 if diff conftest.exp conftest.er2 >/dev/null; then
9559 lt_cv_prog_compiler__b=yes
9560 fi
9561 else
9562 lt_cv_prog_compiler__b=yes
9563 fi
9564 fi
9565 $RM -r conftest*
9566 LDFLAGS="$save_LDFLAGS"
9567
9568 fi
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9570 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9571
9572 if test x"$lt_cv_prog_compiler__b" = xyes; then
9573 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9574 else
9575 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9576 fi
9577
9578 ;;
9579 esac
9580 fi
9581 if test "$with_gnu_ld" = no; then
9582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584
9585 case $host_cpu in
9586 hppa*64*|ia64*)
9587 hardcode_direct=no
9588 hardcode_shlibpath_var=no
9589 ;;
9590 *)
9591 hardcode_direct=yes
9592 hardcode_direct_absolute=yes
9593 export_dynamic_flag_spec='${wl}-E'
9594
9595 # hardcode_minus_L: Not really in the search PATH,
9596 # but as the default location of the library.
9597 hardcode_minus_L=yes
9598 ;;
9599 esac
9600 fi
9601 ;;
9602
9603 irix5* | irix6* | nonstopux*)
9604 if test "$GCC" = yes; then
9605 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'
9606 # Try to use the -exported_symbol ld option, if it does not
9607 # work, assume that -exports_file does not work either and
9608 # implicitly export all symbols.
9609 # This should be the same for all languages, so no per-tag cache variable.
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9611 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9612 if ${lt_cv_irix_exported_symbol+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 save_LDFLAGS="$LDFLAGS"
9616 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int foo (void) { return 0; }
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 lt_cv_irix_exported_symbol=yes
9623 else
9624 lt_cv_irix_exported_symbol=no
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LDFLAGS="$save_LDFLAGS"
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9631 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9632 if test "$lt_cv_irix_exported_symbol" = yes; then
9633 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'
9634 fi
9635 else
9636 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'
9637 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'
9638 fi
9639 archive_cmds_need_lc='no'
9640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641 hardcode_libdir_separator=:
9642 inherit_rpath=yes
9643 link_all_deplibs=yes
9644 ;;
9645
9646 netbsd*)
9647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9649 else
9650 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9651 fi
9652 hardcode_libdir_flag_spec='-R$libdir'
9653 hardcode_direct=yes
9654 hardcode_shlibpath_var=no
9655 ;;
9656
9657 newsos6)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct=yes
9660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661 hardcode_libdir_separator=:
9662 hardcode_shlibpath_var=no
9663 ;;
9664
9665 *nto* | *qnx*)
9666 ;;
9667
9668 openbsd*)
9669 if test -f /usr/libexec/ld.so; then
9670 hardcode_direct=yes
9671 hardcode_shlibpath_var=no
9672 hardcode_direct_absolute=yes
9673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677 export_dynamic_flag_spec='${wl}-E'
9678 else
9679 case $host_os in
9680 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_libdir_flag_spec='-R$libdir'
9683 ;;
9684 *)
9685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9687 ;;
9688 esac
9689 fi
9690 else
9691 ld_shlibs=no
9692 fi
9693 ;;
9694
9695 os2*)
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_minus_L=yes
9698 allow_undefined_flag=unsupported
9699 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'
9700 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9701 ;;
9702
9703 osf3*)
9704 if test "$GCC" = yes; then
9705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9706 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'
9707 else
9708 allow_undefined_flag=' -expect_unresolved \*'
9709 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'
9710 fi
9711 archive_cmds_need_lc='no'
9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9713 hardcode_libdir_separator=:
9714 ;;
9715
9716 osf4* | osf5*) # as osf3* with the addition of -msym flag
9717 if test "$GCC" = yes; then
9718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9719 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'
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 else
9722 allow_undefined_flag=' -expect_unresolved \*'
9723 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'
9724 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~
9725 $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'
9726
9727 # Both c and cxx compiler support -rpath directly
9728 hardcode_libdir_flag_spec='-rpath $libdir'
9729 fi
9730 archive_cmds_need_lc='no'
9731 hardcode_libdir_separator=:
9732 ;;
9733
9734 solaris*)
9735 no_undefined_flag=' -z defs'
9736 if test "$GCC" = yes; then
9737 wlarc='${wl}'
9738 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9740 $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'
9741 else
9742 case `$CC -V 2>&1` in
9743 *"Compilers 5.0"*)
9744 wlarc=''
9745 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9747 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9748 ;;
9749 *)
9750 wlarc='${wl}'
9751 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9753 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9754 ;;
9755 esac
9756 fi
9757 hardcode_libdir_flag_spec='-R$libdir'
9758 hardcode_shlibpath_var=no
9759 case $host_os in
9760 solaris2.[0-5] | solaris2.[0-5].*) ;;
9761 *)
9762 # The compiler driver will combine and reorder linker options,
9763 # but understands `-z linker_flag'. GCC discards it without `$wl',
9764 # but is careful enough not to reorder.
9765 # Supported since Solaris 2.6 (maybe 2.5.1?)
9766 if test "$GCC" = yes; then
9767 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9768 else
9769 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9770 fi
9771 ;;
9772 esac
9773 link_all_deplibs=yes
9774 ;;
9775
9776 sunos4*)
9777 if test "x$host_vendor" = xsequent; then
9778 # Use $CC to link under sequent, because it throws in some extra .o
9779 # files that make .init and .fini sections work.
9780 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9781 else
9782 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9783 fi
9784 hardcode_libdir_flag_spec='-L$libdir'
9785 hardcode_direct=yes
9786 hardcode_minus_L=yes
9787 hardcode_shlibpath_var=no
9788 ;;
9789
9790 sysv4)
9791 case $host_vendor in
9792 sni)
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes # is this really true???
9795 ;;
9796 siemens)
9797 ## LD is ld it makes a PLAMLIB
9798 ## CC just makes a GrossModule.
9799 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9800 reload_cmds='$CC -r -o $output$reload_objs'
9801 hardcode_direct=no
9802 ;;
9803 motorola)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9806 ;;
9807 esac
9808 runpath_var='LD_RUN_PATH'
9809 hardcode_shlibpath_var=no
9810 ;;
9811
9812 sysv4.3*)
9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_shlibpath_var=no
9815 export_dynamic_flag_spec='-Bexport'
9816 ;;
9817
9818 sysv4*MP*)
9819 if test -d /usr/nec; then
9820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821 hardcode_shlibpath_var=no
9822 runpath_var=LD_RUN_PATH
9823 hardcode_runpath_var=yes
9824 ld_shlibs=yes
9825 fi
9826 ;;
9827
9828 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9829 no_undefined_flag='${wl}-z,text'
9830 archive_cmds_need_lc=no
9831 hardcode_shlibpath_var=no
9832 runpath_var='LD_RUN_PATH'
9833
9834 if test "$GCC" = yes; then
9835 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 else
9838 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 fi
9841 ;;
9842
9843 sysv5* | sco3.2v5* | sco5v6*)
9844 # Note: We can NOT use -z defs as we might desire, because we do not
9845 # link with -lc, and that would cause any symbols used from libc to
9846 # always be unresolved, which means just about no library would
9847 # ever link correctly. If we're not using GNU ld we use -z text
9848 # though, which does catch some bad symbols but isn't as heavy-handed
9849 # as -z defs.
9850 no_undefined_flag='${wl}-z,text'
9851 allow_undefined_flag='${wl}-z,nodefs'
9852 archive_cmds_need_lc=no
9853 hardcode_shlibpath_var=no
9854 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9855 hardcode_libdir_separator=':'
9856 link_all_deplibs=yes
9857 export_dynamic_flag_spec='${wl}-Bexport'
9858 runpath_var='LD_RUN_PATH'
9859
9860 if test "$GCC" = yes; then
9861 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 else
9864 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 fi
9867 ;;
9868
9869 uts4*)
9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec='-L$libdir'
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 *)
9876 ld_shlibs=no
9877 ;;
9878 esac
9879
9880 if test x$host_vendor = xsni; then
9881 case $host in
9882 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9883 export_dynamic_flag_spec='${wl}-Blargedynsym'
9884 ;;
9885 esac
9886 fi
9887 fi
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9890 $as_echo "$ld_shlibs" >&6; }
9891 test "$ld_shlibs" = no && can_build_shared=no
9892
9893 with_gnu_ld=$with_gnu_ld
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909 #
9910 # Do we need to explicitly link libc?
9911 #
9912 case "x$archive_cmds_need_lc" in
9913 x|xyes)
9914 # Assume -lc should be added
9915 archive_cmds_need_lc=yes
9916
9917 if test "$enable_shared" = yes && test "$GCC" = yes; then
9918 case $archive_cmds in
9919 *'~'*)
9920 # FIXME: we may have to deal with multi-command sequences.
9921 ;;
9922 '$CC '*)
9923 # Test whether the compiler implicitly links with -lc since on some
9924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9925 # to ld, don't add -lc before -lgcc.
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9928 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 $RM -r conftest*
9932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933
9934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9935 (eval $ac_compile) 2>&5
9936 ac_status=$?
9937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9938 test $ac_status = 0; } 2>conftest.err; then
9939 soname=conftest
9940 lib=conftest
9941 libobjs=conftest.$ac_objext
9942 deplibs=
9943 wl=$lt_prog_compiler_wl
9944 pic_flag=$lt_prog_compiler_pic
9945 compiler_flags=-v
9946 linker_flags=-v
9947 verstring=
9948 output_objdir=.
9949 libname=conftest
9950 lt_save_allow_undefined_flag=$allow_undefined_flag
9951 allow_undefined_flag=
9952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9953 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9954 ac_status=$?
9955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9956 test $ac_status = 0; }
9957 then
9958 lt_cv_archive_cmds_need_lc=no
9959 else
9960 lt_cv_archive_cmds_need_lc=yes
9961 fi
9962 allow_undefined_flag=$lt_save_allow_undefined_flag
9963 else
9964 cat conftest.err 1>&5
9965 fi
9966 $RM -r conftest*
9967
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9970 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9971 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9972 ;;
9973 esac
9974 fi
9975 ;;
9976 esac
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
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 dynamic linker characteristics" >&5
10130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10131
10132 if test "$GCC" = yes; then
10133 case $host_os in
10134 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10135 *) lt_awk_arg="/^libraries:/" ;;
10136 esac
10137 case $host_os in
10138 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10139 *) lt_sed_strip_eq="s,=/,/,g" ;;
10140 esac
10141 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10142 case $lt_search_path_spec in
10143 *\;*)
10144 # if the path contains ";" then we assume it to be the separator
10145 # otherwise default to the standard path separator (i.e. ":") - it is
10146 # assumed that no part of a normal pathname contains ";" but that should
10147 # okay in the real world where ";" in dirpaths is itself problematic.
10148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10149 ;;
10150 *)
10151 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10152 ;;
10153 esac
10154 # Ok, now we have the path, separated by spaces, we can step through it
10155 # and add multilib dir if necessary.
10156 lt_tmp_lt_search_path_spec=
10157 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10158 for lt_sys_path in $lt_search_path_spec; do
10159 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10161 else
10162 test -d "$lt_sys_path" && \
10163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10164 fi
10165 done
10166 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10167 BEGIN {RS=" "; FS="/|\n";} {
10168 lt_foo="";
10169 lt_count=0;
10170 for (lt_i = NF; lt_i > 0; lt_i--) {
10171 if ($lt_i != "" && $lt_i != ".") {
10172 if ($lt_i == "..") {
10173 lt_count++;
10174 } else {
10175 if (lt_count == 0) {
10176 lt_foo="/" $lt_i lt_foo;
10177 } else {
10178 lt_count--;
10179 }
10180 }
10181 }
10182 }
10183 if (lt_foo != "") { lt_freq[lt_foo]++; }
10184 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10185 }'`
10186 # AWK program above erroneously prepends '/' to C:/dos/paths
10187 # for these hosts.
10188 case $host_os in
10189 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10190 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10191 esac
10192 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10193 else
10194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10195 fi
10196 library_names_spec=
10197 libname_spec='lib$name'
10198 soname_spec=
10199 shrext_cmds=".so"
10200 postinstall_cmds=
10201 postuninstall_cmds=
10202 finish_cmds=
10203 finish_eval=
10204 shlibpath_var=
10205 shlibpath_overrides_runpath=unknown
10206 version_type=none
10207 dynamic_linker="$host_os ld.so"
10208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10209 need_lib_prefix=unknown
10210 hardcode_into_libs=no
10211
10212 # when you set need_version to no, make sure it does not cause -set_version
10213 # flags to be left without arguments
10214 need_version=unknown
10215
10216 case $host_os in
10217 aix3*)
10218 version_type=linux # correct to gnu/linux during the next big refactor
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10220 shlibpath_var=LIBPATH
10221
10222 # AIX 3 has no versioning support, so we append a major version to the name.
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 ;;
10225
10226 aix[4-9]*)
10227 version_type=linux # correct to gnu/linux during the next big refactor
10228 need_lib_prefix=no
10229 need_version=no
10230 hardcode_into_libs=yes
10231 if test "$host_cpu" = ia64; then
10232 # AIX 5 supports IA64
10233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 else
10236 # With GCC up to 2.95.x, collect2 would create an import file
10237 # for dependence libraries. The import file would start with
10238 # the line `#! .'. This would cause the generated library to
10239 # depend on `.', always an invalid library. This was fixed in
10240 # development snapshots of GCC prior to 3.0.
10241 case $host_os in
10242 aix4 | aix4.[01] | aix4.[01].*)
10243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10244 echo ' yes '
10245 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10246 :
10247 else
10248 can_build_shared=no
10249 fi
10250 ;;
10251 esac
10252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10253 # soname into executable. Probably we can add versioning support to
10254 # collect2, so additional links can be useful in future.
10255 if test "$aix_use_runtimelinking" = yes; then
10256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10257 # instead of lib<name>.a to let people know that these are not
10258 # typical AIX shared libraries.
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 else
10261 # We preserve .a as extension for shared libraries through AIX4.2
10262 # and later when we are not doing run time linking.
10263 library_names_spec='${libname}${release}.a $libname.a'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 fi
10266 shlibpath_var=LIBPATH
10267 fi
10268 ;;
10269
10270 amigaos*)
10271 case $host_cpu in
10272 powerpc)
10273 # Since July 2007 AmigaOS4 officially supports .so libraries.
10274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 ;;
10277 m68k)
10278 library_names_spec='$libname.ixlibrary $libname.a'
10279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10280 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'
10281 ;;
10282 esac
10283 ;;
10284
10285 beos*)
10286 library_names_spec='${libname}${shared_ext}'
10287 dynamic_linker="$host_os ld.so"
10288 shlibpath_var=LIBRARY_PATH
10289 ;;
10290
10291 bsdi[45]*)
10292 version_type=linux # correct to gnu/linux during the next big refactor
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10300 # the default ld.so.conf also contains /usr/contrib/lib and
10301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10302 # libtool to hard-code these into programs
10303 ;;
10304
10305 cygwin* | mingw* | pw32* | cegcc*)
10306 version_type=windows
10307 shrext_cmds=".dll"
10308 need_version=no
10309 need_lib_prefix=no
10310
10311 case $GCC,$cc_basename in
10312 yes,*)
10313 # gcc
10314 library_names_spec='$libname.dll.a'
10315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10316 postinstall_cmds='base_file=`basename \${file}`~
10317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10318 dldir=$destdir/`dirname \$dlpath`~
10319 test -d \$dldir || mkdir -p \$dldir~
10320 $install_prog $dir/$dlname \$dldir/$dlname~
10321 chmod a+x \$dldir/$dlname~
10322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10324 fi'
10325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10327 $RM \$dlpath'
10328 shlibpath_overrides_runpath=yes
10329
10330 case $host_os in
10331 cygwin*)
10332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10334
10335 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10336 ;;
10337 mingw* | cegcc*)
10338 # MinGW DLLs use traditional 'lib' prefix
10339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340 ;;
10341 pw32*)
10342 # pw32 DLLs use 'pw' prefix rather than 'lib'
10343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10344 ;;
10345 esac
10346 dynamic_linker='Win32 ld.exe'
10347 ;;
10348
10349 *,cl*)
10350 # Native MSVC
10351 libname_spec='$name'
10352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10353 library_names_spec='${libname}.dll.lib'
10354
10355 case $build_os in
10356 mingw*)
10357 sys_lib_search_path_spec=
10358 lt_save_ifs=$IFS
10359 IFS=';'
10360 for lt_path in $LIB
10361 do
10362 IFS=$lt_save_ifs
10363 # Let DOS variable expansion print the short 8.3 style file name.
10364 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10365 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10366 done
10367 IFS=$lt_save_ifs
10368 # Convert to MSYS style.
10369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10370 ;;
10371 cygwin*)
10372 # Convert to unix form, then to dos form, then back to unix form
10373 # but this time dos style (no spaces!) so that the unix form looks
10374 # like /cygdrive/c/PROGRA~1:/cygdr...
10375 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10376 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10377 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10378 ;;
10379 *)
10380 sys_lib_search_path_spec="$LIB"
10381 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10382 # It is most probably a Windows format PATH.
10383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10384 else
10385 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10386 fi
10387 # FIXME: find the short name or the path components, as spaces are
10388 # common. (e.g. "Program Files" -> "PROGRA~1")
10389 ;;
10390 esac
10391
10392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10393 postinstall_cmds='base_file=`basename \${file}`~
10394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10395 dldir=$destdir/`dirname \$dlpath`~
10396 test -d \$dldir || mkdir -p \$dldir~
10397 $install_prog $dir/$dlname \$dldir/$dlname'
10398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10399 dlpath=$dir/\$dldll~
10400 $RM \$dlpath'
10401 shlibpath_overrides_runpath=yes
10402 dynamic_linker='Win32 link.exe'
10403 ;;
10404
10405 *)
10406 # Assume MSVC wrapper
10407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10408 dynamic_linker='Win32 ld.exe'
10409 ;;
10410 esac
10411 # FIXME: first we should search . and the directory the executable is in
10412 shlibpath_var=PATH
10413 ;;
10414
10415 darwin* | rhapsody*)
10416 dynamic_linker="$host_os dyld"
10417 version_type=darwin
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10421 soname_spec='${libname}${release}${major}$shared_ext'
10422 shlibpath_overrides_runpath=yes
10423 shlibpath_var=DYLD_LIBRARY_PATH
10424 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10425
10426 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10427 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10428 ;;
10429
10430 dgux*)
10431 version_type=linux # correct to gnu/linux during the next big refactor
10432 need_lib_prefix=no
10433 need_version=no
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 ;;
10438
10439 freebsd* | dragonfly*)
10440 # DragonFly does not have aout. When/if they implement a new
10441 # versioning mechanism, adjust this.
10442 if test -x /usr/bin/objformat; then
10443 objformat=`/usr/bin/objformat`
10444 else
10445 case $host_os in
10446 freebsd[23].*) objformat=aout ;;
10447 *) objformat=elf ;;
10448 esac
10449 fi
10450 version_type=freebsd-$objformat
10451 case $version_type in
10452 freebsd-elf*)
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10454 need_version=no
10455 need_lib_prefix=no
10456 ;;
10457 freebsd-*)
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10459 need_version=yes
10460 ;;
10461 esac
10462 shlibpath_var=LD_LIBRARY_PATH
10463 case $host_os in
10464 freebsd2.*)
10465 shlibpath_overrides_runpath=yes
10466 ;;
10467 freebsd3.[01]* | freebsdelf3.[01]*)
10468 shlibpath_overrides_runpath=yes
10469 hardcode_into_libs=yes
10470 ;;
10471 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10472 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10475 ;;
10476 *) # from 4.6 on, and DragonFly
10477 shlibpath_overrides_runpath=yes
10478 hardcode_into_libs=yes
10479 ;;
10480 esac
10481 ;;
10482
10483 gnu*)
10484 version_type=linux # correct to gnu/linux during the next big refactor
10485 need_lib_prefix=no
10486 need_version=no
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=no
10491 hardcode_into_libs=yes
10492 ;;
10493
10494 haiku*)
10495 version_type=linux # correct to gnu/linux during the next big refactor
10496 need_lib_prefix=no
10497 need_version=no
10498 dynamic_linker="$host_os runtime_loader"
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LIBRARY_PATH
10502 shlibpath_overrides_runpath=yes
10503 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10504 hardcode_into_libs=yes
10505 ;;
10506
10507 hpux9* | hpux10* | hpux11*)
10508 # Give a soname corresponding to the major version so that dld.sl refuses to
10509 # link against other versions.
10510 version_type=sunos
10511 need_lib_prefix=no
10512 need_version=no
10513 case $host_cpu in
10514 ia64*)
10515 shrext_cmds='.so'
10516 hardcode_into_libs=yes
10517 dynamic_linker="$host_os dld.so"
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 if test "X$HPUX_IA64_MODE" = X32; then
10523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10524 else
10525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10526 fi
10527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10528 ;;
10529 hppa*64*)
10530 shrext_cmds='.sl'
10531 hardcode_into_libs=yes
10532 dynamic_linker="$host_os dld.sl"
10533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10539 ;;
10540 *)
10541 shrext_cmds='.sl'
10542 dynamic_linker="$host_os dld.sl"
10543 shlibpath_var=SHLIB_PATH
10544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 ;;
10548 esac
10549 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10550 postinstall_cmds='chmod 555 $lib'
10551 # or fails outright, so override atomically:
10552 install_override_mode=555
10553 ;;
10554
10555 interix[3-9]*)
10556 version_type=linux # correct to gnu/linux during the next big refactor
10557 need_lib_prefix=no
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=no
10564 hardcode_into_libs=yes
10565 ;;
10566
10567 irix5* | irix6* | nonstopux*)
10568 case $host_os in
10569 nonstopux*) version_type=nonstopux ;;
10570 *)
10571 if test "$lt_cv_prog_gnu_ld" = yes; then
10572 version_type=linux # correct to gnu/linux during the next big refactor
10573 else
10574 version_type=irix
10575 fi ;;
10576 esac
10577 need_lib_prefix=no
10578 need_version=no
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10581 case $host_os in
10582 irix5* | nonstopux*)
10583 libsuff= shlibsuff=
10584 ;;
10585 *)
10586 case $LD in # libtool.m4 will add one of these switches to LD
10587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10588 libsuff= shlibsuff= libmagic=32-bit;;
10589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10590 libsuff=32 shlibsuff=N32 libmagic=N32;;
10591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10593 *) libsuff= shlibsuff= libmagic=never-match;;
10594 esac
10595 ;;
10596 esac
10597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10598 shlibpath_overrides_runpath=no
10599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10601 hardcode_into_libs=yes
10602 ;;
10603
10604 # No shared lib support for Linux oldld, aout, or coff.
10605 linux*oldld* | linux*aout* | linux*coff*)
10606 dynamic_linker=no
10607 ;;
10608
10609 # This must be glibc/ELF.
10610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10611 version_type=linux # correct to gnu/linux during the next big refactor
10612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=no
10619
10620 # Some binutils ld are patched to set DT_RUNPATH
10621 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 lt_cv_shlibpath_overrides_runpath=no
10625 save_LDFLAGS=$LDFLAGS
10626 save_libdir=$libdir
10627 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10628 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631
10632 int
10633 main ()
10634 {
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10642 lt_cv_shlibpath_overrides_runpath=yes
10643 fi
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LDFLAGS=$save_LDFLAGS
10648 libdir=$save_libdir
10649
10650 fi
10651
10652 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10653
10654 # This implies no fast_install, which is unacceptable.
10655 # Some rework will be needed to allow for fast_install
10656 # before this can be enabled.
10657 hardcode_into_libs=yes
10658
10659 # Append ld.so.conf contents to the search path
10660 if test -f /etc/ld.so.conf; then
10661 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' ' '`
10662 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10663 fi
10664
10665 # We used to test for /lib/ld.so.1 and disable shared libraries on
10666 # powerpc, because MkLinux only supported shared libraries with the
10667 # GNU dynamic linker. Since this was broken with cross compilers,
10668 # most powerpc-linux boxes support dynamic linking these days and
10669 # people can always --disable-shared, the test was removed, and we
10670 # assume the GNU/Linux dynamic linker is in use.
10671 dynamic_linker='GNU/Linux ld.so'
10672 ;;
10673
10674 netbsd*)
10675 version_type=sunos
10676 need_lib_prefix=no
10677 need_version=no
10678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10681 dynamic_linker='NetBSD (a.out) ld.so'
10682 else
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 dynamic_linker='NetBSD ld.elf_so'
10686 fi
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10689 hardcode_into_libs=yes
10690 ;;
10691
10692 newsos6)
10693 version_type=linux # correct to gnu/linux during the next big refactor
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=yes
10697 ;;
10698
10699 *nto* | *qnx*)
10700 version_type=qnx
10701 need_lib_prefix=no
10702 need_version=no
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=no
10707 hardcode_into_libs=yes
10708 dynamic_linker='ldqnx.so'
10709 ;;
10710
10711 openbsd*)
10712 version_type=sunos
10713 sys_lib_dlsearch_path_spec="/usr/lib"
10714 need_lib_prefix=no
10715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10716 case $host_os in
10717 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10718 *) need_version=no ;;
10719 esac
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10724 case $host_os in
10725 openbsd2.[89] | openbsd2.[89].*)
10726 shlibpath_overrides_runpath=no
10727 ;;
10728 *)
10729 shlibpath_overrides_runpath=yes
10730 ;;
10731 esac
10732 else
10733 shlibpath_overrides_runpath=yes
10734 fi
10735 ;;
10736
10737 os2*)
10738 libname_spec='$name'
10739 shrext_cmds=".dll"
10740 need_lib_prefix=no
10741 library_names_spec='$libname${shared_ext} $libname.a'
10742 dynamic_linker='OS/2 ld.exe'
10743 shlibpath_var=LIBPATH
10744 ;;
10745
10746 osf3* | osf4* | osf5*)
10747 version_type=osf
10748 need_lib_prefix=no
10749 need_version=no
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10754 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10755 ;;
10756
10757 rdos*)
10758 dynamic_linker=no
10759 ;;
10760
10761 solaris*)
10762 version_type=linux # correct to gnu/linux during the next big refactor
10763 need_lib_prefix=no
10764 need_version=no
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 hardcode_into_libs=yes
10770 # ldd complains unless libraries are executable
10771 postinstall_cmds='chmod +x $lib'
10772 ;;
10773
10774 sunos4*)
10775 version_type=sunos
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes
10780 if test "$with_gnu_ld" = yes; then
10781 need_lib_prefix=no
10782 fi
10783 need_version=yes
10784 ;;
10785
10786 sysv4 | sysv4.3*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 case $host_vendor in
10792 sni)
10793 shlibpath_overrides_runpath=no
10794 need_lib_prefix=no
10795 runpath_var=LD_RUN_PATH
10796 ;;
10797 siemens)
10798 need_lib_prefix=no
10799 ;;
10800 motorola)
10801 need_lib_prefix=no
10802 need_version=no
10803 shlibpath_overrides_runpath=no
10804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10805 ;;
10806 esac
10807 ;;
10808
10809 sysv4*MP*)
10810 if test -d /usr/nec ;then
10811 version_type=linux # correct to gnu/linux during the next big refactor
10812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10813 soname_spec='$libname${shared_ext}.$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 fi
10816 ;;
10817
10818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10819 version_type=freebsd-elf
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10826 hardcode_into_libs=yes
10827 if test "$with_gnu_ld" = yes; then
10828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10829 else
10830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10831 case $host_os in
10832 sco3.2v5*)
10833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10834 ;;
10835 esac
10836 fi
10837 sys_lib_dlsearch_path_spec='/usr/lib'
10838 ;;
10839
10840 tpf*)
10841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10842 version_type=linux # correct to gnu/linux during the next big refactor
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=no
10848 hardcode_into_libs=yes
10849 ;;
10850
10851 uts4*)
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 ;;
10857
10858 *)
10859 dynamic_linker=no
10860 ;;
10861 esac
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10863 $as_echo "$dynamic_linker" >&6; }
10864 test "$dynamic_linker" = no && can_build_shared=no
10865
10866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10867 if test "$GCC" = yes; then
10868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10869 fi
10870
10871 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10872 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10873 fi
10874 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10875 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10876 fi
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10970 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10971 hardcode_action=
10972 if test -n "$hardcode_libdir_flag_spec" ||
10973 test -n "$runpath_var" ||
10974 test "X$hardcode_automatic" = "Xyes" ; then
10975
10976 # We can hardcode non-existent directories.
10977 if test "$hardcode_direct" != no &&
10978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10979 # have to relink, otherwise we might link with an installed library
10980 # when we should be linking with a yet-to-be-installed one
10981 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10982 test "$hardcode_minus_L" != no; then
10983 # Linking always hardcodes the temporary library directory.
10984 hardcode_action=relink
10985 else
10986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10987 hardcode_action=immediate
10988 fi
10989 else
10990 # We cannot hardcode anything, or else we can only hardcode existing
10991 # directories.
10992 hardcode_action=unsupported
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10995 $as_echo "$hardcode_action" >&6; }
10996
10997 if test "$hardcode_action" = relink ||
10998 test "$inherit_rpath" = yes; then
10999 # Fast installation is not supported
11000 enable_fast_install=no
11001 elif test "$shlibpath_overrides_runpath" = yes ||
11002 test "$enable_shared" = no; then
11003 # Fast installation is not necessary
11004 enable_fast_install=needless
11005 fi
11006
11007
11008
11009
11010
11011
11012 if test "x$enable_dlopen" != xyes; then
11013 enable_dlopen=unknown
11014 enable_dlopen_self=unknown
11015 enable_dlopen_self_static=unknown
11016 else
11017 lt_cv_dlopen=no
11018 lt_cv_dlopen_libs=
11019
11020 case $host_os in
11021 beos*)
11022 lt_cv_dlopen="load_add_on"
11023 lt_cv_dlopen_libs=
11024 lt_cv_dlopen_self=yes
11025 ;;
11026
11027 mingw* | pw32* | cegcc*)
11028 lt_cv_dlopen="LoadLibrary"
11029 lt_cv_dlopen_libs=
11030 ;;
11031
11032 cygwin*)
11033 lt_cv_dlopen="dlopen"
11034 lt_cv_dlopen_libs=
11035 ;;
11036
11037 darwin*)
11038 # if libdl is installed we need to link against it
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11041 if ${ac_cv_lib_dl_dlopen+:} false; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-ldl $LIBS"
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11048
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char dlopen ();
11056 int
11057 main ()
11058 {
11059 return dlopen ();
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_lib_dl_dlopen=yes
11066 else
11067 ac_cv_lib_dl_dlopen=no
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11072 fi
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11075 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11077 else
11078
11079 lt_cv_dlopen="dyld"
11080 lt_cv_dlopen_libs=
11081 lt_cv_dlopen_self=yes
11082
11083 fi
11084
11085 ;;
11086
11087 *)
11088 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11089 if test "x$ac_cv_func_shl_load" = xyes; then :
11090 lt_cv_dlopen="shl_load"
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11093 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11094 if ${ac_cv_lib_dld_shl_load+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 ac_check_lib_save_LIBS=$LIBS
11098 LIBS="-ldld $LIBS"
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char shl_load ();
11109 int
11110 main ()
11111 {
11112 return shl_load ();
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 if ac_fn_c_try_link "$LINENO"; then :
11118 ac_cv_lib_dld_shl_load=yes
11119 else
11120 ac_cv_lib_dld_shl_load=no
11121 fi
11122 rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124 LIBS=$ac_check_lib_save_LIBS
11125 fi
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11127 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11128 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11130 else
11131 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11132 if test "x$ac_cv_func_dlopen" = xyes; then :
11133 lt_cv_dlopen="dlopen"
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11137 if ${ac_cv_lib_dl_dlopen+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-ldl $LIBS"
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144
11145 /* Override any GCC internal prototype to avoid an error.
11146 Use char because int might match the return type of a GCC
11147 builtin and then its argument prototype would still apply. */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 char dlopen ();
11152 int
11153 main ()
11154 {
11155 return dlopen ();
11156 ;
11157 return 0;
11158 }
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 ac_cv_lib_dl_dlopen=yes
11162 else
11163 ac_cv_lib_dl_dlopen=no
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_check_lib_save_LIBS
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11175 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11176 if ${ac_cv_lib_svld_dlopen+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 ac_check_lib_save_LIBS=$LIBS
11180 LIBS="-lsvld $LIBS"
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183
11184 /* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11187 #ifdef __cplusplus
11188 extern "C"
11189 #endif
11190 char dlopen ();
11191 int
11192 main ()
11193 {
11194 return dlopen ();
11195 ;
11196 return 0;
11197 }
11198 _ACEOF
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 ac_cv_lib_svld_dlopen=yes
11201 else
11202 ac_cv_lib_svld_dlopen=no
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LIBS=$ac_check_lib_save_LIBS
11207 fi
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11209 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11210 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11214 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11215 if ${ac_cv_lib_dld_dld_link+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-ldld $LIBS"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char dld_link ();
11230 int
11231 main ()
11232 {
11233 return dld_link ();
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239 ac_cv_lib_dld_dld_link=yes
11240 else
11241 ac_cv_lib_dld_dld_link=no
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11248 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11249 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11250 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11251 fi
11252
11253
11254 fi
11255
11256
11257 fi
11258
11259
11260 fi
11261
11262
11263 fi
11264
11265
11266 fi
11267
11268 ;;
11269 esac
11270
11271 if test "x$lt_cv_dlopen" != xno; then
11272 enable_dlopen=yes
11273 else
11274 enable_dlopen=no
11275 fi
11276
11277 case $lt_cv_dlopen in
11278 dlopen)
11279 save_CPPFLAGS="$CPPFLAGS"
11280 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11281
11282 save_LDFLAGS="$LDFLAGS"
11283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11284
11285 save_LIBS="$LIBS"
11286 LIBS="$lt_cv_dlopen_libs $LIBS"
11287
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11289 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11290 if ${lt_cv_dlopen_self+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 if test "$cross_compiling" = yes; then :
11294 lt_cv_dlopen_self=cross
11295 else
11296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11297 lt_status=$lt_dlunknown
11298 cat > conftest.$ac_ext <<_LT_EOF
11299 #line $LINENO "configure"
11300 #include "confdefs.h"
11301
11302 #if HAVE_DLFCN_H
11303 #include <dlfcn.h>
11304 #endif
11305
11306 #include <stdio.h>
11307
11308 #ifdef RTLD_GLOBAL
11309 # define LT_DLGLOBAL RTLD_GLOBAL
11310 #else
11311 # ifdef DL_GLOBAL
11312 # define LT_DLGLOBAL DL_GLOBAL
11313 # else
11314 # define LT_DLGLOBAL 0
11315 # endif
11316 #endif
11317
11318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11319 find out it does not work in some platform. */
11320 #ifndef LT_DLLAZY_OR_NOW
11321 # ifdef RTLD_LAZY
11322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11323 # else
11324 # ifdef DL_LAZY
11325 # define LT_DLLAZY_OR_NOW DL_LAZY
11326 # else
11327 # ifdef RTLD_NOW
11328 # define LT_DLLAZY_OR_NOW RTLD_NOW
11329 # else
11330 # ifdef DL_NOW
11331 # define LT_DLLAZY_OR_NOW DL_NOW
11332 # else
11333 # define LT_DLLAZY_OR_NOW 0
11334 # endif
11335 # endif
11336 # endif
11337 # endif
11338 #endif
11339
11340 /* When -fvisbility=hidden is used, assume the code has been annotated
11341 correspondingly for the symbols needed. */
11342 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11343 int fnord () __attribute__((visibility("default")));
11344 #endif
11345
11346 int fnord () { return 42; }
11347 int main ()
11348 {
11349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11350 int status = $lt_dlunknown;
11351
11352 if (self)
11353 {
11354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11355 else
11356 {
11357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11358 else puts (dlerror ());
11359 }
11360 /* dlclose (self); */
11361 }
11362 else
11363 puts (dlerror ());
11364
11365 return status;
11366 }
11367 _LT_EOF
11368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11369 (eval $ac_link) 2>&5
11370 ac_status=$?
11371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11373 (./conftest; exit; ) >&5 2>/dev/null
11374 lt_status=$?
11375 case x$lt_status in
11376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11378 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11379 esac
11380 else :
11381 # compilation failed
11382 lt_cv_dlopen_self=no
11383 fi
11384 fi
11385 rm -fr conftest*
11386
11387
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11390 $as_echo "$lt_cv_dlopen_self" >&6; }
11391
11392 if test "x$lt_cv_dlopen_self" = xyes; then
11393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11395 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11396 if ${lt_cv_dlopen_self_static+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test "$cross_compiling" = yes; then :
11400 lt_cv_dlopen_self_static=cross
11401 else
11402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11403 lt_status=$lt_dlunknown
11404 cat > conftest.$ac_ext <<_LT_EOF
11405 #line $LINENO "configure"
11406 #include "confdefs.h"
11407
11408 #if HAVE_DLFCN_H
11409 #include <dlfcn.h>
11410 #endif
11411
11412 #include <stdio.h>
11413
11414 #ifdef RTLD_GLOBAL
11415 # define LT_DLGLOBAL RTLD_GLOBAL
11416 #else
11417 # ifdef DL_GLOBAL
11418 # define LT_DLGLOBAL DL_GLOBAL
11419 # else
11420 # define LT_DLGLOBAL 0
11421 # endif
11422 #endif
11423
11424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11425 find out it does not work in some platform. */
11426 #ifndef LT_DLLAZY_OR_NOW
11427 # ifdef RTLD_LAZY
11428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11429 # else
11430 # ifdef DL_LAZY
11431 # define LT_DLLAZY_OR_NOW DL_LAZY
11432 # else
11433 # ifdef RTLD_NOW
11434 # define LT_DLLAZY_OR_NOW RTLD_NOW
11435 # else
11436 # ifdef DL_NOW
11437 # define LT_DLLAZY_OR_NOW DL_NOW
11438 # else
11439 # define LT_DLLAZY_OR_NOW 0
11440 # endif
11441 # endif
11442 # endif
11443 # endif
11444 #endif
11445
11446 /* When -fvisbility=hidden is used, assume the code has been annotated
11447 correspondingly for the symbols needed. */
11448 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11449 int fnord () __attribute__((visibility("default")));
11450 #endif
11451
11452 int fnord () { return 42; }
11453 int main ()
11454 {
11455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11456 int status = $lt_dlunknown;
11457
11458 if (self)
11459 {
11460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11461 else
11462 {
11463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11464 else puts (dlerror ());
11465 }
11466 /* dlclose (self); */
11467 }
11468 else
11469 puts (dlerror ());
11470
11471 return status;
11472 }
11473 _LT_EOF
11474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11475 (eval $ac_link) 2>&5
11476 ac_status=$?
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11479 (./conftest; exit; ) >&5 2>/dev/null
11480 lt_status=$?
11481 case x$lt_status in
11482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11484 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11485 esac
11486 else :
11487 # compilation failed
11488 lt_cv_dlopen_self_static=no
11489 fi
11490 fi
11491 rm -fr conftest*
11492
11493
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11496 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11497 fi
11498
11499 CPPFLAGS="$save_CPPFLAGS"
11500 LDFLAGS="$save_LDFLAGS"
11501 LIBS="$save_LIBS"
11502 ;;
11503 esac
11504
11505 case $lt_cv_dlopen_self in
11506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11507 *) enable_dlopen_self=unknown ;;
11508 esac
11509
11510 case $lt_cv_dlopen_self_static in
11511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11512 *) enable_dlopen_self_static=unknown ;;
11513 esac
11514 fi
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532 striplib=
11533 old_striplib=
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11535 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11536 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11537 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11538 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540 $as_echo "yes" >&6; }
11541 else
11542 # FIXME - insert some real tests, host_os isn't really good enough
11543 case $host_os in
11544 darwin*)
11545 if test -n "$STRIP" ; then
11546 striplib="$STRIP -x"
11547 old_striplib="$STRIP -S"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549 $as_echo "yes" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11553 fi
11554 ;;
11555 *)
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 ;;
11559 esac
11560 fi
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573 # Report which library types will actually be built
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11575 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11577 $as_echo "$can_build_shared" >&6; }
11578
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11580 $as_echo_n "checking whether to build shared libraries... " >&6; }
11581 test "$can_build_shared" = "no" && enable_shared=no
11582
11583 # On AIX, shared libraries and static libraries use the same namespace, and
11584 # are all built from PIC.
11585 case $host_os in
11586 aix3*)
11587 test "$enable_shared" = yes && enable_static=no
11588 if test -n "$RANLIB"; then
11589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11590 postinstall_cmds='$RANLIB $lib'
11591 fi
11592 ;;
11593
11594 aix[4-9]*)
11595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11596 test "$enable_shared" = yes && enable_static=no
11597 fi
11598 ;;
11599 esac
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11601 $as_echo "$enable_shared" >&6; }
11602
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11604 $as_echo_n "checking whether to build static libraries... " >&6; }
11605 # Make sure either enable_shared or enable_static is yes.
11606 test "$enable_shared" = yes || enable_static=yes
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11608 $as_echo "$enable_static" >&6; }
11609
11610
11611
11612
11613 fi
11614 ac_ext=c
11615 ac_cpp='$CPP $CPPFLAGS'
11616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11619
11620 CC="$lt_save_CC"
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636 ac_config_commands="$ac_config_commands libtool"
11637
11638
11639
11640
11641 # Only expand once:
11642
11643
11644
11645 ac_ext=cpp
11646 ac_cpp='$CXXCPP $CPPFLAGS'
11647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11650
11651
11652
11653
11654
11655
11656
11657
11658 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11659 if test -n "$ac_tool_prefix"; then
11660 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11661 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 case $PKG_CONFIG in
11668 [\\/]* | ?:[\\/]*)
11669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11670 ;;
11671 *)
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11674 do
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11679 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11682 fi
11683 done
11684 done
11685 IFS=$as_save_IFS
11686
11687 ;;
11688 esac
11689 fi
11690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11693 $as_echo "$PKG_CONFIG" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 fi
11698
11699
11700 fi
11701 if test -z "$ac_cv_path_PKG_CONFIG"; then
11702 ac_pt_PKG_CONFIG=$PKG_CONFIG
11703 # Extract the first word of "pkg-config", so it can be a program name with args.
11704 set dummy pkg-config; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case $ac_pt_PKG_CONFIG in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11713 ;;
11714 *)
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726 done
11727 done
11728 IFS=$as_save_IFS
11729
11730 ;;
11731 esac
11732 fi
11733 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11734 if test -n "$ac_pt_PKG_CONFIG"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11736 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741
11742 if test "x$ac_pt_PKG_CONFIG" = x; then
11743 PKG_CONFIG=""
11744 else
11745 case $cross_compiling:$ac_tool_warned in
11746 yes:)
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11749 ac_tool_warned=yes ;;
11750 esac
11751 PKG_CONFIG=$ac_pt_PKG_CONFIG
11752 fi
11753 else
11754 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11755 fi
11756
11757 fi
11758 if test -n "$PKG_CONFIG"; then
11759 _pkg_min_version=0.22
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11761 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11762 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11764 $as_echo "yes" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11768 PKG_CONFIG=""
11769 fi
11770 fi
11771
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11773 $as_echo_n "checking for GNU make... " >&6; }
11774 if ${_cv_gnu_make_command+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 _cv_gnu_make_command='' ;
11778 for a in "$MAKE" make gmake gnumake ; do
11779 if test -z "$a" ; then continue ; fi ;
11780 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11781 _cv_gnu_make_command=$a ;
11782 break;
11783 fi
11784 done ;
11785
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11788 $as_echo "$_cv_gnu_make_command" >&6; } ;
11789 if test "x$_cv_gnu_make_command" != "x" ; then
11790 ifGNUmake='' ;
11791 else
11792 ifGNUmake='#' ;
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11794 $as_echo "\"Not found\"" >&6; };
11795 fi
11796
11797
11798 GMAKE=$_cv_gnu_make_command
11799
11800 if test "x$GMAKE" = x; then :
11801 as_fn_error $? "You need GNU make" "$LINENO" 5
11802 fi
11803
11804 # Extract the first word of "bash", so it can be a program name with args.
11805 set dummy bash; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_path__BASH+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 case $_BASH in
11812 [\\/]* | ?:[\\/]*)
11813 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
11814 ;;
11815 *)
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11818 do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11826 fi
11827 done
11828 done
11829 IFS=$as_save_IFS
11830
11831 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
11832 ;;
11833 esac
11834 fi
11835 _BASH=$ac_cv_path__BASH
11836 if test -n "$_BASH"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
11838 $as_echo "$_BASH" >&6; }
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844
11845 # Extract the first word of "git", so it can be a program name with args.
11846 set dummy git; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_path_GIT+:} false; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 case $GIT in
11853 [\\/]* | ?:[\\/]*)
11854 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
11855 ;;
11856 *)
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868 done
11869 done
11870 IFS=$as_save_IFS
11871
11872 ;;
11873 esac
11874 fi
11875 GIT=$ac_cv_path_GIT
11876 if test -n "$GIT"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
11878 $as_echo "$GIT" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883
11884
11885 # Extract the first word of "time", so it can be a program name with args.
11886 set dummy time; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_path_TIME+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 case $TIME in
11893 [\\/]* | ?:[\\/]*)
11894 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
11895 ;;
11896 *)
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908 done
11909 done
11910 IFS=$as_save_IFS
11911
11912 ;;
11913 esac
11914 fi
11915 TIME=$ac_cv_path_TIME
11916 if test -n "$TIME"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
11918 $as_echo "$TIME" >&6; }
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 fi
11923
11924
11925
11926
11927
11928
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
11931 $as_echo_n "checking for bison >= 2.3... " >&6; }
11932 if test -z "$BISON"; then
11933 ac_path_BISON_found=false
11934 # Loop through the user's path and test for each of PROGNAME-LIST
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH
11937 do
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
11940 for ac_prog in bison; do
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
11943 as_fn_executable_p "$ac_path_BISON" || continue
11944 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
11945 if ${version:+false} :; then :
11946
11947 else
11948 as_awk_strverscmp='
11949 # Use only awk features that work with 7th edition Unix awk (1978).
11950 # My, what an old awk you have, Mr. Solaris!
11951 END {
11952 while (length(v1) && length(v2)) {
11953 # Set d1 to be the next thing to compare from v1, and likewise for d2.
11954 # Normally this is a single character, but if v1 and v2 contain digits,
11955 # compare them as integers and fractions as strverscmp does.
11956 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
11957 # Split v1 and v2 into their leading digit string components d1 and d2,
11958 # and advance v1 and v2 past the leading digit strings.
11959 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
11960 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
11961 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
11962 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
11963 if (d1 ~ /^0/) {
11964 if (d2 ~ /^0/) {
11965 # Compare two fractions.
11966 while (d1 ~ /^0/ && d2 ~ /^0/) {
11967 d1 = substr(d1, 2); len1--
11968 d2 = substr(d2, 2); len2--
11969 }
11970 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
11971 # The two components differ in length, and the common prefix
11972 # contains only leading zeros. Consider the longer to be less.
11973 d1 = -len1
11974 d2 = -len2
11975 } else {
11976 # Otherwise, compare as strings.
11977 d1 = "x" d1
11978 d2 = "x" d2
11979 }
11980 } else {
11981 # A fraction is less than an integer.
11982 exit 1
11983 }
11984 } else {
11985 if (d2 ~ /^0/) {
11986 # An integer is greater than a fraction.
11987 exit 2
11988 } else {
11989 # Compare two integers.
11990 d1 += 0
11991 d2 += 0
11992 }
11993 }
11994 } else {
11995 # The normal case, without worrying about digits.
11996 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
11997 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
11998 }
11999 if (d1 < d2) exit 1
12000 if (d1 > d2) exit 2
12001 }
12002 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
12003 # which mishandles some comparisons of empty strings to integers.
12004 if (length(v2)) exit 1
12005 if (length(v1)) exit 2
12006 }
12007 '
12008 as_arg_v1=$version
12009 as_arg_v2=2.3
12010 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12011 case $? in #(
12012 1) :
12013 ;; #(
12014 0) :
12015 ac_cv_path_BISON=$ac_path_BISON ;; #(
12016 2) :
12017 ac_cv_path_BISON=$ac_path_BISON ;; #(
12018 *) :
12019 ;;
12020 esac
12021 fi
12022
12023 $ac_path_BISON_found && break 3
12024 done
12025 done
12026 done
12027 IFS=$as_save_IFS
12028 if test -z "$ac_cv_path_BISON"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031 fi
12032 else
12033 ac_cv_path_BISON=$BISON
12034 fi
12035
12036
12037 if true; then :
12038
12039 BISON=$ac_cv_path_BISON
12040
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
12042 $as_echo "$BISON" >&6; }
12043
12044 else
12045 if true; then :
12046
12047 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
12048
12049 else
12050
12051 BISON=:
12052
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12055
12056 fi
12057 fi
12058
12059
12060
12061
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
12063 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
12064 if test -z "$FLEX"; then
12065 ac_path_FLEX_found=false
12066 # Loop through the user's path and test for each of PROGNAME-LIST
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_prog in flex; do
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
12075 as_fn_executable_p "$ac_path_FLEX" || continue
12076 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
12077 if ${version:+false} :; then :
12078
12079 else
12080 as_arg_v1=$version
12081 as_arg_v2=2.5.33
12082 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12083 case $? in #(
12084 1) :
12085 ;; #(
12086 0) :
12087 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
12088 2) :
12089 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
12090 *) :
12091 ;;
12092 esac
12093 fi
12094
12095 $ac_path_FLEX_found && break 3
12096 done
12097 done
12098 done
12099 IFS=$as_save_IFS
12100 if test -z "$ac_cv_path_FLEX"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12103 fi
12104 else
12105 ac_cv_path_FLEX=$FLEX
12106 fi
12107
12108
12109 if true; then :
12110
12111 FLEX=$ac_cv_path_FLEX
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
12114 $as_echo "$FLEX" >&6; }
12115
12116 else
12117 if true; then :
12118
12119 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
12120
12121 else
12122
12123 FLEX=:
12124
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127
12128 fi
12129 fi
12130
12131
12132
12133
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
12135 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
12136 if test -z "$GPERF"; then
12137 ac_path_GPERF_found=false
12138 # Loop through the user's path and test for each of PROGNAME-LIST
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12141 do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_prog in gperf; do
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
12147 as_fn_executable_p "$ac_path_GPERF" || continue
12148 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
12149 if ${version:+false} :; then :
12150
12151 else
12152 as_arg_v1=$version
12153 as_arg_v2=3.0.3
12154 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12155 case $? in #(
12156 1) :
12157 ;; #(
12158 0) :
12159 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
12160 2) :
12161 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
12162 *) :
12163 ;;
12164 esac
12165 fi
12166
12167 $ac_path_GPERF_found && break 3
12168 done
12169 done
12170 done
12171 IFS=$as_save_IFS
12172 if test -z "$ac_cv_path_GPERF"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175 fi
12176 else
12177 ac_cv_path_GPERF=$GPERF
12178 fi
12179
12180
12181 if true; then :
12182
12183 GPERF=$ac_cv_path_GPERF
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
12186 $as_echo "$GPERF" >&6; }
12187
12188 else
12189 if true; then :
12190
12191 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
12192
12193 else
12194
12195 GPERF=:
12196
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199
12200 fi
12201 fi
12202
12203
12204
12205
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
12207 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
12208 if test -z "$GNUTAR"; then
12209 ac_path_GNUTAR_found=false
12210 # Loop through the user's path and test for each of PROGNAME-LIST
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_prog in tar gtar gnutar; do
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
12219 as_fn_executable_p "$ac_path_GNUTAR" || continue
12220 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
12221 if ${version:+false} :; then :
12222
12223 else
12224 as_arg_v1=$version
12225 as_arg_v2=1.19
12226 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12227 case $? in #(
12228 1) :
12229 ;; #(
12230 0) :
12231 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
12232 2) :
12233 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
12234 *) :
12235 ;;
12236 esac
12237 fi
12238
12239 $ac_path_GNUTAR_found && break 3
12240 done
12241 done
12242 done
12243 IFS=$as_save_IFS
12244 if test -z "$ac_cv_path_GNUTAR"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12247 fi
12248 else
12249 ac_cv_path_GNUTAR=$GNUTAR
12250 fi
12251
12252
12253 if true; then :
12254
12255 GNUTAR=$ac_cv_path_GNUTAR
12256
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
12258 $as_echo "$GNUTAR" >&6; }
12259
12260 else
12261 if true; then :
12262
12263 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
12264
12265 else
12266
12267 GNUTAR=:
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271
12272 fi
12273 fi
12274
12275
12276
12277
12278 ac_ext=cpp
12279 ac_cpp='$CXXCPP $CPPFLAGS'
12280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12283 if test -z "$CXX"; then
12284 if test -n "$CCC"; then
12285 CXX=$CCC
12286 else
12287 if test -n "$ac_tool_prefix"; then
12288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12289 do
12290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_CXX+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 if test -n "$CXX"; then
12298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12299 else
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12302 do
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12310 fi
12311 done
12312 done
12313 IFS=$as_save_IFS
12314
12315 fi
12316 fi
12317 CXX=$ac_cv_prog_CXX
12318 if test -n "$CXX"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12320 $as_echo "$CXX" >&6; }
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 fi
12325
12326
12327 test -n "$CXX" && break
12328 done
12329 fi
12330 if test -z "$CXX"; then
12331 ac_ct_CXX=$CXX
12332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12333 do
12334 # Extract the first word of "$ac_prog", so it can be a program name with args.
12335 set dummy $ac_prog; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 if test -n "$ac_ct_CXX"; then
12342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_prog_ac_ct_CXX="$ac_prog"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12354 fi
12355 done
12356 done
12357 IFS=$as_save_IFS
12358
12359 fi
12360 fi
12361 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12362 if test -n "$ac_ct_CXX"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12364 $as_echo "$ac_ct_CXX" >&6; }
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12368 fi
12369
12370
12371 test -n "$ac_ct_CXX" && break
12372 done
12373
12374 if test "x$ac_ct_CXX" = x; then
12375 CXX="g++"
12376 else
12377 case $cross_compiling:$ac_tool_warned in
12378 yes:)
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12381 ac_tool_warned=yes ;;
12382 esac
12383 CXX=$ac_ct_CXX
12384 fi
12385 fi
12386
12387 fi
12388 fi
12389 # Provide some information about the compiler.
12390 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12391 set X $ac_compile
12392 ac_compiler=$2
12393 for ac_option in --version -v -V -qversion; do
12394 { { ac_try="$ac_compiler $ac_option >&5"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398 esac
12399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12400 $as_echo "$ac_try_echo"; } >&5
12401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12402 ac_status=$?
12403 if test -s conftest.err; then
12404 sed '10a\
12405 ... rest of stderr output deleted ...
12406 10q' conftest.err >conftest.er1
12407 cat conftest.er1 >&5
12408 fi
12409 rm -f conftest.er1 conftest.err
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }
12412 done
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12416 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421
12422 int
12423 main ()
12424 {
12425 #ifndef __GNUC__
12426 choke me
12427 #endif
12428
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_cxx_try_compile "$LINENO"; then :
12434 ac_compiler_gnu=yes
12435 else
12436 ac_compiler_gnu=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12444 if test $ac_compiler_gnu = yes; then
12445 GXX=yes
12446 else
12447 GXX=
12448 fi
12449 ac_test_CXXFLAGS=${CXXFLAGS+set}
12450 ac_save_CXXFLAGS=$CXXFLAGS
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12453 if ${ac_cv_prog_cxx_g+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12457 ac_cxx_werror_flag=yes
12458 ac_cv_prog_cxx_g=no
12459 CXXFLAGS="-g"
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462
12463 int
12464 main ()
12465 {
12466
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_cxx_try_compile "$LINENO"; then :
12472 ac_cv_prog_cxx_g=yes
12473 else
12474 CXXFLAGS=""
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477
12478 int
12479 main ()
12480 {
12481
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_cxx_try_compile "$LINENO"; then :
12487
12488 else
12489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12490 CXXFLAGS="-g"
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493
12494 int
12495 main ()
12496 {
12497
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_cxx_try_compile "$LINENO"; then :
12503 ac_cv_prog_cxx_g=yes
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508 fi
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12514 if test "$ac_test_CXXFLAGS" = set; then
12515 CXXFLAGS=$ac_save_CXXFLAGS
12516 elif test $ac_cv_prog_cxx_g = yes; then
12517 if test "$GXX" = yes; then
12518 CXXFLAGS="-g -O2"
12519 else
12520 CXXFLAGS="-g"
12521 fi
12522 else
12523 if test "$GXX" = yes; then
12524 CXXFLAGS="-O2"
12525 else
12526 CXXFLAGS=
12527 fi
12528 fi
12529 ac_ext=cpp
12530 ac_cpp='$CXXCPP $CPPFLAGS'
12531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12534
12535 depcc="$CXX" am_compiler_list=
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12538 $as_echo_n "checking dependency style of $depcc... " >&6; }
12539 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12543 # We make a subdir and do the tests there. Otherwise we can end up
12544 # making bogus files that we don't know about and never remove. For
12545 # instance it was reported that on HP-UX the gcc test will end up
12546 # making a dummy file named 'D' -- because '-MD' means "put the output
12547 # in D".
12548 rm -rf conftest.dir
12549 mkdir conftest.dir
12550 # Copy depcomp to subdir because otherwise we won't find it if we're
12551 # using a relative directory.
12552 cp "$am_depcomp" conftest.dir
12553 cd conftest.dir
12554 # We will build objects and dependencies in a subdirectory because
12555 # it helps to detect inapplicable dependency modes. For instance
12556 # both Tru64's cc and ICC support -MD to output dependencies as a
12557 # side effect of compilation, but ICC will put the dependencies in
12558 # the current directory while Tru64 will put them in the object
12559 # directory.
12560 mkdir sub
12561
12562 am_cv_CXX_dependencies_compiler_type=none
12563 if test "$am_compiler_list" = ""; then
12564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12565 fi
12566 am__universal=false
12567 case " $depcc " in #(
12568 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12569 esac
12570
12571 for depmode in $am_compiler_list; do
12572 # Setup a source with many dependencies, because some compilers
12573 # like to wrap large dependency lists on column 80 (with \), and
12574 # we should not choose a depcomp mode which is confused by this.
12575 #
12576 # We need to recreate these files for each test, as the compiler may
12577 # overwrite some of them when testing with obscure command lines.
12578 # This happens at least with the AIX C compiler.
12579 : > sub/conftest.c
12580 for i in 1 2 3 4 5 6; do
12581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12582 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12583 # Solaris 10 /bin/sh.
12584 echo '/* dummy */' > sub/conftst$i.h
12585 done
12586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12587
12588 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12589 # mode. It turns out that the SunPro C++ compiler does not properly
12590 # handle '-M -o', and we need to detect this. Also, some Intel
12591 # versions had trouble with output in subdirs.
12592 am__obj=sub/conftest.${OBJEXT-o}
12593 am__minus_obj="-o $am__obj"
12594 case $depmode in
12595 gcc)
12596 # This depmode causes a compiler race in universal mode.
12597 test "$am__universal" = false || continue
12598 ;;
12599 nosideeffect)
12600 # After this tag, mechanisms are not by side-effect, so they'll
12601 # only be used when explicitly requested.
12602 if test "x$enable_dependency_tracking" = xyes; then
12603 continue
12604 else
12605 break
12606 fi
12607 ;;
12608 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12609 # This compiler won't grok '-c -o', but also, the minuso test has
12610 # not run yet. These depmodes are late enough in the game, and
12611 # so weak that their functioning should not be impacted.
12612 am__obj=conftest.${OBJEXT-o}
12613 am__minus_obj=
12614 ;;
12615 none) break ;;
12616 esac
12617 if depmode=$depmode \
12618 source=sub/conftest.c object=$am__obj \
12619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12620 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12621 >/dev/null 2>conftest.err &&
12622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12624 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12626 # icc doesn't choke on unknown options, it will just issue warnings
12627 # or remarks (even with -Werror). So we grep stderr for any message
12628 # that says an option was ignored or not supported.
12629 # When given -MP, icc 7.0 and 7.1 complain thusly:
12630 # icc: Command line warning: ignoring option '-M'; no argument required
12631 # The diagnosis changed in icc 8.0:
12632 # icc: Command line remark: option '-MP' not supported
12633 if (grep 'ignoring option' conftest.err ||
12634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12635 am_cv_CXX_dependencies_compiler_type=$depmode
12636 break
12637 fi
12638 fi
12639 done
12640
12641 cd ..
12642 rm -rf conftest.dir
12643 else
12644 am_cv_CXX_dependencies_compiler_type=none
12645 fi
12646
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12649 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12650 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12651
12652 if
12653 test "x$enable_dependency_tracking" != xno \
12654 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12655 am__fastdepCXX_TRUE=
12656 am__fastdepCXX_FALSE='#'
12657 else
12658 am__fastdepCXX_TRUE='#'
12659 am__fastdepCXX_FALSE=
12660 fi
12661
12662
12663
12664
12665 func_stripname_cnf ()
12666 {
12667 case ${2} in
12668 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12669 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12670 esac
12671 } # func_stripname_cnf
12672
12673 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12674 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12675 (test "X$CXX" != "Xg++"))) ; then
12676 ac_ext=cpp
12677 ac_cpp='$CXXCPP $CPPFLAGS'
12678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12682 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12683 if test -z "$CXXCPP"; then
12684 if ${ac_cv_prog_CXXCPP+:} false; then :
12685 $as_echo_n "(cached) " >&6
12686 else
12687 # Double quotes because CXXCPP needs to be expanded
12688 for CXXCPP in "$CXX -E" "/lib/cpp"
12689 do
12690 ac_preproc_ok=false
12691 for ac_cxx_preproc_warn_flag in '' yes
12692 do
12693 # Use a header file that comes with gcc, so configuring glibc
12694 # with a fresh cross-compiler works.
12695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12696 # <limits.h> exists even on freestanding compilers.
12697 # On the NeXT, cc -E runs the code through the compiler's parser,
12698 # not just through cpp. "Syntax error" is here to catch this case.
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701 #ifdef __STDC__
12702 # include <limits.h>
12703 #else
12704 # include <assert.h>
12705 #endif
12706 Syntax error
12707 _ACEOF
12708 if ac_fn_cxx_try_cpp "$LINENO"; then :
12709
12710 else
12711 # Broken: fails on valid input.
12712 continue
12713 fi
12714 rm -f conftest.err conftest.i conftest.$ac_ext
12715
12716 # OK, works on sane cases. Now check whether nonexistent headers
12717 # can be detected and how.
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 #include <ac_nonexistent.h>
12721 _ACEOF
12722 if ac_fn_cxx_try_cpp "$LINENO"; then :
12723 # Broken: success on invalid input.
12724 continue
12725 else
12726 # Passes both tests.
12727 ac_preproc_ok=:
12728 break
12729 fi
12730 rm -f conftest.err conftest.i conftest.$ac_ext
12731
12732 done
12733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12734 rm -f conftest.i conftest.err conftest.$ac_ext
12735 if $ac_preproc_ok; then :
12736 break
12737 fi
12738
12739 done
12740 ac_cv_prog_CXXCPP=$CXXCPP
12741
12742 fi
12743 CXXCPP=$ac_cv_prog_CXXCPP
12744 else
12745 ac_cv_prog_CXXCPP=$CXXCPP
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12748 $as_echo "$CXXCPP" >&6; }
12749 ac_preproc_ok=false
12750 for ac_cxx_preproc_warn_flag in '' yes
12751 do
12752 # Use a header file that comes with gcc, so configuring glibc
12753 # with a fresh cross-compiler works.
12754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12755 # <limits.h> exists even on freestanding compilers.
12756 # On the NeXT, cc -E runs the code through the compiler's parser,
12757 # not just through cpp. "Syntax error" is here to catch this case.
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #ifdef __STDC__
12761 # include <limits.h>
12762 #else
12763 # include <assert.h>
12764 #endif
12765 Syntax error
12766 _ACEOF
12767 if ac_fn_cxx_try_cpp "$LINENO"; then :
12768
12769 else
12770 # Broken: fails on valid input.
12771 continue
12772 fi
12773 rm -f conftest.err conftest.i conftest.$ac_ext
12774
12775 # OK, works on sane cases. Now check whether nonexistent headers
12776 # can be detected and how.
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #include <ac_nonexistent.h>
12780 _ACEOF
12781 if ac_fn_cxx_try_cpp "$LINENO"; then :
12782 # Broken: success on invalid input.
12783 continue
12784 else
12785 # Passes both tests.
12786 ac_preproc_ok=:
12787 break
12788 fi
12789 rm -f conftest.err conftest.i conftest.$ac_ext
12790
12791 done
12792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12793 rm -f conftest.i conftest.err conftest.$ac_ext
12794 if $ac_preproc_ok; then :
12795
12796 else
12797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12799 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12800 See \`config.log' for more details" "$LINENO" 5; }
12801 fi
12802
12803 ac_ext=cpp
12804 ac_cpp='$CXXCPP $CPPFLAGS'
12805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12808
12809 else
12810 _lt_caught_CXX_error=yes
12811 fi
12812
12813 ac_ext=cpp
12814 ac_cpp='$CXXCPP $CPPFLAGS'
12815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12818
12819 archive_cmds_need_lc_CXX=no
12820 allow_undefined_flag_CXX=
12821 always_export_symbols_CXX=no
12822 archive_expsym_cmds_CXX=
12823 compiler_needs_object_CXX=no
12824 export_dynamic_flag_spec_CXX=
12825 hardcode_direct_CXX=no
12826 hardcode_direct_absolute_CXX=no
12827 hardcode_libdir_flag_spec_CXX=
12828 hardcode_libdir_separator_CXX=
12829 hardcode_minus_L_CXX=no
12830 hardcode_shlibpath_var_CXX=unsupported
12831 hardcode_automatic_CXX=no
12832 inherit_rpath_CXX=no
12833 module_cmds_CXX=
12834 module_expsym_cmds_CXX=
12835 link_all_deplibs_CXX=unknown
12836 old_archive_cmds_CXX=$old_archive_cmds
12837 reload_flag_CXX=$reload_flag
12838 reload_cmds_CXX=$reload_cmds
12839 no_undefined_flag_CXX=
12840 whole_archive_flag_spec_CXX=
12841 enable_shared_with_static_runtimes_CXX=no
12842
12843 # Source file extension for C++ test sources.
12844 ac_ext=cpp
12845
12846 # Object file extension for compiled C++ test sources.
12847 objext=o
12848 objext_CXX=$objext
12849
12850 # No sense in running all these tests if we already determined that
12851 # the CXX compiler isn't working. Some variables (like enable_shared)
12852 # are currently assumed to apply to all compilers on this platform,
12853 # and will be corrupted by setting them based on a non-working compiler.
12854 if test "$_lt_caught_CXX_error" != yes; then
12855 # Code to be used in simple compile tests
12856 lt_simple_compile_test_code="int some_variable = 0;"
12857
12858 # Code to be used in simple link tests
12859 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12860
12861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12862
12863
12864
12865
12866
12867
12868 # If no C compiler was specified, use CC.
12869 LTCC=${LTCC-"$CC"}
12870
12871 # If no C compiler flags were specified, use CFLAGS.
12872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12873
12874 # Allow CC to be a program name with arguments.
12875 compiler=$CC
12876
12877
12878 # save warnings/boilerplate of simple test code
12879 ac_outfile=conftest.$ac_objext
12880 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12882 _lt_compiler_boilerplate=`cat conftest.err`
12883 $RM -r conftest*
12884
12885 ac_outfile=conftest.$ac_objext
12886 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12888 _lt_linker_boilerplate=`cat conftest.err`
12889 $RM -r conftest*
12890
12891
12892 # Allow CC to be a program name with arguments.
12893 lt_save_CC=$CC
12894 lt_save_CFLAGS=$CFLAGS
12895 lt_save_LD=$LD
12896 lt_save_GCC=$GCC
12897 GCC=$GXX
12898 lt_save_with_gnu_ld=$with_gnu_ld
12899 lt_save_path_LD=$lt_cv_path_LD
12900 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12901 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12902 else
12903 $as_unset lt_cv_prog_gnu_ld
12904 fi
12905 if test -n "${lt_cv_path_LDCXX+set}"; then
12906 lt_cv_path_LD=$lt_cv_path_LDCXX
12907 else
12908 $as_unset lt_cv_path_LD
12909 fi
12910 test -z "${LDCXX+set}" || LD=$LDCXX
12911 CC=${CXX-"c++"}
12912 CFLAGS=$CXXFLAGS
12913 compiler=$CC
12914 compiler_CXX=$CC
12915 for cc_temp in $compiler""; do
12916 case $cc_temp in
12917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12919 \-*) ;;
12920 *) break;;
12921 esac
12922 done
12923 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12924
12925
12926 if test -n "$compiler"; then
12927 # We don't want -fno-exception when compiling C++ code, so set the
12928 # no_builtin_flag separately
12929 if test "$GXX" = yes; then
12930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12931 else
12932 lt_prog_compiler_no_builtin_flag_CXX=
12933 fi
12934
12935 if test "$GXX" = yes; then
12936 # Set up default GNU C++ configuration
12937
12938
12939
12940 # Check whether --with-gnu-ld was given.
12941 if test "${with_gnu_ld+set}" = set; then :
12942 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12943 else
12944 with_gnu_ld=no
12945 fi
12946
12947 ac_prog=ld
12948 if test "$GCC" = yes; then
12949 # Check if gcc -print-prog-name=ld gives a path.
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12951 $as_echo_n "checking for ld used by $CC... " >&6; }
12952 case $host in
12953 *-*-mingw*)
12954 # gcc leaves a trailing carriage return which upsets mingw
12955 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12956 *)
12957 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12958 esac
12959 case $ac_prog in
12960 # Accept absolute paths.
12961 [\\/]* | ?:[\\/]*)
12962 re_direlt='/[^/][^/]*/\.\./'
12963 # Canonicalize the pathname of ld
12964 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12965 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12966 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12967 done
12968 test -z "$LD" && LD="$ac_prog"
12969 ;;
12970 "")
12971 # If it fails, then pretend we aren't using GCC.
12972 ac_prog=ld
12973 ;;
12974 *)
12975 # If it is relative, then search for the first ld in PATH.
12976 with_gnu_ld=unknown
12977 ;;
12978 esac
12979 elif test "$with_gnu_ld" = yes; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12981 $as_echo_n "checking for GNU ld... " >&6; }
12982 else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12984 $as_echo_n "checking for non-GNU ld... " >&6; }
12985 fi
12986 if ${lt_cv_path_LD+:} false; then :
12987 $as_echo_n "(cached) " >&6
12988 else
12989 if test -z "$LD"; then
12990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12991 for ac_dir in $PATH; do
12992 IFS="$lt_save_ifs"
12993 test -z "$ac_dir" && ac_dir=.
12994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12995 lt_cv_path_LD="$ac_dir/$ac_prog"
12996 # Check to see if the program is GNU ld. I'd rather use --version,
12997 # but apparently some variants of GNU ld only accept -v.
12998 # Break only if it was the GNU/non-GNU ld that we prefer.
12999 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13000 *GNU* | *'with BFD'*)
13001 test "$with_gnu_ld" != no && break
13002 ;;
13003 *)
13004 test "$with_gnu_ld" != yes && break
13005 ;;
13006 esac
13007 fi
13008 done
13009 IFS="$lt_save_ifs"
13010 else
13011 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13012 fi
13013 fi
13014
13015 LD="$lt_cv_path_LD"
13016 if test -n "$LD"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13018 $as_echo "$LD" >&6; }
13019 else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13022 fi
13023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13026 if ${lt_cv_prog_gnu_ld+:} false; then :
13027 $as_echo_n "(cached) " >&6
13028 else
13029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13030 case `$LD -v 2>&1 </dev/null` in
13031 *GNU* | *'with BFD'*)
13032 lt_cv_prog_gnu_ld=yes
13033 ;;
13034 *)
13035 lt_cv_prog_gnu_ld=no
13036 ;;
13037 esac
13038 fi
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13040 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13041 with_gnu_ld=$lt_cv_prog_gnu_ld
13042
13043
13044
13045
13046
13047
13048
13049 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13050 # archiving commands below assume that GNU ld is being used.
13051 if test "$with_gnu_ld" = yes; then
13052 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13053 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'
13054
13055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13057
13058 # If archive_cmds runs LD, not CC, wlarc should be empty
13059 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13060 # investigate it a little bit more. (MM)
13061 wlarc='${wl}'
13062
13063 # ancient GNU ld didn't support --whole-archive et. al.
13064 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13065 $GREP 'no-whole-archive' > /dev/null; then
13066 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13067 else
13068 whole_archive_flag_spec_CXX=
13069 fi
13070 else
13071 with_gnu_ld=no
13072 wlarc=
13073
13074 # A generic and very simple default shared library creation
13075 # command for GNU C++ for the case where it uses the native
13076 # linker, instead of GNU ld. If possible, this setting should
13077 # overridden to take advantage of the native linker features on
13078 # the platform it is being used on.
13079 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13080 fi
13081
13082 # Commands to make compiler produce verbose output that lists
13083 # what "hidden" libraries, object files and flags are used when
13084 # linking a shared library.
13085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13086
13087 else
13088 GXX=no
13089 with_gnu_ld=no
13090 wlarc=
13091 fi
13092
13093 # PORTME: fill in a description of your system's C++ link characteristics
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13096 ld_shlibs_CXX=yes
13097 case $host_os in
13098 aix3*)
13099 # FIXME: insert proper C++ library support
13100 ld_shlibs_CXX=no
13101 ;;
13102 aix[4-9]*)
13103 if test "$host_cpu" = ia64; then
13104 # On IA64, the linker does run time linking by default, so we don't
13105 # have to do anything special.
13106 aix_use_runtimelinking=no
13107 exp_sym_flag='-Bexport'
13108 no_entry_flag=""
13109 else
13110 aix_use_runtimelinking=no
13111
13112 # Test if we are trying to use run time linking or normal
13113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13114 # need to do runtime linking.
13115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13116 for ld_flag in $LDFLAGS; do
13117 case $ld_flag in
13118 *-brtl*)
13119 aix_use_runtimelinking=yes
13120 break
13121 ;;
13122 esac
13123 done
13124 ;;
13125 esac
13126
13127 exp_sym_flag='-bexport'
13128 no_entry_flag='-bnoentry'
13129 fi
13130
13131 # When large executables or shared objects are built, AIX ld can
13132 # have problems creating the table of contents. If linking a library
13133 # or program results in "error TOC overflow" add -mminimal-toc to
13134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13136
13137 archive_cmds_CXX=''
13138 hardcode_direct_CXX=yes
13139 hardcode_direct_absolute_CXX=yes
13140 hardcode_libdir_separator_CXX=':'
13141 link_all_deplibs_CXX=yes
13142 file_list_spec_CXX='${wl}-f,'
13143
13144 if test "$GXX" = yes; then
13145 case $host_os in aix4.[012]|aix4.[012].*)
13146 # We only want to do this on AIX 4.2 and lower, the check
13147 # below for broken collect2 doesn't work under 4.3+
13148 collect2name=`${CC} -print-prog-name=collect2`
13149 if test -f "$collect2name" &&
13150 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13151 then
13152 # We have reworked collect2
13153 :
13154 else
13155 # We have old collect2
13156 hardcode_direct_CXX=unsupported
13157 # It fails to find uninstalled libraries when the uninstalled
13158 # path is not listed in the libpath. Setting hardcode_minus_L
13159 # to unsupported forces relinking
13160 hardcode_minus_L_CXX=yes
13161 hardcode_libdir_flag_spec_CXX='-L$libdir'
13162 hardcode_libdir_separator_CXX=
13163 fi
13164 esac
13165 shared_flag='-shared'
13166 if test "$aix_use_runtimelinking" = yes; then
13167 shared_flag="$shared_flag "'${wl}-G'
13168 fi
13169 else
13170 # not using gcc
13171 if test "$host_cpu" = ia64; then
13172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13173 # chokes on -Wl,-G. The following line is correct:
13174 shared_flag='-G'
13175 else
13176 if test "$aix_use_runtimelinking" = yes; then
13177 shared_flag='${wl}-G'
13178 else
13179 shared_flag='${wl}-bM:SRE'
13180 fi
13181 fi
13182 fi
13183
13184 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13185 # It seems that -bexpall does not export symbols beginning with
13186 # underscore (_), so it is better to generate a list of symbols to
13187 # export.
13188 always_export_symbols_CXX=yes
13189 if test "$aix_use_runtimelinking" = yes; then
13190 # Warning - without using the other runtime loading flags (-brtl),
13191 # -berok will link without error, but may produce a broken library.
13192 allow_undefined_flag_CXX='-berok'
13193 # Determine the default libpath from the value encoded in an empty
13194 # executable.
13195 if test "${lt_cv_aix_libpath+set}" = set; then
13196 aix_libpath=$lt_cv_aix_libpath
13197 else
13198 if ${lt_cv_aix_libpath__CXX+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204 int
13205 main ()
13206 {
13207
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_cxx_try_link "$LINENO"; then :
13213
13214 lt_aix_libpath_sed='
13215 /Import File Strings/,/^$/ {
13216 /^0/ {
13217 s/^0 *\([^ ]*\) *$/\1/
13218 p
13219 }
13220 }'
13221 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13222 # Check for a 64-bit object if we didn't find anything.
13223 if test -z "$lt_cv_aix_libpath__CXX"; then
13224 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13225 fi
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 if test -z "$lt_cv_aix_libpath__CXX"; then
13230 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13231 fi
13232
13233 fi
13234
13235 aix_libpath=$lt_cv_aix_libpath__CXX
13236 fi
13237
13238 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13239
13240 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"
13241 else
13242 if test "$host_cpu" = ia64; then
13243 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13244 allow_undefined_flag_CXX="-z nodefs"
13245 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"
13246 else
13247 # Determine the default libpath from the value encoded in an
13248 # empty executable.
13249 if test "${lt_cv_aix_libpath+set}" = set; then
13250 aix_libpath=$lt_cv_aix_libpath
13251 else
13252 if ${lt_cv_aix_libpath__CXX+:} false; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 int
13259 main ()
13260 {
13261
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_cxx_try_link "$LINENO"; then :
13267
13268 lt_aix_libpath_sed='
13269 /Import File Strings/,/^$/ {
13270 /^0/ {
13271 s/^0 *\([^ ]*\) *$/\1/
13272 p
13273 }
13274 }'
13275 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13276 # Check for a 64-bit object if we didn't find anything.
13277 if test -z "$lt_cv_aix_libpath__CXX"; then
13278 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13279 fi
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 if test -z "$lt_cv_aix_libpath__CXX"; then
13284 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13285 fi
13286
13287 fi
13288
13289 aix_libpath=$lt_cv_aix_libpath__CXX
13290 fi
13291
13292 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13293 # Warning - without using the other run time loading flags,
13294 # -berok will link without error, but may produce a broken library.
13295 no_undefined_flag_CXX=' ${wl}-bernotok'
13296 allow_undefined_flag_CXX=' ${wl}-berok'
13297 if test "$with_gnu_ld" = yes; then
13298 # We only use this code for GNU lds that support --whole-archive.
13299 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13300 else
13301 # Exported symbols can be pulled into shared objects from archives
13302 whole_archive_flag_spec_CXX='$convenience'
13303 fi
13304 archive_cmds_need_lc_CXX=yes
13305 # This is similar to how AIX traditionally builds its shared
13306 # libraries.
13307 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'
13308 fi
13309 fi
13310 ;;
13311
13312 beos*)
13313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13314 allow_undefined_flag_CXX=unsupported
13315 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13316 # support --undefined. This deserves some investigation. FIXME
13317 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 else
13319 ld_shlibs_CXX=no
13320 fi
13321 ;;
13322
13323 chorus*)
13324 case $cc_basename in
13325 *)
13326 # FIXME: insert proper C++ library support
13327 ld_shlibs_CXX=no
13328 ;;
13329 esac
13330 ;;
13331
13332 cygwin* | mingw* | pw32* | cegcc*)
13333 case $GXX,$cc_basename in
13334 ,cl* | no,cl*)
13335 # Native MSVC
13336 # hardcode_libdir_flag_spec is actually meaningless, as there is
13337 # no search path for DLLs.
13338 hardcode_libdir_flag_spec_CXX=' '
13339 allow_undefined_flag_CXX=unsupported
13340 always_export_symbols_CXX=yes
13341 file_list_spec_CXX='@'
13342 # Tell ltmain to make .lib files, not .a files.
13343 libext=lib
13344 # Tell ltmain to make .dll files, not .so files.
13345 shrext_cmds=".dll"
13346 # FIXME: Setting linknames here is a bad hack.
13347 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13348 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13349 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13350 else
13351 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13352 fi~
13353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13354 linknames='
13355 # The linker will not automatically build a static lib if we build a DLL.
13356 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13357 enable_shared_with_static_runtimes_CXX=yes
13358 # Don't use ranlib
13359 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13360 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13361 lt_tool_outputfile="@TOOL_OUTPUT@"~
13362 case $lt_outputfile in
13363 *.exe|*.EXE) ;;
13364 *)
13365 lt_outputfile="$lt_outputfile.exe"
13366 lt_tool_outputfile="$lt_tool_outputfile.exe"
13367 ;;
13368 esac~
13369 func_to_tool_file "$lt_outputfile"~
13370 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13371 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13372 $RM "$lt_outputfile.manifest";
13373 fi'
13374 ;;
13375 *)
13376 # g++
13377 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13378 # as there is no search path for DLLs.
13379 hardcode_libdir_flag_spec_CXX='-L$libdir'
13380 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13381 allow_undefined_flag_CXX=unsupported
13382 always_export_symbols_CXX=no
13383 enable_shared_with_static_runtimes_CXX=yes
13384
13385 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13386 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'
13387 # If the export-symbols file already is a .def file (1st line
13388 # is EXPORTS), use it as is; otherwise, prepend...
13389 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13390 cp $export_symbols $output_objdir/$soname.def;
13391 else
13392 echo EXPORTS > $output_objdir/$soname.def;
13393 cat $export_symbols >> $output_objdir/$soname.def;
13394 fi~
13395 $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'
13396 else
13397 ld_shlibs_CXX=no
13398 fi
13399 ;;
13400 esac
13401 ;;
13402 darwin* | rhapsody*)
13403
13404
13405 archive_cmds_need_lc_CXX=no
13406 hardcode_direct_CXX=no
13407 hardcode_automatic_CXX=yes
13408 hardcode_shlibpath_var_CXX=unsupported
13409 if test "$lt_cv_ld_force_load" = "yes"; then
13410 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\"`'
13411
13412 else
13413 whole_archive_flag_spec_CXX=''
13414 fi
13415 link_all_deplibs_CXX=yes
13416 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13417 case $cc_basename in
13418 ifort*) _lt_dar_can_shared=yes ;;
13419 *) _lt_dar_can_shared=$GCC ;;
13420 esac
13421 if test "$_lt_dar_can_shared" = "yes"; then
13422 output_verbose_link_cmd=func_echo_all
13423 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}"
13424 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13425 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}"
13426 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}"
13427 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13428 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}"
13429 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}"
13430 fi
13431
13432 else
13433 ld_shlibs_CXX=no
13434 fi
13435
13436 ;;
13437
13438 dgux*)
13439 case $cc_basename in
13440 ec++*)
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13443 ;;
13444 ghcx*)
13445 # Green Hills C++ Compiler
13446 # FIXME: insert proper C++ library support
13447 ld_shlibs_CXX=no
13448 ;;
13449 *)
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13452 ;;
13453 esac
13454 ;;
13455
13456 freebsd2.*)
13457 # C++ shared libraries reported to be fairly broken before
13458 # switch to ELF
13459 ld_shlibs_CXX=no
13460 ;;
13461
13462 freebsd-elf*)
13463 archive_cmds_need_lc_CXX=no
13464 ;;
13465
13466 freebsd* | dragonfly*)
13467 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13468 # conventions
13469 ld_shlibs_CXX=yes
13470 ;;
13471
13472 gnu*)
13473 ;;
13474
13475 haiku*)
13476 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13477 link_all_deplibs_CXX=yes
13478 ;;
13479
13480 hpux9*)
13481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13482 hardcode_libdir_separator_CXX=:
13483 export_dynamic_flag_spec_CXX='${wl}-E'
13484 hardcode_direct_CXX=yes
13485 hardcode_minus_L_CXX=yes # Not in the search PATH,
13486 # but as the default
13487 # location of the library.
13488
13489 case $cc_basename in
13490 CC*)
13491 # FIXME: insert proper C++ library support
13492 ld_shlibs_CXX=no
13493 ;;
13494 aCC*)
13495 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'
13496 # Commands to make compiler produce verbose output that lists
13497 # what "hidden" libraries, object files and flags are used when
13498 # linking a shared library.
13499 #
13500 # There doesn't appear to be a way to prevent this compiler from
13501 # explicitly linking system object files so we need to strip them
13502 # from the output so that they don't get included in the library
13503 # dependencies.
13504 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"'
13505 ;;
13506 *)
13507 if test "$GXX" = yes; then
13508 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'
13509 else
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 fi
13513 ;;
13514 esac
13515 ;;
13516
13517 hpux10*|hpux11*)
13518 if test $with_gnu_ld = no; then
13519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13520 hardcode_libdir_separator_CXX=:
13521
13522 case $host_cpu in
13523 hppa*64*|ia64*)
13524 ;;
13525 *)
13526 export_dynamic_flag_spec_CXX='${wl}-E'
13527 ;;
13528 esac
13529 fi
13530 case $host_cpu in
13531 hppa*64*|ia64*)
13532 hardcode_direct_CXX=no
13533 hardcode_shlibpath_var_CXX=no
13534 ;;
13535 *)
13536 hardcode_direct_CXX=yes
13537 hardcode_direct_absolute_CXX=yes
13538 hardcode_minus_L_CXX=yes # Not in the search PATH,
13539 # but as the default
13540 # location of the library.
13541 ;;
13542 esac
13543
13544 case $cc_basename in
13545 CC*)
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13548 ;;
13549 aCC*)
13550 case $host_cpu in
13551 hppa*64*)
13552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553 ;;
13554 ia64*)
13555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13556 ;;
13557 *)
13558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13559 ;;
13560 esac
13561 # Commands to make compiler produce verbose output that lists
13562 # what "hidden" libraries, object files and flags are used when
13563 # linking a shared library.
13564 #
13565 # There doesn't appear to be a way to prevent this compiler from
13566 # explicitly linking system object files so we need to strip them
13567 # from the output so that they don't get included in the library
13568 # dependencies.
13569 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"'
13570 ;;
13571 *)
13572 if test "$GXX" = yes; then
13573 if test $with_gnu_ld = no; then
13574 case $host_cpu in
13575 hppa*64*)
13576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13577 ;;
13578 ia64*)
13579 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13580 ;;
13581 *)
13582 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'
13583 ;;
13584 esac
13585 fi
13586 else
13587 # FIXME: insert proper C++ library support
13588 ld_shlibs_CXX=no
13589 fi
13590 ;;
13591 esac
13592 ;;
13593
13594 interix[3-9]*)
13595 hardcode_direct_CXX=no
13596 hardcode_shlibpath_var_CXX=no
13597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13598 export_dynamic_flag_spec_CXX='${wl}-E'
13599 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13600 # Instead, shared libraries are loaded at an image base (0x10000000 by
13601 # default) and relocated if they conflict, which is a slow very memory
13602 # consuming and fragmenting process. To avoid this, we pick a random,
13603 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13604 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13605 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'
13606 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'
13607 ;;
13608 irix5* | irix6*)
13609 case $cc_basename in
13610 CC*)
13611 # SGI C++
13612 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'
13613
13614 # Archives containing C++ object files must be created using
13615 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13616 # necessary to make sure instantiated templates are included
13617 # in the archive.
13618 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13619 ;;
13620 *)
13621 if test "$GXX" = yes; then
13622 if test "$with_gnu_ld" = no; then
13623 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'
13624 else
13625 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'
13626 fi
13627 fi
13628 link_all_deplibs_CXX=yes
13629 ;;
13630 esac
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13632 hardcode_libdir_separator_CXX=:
13633 inherit_rpath_CXX=yes
13634 ;;
13635
13636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13637 case $cc_basename in
13638 KCC*)
13639 # Kuck and Associates, Inc. (KAI) C++ Compiler
13640
13641 # KCC will only create a shared library if the output file
13642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643 # to its proper name (with version) after linking.
13644 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'
13645 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'
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13649 #
13650 # There doesn't appear to be a way to prevent this compiler from
13651 # explicitly linking system object files so we need to strip them
13652 # from the output so that they don't get included in the library
13653 # dependencies.
13654 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"'
13655
13656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13658
13659 # Archives containing C++ object files must be created using
13660 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13661 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13662 ;;
13663 icpc* | ecpc* )
13664 # Intel C++
13665 with_gnu_ld=yes
13666 # version 8.0 and above of icpc choke on multiply defined symbols
13667 # if we add $predep_objects and $postdep_objects, however 7.1 and
13668 # earlier do not add the objects themselves.
13669 case `$CC -V 2>&1` in
13670 *"Version 7."*)
13671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 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'
13673 ;;
13674 *) # Version 8.0 or newer
13675 tmp_idyn=
13676 case $host_cpu in
13677 ia64*) tmp_idyn=' -i_dynamic';;
13678 esac
13679 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680 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'
13681 ;;
13682 esac
13683 archive_cmds_need_lc_CXX=no
13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13686 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13687 ;;
13688 pgCC* | pgcpp*)
13689 # Portland Group C++ compiler
13690 case `$CC -V` in
13691 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13692 prelink_cmds_CXX='tpldir=Template.dir~
13693 rm -rf $tpldir~
13694 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13695 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13696 old_archive_cmds_CXX='tpldir=Template.dir~
13697 rm -rf $tpldir~
13698 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13699 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13700 $RANLIB $oldlib'
13701 archive_cmds_CXX='tpldir=Template.dir~
13702 rm -rf $tpldir~
13703 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13704 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13705 archive_expsym_cmds_CXX='tpldir=Template.dir~
13706 rm -rf $tpldir~
13707 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13708 $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'
13709 ;;
13710 *) # Version 6 and above use weak symbols
13711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13712 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'
13713 ;;
13714 esac
13715
13716 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13718 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'
13719 ;;
13720 cxx*)
13721 # Compaq C++
13722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723 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'
13724
13725 runpath_var=LD_RUN_PATH
13726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13727 hardcode_libdir_separator_CXX=:
13728
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13732 #
13733 # There doesn't appear to be a way to prevent this compiler from
13734 # explicitly linking system object files so we need to strip them
13735 # from the output so that they don't get included in the library
13736 # dependencies.
13737 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'
13738 ;;
13739 xl* | mpixl* | bgxl*)
13740 # IBM XL 8.0 on PPC, with GNU ld
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13743 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744 if test "x$supports_anon_versioning" = xyes; then
13745 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13747 echo "local: *; };" >> $output_objdir/$libname.ver~
13748 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13749 fi
13750 ;;
13751 *)
13752 case `$CC -V 2>&1 | sed 5q` in
13753 *Sun\ C*)
13754 # Sun C++ 5.9
13755 no_undefined_flag_CXX=' -zdefs'
13756 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13757 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'
13758 hardcode_libdir_flag_spec_CXX='-R$libdir'
13759 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'
13760 compiler_needs_object_CXX=yes
13761
13762 # Not sure whether something based on
13763 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13764 # would be better.
13765 output_verbose_link_cmd='func_echo_all'
13766
13767 # Archives containing C++ object files must be created using
13768 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13769 # necessary to make sure instantiated templates are included
13770 # in the archive.
13771 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13772 ;;
13773 esac
13774 ;;
13775 esac
13776 ;;
13777
13778 lynxos*)
13779 # FIXME: insert proper C++ library support
13780 ld_shlibs_CXX=no
13781 ;;
13782
13783 m88k*)
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13786 ;;
13787
13788 mvs*)
13789 case $cc_basename in
13790 cxx*)
13791 # FIXME: insert proper C++ library support
13792 ld_shlibs_CXX=no
13793 ;;
13794 *)
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13797 ;;
13798 esac
13799 ;;
13800
13801 netbsd*)
13802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13803 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13804 wlarc=
13805 hardcode_libdir_flag_spec_CXX='-R$libdir'
13806 hardcode_direct_CXX=yes
13807 hardcode_shlibpath_var_CXX=no
13808 fi
13809 # Workaround some broken pre-1.5 toolchains
13810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13811 ;;
13812
13813 *nto* | *qnx*)
13814 ld_shlibs_CXX=yes
13815 ;;
13816
13817 openbsd2*)
13818 # C++ shared libraries are fairly broken
13819 ld_shlibs_CXX=no
13820 ;;
13821
13822 openbsd*)
13823 if test -f /usr/libexec/ld.so; then
13824 hardcode_direct_CXX=yes
13825 hardcode_shlibpath_var_CXX=no
13826 hardcode_direct_absolute_CXX=yes
13827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13830 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13831 export_dynamic_flag_spec_CXX='${wl}-E'
13832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13833 fi
13834 output_verbose_link_cmd=func_echo_all
13835 else
13836 ld_shlibs_CXX=no
13837 fi
13838 ;;
13839
13840 osf3* | osf4* | osf5*)
13841 case $cc_basename in
13842 KCC*)
13843 # Kuck and Associates, Inc. (KAI) C++ Compiler
13844
13845 # KCC will only create a shared library if the output file
13846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13847 # to its proper name (with version) after linking.
13848 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'
13849
13850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13851 hardcode_libdir_separator_CXX=:
13852
13853 # Archives containing C++ object files must be created using
13854 # the KAI C++ compiler.
13855 case $host in
13856 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13857 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13858 esac
13859 ;;
13860 RCC*)
13861 # Rational C++ 2.4.1
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13864 ;;
13865 cxx*)
13866 case $host in
13867 osf3*)
13868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13869 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'
13870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13871 ;;
13872 *)
13873 allow_undefined_flag_CXX=' -expect_unresolved \*'
13874 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'
13875 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13876 echo "-hidden">> $lib.exp~
13877 $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~
13878 $RM $lib.exp'
13879 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13880 ;;
13881 esac
13882
13883 hardcode_libdir_separator_CXX=:
13884
13885 # Commands to make compiler produce verbose output that lists
13886 # what "hidden" libraries, object files and flags are used when
13887 # linking a shared library.
13888 #
13889 # There doesn't appear to be a way to prevent this compiler from
13890 # explicitly linking system object files so we need to strip them
13891 # from the output so that they don't get included in the library
13892 # dependencies.
13893 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"'
13894 ;;
13895 *)
13896 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13898 case $host in
13899 osf3*)
13900 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'
13901 ;;
13902 *)
13903 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'
13904 ;;
13905 esac
13906
13907 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13908 hardcode_libdir_separator_CXX=:
13909
13910 # Commands to make compiler produce verbose output that lists
13911 # what "hidden" libraries, object files and flags are used when
13912 # linking a shared library.
13913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13914
13915 else
13916 # FIXME: insert proper C++ library support
13917 ld_shlibs_CXX=no
13918 fi
13919 ;;
13920 esac
13921 ;;
13922
13923 psos*)
13924 # FIXME: insert proper C++ library support
13925 ld_shlibs_CXX=no
13926 ;;
13927
13928 sunos4*)
13929 case $cc_basename in
13930 CC*)
13931 # Sun C++ 4.x
13932 # FIXME: insert proper C++ library support
13933 ld_shlibs_CXX=no
13934 ;;
13935 lcc*)
13936 # Lucid
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13939 ;;
13940 *)
13941 # FIXME: insert proper C++ library support
13942 ld_shlibs_CXX=no
13943 ;;
13944 esac
13945 ;;
13946
13947 solaris*)
13948 case $cc_basename in
13949 CC* | sunCC*)
13950 # Sun C++ 4.2, 5.x and Centerline C++
13951 archive_cmds_need_lc_CXX=yes
13952 no_undefined_flag_CXX=' -zdefs'
13953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13954 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13955 $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'
13956
13957 hardcode_libdir_flag_spec_CXX='-R$libdir'
13958 hardcode_shlibpath_var_CXX=no
13959 case $host_os in
13960 solaris2.[0-5] | solaris2.[0-5].*) ;;
13961 *)
13962 # The compiler driver will combine and reorder linker options,
13963 # but understands `-z linker_flag'.
13964 # Supported since Solaris 2.6 (maybe 2.5.1?)
13965 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13966 ;;
13967 esac
13968 link_all_deplibs_CXX=yes
13969
13970 output_verbose_link_cmd='func_echo_all'
13971
13972 # Archives containing C++ object files must be created using
13973 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13974 # necessary to make sure instantiated templates are included
13975 # in the archive.
13976 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13977 ;;
13978 gcx*)
13979 # Green Hills C++ Compiler
13980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13981
13982 # The C++ compiler must be used to create the archive.
13983 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13984 ;;
13985 *)
13986 # GNU C++ compiler with Solaris linker
13987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13988 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13989 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13990 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13991 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13992 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13993
13994 # Commands to make compiler produce verbose output that lists
13995 # what "hidden" libraries, object files and flags are used when
13996 # linking a shared library.
13997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13998 else
13999 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14000 # platform.
14001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14002 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14004
14005 # Commands to make compiler produce verbose output that lists
14006 # what "hidden" libraries, object files and flags are used when
14007 # linking a shared library.
14008 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14009 fi
14010
14011 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14012 case $host_os in
14013 solaris2.[0-5] | solaris2.[0-5].*) ;;
14014 *)
14015 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14016 ;;
14017 esac
14018 fi
14019 ;;
14020 esac
14021 ;;
14022
14023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14024 no_undefined_flag_CXX='${wl}-z,text'
14025 archive_cmds_need_lc_CXX=no
14026 hardcode_shlibpath_var_CXX=no
14027 runpath_var='LD_RUN_PATH'
14028
14029 case $cc_basename in
14030 CC*)
14031 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14032 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 ;;
14034 *)
14035 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14036 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037 ;;
14038 esac
14039 ;;
14040
14041 sysv5* | sco3.2v5* | sco5v6*)
14042 # Note: We can NOT use -z defs as we might desire, because we do not
14043 # link with -lc, and that would cause any symbols used from libc to
14044 # always be unresolved, which means just about no library would
14045 # ever link correctly. If we're not using GNU ld we use -z text
14046 # though, which does catch some bad symbols but isn't as heavy-handed
14047 # as -z defs.
14048 no_undefined_flag_CXX='${wl}-z,text'
14049 allow_undefined_flag_CXX='${wl}-z,nodefs'
14050 archive_cmds_need_lc_CXX=no
14051 hardcode_shlibpath_var_CXX=no
14052 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14053 hardcode_libdir_separator_CXX=':'
14054 link_all_deplibs_CXX=yes
14055 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14056 runpath_var='LD_RUN_PATH'
14057
14058 case $cc_basename in
14059 CC*)
14060 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14063 '"$old_archive_cmds_CXX"
14064 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14065 '"$reload_cmds_CXX"
14066 ;;
14067 *)
14068 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070 ;;
14071 esac
14072 ;;
14073
14074 tandem*)
14075 case $cc_basename in
14076 NCC*)
14077 # NonStop-UX NCC 3.20
14078 # FIXME: insert proper C++ library support
14079 ld_shlibs_CXX=no
14080 ;;
14081 *)
14082 # FIXME: insert proper C++ library support
14083 ld_shlibs_CXX=no
14084 ;;
14085 esac
14086 ;;
14087
14088 vxworks*)
14089 # FIXME: insert proper C++ library support
14090 ld_shlibs_CXX=no
14091 ;;
14092
14093 *)
14094 # FIXME: insert proper C++ library support
14095 ld_shlibs_CXX=no
14096 ;;
14097 esac
14098
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14100 $as_echo "$ld_shlibs_CXX" >&6; }
14101 test "$ld_shlibs_CXX" = no && can_build_shared=no
14102
14103 GCC_CXX="$GXX"
14104 LD_CXX="$LD"
14105
14106 ## CAVEAT EMPTOR:
14107 ## There is no encapsulation within the following macros, do not change
14108 ## the running order or otherwise move them around unless you know exactly
14109 ## what you are doing...
14110 # Dependencies to place before and after the object being linked:
14111 predep_objects_CXX=
14112 postdep_objects_CXX=
14113 predeps_CXX=
14114 postdeps_CXX=
14115 compiler_lib_search_path_CXX=
14116
14117 cat > conftest.$ac_ext <<_LT_EOF
14118 class Foo
14119 {
14120 public:
14121 Foo (void) { a = 0; }
14122 private:
14123 int a;
14124 };
14125 _LT_EOF
14126
14127
14128 _lt_libdeps_save_CFLAGS=$CFLAGS
14129 case "$CC $CFLAGS " in #(
14130 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14131 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14132 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14133 esac
14134
14135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14136 (eval $ac_compile) 2>&5
14137 ac_status=$?
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; }; then
14140 # Parse the compiler output and extract the necessary
14141 # objects, libraries and library flags.
14142
14143 # Sentinel used to keep track of whether or not we are before
14144 # the conftest object file.
14145 pre_test_object_deps_done=no
14146
14147 for p in `eval "$output_verbose_link_cmd"`; do
14148 case ${prev}${p} in
14149
14150 -L* | -R* | -l*)
14151 # Some compilers place space between "-{L,R}" and the path.
14152 # Remove the space.
14153 if test $p = "-L" ||
14154 test $p = "-R"; then
14155 prev=$p
14156 continue
14157 fi
14158
14159 # Expand the sysroot to ease extracting the directories later.
14160 if test -z "$prev"; then
14161 case $p in
14162 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14163 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14164 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14165 esac
14166 fi
14167 case $p in
14168 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14169 esac
14170 if test "$pre_test_object_deps_done" = no; then
14171 case ${prev} in
14172 -L | -R)
14173 # Internal compiler library paths should come after those
14174 # provided the user. The postdeps already come after the
14175 # user supplied libs so there is no need to process them.
14176 if test -z "$compiler_lib_search_path_CXX"; then
14177 compiler_lib_search_path_CXX="${prev}${p}"
14178 else
14179 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14180 fi
14181 ;;
14182 # The "-l" case would never come before the object being
14183 # linked, so don't bother handling this case.
14184 esac
14185 else
14186 if test -z "$postdeps_CXX"; then
14187 postdeps_CXX="${prev}${p}"
14188 else
14189 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14190 fi
14191 fi
14192 prev=
14193 ;;
14194
14195 *.lto.$objext) ;; # Ignore GCC LTO objects
14196 *.$objext)
14197 # This assumes that the test object file only shows up
14198 # once in the compiler output.
14199 if test "$p" = "conftest.$objext"; then
14200 pre_test_object_deps_done=yes
14201 continue
14202 fi
14203
14204 if test "$pre_test_object_deps_done" = no; then
14205 if test -z "$predep_objects_CXX"; then
14206 predep_objects_CXX="$p"
14207 else
14208 predep_objects_CXX="$predep_objects_CXX $p"
14209 fi
14210 else
14211 if test -z "$postdep_objects_CXX"; then
14212 postdep_objects_CXX="$p"
14213 else
14214 postdep_objects_CXX="$postdep_objects_CXX $p"
14215 fi
14216 fi
14217 ;;
14218
14219 *) ;; # Ignore the rest.
14220
14221 esac
14222 done
14223
14224 # Clean up.
14225 rm -f a.out a.exe
14226 else
14227 echo "libtool.m4: error: problem compiling CXX test program"
14228 fi
14229
14230 $RM -f confest.$objext
14231 CFLAGS=$_lt_libdeps_save_CFLAGS
14232
14233 # PORTME: override above test on systems where it is broken
14234 case $host_os in
14235 interix[3-9]*)
14236 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14237 # hack all around it, let's just trust "g++" to DTRT.
14238 predep_objects_CXX=
14239 postdep_objects_CXX=
14240 postdeps_CXX=
14241 ;;
14242
14243 linux*)
14244 case `$CC -V 2>&1 | sed 5q` in
14245 *Sun\ C*)
14246 # Sun C++ 5.9
14247
14248 # The more standards-conforming stlport4 library is
14249 # incompatible with the Cstd library. Avoid specifying
14250 # it if it's in CXXFLAGS. Ignore libCrun as
14251 # -library=stlport4 depends on it.
14252 case " $CXX $CXXFLAGS " in
14253 *" -library=stlport4 "*)
14254 solaris_use_stlport4=yes
14255 ;;
14256 esac
14257
14258 if test "$solaris_use_stlport4" != yes; then
14259 postdeps_CXX='-library=Cstd -library=Crun'
14260 fi
14261 ;;
14262 esac
14263 ;;
14264
14265 solaris*)
14266 case $cc_basename in
14267 CC* | sunCC*)
14268 # The more standards-conforming stlport4 library is
14269 # incompatible with the Cstd library. Avoid specifying
14270 # it if it's in CXXFLAGS. Ignore libCrun as
14271 # -library=stlport4 depends on it.
14272 case " $CXX $CXXFLAGS " in
14273 *" -library=stlport4 "*)
14274 solaris_use_stlport4=yes
14275 ;;
14276 esac
14277
14278 # Adding this requires a known-good setup of shared libraries for
14279 # Sun compiler versions before 5.6, else PIC objects from an old
14280 # archive will be linked into the output, leading to subtle bugs.
14281 if test "$solaris_use_stlport4" != yes; then
14282 postdeps_CXX='-library=Cstd -library=Crun'
14283 fi
14284 ;;
14285 esac
14286 ;;
14287 esac
14288
14289
14290 case " $postdeps_CXX " in
14291 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14292 esac
14293 compiler_lib_search_dirs_CXX=
14294 if test -n "${compiler_lib_search_path_CXX}"; then
14295 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14296 fi
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328 lt_prog_compiler_wl_CXX=
14329 lt_prog_compiler_pic_CXX=
14330 lt_prog_compiler_static_CXX=
14331
14332
14333 # C++ specific cases for pic, static, wl, etc.
14334 if test "$GXX" = yes; then
14335 lt_prog_compiler_wl_CXX='-Wl,'
14336 lt_prog_compiler_static_CXX='-static'
14337
14338 case $host_os in
14339 aix*)
14340 # All AIX code is PIC.
14341 if test "$host_cpu" = ia64; then
14342 # AIX 5 now supports IA64 processor
14343 lt_prog_compiler_static_CXX='-Bstatic'
14344 fi
14345 ;;
14346
14347 amigaos*)
14348 case $host_cpu in
14349 powerpc)
14350 # see comment about AmigaOS4 .so support
14351 lt_prog_compiler_pic_CXX='-fPIC'
14352 ;;
14353 m68k)
14354 # FIXME: we need at least 68020 code to build shared libraries, but
14355 # adding the `-m68020' flag to GCC prevents building anything better,
14356 # like `-m68040'.
14357 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14358 ;;
14359 esac
14360 ;;
14361
14362 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14363 # PIC is the default for these OSes.
14364 ;;
14365 mingw* | cygwin* | os2* | pw32* | cegcc*)
14366 # This hack is so that the source file can tell whether it is being
14367 # built for inclusion in a dll (and should export symbols for example).
14368 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14369 # (--disable-auto-import) libraries
14370 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14371 ;;
14372 darwin* | rhapsody*)
14373 # PIC is the default on this platform
14374 # Common symbols not allowed in MH_DYLIB files
14375 lt_prog_compiler_pic_CXX='-fno-common'
14376 ;;
14377 *djgpp*)
14378 # DJGPP does not support shared libraries at all
14379 lt_prog_compiler_pic_CXX=
14380 ;;
14381 haiku*)
14382 # PIC is the default for Haiku.
14383 # The "-static" flag exists, but is broken.
14384 lt_prog_compiler_static_CXX=
14385 ;;
14386 interix[3-9]*)
14387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14388 # Instead, we relocate shared libraries at runtime.
14389 ;;
14390 sysv4*MP*)
14391 if test -d /usr/nec; then
14392 lt_prog_compiler_pic_CXX=-Kconform_pic
14393 fi
14394 ;;
14395 hpux*)
14396 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14397 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14398 # sets the default TLS model and affects inlining.
14399 case $host_cpu in
14400 hppa*64*)
14401 ;;
14402 *)
14403 lt_prog_compiler_pic_CXX='-fPIC'
14404 ;;
14405 esac
14406 ;;
14407 *qnx* | *nto*)
14408 # QNX uses GNU C++, but need to define -shared option too, otherwise
14409 # it will coredump.
14410 lt_prog_compiler_pic_CXX='-fPIC -shared'
14411 ;;
14412 *)
14413 lt_prog_compiler_pic_CXX='-fPIC'
14414 ;;
14415 esac
14416 else
14417 case $host_os in
14418 aix[4-9]*)
14419 # All AIX code is PIC.
14420 if test "$host_cpu" = ia64; then
14421 # AIX 5 now supports IA64 processor
14422 lt_prog_compiler_static_CXX='-Bstatic'
14423 else
14424 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14425 fi
14426 ;;
14427 chorus*)
14428 case $cc_basename in
14429 cxch68*)
14430 # Green Hills C++ Compiler
14431 # _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"
14432 ;;
14433 esac
14434 ;;
14435 mingw* | cygwin* | os2* | pw32* | cegcc*)
14436 # This hack is so that the source file can tell whether it is being
14437 # built for inclusion in a dll (and should export symbols for example).
14438 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14439 ;;
14440 dgux*)
14441 case $cc_basename in
14442 ec++*)
14443 lt_prog_compiler_pic_CXX='-KPIC'
14444 ;;
14445 ghcx*)
14446 # Green Hills C++ Compiler
14447 lt_prog_compiler_pic_CXX='-pic'
14448 ;;
14449 *)
14450 ;;
14451 esac
14452 ;;
14453 freebsd* | dragonfly*)
14454 # FreeBSD uses GNU C++
14455 ;;
14456 hpux9* | hpux10* | hpux11*)
14457 case $cc_basename in
14458 CC*)
14459 lt_prog_compiler_wl_CXX='-Wl,'
14460 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14461 if test "$host_cpu" != ia64; then
14462 lt_prog_compiler_pic_CXX='+Z'
14463 fi
14464 ;;
14465 aCC*)
14466 lt_prog_compiler_wl_CXX='-Wl,'
14467 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14468 case $host_cpu in
14469 hppa*64*|ia64*)
14470 # +Z the default
14471 ;;
14472 *)
14473 lt_prog_compiler_pic_CXX='+Z'
14474 ;;
14475 esac
14476 ;;
14477 *)
14478 ;;
14479 esac
14480 ;;
14481 interix*)
14482 # This is c89, which is MS Visual C++ (no shared libs)
14483 # Anyone wants to do a port?
14484 ;;
14485 irix5* | irix6* | nonstopux*)
14486 case $cc_basename in
14487 CC*)
14488 lt_prog_compiler_wl_CXX='-Wl,'
14489 lt_prog_compiler_static_CXX='-non_shared'
14490 # CC pic flag -KPIC is the default.
14491 ;;
14492 *)
14493 ;;
14494 esac
14495 ;;
14496 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14497 case $cc_basename in
14498 KCC*)
14499 # KAI C++ Compiler
14500 lt_prog_compiler_wl_CXX='--backend -Wl,'
14501 lt_prog_compiler_pic_CXX='-fPIC'
14502 ;;
14503 ecpc* )
14504 # old Intel C++ for x86_64 which still supported -KPIC.
14505 lt_prog_compiler_wl_CXX='-Wl,'
14506 lt_prog_compiler_pic_CXX='-KPIC'
14507 lt_prog_compiler_static_CXX='-static'
14508 ;;
14509 icpc* )
14510 # Intel C++, used to be incompatible with GCC.
14511 # ICC 10 doesn't accept -KPIC any more.
14512 lt_prog_compiler_wl_CXX='-Wl,'
14513 lt_prog_compiler_pic_CXX='-fPIC'
14514 lt_prog_compiler_static_CXX='-static'
14515 ;;
14516 pgCC* | pgcpp*)
14517 # Portland Group C++ compiler
14518 lt_prog_compiler_wl_CXX='-Wl,'
14519 lt_prog_compiler_pic_CXX='-fpic'
14520 lt_prog_compiler_static_CXX='-Bstatic'
14521 ;;
14522 cxx*)
14523 # Compaq C++
14524 # Make sure the PIC flag is empty. It appears that all Alpha
14525 # Linux and Compaq Tru64 Unix objects are PIC.
14526 lt_prog_compiler_pic_CXX=
14527 lt_prog_compiler_static_CXX='-non_shared'
14528 ;;
14529 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14530 # IBM XL 8.0, 9.0 on PPC and BlueGene
14531 lt_prog_compiler_wl_CXX='-Wl,'
14532 lt_prog_compiler_pic_CXX='-qpic'
14533 lt_prog_compiler_static_CXX='-qstaticlink'
14534 ;;
14535 *)
14536 case `$CC -V 2>&1 | sed 5q` in
14537 *Sun\ C*)
14538 # Sun C++ 5.9
14539 lt_prog_compiler_pic_CXX='-KPIC'
14540 lt_prog_compiler_static_CXX='-Bstatic'
14541 lt_prog_compiler_wl_CXX='-Qoption ld '
14542 ;;
14543 esac
14544 ;;
14545 esac
14546 ;;
14547 lynxos*)
14548 ;;
14549 m88k*)
14550 ;;
14551 mvs*)
14552 case $cc_basename in
14553 cxx*)
14554 lt_prog_compiler_pic_CXX='-W c,exportall'
14555 ;;
14556 *)
14557 ;;
14558 esac
14559 ;;
14560 netbsd*)
14561 ;;
14562 *qnx* | *nto*)
14563 # QNX uses GNU C++, but need to define -shared option too, otherwise
14564 # it will coredump.
14565 lt_prog_compiler_pic_CXX='-fPIC -shared'
14566 ;;
14567 osf3* | osf4* | osf5*)
14568 case $cc_basename in
14569 KCC*)
14570 lt_prog_compiler_wl_CXX='--backend -Wl,'
14571 ;;
14572 RCC*)
14573 # Rational C++ 2.4.1
14574 lt_prog_compiler_pic_CXX='-pic'
14575 ;;
14576 cxx*)
14577 # Digital/Compaq C++
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 # Make sure the PIC flag is empty. It appears that all Alpha
14580 # Linux and Compaq Tru64 Unix objects are PIC.
14581 lt_prog_compiler_pic_CXX=
14582 lt_prog_compiler_static_CXX='-non_shared'
14583 ;;
14584 *)
14585 ;;
14586 esac
14587 ;;
14588 psos*)
14589 ;;
14590 solaris*)
14591 case $cc_basename in
14592 CC* | sunCC*)
14593 # Sun C++ 4.2, 5.x and Centerline C++
14594 lt_prog_compiler_pic_CXX='-KPIC'
14595 lt_prog_compiler_static_CXX='-Bstatic'
14596 lt_prog_compiler_wl_CXX='-Qoption ld '
14597 ;;
14598 gcx*)
14599 # Green Hills C++ Compiler
14600 lt_prog_compiler_pic_CXX='-PIC'
14601 ;;
14602 *)
14603 ;;
14604 esac
14605 ;;
14606 sunos4*)
14607 case $cc_basename in
14608 CC*)
14609 # Sun C++ 4.x
14610 lt_prog_compiler_pic_CXX='-pic'
14611 lt_prog_compiler_static_CXX='-Bstatic'
14612 ;;
14613 lcc*)
14614 # Lucid
14615 lt_prog_compiler_pic_CXX='-pic'
14616 ;;
14617 *)
14618 ;;
14619 esac
14620 ;;
14621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14622 case $cc_basename in
14623 CC*)
14624 lt_prog_compiler_wl_CXX='-Wl,'
14625 lt_prog_compiler_pic_CXX='-KPIC'
14626 lt_prog_compiler_static_CXX='-Bstatic'
14627 ;;
14628 esac
14629 ;;
14630 tandem*)
14631 case $cc_basename in
14632 NCC*)
14633 # NonStop-UX NCC 3.20
14634 lt_prog_compiler_pic_CXX='-KPIC'
14635 ;;
14636 *)
14637 ;;
14638 esac
14639 ;;
14640 vxworks*)
14641 ;;
14642 *)
14643 lt_prog_compiler_can_build_shared_CXX=no
14644 ;;
14645 esac
14646 fi
14647
14648 case $host_os in
14649 # For platforms which do not support PIC, -DPIC is meaningless:
14650 *djgpp*)
14651 lt_prog_compiler_pic_CXX=
14652 ;;
14653 *)
14654 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14655 ;;
14656 esac
14657
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14659 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14660 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14661 $as_echo_n "(cached) " >&6
14662 else
14663 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14664 fi
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14666 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14667 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14668
14669 #
14670 # Check to make sure the PIC flag actually works.
14671 #
14672 if test -n "$lt_prog_compiler_pic_CXX"; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14674 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14675 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 lt_cv_prog_compiler_pic_works_CXX=no
14679 ac_outfile=conftest.$ac_objext
14680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14681 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14682 # Insert the option either (1) after the last *FLAGS variable, or
14683 # (2) before a word containing "conftest.", or (3) at the end.
14684 # Note that $ac_compile itself does not contain backslashes and begins
14685 # with a dollar sign (not a hyphen), so the echo should work correctly.
14686 # The option is referenced via a variable to avoid confusing sed.
14687 lt_compile=`echo "$ac_compile" | $SED \
14688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14690 -e 's:$: $lt_compiler_flag:'`
14691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14692 (eval "$lt_compile" 2>conftest.err)
14693 ac_status=$?
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 if (exit $ac_status) && test -s "$ac_outfile"; then
14697 # The compiler can only warn and ignore the option if not recognized
14698 # So say no if there are warnings other than the usual output.
14699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14702 lt_cv_prog_compiler_pic_works_CXX=yes
14703 fi
14704 fi
14705 $RM -r conftest*
14706
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14709 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14710
14711 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14712 case $lt_prog_compiler_pic_CXX in
14713 "" | " "*) ;;
14714 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14715 esac
14716 else
14717 lt_prog_compiler_pic_CXX=
14718 lt_prog_compiler_can_build_shared_CXX=no
14719 fi
14720
14721 fi
14722
14723
14724
14725
14726
14727 #
14728 # Check to make sure the static flag actually works.
14729 #
14730 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14732 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14733 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 lt_cv_prog_compiler_static_works_CXX=no
14737 save_LDFLAGS="$LDFLAGS"
14738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14741 # The linker can only warn and ignore the option if not recognized
14742 # So say no if there are warnings
14743 if test -s conftest.err; then
14744 # Append any errors to the config.log.
14745 cat conftest.err 1>&5
14746 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14748 if diff conftest.exp conftest.er2 >/dev/null; then
14749 lt_cv_prog_compiler_static_works_CXX=yes
14750 fi
14751 else
14752 lt_cv_prog_compiler_static_works_CXX=yes
14753 fi
14754 fi
14755 $RM -r conftest*
14756 LDFLAGS="$save_LDFLAGS"
14757
14758 fi
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14760 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14761
14762 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14763 :
14764 else
14765 lt_prog_compiler_static_CXX=
14766 fi
14767
14768
14769
14770
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14772 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14773 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 lt_cv_prog_compiler_c_o_CXX=no
14777 $RM -r conftest 2>/dev/null
14778 mkdir conftest
14779 cd conftest
14780 mkdir out
14781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14782
14783 lt_compiler_flag="-o out/conftest2.$ac_objext"
14784 # Insert the option either (1) after the last *FLAGS variable, or
14785 # (2) before a word containing "conftest.", or (3) at the end.
14786 # Note that $ac_compile itself does not contain backslashes and begins
14787 # with a dollar sign (not a hyphen), so the echo should work correctly.
14788 lt_compile=`echo "$ac_compile" | $SED \
14789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14791 -e 's:$: $lt_compiler_flag:'`
14792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14793 (eval "$lt_compile" 2>out/conftest.err)
14794 ac_status=$?
14795 cat out/conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14798 then
14799 # The compiler can only warn and ignore the option if not recognized
14800 # So say no if there are warnings
14801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14804 lt_cv_prog_compiler_c_o_CXX=yes
14805 fi
14806 fi
14807 chmod u+w . 2>&5
14808 $RM -r conftest*
14809 # SGI C++ compiler will create directory out/ii_files/ for
14810 # template instantiation
14811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14812 $RM out/* && rmdir out
14813 cd ..
14814 $RM -r conftest
14815 $RM -r conftest*
14816
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14819 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14820
14821
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14824 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14825 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 lt_cv_prog_compiler_c_o_CXX=no
14829 $RM -r conftest 2>/dev/null
14830 mkdir conftest
14831 cd conftest
14832 mkdir out
14833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14834
14835 lt_compiler_flag="-o out/conftest2.$ac_objext"
14836 # Insert the option either (1) after the last *FLAGS variable, or
14837 # (2) before a word containing "conftest.", or (3) at the end.
14838 # Note that $ac_compile itself does not contain backslashes and begins
14839 # with a dollar sign (not a hyphen), so the echo should work correctly.
14840 lt_compile=`echo "$ac_compile" | $SED \
14841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14843 -e 's:$: $lt_compiler_flag:'`
14844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14845 (eval "$lt_compile" 2>out/conftest.err)
14846 ac_status=$?
14847 cat out/conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14850 then
14851 # The compiler can only warn and ignore the option if not recognized
14852 # So say no if there are warnings
14853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14856 lt_cv_prog_compiler_c_o_CXX=yes
14857 fi
14858 fi
14859 chmod u+w . 2>&5
14860 $RM -r conftest*
14861 # SGI C++ compiler will create directory out/ii_files/ for
14862 # template instantiation
14863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14864 $RM out/* && rmdir out
14865 cd ..
14866 $RM -r conftest
14867 $RM -r conftest*
14868
14869 fi
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14871 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14872
14873
14874
14875
14876 hard_links="nottested"
14877 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14878 # do not overwrite the value of need_locks provided by the user
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14880 $as_echo_n "checking if we can lock with hard links... " >&6; }
14881 hard_links=yes
14882 $RM -r conftest*
14883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14884 touch conftest.a
14885 ln conftest.a conftest.b 2>&5 || hard_links=no
14886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14888 $as_echo "$hard_links" >&6; }
14889 if test "$hard_links" = no; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14891 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14892 need_locks=warn
14893 fi
14894 else
14895 need_locks=no
14896 fi
14897
14898
14899
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14901 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14902
14903 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14904 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14905 case $host_os in
14906 aix[4-9]*)
14907 # If we're using GNU nm, then we don't want the "-C" option.
14908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14909 # Also, AIX nm treats weak defined symbols like other global defined
14910 # symbols, whereas GNU nm marks them as "W".
14911 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14912 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'
14913 else
14914 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'
14915 fi
14916 ;;
14917 pw32*)
14918 export_symbols_cmds_CXX="$ltdll_cmds"
14919 ;;
14920 cygwin* | mingw* | cegcc*)
14921 case $cc_basename in
14922 cl*)
14923 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14924 ;;
14925 *)
14926 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'
14927 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14928 ;;
14929 esac
14930 ;;
14931 *)
14932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14933 ;;
14934 esac
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14937 $as_echo "$ld_shlibs_CXX" >&6; }
14938 test "$ld_shlibs_CXX" = no && can_build_shared=no
14939
14940 with_gnu_ld_CXX=$with_gnu_ld
14941
14942
14943
14944
14945
14946
14947 #
14948 # Do we need to explicitly link libc?
14949 #
14950 case "x$archive_cmds_need_lc_CXX" in
14951 x|xyes)
14952 # Assume -lc should be added
14953 archive_cmds_need_lc_CXX=yes
14954
14955 if test "$enable_shared" = yes && test "$GCC" = yes; then
14956 case $archive_cmds_CXX in
14957 *'~'*)
14958 # FIXME: we may have to deal with multi-command sequences.
14959 ;;
14960 '$CC '*)
14961 # Test whether the compiler implicitly links with -lc since on some
14962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14963 # to ld, don't add -lc before -lgcc.
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14966 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14967 $as_echo_n "(cached) " >&6
14968 else
14969 $RM -r conftest*
14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971
14972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14973 (eval $ac_compile) 2>&5
14974 ac_status=$?
14975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14976 test $ac_status = 0; } 2>conftest.err; then
14977 soname=conftest
14978 lib=conftest
14979 libobjs=conftest.$ac_objext
14980 deplibs=
14981 wl=$lt_prog_compiler_wl_CXX
14982 pic_flag=$lt_prog_compiler_pic_CXX
14983 compiler_flags=-v
14984 linker_flags=-v
14985 verstring=
14986 output_objdir=.
14987 libname=conftest
14988 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14989 allow_undefined_flag_CXX=
14990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14991 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14992 ac_status=$?
14993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14994 test $ac_status = 0; }
14995 then
14996 lt_cv_archive_cmds_need_lc_CXX=no
14997 else
14998 lt_cv_archive_cmds_need_lc_CXX=yes
14999 fi
15000 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15001 else
15002 cat conftest.err 1>&5
15003 fi
15004 $RM -r conftest*
15005
15006 fi
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15008 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15009 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15010 ;;
15011 esac
15012 fi
15013 ;;
15014 esac
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15078 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15079
15080 library_names_spec=
15081 libname_spec='lib$name'
15082 soname_spec=
15083 shrext_cmds=".so"
15084 postinstall_cmds=
15085 postuninstall_cmds=
15086 finish_cmds=
15087 finish_eval=
15088 shlibpath_var=
15089 shlibpath_overrides_runpath=unknown
15090 version_type=none
15091 dynamic_linker="$host_os ld.so"
15092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15093 need_lib_prefix=unknown
15094 hardcode_into_libs=no
15095
15096 # when you set need_version to no, make sure it does not cause -set_version
15097 # flags to be left without arguments
15098 need_version=unknown
15099
15100 case $host_os in
15101 aix3*)
15102 version_type=linux # correct to gnu/linux during the next big refactor
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15104 shlibpath_var=LIBPATH
15105
15106 # AIX 3 has no versioning support, so we append a major version to the name.
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 ;;
15109
15110 aix[4-9]*)
15111 version_type=linux # correct to gnu/linux during the next big refactor
15112 need_lib_prefix=no
15113 need_version=no
15114 hardcode_into_libs=yes
15115 if test "$host_cpu" = ia64; then
15116 # AIX 5 supports IA64
15117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 else
15120 # With GCC up to 2.95.x, collect2 would create an import file
15121 # for dependence libraries. The import file would start with
15122 # the line `#! .'. This would cause the generated library to
15123 # depend on `.', always an invalid library. This was fixed in
15124 # development snapshots of GCC prior to 3.0.
15125 case $host_os in
15126 aix4 | aix4.[01] | aix4.[01].*)
15127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15128 echo ' yes '
15129 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15130 :
15131 else
15132 can_build_shared=no
15133 fi
15134 ;;
15135 esac
15136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15137 # soname into executable. Probably we can add versioning support to
15138 # collect2, so additional links can be useful in future.
15139 if test "$aix_use_runtimelinking" = yes; then
15140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15141 # instead of lib<name>.a to let people know that these are not
15142 # typical AIX shared libraries.
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 else
15145 # We preserve .a as extension for shared libraries through AIX4.2
15146 # and later when we are not doing run time linking.
15147 library_names_spec='${libname}${release}.a $libname.a'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 fi
15150 shlibpath_var=LIBPATH
15151 fi
15152 ;;
15153
15154 amigaos*)
15155 case $host_cpu in
15156 powerpc)
15157 # Since July 2007 AmigaOS4 officially supports .so libraries.
15158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160 ;;
15161 m68k)
15162 library_names_spec='$libname.ixlibrary $libname.a'
15163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15164 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'
15165 ;;
15166 esac
15167 ;;
15168
15169 beos*)
15170 library_names_spec='${libname}${shared_ext}'
15171 dynamic_linker="$host_os ld.so"
15172 shlibpath_var=LIBRARY_PATH
15173 ;;
15174
15175 bsdi[45]*)
15176 version_type=linux # correct to gnu/linux during the next big refactor
15177 need_version=no
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15184 # the default ld.so.conf also contains /usr/contrib/lib and
15185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15186 # libtool to hard-code these into programs
15187 ;;
15188
15189 cygwin* | mingw* | pw32* | cegcc*)
15190 version_type=windows
15191 shrext_cmds=".dll"
15192 need_version=no
15193 need_lib_prefix=no
15194
15195 case $GCC,$cc_basename in
15196 yes,*)
15197 # gcc
15198 library_names_spec='$libname.dll.a'
15199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15200 postinstall_cmds='base_file=`basename \${file}`~
15201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15202 dldir=$destdir/`dirname \$dlpath`~
15203 test -d \$dldir || mkdir -p \$dldir~
15204 $install_prog $dir/$dlname \$dldir/$dlname~
15205 chmod a+x \$dldir/$dlname~
15206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15208 fi'
15209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15210 dlpath=$dir/\$dldll~
15211 $RM \$dlpath'
15212 shlibpath_overrides_runpath=yes
15213
15214 case $host_os in
15215 cygwin*)
15216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15218
15219 ;;
15220 mingw* | cegcc*)
15221 # MinGW DLLs use traditional 'lib' prefix
15222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15223 ;;
15224 pw32*)
15225 # pw32 DLLs use 'pw' prefix rather than 'lib'
15226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15227 ;;
15228 esac
15229 dynamic_linker='Win32 ld.exe'
15230 ;;
15231
15232 *,cl*)
15233 # Native MSVC
15234 libname_spec='$name'
15235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15236 library_names_spec='${libname}.dll.lib'
15237
15238 case $build_os in
15239 mingw*)
15240 sys_lib_search_path_spec=
15241 lt_save_ifs=$IFS
15242 IFS=';'
15243 for lt_path in $LIB
15244 do
15245 IFS=$lt_save_ifs
15246 # Let DOS variable expansion print the short 8.3 style file name.
15247 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15248 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15249 done
15250 IFS=$lt_save_ifs
15251 # Convert to MSYS style.
15252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15253 ;;
15254 cygwin*)
15255 # Convert to unix form, then to dos form, then back to unix form
15256 # but this time dos style (no spaces!) so that the unix form looks
15257 # like /cygdrive/c/PROGRA~1:/cygdr...
15258 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15259 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15260 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15261 ;;
15262 *)
15263 sys_lib_search_path_spec="$LIB"
15264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15265 # It is most probably a Windows format PATH.
15266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15267 else
15268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15269 fi
15270 # FIXME: find the short name or the path components, as spaces are
15271 # common. (e.g. "Program Files" -> "PROGRA~1")
15272 ;;
15273 esac
15274
15275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15276 postinstall_cmds='base_file=`basename \${file}`~
15277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15278 dldir=$destdir/`dirname \$dlpath`~
15279 test -d \$dldir || mkdir -p \$dldir~
15280 $install_prog $dir/$dlname \$dldir/$dlname'
15281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15282 dlpath=$dir/\$dldll~
15283 $RM \$dlpath'
15284 shlibpath_overrides_runpath=yes
15285 dynamic_linker='Win32 link.exe'
15286 ;;
15287
15288 *)
15289 # Assume MSVC wrapper
15290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15291 dynamic_linker='Win32 ld.exe'
15292 ;;
15293 esac
15294 # FIXME: first we should search . and the directory the executable is in
15295 shlibpath_var=PATH
15296 ;;
15297
15298 darwin* | rhapsody*)
15299 dynamic_linker="$host_os dyld"
15300 version_type=darwin
15301 need_lib_prefix=no
15302 need_version=no
15303 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15304 soname_spec='${libname}${release}${major}$shared_ext'
15305 shlibpath_overrides_runpath=yes
15306 shlibpath_var=DYLD_LIBRARY_PATH
15307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15308
15309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15310 ;;
15311
15312 dgux*)
15313 version_type=linux # correct to gnu/linux during the next big refactor
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 ;;
15320
15321 freebsd* | dragonfly*)
15322 # DragonFly does not have aout. When/if they implement a new
15323 # versioning mechanism, adjust this.
15324 if test -x /usr/bin/objformat; then
15325 objformat=`/usr/bin/objformat`
15326 else
15327 case $host_os in
15328 freebsd[23].*) objformat=aout ;;
15329 *) objformat=elf ;;
15330 esac
15331 fi
15332 version_type=freebsd-$objformat
15333 case $version_type in
15334 freebsd-elf*)
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15336 need_version=no
15337 need_lib_prefix=no
15338 ;;
15339 freebsd-*)
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15341 need_version=yes
15342 ;;
15343 esac
15344 shlibpath_var=LD_LIBRARY_PATH
15345 case $host_os in
15346 freebsd2.*)
15347 shlibpath_overrides_runpath=yes
15348 ;;
15349 freebsd3.[01]* | freebsdelf3.[01]*)
15350 shlibpath_overrides_runpath=yes
15351 hardcode_into_libs=yes
15352 ;;
15353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15355 shlibpath_overrides_runpath=no
15356 hardcode_into_libs=yes
15357 ;;
15358 *) # from 4.6 on, and DragonFly
15359 shlibpath_overrides_runpath=yes
15360 hardcode_into_libs=yes
15361 ;;
15362 esac
15363 ;;
15364
15365 gnu*)
15366 version_type=linux # correct to gnu/linux during the next big refactor
15367 need_lib_prefix=no
15368 need_version=no
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=no
15373 hardcode_into_libs=yes
15374 ;;
15375
15376 haiku*)
15377 version_type=linux # correct to gnu/linux during the next big refactor
15378 need_lib_prefix=no
15379 need_version=no
15380 dynamic_linker="$host_os runtime_loader"
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LIBRARY_PATH
15384 shlibpath_overrides_runpath=yes
15385 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15386 hardcode_into_libs=yes
15387 ;;
15388
15389 hpux9* | hpux10* | hpux11*)
15390 # Give a soname corresponding to the major version so that dld.sl refuses to
15391 # link against other versions.
15392 version_type=sunos
15393 need_lib_prefix=no
15394 need_version=no
15395 case $host_cpu in
15396 ia64*)
15397 shrext_cmds='.so'
15398 hardcode_into_libs=yes
15399 dynamic_linker="$host_os dld.so"
15400 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15404 if test "X$HPUX_IA64_MODE" = X32; then
15405 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15406 else
15407 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15408 fi
15409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15410 ;;
15411 hppa*64*)
15412 shrext_cmds='.sl'
15413 hardcode_into_libs=yes
15414 dynamic_linker="$host_os dld.sl"
15415 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15421 ;;
15422 *)
15423 shrext_cmds='.sl'
15424 dynamic_linker="$host_os dld.sl"
15425 shlibpath_var=SHLIB_PATH
15426 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 ;;
15430 esac
15431 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15432 postinstall_cmds='chmod 555 $lib'
15433 # or fails outright, so override atomically:
15434 install_override_mode=555
15435 ;;
15436
15437 interix[3-9]*)
15438 version_type=linux # correct to gnu/linux during the next big refactor
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 shlibpath_overrides_runpath=no
15446 hardcode_into_libs=yes
15447 ;;
15448
15449 irix5* | irix6* | nonstopux*)
15450 case $host_os in
15451 nonstopux*) version_type=nonstopux ;;
15452 *)
15453 if test "$lt_cv_prog_gnu_ld" = yes; then
15454 version_type=linux # correct to gnu/linux during the next big refactor
15455 else
15456 version_type=irix
15457 fi ;;
15458 esac
15459 need_lib_prefix=no
15460 need_version=no
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15463 case $host_os in
15464 irix5* | nonstopux*)
15465 libsuff= shlibsuff=
15466 ;;
15467 *)
15468 case $LD in # libtool.m4 will add one of these switches to LD
15469 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15470 libsuff= shlibsuff= libmagic=32-bit;;
15471 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15472 libsuff=32 shlibsuff=N32 libmagic=N32;;
15473 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15474 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15475 *) libsuff= shlibsuff= libmagic=never-match;;
15476 esac
15477 ;;
15478 esac
15479 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15480 shlibpath_overrides_runpath=no
15481 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15482 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15483 hardcode_into_libs=yes
15484 ;;
15485
15486 # No shared lib support for Linux oldld, aout, or coff.
15487 linux*oldld* | linux*aout* | linux*coff*)
15488 dynamic_linker=no
15489 ;;
15490
15491 # This must be glibc/ELF.
15492 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15493 version_type=linux # correct to gnu/linux during the next big refactor
15494 need_lib_prefix=no
15495 need_version=no
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 shlibpath_overrides_runpath=no
15501
15502 # Some binutils ld are patched to set DT_RUNPATH
15503 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506 lt_cv_shlibpath_overrides_runpath=no
15507 save_LDFLAGS=$LDFLAGS
15508 save_libdir=$libdir
15509 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15510 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513
15514 int
15515 main ()
15516 {
15517
15518 ;
15519 return 0;
15520 }
15521 _ACEOF
15522 if ac_fn_cxx_try_link "$LINENO"; then :
15523 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15524 lt_cv_shlibpath_overrides_runpath=yes
15525 fi
15526 fi
15527 rm -f core conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LDFLAGS=$save_LDFLAGS
15530 libdir=$save_libdir
15531
15532 fi
15533
15534 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15535
15536 # This implies no fast_install, which is unacceptable.
15537 # Some rework will be needed to allow for fast_install
15538 # before this can be enabled.
15539 hardcode_into_libs=yes
15540
15541 # Append ld.so.conf contents to the search path
15542 if test -f /etc/ld.so.conf; then
15543 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' ' '`
15544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15545 fi
15546
15547 # We used to test for /lib/ld.so.1 and disable shared libraries on
15548 # powerpc, because MkLinux only supported shared libraries with the
15549 # GNU dynamic linker. Since this was broken with cross compilers,
15550 # most powerpc-linux boxes support dynamic linking these days and
15551 # people can always --disable-shared, the test was removed, and we
15552 # assume the GNU/Linux dynamic linker is in use.
15553 dynamic_linker='GNU/Linux ld.so'
15554 ;;
15555
15556 netbsd*)
15557 version_type=sunos
15558 need_lib_prefix=no
15559 need_version=no
15560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15563 dynamic_linker='NetBSD (a.out) ld.so'
15564 else
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 dynamic_linker='NetBSD ld.elf_so'
15568 fi
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes
15571 hardcode_into_libs=yes
15572 ;;
15573
15574 newsos6)
15575 version_type=linux # correct to gnu/linux during the next big refactor
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15579 ;;
15580
15581 *nto* | *qnx*)
15582 version_type=qnx
15583 need_lib_prefix=no
15584 need_version=no
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=no
15589 hardcode_into_libs=yes
15590 dynamic_linker='ldqnx.so'
15591 ;;
15592
15593 openbsd*)
15594 version_type=sunos
15595 sys_lib_dlsearch_path_spec="/usr/lib"
15596 need_lib_prefix=no
15597 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15598 case $host_os in
15599 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15600 *) need_version=no ;;
15601 esac
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15606 case $host_os in
15607 openbsd2.[89] | openbsd2.[89].*)
15608 shlibpath_overrides_runpath=no
15609 ;;
15610 *)
15611 shlibpath_overrides_runpath=yes
15612 ;;
15613 esac
15614 else
15615 shlibpath_overrides_runpath=yes
15616 fi
15617 ;;
15618
15619 os2*)
15620 libname_spec='$name'
15621 shrext_cmds=".dll"
15622 need_lib_prefix=no
15623 library_names_spec='$libname${shared_ext} $libname.a'
15624 dynamic_linker='OS/2 ld.exe'
15625 shlibpath_var=LIBPATH
15626 ;;
15627
15628 osf3* | osf4* | osf5*)
15629 version_type=osf
15630 need_lib_prefix=no
15631 need_version=no
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15637 ;;
15638
15639 rdos*)
15640 dynamic_linker=no
15641 ;;
15642
15643 solaris*)
15644 version_type=linux # correct to gnu/linux during the next big refactor
15645 need_lib_prefix=no
15646 need_version=no
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15652 # ldd complains unless libraries are executable
15653 postinstall_cmds='chmod +x $lib'
15654 ;;
15655
15656 sunos4*)
15657 version_type=sunos
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes
15662 if test "$with_gnu_ld" = yes; then
15663 need_lib_prefix=no
15664 fi
15665 need_version=yes
15666 ;;
15667
15668 sysv4 | sysv4.3*)
15669 version_type=linux # correct to gnu/linux during the next big refactor
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 case $host_vendor in
15674 sni)
15675 shlibpath_overrides_runpath=no
15676 need_lib_prefix=no
15677 runpath_var=LD_RUN_PATH
15678 ;;
15679 siemens)
15680 need_lib_prefix=no
15681 ;;
15682 motorola)
15683 need_lib_prefix=no
15684 need_version=no
15685 shlibpath_overrides_runpath=no
15686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15687 ;;
15688 esac
15689 ;;
15690
15691 sysv4*MP*)
15692 if test -d /usr/nec ;then
15693 version_type=linux # correct to gnu/linux during the next big refactor
15694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15695 soname_spec='$libname${shared_ext}.$major'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 fi
15698 ;;
15699
15700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15701 version_type=freebsd-elf
15702 need_lib_prefix=no
15703 need_version=no
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=yes
15708 hardcode_into_libs=yes
15709 if test "$with_gnu_ld" = yes; then
15710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15711 else
15712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15713 case $host_os in
15714 sco3.2v5*)
15715 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15716 ;;
15717 esac
15718 fi
15719 sys_lib_dlsearch_path_spec='/usr/lib'
15720 ;;
15721
15722 tpf*)
15723 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15724 version_type=linux # correct to gnu/linux during the next big refactor
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=no
15730 hardcode_into_libs=yes
15731 ;;
15732
15733 uts4*)
15734 version_type=linux # correct to gnu/linux during the next big refactor
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 ;;
15739
15740 *)
15741 dynamic_linker=no
15742 ;;
15743 esac
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15745 $as_echo "$dynamic_linker" >&6; }
15746 test "$dynamic_linker" = no && can_build_shared=no
15747
15748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15749 if test "$GCC" = yes; then
15750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15751 fi
15752
15753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15754 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15755 fi
15756 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15757 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15758 fi
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15799 hardcode_action_CXX=
15800 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15801 test -n "$runpath_var_CXX" ||
15802 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15803
15804 # We can hardcode non-existent directories.
15805 if test "$hardcode_direct_CXX" != no &&
15806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15807 # have to relink, otherwise we might link with an installed library
15808 # when we should be linking with a yet-to-be-installed one
15809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15810 test "$hardcode_minus_L_CXX" != no; then
15811 # Linking always hardcodes the temporary library directory.
15812 hardcode_action_CXX=relink
15813 else
15814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15815 hardcode_action_CXX=immediate
15816 fi
15817 else
15818 # We cannot hardcode anything, or else we can only hardcode existing
15819 # directories.
15820 hardcode_action_CXX=unsupported
15821 fi
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15823 $as_echo "$hardcode_action_CXX" >&6; }
15824
15825 if test "$hardcode_action_CXX" = relink ||
15826 test "$inherit_rpath_CXX" = yes; then
15827 # Fast installation is not supported
15828 enable_fast_install=no
15829 elif test "$shlibpath_overrides_runpath" = yes ||
15830 test "$enable_shared" = no; then
15831 # Fast installation is not necessary
15832 enable_fast_install=needless
15833 fi
15834
15835
15836
15837
15838
15839
15840
15841 fi # test -n "$compiler"
15842
15843 CC=$lt_save_CC
15844 CFLAGS=$lt_save_CFLAGS
15845 LDCXX=$LD
15846 LD=$lt_save_LD
15847 GCC=$lt_save_GCC
15848 with_gnu_ld=$lt_save_with_gnu_ld
15849 lt_cv_path_LDCXX=$lt_cv_path_LD
15850 lt_cv_path_LD=$lt_save_path_LD
15851 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15852 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15853 fi # test "$_lt_caught_CXX_error" != yes
15854
15855 ac_ext=cpp
15856 ac_cpp='$CXXCPP $CPPFLAGS'
15857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15860
15861
15862 ac_ext=mm
15863 ac_cpp='$OBJCXXCPP $CPPFLAGS'
15864 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15865 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15866 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15867 if test -n "$ac_tool_prefix"; then
15868 for ac_prog in g++ objc++ objcxx c++ CXX
15869 do
15870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15873 $as_echo_n "checking for $ac_word... " >&6; }
15874 if ${ac_cv_prog_OBJCXX+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 if test -n "$OBJCXX"; then
15878 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15879 else
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15882 do
15883 IFS=$as_save_IFS
15884 test -z "$as_dir" && as_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15889 break 2
15890 fi
15891 done
15892 done
15893 IFS=$as_save_IFS
15894
15895 fi
15896 fi
15897 OBJCXX=$ac_cv_prog_OBJCXX
15898 if test -n "$OBJCXX"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15900 $as_echo "$OBJCXX" >&6; }
15901 else
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903 $as_echo "no" >&6; }
15904 fi
15905
15906
15907 test -n "$OBJCXX" && break
15908 done
15909 fi
15910 if test -z "$OBJCXX"; then
15911 ac_ct_OBJCXX=$OBJCXX
15912 for ac_prog in g++ objc++ objcxx c++ CXX
15913 do
15914 # Extract the first word of "$ac_prog", so it can be a program name with args.
15915 set dummy $ac_prog; ac_word=$2
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15917 $as_echo_n "checking for $ac_word... " >&6; }
15918 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 if test -n "$ac_ct_OBJCXX"; then
15922 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15923 else
15924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15925 for as_dir in $PATH
15926 do
15927 IFS=$as_save_IFS
15928 test -z "$as_dir" && as_dir=.
15929 for ac_exec_ext in '' $ac_executable_extensions; do
15930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15931 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15933 break 2
15934 fi
15935 done
15936 done
15937 IFS=$as_save_IFS
15938
15939 fi
15940 fi
15941 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15942 if test -n "$ac_ct_OBJCXX"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15944 $as_echo "$ac_ct_OBJCXX" >&6; }
15945 else
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 $as_echo "no" >&6; }
15948 fi
15949
15950
15951 test -n "$ac_ct_OBJCXX" && break
15952 done
15953
15954 if test "x$ac_ct_OBJCXX" = x; then
15955 OBJCXX="g++"
15956 else
15957 case $cross_compiling:$ac_tool_warned in
15958 yes:)
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15961 ac_tool_warned=yes ;;
15962 esac
15963 OBJCXX=$ac_ct_OBJCXX
15964 fi
15965 fi
15966
15967 # Provide some information about the compiler.
15968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15969 set X $ac_compile
15970 ac_compiler=$2
15971 for ac_option in --version -v -V -qversion; do
15972 { { ac_try="$ac_compiler $ac_option >&5"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976 esac
15977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15978 $as_echo "$ac_try_echo"; } >&5
15979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15980 ac_status=$?
15981 if test -s conftest.err; then
15982 sed '10a\
15983 ... rest of stderr output deleted ...
15984 10q' conftest.err >conftest.er1
15985 cat conftest.er1 >&5
15986 fi
15987 rm -f conftest.er1 conftest.err
15988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15989 test $ac_status = 0; }
15990 done
15991
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15993 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15994 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15995 $as_echo_n "(cached) " >&6
15996 else
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999
16000 int
16001 main ()
16002 {
16003 #ifndef __GNUC__
16004 choke me
16005 #endif
16006
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_objcxx_try_compile "$LINENO"; then :
16012 ac_compiler_gnu=yes
16013 else
16014 ac_compiler_gnu=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
16018
16019 fi
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
16021 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
16022 if test $ac_compiler_gnu = yes; then
16023 GOBJCXX=yes
16024 else
16025 GOBJCXX=
16026 fi
16027 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
16028 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
16030 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
16031 if ${ac_cv_prog_objcxx_g+:} false; then :
16032 $as_echo_n "(cached) " >&6
16033 else
16034 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
16035 ac_objcxx_werror_flag=yes
16036 ac_cv_prog_objcxx_g=no
16037 OBJCXXFLAGS="-g"
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040
16041 int
16042 main ()
16043 {
16044
16045 ;
16046 return 0;
16047 }
16048 _ACEOF
16049 if ac_fn_objcxx_try_compile "$LINENO"; then :
16050 ac_cv_prog_objcxx_g=yes
16051 else
16052 OBJCXXFLAGS=""
16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054 /* end confdefs.h. */
16055
16056 int
16057 main ()
16058 {
16059
16060 ;
16061 return 0;
16062 }
16063 _ACEOF
16064 if ac_fn_objcxx_try_compile "$LINENO"; then :
16065
16066 else
16067 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
16068 OBJCXXFLAGS="-g"
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071
16072 int
16073 main ()
16074 {
16075
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_objcxx_try_compile "$LINENO"; then :
16081 ac_cv_prog_objcxx_g=yes
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
16089 fi
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
16091 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
16092 if test "$ac_test_OBJCXXFLAGS" = set; then
16093 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16094 elif test $ac_cv_prog_objcxx_g = yes; then
16095 if test "$GOBJCXX" = yes; then
16096 OBJCXXFLAGS="-g -O2"
16097 else
16098 OBJCXXFLAGS="-g"
16099 fi
16100 else
16101 if test "$GOBJCXX" = yes; then
16102 OBJCXXFLAGS="-O2"
16103 else
16104 OBJCXXFLAGS=
16105 fi
16106 fi
16107 ac_ext=cpp
16108 ac_cpp='$CXXCPP $CPPFLAGS'
16109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16112
16113 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
16114
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16116 $as_echo_n "checking dependency style of $depcc... " >&6; }
16117 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16121 # We make a subdir and do the tests there. Otherwise we can end up
16122 # making bogus files that we don't know about and never remove. For
16123 # instance it was reported that on HP-UX the gcc test will end up
16124 # making a dummy file named 'D' -- because '-MD' means "put the output
16125 # in D".
16126 rm -rf conftest.dir
16127 mkdir conftest.dir
16128 # Copy depcomp to subdir because otherwise we won't find it if we're
16129 # using a relative directory.
16130 cp "$am_depcomp" conftest.dir
16131 cd conftest.dir
16132 # We will build objects and dependencies in a subdirectory because
16133 # it helps to detect inapplicable dependency modes. For instance
16134 # both Tru64's cc and ICC support -MD to output dependencies as a
16135 # side effect of compilation, but ICC will put the dependencies in
16136 # the current directory while Tru64 will put them in the object
16137 # directory.
16138 mkdir sub
16139
16140 am_cv_OBJCXX_dependencies_compiler_type=none
16141 if test "$am_compiler_list" = ""; then
16142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16143 fi
16144 am__universal=false
16145
16146
16147 for depmode in $am_compiler_list; do
16148 # Setup a source with many dependencies, because some compilers
16149 # like to wrap large dependency lists on column 80 (with \), and
16150 # we should not choose a depcomp mode which is confused by this.
16151 #
16152 # We need to recreate these files for each test, as the compiler may
16153 # overwrite some of them when testing with obscure command lines.
16154 # This happens at least with the AIX C compiler.
16155 : > sub/conftest.c
16156 for i in 1 2 3 4 5 6; do
16157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16158 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16159 # Solaris 10 /bin/sh.
16160 echo '/* dummy */' > sub/conftst$i.h
16161 done
16162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16163
16164 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16165 # mode. It turns out that the SunPro C++ compiler does not properly
16166 # handle '-M -o', and we need to detect this. Also, some Intel
16167 # versions had trouble with output in subdirs.
16168 am__obj=sub/conftest.${OBJEXT-o}
16169 am__minus_obj="-o $am__obj"
16170 case $depmode in
16171 gcc)
16172 # This depmode causes a compiler race in universal mode.
16173 test "$am__universal" = false || continue
16174 ;;
16175 nosideeffect)
16176 # After this tag, mechanisms are not by side-effect, so they'll
16177 # only be used when explicitly requested.
16178 if test "x$enable_dependency_tracking" = xyes; then
16179 continue
16180 else
16181 break
16182 fi
16183 ;;
16184 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16185 # This compiler won't grok '-c -o', but also, the minuso test has
16186 # not run yet. These depmodes are late enough in the game, and
16187 # so weak that their functioning should not be impacted.
16188 am__obj=conftest.${OBJEXT-o}
16189 am__minus_obj=
16190 ;;
16191 none) break ;;
16192 esac
16193 if depmode=$depmode \
16194 source=sub/conftest.c object=$am__obj \
16195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16197 >/dev/null 2>conftest.err &&
16198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16202 # icc doesn't choke on unknown options, it will just issue warnings
16203 # or remarks (even with -Werror). So we grep stderr for any message
16204 # that says an option was ignored or not supported.
16205 # When given -MP, icc 7.0 and 7.1 complain thusly:
16206 # icc: Command line warning: ignoring option '-M'; no argument required
16207 # The diagnosis changed in icc 8.0:
16208 # icc: Command line remark: option '-MP' not supported
16209 if (grep 'ignoring option' conftest.err ||
16210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16211 am_cv_OBJCXX_dependencies_compiler_type=$depmode
16212 break
16213 fi
16214 fi
16215 done
16216
16217 cd ..
16218 rm -rf conftest.dir
16219 else
16220 am_cv_OBJCXX_dependencies_compiler_type=none
16221 fi
16222
16223 fi
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
16225 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
16226 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
16227
16228 if
16229 test "x$enable_dependency_tracking" != xno \
16230 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
16231 am__fastdepOBJCXX_TRUE=
16232 am__fastdepOBJCXX_FALSE='#'
16233 else
16234 am__fastdepOBJCXX_TRUE='#'
16235 am__fastdepOBJCXX_FALSE=
16236 fi
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248 if ${CFLAGS+:} false; then :
16249 case " $CFLAGS " in
16250 *" "*)
16251 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16252 (: CFLAGS already contains ) 2>&5
16253 ac_status=$?
16254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16255 test $ac_status = 0; }
16256 ;;
16257 *)
16258 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16259 (: CFLAGS="$CFLAGS ") 2>&5
16260 ac_status=$?
16261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16262 test $ac_status = 0; }
16263 CFLAGS="$CFLAGS "
16264 ;;
16265 esac
16266 else
16267 CFLAGS=""
16268 fi
16269
16270 ac_ext=c
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16275
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16277 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16278 if ${ac_cv_cflags_warn_all+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281 ac_cv_cflags_warn_all="no, unknown"
16282 ac_save_CFLAGS="$CFLAGS"
16283 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16284 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287
16288 int
16289 main ()
16290 {
16291
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_c_try_compile "$LINENO"; then :
16297 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 done
16301 CFLAGS="$ac_save_CFLAGS"
16302
16303 fi
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16305 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16306
16307 case ".$ac_cv_cflags_warn_all" in
16308 .ok|.ok,*) ;;
16309 .|.no|.no,*) ;;
16310 *) if ${CFLAGS+:} false; then :
16311 case " $CFLAGS " in
16312 *" $ac_cv_cflags_warn_all "*)
16313 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16314 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16315 ac_status=$?
16316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16317 test $ac_status = 0; }
16318 ;;
16319 *)
16320 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16321 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16322 ac_status=$?
16323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16324 test $ac_status = 0; }
16325 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16326 ;;
16327 esac
16328 else
16329 CFLAGS="$ac_cv_cflags_warn_all"
16330 fi
16331 ;;
16332 esac
16333
16334 ac_ext=cpp
16335 ac_cpp='$CXXCPP $CPPFLAGS'
16336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16339
16340
16341 ac_ext=cpp
16342 ac_cpp='$CXXCPP $CPPFLAGS'
16343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16346
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16348 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16349 if ${ac_cv_cxxflags_warn_all+:} false; then :
16350 $as_echo_n "(cached) " >&6
16351 else
16352 ac_cv_cxxflags_warn_all="no, unknown"
16353 ac_save_CXXFLAGS="$CXXFLAGS"
16354 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16355 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358
16359 int
16360 main ()
16361 {
16362
16363 ;
16364 return 0;
16365 }
16366 _ACEOF
16367 if ac_fn_cxx_try_compile "$LINENO"; then :
16368 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16369 fi
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 done
16372 CXXFLAGS="$ac_save_CXXFLAGS"
16373
16374 fi
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16376 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16377
16378 case ".$ac_cv_cxxflags_warn_all" in
16379 .ok|.ok,*) ;;
16380 .|.no|.no,*) ;;
16381 *) if ${CXXFLAGS+:} false; then :
16382 case " $CXXFLAGS " in
16383 *" $ac_cv_cxxflags_warn_all "*)
16384 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16385 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16386 ac_status=$?
16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388 test $ac_status = 0; }
16389 ;;
16390 *)
16391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16392 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16393 ac_status=$?
16394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16395 test $ac_status = 0; }
16396 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16397 ;;
16398 esac
16399 else
16400 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16401 fi
16402 ;;
16403 esac
16404
16405 ac_ext=cpp
16406 ac_cpp='$CXXCPP $CPPFLAGS'
16407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16410
16411
16412
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5
16415 $as_echo_n "checking for -Wno-overloaded-virtual... " >&6; }
16416
16417 cy_save=$CXXFLAGS
16418
16419 for element in -Wno-overloaded-virtual; do
16420 haveit=
16421 for x in $CXXFLAGS; do
16422
16423 acl_save_prefix="$prefix"
16424 prefix="$acl_final_prefix"
16425 acl_save_exec_prefix="$exec_prefix"
16426 exec_prefix="$acl_final_exec_prefix"
16427 eval x=\"$x\"
16428 exec_prefix="$acl_save_exec_prefix"
16429 prefix="$acl_save_prefix"
16430
16431 if test "X$x" = "X$element"; then
16432 haveit=yes
16433 break
16434 fi
16435 done
16436 if test -z "$haveit"; then
16437 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16438 fi
16439 done
16440
16441
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444
16445 _ACEOF
16446 if ac_fn_cxx_try_compile "$LINENO"; then :
16447 cy_good=1
16448 else
16449 cy_good=0
16450 fi
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452
16453 CXXFLAGS=$cy_save
16454 if test "x$cy_good" = x1; then :
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16456 $as_echo "yes" >&6; }
16457
16458
16459 for element in -Wno-overloaded-virtual; do
16460 haveit=
16461 for x in $CFLAGS; do
16462
16463 acl_save_prefix="$prefix"
16464 prefix="$acl_final_prefix"
16465 acl_save_exec_prefix="$exec_prefix"
16466 exec_prefix="$acl_final_exec_prefix"
16467 eval x=\"$x\"
16468 exec_prefix="$acl_save_exec_prefix"
16469 prefix="$acl_save_prefix"
16470
16471 if test "X$x" = "X$element"; then
16472 haveit=yes
16473 break
16474 fi
16475 done
16476 if test -z "$haveit"; then
16477 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16478 fi
16479 done
16480
16481
16482 for element in -Wno-overloaded-virtual; do
16483 haveit=
16484 for x in $CXXFLAGS; do
16485
16486 acl_save_prefix="$prefix"
16487 prefix="$acl_final_prefix"
16488 acl_save_exec_prefix="$exec_prefix"
16489 exec_prefix="$acl_final_exec_prefix"
16490 eval x=\"$x\"
16491 exec_prefix="$acl_save_exec_prefix"
16492 prefix="$acl_save_prefix"
16493
16494 if test "X$x" = "X$element"; then
16495 haveit=yes
16496 break
16497 fi
16498 done
16499 if test -z "$haveit"; then
16500 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16501 fi
16502 done
16503
16504
16505 for element in -Wno-overloaded-virtual; do
16506 haveit=
16507 for x in $OBJCCXXFLAGS; do
16508
16509 acl_save_prefix="$prefix"
16510 prefix="$acl_final_prefix"
16511 acl_save_exec_prefix="$exec_prefix"
16512 exec_prefix="$acl_final_exec_prefix"
16513 eval x=\"$x\"
16514 exec_prefix="$acl_save_exec_prefix"
16515 prefix="$acl_save_prefix"
16516
16517 if test "X$x" = "X$element"; then
16518 haveit=yes
16519 break
16520 fi
16521 done
16522 if test -z "$haveit"; then
16523 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16524 fi
16525 done
16526
16527
16528
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16532 fi
16533
16534
16535
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5
16537 $as_echo_n "checking for -Wno-parentheses... " >&6; }
16538
16539 cy_save=$CXXFLAGS
16540
16541 for element in -Wno-parentheses; do
16542 haveit=
16543 for x in $CXXFLAGS; do
16544
16545 acl_save_prefix="$prefix"
16546 prefix="$acl_final_prefix"
16547 acl_save_exec_prefix="$exec_prefix"
16548 exec_prefix="$acl_final_exec_prefix"
16549 eval x=\"$x\"
16550 exec_prefix="$acl_save_exec_prefix"
16551 prefix="$acl_save_prefix"
16552
16553 if test "X$x" = "X$element"; then
16554 haveit=yes
16555 break
16556 fi
16557 done
16558 if test -z "$haveit"; then
16559 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16560 fi
16561 done
16562
16563
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566
16567 _ACEOF
16568 if ac_fn_cxx_try_compile "$LINENO"; then :
16569 cy_good=1
16570 else
16571 cy_good=0
16572 fi
16573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574
16575 CXXFLAGS=$cy_save
16576 if test "x$cy_good" = x1; then :
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16578 $as_echo "yes" >&6; }
16579
16580
16581 for element in -Wno-parentheses; do
16582 haveit=
16583 for x in $CFLAGS; do
16584
16585 acl_save_prefix="$prefix"
16586 prefix="$acl_final_prefix"
16587 acl_save_exec_prefix="$exec_prefix"
16588 exec_prefix="$acl_final_exec_prefix"
16589 eval x=\"$x\"
16590 exec_prefix="$acl_save_exec_prefix"
16591 prefix="$acl_save_prefix"
16592
16593 if test "X$x" = "X$element"; then
16594 haveit=yes
16595 break
16596 fi
16597 done
16598 if test -z "$haveit"; then
16599 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16600 fi
16601 done
16602
16603
16604 for element in -Wno-parentheses; do
16605 haveit=
16606 for x in $CXXFLAGS; do
16607
16608 acl_save_prefix="$prefix"
16609 prefix="$acl_final_prefix"
16610 acl_save_exec_prefix="$exec_prefix"
16611 exec_prefix="$acl_final_exec_prefix"
16612 eval x=\"$x\"
16613 exec_prefix="$acl_save_exec_prefix"
16614 prefix="$acl_save_prefix"
16615
16616 if test "X$x" = "X$element"; then
16617 haveit=yes
16618 break
16619 fi
16620 done
16621 if test -z "$haveit"; then
16622 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16623 fi
16624 done
16625
16626
16627 for element in -Wno-parentheses; do
16628 haveit=
16629 for x in $OBJCCXXFLAGS; do
16630
16631 acl_save_prefix="$prefix"
16632 prefix="$acl_final_prefix"
16633 acl_save_exec_prefix="$exec_prefix"
16634 exec_prefix="$acl_final_exec_prefix"
16635 eval x=\"$x\"
16636 exec_prefix="$acl_save_exec_prefix"
16637 prefix="$acl_save_prefix"
16638
16639 if test "X$x" = "X$element"; then
16640 haveit=yes
16641 break
16642 fi
16643 done
16644 if test -z "$haveit"; then
16645 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16646 fi
16647 done
16648
16649
16650
16651 else
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16653 $as_echo "no" >&6; }
16654 fi
16655
16656
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5
16659 $as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; }
16660
16661 cy_save=$CXXFLAGS
16662
16663 for element in -Wno-unneeded-internal-declaration; do
16664 haveit=
16665 for x in $CXXFLAGS; do
16666
16667 acl_save_prefix="$prefix"
16668 prefix="$acl_final_prefix"
16669 acl_save_exec_prefix="$exec_prefix"
16670 exec_prefix="$acl_final_exec_prefix"
16671 eval x=\"$x\"
16672 exec_prefix="$acl_save_exec_prefix"
16673 prefix="$acl_save_prefix"
16674
16675 if test "X$x" = "X$element"; then
16676 haveit=yes
16677 break
16678 fi
16679 done
16680 if test -z "$haveit"; then
16681 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16682 fi
16683 done
16684
16685
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688
16689 _ACEOF
16690 if ac_fn_cxx_try_compile "$LINENO"; then :
16691 cy_good=1
16692 else
16693 cy_good=0
16694 fi
16695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16696
16697 CXXFLAGS=$cy_save
16698 if test "x$cy_good" = x1; then :
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16700 $as_echo "yes" >&6; }
16701
16702
16703 for element in -Wno-unneeded-internal-declaration; do
16704 haveit=
16705 for x in $CFLAGS; do
16706
16707 acl_save_prefix="$prefix"
16708 prefix="$acl_final_prefix"
16709 acl_save_exec_prefix="$exec_prefix"
16710 exec_prefix="$acl_final_exec_prefix"
16711 eval x=\"$x\"
16712 exec_prefix="$acl_save_exec_prefix"
16713 prefix="$acl_save_prefix"
16714
16715 if test "X$x" = "X$element"; then
16716 haveit=yes
16717 break
16718 fi
16719 done
16720 if test -z "$haveit"; then
16721 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16722 fi
16723 done
16724
16725
16726 for element in -Wno-unneeded-internal-declaration; do
16727 haveit=
16728 for x in $CXXFLAGS; do
16729
16730 acl_save_prefix="$prefix"
16731 prefix="$acl_final_prefix"
16732 acl_save_exec_prefix="$exec_prefix"
16733 exec_prefix="$acl_final_exec_prefix"
16734 eval x=\"$x\"
16735 exec_prefix="$acl_save_exec_prefix"
16736 prefix="$acl_save_prefix"
16737
16738 if test "X$x" = "X$element"; then
16739 haveit=yes
16740 break
16741 fi
16742 done
16743 if test -z "$haveit"; then
16744 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16745 fi
16746 done
16747
16748
16749 for element in -Wno-unneeded-internal-declaration; do
16750 haveit=
16751 for x in $OBJCCXXFLAGS; do
16752
16753 acl_save_prefix="$prefix"
16754 prefix="$acl_final_prefix"
16755 acl_save_exec_prefix="$exec_prefix"
16756 exec_prefix="$acl_final_exec_prefix"
16757 eval x=\"$x\"
16758 exec_prefix="$acl_save_exec_prefix"
16759 prefix="$acl_save_prefix"
16760
16761 if test "X$x" = "X$element"; then
16762 haveit=yes
16763 break
16764 fi
16765 done
16766 if test -z "$haveit"; then
16767 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16768 fi
16769 done
16770
16771
16772
16773 else
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16775 $as_echo "no" >&6; }
16776 fi
16777
16778
16779
16780 for cy_arch in ppc ppc64 i386 x86_64 armv6; do
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
16782 $as_echo_n "checking for -arch $cy_arch... " >&6; }
16783
16784 cy_save=$CXXFLAGS
16785
16786 for element in "-arch $cy_arch"; do
16787 haveit=
16788 for x in $CXXFLAGS; do
16789
16790 acl_save_prefix="$prefix"
16791 prefix="$acl_final_prefix"
16792 acl_save_exec_prefix="$exec_prefix"
16793 exec_prefix="$acl_final_exec_prefix"
16794 eval x=\"$x\"
16795 exec_prefix="$acl_save_exec_prefix"
16796 prefix="$acl_save_prefix"
16797
16798 if test "X$x" = "X$element"; then
16799 haveit=yes
16800 break
16801 fi
16802 done
16803 if test -z "$haveit"; then
16804 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16805 fi
16806 done
16807
16808
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811
16812 int
16813 main ()
16814 {
16815
16816 ;
16817 return 0;
16818 }
16819 _ACEOF
16820 if ac_fn_cxx_try_link "$LINENO"; then :
16821 cy_good=1
16822 else
16823 cy_good=0
16824 fi
16825 rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827
16828 CXXFLAGS=$cy_save
16829 if test "x$cy_good" = x1; then :
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16832
16833
16834 for element in "-arch $cy_arch"; do
16835 haveit=
16836 for x in $CFLAGS; do
16837
16838 acl_save_prefix="$prefix"
16839 prefix="$acl_final_prefix"
16840 acl_save_exec_prefix="$exec_prefix"
16841 exec_prefix="$acl_final_exec_prefix"
16842 eval x=\"$x\"
16843 exec_prefix="$acl_save_exec_prefix"
16844 prefix="$acl_save_prefix"
16845
16846 if test "X$x" = "X$element"; then
16847 haveit=yes
16848 break
16849 fi
16850 done
16851 if test -z "$haveit"; then
16852 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16853 fi
16854 done
16855
16856
16857 for element in "-arch $cy_arch"; do
16858 haveit=
16859 for x in $CXXFLAGS; do
16860
16861 acl_save_prefix="$prefix"
16862 prefix="$acl_final_prefix"
16863 acl_save_exec_prefix="$exec_prefix"
16864 exec_prefix="$acl_final_exec_prefix"
16865 eval x=\"$x\"
16866 exec_prefix="$acl_save_exec_prefix"
16867 prefix="$acl_save_prefix"
16868
16869 if test "X$x" = "X$element"; then
16870 haveit=yes
16871 break
16872 fi
16873 done
16874 if test -z "$haveit"; then
16875 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16876 fi
16877 done
16878
16879
16880 for element in "-arch $cy_arch"; do
16881 haveit=
16882 for x in $OBJCCXXFLAGS; do
16883
16884 acl_save_prefix="$prefix"
16885 prefix="$acl_final_prefix"
16886 acl_save_exec_prefix="$exec_prefix"
16887 exec_prefix="$acl_final_exec_prefix"
16888 eval x=\"$x\"
16889 exec_prefix="$acl_save_exec_prefix"
16890 prefix="$acl_save_prefix"
16891
16892 if test "X$x" = "X$element"; then
16893 haveit=yes
16894 break
16895 fi
16896 done
16897 if test -z "$haveit"; then
16898 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16899 fi
16900 done
16901
16902
16903
16904 for element in "-arch $cy_arch"; do
16905 haveit=
16906 for x in $LDFLAGS; do
16907
16908 acl_save_prefix="$prefix"
16909 prefix="$acl_final_prefix"
16910 acl_save_exec_prefix="$exec_prefix"
16911 exec_prefix="$acl_final_exec_prefix"
16912 eval x=\"$x\"
16913 exec_prefix="$acl_save_exec_prefix"
16914 prefix="$acl_save_prefix"
16915
16916 if test "X$x" = "X$element"; then
16917 haveit=yes
16918 break
16919 fi
16920 done
16921 if test -z "$haveit"; then
16922 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
16923 fi
16924 done
16925
16926
16927 else
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16929 $as_echo "no" >&6; }
16930 fi
16931
16932 done
16933
16934 # Check whether --with-frameworks was given.
16935 if test "${with_frameworks+set}" = set; then :
16936 withval=$with_frameworks;
16937 for cy_framework in $withval; do
16938
16939
16940 for element in -F$cy_framework; do
16941 haveit=
16942 for x in $CFLAGS; do
16943
16944 acl_save_prefix="$prefix"
16945 prefix="$acl_final_prefix"
16946 acl_save_exec_prefix="$exec_prefix"
16947 exec_prefix="$acl_final_exec_prefix"
16948 eval x=\"$x\"
16949 exec_prefix="$acl_save_exec_prefix"
16950 prefix="$acl_save_prefix"
16951
16952 if test "X$x" = "X$element"; then
16953 haveit=yes
16954 break
16955 fi
16956 done
16957 if test -z "$haveit"; then
16958 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16959 fi
16960 done
16961
16962
16963 for element in -F$cy_framework; do
16964 haveit=
16965 for x in $CXXFLAGS; do
16966
16967 acl_save_prefix="$prefix"
16968 prefix="$acl_final_prefix"
16969 acl_save_exec_prefix="$exec_prefix"
16970 exec_prefix="$acl_final_exec_prefix"
16971 eval x=\"$x\"
16972 exec_prefix="$acl_save_exec_prefix"
16973 prefix="$acl_save_prefix"
16974
16975 if test "X$x" = "X$element"; then
16976 haveit=yes
16977 break
16978 fi
16979 done
16980 if test -z "$haveit"; then
16981 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16982 fi
16983 done
16984
16985
16986 for element in -F$cy_framework; do
16987 haveit=
16988 for x in $OBJCCXXFLAGS; do
16989
16990 acl_save_prefix="$prefix"
16991 prefix="$acl_final_prefix"
16992 acl_save_exec_prefix="$exec_prefix"
16993 exec_prefix="$acl_final_exec_prefix"
16994 eval x=\"$x\"
16995 exec_prefix="$acl_save_exec_prefix"
16996 prefix="$acl_save_prefix"
16997
16998 if test "X$x" = "X$element"; then
16999 haveit=yes
17000 break
17001 fi
17002 done
17003 if test -z "$haveit"; then
17004 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17005 fi
17006 done
17007
17008
17009 done
17010
17011 fi
17012
17013
17014
17015
17016 # Check whether --enable-javascript was given.
17017 if test "${enable_javascript+set}" = set; then :
17018 enableval=$enable_javascript;
17019 case $enableval in #(
17020 yes) :
17021
17022
17023
17024
17025 pkg_failed=no
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17027 $as_echo_n "checking for WEBKIT... " >&6; }
17028
17029 if test -n "$WEBKIT_CFLAGS"; then
17030 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17031 elif test -n "$PKG_CONFIG"; then
17032 if test -n "$PKG_CONFIG" && \
17033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17034 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17035 ac_status=$?
17036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17037 test $ac_status = 0; }; then
17038 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17039 else
17040 pkg_failed=yes
17041 fi
17042 else
17043 pkg_failed=untried
17044 fi
17045 if test -n "$WEBKIT_LIBS"; then
17046 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17047 elif test -n "$PKG_CONFIG"; then
17048 if test -n "$PKG_CONFIG" && \
17049 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17050 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17051 ac_status=$?
17052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17053 test $ac_status = 0; }; then
17054 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17055 else
17056 pkg_failed=yes
17057 fi
17058 else
17059 pkg_failed=untried
17060 fi
17061
17062
17063
17064 if test $pkg_failed = yes; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066 $as_echo "no" >&6; }
17067
17068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17069 _pkg_short_errors_supported=yes
17070 else
17071 _pkg_short_errors_supported=no
17072 fi
17073 if test $_pkg_short_errors_supported = yes; then
17074 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17075 else
17076 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17077 fi
17078 # Put the nasty error message in config.log where it belongs
17079 echo "$WEBKIT_PKG_ERRORS" >&5
17080
17081
17082
17083 pkg_failed=no
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17085 $as_echo_n "checking for WEBKIT... " >&6; }
17086
17087 if test -n "$WEBKIT_CFLAGS"; then
17088 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17089 elif test -n "$PKG_CONFIG"; then
17090 if test -n "$PKG_CONFIG" && \
17091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17092 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17093 ac_status=$?
17094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17095 test $ac_status = 0; }; then
17096 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17097 else
17098 pkg_failed=yes
17099 fi
17100 else
17101 pkg_failed=untried
17102 fi
17103 if test -n "$WEBKIT_LIBS"; then
17104 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17105 elif test -n "$PKG_CONFIG"; then
17106 if test -n "$PKG_CONFIG" && \
17107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17108 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17109 ac_status=$?
17110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17111 test $ac_status = 0; }; then
17112 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17113 else
17114 pkg_failed=yes
17115 fi
17116 else
17117 pkg_failed=untried
17118 fi
17119
17120
17121
17122 if test $pkg_failed = yes; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17124 $as_echo "no" >&6; }
17125
17126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17127 _pkg_short_errors_supported=yes
17128 else
17129 _pkg_short_errors_supported=no
17130 fi
17131 if test $_pkg_short_errors_supported = yes; then
17132 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17133 else
17134 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17135 fi
17136 # Put the nasty error message in config.log where it belongs
17137 echo "$WEBKIT_PKG_ERRORS" >&5
17138
17139
17140
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17142 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17143 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146
17147 ac_check_framework_save_LIBS=$LIBS
17148 LIBS="-framework JavaScriptCore $LIBS"
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17151
17152 #include <JavaScriptCore/JSBase.h>
17153
17154 int
17155 main ()
17156 {
17157
17158 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17159
17160 ;
17161 return 0;
17162 }
17163 _ACEOF
17164 if ac_fn_cxx_try_link "$LINENO"; then :
17165
17166 ac_cv_framework_JavaScriptCore=yes
17167
17168 else
17169 ac_cv_framework_JavaScriptCore=no
17170 fi
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173 LIBS=$ac_check_framework_save_LIBS
17174
17175 fi
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17177 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17178 if test $ac_cv_framework_JavaScriptCore = yes; then :
17179
17180
17181 for element in "-framework JavaScriptCore $LIBS"; do
17182 haveit=
17183 for x in $LIBS; do
17184
17185 acl_save_prefix="$prefix"
17186 prefix="$acl_final_prefix"
17187 acl_save_exec_prefix="$exec_prefix"
17188 exec_prefix="$acl_final_exec_prefix"
17189 eval x=\"$x\"
17190 exec_prefix="$acl_save_exec_prefix"
17191 prefix="$acl_save_prefix"
17192
17193 if test "X$x" = "X$element"; then
17194 haveit=yes
17195 break
17196 fi
17197 done
17198 if test -z "$haveit"; then
17199 LIBS="${LIBS}${LIBS:+ }$element"
17200 fi
17201 done
17202
17203
17204 CY_EXECUTE=1
17205
17206
17207
17208 fi
17209
17210 elif test $pkg_failed = untried; then
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17212 $as_echo "no" >&6; }
17213
17214
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17216 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17217 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17218 $as_echo_n "(cached) " >&6
17219 else
17220
17221 ac_check_framework_save_LIBS=$LIBS
17222 LIBS="-framework JavaScriptCore $LIBS"
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225
17226 #include <JavaScriptCore/JSBase.h>
17227
17228 int
17229 main ()
17230 {
17231
17232 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17233
17234 ;
17235 return 0;
17236 }
17237 _ACEOF
17238 if ac_fn_cxx_try_link "$LINENO"; then :
17239
17240 ac_cv_framework_JavaScriptCore=yes
17241
17242 else
17243 ac_cv_framework_JavaScriptCore=no
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247 LIBS=$ac_check_framework_save_LIBS
17248
17249 fi
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17251 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17252 if test $ac_cv_framework_JavaScriptCore = yes; then :
17253
17254
17255 for element in "-framework JavaScriptCore $LIBS"; do
17256 haveit=
17257 for x in $LIBS; do
17258
17259 acl_save_prefix="$prefix"
17260 prefix="$acl_final_prefix"
17261 acl_save_exec_prefix="$exec_prefix"
17262 exec_prefix="$acl_final_exec_prefix"
17263 eval x=\"$x\"
17264 exec_prefix="$acl_save_exec_prefix"
17265 prefix="$acl_save_prefix"
17266
17267 if test "X$x" = "X$element"; then
17268 haveit=yes
17269 break
17270 fi
17271 done
17272 if test -z "$haveit"; then
17273 LIBS="${LIBS}${LIBS:+ }$element"
17274 fi
17275 done
17276
17277
17278 CY_EXECUTE=1
17279
17280
17281
17282 fi
17283
17284 else
17285 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17286 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288 $as_echo "yes" >&6; }
17289
17290 CY_EXECUTE=1
17291
17292
17293 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17294 haveit=
17295 for x in $CXXFLAGS; 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 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17312 fi
17313 done
17314
17315
17316 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17317 haveit=
17318 for x in $LIBS; do
17319
17320 acl_save_prefix="$prefix"
17321 prefix="$acl_final_prefix"
17322 acl_save_exec_prefix="$exec_prefix"
17323 exec_prefix="$acl_final_exec_prefix"
17324 eval x=\"$x\"
17325 exec_prefix="$acl_save_exec_prefix"
17326 prefix="$acl_save_prefix"
17327
17328 if test "X$x" = "X$element"; then
17329 haveit=yes
17330 break
17331 fi
17332 done
17333 if test -z "$haveit"; then
17334 LIBS="${LIBS}${LIBS:+ }$element"
17335 fi
17336 done
17337
17338
17339 fi
17340
17341 elif test $pkg_failed = untried; then
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17343 $as_echo "no" >&6; }
17344
17345
17346 pkg_failed=no
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17348 $as_echo_n "checking for WEBKIT... " >&6; }
17349
17350 if test -n "$WEBKIT_CFLAGS"; then
17351 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17352 elif test -n "$PKG_CONFIG"; then
17353 if test -n "$PKG_CONFIG" && \
17354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17355 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17356 ac_status=$?
17357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17358 test $ac_status = 0; }; then
17359 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17360 else
17361 pkg_failed=yes
17362 fi
17363 else
17364 pkg_failed=untried
17365 fi
17366 if test -n "$WEBKIT_LIBS"; then
17367 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17368 elif test -n "$PKG_CONFIG"; then
17369 if test -n "$PKG_CONFIG" && \
17370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17371 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17372 ac_status=$?
17373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17374 test $ac_status = 0; }; then
17375 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17376 else
17377 pkg_failed=yes
17378 fi
17379 else
17380 pkg_failed=untried
17381 fi
17382
17383
17384
17385 if test $pkg_failed = yes; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387 $as_echo "no" >&6; }
17388
17389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17390 _pkg_short_errors_supported=yes
17391 else
17392 _pkg_short_errors_supported=no
17393 fi
17394 if test $_pkg_short_errors_supported = yes; then
17395 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17396 else
17397 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17398 fi
17399 # Put the nasty error message in config.log where it belongs
17400 echo "$WEBKIT_PKG_ERRORS" >&5
17401
17402
17403
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17405 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17406 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17407 $as_echo_n "(cached) " >&6
17408 else
17409
17410 ac_check_framework_save_LIBS=$LIBS
17411 LIBS="-framework JavaScriptCore $LIBS"
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414
17415 #include <JavaScriptCore/JSBase.h>
17416
17417 int
17418 main ()
17419 {
17420
17421 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17422
17423 ;
17424 return 0;
17425 }
17426 _ACEOF
17427 if ac_fn_cxx_try_link "$LINENO"; then :
17428
17429 ac_cv_framework_JavaScriptCore=yes
17430
17431 else
17432 ac_cv_framework_JavaScriptCore=no
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17436 LIBS=$ac_check_framework_save_LIBS
17437
17438 fi
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17440 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17441 if test $ac_cv_framework_JavaScriptCore = yes; then :
17442
17443
17444 for element in "-framework JavaScriptCore $LIBS"; do
17445 haveit=
17446 for x in $LIBS; do
17447
17448 acl_save_prefix="$prefix"
17449 prefix="$acl_final_prefix"
17450 acl_save_exec_prefix="$exec_prefix"
17451 exec_prefix="$acl_final_exec_prefix"
17452 eval x=\"$x\"
17453 exec_prefix="$acl_save_exec_prefix"
17454 prefix="$acl_save_prefix"
17455
17456 if test "X$x" = "X$element"; then
17457 haveit=yes
17458 break
17459 fi
17460 done
17461 if test -z "$haveit"; then
17462 LIBS="${LIBS}${LIBS:+ }$element"
17463 fi
17464 done
17465
17466
17467 CY_EXECUTE=1
17468
17469
17470
17471 fi
17472
17473 elif test $pkg_failed = untried; then
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475 $as_echo "no" >&6; }
17476
17477
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17479 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17480 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17481 $as_echo_n "(cached) " >&6
17482 else
17483
17484 ac_check_framework_save_LIBS=$LIBS
17485 LIBS="-framework JavaScriptCore $LIBS"
17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h. */
17488
17489 #include <JavaScriptCore/JSBase.h>
17490
17491 int
17492 main ()
17493 {
17494
17495 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17496
17497 ;
17498 return 0;
17499 }
17500 _ACEOF
17501 if ac_fn_cxx_try_link "$LINENO"; then :
17502
17503 ac_cv_framework_JavaScriptCore=yes
17504
17505 else
17506 ac_cv_framework_JavaScriptCore=no
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_framework_save_LIBS
17511
17512 fi
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17514 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17515 if test $ac_cv_framework_JavaScriptCore = yes; then :
17516
17517
17518 for element in "-framework JavaScriptCore $LIBS"; do
17519 haveit=
17520 for x in $LIBS; do
17521
17522 acl_save_prefix="$prefix"
17523 prefix="$acl_final_prefix"
17524 acl_save_exec_prefix="$exec_prefix"
17525 exec_prefix="$acl_final_exec_prefix"
17526 eval x=\"$x\"
17527 exec_prefix="$acl_save_exec_prefix"
17528 prefix="$acl_save_prefix"
17529
17530 if test "X$x" = "X$element"; then
17531 haveit=yes
17532 break
17533 fi
17534 done
17535 if test -z "$haveit"; then
17536 LIBS="${LIBS}${LIBS:+ }$element"
17537 fi
17538 done
17539
17540
17541 CY_EXECUTE=1
17542
17543
17544
17545 fi
17546
17547 else
17548 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17549 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17551 $as_echo "yes" >&6; }
17552
17553 CY_EXECUTE=1
17554
17555
17556 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17557 haveit=
17558 for x in $CXXFLAGS; do
17559
17560 acl_save_prefix="$prefix"
17561 prefix="$acl_final_prefix"
17562 acl_save_exec_prefix="$exec_prefix"
17563 exec_prefix="$acl_final_exec_prefix"
17564 eval x=\"$x\"
17565 exec_prefix="$acl_save_exec_prefix"
17566 prefix="$acl_save_prefix"
17567
17568 if test "X$x" = "X$element"; then
17569 haveit=yes
17570 break
17571 fi
17572 done
17573 if test -z "$haveit"; then
17574 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17575 fi
17576 done
17577
17578
17579 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17580 haveit=
17581 for x in $LIBS; do
17582
17583 acl_save_prefix="$prefix"
17584 prefix="$acl_final_prefix"
17585 acl_save_exec_prefix="$exec_prefix"
17586 exec_prefix="$acl_final_exec_prefix"
17587 eval x=\"$x\"
17588 exec_prefix="$acl_save_exec_prefix"
17589 prefix="$acl_save_prefix"
17590
17591 if test "X$x" = "X$element"; then
17592 haveit=yes
17593 break
17594 fi
17595 done
17596 if test -z "$haveit"; then
17597 LIBS="${LIBS}${LIBS:+ }$element"
17598 fi
17599 done
17600
17601
17602 fi
17603
17604 else
17605 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17606 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17608 $as_echo "yes" >&6; }
17609
17610 CY_EXECUTE=1
17611
17612
17613 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17614 haveit=
17615 for x in $CXXFLAGS; do
17616
17617 acl_save_prefix="$prefix"
17618 prefix="$acl_final_prefix"
17619 acl_save_exec_prefix="$exec_prefix"
17620 exec_prefix="$acl_final_exec_prefix"
17621 eval x=\"$x\"
17622 exec_prefix="$acl_save_exec_prefix"
17623 prefix="$acl_save_prefix"
17624
17625 if test "X$x" = "X$element"; then
17626 haveit=yes
17627 break
17628 fi
17629 done
17630 if test -z "$haveit"; then
17631 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17632 fi
17633 done
17634
17635
17636 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17637 haveit=
17638 for x in $LIBS; do
17639
17640 acl_save_prefix="$prefix"
17641 prefix="$acl_final_prefix"
17642 acl_save_exec_prefix="$exec_prefix"
17643 exec_prefix="$acl_final_exec_prefix"
17644 eval x=\"$x\"
17645 exec_prefix="$acl_save_exec_prefix"
17646 prefix="$acl_save_prefix"
17647
17648 if test "X$x" = "X$element"; then
17649 haveit=yes
17650 break
17651 fi
17652 done
17653 if test -z "$haveit"; then
17654 LIBS="${LIBS}${LIBS:+ }$element"
17655 fi
17656 done
17657
17658
17659 fi
17660 ;; #(
17661 no) :
17662
17663 CY_EXECUTE=0
17664 ;; #(
17665 JavaScriptCore) :
17666
17667
17668
17669 pkg_failed=no
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17671 $as_echo_n "checking for WEBKIT... " >&6; }
17672
17673 if test -n "$WEBKIT_CFLAGS"; then
17674 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17675 elif test -n "$PKG_CONFIG"; then
17676 if test -n "$PKG_CONFIG" && \
17677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17678 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17679 ac_status=$?
17680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17681 test $ac_status = 0; }; then
17682 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17683 else
17684 pkg_failed=yes
17685 fi
17686 else
17687 pkg_failed=untried
17688 fi
17689 if test -n "$WEBKIT_LIBS"; then
17690 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17691 elif test -n "$PKG_CONFIG"; then
17692 if test -n "$PKG_CONFIG" && \
17693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17694 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17695 ac_status=$?
17696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17697 test $ac_status = 0; }; then
17698 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17699 else
17700 pkg_failed=yes
17701 fi
17702 else
17703 pkg_failed=untried
17704 fi
17705
17706
17707
17708 if test $pkg_failed = yes; then
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17710 $as_echo "no" >&6; }
17711
17712 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17713 _pkg_short_errors_supported=yes
17714 else
17715 _pkg_short_errors_supported=no
17716 fi
17717 if test $_pkg_short_errors_supported = yes; then
17718 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17719 else
17720 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17721 fi
17722 # Put the nasty error message in config.log where it belongs
17723 echo "$WEBKIT_PKG_ERRORS" >&5
17724
17725
17726
17727 pkg_failed=no
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17729 $as_echo_n "checking for WEBKIT... " >&6; }
17730
17731 if test -n "$WEBKIT_CFLAGS"; then
17732 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17733 elif test -n "$PKG_CONFIG"; then
17734 if test -n "$PKG_CONFIG" && \
17735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17736 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17737 ac_status=$?
17738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17739 test $ac_status = 0; }; then
17740 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17741 else
17742 pkg_failed=yes
17743 fi
17744 else
17745 pkg_failed=untried
17746 fi
17747 if test -n "$WEBKIT_LIBS"; then
17748 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17749 elif test -n "$PKG_CONFIG"; then
17750 if test -n "$PKG_CONFIG" && \
17751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17752 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17753 ac_status=$?
17754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17755 test $ac_status = 0; }; then
17756 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17757 else
17758 pkg_failed=yes
17759 fi
17760 else
17761 pkg_failed=untried
17762 fi
17763
17764
17765
17766 if test $pkg_failed = yes; then
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17768 $as_echo "no" >&6; }
17769
17770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17771 _pkg_short_errors_supported=yes
17772 else
17773 _pkg_short_errors_supported=no
17774 fi
17775 if test $_pkg_short_errors_supported = yes; then
17776 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17777 else
17778 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17779 fi
17780 # Put the nasty error message in config.log where it belongs
17781 echo "$WEBKIT_PKG_ERRORS" >&5
17782
17783
17784
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17786 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17787 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790
17791 ac_check_framework_save_LIBS=$LIBS
17792 LIBS="-framework JavaScriptCore $LIBS"
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795
17796 #include <JavaScriptCore/JSBase.h>
17797
17798 int
17799 main ()
17800 {
17801
17802 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17803
17804 ;
17805 return 0;
17806 }
17807 _ACEOF
17808 if ac_fn_cxx_try_link "$LINENO"; then :
17809
17810 ac_cv_framework_JavaScriptCore=yes
17811
17812 else
17813 ac_cv_framework_JavaScriptCore=no
17814 fi
17815 rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17817 LIBS=$ac_check_framework_save_LIBS
17818
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17821 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17822 if test $ac_cv_framework_JavaScriptCore = yes; then :
17823
17824
17825 for element in "-framework JavaScriptCore $LIBS"; do
17826 haveit=
17827 for x in $LIBS; do
17828
17829 acl_save_prefix="$prefix"
17830 prefix="$acl_final_prefix"
17831 acl_save_exec_prefix="$exec_prefix"
17832 exec_prefix="$acl_final_exec_prefix"
17833 eval x=\"$x\"
17834 exec_prefix="$acl_save_exec_prefix"
17835 prefix="$acl_save_prefix"
17836
17837 if test "X$x" = "X$element"; then
17838 haveit=yes
17839 break
17840 fi
17841 done
17842 if test -z "$haveit"; then
17843 LIBS="${LIBS}${LIBS:+ }$element"
17844 fi
17845 done
17846
17847
17848 CY_EXECUTE=1
17849
17850
17851
17852 fi
17853
17854 elif test $pkg_failed = untried; then
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856 $as_echo "no" >&6; }
17857
17858
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17860 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17861 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864
17865 ac_check_framework_save_LIBS=$LIBS
17866 LIBS="-framework JavaScriptCore $LIBS"
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869
17870 #include <JavaScriptCore/JSBase.h>
17871
17872 int
17873 main ()
17874 {
17875
17876 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17877
17878 ;
17879 return 0;
17880 }
17881 _ACEOF
17882 if ac_fn_cxx_try_link "$LINENO"; then :
17883
17884 ac_cv_framework_JavaScriptCore=yes
17885
17886 else
17887 ac_cv_framework_JavaScriptCore=no
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_framework_save_LIBS
17892
17893 fi
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17895 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17896 if test $ac_cv_framework_JavaScriptCore = yes; then :
17897
17898
17899 for element in "-framework JavaScriptCore $LIBS"; do
17900 haveit=
17901 for x in $LIBS; do
17902
17903 acl_save_prefix="$prefix"
17904 prefix="$acl_final_prefix"
17905 acl_save_exec_prefix="$exec_prefix"
17906 exec_prefix="$acl_final_exec_prefix"
17907 eval x=\"$x\"
17908 exec_prefix="$acl_save_exec_prefix"
17909 prefix="$acl_save_prefix"
17910
17911 if test "X$x" = "X$element"; then
17912 haveit=yes
17913 break
17914 fi
17915 done
17916 if test -z "$haveit"; then
17917 LIBS="${LIBS}${LIBS:+ }$element"
17918 fi
17919 done
17920
17921
17922 CY_EXECUTE=1
17923
17924
17925
17926 fi
17927
17928 else
17929 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17930 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17932 $as_echo "yes" >&6; }
17933
17934 CY_EXECUTE=1
17935
17936
17937 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17938 haveit=
17939 for x in $CXXFLAGS; 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 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17956 fi
17957 done
17958
17959
17960 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17961 haveit=
17962 for x in $LIBS; do
17963
17964 acl_save_prefix="$prefix"
17965 prefix="$acl_final_prefix"
17966 acl_save_exec_prefix="$exec_prefix"
17967 exec_prefix="$acl_final_exec_prefix"
17968 eval x=\"$x\"
17969 exec_prefix="$acl_save_exec_prefix"
17970 prefix="$acl_save_prefix"
17971
17972 if test "X$x" = "X$element"; then
17973 haveit=yes
17974 break
17975 fi
17976 done
17977 if test -z "$haveit"; then
17978 LIBS="${LIBS}${LIBS:+ }$element"
17979 fi
17980 done
17981
17982
17983 fi
17984
17985 elif test $pkg_failed = untried; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17987 $as_echo "no" >&6; }
17988
17989
17990 pkg_failed=no
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17992 $as_echo_n "checking for WEBKIT... " >&6; }
17993
17994 if test -n "$WEBKIT_CFLAGS"; then
17995 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17996 elif test -n "$PKG_CONFIG"; then
17997 if test -n "$PKG_CONFIG" && \
17998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17999 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18000 ac_status=$?
18001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002 test $ac_status = 0; }; then
18003 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18004 else
18005 pkg_failed=yes
18006 fi
18007 else
18008 pkg_failed=untried
18009 fi
18010 if test -n "$WEBKIT_LIBS"; then
18011 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18012 elif test -n "$PKG_CONFIG"; then
18013 if test -n "$PKG_CONFIG" && \
18014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18015 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18016 ac_status=$?
18017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18018 test $ac_status = 0; }; then
18019 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18020 else
18021 pkg_failed=yes
18022 fi
18023 else
18024 pkg_failed=untried
18025 fi
18026
18027
18028
18029 if test $pkg_failed = yes; then
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18031 $as_echo "no" >&6; }
18032
18033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18034 _pkg_short_errors_supported=yes
18035 else
18036 _pkg_short_errors_supported=no
18037 fi
18038 if test $_pkg_short_errors_supported = yes; then
18039 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18040 else
18041 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18042 fi
18043 # Put the nasty error message in config.log where it belongs
18044 echo "$WEBKIT_PKG_ERRORS" >&5
18045
18046
18047
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18049 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18050 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18051 $as_echo_n "(cached) " >&6
18052 else
18053
18054 ac_check_framework_save_LIBS=$LIBS
18055 LIBS="-framework JavaScriptCore $LIBS"
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058
18059 #include <JavaScriptCore/JSBase.h>
18060
18061 int
18062 main ()
18063 {
18064
18065 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18066
18067 ;
18068 return 0;
18069 }
18070 _ACEOF
18071 if ac_fn_cxx_try_link "$LINENO"; then :
18072
18073 ac_cv_framework_JavaScriptCore=yes
18074
18075 else
18076 ac_cv_framework_JavaScriptCore=no
18077 fi
18078 rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_framework_save_LIBS
18081
18082 fi
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18084 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18085 if test $ac_cv_framework_JavaScriptCore = yes; then :
18086
18087
18088 for element in "-framework JavaScriptCore $LIBS"; do
18089 haveit=
18090 for x in $LIBS; do
18091
18092 acl_save_prefix="$prefix"
18093 prefix="$acl_final_prefix"
18094 acl_save_exec_prefix="$exec_prefix"
18095 exec_prefix="$acl_final_exec_prefix"
18096 eval x=\"$x\"
18097 exec_prefix="$acl_save_exec_prefix"
18098 prefix="$acl_save_prefix"
18099
18100 if test "X$x" = "X$element"; then
18101 haveit=yes
18102 break
18103 fi
18104 done
18105 if test -z "$haveit"; then
18106 LIBS="${LIBS}${LIBS:+ }$element"
18107 fi
18108 done
18109
18110
18111 CY_EXECUTE=1
18112
18113
18114
18115 fi
18116
18117 elif test $pkg_failed = untried; then
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119 $as_echo "no" >&6; }
18120
18121
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18123 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18124 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18125 $as_echo_n "(cached) " >&6
18126 else
18127
18128 ac_check_framework_save_LIBS=$LIBS
18129 LIBS="-framework JavaScriptCore $LIBS"
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18132
18133 #include <JavaScriptCore/JSBase.h>
18134
18135 int
18136 main ()
18137 {
18138
18139 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18140
18141 ;
18142 return 0;
18143 }
18144 _ACEOF
18145 if ac_fn_cxx_try_link "$LINENO"; then :
18146
18147 ac_cv_framework_JavaScriptCore=yes
18148
18149 else
18150 ac_cv_framework_JavaScriptCore=no
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext \
18153 conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_framework_save_LIBS
18155
18156 fi
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18158 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18159 if test $ac_cv_framework_JavaScriptCore = yes; then :
18160
18161
18162 for element in "-framework JavaScriptCore $LIBS"; do
18163 haveit=
18164 for x in $LIBS; do
18165
18166 acl_save_prefix="$prefix"
18167 prefix="$acl_final_prefix"
18168 acl_save_exec_prefix="$exec_prefix"
18169 exec_prefix="$acl_final_exec_prefix"
18170 eval x=\"$x\"
18171 exec_prefix="$acl_save_exec_prefix"
18172 prefix="$acl_save_prefix"
18173
18174 if test "X$x" = "X$element"; then
18175 haveit=yes
18176 break
18177 fi
18178 done
18179 if test -z "$haveit"; then
18180 LIBS="${LIBS}${LIBS:+ }$element"
18181 fi
18182 done
18183
18184
18185 CY_EXECUTE=1
18186
18187
18188
18189 fi
18190
18191 else
18192 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18193 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18195 $as_echo "yes" >&6; }
18196
18197 CY_EXECUTE=1
18198
18199
18200 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18201 haveit=
18202 for x in $CXXFLAGS; do
18203
18204 acl_save_prefix="$prefix"
18205 prefix="$acl_final_prefix"
18206 acl_save_exec_prefix="$exec_prefix"
18207 exec_prefix="$acl_final_exec_prefix"
18208 eval x=\"$x\"
18209 exec_prefix="$acl_save_exec_prefix"
18210 prefix="$acl_save_prefix"
18211
18212 if test "X$x" = "X$element"; then
18213 haveit=yes
18214 break
18215 fi
18216 done
18217 if test -z "$haveit"; then
18218 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18219 fi
18220 done
18221
18222
18223 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18224 haveit=
18225 for x in $LIBS; do
18226
18227 acl_save_prefix="$prefix"
18228 prefix="$acl_final_prefix"
18229 acl_save_exec_prefix="$exec_prefix"
18230 exec_prefix="$acl_final_exec_prefix"
18231 eval x=\"$x\"
18232 exec_prefix="$acl_save_exec_prefix"
18233 prefix="$acl_save_prefix"
18234
18235 if test "X$x" = "X$element"; then
18236 haveit=yes
18237 break
18238 fi
18239 done
18240 if test -z "$haveit"; then
18241 LIBS="${LIBS}${LIBS:+ }$element"
18242 fi
18243 done
18244
18245
18246 fi
18247
18248 else
18249 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18250 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18252 $as_echo "yes" >&6; }
18253
18254 CY_EXECUTE=1
18255
18256
18257 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18258 haveit=
18259 for x in $CXXFLAGS; do
18260
18261 acl_save_prefix="$prefix"
18262 prefix="$acl_final_prefix"
18263 acl_save_exec_prefix="$exec_prefix"
18264 exec_prefix="$acl_final_exec_prefix"
18265 eval x=\"$x\"
18266 exec_prefix="$acl_save_exec_prefix"
18267 prefix="$acl_save_prefix"
18268
18269 if test "X$x" = "X$element"; then
18270 haveit=yes
18271 break
18272 fi
18273 done
18274 if test -z "$haveit"; then
18275 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18276 fi
18277 done
18278
18279
18280 for element in `$PKG_CONFIG --libs webkit-1.0`; do
18281 haveit=
18282 for x in $LIBS; do
18283
18284 acl_save_prefix="$prefix"
18285 prefix="$acl_final_prefix"
18286 acl_save_exec_prefix="$exec_prefix"
18287 exec_prefix="$acl_final_exec_prefix"
18288 eval x=\"$x\"
18289 exec_prefix="$acl_save_exec_prefix"
18290 prefix="$acl_save_prefix"
18291
18292 if test "X$x" = "X$element"; then
18293 haveit=yes
18294 break
18295 fi
18296 done
18297 if test -z "$haveit"; then
18298 LIBS="${LIBS}${LIBS:+ }$element"
18299 fi
18300 done
18301
18302
18303 fi
18304 ;; #(
18305 *) :
18306 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18307 esac
18308
18309 else
18310
18311
18312
18313 pkg_failed=no
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18315 $as_echo_n "checking for WEBKIT... " >&6; }
18316
18317 if test -n "$WEBKIT_CFLAGS"; then
18318 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18319 elif test -n "$PKG_CONFIG"; then
18320 if test -n "$PKG_CONFIG" && \
18321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18322 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18323 ac_status=$?
18324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18325 test $ac_status = 0; }; then
18326 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
18327 else
18328 pkg_failed=yes
18329 fi
18330 else
18331 pkg_failed=untried
18332 fi
18333 if test -n "$WEBKIT_LIBS"; then
18334 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18335 elif test -n "$PKG_CONFIG"; then
18336 if test -n "$PKG_CONFIG" && \
18337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18338 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18339 ac_status=$?
18340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18341 test $ac_status = 0; }; then
18342 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
18343 else
18344 pkg_failed=yes
18345 fi
18346 else
18347 pkg_failed=untried
18348 fi
18349
18350
18351
18352 if test $pkg_failed = yes; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18354 $as_echo "no" >&6; }
18355
18356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18357 _pkg_short_errors_supported=yes
18358 else
18359 _pkg_short_errors_supported=no
18360 fi
18361 if test $_pkg_short_errors_supported = yes; then
18362 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
18363 else
18364 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
18365 fi
18366 # Put the nasty error message in config.log where it belongs
18367 echo "$WEBKIT_PKG_ERRORS" >&5
18368
18369
18370
18371 pkg_failed=no
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18373 $as_echo_n "checking for WEBKIT... " >&6; }
18374
18375 if test -n "$WEBKIT_CFLAGS"; then
18376 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18377 elif test -n "$PKG_CONFIG"; then
18378 if test -n "$PKG_CONFIG" && \
18379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18380 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18381 ac_status=$?
18382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18383 test $ac_status = 0; }; then
18384 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18385 else
18386 pkg_failed=yes
18387 fi
18388 else
18389 pkg_failed=untried
18390 fi
18391 if test -n "$WEBKIT_LIBS"; then
18392 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18393 elif test -n "$PKG_CONFIG"; then
18394 if test -n "$PKG_CONFIG" && \
18395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18396 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18397 ac_status=$?
18398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18399 test $ac_status = 0; }; then
18400 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18401 else
18402 pkg_failed=yes
18403 fi
18404 else
18405 pkg_failed=untried
18406 fi
18407
18408
18409
18410 if test $pkg_failed = yes; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412 $as_echo "no" >&6; }
18413
18414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18415 _pkg_short_errors_supported=yes
18416 else
18417 _pkg_short_errors_supported=no
18418 fi
18419 if test $_pkg_short_errors_supported = yes; then
18420 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18421 else
18422 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18423 fi
18424 # Put the nasty error message in config.log where it belongs
18425 echo "$WEBKIT_PKG_ERRORS" >&5
18426
18427
18428
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18430 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18431 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18432 $as_echo_n "(cached) " >&6
18433 else
18434
18435 ac_check_framework_save_LIBS=$LIBS
18436 LIBS="-framework JavaScriptCore $LIBS"
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439
18440 #include <JavaScriptCore/JSBase.h>
18441
18442 int
18443 main ()
18444 {
18445
18446 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18447
18448 ;
18449 return 0;
18450 }
18451 _ACEOF
18452 if ac_fn_cxx_try_link "$LINENO"; then :
18453
18454 ac_cv_framework_JavaScriptCore=yes
18455
18456 else
18457 ac_cv_framework_JavaScriptCore=no
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_framework_save_LIBS
18462
18463 fi
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18465 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18466 if test $ac_cv_framework_JavaScriptCore = yes; then :
18467
18468
18469 for element in "-framework JavaScriptCore $LIBS"; do
18470 haveit=
18471 for x in $LIBS; do
18472
18473 acl_save_prefix="$prefix"
18474 prefix="$acl_final_prefix"
18475 acl_save_exec_prefix="$exec_prefix"
18476 exec_prefix="$acl_final_exec_prefix"
18477 eval x=\"$x\"
18478 exec_prefix="$acl_save_exec_prefix"
18479 prefix="$acl_save_prefix"
18480
18481 if test "X$x" = "X$element"; then
18482 haveit=yes
18483 break
18484 fi
18485 done
18486 if test -z "$haveit"; then
18487 LIBS="${LIBS}${LIBS:+ }$element"
18488 fi
18489 done
18490
18491
18492 CY_EXECUTE=1
18493
18494
18495
18496 fi
18497
18498 elif test $pkg_failed = untried; then
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
18501
18502
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18504 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18505 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508
18509 ac_check_framework_save_LIBS=$LIBS
18510 LIBS="-framework JavaScriptCore $LIBS"
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513
18514 #include <JavaScriptCore/JSBase.h>
18515
18516 int
18517 main ()
18518 {
18519
18520 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18521
18522 ;
18523 return 0;
18524 }
18525 _ACEOF
18526 if ac_fn_cxx_try_link "$LINENO"; then :
18527
18528 ac_cv_framework_JavaScriptCore=yes
18529
18530 else
18531 ac_cv_framework_JavaScriptCore=no
18532 fi
18533 rm -f core conftest.err conftest.$ac_objext \
18534 conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_framework_save_LIBS
18536
18537 fi
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18539 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18540 if test $ac_cv_framework_JavaScriptCore = yes; then :
18541
18542
18543 for element in "-framework JavaScriptCore $LIBS"; do
18544 haveit=
18545 for x in $LIBS; do
18546
18547 acl_save_prefix="$prefix"
18548 prefix="$acl_final_prefix"
18549 acl_save_exec_prefix="$exec_prefix"
18550 exec_prefix="$acl_final_exec_prefix"
18551 eval x=\"$x\"
18552 exec_prefix="$acl_save_exec_prefix"
18553 prefix="$acl_save_prefix"
18554
18555 if test "X$x" = "X$element"; then
18556 haveit=yes
18557 break
18558 fi
18559 done
18560 if test -z "$haveit"; then
18561 LIBS="${LIBS}${LIBS:+ }$element"
18562 fi
18563 done
18564
18565
18566 CY_EXECUTE=1
18567
18568
18569
18570 fi
18571
18572 else
18573 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18574 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18576 $as_echo "yes" >&6; }
18577
18578 CY_EXECUTE=1
18579
18580
18581 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18582 haveit=
18583 for x in $CXXFLAGS; do
18584
18585 acl_save_prefix="$prefix"
18586 prefix="$acl_final_prefix"
18587 acl_save_exec_prefix="$exec_prefix"
18588 exec_prefix="$acl_final_exec_prefix"
18589 eval x=\"$x\"
18590 exec_prefix="$acl_save_exec_prefix"
18591 prefix="$acl_save_prefix"
18592
18593 if test "X$x" = "X$element"; then
18594 haveit=yes
18595 break
18596 fi
18597 done
18598 if test -z "$haveit"; then
18599 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18600 fi
18601 done
18602
18603
18604 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18605 haveit=
18606 for x in $LIBS; do
18607
18608 acl_save_prefix="$prefix"
18609 prefix="$acl_final_prefix"
18610 acl_save_exec_prefix="$exec_prefix"
18611 exec_prefix="$acl_final_exec_prefix"
18612 eval x=\"$x\"
18613 exec_prefix="$acl_save_exec_prefix"
18614 prefix="$acl_save_prefix"
18615
18616 if test "X$x" = "X$element"; then
18617 haveit=yes
18618 break
18619 fi
18620 done
18621 if test -z "$haveit"; then
18622 LIBS="${LIBS}${LIBS:+ }$element"
18623 fi
18624 done
18625
18626
18627 fi
18628
18629 elif test $pkg_failed = untried; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632
18633
18634 pkg_failed=no
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18636 $as_echo_n "checking for WEBKIT... " >&6; }
18637
18638 if test -n "$WEBKIT_CFLAGS"; then
18639 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18640 elif test -n "$PKG_CONFIG"; then
18641 if test -n "$PKG_CONFIG" && \
18642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18643 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18644 ac_status=$?
18645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18646 test $ac_status = 0; }; then
18647 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18648 else
18649 pkg_failed=yes
18650 fi
18651 else
18652 pkg_failed=untried
18653 fi
18654 if test -n "$WEBKIT_LIBS"; then
18655 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18656 elif test -n "$PKG_CONFIG"; then
18657 if test -n "$PKG_CONFIG" && \
18658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18659 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18660 ac_status=$?
18661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18662 test $ac_status = 0; }; then
18663 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18664 else
18665 pkg_failed=yes
18666 fi
18667 else
18668 pkg_failed=untried
18669 fi
18670
18671
18672
18673 if test $pkg_failed = yes; then
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
18676
18677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18678 _pkg_short_errors_supported=yes
18679 else
18680 _pkg_short_errors_supported=no
18681 fi
18682 if test $_pkg_short_errors_supported = yes; then
18683 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18684 else
18685 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18686 fi
18687 # Put the nasty error message in config.log where it belongs
18688 echo "$WEBKIT_PKG_ERRORS" >&5
18689
18690
18691
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18693 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18694 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18697
18698 ac_check_framework_save_LIBS=$LIBS
18699 LIBS="-framework JavaScriptCore $LIBS"
18700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h. */
18702
18703 #include <JavaScriptCore/JSBase.h>
18704
18705 int
18706 main ()
18707 {
18708
18709 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18710
18711 ;
18712 return 0;
18713 }
18714 _ACEOF
18715 if ac_fn_cxx_try_link "$LINENO"; then :
18716
18717 ac_cv_framework_JavaScriptCore=yes
18718
18719 else
18720 ac_cv_framework_JavaScriptCore=no
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_framework_save_LIBS
18725
18726 fi
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18728 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18729 if test $ac_cv_framework_JavaScriptCore = yes; then :
18730
18731
18732 for element in "-framework JavaScriptCore $LIBS"; do
18733 haveit=
18734 for x in $LIBS; do
18735
18736 acl_save_prefix="$prefix"
18737 prefix="$acl_final_prefix"
18738 acl_save_exec_prefix="$exec_prefix"
18739 exec_prefix="$acl_final_exec_prefix"
18740 eval x=\"$x\"
18741 exec_prefix="$acl_save_exec_prefix"
18742 prefix="$acl_save_prefix"
18743
18744 if test "X$x" = "X$element"; then
18745 haveit=yes
18746 break
18747 fi
18748 done
18749 if test -z "$haveit"; then
18750 LIBS="${LIBS}${LIBS:+ }$element"
18751 fi
18752 done
18753
18754
18755 CY_EXECUTE=1
18756
18757
18758
18759 fi
18760
18761 elif test $pkg_failed = untried; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18764
18765
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18767 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18768 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771
18772 ac_check_framework_save_LIBS=$LIBS
18773 LIBS="-framework JavaScriptCore $LIBS"
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776
18777 #include <JavaScriptCore/JSBase.h>
18778
18779 int
18780 main ()
18781 {
18782
18783 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18784
18785 ;
18786 return 0;
18787 }
18788 _ACEOF
18789 if ac_fn_cxx_try_link "$LINENO"; then :
18790
18791 ac_cv_framework_JavaScriptCore=yes
18792
18793 else
18794 ac_cv_framework_JavaScriptCore=no
18795 fi
18796 rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_framework_save_LIBS
18799
18800 fi
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18802 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18803 if test $ac_cv_framework_JavaScriptCore = yes; then :
18804
18805
18806 for element in "-framework JavaScriptCore $LIBS"; do
18807 haveit=
18808 for x in $LIBS; do
18809
18810 acl_save_prefix="$prefix"
18811 prefix="$acl_final_prefix"
18812 acl_save_exec_prefix="$exec_prefix"
18813 exec_prefix="$acl_final_exec_prefix"
18814 eval x=\"$x\"
18815 exec_prefix="$acl_save_exec_prefix"
18816 prefix="$acl_save_prefix"
18817
18818 if test "X$x" = "X$element"; then
18819 haveit=yes
18820 break
18821 fi
18822 done
18823 if test -z "$haveit"; then
18824 LIBS="${LIBS}${LIBS:+ }$element"
18825 fi
18826 done
18827
18828
18829 CY_EXECUTE=1
18830
18831
18832
18833 fi
18834
18835 else
18836 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18837 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839 $as_echo "yes" >&6; }
18840
18841 CY_EXECUTE=1
18842
18843
18844 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18845 haveit=
18846 for x in $CXXFLAGS; do
18847
18848 acl_save_prefix="$prefix"
18849 prefix="$acl_final_prefix"
18850 acl_save_exec_prefix="$exec_prefix"
18851 exec_prefix="$acl_final_exec_prefix"
18852 eval x=\"$x\"
18853 exec_prefix="$acl_save_exec_prefix"
18854 prefix="$acl_save_prefix"
18855
18856 if test "X$x" = "X$element"; then
18857 haveit=yes
18858 break
18859 fi
18860 done
18861 if test -z "$haveit"; then
18862 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18863 fi
18864 done
18865
18866
18867 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18868 haveit=
18869 for x in $LIBS; do
18870
18871 acl_save_prefix="$prefix"
18872 prefix="$acl_final_prefix"
18873 acl_save_exec_prefix="$exec_prefix"
18874 exec_prefix="$acl_final_exec_prefix"
18875 eval x=\"$x\"
18876 exec_prefix="$acl_save_exec_prefix"
18877 prefix="$acl_save_prefix"
18878
18879 if test "X$x" = "X$element"; then
18880 haveit=yes
18881 break
18882 fi
18883 done
18884 if test -z "$haveit"; then
18885 LIBS="${LIBS}${LIBS:+ }$element"
18886 fi
18887 done
18888
18889
18890 fi
18891
18892 else
18893 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18894 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18896 $as_echo "yes" >&6; }
18897
18898 CY_EXECUTE=1
18899
18900
18901 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18902 haveit=
18903 for x in $CXXFLAGS; do
18904
18905 acl_save_prefix="$prefix"
18906 prefix="$acl_final_prefix"
18907 acl_save_exec_prefix="$exec_prefix"
18908 exec_prefix="$acl_final_exec_prefix"
18909 eval x=\"$x\"
18910 exec_prefix="$acl_save_exec_prefix"
18911 prefix="$acl_save_prefix"
18912
18913 if test "X$x" = "X$element"; then
18914 haveit=yes
18915 break
18916 fi
18917 done
18918 if test -z "$haveit"; then
18919 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18920 fi
18921 done
18922
18923
18924 for element in `$PKG_CONFIG --libs webkit-1.0`; do
18925 haveit=
18926 for x in $LIBS; do
18927
18928 acl_save_prefix="$prefix"
18929 prefix="$acl_final_prefix"
18930 acl_save_exec_prefix="$exec_prefix"
18931 exec_prefix="$acl_final_exec_prefix"
18932 eval x=\"$x\"
18933 exec_prefix="$acl_save_exec_prefix"
18934 prefix="$acl_save_prefix"
18935
18936 if test "X$x" = "X$element"; then
18937 haveit=yes
18938 break
18939 fi
18940 done
18941 if test -z "$haveit"; then
18942 LIBS="${LIBS}${LIBS:+ }$element"
18943 fi
18944 done
18945
18946
18947 fi
18948
18949 fi
18950
18951
18952
18953 apr_found="no"
18954
18955 if test "$target_os" = "os2-emx"; then
18956 # Scripts don't pass test -x on OS/2
18957 TEST_X="test -f"
18958 else
18959 TEST_X="test -x"
18960 fi
18961
18962 acceptable_majors="1"
18963
18964 apr_temp_acceptable_apr_config=""
18965 for apr_temp_major in $acceptable_majors
18966 do
18967 case $apr_temp_major in
18968 0)
18969 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
18970 ;;
18971 *)
18972 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
18973 ;;
18974 esac
18975 done
18976
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
18978 $as_echo_n "checking for APR... " >&6; }
18979
18980 # Check whether --with-apr was given.
18981 if test "${with_apr+set}" = set; then :
18982 withval=$with_apr;
18983 if test "$withval" = "no" || test "$withval" = "yes"; then
18984 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
18985 fi
18986
18987 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18988 do
18989 for lookdir in "$withval/bin" "$withval"
18990 do
18991 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
18992 apr_config="$lookdir/$apr_temp_apr_config_file"
18993
18994 apr_found="yes"
18995 break 2
18996 fi
18997 done
18998 done
18999
19000 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19001 apr_config="$withval"
19002 apr_found="yes"
19003 fi
19004
19005 if test "$apr_found" != "yes"; then
19006 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
19007 fi
19008
19009 else
19010
19011 if test -n "1" && test "1" = "1"; then
19012 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19013 do
19014 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19015 apr_config="$apr_temp_apr_config_file"
19016
19017 apr_found="yes"
19018 break
19019 else
19020 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19021 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19022 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19023
19024 apr_found="yes"
19025 break 2
19026 fi
19027 done
19028 fi
19029 done
19030 fi
19031 if test "$apr_found" = "no" && test -d ""; then
19032 apr_temp_abs_srcdir="`cd && pwd`"
19033 apr_found="reconfig"
19034 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19035 case $apr_bundled_major in
19036 "")
19037 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19038 ;;
19039 0)
19040 apr_temp_apr_config_file="apr-config"
19041 ;;
19042 *)
19043 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19044 ;;
19045 esac
19046 if test -n ""; then
19047 apr_config="/$apr_temp_apr_config_file"
19048 else
19049 apr_config="/$apr_temp_apr_config_file"
19050 fi
19051 fi
19052
19053 fi
19054
19055
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19057 $as_echo "$apr_found" >&6; }
19058
19059 case $apr_found in #(
19060 yes) :
19061
19062
19063 for element in `$apr_config --includes`; do
19064 haveit=
19065 for x in $CPPFLAGS; do
19066
19067 acl_save_prefix="$prefix"
19068 prefix="$acl_final_prefix"
19069 acl_save_exec_prefix="$exec_prefix"
19070 exec_prefix="$acl_final_exec_prefix"
19071 eval x=\"$x\"
19072 exec_prefix="$acl_save_exec_prefix"
19073 prefix="$acl_save_prefix"
19074
19075 if test "X$x" = "X$element"; then
19076 haveit=yes
19077 break
19078 fi
19079 done
19080 if test -z "$haveit"; then
19081 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19082 fi
19083 done
19084
19085 LTLIBAPR=`$apr_config --link-libtool`
19086
19087 ;; #(
19088 *) :
19089 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19090 esac
19091
19092
19093
19094
19095
19096 case $CY_EXECUTE in #(
19097 1) :
19098
19099 for ac_header in ffi.h ffi/ffi.h
19100 do :
19101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19102 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19104 cat >>confdefs.h <<_ACEOF
19105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19106 _ACEOF
19107 break
19108 fi
19109
19110 done
19111
19112 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19113
19114
19115
19116 pkg_failed=no
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19118 $as_echo_n "checking for LIBFFI... " >&6; }
19119
19120 if test -n "$LIBFFI_CFLAGS"; then
19121 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19122 elif test -n "$PKG_CONFIG"; then
19123 if test -n "$PKG_CONFIG" && \
19124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19125 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19126 ac_status=$?
19127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19128 test $ac_status = 0; }; then
19129 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19130 else
19131 pkg_failed=yes
19132 fi
19133 else
19134 pkg_failed=untried
19135 fi
19136 if test -n "$LIBFFI_LIBS"; then
19137 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19138 elif test -n "$PKG_CONFIG"; then
19139 if test -n "$PKG_CONFIG" && \
19140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19141 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19142 ac_status=$?
19143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19144 test $ac_status = 0; }; then
19145 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19146 else
19147 pkg_failed=yes
19148 fi
19149 else
19150 pkg_failed=untried
19151 fi
19152
19153
19154
19155 if test $pkg_failed = yes; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19157 $as_echo "no" >&6; }
19158
19159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19160 _pkg_short_errors_supported=yes
19161 else
19162 _pkg_short_errors_supported=no
19163 fi
19164 if test $_pkg_short_errors_supported = yes; then
19165 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19166 else
19167 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19168 fi
19169 # Put the nasty error message in config.log where it belongs
19170 echo "$LIBFFI_PKG_ERRORS" >&5
19171
19172 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19173 elif test $pkg_failed = untried; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19176 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19177 else
19178 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19179 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19181 $as_echo "yes" >&6; }
19182
19183
19184 for element in `$PKG_CONFIG --cflags libffi`; do
19185 haveit=
19186 for x in $CXXFLAGS; do
19187
19188 acl_save_prefix="$prefix"
19189 prefix="$acl_final_prefix"
19190 acl_save_exec_prefix="$exec_prefix"
19191 exec_prefix="$acl_final_exec_prefix"
19192 eval x=\"$x\"
19193 exec_prefix="$acl_save_exec_prefix"
19194 prefix="$acl_save_prefix"
19195
19196 if test "X$x" = "X$element"; then
19197 haveit=yes
19198 break
19199 fi
19200 done
19201 if test -z "$haveit"; then
19202 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19203 fi
19204 done
19205
19206
19207 for element in `$PKG_CONFIG --libs libffi`; do
19208 haveit=
19209 for x in $LIBS; do
19210
19211 acl_save_prefix="$prefix"
19212 prefix="$acl_final_prefix"
19213 acl_save_exec_prefix="$exec_prefix"
19214 exec_prefix="$acl_final_exec_prefix"
19215 eval x=\"$x\"
19216 exec_prefix="$acl_save_exec_prefix"
19217 prefix="$acl_save_prefix"
19218
19219 if test "X$x" = "X$element"; then
19220 haveit=yes
19221 break
19222 fi
19223 done
19224 if test -z "$haveit"; then
19225 LIBS="${LIBS}${LIBS:+ }$element"
19226 fi
19227 done
19228
19229
19230 fi
19231
19232 else
19233
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19235 $as_echo_n "checking for library containing ffi_call... " >&6; }
19236 if ${ac_cv_search_ffi_call+:} false; then :
19237 $as_echo_n "(cached) " >&6
19238 else
19239 ac_func_search_save_LIBS=$LIBS
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242
19243 /* Override any GCC internal prototype to avoid an error.
19244 Use char because int might match the return type of a GCC
19245 builtin and then its argument prototype would still apply. */
19246 #ifdef __cplusplus
19247 extern "C"
19248 #endif
19249 char ffi_call ();
19250 int
19251 main ()
19252 {
19253 return ffi_call ();
19254 ;
19255 return 0;
19256 }
19257 _ACEOF
19258 for ac_lib in '' ffi; do
19259 if test -z "$ac_lib"; then
19260 ac_res="none required"
19261 else
19262 ac_res=-l$ac_lib
19263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19264 fi
19265 if ac_fn_cxx_try_link "$LINENO"; then :
19266 ac_cv_search_ffi_call=$ac_res
19267 fi
19268 rm -f core conftest.err conftest.$ac_objext \
19269 conftest$ac_exeext
19270 if ${ac_cv_search_ffi_call+:} false; then :
19271 break
19272 fi
19273 done
19274 if ${ac_cv_search_ffi_call+:} false; then :
19275
19276 else
19277 ac_cv_search_ffi_call=no
19278 fi
19279 rm conftest.$ac_ext
19280 LIBS=$ac_func_search_save_LIBS
19281 fi
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19283 $as_echo "$ac_cv_search_ffi_call" >&6; }
19284 ac_res=$ac_cv_search_ffi_call
19285 if test "$ac_res" != no; then :
19286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19287
19288 fi
19289
19290 case $ac_cv_search_ffi_call in #(
19291 no) :
19292
19293
19294 pkg_failed=no
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19296 $as_echo_n "checking for LIBFFI... " >&6; }
19297
19298 if test -n "$LIBFFI_CFLAGS"; then
19299 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19300 elif test -n "$PKG_CONFIG"; then
19301 if test -n "$PKG_CONFIG" && \
19302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19303 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19304 ac_status=$?
19305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19306 test $ac_status = 0; }; then
19307 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19308 else
19309 pkg_failed=yes
19310 fi
19311 else
19312 pkg_failed=untried
19313 fi
19314 if test -n "$LIBFFI_LIBS"; then
19315 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19316 elif test -n "$PKG_CONFIG"; then
19317 if test -n "$PKG_CONFIG" && \
19318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19319 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19320 ac_status=$?
19321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19322 test $ac_status = 0; }; then
19323 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19324 else
19325 pkg_failed=yes
19326 fi
19327 else
19328 pkg_failed=untried
19329 fi
19330
19331
19332
19333 if test $pkg_failed = yes; then
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335 $as_echo "no" >&6; }
19336
19337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19338 _pkg_short_errors_supported=yes
19339 else
19340 _pkg_short_errors_supported=no
19341 fi
19342 if test $_pkg_short_errors_supported = yes; then
19343 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19344 else
19345 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19346 fi
19347 # Put the nasty error message in config.log where it belongs
19348 echo "$LIBFFI_PKG_ERRORS" >&5
19349
19350 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19351 elif test $pkg_failed = untried; then
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353 $as_echo "no" >&6; }
19354 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19355 else
19356 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19357 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19359 $as_echo "yes" >&6; }
19360
19361
19362 for element in `$PKG_CONFIG --cflags libffi`; do
19363 haveit=
19364 for x in $CXXFLAGS; do
19365
19366 acl_save_prefix="$prefix"
19367 prefix="$acl_final_prefix"
19368 acl_save_exec_prefix="$exec_prefix"
19369 exec_prefix="$acl_final_exec_prefix"
19370 eval x=\"$x\"
19371 exec_prefix="$acl_save_exec_prefix"
19372 prefix="$acl_save_prefix"
19373
19374 if test "X$x" = "X$element"; then
19375 haveit=yes
19376 break
19377 fi
19378 done
19379 if test -z "$haveit"; then
19380 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19381 fi
19382 done
19383
19384
19385 for element in `$PKG_CONFIG --libs libffi`; do
19386 haveit=
19387 for x in $LIBS; do
19388
19389 acl_save_prefix="$prefix"
19390 prefix="$acl_final_prefix"
19391 acl_save_exec_prefix="$exec_prefix"
19392 exec_prefix="$acl_final_exec_prefix"
19393 eval x=\"$x\"
19394 exec_prefix="$acl_save_exec_prefix"
19395 prefix="$acl_save_prefix"
19396
19397 if test "X$x" = "X$element"; then
19398 haveit=yes
19399 break
19400 fi
19401 done
19402 if test -z "$haveit"; then
19403 LIBS="${LIBS}${LIBS:+ }$element"
19404 fi
19405 done
19406
19407
19408 fi ;; #(
19409 *) :
19410 ;;
19411 esac
19412
19413 fi
19414
19415 ac_ext=mm
19416 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19417 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19418 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19419 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19420
19421
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19423 $as_echo_n "checking if we really have Objective C++... " >&6; }
19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19426
19427 _ACEOF
19428 if ac_fn_objcxx_try_compile "$LINENO"; then :
19429
19430 CY_OBJECTIVEC=1
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19432 $as_echo "yes" >&6; }
19433
19434 else
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436 $as_echo "no" >&6; }
19437 fi
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439
19440 if test "x$CY_OBJECTIVEC" = x1; then :
19441
19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19444 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19445 if ${ac_cv_framework_CoreFoundation+:} false; then :
19446 $as_echo_n "(cached) " >&6
19447 else
19448
19449 ac_check_framework_save_LIBS=$LIBS
19450 LIBS="-framework CoreFoundation $LIBS"
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453
19454 #include <CoreFoundation/CFBase.h>
19455
19456 int
19457 main ()
19458 {
19459 CFAllocatorGetDefault();
19460 ;
19461 return 0;
19462 }
19463 _ACEOF
19464 if ac_fn_objcxx_try_link "$LINENO"; then :
19465
19466 ac_cv_framework_CoreFoundation=yes
19467
19468 else
19469 ac_cv_framework_CoreFoundation=no
19470 fi
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_framework_save_LIBS
19474
19475 fi
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19477 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19478 if test $ac_cv_framework_CoreFoundation = yes; then :
19479
19480
19481 for element in "-framework CoreFoundation $LIBS"; do
19482 haveit=
19483 for x in $LIBS; do
19484
19485 acl_save_prefix="$prefix"
19486 prefix="$acl_final_prefix"
19487 acl_save_exec_prefix="$exec_prefix"
19488 exec_prefix="$acl_final_exec_prefix"
19489 eval x=\"$x\"
19490 exec_prefix="$acl_save_exec_prefix"
19491 prefix="$acl_save_prefix"
19492
19493 if test "X$x" = "X$element"; then
19494 haveit=yes
19495 break
19496 fi
19497 done
19498 if test -z "$haveit"; then
19499 LIBS="${LIBS}${LIBS:+ }$element"
19500 fi
19501 done
19502
19503
19504
19505
19506
19507
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19509 $as_echo_n "checking for framework Foundation... " >&6; }
19510 if ${ac_cv_framework_Foundation+:} false; then :
19511 $as_echo_n "(cached) " >&6
19512 else
19513
19514 ac_check_framework_save_LIBS=$LIBS
19515 LIBS="-framework Foundation $LIBS"
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19518
19519 #include <Foundation/NSObject.h>
19520
19521 int
19522 main ()
19523 {
19524 [[NSObject alloc] init];
19525 ;
19526 return 0;
19527 }
19528 _ACEOF
19529 if ac_fn_objcxx_try_link "$LINENO"; then :
19530
19531 ac_cv_framework_Foundation=yes
19532
19533 else
19534 ac_cv_framework_Foundation=no
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_framework_save_LIBS
19539
19540 fi
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19542 $as_echo "$ac_cv_framework_Foundation" >&6; }
19543 if test $ac_cv_framework_Foundation = yes; then :
19544
19545
19546 for element in "-framework Foundation $LIBS"; do
19547 haveit=
19548 for x in $LIBS; do
19549
19550 acl_save_prefix="$prefix"
19551 prefix="$acl_final_prefix"
19552 acl_save_exec_prefix="$exec_prefix"
19553 exec_prefix="$acl_final_exec_prefix"
19554 eval x=\"$x\"
19555 exec_prefix="$acl_save_exec_prefix"
19556 prefix="$acl_save_prefix"
19557
19558 if test "X$x" = "X$element"; then
19559 haveit=yes
19560 break
19561 fi
19562 done
19563 if test -z "$haveit"; then
19564 LIBS="${LIBS}${LIBS:+ }$element"
19565 fi
19566 done
19567
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_FRAMEWORK_FOUNDATION 1
19570 _ACEOF
19571
19572
19573 fi
19574
19575
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19578 $as_echo_n "checking for framework WebKit... " >&6; }
19579 if ${ac_cv_framework_WebKit+:} false; then :
19580 $as_echo_n "(cached) " >&6
19581 else
19582
19583 ac_check_framework_save_LIBS=$LIBS
19584 LIBS="-framework WebKit $LIBS"
19585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19587
19588 #include <WebKit/WebScriptObject.h>
19589
19590 int
19591 main ()
19592 {
19593 [[WebScriptObject alloc] init];
19594 ;
19595 return 0;
19596 }
19597 _ACEOF
19598 if ac_fn_objcxx_try_link "$LINENO"; then :
19599
19600 ac_cv_framework_WebKit=yes
19601
19602 else
19603 ac_cv_framework_WebKit=no
19604 fi
19605 rm -f core conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_framework_save_LIBS
19608
19609 fi
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19611 $as_echo "$ac_cv_framework_WebKit" >&6; }
19612 if test $ac_cv_framework_WebKit = yes; then :
19613
19614
19615 for element in "-framework WebKit $LIBS"; do
19616 haveit=
19617 for x in $LIBS; do
19618
19619 acl_save_prefix="$prefix"
19620 prefix="$acl_final_prefix"
19621 acl_save_exec_prefix="$exec_prefix"
19622 exec_prefix="$acl_final_exec_prefix"
19623 eval x=\"$x\"
19624 exec_prefix="$acl_save_exec_prefix"
19625 prefix="$acl_save_prefix"
19626
19627 if test "X$x" = "X$element"; then
19628 haveit=yes
19629 break
19630 fi
19631 done
19632 if test -z "$haveit"; then
19633 LIBS="${LIBS}${LIBS:+ }$element"
19634 fi
19635 done
19636
19637 cat >>confdefs.h <<_ACEOF
19638 #define HAVE_FRAMEWORK_WEBKIT 1
19639 _ACEOF
19640
19641
19642 fi
19643
19644
19645 else
19646
19647
19648 for ac_prog in gnustep-config
19649 do
19650 # Extract the first word of "$ac_prog", so it can be a program name with args.
19651 set dummy $ac_prog; ac_word=$2
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19653 $as_echo_n "checking for $ac_word... " >&6; }
19654 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19655 $as_echo_n "(cached) " >&6
19656 else
19657 if test -n "$GNUSTEP_CONFIG"; then
19658 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19659 else
19660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661 for as_dir in $PATH
19662 do
19663 IFS=$as_save_IFS
19664 test -z "$as_dir" && as_dir=.
19665 for ac_exec_ext in '' $ac_executable_extensions; do
19666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19667 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19669 break 2
19670 fi
19671 done
19672 done
19673 IFS=$as_save_IFS
19674
19675 fi
19676 fi
19677 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19678 if test -n "$GNUSTEP_CONFIG"; then
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19680 $as_echo "$GNUSTEP_CONFIG" >&6; }
19681 else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683 $as_echo "no" >&6; }
19684 fi
19685
19686
19687 test -n "$GNUSTEP_CONFIG" && break
19688 done
19689
19690
19691 if test "x$GNUSTEP_CONFIG" != x; then :
19692
19693
19694
19695 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19696 haveit=
19697 for x in $OBJCXXFLAGS; do
19698
19699 acl_save_prefix="$prefix"
19700 prefix="$acl_final_prefix"
19701 acl_save_exec_prefix="$exec_prefix"
19702 exec_prefix="$acl_final_exec_prefix"
19703 eval x=\"$x\"
19704 exec_prefix="$acl_save_exec_prefix"
19705 prefix="$acl_save_prefix"
19706
19707 if test "X$x" = "X$element"; then
19708 haveit=yes
19709 break
19710 fi
19711 done
19712 if test -z "$haveit"; then
19713 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19714 fi
19715 done
19716
19717
19718 for element in `$GNUSTEP_CONFIG --base-libs`; do
19719 haveit=
19720 for x in $LIBS; do
19721
19722 acl_save_prefix="$prefix"
19723 prefix="$acl_final_prefix"
19724 acl_save_exec_prefix="$exec_prefix"
19725 exec_prefix="$acl_final_exec_prefix"
19726 eval x=\"$x\"
19727 exec_prefix="$acl_save_exec_prefix"
19728 prefix="$acl_save_prefix"
19729
19730 if test "X$x" = "X$element"; then
19731 haveit=yes
19732 break
19733 fi
19734 done
19735 if test -z "$haveit"; then
19736 LIBS="${LIBS}${LIBS:+ }$element"
19737 fi
19738 done
19739
19740
19741 else
19742 CY_OBJECTIVEC=0
19743
19744 fi
19745
19746 fi
19747
19748 fi
19749
19750 ac_ext=cpp
19751 ac_cpp='$CXXCPP $CPPFLAGS'
19752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19755
19756 ;; #(
19757 *) :
19758 ;;
19759 esac
19760
19761
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19763 $as_echo_n "checking for a readline compatible library... " >&6; }
19764 if ${ax_cv_lib_readline+:} false; then :
19765 $as_echo_n "(cached) " >&6
19766 else
19767
19768 ORIG_LIBS="$LIBS"
19769 for readline_lib in readline edit editline; do
19770 for termcap_lib in "" termcap curses ncurses; do
19771 if test -z "$termcap_lib"; then
19772 TRY_LIB="-l$readline_lib"
19773 else
19774 TRY_LIB="-l$readline_lib -l$termcap_lib"
19775 fi
19776 LIBS="$ORIG_LIBS $TRY_LIB"
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char readline ();
19787 int
19788 main ()
19789 {
19790 return readline ();
19791 ;
19792 return 0;
19793 }
19794 _ACEOF
19795 if ac_fn_cxx_try_link "$LINENO"; then :
19796 ax_cv_lib_readline="$TRY_LIB"
19797 fi
19798 rm -f core conftest.err conftest.$ac_objext \
19799 conftest$ac_exeext conftest.$ac_ext
19800 if test -n "$ax_cv_lib_readline"; then
19801 break
19802 fi
19803 done
19804 if test -n "$ax_cv_lib_readline"; then
19805 break
19806 fi
19807 done
19808 if test -z "$ax_cv_lib_readline"; then
19809 ax_cv_lib_readline="no"
19810 fi
19811 LIBS="$ORIG_LIBS"
19812
19813 fi
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19815 $as_echo "$ax_cv_lib_readline" >&6; }
19816
19817 if test "$ax_cv_lib_readline" != "no"; then
19818 LIBS="$LIBS $ax_cv_lib_readline"
19819
19820 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19821
19822 for ac_header in readline.h readline/readline.h
19823 do :
19824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19825 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19827 cat >>confdefs.h <<_ACEOF
19828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19829 _ACEOF
19830
19831 fi
19832
19833 done
19834
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19836 $as_echo_n "checking whether readline supports history... " >&6; }
19837 if ${ax_cv_lib_readline_history+:} false; then :
19838 $as_echo_n "(cached) " >&6
19839 else
19840
19841 ax_cv_lib_readline_history="no"
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19844
19845 /* Override any GCC internal prototype to avoid an error.
19846 Use char because int might match the return type of a GCC
19847 builtin and then its argument prototype would still apply. */
19848 #ifdef __cplusplus
19849 extern "C"
19850 #endif
19851 char add_history ();
19852 int
19853 main ()
19854 {
19855 return add_history ();
19856 ;
19857 return 0;
19858 }
19859 _ACEOF
19860 if ac_fn_cxx_try_link "$LINENO"; then :
19861 ax_cv_lib_readline_history="yes"
19862 fi
19863 rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19865
19866 fi
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19868 $as_echo "$ax_cv_lib_readline_history" >&6; }
19869 if test "$ax_cv_lib_readline_history" = "yes"; then
19870
19871 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
19872
19873 for ac_header in history.h readline/history.h
19874 do :
19875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19876 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19878 cat >>confdefs.h <<_ACEOF
19879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19880 _ACEOF
19881
19882 fi
19883
19884 done
19885
19886 fi
19887 fi
19888
19889 case $vl_cv_lib_readline in #(
19890 no) :
19891 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19892 *) :
19893 ;;
19894 esac
19895
19896 ac_ext=c
19897 ac_cpp='$CPP $CPPFLAGS'
19898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901
19902
19903 if test "X$prefix" = "XNONE"; then
19904 acl_final_prefix="$ac_default_prefix"
19905 else
19906 acl_final_prefix="$prefix"
19907 fi
19908 if test "X$exec_prefix" = "XNONE"; then
19909 acl_final_exec_prefix='${prefix}'
19910 else
19911 acl_final_exec_prefix="$exec_prefix"
19912 fi
19913 acl_save_prefix="$prefix"
19914 prefix="$acl_final_prefix"
19915 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19916 prefix="$acl_save_prefix"
19917
19918
19919
19920 # Check whether --with-gnu-ld was given.
19921 if test "${with_gnu_ld+set}" = set; then :
19922 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19923 else
19924 with_gnu_ld=no
19925 fi
19926
19927 # Prepare PATH_SEPARATOR.
19928 # The user is always right.
19929 if test "${PATH_SEPARATOR+set}" != set; then
19930 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19931 # contains only /bin. Note that ksh looks also at the FPATH variable,
19932 # so we have to set that as well for the test.
19933 PATH_SEPARATOR=:
19934 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19935 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19936 || PATH_SEPARATOR=';'
19937 }
19938 fi
19939
19940 ac_prog=ld
19941 if test "$GCC" = yes; then
19942 # Check if gcc -print-prog-name=ld gives a path.
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19944 $as_echo_n "checking for ld used by $CC... " >&6; }
19945 case $host in
19946 *-*-mingw*)
19947 # gcc leaves a trailing carriage return which upsets mingw
19948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19949 *)
19950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19951 esac
19952 case $ac_prog in
19953 # Accept absolute paths.
19954 [\\/]* | ?:[\\/]*)
19955 re_direlt='/[^/][^/]*/\.\./'
19956 # Canonicalize the pathname of ld
19957 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
19958 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
19959 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19960 done
19961 test -z "$LD" && LD="$ac_prog"
19962 ;;
19963 "")
19964 # If it fails, then pretend we aren't using GCC.
19965 ac_prog=ld
19966 ;;
19967 *)
19968 # If it is relative, then search for the first ld in PATH.
19969 with_gnu_ld=unknown
19970 ;;
19971 esac
19972 elif test "$with_gnu_ld" = yes; then
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19974 $as_echo_n "checking for GNU ld... " >&6; }
19975 else
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19977 $as_echo_n "checking for non-GNU ld... " >&6; }
19978 fi
19979 if ${acl_cv_path_LD+:} false; then :
19980 $as_echo_n "(cached) " >&6
19981 else
19982 if test -z "$LD"; then
19983 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19984 for ac_dir in $PATH; do
19985 IFS="$acl_save_ifs"
19986 test -z "$ac_dir" && ac_dir=.
19987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19988 acl_cv_path_LD="$ac_dir/$ac_prog"
19989 # Check to see if the program is GNU ld. I'd rather use --version,
19990 # but apparently some variants of GNU ld only accept -v.
19991 # Break only if it was the GNU/non-GNU ld that we prefer.
19992 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
19993 *GNU* | *'with BFD'*)
19994 test "$with_gnu_ld" != no && break
19995 ;;
19996 *)
19997 test "$with_gnu_ld" != yes && break
19998 ;;
19999 esac
20000 fi
20001 done
20002 IFS="$acl_save_ifs"
20003 else
20004 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20005 fi
20006 fi
20007
20008 LD="$acl_cv_path_LD"
20009 if test -n "$LD"; then
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20011 $as_echo "$LD" >&6; }
20012 else
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20014 $as_echo "no" >&6; }
20015 fi
20016 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20018 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20019 if ${acl_cv_prog_gnu_ld+:} false; then :
20020 $as_echo_n "(cached) " >&6
20021 else
20022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20023 case `$LD -v 2>&1 </dev/null` in
20024 *GNU* | *'with BFD'*)
20025 acl_cv_prog_gnu_ld=yes
20026 ;;
20027 *)
20028 acl_cv_prog_gnu_ld=no
20029 ;;
20030 esac
20031 fi
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20033 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20034 with_gnu_ld=$acl_cv_prog_gnu_ld
20035
20036
20037
20038
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20040 $as_echo_n "checking for shared library run path origin... " >&6; }
20041 if ${acl_cv_rpath+:} false; then :
20042 $as_echo_n "(cached) " >&6
20043 else
20044
20045 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20046 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20047 . ./conftest.sh
20048 rm -f ./conftest.sh
20049 acl_cv_rpath=done
20050
20051 fi
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20053 $as_echo "$acl_cv_rpath" >&6; }
20054 wl="$acl_cv_wl"
20055 acl_libext="$acl_cv_libext"
20056 acl_shlibext="$acl_cv_shlibext"
20057 acl_libname_spec="$acl_cv_libname_spec"
20058 acl_library_names_spec="$acl_cv_library_names_spec"
20059 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20060 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20061 acl_hardcode_direct="$acl_cv_hardcode_direct"
20062 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20063 # Check whether --enable-rpath was given.
20064 if test "${enable_rpath+set}" = set; then :
20065 enableval=$enable_rpath; :
20066 else
20067 enable_rpath=yes
20068 fi
20069
20070
20071
20072
20073 acl_libdirstem=lib
20074 acl_libdirstem2=
20075 case "$host_os" in
20076 solaris*)
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20078 $as_echo_n "checking for 64-bit host... " >&6; }
20079 if ${gl_cv_solaris_64bit+:} false; then :
20080 $as_echo_n "(cached) " >&6
20081 else
20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20084
20085 #ifdef _LP64
20086 sixtyfour bits
20087 #endif
20088
20089 _ACEOF
20090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20091 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
20092 gl_cv_solaris_64bit=yes
20093 else
20094 gl_cv_solaris_64bit=no
20095 fi
20096 rm -f conftest*
20097
20098
20099 fi
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20101 $as_echo "$gl_cv_solaris_64bit" >&6; }
20102 if test $gl_cv_solaris_64bit = yes; then
20103 acl_libdirstem=lib/64
20104 case "$host_cpu" in
20105 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20106 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
20107 esac
20108 fi
20109 ;;
20110 *)
20111 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20112 if test -n "$searchpath"; then
20113 acl_save_IFS="${IFS= }"; IFS=":"
20114 for searchdir in $searchpath; do
20115 if test -d "$searchdir"; then
20116 case "$searchdir" in
20117 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20118 */../ | */.. )
20119 # Better ignore directories of this form. They are misleading.
20120 ;;
20121 *) searchdir=`cd "$searchdir" && pwd`
20122 case "$searchdir" in
20123 */lib64 ) acl_libdirstem=lib64 ;;
20124 esac ;;
20125 esac
20126 fi
20127 done
20128 IFS="$acl_save_IFS"
20129 fi
20130 ;;
20131 esac
20132 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145 use_additional=yes
20146
20147 acl_save_prefix="$prefix"
20148 prefix="$acl_final_prefix"
20149 acl_save_exec_prefix="$exec_prefix"
20150 exec_prefix="$acl_final_exec_prefix"
20151
20152 eval additional_includedir=\"$includedir\"
20153 eval additional_libdir=\"$libdir\"
20154
20155 exec_prefix="$acl_save_exec_prefix"
20156 prefix="$acl_save_prefix"
20157
20158
20159 # Check whether --with-libiconv-prefix was given.
20160 if test "${with_libiconv_prefix+set}" = set; then :
20161 withval=$with_libiconv_prefix;
20162 if test "X$withval" = "Xno"; then
20163 use_additional=no
20164 else
20165 if test "X$withval" = "X"; then
20166
20167 acl_save_prefix="$prefix"
20168 prefix="$acl_final_prefix"
20169 acl_save_exec_prefix="$exec_prefix"
20170 exec_prefix="$acl_final_exec_prefix"
20171
20172 eval additional_includedir=\"$includedir\"
20173 eval additional_libdir=\"$libdir\"
20174
20175 exec_prefix="$acl_save_exec_prefix"
20176 prefix="$acl_save_prefix"
20177
20178 else
20179 additional_includedir="$withval/include"
20180 additional_libdir="$withval/$acl_libdirstem"
20181 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20182 && ! test -d "$withval/$acl_libdirstem"; then
20183 additional_libdir="$withval/$acl_libdirstem2"
20184 fi
20185 fi
20186 fi
20187
20188 fi
20189
20190 LIBICONV=
20191 LTLIBICONV=
20192 INCICONV=
20193 LIBICONV_PREFIX=
20194 HAVE_LIBICONV=
20195 rpathdirs=
20196 ltrpathdirs=
20197 names_already_handled=
20198 names_next_round='iconv '
20199 while test -n "$names_next_round"; do
20200 names_this_round="$names_next_round"
20201 names_next_round=
20202 for name in $names_this_round; do
20203 already_handled=
20204 for n in $names_already_handled; do
20205 if test "$n" = "$name"; then
20206 already_handled=yes
20207 break
20208 fi
20209 done
20210 if test -z "$already_handled"; then
20211 names_already_handled="$names_already_handled $name"
20212 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20213 eval value=\"\$HAVE_LIB$uppername\"
20214 if test -n "$value"; then
20215 if test "$value" = yes; then
20216 eval value=\"\$LIB$uppername\"
20217 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20218 eval value=\"\$LTLIB$uppername\"
20219 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20220 else
20221 :
20222 fi
20223 else
20224 found_dir=
20225 found_la=
20226 found_so=
20227 found_a=
20228 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20229 if test -n "$acl_shlibext"; then
20230 shrext=".$acl_shlibext" # typically: shrext=.so
20231 else
20232 shrext=
20233 fi
20234 if test $use_additional = yes; then
20235 dir="$additional_libdir"
20236 if test -n "$acl_shlibext"; then
20237 if test -f "$dir/$libname$shrext"; then
20238 found_dir="$dir"
20239 found_so="$dir/$libname$shrext"
20240 else
20241 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20242 ver=`(cd "$dir" && \
20243 for f in "$libname$shrext".*; do echo "$f"; done \
20244 | sed -e "s,^$libname$shrext\\\\.,," \
20245 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20246 | sed 1q ) 2>/dev/null`
20247 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20248 found_dir="$dir"
20249 found_so="$dir/$libname$shrext.$ver"
20250 fi
20251 else
20252 eval library_names=\"$acl_library_names_spec\"
20253 for f in $library_names; do
20254 if test -f "$dir/$f"; then
20255 found_dir="$dir"
20256 found_so="$dir/$f"
20257 break
20258 fi
20259 done
20260 fi
20261 fi
20262 fi
20263 if test "X$found_dir" = "X"; then
20264 if test -f "$dir/$libname.$acl_libext"; then
20265 found_dir="$dir"
20266 found_a="$dir/$libname.$acl_libext"
20267 fi
20268 fi
20269 if test "X$found_dir" != "X"; then
20270 if test -f "$dir/$libname.la"; then
20271 found_la="$dir/$libname.la"
20272 fi
20273 fi
20274 fi
20275 if test "X$found_dir" = "X"; then
20276 for x in $LDFLAGS $LTLIBICONV; do
20277
20278 acl_save_prefix="$prefix"
20279 prefix="$acl_final_prefix"
20280 acl_save_exec_prefix="$exec_prefix"
20281 exec_prefix="$acl_final_exec_prefix"
20282 eval x=\"$x\"
20283 exec_prefix="$acl_save_exec_prefix"
20284 prefix="$acl_save_prefix"
20285
20286 case "$x" in
20287 -L*)
20288 dir=`echo "X$x" | sed -e 's/^X-L//'`
20289 if test -n "$acl_shlibext"; then
20290 if test -f "$dir/$libname$shrext"; then
20291 found_dir="$dir"
20292 found_so="$dir/$libname$shrext"
20293 else
20294 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20295 ver=`(cd "$dir" && \
20296 for f in "$libname$shrext".*; do echo "$f"; done \
20297 | sed -e "s,^$libname$shrext\\\\.,," \
20298 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20299 | sed 1q ) 2>/dev/null`
20300 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20301 found_dir="$dir"
20302 found_so="$dir/$libname$shrext.$ver"
20303 fi
20304 else
20305 eval library_names=\"$acl_library_names_spec\"
20306 for f in $library_names; do
20307 if test -f "$dir/$f"; then
20308 found_dir="$dir"
20309 found_so="$dir/$f"
20310 break
20311 fi
20312 done
20313 fi
20314 fi
20315 fi
20316 if test "X$found_dir" = "X"; then
20317 if test -f "$dir/$libname.$acl_libext"; then
20318 found_dir="$dir"
20319 found_a="$dir/$libname.$acl_libext"
20320 fi
20321 fi
20322 if test "X$found_dir" != "X"; then
20323 if test -f "$dir/$libname.la"; then
20324 found_la="$dir/$libname.la"
20325 fi
20326 fi
20327 ;;
20328 esac
20329 if test "X$found_dir" != "X"; then
20330 break
20331 fi
20332 done
20333 fi
20334 if test "X$found_dir" != "X"; then
20335 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20336 if test "X$found_so" != "X"; then
20337 if test "$enable_rpath" = no \
20338 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20339 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20340 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20341 else
20342 haveit=
20343 for x in $ltrpathdirs; do
20344 if test "X$x" = "X$found_dir"; then
20345 haveit=yes
20346 break
20347 fi
20348 done
20349 if test -z "$haveit"; then
20350 ltrpathdirs="$ltrpathdirs $found_dir"
20351 fi
20352 if test "$acl_hardcode_direct" = yes; then
20353 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20354 else
20355 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20356 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20357 haveit=
20358 for x in $rpathdirs; do
20359 if test "X$x" = "X$found_dir"; then
20360 haveit=yes
20361 break
20362 fi
20363 done
20364 if test -z "$haveit"; then
20365 rpathdirs="$rpathdirs $found_dir"
20366 fi
20367 else
20368 haveit=
20369 for x in $LDFLAGS $LIBICONV; do
20370
20371 acl_save_prefix="$prefix"
20372 prefix="$acl_final_prefix"
20373 acl_save_exec_prefix="$exec_prefix"
20374 exec_prefix="$acl_final_exec_prefix"
20375 eval x=\"$x\"
20376 exec_prefix="$acl_save_exec_prefix"
20377 prefix="$acl_save_prefix"
20378
20379 if test "X$x" = "X-L$found_dir"; then
20380 haveit=yes
20381 break
20382 fi
20383 done
20384 if test -z "$haveit"; then
20385 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20386 fi
20387 if test "$acl_hardcode_minus_L" != no; then
20388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20389 else
20390 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20391 fi
20392 fi
20393 fi
20394 fi
20395 else
20396 if test "X$found_a" != "X"; then
20397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20398 else
20399 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20400 fi
20401 fi
20402 additional_includedir=
20403 case "$found_dir" in
20404 */$acl_libdirstem | */$acl_libdirstem/)
20405 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20406 if test "$name" = 'iconv'; then
20407 LIBICONV_PREFIX="$basedir"
20408 fi
20409 additional_includedir="$basedir/include"
20410 ;;
20411 */$acl_libdirstem2 | */$acl_libdirstem2/)
20412 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20413 if test "$name" = 'iconv'; then
20414 LIBICONV_PREFIX="$basedir"
20415 fi
20416 additional_includedir="$basedir/include"
20417 ;;
20418 esac
20419 if test "X$additional_includedir" != "X"; then
20420 if test "X$additional_includedir" != "X/usr/include"; then
20421 haveit=
20422 if test "X$additional_includedir" = "X/usr/local/include"; then
20423 if test -n "$GCC"; then
20424 case $host_os in
20425 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20426 esac
20427 fi
20428 fi
20429 if test -z "$haveit"; then
20430 for x in $CPPFLAGS $INCICONV; do
20431
20432 acl_save_prefix="$prefix"
20433 prefix="$acl_final_prefix"
20434 acl_save_exec_prefix="$exec_prefix"
20435 exec_prefix="$acl_final_exec_prefix"
20436 eval x=\"$x\"
20437 exec_prefix="$acl_save_exec_prefix"
20438 prefix="$acl_save_prefix"
20439
20440 if test "X$x" = "X-I$additional_includedir"; then
20441 haveit=yes
20442 break
20443 fi
20444 done
20445 if test -z "$haveit"; then
20446 if test -d "$additional_includedir"; then
20447 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20448 fi
20449 fi
20450 fi
20451 fi
20452 fi
20453 if test -n "$found_la"; then
20454 save_libdir="$libdir"
20455 case "$found_la" in
20456 */* | *\\*) . "$found_la" ;;
20457 *) . "./$found_la" ;;
20458 esac
20459 libdir="$save_libdir"
20460 for dep in $dependency_libs; do
20461 case "$dep" in
20462 -L*)
20463 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20464 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20465 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20466 haveit=
20467 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20468 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20469 if test -n "$GCC"; then
20470 case $host_os in
20471 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20472 esac
20473 fi
20474 fi
20475 if test -z "$haveit"; then
20476 haveit=
20477 for x in $LDFLAGS $LIBICONV; do
20478
20479 acl_save_prefix="$prefix"
20480 prefix="$acl_final_prefix"
20481 acl_save_exec_prefix="$exec_prefix"
20482 exec_prefix="$acl_final_exec_prefix"
20483 eval x=\"$x\"
20484 exec_prefix="$acl_save_exec_prefix"
20485 prefix="$acl_save_prefix"
20486
20487 if test "X$x" = "X-L$additional_libdir"; then
20488 haveit=yes
20489 break
20490 fi
20491 done
20492 if test -z "$haveit"; then
20493 if test -d "$additional_libdir"; then
20494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20495 fi
20496 fi
20497 haveit=
20498 for x in $LDFLAGS $LTLIBICONV; do
20499
20500 acl_save_prefix="$prefix"
20501 prefix="$acl_final_prefix"
20502 acl_save_exec_prefix="$exec_prefix"
20503 exec_prefix="$acl_final_exec_prefix"
20504 eval x=\"$x\"
20505 exec_prefix="$acl_save_exec_prefix"
20506 prefix="$acl_save_prefix"
20507
20508 if test "X$x" = "X-L$additional_libdir"; then
20509 haveit=yes
20510 break
20511 fi
20512 done
20513 if test -z "$haveit"; then
20514 if test -d "$additional_libdir"; then
20515 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20516 fi
20517 fi
20518 fi
20519 fi
20520 ;;
20521 -R*)
20522 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20523 if test "$enable_rpath" != no; then
20524 haveit=
20525 for x in $rpathdirs; do
20526 if test "X$x" = "X$dir"; then
20527 haveit=yes
20528 break
20529 fi
20530 done
20531 if test -z "$haveit"; then
20532 rpathdirs="$rpathdirs $dir"
20533 fi
20534 haveit=
20535 for x in $ltrpathdirs; do
20536 if test "X$x" = "X$dir"; then
20537 haveit=yes
20538 break
20539 fi
20540 done
20541 if test -z "$haveit"; then
20542 ltrpathdirs="$ltrpathdirs $dir"
20543 fi
20544 fi
20545 ;;
20546 -l*)
20547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20548 ;;
20549 *.la)
20550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20551 ;;
20552 *)
20553 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20555 ;;
20556 esac
20557 done
20558 fi
20559 else
20560 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20561 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20562 fi
20563 fi
20564 fi
20565 done
20566 done
20567 if test "X$rpathdirs" != "X"; then
20568 if test -n "$acl_hardcode_libdir_separator"; then
20569 alldirs=
20570 for found_dir in $rpathdirs; do
20571 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20572 done
20573 acl_save_libdir="$libdir"
20574 libdir="$alldirs"
20575 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20576 libdir="$acl_save_libdir"
20577 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20578 else
20579 for found_dir in $rpathdirs; do
20580 acl_save_libdir="$libdir"
20581 libdir="$found_dir"
20582 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20583 libdir="$acl_save_libdir"
20584 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20585 done
20586 fi
20587 fi
20588 if test "X$ltrpathdirs" != "X"; then
20589 for found_dir in $ltrpathdirs; do
20590 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20591 done
20592 fi
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605 am_save_CPPFLAGS="$CPPFLAGS"
20606
20607 for element in $INCICONV; do
20608 haveit=
20609 for x in $CPPFLAGS; do
20610
20611 acl_save_prefix="$prefix"
20612 prefix="$acl_final_prefix"
20613 acl_save_exec_prefix="$exec_prefix"
20614 exec_prefix="$acl_final_exec_prefix"
20615 eval x=\"$x\"
20616 exec_prefix="$acl_save_exec_prefix"
20617 prefix="$acl_save_prefix"
20618
20619 if test "X$x" = "X$element"; then
20620 haveit=yes
20621 break
20622 fi
20623 done
20624 if test -z "$haveit"; then
20625 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20626 fi
20627 done
20628
20629
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20631 $as_echo_n "checking for iconv... " >&6; }
20632 if ${am_cv_func_iconv+:} false; then :
20633 $as_echo_n "(cached) " >&6
20634 else
20635
20636 am_cv_func_iconv="no, consider installing GNU libiconv"
20637 am_cv_lib_iconv=no
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640
20641 #include <stdlib.h>
20642 #include <iconv.h>
20643
20644 int
20645 main ()
20646 {
20647 iconv_t cd = iconv_open("","");
20648 iconv(cd,NULL,NULL,NULL,NULL);
20649 iconv_close(cd);
20650 ;
20651 return 0;
20652 }
20653 _ACEOF
20654 if ac_fn_c_try_link "$LINENO"; then :
20655 am_cv_func_iconv=yes
20656 fi
20657 rm -f core conftest.err conftest.$ac_objext \
20658 conftest$ac_exeext conftest.$ac_ext
20659 if test "$am_cv_func_iconv" != yes; then
20660 am_save_LIBS="$LIBS"
20661 LIBS="$LIBS $LIBICONV"
20662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h. */
20664
20665 #include <stdlib.h>
20666 #include <iconv.h>
20667
20668 int
20669 main ()
20670 {
20671 iconv_t cd = iconv_open("","");
20672 iconv(cd,NULL,NULL,NULL,NULL);
20673 iconv_close(cd);
20674 ;
20675 return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 am_cv_lib_iconv=yes
20680 am_cv_func_iconv=yes
20681 fi
20682 rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS="$am_save_LIBS"
20685 fi
20686
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20689 $as_echo "$am_cv_func_iconv" >&6; }
20690 if test "$am_cv_func_iconv" = yes; then
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20692 $as_echo_n "checking for working iconv... " >&6; }
20693 if ${am_cv_func_iconv_works+:} false; then :
20694 $as_echo_n "(cached) " >&6
20695 else
20696
20697 am_save_LIBS="$LIBS"
20698 if test $am_cv_lib_iconv = yes; then
20699 LIBS="$LIBS $LIBICONV"
20700 fi
20701 if test "$cross_compiling" = yes; then :
20702
20703 case "$host_os" in
20704 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20705 *) am_cv_func_iconv_works="guessing yes" ;;
20706 esac
20707
20708 else
20709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710 /* end confdefs.h. */
20711
20712 #include <iconv.h>
20713 #include <string.h>
20714 int main ()
20715 {
20716 int result = 0;
20717 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20718 returns. */
20719 {
20720 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20721 if (cd_utf8_to_88591 != (iconv_t)(-1))
20722 {
20723 static const char input[] = "\342\202\254"; /* EURO SIGN */
20724 char buf[10];
20725 const char *inptr = input;
20726 size_t inbytesleft = strlen (input);
20727 char *outptr = buf;
20728 size_t outbytesleft = sizeof (buf);
20729 size_t res = iconv (cd_utf8_to_88591,
20730 (char **) &inptr, &inbytesleft,
20731 &outptr, &outbytesleft);
20732 if (res == 0)
20733 result |= 1;
20734 iconv_close (cd_utf8_to_88591);
20735 }
20736 }
20737 /* Test against Solaris 10 bug: Failures are not distinguishable from
20738 successful returns. */
20739 {
20740 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20741 if (cd_ascii_to_88591 != (iconv_t)(-1))
20742 {
20743 static const char input[] = "\263";
20744 char buf[10];
20745 const char *inptr = input;
20746 size_t inbytesleft = strlen (input);
20747 char *outptr = buf;
20748 size_t outbytesleft = sizeof (buf);
20749 size_t res = iconv (cd_ascii_to_88591,
20750 (char **) &inptr, &inbytesleft,
20751 &outptr, &outbytesleft);
20752 if (res == 0)
20753 result |= 2;
20754 iconv_close (cd_ascii_to_88591);
20755 }
20756 }
20757 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20758 {
20759 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20760 if (cd_88591_to_utf8 != (iconv_t)(-1))
20761 {
20762 static const char input[] = "\304";
20763 static char buf[2] = { (char)0xDE, (char)0xAD };
20764 const char *inptr = input;
20765 size_t inbytesleft = 1;
20766 char *outptr = buf;
20767 size_t outbytesleft = 1;
20768 size_t res = iconv (cd_88591_to_utf8,
20769 (char **) &inptr, &inbytesleft,
20770 &outptr, &outbytesleft);
20771 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20772 result |= 4;
20773 iconv_close (cd_88591_to_utf8);
20774 }
20775 }
20776 #if 0 /* This bug could be worked around by the caller. */
20777 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20778 {
20779 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20780 if (cd_88591_to_utf8 != (iconv_t)(-1))
20781 {
20782 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20783 char buf[50];
20784 const char *inptr = input;
20785 size_t inbytesleft = strlen (input);
20786 char *outptr = buf;
20787 size_t outbytesleft = sizeof (buf);
20788 size_t res = iconv (cd_88591_to_utf8,
20789 (char **) &inptr, &inbytesleft,
20790 &outptr, &outbytesleft);
20791 if ((int)res > 0)
20792 result |= 8;
20793 iconv_close (cd_88591_to_utf8);
20794 }
20795 }
20796 #endif
20797 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20798 provided. */
20799 if (/* Try standardized names. */
20800 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20801 /* Try IRIX, OSF/1 names. */
20802 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20803 /* Try AIX names. */
20804 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20805 /* Try HP-UX names. */
20806 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20807 result |= 16;
20808 return result;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_run "$LINENO"; then :
20812 am_cv_func_iconv_works=yes
20813 else
20814 am_cv_func_iconv_works=no
20815 fi
20816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20817 conftest.$ac_objext conftest.beam conftest.$ac_ext
20818 fi
20819
20820 LIBS="$am_save_LIBS"
20821
20822 fi
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20824 $as_echo "$am_cv_func_iconv_works" >&6; }
20825 case "$am_cv_func_iconv_works" in
20826 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20827 *) am_func_iconv=yes ;;
20828 esac
20829 else
20830 am_func_iconv=no am_cv_lib_iconv=no
20831 fi
20832 if test "$am_func_iconv" = yes; then
20833
20834 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20835
20836 fi
20837 if test "$am_cv_lib_iconv" = yes; then
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20839 $as_echo_n "checking how to link with libiconv... " >&6; }
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20841 $as_echo "$LIBICONV" >&6; }
20842 else
20843 CPPFLAGS="$am_save_CPPFLAGS"
20844 LIBICONV=
20845 LTLIBICONV=
20846 fi
20847
20848
20849
20850 if test "$am_cv_func_iconv" = yes; then
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20852 $as_echo_n "checking for iconv declaration... " >&6; }
20853 if ${am_cv_proto_iconv+:} false; then :
20854 $as_echo_n "(cached) " >&6
20855 else
20856
20857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20858 /* end confdefs.h. */
20859
20860 #include <stdlib.h>
20861 #include <iconv.h>
20862 extern
20863 #ifdef __cplusplus
20864 "C"
20865 #endif
20866 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20867 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20868 #else
20869 size_t iconv();
20870 #endif
20871
20872 int
20873 main ()
20874 {
20875
20876 ;
20877 return 0;
20878 }
20879 _ACEOF
20880 if ac_fn_c_try_compile "$LINENO"; then :
20881 am_cv_proto_iconv_arg1=""
20882 else
20883 am_cv_proto_iconv_arg1="const"
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 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);"
20887 fi
20888
20889 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20891 $am_cv_proto_iconv" >&5
20892 $as_echo "
20893 $am_cv_proto_iconv" >&6; }
20894
20895 cat >>confdefs.h <<_ACEOF
20896 #define ICONV_CONST $am_cv_proto_iconv_arg1
20897 _ACEOF
20898
20899
20900 fi
20901
20902 case $am_cv_func_iconv in #(
20903 yes) :
20904 ;; #(
20905 *) :
20906
20907 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
20908 case $cy_iconv_prefix_arg in #(
20909 -I*) :
20910
20911
20912 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
20913 haveit=
20914 for x in $cy_iconv_prefixes; do
20915
20916 acl_save_prefix="$prefix"
20917 prefix="$acl_final_prefix"
20918 acl_save_exec_prefix="$exec_prefix"
20919 exec_prefix="$acl_final_exec_prefix"
20920 eval x=\"$x\"
20921 exec_prefix="$acl_save_exec_prefix"
20922 prefix="$acl_save_prefix"
20923
20924 if test "X$x" = "X$element"; then
20925 haveit=yes
20926 break
20927 fi
20928 done
20929 if test -z "$haveit"; then
20930 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
20931 fi
20932 done
20933
20934 ;; #(
20935 -L*) :
20936
20937
20938 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
20939 haveit=
20940 for x in $cy_iconv_prefixes; do
20941
20942 acl_save_prefix="$prefix"
20943 prefix="$acl_final_prefix"
20944 acl_save_exec_prefix="$exec_prefix"
20945 exec_prefix="$acl_final_exec_prefix"
20946 eval x=\"$x\"
20947 exec_prefix="$acl_save_exec_prefix"
20948 prefix="$acl_save_prefix"
20949
20950 if test "X$x" = "X$element"; then
20951 haveit=yes
20952 break
20953 fi
20954 done
20955 if test -z "$haveit"; then
20956 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
20957 fi
20958 done
20959
20960 ;; #(
20961 *) :
20962 ;;
20963 esac
20964 done
20965 for with_libiconv_prefix in $cy_iconv_prefixes; do
20966 { am_cv_func_iconv=; unset am_cv_func_iconv;}
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978 use_additional=yes
20979
20980 acl_save_prefix="$prefix"
20981 prefix="$acl_final_prefix"
20982 acl_save_exec_prefix="$exec_prefix"
20983 exec_prefix="$acl_final_exec_prefix"
20984
20985 eval additional_includedir=\"$includedir\"
20986 eval additional_libdir=\"$libdir\"
20987
20988 exec_prefix="$acl_save_exec_prefix"
20989 prefix="$acl_save_prefix"
20990
20991
20992 # Check whether --with-libiconv-prefix was given.
20993 if test "${with_libiconv_prefix+set}" = set; then :
20994 withval=$with_libiconv_prefix;
20995 if test "X$withval" = "Xno"; then
20996 use_additional=no
20997 else
20998 if test "X$withval" = "X"; then
20999
21000 acl_save_prefix="$prefix"
21001 prefix="$acl_final_prefix"
21002 acl_save_exec_prefix="$exec_prefix"
21003 exec_prefix="$acl_final_exec_prefix"
21004
21005 eval additional_includedir=\"$includedir\"
21006 eval additional_libdir=\"$libdir\"
21007
21008 exec_prefix="$acl_save_exec_prefix"
21009 prefix="$acl_save_prefix"
21010
21011 else
21012 additional_includedir="$withval/include"
21013 additional_libdir="$withval/$acl_libdirstem"
21014 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21015 && ! test -d "$withval/$acl_libdirstem"; then
21016 additional_libdir="$withval/$acl_libdirstem2"
21017 fi
21018 fi
21019 fi
21020
21021 fi
21022
21023 LIBICONV=
21024 LTLIBICONV=
21025 INCICONV=
21026 LIBICONV_PREFIX=
21027 HAVE_LIBICONV=
21028 rpathdirs=
21029 ltrpathdirs=
21030 names_already_handled=
21031 names_next_round='iconv '
21032 while test -n "$names_next_round"; do
21033 names_this_round="$names_next_round"
21034 names_next_round=
21035 for name in $names_this_round; do
21036 already_handled=
21037 for n in $names_already_handled; do
21038 if test "$n" = "$name"; then
21039 already_handled=yes
21040 break
21041 fi
21042 done
21043 if test -z "$already_handled"; then
21044 names_already_handled="$names_already_handled $name"
21045 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
21046 eval value=\"\$HAVE_LIB$uppername\"
21047 if test -n "$value"; then
21048 if test "$value" = yes; then
21049 eval value=\"\$LIB$uppername\"
21050 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21051 eval value=\"\$LTLIB$uppername\"
21052 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21053 else
21054 :
21055 fi
21056 else
21057 found_dir=
21058 found_la=
21059 found_so=
21060 found_a=
21061 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21062 if test -n "$acl_shlibext"; then
21063 shrext=".$acl_shlibext" # typically: shrext=.so
21064 else
21065 shrext=
21066 fi
21067 if test $use_additional = yes; then
21068 dir="$additional_libdir"
21069 if test -n "$acl_shlibext"; then
21070 if test -f "$dir/$libname$shrext"; then
21071 found_dir="$dir"
21072 found_so="$dir/$libname$shrext"
21073 else
21074 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21075 ver=`(cd "$dir" && \
21076 for f in "$libname$shrext".*; do echo "$f"; done \
21077 | sed -e "s,^$libname$shrext\\\\.,," \
21078 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21079 | sed 1q ) 2>/dev/null`
21080 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21081 found_dir="$dir"
21082 found_so="$dir/$libname$shrext.$ver"
21083 fi
21084 else
21085 eval library_names=\"$acl_library_names_spec\"
21086 for f in $library_names; do
21087 if test -f "$dir/$f"; then
21088 found_dir="$dir"
21089 found_so="$dir/$f"
21090 break
21091 fi
21092 done
21093 fi
21094 fi
21095 fi
21096 if test "X$found_dir" = "X"; then
21097 if test -f "$dir/$libname.$acl_libext"; then
21098 found_dir="$dir"
21099 found_a="$dir/$libname.$acl_libext"
21100 fi
21101 fi
21102 if test "X$found_dir" != "X"; then
21103 if test -f "$dir/$libname.la"; then
21104 found_la="$dir/$libname.la"
21105 fi
21106 fi
21107 fi
21108 if test "X$found_dir" = "X"; then
21109 for x in $LDFLAGS $LTLIBICONV; do
21110
21111 acl_save_prefix="$prefix"
21112 prefix="$acl_final_prefix"
21113 acl_save_exec_prefix="$exec_prefix"
21114 exec_prefix="$acl_final_exec_prefix"
21115 eval x=\"$x\"
21116 exec_prefix="$acl_save_exec_prefix"
21117 prefix="$acl_save_prefix"
21118
21119 case "$x" in
21120 -L*)
21121 dir=`echo "X$x" | sed -e 's/^X-L//'`
21122 if test -n "$acl_shlibext"; then
21123 if test -f "$dir/$libname$shrext"; then
21124 found_dir="$dir"
21125 found_so="$dir/$libname$shrext"
21126 else
21127 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21128 ver=`(cd "$dir" && \
21129 for f in "$libname$shrext".*; do echo "$f"; done \
21130 | sed -e "s,^$libname$shrext\\\\.,," \
21131 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21132 | sed 1q ) 2>/dev/null`
21133 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21134 found_dir="$dir"
21135 found_so="$dir/$libname$shrext.$ver"
21136 fi
21137 else
21138 eval library_names=\"$acl_library_names_spec\"
21139 for f in $library_names; do
21140 if test -f "$dir/$f"; then
21141 found_dir="$dir"
21142 found_so="$dir/$f"
21143 break
21144 fi
21145 done
21146 fi
21147 fi
21148 fi
21149 if test "X$found_dir" = "X"; then
21150 if test -f "$dir/$libname.$acl_libext"; then
21151 found_dir="$dir"
21152 found_a="$dir/$libname.$acl_libext"
21153 fi
21154 fi
21155 if test "X$found_dir" != "X"; then
21156 if test -f "$dir/$libname.la"; then
21157 found_la="$dir/$libname.la"
21158 fi
21159 fi
21160 ;;
21161 esac
21162 if test "X$found_dir" != "X"; then
21163 break
21164 fi
21165 done
21166 fi
21167 if test "X$found_dir" != "X"; then
21168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21169 if test "X$found_so" != "X"; then
21170 if test "$enable_rpath" = no \
21171 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21172 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21174 else
21175 haveit=
21176 for x in $ltrpathdirs; do
21177 if test "X$x" = "X$found_dir"; then
21178 haveit=yes
21179 break
21180 fi
21181 done
21182 if test -z "$haveit"; then
21183 ltrpathdirs="$ltrpathdirs $found_dir"
21184 fi
21185 if test "$acl_hardcode_direct" = yes; then
21186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21187 else
21188 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21190 haveit=
21191 for x in $rpathdirs; do
21192 if test "X$x" = "X$found_dir"; then
21193 haveit=yes
21194 break
21195 fi
21196 done
21197 if test -z "$haveit"; then
21198 rpathdirs="$rpathdirs $found_dir"
21199 fi
21200 else
21201 haveit=
21202 for x in $LDFLAGS $LIBICONV; do
21203
21204 acl_save_prefix="$prefix"
21205 prefix="$acl_final_prefix"
21206 acl_save_exec_prefix="$exec_prefix"
21207 exec_prefix="$acl_final_exec_prefix"
21208 eval x=\"$x\"
21209 exec_prefix="$acl_save_exec_prefix"
21210 prefix="$acl_save_prefix"
21211
21212 if test "X$x" = "X-L$found_dir"; then
21213 haveit=yes
21214 break
21215 fi
21216 done
21217 if test -z "$haveit"; then
21218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21219 fi
21220 if test "$acl_hardcode_minus_L" != no; then
21221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21222 else
21223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21224 fi
21225 fi
21226 fi
21227 fi
21228 else
21229 if test "X$found_a" != "X"; then
21230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21231 else
21232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21233 fi
21234 fi
21235 additional_includedir=
21236 case "$found_dir" in
21237 */$acl_libdirstem | */$acl_libdirstem/)
21238 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21239 if test "$name" = 'iconv'; then
21240 LIBICONV_PREFIX="$basedir"
21241 fi
21242 additional_includedir="$basedir/include"
21243 ;;
21244 */$acl_libdirstem2 | */$acl_libdirstem2/)
21245 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21246 if test "$name" = 'iconv'; then
21247 LIBICONV_PREFIX="$basedir"
21248 fi
21249 additional_includedir="$basedir/include"
21250 ;;
21251 esac
21252 if test "X$additional_includedir" != "X"; then
21253 if test "X$additional_includedir" != "X/usr/include"; then
21254 haveit=
21255 if test "X$additional_includedir" = "X/usr/local/include"; then
21256 if test -n "$GCC"; then
21257 case $host_os in
21258 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21259 esac
21260 fi
21261 fi
21262 if test -z "$haveit"; then
21263 for x in $CPPFLAGS $INCICONV; do
21264
21265 acl_save_prefix="$prefix"
21266 prefix="$acl_final_prefix"
21267 acl_save_exec_prefix="$exec_prefix"
21268 exec_prefix="$acl_final_exec_prefix"
21269 eval x=\"$x\"
21270 exec_prefix="$acl_save_exec_prefix"
21271 prefix="$acl_save_prefix"
21272
21273 if test "X$x" = "X-I$additional_includedir"; then
21274 haveit=yes
21275 break
21276 fi
21277 done
21278 if test -z "$haveit"; then
21279 if test -d "$additional_includedir"; then
21280 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21281 fi
21282 fi
21283 fi
21284 fi
21285 fi
21286 if test -n "$found_la"; then
21287 save_libdir="$libdir"
21288 case "$found_la" in
21289 */* | *\\*) . "$found_la" ;;
21290 *) . "./$found_la" ;;
21291 esac
21292 libdir="$save_libdir"
21293 for dep in $dependency_libs; do
21294 case "$dep" in
21295 -L*)
21296 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21297 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21298 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21299 haveit=
21300 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21301 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21302 if test -n "$GCC"; then
21303 case $host_os in
21304 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21305 esac
21306 fi
21307 fi
21308 if test -z "$haveit"; then
21309 haveit=
21310 for x in $LDFLAGS $LIBICONV; do
21311
21312 acl_save_prefix="$prefix"
21313 prefix="$acl_final_prefix"
21314 acl_save_exec_prefix="$exec_prefix"
21315 exec_prefix="$acl_final_exec_prefix"
21316 eval x=\"$x\"
21317 exec_prefix="$acl_save_exec_prefix"
21318 prefix="$acl_save_prefix"
21319
21320 if test "X$x" = "X-L$additional_libdir"; then
21321 haveit=yes
21322 break
21323 fi
21324 done
21325 if test -z "$haveit"; then
21326 if test -d "$additional_libdir"; then
21327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21328 fi
21329 fi
21330 haveit=
21331 for x in $LDFLAGS $LTLIBICONV; do
21332
21333 acl_save_prefix="$prefix"
21334 prefix="$acl_final_prefix"
21335 acl_save_exec_prefix="$exec_prefix"
21336 exec_prefix="$acl_final_exec_prefix"
21337 eval x=\"$x\"
21338 exec_prefix="$acl_save_exec_prefix"
21339 prefix="$acl_save_prefix"
21340
21341 if test "X$x" = "X-L$additional_libdir"; then
21342 haveit=yes
21343 break
21344 fi
21345 done
21346 if test -z "$haveit"; then
21347 if test -d "$additional_libdir"; then
21348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21349 fi
21350 fi
21351 fi
21352 fi
21353 ;;
21354 -R*)
21355 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21356 if test "$enable_rpath" != no; then
21357 haveit=
21358 for x in $rpathdirs; do
21359 if test "X$x" = "X$dir"; then
21360 haveit=yes
21361 break
21362 fi
21363 done
21364 if test -z "$haveit"; then
21365 rpathdirs="$rpathdirs $dir"
21366 fi
21367 haveit=
21368 for x in $ltrpathdirs; do
21369 if test "X$x" = "X$dir"; then
21370 haveit=yes
21371 break
21372 fi
21373 done
21374 if test -z "$haveit"; then
21375 ltrpathdirs="$ltrpathdirs $dir"
21376 fi
21377 fi
21378 ;;
21379 -l*)
21380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21381 ;;
21382 *.la)
21383 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21384 ;;
21385 *)
21386 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21388 ;;
21389 esac
21390 done
21391 fi
21392 else
21393 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21395 fi
21396 fi
21397 fi
21398 done
21399 done
21400 if test "X$rpathdirs" != "X"; then
21401 if test -n "$acl_hardcode_libdir_separator"; then
21402 alldirs=
21403 for found_dir in $rpathdirs; do
21404 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21405 done
21406 acl_save_libdir="$libdir"
21407 libdir="$alldirs"
21408 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21409 libdir="$acl_save_libdir"
21410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21411 else
21412 for found_dir in $rpathdirs; do
21413 acl_save_libdir="$libdir"
21414 libdir="$found_dir"
21415 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21416 libdir="$acl_save_libdir"
21417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21418 done
21419 fi
21420 fi
21421 if test "X$ltrpathdirs" != "X"; then
21422 for found_dir in $ltrpathdirs; do
21423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21424 done
21425 fi
21426
21427
21428
21429
21430
21431
21432
21433
21434 done
21435 ;;
21436 esac
21437 case $am_cv_func_iconv in #(
21438 yes) :
21439 ;; #(
21440 *) :
21441 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
21442 esac
21443 ac_ext=cpp
21444 ac_cpp='$CXXCPP $CPPFLAGS'
21445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21448
21449
21450
21451 SO=$acl_shlibext
21452
21453
21454 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21455 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
21456
21457 if test -n "$ac_tool_prefix"; then
21458 for ac_prog in otool
21459 do
21460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21463 $as_echo_n "checking for $ac_word... " >&6; }
21464 if ${ac_cv_prog__OTOOL+:} false; then :
21465 $as_echo_n "(cached) " >&6
21466 else
21467 if test -n "$_OTOOL"; then
21468 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
21469 else
21470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21471 for as_dir in $PATH
21472 do
21473 IFS=$as_save_IFS
21474 test -z "$as_dir" && as_dir=.
21475 for ac_exec_ext in '' $ac_executable_extensions; do
21476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21477 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
21478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21479 break 2
21480 fi
21481 done
21482 done
21483 IFS=$as_save_IFS
21484
21485 fi
21486 fi
21487 _OTOOL=$ac_cv_prog__OTOOL
21488 if test -n "$_OTOOL"; then
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21490 $as_echo "$_OTOOL" >&6; }
21491 else
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 $as_echo "no" >&6; }
21494 fi
21495
21496
21497 test -n "$_OTOOL" && break
21498 done
21499 fi
21500 if test -z "$_OTOOL"; then
21501 ac_ct__OTOOL=$_OTOOL
21502 for ac_prog in otool
21503 do
21504 # Extract the first word of "$ac_prog", so it can be a program name with args.
21505 set dummy $ac_prog; ac_word=$2
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21507 $as_echo_n "checking for $ac_word... " >&6; }
21508 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
21509 $as_echo_n "(cached) " >&6
21510 else
21511 if test -n "$ac_ct__OTOOL"; then
21512 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
21513 else
21514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21516 do
21517 IFS=$as_save_IFS
21518 test -z "$as_dir" && as_dir=.
21519 for ac_exec_ext in '' $ac_executable_extensions; do
21520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21521 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
21522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21523 break 2
21524 fi
21525 done
21526 done
21527 IFS=$as_save_IFS
21528
21529 fi
21530 fi
21531 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21532 if test -n "$ac_ct__OTOOL"; then
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21534 $as_echo "$ac_ct__OTOOL" >&6; }
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21537 $as_echo "no" >&6; }
21538 fi
21539
21540
21541 test -n "$ac_ct__OTOOL" && break
21542 done
21543
21544 if test "x$ac_ct__OTOOL" = x; then
21545 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
21546 else
21547 case $cross_compiling:$ac_tool_warned in
21548 yes:)
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21551 ac_tool_warned=yes ;;
21552 esac
21553 _OTOOL=$ac_ct__OTOOL
21554 fi
21555 fi
21556
21557 if test -n "$ac_tool_prefix"; then
21558 for ac_prog in lipo
21559 do
21560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21563 $as_echo_n "checking for $ac_word... " >&6; }
21564 if ${ac_cv_prog__LIPO+:} false; then :
21565 $as_echo_n "(cached) " >&6
21566 else
21567 if test -n "$_LIPO"; then
21568 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
21569 else
21570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21571 for as_dir in $PATH
21572 do
21573 IFS=$as_save_IFS
21574 test -z "$as_dir" && as_dir=.
21575 for ac_exec_ext in '' $ac_executable_extensions; do
21576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21577 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
21578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21579 break 2
21580 fi
21581 done
21582 done
21583 IFS=$as_save_IFS
21584
21585 fi
21586 fi
21587 _LIPO=$ac_cv_prog__LIPO
21588 if test -n "$_LIPO"; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21590 $as_echo "$_LIPO" >&6; }
21591 else
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21593 $as_echo "no" >&6; }
21594 fi
21595
21596
21597 test -n "$_LIPO" && break
21598 done
21599 fi
21600 if test -z "$_LIPO"; then
21601 ac_ct__LIPO=$_LIPO
21602 for ac_prog in lipo
21603 do
21604 # Extract the first word of "$ac_prog", so it can be a program name with args.
21605 set dummy $ac_prog; ac_word=$2
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21607 $as_echo_n "checking for $ac_word... " >&6; }
21608 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
21609 $as_echo_n "(cached) " >&6
21610 else
21611 if test -n "$ac_ct__LIPO"; then
21612 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
21613 else
21614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21615 for as_dir in $PATH
21616 do
21617 IFS=$as_save_IFS
21618 test -z "$as_dir" && as_dir=.
21619 for ac_exec_ext in '' $ac_executable_extensions; do
21620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21621 ac_cv_prog_ac_ct__LIPO="$ac_prog"
21622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21623 break 2
21624 fi
21625 done
21626 done
21627 IFS=$as_save_IFS
21628
21629 fi
21630 fi
21631 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21632 if test -n "$ac_ct__LIPO"; then
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21634 $as_echo "$ac_ct__LIPO" >&6; }
21635 else
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637 $as_echo "no" >&6; }
21638 fi
21639
21640
21641 test -n "$ac_ct__LIPO" && break
21642 done
21643
21644 if test "x$ac_ct__LIPO" = x; then
21645 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
21646 else
21647 case $cross_compiling:$ac_tool_warned in
21648 yes:)
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21651 ac_tool_warned=yes ;;
21652 esac
21653 _LIPO=$ac_ct__LIPO
21654 fi
21655 fi
21656
21657 if test -n "$ac_tool_prefix"; then
21658 for ac_prog in nm
21659 do
21660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21663 $as_echo_n "checking for $ac_word... " >&6; }
21664 if ${ac_cv_prog__NM+:} false; then :
21665 $as_echo_n "(cached) " >&6
21666 else
21667 if test -n "$_NM"; then
21668 ac_cv_prog__NM="$_NM" # Let the user override the test.
21669 else
21670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21671 for as_dir in $PATH
21672 do
21673 IFS=$as_save_IFS
21674 test -z "$as_dir" && as_dir=.
21675 for ac_exec_ext in '' $ac_executable_extensions; do
21676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21677 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
21678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21679 break 2
21680 fi
21681 done
21682 done
21683 IFS=$as_save_IFS
21684
21685 fi
21686 fi
21687 _NM=$ac_cv_prog__NM
21688 if test -n "$_NM"; then
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21690 $as_echo "$_NM" >&6; }
21691 else
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21693 $as_echo "no" >&6; }
21694 fi
21695
21696
21697 test -n "$_NM" && break
21698 done
21699 fi
21700 if test -z "$_NM"; then
21701 ac_ct__NM=$_NM
21702 for ac_prog in nm
21703 do
21704 # Extract the first word of "$ac_prog", so it can be a program name with args.
21705 set dummy $ac_prog; ac_word=$2
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21707 $as_echo_n "checking for $ac_word... " >&6; }
21708 if ${ac_cv_prog_ac_ct__NM+:} false; then :
21709 $as_echo_n "(cached) " >&6
21710 else
21711 if test -n "$ac_ct__NM"; then
21712 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
21713 else
21714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21715 for as_dir in $PATH
21716 do
21717 IFS=$as_save_IFS
21718 test -z "$as_dir" && as_dir=.
21719 for ac_exec_ext in '' $ac_executable_extensions; do
21720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21721 ac_cv_prog_ac_ct__NM="$ac_prog"
21722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21723 break 2
21724 fi
21725 done
21726 done
21727 IFS=$as_save_IFS
21728
21729 fi
21730 fi
21731 ac_ct__NM=$ac_cv_prog_ac_ct__NM
21732 if test -n "$ac_ct__NM"; then
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21734 $as_echo "$ac_ct__NM" >&6; }
21735 else
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21737 $as_echo "no" >&6; }
21738 fi
21739
21740
21741 test -n "$ac_ct__NM" && break
21742 done
21743
21744 if test "x$ac_ct__NM" = x; then
21745 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
21746 else
21747 case $cross_compiling:$ac_tool_warned in
21748 yes:)
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21751 ac_tool_warned=yes ;;
21752 esac
21753 _NM=$ac_ct__NM
21754 fi
21755 fi
21756
21757 CY_MACH=1
21758
21759 CY_ATTACH_GROUP=procmod
21760
21761
21762 fi
21763
21764
21765
21766 if test "x$GMAKE" != xmake; then :
21767
21768 ac_config_files="$ac_config_files Makefile"
21769
21770 fi
21771 ac_config_files="$ac_config_files GNUmakefile"
21772
21773
21774 cat >confcache <<\_ACEOF
21775 # This file is a shell script that caches the results of configure
21776 # tests run on this system so they can be shared between configure
21777 # scripts and configure runs, see configure's option --config-cache.
21778 # It is not useful on other systems. If it contains results you don't
21779 # want to keep, you may remove or edit it.
21780 #
21781 # config.status only pays attention to the cache file if you give it
21782 # the --recheck option to rerun configure.
21783 #
21784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21786 # following values.
21787
21788 _ACEOF
21789
21790 # The following way of writing the cache mishandles newlines in values,
21791 # but we know of no workaround that is simple, portable, and efficient.
21792 # So, we kill variables containing newlines.
21793 # Ultrix sh set writes to stderr and can't be redirected directly,
21794 # and sets the high bit in the cache file unless we assign to the vars.
21795 (
21796 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21797 eval ac_val=\$$ac_var
21798 case $ac_val in #(
21799 *${as_nl}*)
21800 case $ac_var in #(
21801 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21803 esac
21804 case $ac_var in #(
21805 _ | IFS | as_nl) ;; #(
21806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21807 *) { eval $ac_var=; unset $ac_var;} ;;
21808 esac ;;
21809 esac
21810 done
21811
21812 (set) 2>&1 |
21813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21814 *${as_nl}ac_space=\ *)
21815 # `set' does not quote correctly, so add quotes: double-quote
21816 # substitution turns \\\\ into \\, and sed turns \\ into \.
21817 sed -n \
21818 "s/'/'\\\\''/g;
21819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21820 ;; #(
21821 *)
21822 # `set' quotes correctly as required by POSIX, so do not add quotes.
21823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21824 ;;
21825 esac |
21826 sort
21827 ) |
21828 sed '
21829 /^ac_cv_env_/b end
21830 t clear
21831 :clear
21832 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21833 t end
21834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21835 :end' >>confcache
21836 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21837 if test -w "$cache_file"; then
21838 if test "x$cache_file" != "x/dev/null"; then
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21840 $as_echo "$as_me: updating cache $cache_file" >&6;}
21841 if test ! -f "$cache_file" || test -h "$cache_file"; then
21842 cat confcache >"$cache_file"
21843 else
21844 case $cache_file in #(
21845 */* | ?:*)
21846 mv -f confcache "$cache_file"$$ &&
21847 mv -f "$cache_file"$$ "$cache_file" ;; #(
21848 *)
21849 mv -f confcache "$cache_file" ;;
21850 esac
21851 fi
21852 fi
21853 else
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21856 fi
21857 fi
21858 rm -f confcache
21859
21860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21861 # Let make expand exec_prefix.
21862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21863
21864 # Transform confdefs.h into DEFS.
21865 # Protect against shell expansion while executing Makefile rules.
21866 # Protect against Makefile macro expansion.
21867 #
21868 # If the first sed substitution is executed (which looks for macros that
21869 # take arguments), then branch to the quote section. Otherwise,
21870 # look for a macro that doesn't take arguments.
21871 ac_script='
21872 :mline
21873 /\\$/{
21874 N
21875 s,\\\n,,
21876 b mline
21877 }
21878 t clear
21879 :clear
21880 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21881 t quote
21882 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21883 t quote
21884 b any
21885 :quote
21886 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21887 s/\[/\\&/g
21888 s/\]/\\&/g
21889 s/\$/$$/g
21890 H
21891 :any
21892 ${
21893 g
21894 s/^\n//
21895 s/\n/ /g
21896 p
21897 }
21898 '
21899 DEFS=`sed -n "$ac_script" confdefs.h`
21900
21901
21902 ac_libobjs=
21903 ac_ltlibobjs=
21904 U=
21905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21906 # 1. Remove the extension, and $U if already installed.
21907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21910 # will be set to the directory where LIBOBJS objects are built.
21911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21913 done
21914 LIBOBJS=$ac_libobjs
21915
21916 LTLIBOBJS=$ac_ltlibobjs
21917
21918
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21920 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21921 if test -n "$am_sleep_pid"; then
21922 # Hide warnings about reused PIDs.
21923 wait $am_sleep_pid 2>/dev/null
21924 fi
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21926 $as_echo "done" >&6; }
21927 if test -n "$EXEEXT"; then
21928 am__EXEEXT_TRUE=
21929 am__EXEEXT_FALSE='#'
21930 else
21931 am__EXEEXT_TRUE='#'
21932 am__EXEEXT_FALSE=
21933 fi
21934
21935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21936 as_fn_error $? "conditional \"AMDEP\" was never defined.
21937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21938 fi
21939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21940 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21942 fi
21943 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21944 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21946 fi
21947 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21948 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21950 fi
21951
21952 : "${CONFIG_STATUS=./config.status}"
21953 ac_write_fail=0
21954 ac_clean_files_save=$ac_clean_files
21955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21957 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21958 as_write_fail=0
21959 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21960 #! $SHELL
21961 # Generated by $as_me.
21962 # Run this file to recreate the current configuration.
21963 # Compiler output produced by configure, useful for debugging
21964 # configure, is in config.log if it exists.
21965
21966 debug=false
21967 ac_cs_recheck=false
21968 ac_cs_silent=false
21969
21970 SHELL=\${CONFIG_SHELL-$SHELL}
21971 export SHELL
21972 _ASEOF
21973 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21974 ## -------------------- ##
21975 ## M4sh Initialization. ##
21976 ## -------------------- ##
21977
21978 # Be more Bourne compatible
21979 DUALCASE=1; export DUALCASE # for MKS sh
21980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21981 emulate sh
21982 NULLCMD=:
21983 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21984 # is contrary to our usage. Disable this feature.
21985 alias -g '${1+"$@"}'='"$@"'
21986 setopt NO_GLOB_SUBST
21987 else
21988 case `(set -o) 2>/dev/null` in #(
21989 *posix*) :
21990 set -o posix ;; #(
21991 *) :
21992 ;;
21993 esac
21994 fi
21995
21996
21997 as_nl='
21998 '
21999 export as_nl
22000 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22001 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22004 # Prefer a ksh shell builtin over an external printf program on Solaris,
22005 # but without wasting forks for bash or zsh.
22006 if test -z "$BASH_VERSION$ZSH_VERSION" \
22007 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22008 as_echo='print -r --'
22009 as_echo_n='print -rn --'
22010 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22011 as_echo='printf %s\n'
22012 as_echo_n='printf %s'
22013 else
22014 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22015 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22016 as_echo_n='/usr/ucb/echo -n'
22017 else
22018 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22019 as_echo_n_body='eval
22020 arg=$1;
22021 case $arg in #(
22022 *"$as_nl"*)
22023 expr "X$arg" : "X\\(.*\\)$as_nl";
22024 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22025 esac;
22026 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22027 '
22028 export as_echo_n_body
22029 as_echo_n='sh -c $as_echo_n_body as_echo'
22030 fi
22031 export as_echo_body
22032 as_echo='sh -c $as_echo_body as_echo'
22033 fi
22034
22035 # The user is always right.
22036 if test "${PATH_SEPARATOR+set}" != set; then
22037 PATH_SEPARATOR=:
22038 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22039 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22040 PATH_SEPARATOR=';'
22041 }
22042 fi
22043
22044
22045 # IFS
22046 # We need space, tab and new line, in precisely that order. Quoting is
22047 # there to prevent editors from complaining about space-tab.
22048 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22049 # splitting by setting IFS to empty value.)
22050 IFS=" "" $as_nl"
22051
22052 # Find who we are. Look in the path if we contain no directory separator.
22053 as_myself=
22054 case $0 in #((
22055 *[\\/]* ) as_myself=$0 ;;
22056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22057 for as_dir in $PATH
22058 do
22059 IFS=$as_save_IFS
22060 test -z "$as_dir" && as_dir=.
22061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22062 done
22063 IFS=$as_save_IFS
22064
22065 ;;
22066 esac
22067 # We did not find ourselves, most probably we were run as `sh COMMAND'
22068 # in which case we are not to be found in the path.
22069 if test "x$as_myself" = x; then
22070 as_myself=$0
22071 fi
22072 if test ! -f "$as_myself"; then
22073 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22074 exit 1
22075 fi
22076
22077 # Unset variables that we do not need and which cause bugs (e.g. in
22078 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22079 # suppresses any "Segmentation fault" message there. '((' could
22080 # trigger a bug in pdksh 5.2.14.
22081 for as_var in BASH_ENV ENV MAIL MAILPATH
22082 do eval test x\${$as_var+set} = xset \
22083 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22084 done
22085 PS1='$ '
22086 PS2='> '
22087 PS4='+ '
22088
22089 # NLS nuisances.
22090 LC_ALL=C
22091 export LC_ALL
22092 LANGUAGE=C
22093 export LANGUAGE
22094
22095 # CDPATH.
22096 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22097
22098
22099 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22100 # ----------------------------------------
22101 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22102 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22103 # script with STATUS, using 1 if that was 0.
22104 as_fn_error ()
22105 {
22106 as_status=$1; test $as_status -eq 0 && as_status=1
22107 if test "$4"; then
22108 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22109 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22110 fi
22111 $as_echo "$as_me: error: $2" >&2
22112 as_fn_exit $as_status
22113 } # as_fn_error
22114
22115
22116 # as_fn_set_status STATUS
22117 # -----------------------
22118 # Set $? to STATUS, without forking.
22119 as_fn_set_status ()
22120 {
22121 return $1
22122 } # as_fn_set_status
22123
22124 # as_fn_exit STATUS
22125 # -----------------
22126 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22127 as_fn_exit ()
22128 {
22129 set +e
22130 as_fn_set_status $1
22131 exit $1
22132 } # as_fn_exit
22133
22134 # as_fn_unset VAR
22135 # ---------------
22136 # Portably unset VAR.
22137 as_fn_unset ()
22138 {
22139 { eval $1=; unset $1;}
22140 }
22141 as_unset=as_fn_unset
22142 # as_fn_append VAR VALUE
22143 # ----------------------
22144 # Append the text in VALUE to the end of the definition contained in VAR. Take
22145 # advantage of any shell optimizations that allow amortized linear growth over
22146 # repeated appends, instead of the typical quadratic growth present in naive
22147 # implementations.
22148 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22149 eval 'as_fn_append ()
22150 {
22151 eval $1+=\$2
22152 }'
22153 else
22154 as_fn_append ()
22155 {
22156 eval $1=\$$1\$2
22157 }
22158 fi # as_fn_append
22159
22160 # as_fn_arith ARG...
22161 # ------------------
22162 # Perform arithmetic evaluation on the ARGs, and store the result in the
22163 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22164 # must be portable across $(()) and expr.
22165 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22166 eval 'as_fn_arith ()
22167 {
22168 as_val=$(( $* ))
22169 }'
22170 else
22171 as_fn_arith ()
22172 {
22173 as_val=`expr "$@" || test $? -eq 1`
22174 }
22175 fi # as_fn_arith
22176
22177
22178 if expr a : '\(a\)' >/dev/null 2>&1 &&
22179 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22180 as_expr=expr
22181 else
22182 as_expr=false
22183 fi
22184
22185 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22186 as_basename=basename
22187 else
22188 as_basename=false
22189 fi
22190
22191 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22192 as_dirname=dirname
22193 else
22194 as_dirname=false
22195 fi
22196
22197 as_me=`$as_basename -- "$0" ||
22198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22199 X"$0" : 'X\(//\)$' \| \
22200 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22201 $as_echo X/"$0" |
22202 sed '/^.*\/\([^/][^/]*\)\/*$/{
22203 s//\1/
22204 q
22205 }
22206 /^X\/\(\/\/\)$/{
22207 s//\1/
22208 q
22209 }
22210 /^X\/\(\/\).*/{
22211 s//\1/
22212 q
22213 }
22214 s/.*/./; q'`
22215
22216 # Avoid depending upon Character Ranges.
22217 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22218 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22219 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22220 as_cr_digits='0123456789'
22221 as_cr_alnum=$as_cr_Letters$as_cr_digits
22222
22223 ECHO_C= ECHO_N= ECHO_T=
22224 case `echo -n x` in #(((((
22225 -n*)
22226 case `echo 'xy\c'` in
22227 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22228 xy) ECHO_C='\c';;
22229 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22230 ECHO_T=' ';;
22231 esac;;
22232 *)
22233 ECHO_N='-n';;
22234 esac
22235
22236 rm -f conf$$ conf$$.exe conf$$.file
22237 if test -d conf$$.dir; then
22238 rm -f conf$$.dir/conf$$.file
22239 else
22240 rm -f conf$$.dir
22241 mkdir conf$$.dir 2>/dev/null
22242 fi
22243 if (echo >conf$$.file) 2>/dev/null; then
22244 if ln -s conf$$.file conf$$ 2>/dev/null; then
22245 as_ln_s='ln -s'
22246 # ... but there are two gotchas:
22247 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22248 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22249 # In both cases, we have to default to `cp -pR'.
22250 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22251 as_ln_s='cp -pR'
22252 elif ln conf$$.file conf$$ 2>/dev/null; then
22253 as_ln_s=ln
22254 else
22255 as_ln_s='cp -pR'
22256 fi
22257 else
22258 as_ln_s='cp -pR'
22259 fi
22260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22261 rmdir conf$$.dir 2>/dev/null
22262
22263
22264 # as_fn_mkdir_p
22265 # -------------
22266 # Create "$as_dir" as a directory, including parents if necessary.
22267 as_fn_mkdir_p ()
22268 {
22269
22270 case $as_dir in #(
22271 -*) as_dir=./$as_dir;;
22272 esac
22273 test -d "$as_dir" || eval $as_mkdir_p || {
22274 as_dirs=
22275 while :; do
22276 case $as_dir in #(
22277 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22278 *) as_qdir=$as_dir;;
22279 esac
22280 as_dirs="'$as_qdir' $as_dirs"
22281 as_dir=`$as_dirname -- "$as_dir" ||
22282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283 X"$as_dir" : 'X\(//\)[^/]' \| \
22284 X"$as_dir" : 'X\(//\)$' \| \
22285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22286 $as_echo X"$as_dir" |
22287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288 s//\1/
22289 q
22290 }
22291 /^X\(\/\/\)[^/].*/{
22292 s//\1/
22293 q
22294 }
22295 /^X\(\/\/\)$/{
22296 s//\1/
22297 q
22298 }
22299 /^X\(\/\).*/{
22300 s//\1/
22301 q
22302 }
22303 s/.*/./; q'`
22304 test -d "$as_dir" && break
22305 done
22306 test -z "$as_dirs" || eval "mkdir $as_dirs"
22307 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22308
22309
22310 } # as_fn_mkdir_p
22311 if mkdir -p . 2>/dev/null; then
22312 as_mkdir_p='mkdir -p "$as_dir"'
22313 else
22314 test -d ./-p && rmdir ./-p
22315 as_mkdir_p=false
22316 fi
22317
22318
22319 # as_fn_executable_p FILE
22320 # -----------------------
22321 # Test if FILE is an executable regular file.
22322 as_fn_executable_p ()
22323 {
22324 test -f "$1" && test -x "$1"
22325 } # as_fn_executable_p
22326 as_test_x='test -x'
22327 as_executable_p=as_fn_executable_p
22328
22329 # Sed expression to map a string onto a valid CPP name.
22330 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22331
22332 # Sed expression to map a string onto a valid variable name.
22333 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22334
22335
22336 exec 6>&1
22337 ## ----------------------------------- ##
22338 ## Main body of $CONFIG_STATUS script. ##
22339 ## ----------------------------------- ##
22340 _ASEOF
22341 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22342
22343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22344 # Save the log message, to keep $0 and so on meaningful, and to
22345 # report actual input values of CONFIG_FILES etc. instead of their
22346 # values after options handling.
22347 ac_log="
22348 This file was extended by Cycript $as_me 0.9, which was
22349 generated by GNU Autoconf 2.69. Invocation command line was
22350
22351 CONFIG_FILES = $CONFIG_FILES
22352 CONFIG_HEADERS = $CONFIG_HEADERS
22353 CONFIG_LINKS = $CONFIG_LINKS
22354 CONFIG_COMMANDS = $CONFIG_COMMANDS
22355 $ $0 $@
22356
22357 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22358 "
22359
22360 _ACEOF
22361
22362 case $ac_config_files in *"
22363 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22364 esac
22365
22366
22367
22368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22369 # Files that config.status was made for.
22370 config_files="$ac_config_files"
22371 config_commands="$ac_config_commands"
22372
22373 _ACEOF
22374
22375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22376 ac_cs_usage="\
22377 \`$as_me' instantiates files and other configuration actions
22378 from templates according to the current configuration. Unless the files
22379 and actions are specified as TAGs, all are instantiated by default.
22380
22381 Usage: $0 [OPTION]... [TAG]...
22382
22383 -h, --help print this help, then exit
22384 -V, --version print version number and configuration settings, then exit
22385 --config print configuration, then exit
22386 -q, --quiet, --silent
22387 do not print progress messages
22388 -d, --debug don't remove temporary files
22389 --recheck update $as_me by reconfiguring in the same conditions
22390 --file=FILE[:TEMPLATE]
22391 instantiate the configuration file FILE
22392
22393 Configuration files:
22394 $config_files
22395
22396 Configuration commands:
22397 $config_commands
22398
22399 Report bugs to <saurik@saurik.com>.
22400 Cycript home page: <http://www.cycript.org/>."
22401
22402 _ACEOF
22403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22404 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22405 ac_cs_version="\\
22406 Cycript config.status 0.9
22407 configured by $0, generated by GNU Autoconf 2.69,
22408 with options \\"\$ac_cs_config\\"
22409
22410 Copyright (C) 2012 Free Software Foundation, Inc.
22411 This config.status script is free software; the Free Software Foundation
22412 gives unlimited permission to copy, distribute and modify it."
22413
22414 ac_pwd='$ac_pwd'
22415 srcdir='$srcdir'
22416 INSTALL='$INSTALL'
22417 MKDIR_P='$MKDIR_P'
22418 AWK='$AWK'
22419 test -n "\$AWK" || AWK=awk
22420 _ACEOF
22421
22422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22423 # The default lists apply if the user does not specify any file.
22424 ac_need_defaults=:
22425 while test $# != 0
22426 do
22427 case $1 in
22428 --*=?*)
22429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22431 ac_shift=:
22432 ;;
22433 --*=)
22434 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22435 ac_optarg=
22436 ac_shift=:
22437 ;;
22438 *)
22439 ac_option=$1
22440 ac_optarg=$2
22441 ac_shift=shift
22442 ;;
22443 esac
22444
22445 case $ac_option in
22446 # Handling of the options.
22447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22448 ac_cs_recheck=: ;;
22449 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22450 $as_echo "$ac_cs_version"; exit ;;
22451 --config | --confi | --conf | --con | --co | --c )
22452 $as_echo "$ac_cs_config"; exit ;;
22453 --debug | --debu | --deb | --de | --d | -d )
22454 debug=: ;;
22455 --file | --fil | --fi | --f )
22456 $ac_shift
22457 case $ac_optarg in
22458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22459 '') as_fn_error $? "missing file argument" ;;
22460 esac
22461 as_fn_append CONFIG_FILES " '$ac_optarg'"
22462 ac_need_defaults=false;;
22463 --he | --h | --help | --hel | -h )
22464 $as_echo "$ac_cs_usage"; exit ;;
22465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22467 ac_cs_silent=: ;;
22468
22469 # This is an error.
22470 -*) as_fn_error $? "unrecognized option: \`$1'
22471 Try \`$0 --help' for more information." ;;
22472
22473 *) as_fn_append ac_config_targets " $1"
22474 ac_need_defaults=false ;;
22475
22476 esac
22477 shift
22478 done
22479
22480 ac_configure_extra_args=
22481
22482 if $ac_cs_silent; then
22483 exec 6>/dev/null
22484 ac_configure_extra_args="$ac_configure_extra_args --silent"
22485 fi
22486
22487 _ACEOF
22488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22489 if \$ac_cs_recheck; then
22490 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22491 shift
22492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22493 CONFIG_SHELL='$SHELL'
22494 export CONFIG_SHELL
22495 exec "\$@"
22496 fi
22497
22498 _ACEOF
22499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22500 exec 5>>config.log
22501 {
22502 echo
22503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22504 ## Running $as_me. ##
22505 _ASBOX
22506 $as_echo "$ac_log"
22507 } >&5
22508
22509 _ACEOF
22510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22511 #
22512 # INIT-COMMANDS
22513 #
22514 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22515
22516
22517 # The HP-UX ksh and POSIX shell print the target directory to stdout
22518 # if CDPATH is set.
22519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22520
22521 sed_quote_subst='$sed_quote_subst'
22522 double_quote_subst='$double_quote_subst'
22523 delay_variable_subst='$delay_variable_subst'
22524 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22525 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22526 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22527 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22528 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22529 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22530 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22531 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22532 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22533 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22534 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22535 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22536 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22537 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22538 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22539 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22540 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22541 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22542 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22543 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22544 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22545 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22546 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22547 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22548 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22549 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22550 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22551 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22552 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22553 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22554 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22555 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22556 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22557 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22558 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22559 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22560 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22561 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22562 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22563 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22564 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22565 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22566 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22567 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22568 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22569 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22570 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22571 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22572 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22573 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22574 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22575 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22576 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22577 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22578 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22579 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22580 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"`'
22581 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22582 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22583 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22584 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22585 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22586 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22587 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22588 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22589 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22590 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22591 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22592 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22593 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22594 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22595 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22596 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22597 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22598 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22599 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22600 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22601 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22602 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22603 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22604 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22605 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22606 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22607 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22608 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22609 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22610 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22611 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22612 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22613 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22614 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22615 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22616 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22617 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22618 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22619 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22620 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22621 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22622 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22623 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22624 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22625 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22626 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22627 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22628 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22629 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22630 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22631 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22632 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22633 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22634 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22635 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22636 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22637 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22638 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22639 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22640 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22641 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22642 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22643 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22644 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22645 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22646 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22647 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22648 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22649 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22650 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22651 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22652 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22653 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22654 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22655 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22656 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22657 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22658 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22659 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22660 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22661 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22662 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22663 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22664 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22665 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22666 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22667 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22668 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22669 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22670 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22671 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22672 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22673 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22674 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22675 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22676 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22677 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22678 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22679 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22680 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22681 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22682 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22683 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22684 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22685 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22686 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22687 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22688 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22689 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22690 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22691 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22692 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22693 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22694 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22695 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22696 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22697 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22698 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22699 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22700 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22701 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22702 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22703 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22704 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22705 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22706 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22707 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22708
22709 LTCC='$LTCC'
22710 LTCFLAGS='$LTCFLAGS'
22711 compiler='$compiler_DEFAULT'
22712
22713 # A function that is used when there is no print builtin or printf.
22714 func_fallback_echo ()
22715 {
22716 eval 'cat <<_LTECHO_EOF
22717 \$1
22718 _LTECHO_EOF'
22719 }
22720
22721 # Quote evaled strings.
22722 for var in SHELL \
22723 ECHO \
22724 PATH_SEPARATOR \
22725 SED \
22726 GREP \
22727 EGREP \
22728 FGREP \
22729 LD \
22730 NM \
22731 LN_S \
22732 lt_SP2NL \
22733 lt_NL2SP \
22734 reload_flag \
22735 OBJDUMP \
22736 deplibs_check_method \
22737 file_magic_cmd \
22738 file_magic_glob \
22739 want_nocaseglob \
22740 DLLTOOL \
22741 sharedlib_from_linklib_cmd \
22742 AR \
22743 AR_FLAGS \
22744 archiver_list_spec \
22745 STRIP \
22746 RANLIB \
22747 CC \
22748 CFLAGS \
22749 compiler \
22750 lt_cv_sys_global_symbol_pipe \
22751 lt_cv_sys_global_symbol_to_cdecl \
22752 lt_cv_sys_global_symbol_to_c_name_address \
22753 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22754 nm_file_list_spec \
22755 lt_prog_compiler_no_builtin_flag \
22756 lt_prog_compiler_pic \
22757 lt_prog_compiler_wl \
22758 lt_prog_compiler_static \
22759 lt_cv_prog_compiler_c_o \
22760 need_locks \
22761 MANIFEST_TOOL \
22762 DSYMUTIL \
22763 NMEDIT \
22764 LIPO \
22765 OTOOL \
22766 OTOOL64 \
22767 shrext_cmds \
22768 export_dynamic_flag_spec \
22769 whole_archive_flag_spec \
22770 compiler_needs_object \
22771 with_gnu_ld \
22772 allow_undefined_flag \
22773 no_undefined_flag \
22774 hardcode_libdir_flag_spec \
22775 hardcode_libdir_separator \
22776 exclude_expsyms \
22777 include_expsyms \
22778 file_list_spec \
22779 variables_saved_for_relink \
22780 libname_spec \
22781 library_names_spec \
22782 soname_spec \
22783 install_override_mode \
22784 finish_eval \
22785 old_striplib \
22786 striplib \
22787 compiler_lib_search_dirs \
22788 predep_objects \
22789 postdep_objects \
22790 predeps \
22791 postdeps \
22792 compiler_lib_search_path \
22793 LD_CXX \
22794 reload_flag_CXX \
22795 compiler_CXX \
22796 lt_prog_compiler_no_builtin_flag_CXX \
22797 lt_prog_compiler_pic_CXX \
22798 lt_prog_compiler_wl_CXX \
22799 lt_prog_compiler_static_CXX \
22800 lt_cv_prog_compiler_c_o_CXX \
22801 export_dynamic_flag_spec_CXX \
22802 whole_archive_flag_spec_CXX \
22803 compiler_needs_object_CXX \
22804 with_gnu_ld_CXX \
22805 allow_undefined_flag_CXX \
22806 no_undefined_flag_CXX \
22807 hardcode_libdir_flag_spec_CXX \
22808 hardcode_libdir_separator_CXX \
22809 exclude_expsyms_CXX \
22810 include_expsyms_CXX \
22811 file_list_spec_CXX \
22812 compiler_lib_search_dirs_CXX \
22813 predep_objects_CXX \
22814 postdep_objects_CXX \
22815 predeps_CXX \
22816 postdeps_CXX \
22817 compiler_lib_search_path_CXX; do
22818 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22819 *[\\\\\\\`\\"\\\$]*)
22820 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22821 ;;
22822 *)
22823 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22824 ;;
22825 esac
22826 done
22827
22828 # Double-quote double-evaled strings.
22829 for var in reload_cmds \
22830 old_postinstall_cmds \
22831 old_postuninstall_cmds \
22832 old_archive_cmds \
22833 extract_expsyms_cmds \
22834 old_archive_from_new_cmds \
22835 old_archive_from_expsyms_cmds \
22836 archive_cmds \
22837 archive_expsym_cmds \
22838 module_cmds \
22839 module_expsym_cmds \
22840 export_symbols_cmds \
22841 prelink_cmds \
22842 postlink_cmds \
22843 postinstall_cmds \
22844 postuninstall_cmds \
22845 finish_cmds \
22846 sys_lib_search_path_spec \
22847 sys_lib_dlsearch_path_spec \
22848 reload_cmds_CXX \
22849 old_archive_cmds_CXX \
22850 old_archive_from_new_cmds_CXX \
22851 old_archive_from_expsyms_cmds_CXX \
22852 archive_cmds_CXX \
22853 archive_expsym_cmds_CXX \
22854 module_cmds_CXX \
22855 module_expsym_cmds_CXX \
22856 export_symbols_cmds_CXX \
22857 prelink_cmds_CXX \
22858 postlink_cmds_CXX; do
22859 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22860 *[\\\\\\\`\\"\\\$]*)
22861 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22862 ;;
22863 *)
22864 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22865 ;;
22866 esac
22867 done
22868
22869 ac_aux_dir='$ac_aux_dir'
22870 xsi_shell='$xsi_shell'
22871 lt_shell_append='$lt_shell_append'
22872
22873 # See if we are running on zsh, and set the options which allow our
22874 # commands through without removal of \ escapes INIT.
22875 if test -n "\${ZSH_VERSION+set}" ; then
22876 setopt NO_GLOB_SUBST
22877 fi
22878
22879
22880 PACKAGE='$PACKAGE'
22881 VERSION='$VERSION'
22882 TIMESTAMP='$TIMESTAMP'
22883 RM='$RM'
22884 ofile='$ofile'
22885
22886
22887
22888
22889
22890
22891 _ACEOF
22892
22893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22894
22895 # Handling of arguments.
22896 for ac_config_target in $ac_config_targets
22897 do
22898 case $ac_config_target in
22899 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22900 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22901 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22902 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
22903
22904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22905 esac
22906 done
22907
22908
22909 # If the user did not use the arguments to specify the items to instantiate,
22910 # then the envvar interface is used. Set only those that are not.
22911 # We use the long form for the default assignment because of an extremely
22912 # bizarre bug on SunOS 4.1.3.
22913 if $ac_need_defaults; then
22914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22916 fi
22917
22918 # Have a temporary directory for convenience. Make it in the build tree
22919 # simply because there is no reason against having it here, and in addition,
22920 # creating and moving files from /tmp can sometimes cause problems.
22921 # Hook for its removal unless debugging.
22922 # Note that there is a small window in which the directory will not be cleaned:
22923 # after its creation but before its name has been assigned to `$tmp'.
22924 $debug ||
22925 {
22926 tmp= ac_tmp=
22927 trap 'exit_status=$?
22928 : "${ac_tmp:=$tmp}"
22929 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22930 ' 0
22931 trap 'as_fn_exit 1' 1 2 13 15
22932 }
22933 # Create a (secure) tmp directory for tmp files.
22934
22935 {
22936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22937 test -d "$tmp"
22938 } ||
22939 {
22940 tmp=./conf$$-$RANDOM
22941 (umask 077 && mkdir "$tmp")
22942 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22943 ac_tmp=$tmp
22944
22945 # Set up the scripts for CONFIG_FILES section.
22946 # No need to generate them if there are no CONFIG_FILES.
22947 # This happens for instance with `./config.status config.h'.
22948 if test -n "$CONFIG_FILES"; then
22949
22950
22951 ac_cr=`echo X | tr X '\015'`
22952 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22953 # But we know of no other shell where ac_cr would be empty at this
22954 # point, so we can use a bashism as a fallback.
22955 if test "x$ac_cr" = x; then
22956 eval ac_cr=\$\'\\r\'
22957 fi
22958 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22959 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22960 ac_cs_awk_cr='\\r'
22961 else
22962 ac_cs_awk_cr=$ac_cr
22963 fi
22964
22965 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22966 _ACEOF
22967
22968
22969 {
22970 echo "cat >conf$$subs.awk <<_ACEOF" &&
22971 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22972 echo "_ACEOF"
22973 } >conf$$subs.sh ||
22974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22975 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22976 ac_delim='%!_!# '
22977 for ac_last_try in false false false false false :; do
22978 . ./conf$$subs.sh ||
22979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22980
22981 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22982 if test $ac_delim_n = $ac_delim_num; then
22983 break
22984 elif $ac_last_try; then
22985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22986 else
22987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22988 fi
22989 done
22990 rm -f conf$$subs.sh
22991
22992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22993 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22994 _ACEOF
22995 sed -n '
22996 h
22997 s/^/S["/; s/!.*/"]=/
22998 p
22999 g
23000 s/^[^!]*!//
23001 :repl
23002 t repl
23003 s/'"$ac_delim"'$//
23004 t delim
23005 :nl
23006 h
23007 s/\(.\{148\}\)..*/\1/
23008 t more1
23009 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23010 p
23011 n
23012 b repl
23013 :more1
23014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23015 p
23016 g
23017 s/.\{148\}//
23018 t nl
23019 :delim
23020 h
23021 s/\(.\{148\}\)..*/\1/
23022 t more2
23023 s/["\\]/\\&/g; s/^/"/; s/$/"/
23024 p
23025 b
23026 :more2
23027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23028 p
23029 g
23030 s/.\{148\}//
23031 t delim
23032 ' <conf$$subs.awk | sed '
23033 /^[^""]/{
23034 N
23035 s/\n//
23036 }
23037 ' >>$CONFIG_STATUS || ac_write_fail=1
23038 rm -f conf$$subs.awk
23039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23040 _ACAWK
23041 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23042 for (key in S) S_is_set[key] = 1
23043 FS = "\a"
23044
23045 }
23046 {
23047 line = $ 0
23048 nfields = split(line, field, "@")
23049 substed = 0
23050 len = length(field[1])
23051 for (i = 2; i < nfields; i++) {
23052 key = field[i]
23053 keylen = length(key)
23054 if (S_is_set[key]) {
23055 value = S[key]
23056 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23057 len += length(value) + length(field[++i])
23058 substed = 1
23059 } else
23060 len += 1 + keylen
23061 }
23062
23063 print line
23064 }
23065
23066 _ACAWK
23067 _ACEOF
23068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23069 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23070 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23071 else
23072 cat
23073 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23074 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23075 _ACEOF
23076
23077 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23078 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23079 # trailing colons and then remove the whole line if VPATH becomes empty
23080 # (actually we leave an empty line to preserve line numbers).
23081 if test "x$srcdir" = x.; then
23082 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23083 h
23084 s///
23085 s/^/:/
23086 s/[ ]*$/:/
23087 s/:\$(srcdir):/:/g
23088 s/:\${srcdir}:/:/g
23089 s/:@srcdir@:/:/g
23090 s/^:*//
23091 s/:*$//
23092 x
23093 s/\(=[ ]*\).*/\1/
23094 G
23095 s/\n//
23096 s/^[^=]*=[ ]*$//
23097 }'
23098 fi
23099
23100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23101 fi # test -n "$CONFIG_FILES"
23102
23103
23104 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
23105 shift
23106 for ac_tag
23107 do
23108 case $ac_tag in
23109 :[FHLC]) ac_mode=$ac_tag; continue;;
23110 esac
23111 case $ac_mode$ac_tag in
23112 :[FHL]*:*);;
23113 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23114 :[FH]-) ac_tag=-:-;;
23115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23116 esac
23117 ac_save_IFS=$IFS
23118 IFS=:
23119 set x $ac_tag
23120 IFS=$ac_save_IFS
23121 shift
23122 ac_file=$1
23123 shift
23124
23125 case $ac_mode in
23126 :L) ac_source=$1;;
23127 :[FH])
23128 ac_file_inputs=
23129 for ac_f
23130 do
23131 case $ac_f in
23132 -) ac_f="$ac_tmp/stdin";;
23133 *) # Look for the file first in the build tree, then in the source tree
23134 # (if the path is not absolute). The absolute path cannot be DOS-style,
23135 # because $ac_f cannot contain `:'.
23136 test -f "$ac_f" ||
23137 case $ac_f in
23138 [\\/$]*) false;;
23139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23140 esac ||
23141 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23142 esac
23143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23144 as_fn_append ac_file_inputs " '$ac_f'"
23145 done
23146
23147 # Let's still pretend it is `configure' which instantiates (i.e., don't
23148 # use $as_me), people would be surprised to read:
23149 # /* config.h. Generated by config.status. */
23150 configure_input='Generated from '`
23151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23152 `' by configure.'
23153 if test x"$ac_file" != x-; then
23154 configure_input="$ac_file. $configure_input"
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23156 $as_echo "$as_me: creating $ac_file" >&6;}
23157 fi
23158 # Neutralize special characters interpreted by sed in replacement strings.
23159 case $configure_input in #(
23160 *\&* | *\|* | *\\* )
23161 ac_sed_conf_input=`$as_echo "$configure_input" |
23162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23163 *) ac_sed_conf_input=$configure_input;;
23164 esac
23165
23166 case $ac_tag in
23167 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23169 esac
23170 ;;
23171 esac
23172
23173 ac_dir=`$as_dirname -- "$ac_file" ||
23174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23175 X"$ac_file" : 'X\(//\)[^/]' \| \
23176 X"$ac_file" : 'X\(//\)$' \| \
23177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23178 $as_echo X"$ac_file" |
23179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23180 s//\1/
23181 q
23182 }
23183 /^X\(\/\/\)[^/].*/{
23184 s//\1/
23185 q
23186 }
23187 /^X\(\/\/\)$/{
23188 s//\1/
23189 q
23190 }
23191 /^X\(\/\).*/{
23192 s//\1/
23193 q
23194 }
23195 s/.*/./; q'`
23196 as_dir="$ac_dir"; as_fn_mkdir_p
23197 ac_builddir=.
23198
23199 case "$ac_dir" in
23200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23201 *)
23202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23203 # A ".." for each directory in $ac_dir_suffix.
23204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23205 case $ac_top_builddir_sub in
23206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23208 esac ;;
23209 esac
23210 ac_abs_top_builddir=$ac_pwd
23211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23212 # for backward compatibility:
23213 ac_top_builddir=$ac_top_build_prefix
23214
23215 case $srcdir in
23216 .) # We are building in place.
23217 ac_srcdir=.
23218 ac_top_srcdir=$ac_top_builddir_sub
23219 ac_abs_top_srcdir=$ac_pwd ;;
23220 [\\/]* | ?:[\\/]* ) # Absolute name.
23221 ac_srcdir=$srcdir$ac_dir_suffix;
23222 ac_top_srcdir=$srcdir
23223 ac_abs_top_srcdir=$srcdir ;;
23224 *) # Relative name.
23225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23226 ac_top_srcdir=$ac_top_build_prefix$srcdir
23227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23228 esac
23229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23230
23231
23232 case $ac_mode in
23233 :F)
23234 #
23235 # CONFIG_FILE
23236 #
23237
23238 case $INSTALL in
23239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23241 esac
23242 ac_MKDIR_P=$MKDIR_P
23243 case $MKDIR_P in
23244 [\\/$]* | ?:[\\/]* ) ;;
23245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23246 esac
23247 _ACEOF
23248
23249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23250 # If the template does not know about datarootdir, expand it.
23251 # FIXME: This hack should be removed a few years after 2.60.
23252 ac_datarootdir_hack=; ac_datarootdir_seen=
23253 ac_sed_dataroot='
23254 /datarootdir/ {
23255 p
23256 q
23257 }
23258 /@datadir@/p
23259 /@docdir@/p
23260 /@infodir@/p
23261 /@localedir@/p
23262 /@mandir@/p'
23263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23264 *datarootdir*) ac_datarootdir_seen=yes;;
23265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23268 _ACEOF
23269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23270 ac_datarootdir_hack='
23271 s&@datadir@&$datadir&g
23272 s&@docdir@&$docdir&g
23273 s&@infodir@&$infodir&g
23274 s&@localedir@&$localedir&g
23275 s&@mandir@&$mandir&g
23276 s&\\\${datarootdir}&$datarootdir&g' ;;
23277 esac
23278 _ACEOF
23279
23280 # Neutralize VPATH when `$srcdir' = `.'.
23281 # Shell code in configure.ac might set extrasub.
23282 # FIXME: do we really want to maintain this feature?
23283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23284 ac_sed_extra="$ac_vpsub
23285 $extrasub
23286 _ACEOF
23287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23288 :t
23289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23290 s|@configure_input@|$ac_sed_conf_input|;t t
23291 s&@top_builddir@&$ac_top_builddir_sub&;t t
23292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23293 s&@srcdir@&$ac_srcdir&;t t
23294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23295 s&@top_srcdir@&$ac_top_srcdir&;t t
23296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23297 s&@builddir@&$ac_builddir&;t t
23298 s&@abs_builddir@&$ac_abs_builddir&;t t
23299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23300 s&@INSTALL@&$ac_INSTALL&;t t
23301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23302 $ac_datarootdir_hack
23303 "
23304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23305 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23306
23307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23308 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23310 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23312 which seems to be undefined. Please make sure it is defined" >&5
23313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23314 which seems to be undefined. Please make sure it is defined" >&2;}
23315
23316 rm -f "$ac_tmp/stdin"
23317 case $ac_file in
23318 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23319 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23320 esac \
23321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23322 ;;
23323
23324
23325 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23326 $as_echo "$as_me: executing $ac_file commands" >&6;}
23327 ;;
23328 esac
23329
23330
23331 case $ac_file$ac_mode in
23332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23333 # Older Autoconf quotes --file arguments for eval, but not when files
23334 # are listed without --file. Let's play safe and only enable the eval
23335 # if we detect the quoting.
23336 case $CONFIG_FILES in
23337 *\'*) eval set x "$CONFIG_FILES" ;;
23338 *) set x $CONFIG_FILES ;;
23339 esac
23340 shift
23341 for mf
23342 do
23343 # Strip MF so we end up with the name of the file.
23344 mf=`echo "$mf" | sed -e 's/:.*$//'`
23345 # Check whether this is an Automake generated Makefile or not.
23346 # We used to match only the files named 'Makefile.in', but
23347 # some people rename them; so instead we look at the file content.
23348 # Grep'ing the first line is not enough: some people post-process
23349 # each Makefile.in and add a new line on top of each file to say so.
23350 # Grep'ing the whole file is not good either: AIX grep has a line
23351 # limit of 2048, but all sed's we know have understand at least 4000.
23352 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23353 dirpart=`$as_dirname -- "$mf" ||
23354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23355 X"$mf" : 'X\(//\)[^/]' \| \
23356 X"$mf" : 'X\(//\)$' \| \
23357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23358 $as_echo X"$mf" |
23359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23360 s//\1/
23361 q
23362 }
23363 /^X\(\/\/\)[^/].*/{
23364 s//\1/
23365 q
23366 }
23367 /^X\(\/\/\)$/{
23368 s//\1/
23369 q
23370 }
23371 /^X\(\/\).*/{
23372 s//\1/
23373 q
23374 }
23375 s/.*/./; q'`
23376 else
23377 continue
23378 fi
23379 # Extract the definition of DEPDIR, am__include, and am__quote
23380 # from the Makefile without running 'make'.
23381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23382 test -z "$DEPDIR" && continue
23383 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23384 test -z "am__include" && continue
23385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23386 # Find all dependency output files, they are included files with
23387 # $(DEPDIR) in their names. We invoke sed twice because it is the
23388 # simplest approach to changing $(DEPDIR) to its actual value in the
23389 # expansion.
23390 for file in `sed -n "
23391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23393 # Make sure the directory exists.
23394 test -f "$dirpart/$file" && continue
23395 fdir=`$as_dirname -- "$file" ||
23396 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23397 X"$file" : 'X\(//\)[^/]' \| \
23398 X"$file" : 'X\(//\)$' \| \
23399 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23400 $as_echo X"$file" |
23401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23402 s//\1/
23403 q
23404 }
23405 /^X\(\/\/\)[^/].*/{
23406 s//\1/
23407 q
23408 }
23409 /^X\(\/\/\)$/{
23410 s//\1/
23411 q
23412 }
23413 /^X\(\/\).*/{
23414 s//\1/
23415 q
23416 }
23417 s/.*/./; q'`
23418 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23419 # echo "creating $dirpart/$file"
23420 echo '# dummy' > "$dirpart/$file"
23421 done
23422 done
23423 }
23424 ;;
23425 "libtool":C)
23426
23427 # See if we are running on zsh, and set the options which allow our
23428 # commands through without removal of \ escapes.
23429 if test -n "${ZSH_VERSION+set}" ; then
23430 setopt NO_GLOB_SUBST
23431 fi
23432
23433 cfgfile="${ofile}T"
23434 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23435 $RM "$cfgfile"
23436
23437 cat <<_LT_EOF >> "$cfgfile"
23438 #! $SHELL
23439
23440 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23441 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23442 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23443 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23444 #
23445 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23446 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23447 # Foundation, Inc.
23448 # Written by Gordon Matzigkeit, 1996
23449 #
23450 # This file is part of GNU Libtool.
23451 #
23452 # GNU Libtool is free software; you can redistribute it and/or
23453 # modify it under the terms of the GNU General Public License as
23454 # published by the Free Software Foundation; either version 2 of
23455 # the License, or (at your option) any later version.
23456 #
23457 # As a special exception to the GNU General Public License,
23458 # if you distribute this file as part of a program or library that
23459 # is built using GNU Libtool, you may include this file under the
23460 # same distribution terms that you use for the rest of that program.
23461 #
23462 # GNU Libtool is distributed in the hope that it will be useful,
23463 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23465 # GNU General Public License for more details.
23466 #
23467 # You should have received a copy of the GNU General Public License
23468 # along with GNU Libtool; see the file COPYING. If not, a copy
23469 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23470 # obtained by writing to the Free Software Foundation, Inc.,
23471 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23472
23473
23474 # The names of the tagged configurations supported by this script.
23475 available_tags="CXX "
23476
23477 # ### BEGIN LIBTOOL CONFIG
23478
23479 # Which release of libtool.m4 was used?
23480 macro_version=$macro_version
23481 macro_revision=$macro_revision
23482
23483 # Whether or not to build static libraries.
23484 build_old_libs=$enable_static
23485
23486 # Whether or not to build shared libraries.
23487 build_libtool_libs=$enable_shared
23488
23489 # What type of objects to build.
23490 pic_mode=$pic_mode
23491
23492 # Whether or not to optimize for fast installation.
23493 fast_install=$enable_fast_install
23494
23495 # Shell to use when invoking shell scripts.
23496 SHELL=$lt_SHELL
23497
23498 # An echo program that protects backslashes.
23499 ECHO=$lt_ECHO
23500
23501 # The PATH separator for the build system.
23502 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23503
23504 # The host system.
23505 host_alias=$host_alias
23506 host=$host
23507 host_os=$host_os
23508
23509 # The build system.
23510 build_alias=$build_alias
23511 build=$build
23512 build_os=$build_os
23513
23514 # A sed program that does not truncate output.
23515 SED=$lt_SED
23516
23517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23518 Xsed="\$SED -e 1s/^X//"
23519
23520 # A grep program that handles long lines.
23521 GREP=$lt_GREP
23522
23523 # An ERE matcher.
23524 EGREP=$lt_EGREP
23525
23526 # A literal string matcher.
23527 FGREP=$lt_FGREP
23528
23529 # A BSD- or MS-compatible name lister.
23530 NM=$lt_NM
23531
23532 # Whether we need soft or hard links.
23533 LN_S=$lt_LN_S
23534
23535 # What is the maximum length of a command?
23536 max_cmd_len=$max_cmd_len
23537
23538 # Object file suffix (normally "o").
23539 objext=$ac_objext
23540
23541 # Executable file suffix (normally "").
23542 exeext=$exeext
23543
23544 # whether the shell understands "unset".
23545 lt_unset=$lt_unset
23546
23547 # turn spaces into newlines.
23548 SP2NL=$lt_lt_SP2NL
23549
23550 # turn newlines into spaces.
23551 NL2SP=$lt_lt_NL2SP
23552
23553 # convert \$build file names to \$host format.
23554 to_host_file_cmd=$lt_cv_to_host_file_cmd
23555
23556 # convert \$build files to toolchain format.
23557 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23558
23559 # An object symbol dumper.
23560 OBJDUMP=$lt_OBJDUMP
23561
23562 # Method to check whether dependent libraries are shared objects.
23563 deplibs_check_method=$lt_deplibs_check_method
23564
23565 # Command to use when deplibs_check_method = "file_magic".
23566 file_magic_cmd=$lt_file_magic_cmd
23567
23568 # How to find potential files when deplibs_check_method = "file_magic".
23569 file_magic_glob=$lt_file_magic_glob
23570
23571 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23572 want_nocaseglob=$lt_want_nocaseglob
23573
23574 # DLL creation program.
23575 DLLTOOL=$lt_DLLTOOL
23576
23577 # Command to associate shared and link libraries.
23578 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23579
23580 # The archiver.
23581 AR=$lt_AR
23582
23583 # Flags to create an archive.
23584 AR_FLAGS=$lt_AR_FLAGS
23585
23586 # How to feed a file listing to the archiver.
23587 archiver_list_spec=$lt_archiver_list_spec
23588
23589 # A symbol stripping program.
23590 STRIP=$lt_STRIP
23591
23592 # Commands used to install an old-style archive.
23593 RANLIB=$lt_RANLIB
23594 old_postinstall_cmds=$lt_old_postinstall_cmds
23595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23596
23597 # Whether to use a lock for old archive extraction.
23598 lock_old_archive_extraction=$lock_old_archive_extraction
23599
23600 # A C compiler.
23601 LTCC=$lt_CC
23602
23603 # LTCC compiler flags.
23604 LTCFLAGS=$lt_CFLAGS
23605
23606 # Take the output of nm and produce a listing of raw symbols and C names.
23607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23608
23609 # Transform the output of nm in a proper C declaration.
23610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23611
23612 # Transform the output of nm in a C name address pair.
23613 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23614
23615 # Transform the output of nm in a C name address pair when lib prefix is needed.
23616 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23617
23618 # Specify filename containing input files for \$NM.
23619 nm_file_list_spec=$lt_nm_file_list_spec
23620
23621 # The root where to search for dependent libraries,and in which our libraries should be installed.
23622 lt_sysroot=$lt_sysroot
23623
23624 # The name of the directory that contains temporary libtool files.
23625 objdir=$objdir
23626
23627 # Used to examine libraries when file_magic_cmd begins with "file".
23628 MAGIC_CMD=$MAGIC_CMD
23629
23630 # Must we lock files when doing compilation?
23631 need_locks=$lt_need_locks
23632
23633 # Manifest tool.
23634 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23635
23636 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23637 DSYMUTIL=$lt_DSYMUTIL
23638
23639 # Tool to change global to local symbols on Mac OS X.
23640 NMEDIT=$lt_NMEDIT
23641
23642 # Tool to manipulate fat objects and archives on Mac OS X.
23643 LIPO=$lt_LIPO
23644
23645 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23646 OTOOL=$lt_OTOOL
23647
23648 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23649 OTOOL64=$lt_OTOOL64
23650
23651 # Old archive suffix (normally "a").
23652 libext=$libext
23653
23654 # Shared library suffix (normally ".so").
23655 shrext_cmds=$lt_shrext_cmds
23656
23657 # The commands to extract the exported symbol list from a shared archive.
23658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23659
23660 # Variables whose values should be saved in libtool wrapper scripts and
23661 # restored at link time.
23662 variables_saved_for_relink=$lt_variables_saved_for_relink
23663
23664 # Do we need the "lib" prefix for modules?
23665 need_lib_prefix=$need_lib_prefix
23666
23667 # Do we need a version for libraries?
23668 need_version=$need_version
23669
23670 # Library versioning type.
23671 version_type=$version_type
23672
23673 # Shared library runtime path variable.
23674 runpath_var=$runpath_var
23675
23676 # Shared library path variable.
23677 shlibpath_var=$shlibpath_var
23678
23679 # Is shlibpath searched before the hard-coded library search path?
23680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23681
23682 # Format of library name prefix.
23683 libname_spec=$lt_libname_spec
23684
23685 # List of archive names. First name is the real one, the rest are links.
23686 # The last name is the one that the linker finds with -lNAME
23687 library_names_spec=$lt_library_names_spec
23688
23689 # The coded name of the library, if different from the real name.
23690 soname_spec=$lt_soname_spec
23691
23692 # Permission mode override for installation of shared libraries.
23693 install_override_mode=$lt_install_override_mode
23694
23695 # Command to use after installation of a shared archive.
23696 postinstall_cmds=$lt_postinstall_cmds
23697
23698 # Command to use after uninstallation of a shared archive.
23699 postuninstall_cmds=$lt_postuninstall_cmds
23700
23701 # Commands used to finish a libtool library installation in a directory.
23702 finish_cmds=$lt_finish_cmds
23703
23704 # As "finish_cmds", except a single script fragment to be evaled but
23705 # not shown.
23706 finish_eval=$lt_finish_eval
23707
23708 # Whether we should hardcode library paths into libraries.
23709 hardcode_into_libs=$hardcode_into_libs
23710
23711 # Compile-time system search path for libraries.
23712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23713
23714 # Run-time system search path for libraries.
23715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23716
23717 # Whether dlopen is supported.
23718 dlopen_support=$enable_dlopen
23719
23720 # Whether dlopen of programs is supported.
23721 dlopen_self=$enable_dlopen_self
23722
23723 # Whether dlopen of statically linked programs is supported.
23724 dlopen_self_static=$enable_dlopen_self_static
23725
23726 # Commands to strip libraries.
23727 old_striplib=$lt_old_striplib
23728 striplib=$lt_striplib
23729
23730
23731 # The linker used to build libraries.
23732 LD=$lt_LD
23733
23734 # How to create reloadable object files.
23735 reload_flag=$lt_reload_flag
23736 reload_cmds=$lt_reload_cmds
23737
23738 # Commands used to build an old-style archive.
23739 old_archive_cmds=$lt_old_archive_cmds
23740
23741 # A language specific compiler.
23742 CC=$lt_compiler
23743
23744 # Is the compiler the GNU compiler?
23745 with_gcc=$GCC
23746
23747 # Compiler flag to turn off builtin functions.
23748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23749
23750 # Additional compiler flags for building library objects.
23751 pic_flag=$lt_lt_prog_compiler_pic
23752
23753 # How to pass a linker flag through the compiler.
23754 wl=$lt_lt_prog_compiler_wl
23755
23756 # Compiler flag to prevent dynamic linking.
23757 link_static_flag=$lt_lt_prog_compiler_static
23758
23759 # Does compiler simultaneously support -c and -o options?
23760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23761
23762 # Whether or not to add -lc for building shared libraries.
23763 build_libtool_need_lc=$archive_cmds_need_lc
23764
23765 # Whether or not to disallow shared libs when runtime libs are static.
23766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23767
23768 # Compiler flag to allow reflexive dlopens.
23769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23770
23771 # Compiler flag to generate shared objects directly from archives.
23772 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23773
23774 # Whether the compiler copes with passing no objects directly.
23775 compiler_needs_object=$lt_compiler_needs_object
23776
23777 # Create an old-style archive from a shared archive.
23778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23779
23780 # Create a temporary old-style archive to link instead of a shared archive.
23781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23782
23783 # Commands used to build a shared archive.
23784 archive_cmds=$lt_archive_cmds
23785 archive_expsym_cmds=$lt_archive_expsym_cmds
23786
23787 # Commands used to build a loadable module if different from building
23788 # a shared archive.
23789 module_cmds=$lt_module_cmds
23790 module_expsym_cmds=$lt_module_expsym_cmds
23791
23792 # Whether we are building with GNU ld or not.
23793 with_gnu_ld=$lt_with_gnu_ld
23794
23795 # Flag that allows shared libraries with undefined symbols to be built.
23796 allow_undefined_flag=$lt_allow_undefined_flag
23797
23798 # Flag that enforces no undefined symbols.
23799 no_undefined_flag=$lt_no_undefined_flag
23800
23801 # Flag to hardcode \$libdir into a binary during linking.
23802 # This must work even if \$libdir does not exist
23803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23804
23805 # Whether we need a single "-rpath" flag with a separated argument.
23806 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23807
23808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23809 # DIR into the resulting binary.
23810 hardcode_direct=$hardcode_direct
23811
23812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23813 # DIR into the resulting binary and the resulting library dependency is
23814 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23815 # library is relocated.
23816 hardcode_direct_absolute=$hardcode_direct_absolute
23817
23818 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23819 # into the resulting binary.
23820 hardcode_minus_L=$hardcode_minus_L
23821
23822 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23823 # into the resulting binary.
23824 hardcode_shlibpath_var=$hardcode_shlibpath_var
23825
23826 # Set to "yes" if building a shared library automatically hardcodes DIR
23827 # into the library and all subsequent libraries and executables linked
23828 # against it.
23829 hardcode_automatic=$hardcode_automatic
23830
23831 # Set to yes if linker adds runtime paths of dependent libraries
23832 # to runtime path list.
23833 inherit_rpath=$inherit_rpath
23834
23835 # Whether libtool must link a program against all its dependency libraries.
23836 link_all_deplibs=$link_all_deplibs
23837
23838 # Set to "yes" if exported symbols are required.
23839 always_export_symbols=$always_export_symbols
23840
23841 # The commands to list exported symbols.
23842 export_symbols_cmds=$lt_export_symbols_cmds
23843
23844 # Symbols that should not be listed in the preloaded symbols.
23845 exclude_expsyms=$lt_exclude_expsyms
23846
23847 # Symbols that must always be exported.
23848 include_expsyms=$lt_include_expsyms
23849
23850 # Commands necessary for linking programs (against libraries) with templates.
23851 prelink_cmds=$lt_prelink_cmds
23852
23853 # Commands necessary for finishing linking programs.
23854 postlink_cmds=$lt_postlink_cmds
23855
23856 # Specify filename containing input files.
23857 file_list_spec=$lt_file_list_spec
23858
23859 # How to hardcode a shared library path into an executable.
23860 hardcode_action=$hardcode_action
23861
23862 # The directories searched by this compiler when creating a shared library.
23863 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23864
23865 # Dependencies to place before and after the objects being linked to
23866 # create a shared library.
23867 predep_objects=$lt_predep_objects
23868 postdep_objects=$lt_postdep_objects
23869 predeps=$lt_predeps
23870 postdeps=$lt_postdeps
23871
23872 # The library search path used internally by the compiler when linking
23873 # a shared library.
23874 compiler_lib_search_path=$lt_compiler_lib_search_path
23875
23876 # ### END LIBTOOL CONFIG
23877
23878 _LT_EOF
23879
23880 case $host_os in
23881 aix3*)
23882 cat <<\_LT_EOF >> "$cfgfile"
23883 # AIX sometimes has problems with the GCC collect2 program. For some
23884 # reason, if we set the COLLECT_NAMES environment variable, the problems
23885 # vanish in a puff of smoke.
23886 if test "X${COLLECT_NAMES+set}" != Xset; then
23887 COLLECT_NAMES=
23888 export COLLECT_NAMES
23889 fi
23890 _LT_EOF
23891 ;;
23892 esac
23893
23894
23895 ltmain="$ac_aux_dir/ltmain.sh"
23896
23897
23898 # We use sed instead of cat because bash on DJGPP gets confused if
23899 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23900 # text mode, it properly converts lines to CR/LF. This bash problem
23901 # is reportedly fixed, but why not run on old versions too?
23902 sed '$q' "$ltmain" >> "$cfgfile" \
23903 || (rm -f "$cfgfile"; exit 1)
23904
23905 if test x"$xsi_shell" = xyes; then
23906 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23907 func_dirname ()\
23908 {\
23909 \ case ${1} in\
23910 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23911 \ * ) func_dirname_result="${3}" ;;\
23912 \ esac\
23913 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23914 && mv -f "$cfgfile.tmp" "$cfgfile" \
23915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23916 test 0 -eq $? || _lt_function_replace_fail=:
23917
23918
23919 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23920 func_basename ()\
23921 {\
23922 \ func_basename_result="${1##*/}"\
23923 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23924 && mv -f "$cfgfile.tmp" "$cfgfile" \
23925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23926 test 0 -eq $? || _lt_function_replace_fail=:
23927
23928
23929 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23930 func_dirname_and_basename ()\
23931 {\
23932 \ case ${1} in\
23933 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23934 \ * ) func_dirname_result="${3}" ;;\
23935 \ esac\
23936 \ func_basename_result="${1##*/}"\
23937 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23938 && mv -f "$cfgfile.tmp" "$cfgfile" \
23939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23940 test 0 -eq $? || _lt_function_replace_fail=:
23941
23942
23943 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23944 func_stripname ()\
23945 {\
23946 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23947 \ # positional parameters, so assign one to ordinary parameter first.\
23948 \ func_stripname_result=${3}\
23949 \ func_stripname_result=${func_stripname_result#"${1}"}\
23950 \ func_stripname_result=${func_stripname_result%"${2}"}\
23951 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23952 && mv -f "$cfgfile.tmp" "$cfgfile" \
23953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23954 test 0 -eq $? || _lt_function_replace_fail=:
23955
23956
23957 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23958 func_split_long_opt ()\
23959 {\
23960 \ func_split_long_opt_name=${1%%=*}\
23961 \ func_split_long_opt_arg=${1#*=}\
23962 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23963 && mv -f "$cfgfile.tmp" "$cfgfile" \
23964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23965 test 0 -eq $? || _lt_function_replace_fail=:
23966
23967
23968 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23969 func_split_short_opt ()\
23970 {\
23971 \ func_split_short_opt_arg=${1#??}\
23972 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23973 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23974 && mv -f "$cfgfile.tmp" "$cfgfile" \
23975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23976 test 0 -eq $? || _lt_function_replace_fail=:
23977
23978
23979 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23980 func_lo2o ()\
23981 {\
23982 \ case ${1} in\
23983 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23984 \ *) func_lo2o_result=${1} ;;\
23985 \ esac\
23986 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23987 && mv -f "$cfgfile.tmp" "$cfgfile" \
23988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23989 test 0 -eq $? || _lt_function_replace_fail=:
23990
23991
23992 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23993 func_xform ()\
23994 {\
23995 func_xform_result=${1%.*}.lo\
23996 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23997 && mv -f "$cfgfile.tmp" "$cfgfile" \
23998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23999 test 0 -eq $? || _lt_function_replace_fail=:
24000
24001
24002 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24003 func_arith ()\
24004 {\
24005 func_arith_result=$(( $* ))\
24006 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24007 && mv -f "$cfgfile.tmp" "$cfgfile" \
24008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24009 test 0 -eq $? || _lt_function_replace_fail=:
24010
24011
24012 sed -e '/^func_len ()$/,/^} # func_len /c\
24013 func_len ()\
24014 {\
24015 func_len_result=${#1}\
24016 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24017 && mv -f "$cfgfile.tmp" "$cfgfile" \
24018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24019 test 0 -eq $? || _lt_function_replace_fail=:
24020
24021 fi
24022
24023 if test x"$lt_shell_append" = xyes; then
24024 sed -e '/^func_append ()$/,/^} # func_append /c\
24025 func_append ()\
24026 {\
24027 eval "${1}+=\\${2}"\
24028 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24029 && mv -f "$cfgfile.tmp" "$cfgfile" \
24030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24031 test 0 -eq $? || _lt_function_replace_fail=:
24032
24033
24034 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24035 func_append_quoted ()\
24036 {\
24037 \ func_quote_for_eval "${2}"\
24038 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24039 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24040 && mv -f "$cfgfile.tmp" "$cfgfile" \
24041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24042 test 0 -eq $? || _lt_function_replace_fail=:
24043
24044
24045 # Save a `func_append' function call where possible by direct use of '+='
24046 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24047 && mv -f "$cfgfile.tmp" "$cfgfile" \
24048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24049 test 0 -eq $? || _lt_function_replace_fail=:
24050 else
24051 # Save a `func_append' function call even when '+=' is not available
24052 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24053 && mv -f "$cfgfile.tmp" "$cfgfile" \
24054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24055 test 0 -eq $? || _lt_function_replace_fail=:
24056 fi
24057
24058 if test x"$_lt_function_replace_fail" = x":"; then
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24060 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24061 fi
24062
24063
24064 mv -f "$cfgfile" "$ofile" ||
24065 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24066 chmod +x "$ofile"
24067
24068
24069 cat <<_LT_EOF >> "$ofile"
24070
24071 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24072
24073 # The linker used to build libraries.
24074 LD=$lt_LD_CXX
24075
24076 # How to create reloadable object files.
24077 reload_flag=$lt_reload_flag_CXX
24078 reload_cmds=$lt_reload_cmds_CXX
24079
24080 # Commands used to build an old-style archive.
24081 old_archive_cmds=$lt_old_archive_cmds_CXX
24082
24083 # A language specific compiler.
24084 CC=$lt_compiler_CXX
24085
24086 # Is the compiler the GNU compiler?
24087 with_gcc=$GCC_CXX
24088
24089 # Compiler flag to turn off builtin functions.
24090 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24091
24092 # Additional compiler flags for building library objects.
24093 pic_flag=$lt_lt_prog_compiler_pic_CXX
24094
24095 # How to pass a linker flag through the compiler.
24096 wl=$lt_lt_prog_compiler_wl_CXX
24097
24098 # Compiler flag to prevent dynamic linking.
24099 link_static_flag=$lt_lt_prog_compiler_static_CXX
24100
24101 # Does compiler simultaneously support -c and -o options?
24102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24103
24104 # Whether or not to add -lc for building shared libraries.
24105 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24106
24107 # Whether or not to disallow shared libs when runtime libs are static.
24108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24109
24110 # Compiler flag to allow reflexive dlopens.
24111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24112
24113 # Compiler flag to generate shared objects directly from archives.
24114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24115
24116 # Whether the compiler copes with passing no objects directly.
24117 compiler_needs_object=$lt_compiler_needs_object_CXX
24118
24119 # Create an old-style archive from a shared archive.
24120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24121
24122 # Create a temporary old-style archive to link instead of a shared archive.
24123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24124
24125 # Commands used to build a shared archive.
24126 archive_cmds=$lt_archive_cmds_CXX
24127 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24128
24129 # Commands used to build a loadable module if different from building
24130 # a shared archive.
24131 module_cmds=$lt_module_cmds_CXX
24132 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24133
24134 # Whether we are building with GNU ld or not.
24135 with_gnu_ld=$lt_with_gnu_ld_CXX
24136
24137 # Flag that allows shared libraries with undefined symbols to be built.
24138 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24139
24140 # Flag that enforces no undefined symbols.
24141 no_undefined_flag=$lt_no_undefined_flag_CXX
24142
24143 # Flag to hardcode \$libdir into a binary during linking.
24144 # This must work even if \$libdir does not exist
24145 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24146
24147 # Whether we need a single "-rpath" flag with a separated argument.
24148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24149
24150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24151 # DIR into the resulting binary.
24152 hardcode_direct=$hardcode_direct_CXX
24153
24154 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24155 # DIR into the resulting binary and the resulting library dependency is
24156 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24157 # library is relocated.
24158 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24159
24160 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24161 # into the resulting binary.
24162 hardcode_minus_L=$hardcode_minus_L_CXX
24163
24164 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24165 # into the resulting binary.
24166 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24167
24168 # Set to "yes" if building a shared library automatically hardcodes DIR
24169 # into the library and all subsequent libraries and executables linked
24170 # against it.
24171 hardcode_automatic=$hardcode_automatic_CXX
24172
24173 # Set to yes if linker adds runtime paths of dependent libraries
24174 # to runtime path list.
24175 inherit_rpath=$inherit_rpath_CXX
24176
24177 # Whether libtool must link a program against all its dependency libraries.
24178 link_all_deplibs=$link_all_deplibs_CXX
24179
24180 # Set to "yes" if exported symbols are required.
24181 always_export_symbols=$always_export_symbols_CXX
24182
24183 # The commands to list exported symbols.
24184 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24185
24186 # Symbols that should not be listed in the preloaded symbols.
24187 exclude_expsyms=$lt_exclude_expsyms_CXX
24188
24189 # Symbols that must always be exported.
24190 include_expsyms=$lt_include_expsyms_CXX
24191
24192 # Commands necessary for linking programs (against libraries) with templates.
24193 prelink_cmds=$lt_prelink_cmds_CXX
24194
24195 # Commands necessary for finishing linking programs.
24196 postlink_cmds=$lt_postlink_cmds_CXX
24197
24198 # Specify filename containing input files.
24199 file_list_spec=$lt_file_list_spec_CXX
24200
24201 # How to hardcode a shared library path into an executable.
24202 hardcode_action=$hardcode_action_CXX
24203
24204 # The directories searched by this compiler when creating a shared library.
24205 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24206
24207 # Dependencies to place before and after the objects being linked to
24208 # create a shared library.
24209 predep_objects=$lt_predep_objects_CXX
24210 postdep_objects=$lt_postdep_objects_CXX
24211 predeps=$lt_predeps_CXX
24212 postdeps=$lt_postdeps_CXX
24213
24214 # The library search path used internally by the compiler when linking
24215 # a shared library.
24216 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24217
24218 # ### END LIBTOOL TAG CONFIG: CXX
24219 _LT_EOF
24220
24221 ;;
24222
24223 esac
24224 done # for ac_tag
24225
24226
24227 as_fn_exit 0
24228 _ACEOF
24229 ac_clean_files=$ac_clean_files_save
24230
24231 test $ac_write_fail = 0 ||
24232 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24233
24234
24235 # configure is writing to config.log, and then calls config.status.
24236 # config.status does its own redirection, appending to config.log.
24237 # Unfortunately, on DOS this fails, as config.log is still kept open
24238 # by configure, so config.status won't be able to write to it; its
24239 # output is simply discarded. So we exec the FD to /dev/null,
24240 # effectively closing config.log, so it can be properly (re)opened and
24241 # appended to by config.status. When coming back to configure, we
24242 # need to make the FD available again.
24243 if test "$no_create" != yes; then
24244 ac_cs_success=:
24245 ac_config_status_args=
24246 test "$silent" = yes &&
24247 ac_config_status_args="$ac_config_status_args --quiet"
24248 exec 5>/dev/null
24249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24250 exec 5>>config.log
24251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24252 # would make configure fail if this is the last instruction.
24253 $ac_cs_success || as_fn_exit 1
24254 fi
24255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24258 fi
24259