]> git.saurik.com Git - cycript.git/blob - configure
Avoid error caused by passing -pthread to libtool.
[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-2014 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_MACH_FALSE
642 CY_MACH_TRUE
643 CY_MACH
644 CY_ATTACH_GROUP
645 ac_ct__OTOOL
646 _OTOOL
647 ac_ct__NM
648 _NM
649 ac_ct__LIPO
650 _LIPO
651 SO
652 LTFLAGS
653 LTLIBGCC
654 LTLIBTERMCAP
655 LTLIBREADLINE
656 CY_OBJECTIVEC_FALSE
657 CY_OBJECTIVEC_TRUE
658 CY_JAVA_FALSE
659 CY_JAVA_TRUE
660 LTOBJECTIVEC
661 GNUSTEP_CONFIG
662 CY_OBJECTIVEC
663 LTJAVA
664 CY_JAVA
665 LTLIBFFI
666 LIBFFI_LIBS
667 LIBFFI_CFLAGS
668 CY_EXECUTE_FALSE
669 CY_EXECUTE_TRUE
670 CY_CONSOLE_FALSE
671 CY_CONSOLE_TRUE
672 LTJAVASCRIPTCORE
673 WEBKIT_LIBS
674 WEBKIT_CFLAGS
675 CY_EXECUTE
676 CY_ARCH
677 PTHREAD_CFLAGS
678 PTHREAD_LIBS
679 PTHREAD_CC
680 ax_pthread_config
681 GNUTAR
682 GPERF
683 FLEX
684 BISON
685 TIME
686 GIT
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 HAVE_CXX11
691 CXXCPP
692 CPP
693 LT_SYS_LIBRARY_PATH
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 DLLTOOL
702 OBJDUMP
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 ac_ct_AR
722 AR
723 am__fastdepOBJCXX_FALSE
724 am__fastdepOBJCXX_TRUE
725 OBJCXXDEPMODE
726 ac_ct_OBJCXX
727 OBJCXXFLAGS
728 OBJCXX
729 am__fastdepCXX_FALSE
730 am__fastdepCXX_TRUE
731 CXXDEPMODE
732 ac_ct_CXX
733 CXXFLAGS
734 CXX
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__quote
743 am__include
744 DEPDIR
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 MAINT
753 MAINTAINER_MODE_FALSE
754 MAINTAINER_MODE_TRUE
755 AM_BACKSLASH
756 AM_DEFAULT_VERBOSITY
757 AM_DEFAULT_V
758 AM_V
759 am__untar
760 am__tar
761 AMTAR
762 am__leading_dot
763 SET_MAKE
764 AWK
765 mkdir_p
766 MKDIR_P
767 INSTALL_STRIP_PROGRAM
768 STRIP
769 install_sh
770 MAKEINFO
771 AUTOHEADER
772 AUTOMAKE
773 AUTOCONF
774 ACLOCAL
775 VERSION
776 PACKAGE
777 CYGPATH_W
778 am__isrc
779 INSTALL_DATA
780 INSTALL_SCRIPT
781 INSTALL_PROGRAM
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_maintainer_mode
825 enable_dependency_tracking
826 enable_static
827 enable_shared
828 with_pic
829 enable_fast_install
830 with_aix_soname
831 with_gnu_ld
832 with_sysroot
833 enable_libtool_lock
834 enable_javascript
835 enable_console
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 CXX
846 CXXFLAGS
847 CCC
848 OBJCXX
849 OBJCXXFLAGS
850 LT_SYS_LIBRARY_PATH
851 CPP
852 CXXCPP
853 PKG_CONFIG
854 PKG_CONFIG_PATH
855 PKG_CONFIG_LIBDIR
856 BISON
857 FLEX
858 GPERF
859 GNUTAR
860 WEBKIT_CFLAGS
861 WEBKIT_LIBS
862 LIBFFI_CFLAGS
863 LIBFFI_LIBS
864 GNUSTEP_CONFIG'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1459
1460 cat <<\_ACEOF
1461
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of Cycript 0.9:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-static[=PKGS] build static libraries [default=no]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-javascript[=ENGINE]
1498 use a JavaScript runtime (currently the only
1499 available option for ENGINE is JavaScriptCore)
1500 [default=yes]
1501 --disable-console disable console
1502
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1507 both]
1508 --with-aix-soname=aix|svr4|both
1509 shared library versioning (aka "SONAME") variant to
1510 provide on AIX, [default=aix].
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1513 compiler's sysroot if not specified).
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 OBJCXX Objective C++ compiler command
1526 OBJCXXFLAGS Objective C++ compiler flags
1527 LT_SYS_LIBRARY_PATH
1528 User-defined run-time library search path.
1529 CPP C preprocessor
1530 CXXCPP C++ preprocessor
1531 PKG_CONFIG path to pkg-config utility
1532 PKG_CONFIG_PATH
1533 directories to add to pkg-config's search path
1534 PKG_CONFIG_LIBDIR
1535 path overriding pkg-config's built-in search path
1536 BISON GNU Project parser generator (yacc replacement)
1537 FLEX the fast lexical analyser generator
1538 GPERF perfect hash function generator
1539 GNUTAR a very sticky lump of files
1540 WEBKIT_CFLAGS
1541 C compiler flags for WEBKIT, overriding pkg-config
1542 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1543 GNUSTEP_CONFIG
1544 prints information about the current gnustep installation
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <saurik@saurik.com>.
1550 Cycript home page: <http://www.cycript.org/>.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 Cycript configure 0.9
1614 generated by GNU Autoconf 2.69
1615
1616 Copyright (C) 2012 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619
1620 Copyright (C) 2009-2014 Jay Freeman (saurik)
1621 _ACEOF
1622 exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_cxx_try_compile LINENO
1668 # ----------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_cxx_try_compile ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_cxx_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699 fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_cxx_try_compile
1704
1705 # ac_fn_objcxx_try_compile LINENO
1706 # -------------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_objcxx_try_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_objcxx_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_objcxx_try_compile
1742
1743 # ac_fn_c_try_link LINENO
1744 # -----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_link ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 test -x conftest$ac_exeext
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778 fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_link
1788
1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists and can be compiled using the include files in
1792 # INCLUDES, setting the cache variable VAR accordingly.
1793 ac_fn_c_check_header_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_header_compile
1819
1820 # ac_fn_c_try_cpp LINENO
1821 # ----------------------
1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_cpp ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } > conftest.i && {
1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855 } # ac_fn_c_try_cpp
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=$ac_status
1892 fi
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_run
1898
1899 # ac_fn_c_check_func LINENO FUNC VAR
1900 # ----------------------------------
1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1902 ac_fn_c_check_func ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1914 #define $2 innocuous_$2
1915
1916 /* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char $2 (); below.
1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919 <limits.h> exists even on freestanding compilers. */
1920
1921 #ifdef __STDC__
1922 # include <limits.h>
1923 #else
1924 # include <assert.h>
1925 #endif
1926
1927 #undef $2
1928
1929 /* Override any GCC internal prototype to avoid an error.
1930 Use char because int might match the return type of a GCC
1931 builtin and then its argument prototype would still apply. */
1932 #ifdef __cplusplus
1933 extern "C"
1934 #endif
1935 char $2 ();
1936 /* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939 #if defined __stub_$2 || defined __stub___$2
1940 choke me
1941 #endif
1942
1943 int
1944 main ()
1945 {
1946 return $2 ();
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_link "$LINENO"; then :
1952 eval "$3=yes"
1953 else
1954 eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext \
1957 conftest$ac_exeext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_func
1965
1966 # ac_fn_cxx_try_cpp LINENO
1967 # ------------------------
1968 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_cxx_try_cpp ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_cpp conftest.$ac_ext"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1985 fi
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } > conftest.i && {
1988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1989 test ! -s conftest.err
1990 }; then :
1991 ac_retval=0
1992 else
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=1
1997 fi
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2000
2001 } # ac_fn_cxx_try_cpp
2002
2003 # ac_fn_cxx_try_link LINENO
2004 # -------------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_cxx_try_link ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext conftest$ac_exeext
2010 if { { ac_try="$ac_link"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2023 fi
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest$ac_exeext && {
2029 test "$cross_compiling" = yes ||
2030 test -x conftest$ac_exeext
2031 }; then :
2032 ac_retval=0
2033 else
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1
2038 fi
2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041 # interfere with the next link command; also delete a directory that is
2042 # left behind by Apple's compiler. We do this before executing the actions.
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2046
2047 } # ac_fn_cxx_try_link
2048
2049 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2050 # ---------------------------------------------------------
2051 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2052 # the include files in INCLUDES and setting the cache variable VAR
2053 # accordingly.
2054 ac_fn_cxx_check_header_mongrel ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if eval \${$3+:} false; then :
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 fi
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 else
2067 # Is the header compilable?
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2069 $as_echo_n "checking $2 usability... " >&6; }
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 #include <$2>
2074 _ACEOF
2075 if ac_fn_cxx_try_compile "$LINENO"; then :
2076 ac_header_compiler=yes
2077 else
2078 ac_header_compiler=no
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2082 $as_echo "$ac_header_compiler" >&6; }
2083
2084 # Is the header present?
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2086 $as_echo_n "checking $2 presence... " >&6; }
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 #include <$2>
2090 _ACEOF
2091 if ac_fn_cxx_try_cpp "$LINENO"; then :
2092 ac_header_preproc=yes
2093 else
2094 ac_header_preproc=no
2095 fi
2096 rm -f conftest.err conftest.i conftest.$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2098 $as_echo "$ac_header_preproc" >&6; }
2099
2100 # So? What about this header?
2101 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2102 yes:no: )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2104 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107 ;;
2108 no:yes:* )
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2110 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2112 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2114 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2116 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119 ( $as_echo "## -------------------------------- ##
2120 ## Report this to saurik@saurik.com ##
2121 ## -------------------------------- ##"
2122 ) | sed "s/^/$as_me: WARNING: /" >&2
2123 ;;
2124 esac
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2129 else
2130 eval "$3=\$ac_header_compiler"
2131 fi
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 fi
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_cxx_check_header_mongrel
2139
2140 # ac_fn_objcxx_try_link LINENO
2141 # ----------------------------
2142 # Try to link conftest.$ac_ext, and return whether this succeeded.
2143 ac_fn_objcxx_try_link ()
2144 {
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 rm -f conftest.$ac_objext conftest$ac_exeext
2147 if { { ac_try="$ac_link"
2148 case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151 esac
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_link") 2>conftest.err
2155 ac_status=$?
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2160 fi
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } && {
2163 test -z "$ac_objcxx_werror_flag" ||
2164 test ! -s conftest.err
2165 } && test -s conftest$ac_exeext && {
2166 test "$cross_compiling" = yes ||
2167 test -x conftest$ac_exeext
2168 }; then :
2169 ac_retval=0
2170 else
2171 $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2173
2174 ac_retval=1
2175 fi
2176 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2177 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2178 # interfere with the next link command; also delete a directory that is
2179 # left behind by Apple's compiler. We do this before executing the actions.
2180 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 as_fn_set_status $ac_retval
2183
2184 } # ac_fn_objcxx_try_link
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2188
2189 It was created by Cycript $as_me 0.9, which was
2190 generated by GNU Autoconf 2.69. Invocation command line was
2191
2192 $ $0 $@
2193
2194 _ACEOF
2195 exec 5>>config.log
2196 {
2197 cat <<_ASUNAME
2198 ## --------- ##
2199 ## Platform. ##
2200 ## --------- ##
2201
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2210
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2218
2219 _ASUNAME
2220
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228 IFS=$as_save_IFS
2229
2230 } >&5
2231
2232 cat >&5 <<_ACEOF
2233
2234
2235 ## ----------- ##
2236 ## Core tests. ##
2237 ## ----------- ##
2238
2239 _ACEOF
2240
2241
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2247 ac_configure_args=
2248 ac_configure_args0=
2249 ac_configure_args1=
2250 ac_must_keep_next=false
2251 for ac_pass in 1 2
2252 do
2253 for ac_arg
2254 do
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265 2)
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2278 ;;
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2281 fi
2282 as_fn_append ac_configure_args " '$ac_arg'"
2283 ;;
2284 esac
2285 done
2286 done
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2289
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2297 {
2298 echo
2299
2300 $as_echo "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2305 (
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2328 *)
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ;;
2331 esac |
2332 sort
2333 )
2334 echo
2335
2336 $as_echo "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349
2350 if test -n "$ac_subst_files"; then
2351 $as_echo "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
2367 $as_echo "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2373 fi
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2381 ' 0
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2386
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2389
2390 $as_echo "/* confdefs.h */" > confdefs.h
2391
2392 # Predefined preprocessor variables.
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2416 _ACEOF
2417
2418
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2421 ac_site_file1=NONE
2422 ac_site_file2=NONE
2423 if test -n "$CONFIG_SITE"; then
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2429 esac
2430 elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2433 else
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2436 fi
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438 do
2439 test "x$ac_site_file" = xNONE && continue
2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
2444 . "$ac_site_file" \
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 as_fn_error $? "failed to load site script $ac_site_file
2448 See \`config.log' for more details" "$LINENO" 5; }
2449 fi
2450 done
2451
2452 if test -r "$cache_file"; then
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457 $as_echo "$as_me: loading cache $cache_file" >&6;}
2458 case $cache_file in
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2461 esac
2462 fi
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465 $as_echo "$as_me: creating cache $cache_file" >&6;}
2466 >$cache_file
2467 fi
2468
2469 # Check that the precious variables saved in the cache have kept the same
2470 # value.
2471 ac_cache_corrupted=false
2472 for ac_var in $ac_precious_vars; do
2473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2474 eval ac_new_set=\$ac_env_${ac_var}_set
2475 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2476 eval ac_new_val=\$ac_env_${ac_var}_value
2477 case $ac_old_set,$ac_new_set in
2478 set,)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2480 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2482 ,set)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,);;
2487 *)
2488 if test "x$ac_old_val" != "x$ac_new_val"; then
2489 # differences in whitespace do not lead to failure.
2490 ac_old_val_w=`echo x $ac_old_val`
2491 ac_new_val_w=`echo x $ac_new_val`
2492 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2494 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2495 ac_cache_corrupted=:
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2498 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2499 eval $ac_var=\$ac_old_val
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2502 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2504 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2505 fi;;
2506 esac
2507 # Pass precious variables to config.status.
2508 if test "$ac_new_set" = set; then
2509 case $ac_new_val in
2510 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2511 *) ac_arg=$ac_var=$ac_new_val ;;
2512 esac
2513 case " $ac_configure_args " in
2514 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2515 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2516 esac
2517 fi
2518 done
2519 if $ac_cache_corrupted; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2523 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2524 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2525 fi
2526 ## -------------------- ##
2527 ## Main body of script. ##
2528 ## -------------------- ##
2529
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537
2538
2539
2540 ac_aux_dir=
2541 for ac_dir in . "$srcdir"/.; do
2542 if test -f "$ac_dir/install-sh"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/install-sh -c"
2545 break
2546 elif test -f "$ac_dir/install.sh"; then
2547 ac_aux_dir=$ac_dir
2548 ac_install_sh="$ac_aux_dir/install.sh -c"
2549 break
2550 elif test -f "$ac_dir/shtool"; then
2551 ac_aux_dir=$ac_dir
2552 ac_install_sh="$ac_aux_dir/shtool install -c"
2553 break
2554 fi
2555 done
2556 if test -z "$ac_aux_dir"; then
2557 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2558 fi
2559
2560 # These three variables are undocumented and unsupported,
2561 # and are intended to be withdrawn in a future Autoconf release.
2562 # They can cause serious problems if a builder's source tree is in a directory
2563 # whose full name contains unusual characters.
2564 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2565 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2566 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2567
2568
2569
2570 ac_config_headers="$ac_config_headers config.h"
2571
2572
2573 am__api_version='1.14'
2574
2575 # Find a good install program. We prefer a C program (faster),
2576 # so one script is as good as another. But avoid the broken or
2577 # incompatible versions:
2578 # SysV /etc/install, /usr/sbin/install
2579 # SunOS /usr/etc/install
2580 # IRIX /sbin/install
2581 # AIX /bin/install
2582 # AmigaOS /C/install, which installs bootblocks on floppy discs
2583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2586 # OS/2's system install, which has a completely different semantic
2587 # ./install, which can be erroneously created by make from ./install.sh.
2588 # Reject install programs that cannot install multiple files.
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2590 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2591 if test -z "$INSTALL"; then
2592 if ${ac_cv_path_install+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 # Account for people who put trailing slashes in PATH elements.
2601 case $as_dir/ in #((
2602 ./ | .// | /[cC]/* | \
2603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2604 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2605 /usr/ucb/* ) ;;
2606 *)
2607 # OSF1 and SCO ODT 3.0 have their own names for install.
2608 # Don't use installbsd from OSF since it installs stuff as root
2609 # by default.
2610 for ac_prog in ginstall scoinst install; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2613 if test $ac_prog = install &&
2614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615 # AIX install. It has an incompatible calling convention.
2616 :
2617 elif test $ac_prog = install &&
2618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619 # program-specific install script used by HP pwplus--don't use.
2620 :
2621 else
2622 rm -rf conftest.one conftest.two conftest.dir
2623 echo one > conftest.one
2624 echo two > conftest.two
2625 mkdir conftest.dir
2626 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2627 test -s conftest.one && test -s conftest.two &&
2628 test -s conftest.dir/conftest.one &&
2629 test -s conftest.dir/conftest.two
2630 then
2631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2632 break 3
2633 fi
2634 fi
2635 fi
2636 done
2637 done
2638 ;;
2639 esac
2640
2641 done
2642 IFS=$as_save_IFS
2643
2644 rm -rf conftest.one conftest.two conftest.dir
2645
2646 fi
2647 if test "${ac_cv_path_install+set}" = set; then
2648 INSTALL=$ac_cv_path_install
2649 else
2650 # As a last resort, use the slow shell script. Don't cache a
2651 # value for INSTALL within a source directory, because that will
2652 # break other packages using the cache if that directory is
2653 # removed, or if the value is a relative name.
2654 INSTALL=$ac_install_sh
2655 fi
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2658 $as_echo "$INSTALL" >&6; }
2659
2660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2661 # It thinks the first close brace ends the variable substitution.
2662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2663
2664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2665
2666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2669 $as_echo_n "checking whether build environment is sane... " >&6; }
2670 # Reject unsafe characters in $srcdir or the absolute working directory
2671 # name. Accept space and tab only in the latter.
2672 am_lf='
2673 '
2674 case `pwd` in
2675 *[\\\"\#\$\&\'\`$am_lf]*)
2676 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2677 esac
2678 case $srcdir in
2679 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2680 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2681 esac
2682
2683 # Do 'set' in a subshell so we don't clobber the current shell's
2684 # arguments. Must try -L first in case configure is actually a
2685 # symlink; some systems play weird games with the mod time of symlinks
2686 # (eg FreeBSD returns the mod time of the symlink's containing
2687 # directory).
2688 if (
2689 am_has_slept=no
2690 for am_try in 1 2; do
2691 echo "timestamp, slept: $am_has_slept" > conftest.file
2692 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2693 if test "$*" = "X"; then
2694 # -L didn't work.
2695 set X `ls -t "$srcdir/configure" conftest.file`
2696 fi
2697 if test "$*" != "X $srcdir/configure conftest.file" \
2698 && test "$*" != "X conftest.file $srcdir/configure"; then
2699
2700 # If neither matched, then we have a broken ls. This can happen
2701 # if, for instance, CONFIG_SHELL is bash and it inherits a
2702 # broken ls alias from the environment. This has actually
2703 # happened. Such a system could not be considered "sane".
2704 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2705 alias in your environment" "$LINENO" 5
2706 fi
2707 if test "$2" = conftest.file || test $am_try -eq 2; then
2708 break
2709 fi
2710 # Just in case.
2711 sleep 1
2712 am_has_slept=yes
2713 done
2714 test "$2" = conftest.file
2715 )
2716 then
2717 # Ok.
2718 :
2719 else
2720 as_fn_error $? "newly created file is older than distributed files!
2721 Check your system clock" "$LINENO" 5
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2725 # If we didn't sleep, we still need to ensure time stamps of config.status and
2726 # generated files are strictly newer.
2727 am_sleep_pid=
2728 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2729 ( sleep 1 ) &
2730 am_sleep_pid=$!
2731 fi
2732
2733 rm -f conftest.file
2734
2735 test "$program_prefix" != NONE &&
2736 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2737 # Use a double $ so make ignores it.
2738 test "$program_suffix" != NONE &&
2739 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2740 # Double any \ or $.
2741 # By default was `s,x,x', remove it if useless.
2742 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2743 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2744
2745 # expand $ac_aux_dir to an absolute path
2746 am_aux_dir=`cd $ac_aux_dir && pwd`
2747
2748 if test x"${MISSING+set}" != xset; then
2749 case $am_aux_dir in
2750 *\ * | *\ *)
2751 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2752 *)
2753 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2754 esac
2755 fi
2756 # Use eval to expand $SHELL
2757 if eval "$MISSING --is-lightweight"; then
2758 am_missing_run="$MISSING "
2759 else
2760 am_missing_run=
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2762 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2763 fi
2764
2765 if test x"${install_sh}" != xset; then
2766 case $am_aux_dir in
2767 *\ * | *\ *)
2768 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2769 *)
2770 install_sh="\${SHELL} $am_aux_dir/install-sh"
2771 esac
2772 fi
2773
2774 # Installed binaries are usually stripped using 'strip' when the user
2775 # run "make install-strip". However 'strip' might not be the right
2776 # tool to use in cross-compilation environments, therefore Automake
2777 # will honor the 'STRIP' environment variable to overrule this program.
2778 if test "$cross_compiling" != no; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}strip; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if ${ac_cv_prog_STRIP+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$STRIP"; then
2788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 STRIP=$ac_cv_prog_STRIP
2808 if test -n "$STRIP"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2810 $as_echo "$STRIP" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 fi
2818 if test -z "$ac_cv_prog_STRIP"; then
2819 ac_ct_STRIP=$STRIP
2820 # Extract the first word of "strip", so it can be a program name with args.
2821 set dummy strip; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$ac_ct_STRIP"; then
2828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_ac_ct_STRIP="strip"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2848 if test -n "$ac_ct_STRIP"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2850 $as_echo "$ac_ct_STRIP" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856 if test "x$ac_ct_STRIP" = x; then
2857 STRIP=":"
2858 else
2859 case $cross_compiling:$ac_tool_warned in
2860 yes:)
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865 STRIP=$ac_ct_STRIP
2866 fi
2867 else
2868 STRIP="$ac_cv_prog_STRIP"
2869 fi
2870
2871 fi
2872 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2873
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2875 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2876 if test -z "$MKDIR_P"; then
2877 if ${ac_cv_path_mkdir+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_prog in mkdir gmkdir; do
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2888 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2889 'mkdir (GNU coreutils) '* | \
2890 'mkdir (coreutils) '* | \
2891 'mkdir (fileutils) '4.1*)
2892 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2893 break 3;;
2894 esac
2895 done
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901
2902 test -d ./--version && rmdir ./--version
2903 if test "${ac_cv_path_mkdir+set}" = set; then
2904 MKDIR_P="$ac_cv_path_mkdir -p"
2905 else
2906 # As a last resort, use the slow shell script. Don't cache a
2907 # value for MKDIR_P within a source directory, because that will
2908 # break other packages using the cache if that directory is
2909 # removed, or if the value is a relative name.
2910 MKDIR_P="$ac_install_sh -d"
2911 fi
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2914 $as_echo "$MKDIR_P" >&6; }
2915
2916 for ac_prog in gawk mawk nawk awk
2917 do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_AWK+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$AWK"; then
2926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_AWK="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 AWK=$ac_cv_prog_AWK
2946 if test -n "$AWK"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2948 $as_echo "$AWK" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2953
2954
2955 test -n "$AWK" && break
2956 done
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2959 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2960 set x ${MAKE-make}
2961 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2962 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat >conftest.make <<\_ACEOF
2966 SHELL = /bin/sh
2967 all:
2968 @echo '@@@%%%=$(MAKE)=@@@%%%'
2969 _ACEOF
2970 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2971 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2972 *@@@%%%=?*=@@@%%%*)
2973 eval ac_cv_prog_make_${ac_make}_set=yes;;
2974 *)
2975 eval ac_cv_prog_make_${ac_make}_set=no;;
2976 esac
2977 rm -f conftest.make
2978 fi
2979 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 SET_MAKE=
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 SET_MAKE="MAKE=${MAKE-make}"
2987 fi
2988
2989 rm -rf .tst 2>/dev/null
2990 mkdir .tst 2>/dev/null
2991 if test -d .tst; then
2992 am__leading_dot=.
2993 else
2994 am__leading_dot=_
2995 fi
2996 rmdir .tst 2>/dev/null
2997
2998 # Check whether --enable-silent-rules was given.
2999 if test "${enable_silent_rules+set}" = set; then :
3000 enableval=$enable_silent_rules;
3001 fi
3002
3003 case $enable_silent_rules in # (((
3004 yes) AM_DEFAULT_VERBOSITY=0;;
3005 no) AM_DEFAULT_VERBOSITY=1;;
3006 *) AM_DEFAULT_VERBOSITY=1;;
3007 esac
3008 am_make=${MAKE-make}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3010 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3011 if ${am_cv_make_support_nested_variables+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if $as_echo 'TRUE=$(BAR$(V))
3015 BAR0=false
3016 BAR1=true
3017 V=1
3018 am__doit:
3019 @$(TRUE)
3020 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3021 am_cv_make_support_nested_variables=yes
3022 else
3023 am_cv_make_support_nested_variables=no
3024 fi
3025 fi
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3027 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3028 if test $am_cv_make_support_nested_variables = yes; then
3029 AM_V='$(V)'
3030 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3031 else
3032 AM_V=$AM_DEFAULT_VERBOSITY
3033 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3034 fi
3035 AM_BACKSLASH='\'
3036
3037 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3038 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3039 # is not polluted with repeated "-I."
3040 am__isrc=' -I$(srcdir)'
3041 # test to see if srcdir already configured
3042 if test -f $srcdir/config.status; then
3043 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3044 fi
3045 fi
3046
3047 # test whether we have cygpath
3048 if test -z "$CYGPATH_W"; then
3049 if (cygpath --version) >/dev/null 2>/dev/null; then
3050 CYGPATH_W='cygpath -w'
3051 else
3052 CYGPATH_W=echo
3053 fi
3054 fi
3055
3056
3057 # Define the identity of the package.
3058 PACKAGE='cycript'
3059 VERSION='0.9'
3060
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE "$PACKAGE"
3064 _ACEOF
3065
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define VERSION "$VERSION"
3069 _ACEOF
3070
3071 # Some tools Automake needs.
3072
3073 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3074
3075
3076 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3077
3078
3079 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3080
3081
3082 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3083
3084
3085 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3086
3087 # For better backward compatibility. To be removed once Automake 1.9.x
3088 # dies out for good. For more background, see:
3089 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3090 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3091 mkdir_p='$(MKDIR_P)'
3092
3093 # We need awk for the "check" target. The system "awk" is bad on
3094 # some platforms.
3095 # Always define AMTAR for backward compatibility. Yes, it's still used
3096 # in the wild :-( We should find a proper way to deprecate it ...
3097 AMTAR='$${TAR-tar}'
3098
3099
3100 # We'll loop over all known methods to create a tar archive until one works.
3101 _am_tools='gnutar pax cpio none'
3102
3103 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3104
3105
3106
3107
3108
3109
3110 # POSIX will say in a future version that running "rm -f" with no argument
3111 # is OK; and we want to be able to make that assumption in our Makefile
3112 # recipes. So use an aggressive probe to check that the usage we want is
3113 # actually supported "in the wild" to an acceptable degree.
3114 # See automake bug#10828.
3115 # To make any issue more visible, cause the running configure to be aborted
3116 # by default if the 'rm' program in use doesn't match our expectations; the
3117 # user can still override this though.
3118 if rm -f && rm -fr && rm -rf; then : OK; else
3119 cat >&2 <<'END'
3120 Oops!
3121
3122 Your 'rm' program seems unable to run without file operands specified
3123 on the command line, even when the '-f' option is present. This is contrary
3124 to the behaviour of most rm programs out there, and not conforming with
3125 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3126
3127 Please tell bug-automake@gnu.org about your system, including the value
3128 of your $PATH and any error possibly output before this message. This
3129 can help us improve future automake versions.
3130
3131 END
3132 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3133 echo 'Configuration will proceed anyway, since you have set the' >&2
3134 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3135 echo >&2
3136 else
3137 cat >&2 <<'END'
3138 Aborting the configuration process, to ensure you take notice of the issue.
3139
3140 You can download and install GNU coreutils to get an 'rm' implementation
3141 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3142
3143 If you want to complete the configuration process using your problematic
3144 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3145 to "yes", and re-run configure.
3146
3147 END
3148 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3149 fi
3150 fi
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3153 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3154 # Check whether --enable-maintainer-mode was given.
3155 if test "${enable_maintainer_mode+set}" = set; then :
3156 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3157 else
3158 USE_MAINTAINER_MODE=no
3159 fi
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3162 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3163 if test $USE_MAINTAINER_MODE = yes; then
3164 MAINTAINER_MODE_TRUE=
3165 MAINTAINER_MODE_FALSE='#'
3166 else
3167 MAINTAINER_MODE_TRUE='#'
3168 MAINTAINER_MODE_FALSE=
3169 fi
3170
3171 MAINT=$MAINTAINER_MODE_TRUE
3172
3173
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 fi
3219 if test -z "$ac_cv_prog_CC"; then
3220 ac_ct_CC=$CC
3221 # Extract the first word of "gcc", so it can be a program name with args.
3222 set dummy gcc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_CC="gcc"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257 if test "x$ac_ct_CC" = x; then
3258 CC=""
3259 else
3260 case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266 CC=$ac_ct_CC
3267 fi
3268 else
3269 CC="$ac_cv_prog_CC"
3270 fi
3271
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}cc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 fi
3312 fi
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324 ac_prog_rejected=no
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected=yes
3334 continue
3335 fi
3336 ac_cv_prog_CC="cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy $ac_cv_prog_CC
3347 shift
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3352 shift
3353 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354 fi
3355 fi
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cl.exe
3372 do
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394 done
3395 done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409
3410 test -n "$CC" && break
3411 done
3412 fi
3413 if test -z "$CC"; then
3414 ac_ct_CC=$CC
3415 for ac_prog in cl.exe
3416 do
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453
3454 test -n "$ac_ct_CC" && break
3455 done
3456
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 CC=$ac_ct_CC
3467 fi
3468 fi
3469
3470 fi
3471
3472
3473 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "no acceptable C compiler found in \$PATH
3476 See \`config.log' for more details" "$LINENO" 5; }
3477
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3480 set X $ac_compile
3481 ac_compiler=$2
3482 for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491 ac_status=$?
3492 if test -s conftest.err; then
3493 sed '10a\
3494 ... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3497 fi
3498 rm -f conftest.er1 conftest.err
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501 done
3502
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3518 # of exeext.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520 $as_echo_n "checking whether the C compiler works... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3522
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3525
3526 ac_rmfiles=
3527 for ac_file in $ac_files
3528 do
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532 esac
3533 done
3534 rm -f $ac_rmfiles
3535
3536 if { { ac_try="$ac_link_default"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link_default") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3551 # Autoconf.
3552 for ac_file in $ac_files ''
3553 do
3554 test -f "$ac_file" || continue
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3557 ;;
3558 [ab].out )
3559 # We found the default executable, but exeext='' is most
3560 # certainly right.
3561 break;;
3562 *.* )
3563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564 then :; else
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566 fi
3567 # We set ac_cv_exeext here because the later test for it is not
3568 # safe: cross compilers may not add the suffix if given an `-o'
3569 # argument, so we may need to know it at that point already.
3570 # Even if this section looks crufty: it has the advantage of
3571 # actually working.
3572 break;;
3573 * )
3574 break;;
3575 esac
3576 done
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3578
3579 else
3580 ac_file=''
3581 fi
3582 if test -z "$ac_file"; then :
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error 77 "C compiler cannot create executables
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599 $as_echo "$ac_file" >&6; }
3600 ac_exeext=$ac_cv_exeext
3601
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 ac_clean_files=$ac_clean_files_save
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3620 # `rm'.
3621 for ac_file in conftest.exe conftest conftest.*; do
3622 test -f "$ac_file" || continue
3623 case $ac_file in
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626 break;;
3627 * ) break;;
3628 esac
3629 done
3630 else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 fi
3636 rm -f conftest conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3639
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3642 ac_exeext=$EXEEXT
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <stdio.h>
3646 int
3647 main ()
3648 {
3649 FILE *f = fopen ("conftest.out", "w");
3650 return ferror (f) || fclose (f) != 0;
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 ac_clean_files="$ac_clean_files conftest.out"
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 if test "$cross_compiling" != yes; then
3662 { { ac_try="$ac_link"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3673 if { ac_try='./conftest$ac_cv_exeext'
3674 { { case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; }; then
3684 cross_compiling=no
3685 else
3686 if test "$cross_compiling" = maybe; then
3687 cross_compiling=yes
3688 else
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot run C compiled programs.
3692 If you meant to cross compile, use \`--host'.
3693 See \`config.log' for more details" "$LINENO" 5; }
3694 fi
3695 fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698 $as_echo "$cross_compiling" >&6; }
3699
3700 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701 ac_clean_files=$ac_clean_files_save
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 $as_echo_n "checking for suffix of object files... " >&6; }
3704 if ${ac_cv_objext+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 rm -f conftest.o conftest.obj
3719 if { { ac_try="$ac_compile"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_compile") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; then :
3730 for ac_file in conftest.o conftest.obj conftest.*; do
3731 test -f "$ac_file" || continue;
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735 break;;
3736 esac
3737 done
3738 else
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of object files: cannot compile
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 $as_echo "$ac_cv_objext" >&6; }
3751 OBJEXT=$ac_cv_objext
3752 ac_objext=$OBJEXT
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 if ${ac_cv_c_compiler_gnu+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764 #ifndef __GNUC__
3765 choke me
3766 #endif
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_compiler_gnu=yes
3774 else
3775 ac_compiler_gnu=no
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3784 GCC=yes
3785 else
3786 GCC=
3787 fi
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 if ${ac_cv_prog_cc_g+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 ac_save_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3797 ac_cv_prog_cc_g=no
3798 CFLAGS="-g"
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_g=yes
3812 else
3813 CFLAGS=""
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 int
3818 main ()
3819 {
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826
3827 else
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3829 CFLAGS="-g"
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_prog_cc_g=yes
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_c_werror_flag=$ac_save_c_werror_flag
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 if test "$ac_test_CFLAGS" = set; then
3854 CFLAGS=$ac_save_CFLAGS
3855 elif test $ac_cv_prog_cc_g = yes; then
3856 if test "$GCC" = yes; then
3857 CFLAGS="-g -O2"
3858 else
3859 CFLAGS="-g"
3860 fi
3861 else
3862 if test "$GCC" = yes; then
3863 CFLAGS="-O2"
3864 else
3865 CFLAGS=
3866 fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 if ${ac_cv_prog_cc_c89+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 ac_cv_prog_cc_c89=no
3874 ac_save_CC=$CC
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877 #include <stdarg.h>
3878 #include <stdio.h>
3879 struct stat;
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3884 char **p;
3885 int i;
3886 {
3887 return p[i];
3888 }
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3890 {
3891 char *s;
3892 va_list v;
3893 va_start (v,p);
3894 s = g (p, va_arg (v,int));
3895 va_end (v);
3896 return s;
3897 }
3898
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std. */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909 inside strings and character constants. */
3910 #define FOO(x) 'x'
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3912
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917 int argc;
3918 char **argv;
3919 int
3920 main ()
3921 {
3922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929 do
3930 CC="$ac_save_CC $ac_arg"
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_c89=$ac_arg
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3936 done
3937 rm -f conftest.$ac_ext
3938 CC=$ac_save_CC
3939
3940 fi
3941 # AC_CACHE_VAL
3942 case "x$ac_cv_prog_cc_c89" in
3943 x)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3946 xno)
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3949 *)
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953 esac
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3955
3956 fi
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971 if ${am_cv_prog_cc_c_o+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 int
3978 main ()
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 # Make sure it works both with $CC and with simple cc.
3986 # Following AC_PROG_CC_C_O, we do the test twice because some
3987 # compilers refuse to overwrite an existing .o file with -o,
3988 # though they will create one.
3989 am_cv_prog_cc_c_o=yes
3990 for am_i in 1 2; do
3991 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } \
3996 && test -f conftest2.$ac_objext; then
3997 : OK
3998 else
3999 am_cv_prog_cc_c_o=no
4000 break
4001 fi
4002 done
4003 rm -f core conftest*
4004 unset am_i
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4008 if test "$am_cv_prog_cc_c_o" != yes; then
4009 # Losing compiler, so override with the script.
4010 # FIXME: It is wrong to rewrite CC.
4011 # But if we don't then we get into trouble of one sort or another.
4012 # A longer-term fix would be to have automake use am__CC in this case,
4013 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014 CC="$am_aux_dir/compile $CC"
4015 fi
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022 DEPDIR="${am__leading_dot}deps"
4023
4024 ac_config_commands="$ac_config_commands depfiles"
4025
4026
4027 am_make=${MAKE-make}
4028 cat > confinc << 'END'
4029 am__doit:
4030 @echo this is the am__doit target
4031 .PHONY: am__doit
4032 END
4033 # If we don't find an include directive, just comment out the code.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4035 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4036 am__include="#"
4037 am__quote=
4038 _am_result=none
4039 # First try GNU make style include.
4040 echo "include confinc" > confmf
4041 # Ignore all kinds of additional output from 'make'.
4042 case `$am_make -s -f confmf 2> /dev/null` in #(
4043 *the\ am__doit\ target*)
4044 am__include=include
4045 am__quote=
4046 _am_result=GNU
4047 ;;
4048 esac
4049 # Now try BSD make style include.
4050 if test "$am__include" = "#"; then
4051 echo '.include "confinc"' > confmf
4052 case `$am_make -s -f confmf 2> /dev/null` in #(
4053 *the\ am__doit\ target*)
4054 am__include=.include
4055 am__quote="\""
4056 _am_result=BSD
4057 ;;
4058 esac
4059 fi
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4063 $as_echo "$_am_result" >&6; }
4064 rm -f confinc confmf
4065
4066 # Check whether --enable-dependency-tracking was given.
4067 if test "${enable_dependency_tracking+set}" = set; then :
4068 enableval=$enable_dependency_tracking;
4069 fi
4070
4071 if test "x$enable_dependency_tracking" != xno; then
4072 am_depcomp="$ac_aux_dir/depcomp"
4073 AMDEPBACKSLASH='\'
4074 am__nodep='_no'
4075 fi
4076 if test "x$enable_dependency_tracking" != xno; then
4077 AMDEP_TRUE=
4078 AMDEP_FALSE='#'
4079 else
4080 AMDEP_TRUE='#'
4081 AMDEP_FALSE=
4082 fi
4083
4084
4085
4086 depcc="$CC" am_compiler_list=
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4089 $as_echo_n "checking dependency style of $depcc... " >&6; }
4090 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094 # We make a subdir and do the tests there. Otherwise we can end up
4095 # making bogus files that we don't know about and never remove. For
4096 # instance it was reported that on HP-UX the gcc test will end up
4097 # making a dummy file named 'D' -- because '-MD' means "put the output
4098 # in D".
4099 rm -rf conftest.dir
4100 mkdir conftest.dir
4101 # Copy depcomp to subdir because otherwise we won't find it if we're
4102 # using a relative directory.
4103 cp "$am_depcomp" conftest.dir
4104 cd conftest.dir
4105 # We will build objects and dependencies in a subdirectory because
4106 # it helps to detect inapplicable dependency modes. For instance
4107 # both Tru64's cc and ICC support -MD to output dependencies as a
4108 # side effect of compilation, but ICC will put the dependencies in
4109 # the current directory while Tru64 will put them in the object
4110 # directory.
4111 mkdir sub
4112
4113 am_cv_CC_dependencies_compiler_type=none
4114 if test "$am_compiler_list" = ""; then
4115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4116 fi
4117 am__universal=false
4118 case " $depcc " in #(
4119 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4120 esac
4121
4122 for depmode in $am_compiler_list; do
4123 # Setup a source with many dependencies, because some compilers
4124 # like to wrap large dependency lists on column 80 (with \), and
4125 # we should not choose a depcomp mode which is confused by this.
4126 #
4127 # We need to recreate these files for each test, as the compiler may
4128 # overwrite some of them when testing with obscure command lines.
4129 # This happens at least with the AIX C compiler.
4130 : > sub/conftest.c
4131 for i in 1 2 3 4 5 6; do
4132 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4134 # Solaris 10 /bin/sh.
4135 echo '/* dummy */' > sub/conftst$i.h
4136 done
4137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4138
4139 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4140 # mode. It turns out that the SunPro C++ compiler does not properly
4141 # handle '-M -o', and we need to detect this. Also, some Intel
4142 # versions had trouble with output in subdirs.
4143 am__obj=sub/conftest.${OBJEXT-o}
4144 am__minus_obj="-o $am__obj"
4145 case $depmode in
4146 gcc)
4147 # This depmode causes a compiler race in universal mode.
4148 test "$am__universal" = false || continue
4149 ;;
4150 nosideeffect)
4151 # After this tag, mechanisms are not by side-effect, so they'll
4152 # only be used when explicitly requested.
4153 if test "x$enable_dependency_tracking" = xyes; then
4154 continue
4155 else
4156 break
4157 fi
4158 ;;
4159 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4160 # This compiler won't grok '-c -o', but also, the minuso test has
4161 # not run yet. These depmodes are late enough in the game, and
4162 # so weak that their functioning should not be impacted.
4163 am__obj=conftest.${OBJEXT-o}
4164 am__minus_obj=
4165 ;;
4166 none) break ;;
4167 esac
4168 if depmode=$depmode \
4169 source=sub/conftest.c object=$am__obj \
4170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4171 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4172 >/dev/null 2>conftest.err &&
4173 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4175 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4177 # icc doesn't choke on unknown options, it will just issue warnings
4178 # or remarks (even with -Werror). So we grep stderr for any message
4179 # that says an option was ignored or not supported.
4180 # When given -MP, icc 7.0 and 7.1 complain thusly:
4181 # icc: Command line warning: ignoring option '-M'; no argument required
4182 # The diagnosis changed in icc 8.0:
4183 # icc: Command line remark: option '-MP' not supported
4184 if (grep 'ignoring option' conftest.err ||
4185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4186 am_cv_CC_dependencies_compiler_type=$depmode
4187 break
4188 fi
4189 fi
4190 done
4191
4192 cd ..
4193 rm -rf conftest.dir
4194 else
4195 am_cv_CC_dependencies_compiler_type=none
4196 fi
4197
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4200 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4201 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4202
4203 if
4204 test "x$enable_dependency_tracking" != xno \
4205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4206 am__fastdepCC_TRUE=
4207 am__fastdepCC_FALSE='#'
4208 else
4209 am__fastdepCC_TRUE='#'
4210 am__fastdepCC_FALSE=
4211 fi
4212
4213
4214 ac_ext=cpp
4215 ac_cpp='$CXXCPP $CPPFLAGS'
4216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4219 if test -z "$CXX"; then
4220 if test -n "$CCC"; then
4221 CXX=$CCC
4222 else
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4225 do
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CXX+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247 done
4248 done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 CXX=$ac_cv_prog_CXX
4254 if test -n "$CXX"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4256 $as_echo "$CXX" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263 test -n "$CXX" && break
4264 done
4265 fi
4266 if test -z "$CXX"; then
4267 ac_ct_CXX=$CXX
4268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4269 do
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$ac_ct_CXX"; then
4278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_CXX="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291 done
4292 done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4298 if test -n "$ac_ct_CXX"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4300 $as_echo "$ac_ct_CXX" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307 test -n "$ac_ct_CXX" && break
4308 done
4309
4310 if test "x$ac_ct_CXX" = x; then
4311 CXX="g++"
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319 CXX=$ac_ct_CXX
4320 fi
4321 fi
4322
4323 fi
4324 fi
4325 # Provide some information about the compiler.
4326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4327 set X $ac_compile
4328 ac_compiler=$2
4329 for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338 ac_status=$?
4339 if test -s conftest.err; then
4340 sed '10a\
4341 ... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4344 fi
4345 rm -f conftest.er1 conftest.err
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348 done
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4352 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main ()
4360 {
4361 #ifndef __GNUC__
4362 choke me
4363 #endif
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_cxx_try_compile "$LINENO"; then :
4370 ac_compiler_gnu=yes
4371 else
4372 ac_compiler_gnu=no
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4376
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4380 if test $ac_compiler_gnu = yes; then
4381 GXX=yes
4382 else
4383 GXX=
4384 fi
4385 ac_test_CXXFLAGS=${CXXFLAGS+set}
4386 ac_save_CXXFLAGS=$CXXFLAGS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4389 if ${ac_cv_prog_cxx_g+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4393 ac_cxx_werror_flag=yes
4394 ac_cv_prog_cxx_g=no
4395 CXXFLAGS="-g"
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_cxx_try_compile "$LINENO"; then :
4408 ac_cv_prog_cxx_g=yes
4409 else
4410 CXXFLAGS=""
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_cxx_try_compile "$LINENO"; then :
4423
4424 else
4425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4426 CXXFLAGS="-g"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429
4430 int
4431 main ()
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_cxx_try_compile "$LINENO"; then :
4439 ac_cv_prog_cxx_g=yes
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4450 if test "$ac_test_CXXFLAGS" = set; then
4451 CXXFLAGS=$ac_save_CXXFLAGS
4452 elif test $ac_cv_prog_cxx_g = yes; then
4453 if test "$GXX" = yes; then
4454 CXXFLAGS="-g -O2"
4455 else
4456 CXXFLAGS="-g"
4457 fi
4458 else
4459 if test "$GXX" = yes; then
4460 CXXFLAGS="-O2"
4461 else
4462 CXXFLAGS=
4463 fi
4464 fi
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470
4471 depcc="$CXX" am_compiler_list=
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474 $as_echo_n "checking dependency style of $depcc... " >&6; }
4475 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named 'D' -- because '-MD' means "put the output
4483 # in D".
4484 rm -rf conftest.dir
4485 mkdir conftest.dir
4486 # Copy depcomp to subdir because otherwise we won't find it if we're
4487 # using a relative directory.
4488 cp "$am_depcomp" conftest.dir
4489 cd conftest.dir
4490 # We will build objects and dependencies in a subdirectory because
4491 # it helps to detect inapplicable dependency modes. For instance
4492 # both Tru64's cc and ICC support -MD to output dependencies as a
4493 # side effect of compilation, but ICC will put the dependencies in
4494 # the current directory while Tru64 will put them in the object
4495 # directory.
4496 mkdir sub
4497
4498 am_cv_CXX_dependencies_compiler_type=none
4499 if test "$am_compiler_list" = ""; then
4500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4501 fi
4502 am__universal=false
4503 case " $depcc " in #(
4504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505 esac
4506
4507 for depmode in $am_compiler_list; do
4508 # Setup a source with many dependencies, because some compilers
4509 # like to wrap large dependency lists on column 80 (with \), and
4510 # we should not choose a depcomp mode which is confused by this.
4511 #
4512 # We need to recreate these files for each test, as the compiler may
4513 # overwrite some of them when testing with obscure command lines.
4514 # This happens at least with the AIX C compiler.
4515 : > sub/conftest.c
4516 for i in 1 2 3 4 5 6; do
4517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519 # Solaris 10 /bin/sh.
4520 echo '/* dummy */' > sub/conftst$i.h
4521 done
4522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4523
4524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525 # mode. It turns out that the SunPro C++ compiler does not properly
4526 # handle '-M -o', and we need to detect this. Also, some Intel
4527 # versions had trouble with output in subdirs.
4528 am__obj=sub/conftest.${OBJEXT-o}
4529 am__minus_obj="-o $am__obj"
4530 case $depmode in
4531 gcc)
4532 # This depmode causes a compiler race in universal mode.
4533 test "$am__universal" = false || continue
4534 ;;
4535 nosideeffect)
4536 # After this tag, mechanisms are not by side-effect, so they'll
4537 # only be used when explicitly requested.
4538 if test "x$enable_dependency_tracking" = xyes; then
4539 continue
4540 else
4541 break
4542 fi
4543 ;;
4544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545 # This compiler won't grok '-c -o', but also, the minuso test has
4546 # not run yet. These depmodes are late enough in the game, and
4547 # so weak that their functioning should not be impacted.
4548 am__obj=conftest.${OBJEXT-o}
4549 am__minus_obj=
4550 ;;
4551 none) break ;;
4552 esac
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=$am__obj \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571 am_cv_CXX_dependencies_compiler_type=$depmode
4572 break
4573 fi
4574 fi
4575 done
4576
4577 cd ..
4578 rm -rf conftest.dir
4579 else
4580 am_cv_CXX_dependencies_compiler_type=none
4581 fi
4582
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4586 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4587
4588 if
4589 test "x$enable_dependency_tracking" != xno \
4590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCXX_TRUE=
4592 am__fastdepCXX_FALSE='#'
4593 else
4594 am__fastdepCXX_TRUE='#'
4595 am__fastdepCXX_FALSE=
4596 fi
4597
4598
4599 ac_ext=mm
4600 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4601 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4604 if test -n "$ac_tool_prefix"; then
4605 for ac_prog in g++ objc++ objcxx c++ CXX
4606 do
4607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_prog_OBJCXX+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$OBJCXX"; then
4615 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 OBJCXX=$ac_cv_prog_OBJCXX
4635 if test -n "$OBJCXX"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4637 $as_echo "$OBJCXX" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 test -n "$OBJCXX" && break
4645 done
4646 fi
4647 if test -z "$OBJCXX"; then
4648 ac_ct_OBJCXX=$OBJCXX
4649 for ac_prog in g++ objc++ objcxx c++ CXX
4650 do
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$ac_ct_OBJCXX"; then
4659 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi
4677 fi
4678 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4679 if test -n "$ac_ct_OBJCXX"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4681 $as_echo "$ac_ct_OBJCXX" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686
4687
4688 test -n "$ac_ct_OBJCXX" && break
4689 done
4690
4691 if test "x$ac_ct_OBJCXX" = x; then
4692 OBJCXX="g++"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 OBJCXX=$ac_ct_OBJCXX
4701 fi
4702 fi
4703
4704 # Provide some information about the compiler.
4705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4706 set X $ac_compile
4707 ac_compiler=$2
4708 for ac_option in --version -v -V -qversion; do
4709 { { ac_try="$ac_compiler $ac_option >&5"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4717 ac_status=$?
4718 if test -s conftest.err; then
4719 sed '10a\
4720 ... rest of stderr output deleted ...
4721 10q' conftest.err >conftest.er1
4722 cat conftest.er1 >&5
4723 fi
4724 rm -f conftest.er1 conftest.err
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727 done
4728
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4730 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4731 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736
4737 int
4738 main ()
4739 {
4740 #ifndef __GNUC__
4741 choke me
4742 #endif
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_objcxx_try_compile "$LINENO"; then :
4749 ac_compiler_gnu=yes
4750 else
4751 ac_compiler_gnu=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4758 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4759 if test $ac_compiler_gnu = yes; then
4760 GOBJCXX=yes
4761 else
4762 GOBJCXX=
4763 fi
4764 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4765 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4767 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4768 if ${ac_cv_prog_objcxx_g+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4772 ac_objcxx_werror_flag=yes
4773 ac_cv_prog_objcxx_g=no
4774 OBJCXXFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_objcxx_try_compile "$LINENO"; then :
4787 ac_cv_prog_objcxx_g=yes
4788 else
4789 OBJCXXFLAGS=""
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_objcxx_try_compile "$LINENO"; then :
4802
4803 else
4804 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4805 OBJCXXFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 int
4810 main ()
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_objcxx_try_compile "$LINENO"; then :
4818 ac_cv_prog_objcxx_g=yes
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4828 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4829 if test "$ac_test_OBJCXXFLAGS" = set; then
4830 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4831 elif test $ac_cv_prog_objcxx_g = yes; then
4832 if test "$GOBJCXX" = yes; then
4833 OBJCXXFLAGS="-g -O2"
4834 else
4835 OBJCXXFLAGS="-g"
4836 fi
4837 else
4838 if test "$GOBJCXX" = yes; then
4839 OBJCXXFLAGS="-O2"
4840 else
4841 OBJCXXFLAGS=
4842 fi
4843 fi
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4853 $as_echo_n "checking dependency style of $depcc... " >&6; }
4854 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4858 # We make a subdir and do the tests there. Otherwise we can end up
4859 # making bogus files that we don't know about and never remove. For
4860 # instance it was reported that on HP-UX the gcc test will end up
4861 # making a dummy file named 'D' -- because '-MD' means "put the output
4862 # in D".
4863 rm -rf conftest.dir
4864 mkdir conftest.dir
4865 # Copy depcomp to subdir because otherwise we won't find it if we're
4866 # using a relative directory.
4867 cp "$am_depcomp" conftest.dir
4868 cd conftest.dir
4869 # We will build objects and dependencies in a subdirectory because
4870 # it helps to detect inapplicable dependency modes. For instance
4871 # both Tru64's cc and ICC support -MD to output dependencies as a
4872 # side effect of compilation, but ICC will put the dependencies in
4873 # the current directory while Tru64 will put them in the object
4874 # directory.
4875 mkdir sub
4876
4877 am_cv_OBJCXX_dependencies_compiler_type=none
4878 if test "$am_compiler_list" = ""; then
4879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 fi
4881 am__universal=false
4882
4883
4884 for depmode in $am_compiler_list; do
4885 # Setup a source with many dependencies, because some compilers
4886 # like to wrap large dependency lists on column 80 (with \), and
4887 # we should not choose a depcomp mode which is confused by this.
4888 #
4889 # We need to recreate these files for each test, as the compiler may
4890 # overwrite some of them when testing with obscure command lines.
4891 # This happens at least with the AIX C compiler.
4892 : > sub/conftest.c
4893 for i in 1 2 3 4 5 6; do
4894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4896 # Solaris 10 /bin/sh.
4897 echo '/* dummy */' > sub/conftst$i.h
4898 done
4899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4902 # mode. It turns out that the SunPro C++ compiler does not properly
4903 # handle '-M -o', and we need to detect this. Also, some Intel
4904 # versions had trouble with output in subdirs.
4905 am__obj=sub/conftest.${OBJEXT-o}
4906 am__minus_obj="-o $am__obj"
4907 case $depmode in
4908 gcc)
4909 # This depmode causes a compiler race in universal mode.
4910 test "$am__universal" = false || continue
4911 ;;
4912 nosideeffect)
4913 # After this tag, mechanisms are not by side-effect, so they'll
4914 # only be used when explicitly requested.
4915 if test "x$enable_dependency_tracking" = xyes; then
4916 continue
4917 else
4918 break
4919 fi
4920 ;;
4921 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4922 # This compiler won't grok '-c -o', but also, the minuso test has
4923 # not run yet. These depmodes are late enough in the game, and
4924 # so weak that their functioning should not be impacted.
4925 am__obj=conftest.${OBJEXT-o}
4926 am__minus_obj=
4927 ;;
4928 none) break ;;
4929 esac
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=$am__obj \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4949 break
4950 fi
4951 fi
4952 done
4953
4954 cd ..
4955 rm -rf conftest.dir
4956 else
4957 am_cv_OBJCXX_dependencies_compiler_type=none
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4962 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4963 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4964
4965 if
4966 test "x$enable_dependency_tracking" != xno \
4967 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4968 am__fastdepOBJCXX_TRUE=
4969 am__fastdepOBJCXX_FALSE='#'
4970 else
4971 am__fastdepOBJCXX_TRUE='#'
4972 am__fastdepOBJCXX_FALSE=
4973 fi
4974
4975
4976
4977
4978 if test -n "$ac_tool_prefix"; then
4979 for ac_prog in ar lib "link -lib"
4980 do
4981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_AR+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$AR"; then
4989 ac_cv_prog_AR="$AR" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 AR=$ac_cv_prog_AR
5009 if test -n "$AR"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5011 $as_echo "$AR" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017
5018 test -n "$AR" && break
5019 done
5020 fi
5021 if test -z "$AR"; then
5022 ac_ct_AR=$AR
5023 for ac_prog in ar lib "link -lib"
5024 do
5025 # Extract the first word of "$ac_prog", so it can be a program name with args.
5026 set dummy $ac_prog; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$ac_ct_AR"; then
5033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_prog_ac_ct_AR="$ac_prog"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046 done
5047 done
5048 IFS=$as_save_IFS
5049
5050 fi
5051 fi
5052 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5053 if test -n "$ac_ct_AR"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5055 $as_echo "$ac_ct_AR" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061
5062 test -n "$ac_ct_AR" && break
5063 done
5064
5065 if test "x$ac_ct_AR" = x; then
5066 AR="false"
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074 AR=$ac_ct_AR
5075 fi
5076 fi
5077
5078 : ${AR=ar}
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5081 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5082 if ${am_cv_ar_interface+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091 am_cv_ar_interface=ar
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 int some_variable = 0;
5095 _ACEOF
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5099 (eval $am_ar_try) 2>&5
5100 ac_status=$?
5101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5102 test $ac_status = 0; }
5103 if test "$ac_status" -eq 0; then
5104 am_cv_ar_interface=ar
5105 else
5106 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5108 (eval $am_ar_try) 2>&5
5109 ac_status=$?
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if test "$ac_status" -eq 0; then
5113 am_cv_ar_interface=lib
5114 else
5115 am_cv_ar_interface=unknown
5116 fi
5117 fi
5118 rm -f conftest.lib libconftest.a
5119
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 ac_ext=c
5123 ac_cpp='$CPP $CPPFLAGS'
5124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5130 $as_echo "$am_cv_ar_interface" >&6; }
5131
5132 case $am_cv_ar_interface in
5133 ar)
5134 ;;
5135 lib)
5136 # Microsoft lib, so override with the ar-lib wrapper script.
5137 # FIXME: It is wrong to rewrite AR.
5138 # But if we don't then we get into trouble of one sort or another.
5139 # A longer-term fix would be to have automake use am__AR in this case,
5140 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5141 # similar.
5142 AR="$am_aux_dir/ar-lib $AR"
5143 ;;
5144 unknown)
5145 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5146 ;;
5147 esac
5148
5149
5150
5151 case `pwd` in
5152 *\ * | *\ *)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5154 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5155 esac
5156
5157
5158
5159 macro_version='2.4.6'
5160 macro_revision='2.4.6'
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 ltmain=$ac_aux_dir/ltmain.sh
5175
5176 # Make sure we can run config.sub.
5177 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5178 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5181 $as_echo_n "checking build system type... " >&6; }
5182 if ${ac_cv_build+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_build_alias=$build_alias
5186 test "x$ac_build_alias" = x &&
5187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5188 test "x$ac_build_alias" = x &&
5189 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5190 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5191 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5192
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5195 $as_echo "$ac_cv_build" >&6; }
5196 case $ac_cv_build in
5197 *-*-*) ;;
5198 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5199 esac
5200 build=$ac_cv_build
5201 ac_save_IFS=$IFS; IFS='-'
5202 set x $ac_cv_build
5203 shift
5204 build_cpu=$1
5205 build_vendor=$2
5206 shift; shift
5207 # Remember, the first character of IFS is used to create $*,
5208 # except with old shells:
5209 build_os=$*
5210 IFS=$ac_save_IFS
5211 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5215 $as_echo_n "checking host system type... " >&6; }
5216 if ${ac_cv_host+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test "x$host_alias" = x; then
5220 ac_cv_host=$ac_cv_build
5221 else
5222 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5223 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5224 fi
5225
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5228 $as_echo "$ac_cv_host" >&6; }
5229 case $ac_cv_host in
5230 *-*-*) ;;
5231 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5232 esac
5233 host=$ac_cv_host
5234 ac_save_IFS=$IFS; IFS='-'
5235 set x $ac_cv_host
5236 shift
5237 host_cpu=$1
5238 host_vendor=$2
5239 shift; shift
5240 # Remember, the first character of IFS is used to create $*,
5241 # except with old shells:
5242 host_os=$*
5243 IFS=$ac_save_IFS
5244 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5245
5246
5247 # Backslashify metacharacters that are still active within
5248 # double-quoted strings.
5249 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5250
5251 # Same as above, but do not quote variable references.
5252 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5253
5254 # Sed substitution to delay expansion of an escaped shell variable in a
5255 # double_quote_subst'ed string.
5256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5257
5258 # Sed substitution to delay expansion of an escaped single quote.
5259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5260
5261 # Sed substitution to avoid accidental globbing in evaled expressions
5262 no_glob_subst='s/\*/\\\*/g'
5263
5264 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5265 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5266 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5269 $as_echo_n "checking how to print strings... " >&6; }
5270 # Test print first, because it will be a builtin if present.
5271 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5272 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5273 ECHO='print -r --'
5274 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5275 ECHO='printf %s\n'
5276 else
5277 # Use this function as a fallback that always works.
5278 func_fallback_echo ()
5279 {
5280 eval 'cat <<_LTECHO_EOF
5281 $1
5282 _LTECHO_EOF'
5283 }
5284 ECHO='func_fallback_echo'
5285 fi
5286
5287 # func_echo_all arg...
5288 # Invoke $ECHO with all args, space-separated.
5289 func_echo_all ()
5290 {
5291 $ECHO ""
5292 }
5293
5294 case $ECHO in
5295 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5296 $as_echo "printf" >&6; } ;;
5297 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5298 $as_echo "print -r" >&6; } ;;
5299 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5300 $as_echo "cat" >&6; } ;;
5301 esac
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5317 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5318 if ${ac_cv_path_SED+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5322 for ac_i in 1 2 3 4 5 6 7; do
5323 ac_script="$ac_script$as_nl$ac_script"
5324 done
5325 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5326 { ac_script=; unset ac_script;}
5327 if test -z "$SED"; then
5328 ac_path_SED_found=false
5329 # Loop through the user's path and test for each of PROGNAME-LIST
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_prog in sed gsed; do
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5338 as_fn_executable_p "$ac_path_SED" || continue
5339 # Check for GNU ac_path_SED and select it if it is found.
5340 # Check for GNU $ac_path_SED
5341 case `"$ac_path_SED" --version 2>&1` in
5342 *GNU*)
5343 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5344 *)
5345 ac_count=0
5346 $as_echo_n 0123456789 >"conftest.in"
5347 while :
5348 do
5349 cat "conftest.in" "conftest.in" >"conftest.tmp"
5350 mv "conftest.tmp" "conftest.in"
5351 cp "conftest.in" "conftest.nl"
5352 $as_echo '' >> "conftest.nl"
5353 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5355 as_fn_arith $ac_count + 1 && ac_count=$as_val
5356 if test $ac_count -gt ${ac_path_SED_max-0}; then
5357 # Best one so far, save it but keep looking for a better one
5358 ac_cv_path_SED="$ac_path_SED"
5359 ac_path_SED_max=$ac_count
5360 fi
5361 # 10*(2^10) chars as input seems more than enough
5362 test $ac_count -gt 10 && break
5363 done
5364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5365 esac
5366
5367 $ac_path_SED_found && break 3
5368 done
5369 done
5370 done
5371 IFS=$as_save_IFS
5372 if test -z "$ac_cv_path_SED"; then
5373 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5374 fi
5375 else
5376 ac_cv_path_SED=$SED
5377 fi
5378
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5381 $as_echo "$ac_cv_path_SED" >&6; }
5382 SED="$ac_cv_path_SED"
5383 rm -f conftest.sed
5384
5385 test -z "$SED" && SED=sed
5386 Xsed="$SED -e 1s/^X//"
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5399 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5400 if ${ac_cv_path_GREP+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -z "$GREP"; then
5404 ac_path_GREP_found=false
5405 # Loop through the user's path and test for each of PROGNAME-LIST
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_prog in grep ggrep; do
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5414 as_fn_executable_p "$ac_path_GREP" || continue
5415 # Check for GNU ac_path_GREP and select it if it is found.
5416 # Check for GNU $ac_path_GREP
5417 case `"$ac_path_GREP" --version 2>&1` in
5418 *GNU*)
5419 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5420 *)
5421 ac_count=0
5422 $as_echo_n 0123456789 >"conftest.in"
5423 while :
5424 do
5425 cat "conftest.in" "conftest.in" >"conftest.tmp"
5426 mv "conftest.tmp" "conftest.in"
5427 cp "conftest.in" "conftest.nl"
5428 $as_echo 'GREP' >> "conftest.nl"
5429 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431 as_fn_arith $ac_count + 1 && ac_count=$as_val
5432 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5433 # Best one so far, save it but keep looking for a better one
5434 ac_cv_path_GREP="$ac_path_GREP"
5435 ac_path_GREP_max=$ac_count
5436 fi
5437 # 10*(2^10) chars as input seems more than enough
5438 test $ac_count -gt 10 && break
5439 done
5440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441 esac
5442
5443 $ac_path_GREP_found && break 3
5444 done
5445 done
5446 done
5447 IFS=$as_save_IFS
5448 if test -z "$ac_cv_path_GREP"; then
5449 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 fi
5451 else
5452 ac_cv_path_GREP=$GREP
5453 fi
5454
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5457 $as_echo "$ac_cv_path_GREP" >&6; }
5458 GREP="$ac_cv_path_GREP"
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5462 $as_echo_n "checking for egrep... " >&6; }
5463 if ${ac_cv_path_EGREP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5467 then ac_cv_path_EGREP="$GREP -E"
5468 else
5469 if test -z "$EGREP"; then
5470 ac_path_EGREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_prog in egrep; do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_EGREP" || continue
5481 # Check for GNU ac_path_EGREP and select it if it is found.
5482 # Check for GNU $ac_path_EGREP
5483 case `"$ac_path_EGREP" --version 2>&1` in
5484 *GNU*)
5485 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5486 *)
5487 ac_count=0
5488 $as_echo_n 0123456789 >"conftest.in"
5489 while :
5490 do
5491 cat "conftest.in" "conftest.in" >"conftest.tmp"
5492 mv "conftest.tmp" "conftest.in"
5493 cp "conftest.in" "conftest.nl"
5494 $as_echo 'EGREP' >> "conftest.nl"
5495 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5497 as_fn_arith $ac_count + 1 && ac_count=$as_val
5498 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5499 # Best one so far, save it but keep looking for a better one
5500 ac_cv_path_EGREP="$ac_path_EGREP"
5501 ac_path_EGREP_max=$ac_count
5502 fi
5503 # 10*(2^10) chars as input seems more than enough
5504 test $ac_count -gt 10 && break
5505 done
5506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507 esac
5508
5509 $ac_path_EGREP_found && break 3
5510 done
5511 done
5512 done
5513 IFS=$as_save_IFS
5514 if test -z "$ac_cv_path_EGREP"; then
5515 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 fi
5517 else
5518 ac_cv_path_EGREP=$EGREP
5519 fi
5520
5521 fi
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5524 $as_echo "$ac_cv_path_EGREP" >&6; }
5525 EGREP="$ac_cv_path_EGREP"
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5529 $as_echo_n "checking for fgrep... " >&6; }
5530 if ${ac_cv_path_FGREP+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5534 then ac_cv_path_FGREP="$GREP -F"
5535 else
5536 if test -z "$FGREP"; then
5537 ac_path_FGREP_found=false
5538 # Loop through the user's path and test for each of PROGNAME-LIST
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541 do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_prog in fgrep; do
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5547 as_fn_executable_p "$ac_path_FGREP" || continue
5548 # Check for GNU ac_path_FGREP and select it if it is found.
5549 # Check for GNU $ac_path_FGREP
5550 case `"$ac_path_FGREP" --version 2>&1` in
5551 *GNU*)
5552 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5553 *)
5554 ac_count=0
5555 $as_echo_n 0123456789 >"conftest.in"
5556 while :
5557 do
5558 cat "conftest.in" "conftest.in" >"conftest.tmp"
5559 mv "conftest.tmp" "conftest.in"
5560 cp "conftest.in" "conftest.nl"
5561 $as_echo 'FGREP' >> "conftest.nl"
5562 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564 as_fn_arith $ac_count + 1 && ac_count=$as_val
5565 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5566 # Best one so far, save it but keep looking for a better one
5567 ac_cv_path_FGREP="$ac_path_FGREP"
5568 ac_path_FGREP_max=$ac_count
5569 fi
5570 # 10*(2^10) chars as input seems more than enough
5571 test $ac_count -gt 10 && break
5572 done
5573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574 esac
5575
5576 $ac_path_FGREP_found && break 3
5577 done
5578 done
5579 done
5580 IFS=$as_save_IFS
5581 if test -z "$ac_cv_path_FGREP"; then
5582 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5583 fi
5584 else
5585 ac_cv_path_FGREP=$FGREP
5586 fi
5587
5588 fi
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5591 $as_echo "$ac_cv_path_FGREP" >&6; }
5592 FGREP="$ac_cv_path_FGREP"
5593
5594
5595 test -z "$GREP" && GREP=grep
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 # Check whether --with-gnu-ld was given.
5616 if test "${with_gnu_ld+set}" = set; then :
5617 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5618 else
5619 with_gnu_ld=no
5620 fi
5621
5622 ac_prog=ld
5623 if test yes = "$GCC"; then
5624 # Check if gcc -print-prog-name=ld gives a path.
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5626 $as_echo_n "checking for ld used by $CC... " >&6; }
5627 case $host in
5628 *-*-mingw*)
5629 # gcc leaves a trailing carriage return, which upsets mingw
5630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5631 *)
5632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5633 esac
5634 case $ac_prog in
5635 # Accept absolute paths.
5636 [\\/]* | ?:[\\/]*)
5637 re_direlt='/[^/][^/]*/\.\./'
5638 # Canonicalize the pathname of ld
5639 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5640 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5641 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5642 done
5643 test -z "$LD" && LD=$ac_prog
5644 ;;
5645 "")
5646 # If it fails, then pretend we aren't using GCC.
5647 ac_prog=ld
5648 ;;
5649 *)
5650 # If it is relative, then search for the first ld in PATH.
5651 with_gnu_ld=unknown
5652 ;;
5653 esac
5654 elif test yes = "$with_gnu_ld"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5656 $as_echo_n "checking for GNU ld... " >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5659 $as_echo_n "checking for non-GNU ld... " >&6; }
5660 fi
5661 if ${lt_cv_path_LD+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -z "$LD"; then
5665 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5666 for ac_dir in $PATH; do
5667 IFS=$lt_save_ifs
5668 test -z "$ac_dir" && ac_dir=.
5669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5670 lt_cv_path_LD=$ac_dir/$ac_prog
5671 # Check to see if the program is GNU ld. I'd rather use --version,
5672 # but apparently some variants of GNU ld only accept -v.
5673 # Break only if it was the GNU/non-GNU ld that we prefer.
5674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5675 *GNU* | *'with BFD'*)
5676 test no != "$with_gnu_ld" && break
5677 ;;
5678 *)
5679 test yes != "$with_gnu_ld" && break
5680 ;;
5681 esac
5682 fi
5683 done
5684 IFS=$lt_save_ifs
5685 else
5686 lt_cv_path_LD=$LD # Let the user override the test with a path.
5687 fi
5688 fi
5689
5690 LD=$lt_cv_path_LD
5691 if test -n "$LD"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5693 $as_echo "$LD" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5700 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5701 if ${lt_cv_prog_gnu_ld+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5705 case `$LD -v 2>&1 </dev/null` in
5706 *GNU* | *'with BFD'*)
5707 lt_cv_prog_gnu_ld=yes
5708 ;;
5709 *)
5710 lt_cv_prog_gnu_ld=no
5711 ;;
5712 esac
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5715 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5716 with_gnu_ld=$lt_cv_prog_gnu_ld
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5727 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5728 if ${lt_cv_path_NM+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$NM"; then
5732 # Let the user override the test.
5733 lt_cv_path_NM=$NM
5734 else
5735 lt_nm_to_check=${ac_tool_prefix}nm
5736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737 lt_nm_to_check="$lt_nm_to_check nm"
5738 fi
5739 for lt_tmp_nm in $lt_nm_to_check; do
5740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5742 IFS=$lt_save_ifs
5743 test -z "$ac_dir" && ac_dir=.
5744 tmp_nm=$ac_dir/$lt_tmp_nm
5745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5746 # Check to see if the nm accepts a BSD-compat flag.
5747 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5748 # nm: unknown option "B" ignored
5749 # Tru64's nm complains that /dev/null is an invalid object file
5750 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5751 case $build_os in
5752 mingw*) lt_bad_file=conftest.nm/nofile ;;
5753 *) lt_bad_file=/dev/null ;;
5754 esac
5755 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5756 *$lt_bad_file* | *'Invalid file or object type'*)
5757 lt_cv_path_NM="$tmp_nm -B"
5758 break 2
5759 ;;
5760 *)
5761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5762 */dev/null*)
5763 lt_cv_path_NM="$tmp_nm -p"
5764 break 2
5765 ;;
5766 *)
5767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5768 continue # so that we can try to find one that supports BSD flags
5769 ;;
5770 esac
5771 ;;
5772 esac
5773 fi
5774 done
5775 IFS=$lt_save_ifs
5776 done
5777 : ${lt_cv_path_NM=no}
5778 fi
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5781 $as_echo "$lt_cv_path_NM" >&6; }
5782 if test no != "$lt_cv_path_NM"; then
5783 NM=$lt_cv_path_NM
5784 else
5785 # Didn't find any BSD compatible name lister, look for dumpbin.
5786 if test -n "$DUMPBIN"; then :
5787 # Let the user override the test.
5788 else
5789 if test -n "$ac_tool_prefix"; then
5790 for ac_prog in dumpbin "link -dump"
5791 do
5792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_DUMPBIN+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$DUMPBIN"; then
5800 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 DUMPBIN=$ac_cv_prog_DUMPBIN
5820 if test -n "$DUMPBIN"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5822 $as_echo "$DUMPBIN" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 test -n "$DUMPBIN" && break
5830 done
5831 fi
5832 if test -z "$DUMPBIN"; then
5833 ac_ct_DUMPBIN=$DUMPBIN
5834 for ac_prog in dumpbin "link -dump"
5835 do
5836 # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$ac_ct_DUMPBIN"; then
5844 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5864 if test -n "$ac_ct_DUMPBIN"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5866 $as_echo "$ac_ct_DUMPBIN" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872
5873 test -n "$ac_ct_DUMPBIN" && break
5874 done
5875
5876 if test "x$ac_ct_DUMPBIN" = x; then
5877 DUMPBIN=":"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885 DUMPBIN=$ac_ct_DUMPBIN
5886 fi
5887 fi
5888
5889 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5890 *COFF*)
5891 DUMPBIN="$DUMPBIN -symbols -headers"
5892 ;;
5893 *)
5894 DUMPBIN=:
5895 ;;
5896 esac
5897 fi
5898
5899 if test : != "$DUMPBIN"; then
5900 NM=$DUMPBIN
5901 fi
5902 fi
5903 test -z "$NM" && NM=nm
5904
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5911 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5912 if ${lt_cv_nm_interface+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 lt_cv_nm_interface="BSD nm"
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5918 (eval "$ac_compile" 2>conftest.err)
5919 cat conftest.err >&5
5920 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5921 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5922 cat conftest.err >&5
5923 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5924 cat conftest.out >&5
5925 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5926 lt_cv_nm_interface="MS dumpbin"
5927 fi
5928 rm -rf conftest*
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5931 $as_echo "$lt_cv_nm_interface" >&6; }
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5934 $as_echo_n "checking whether ln -s works... " >&6; }
5935 LN_S=$as_ln_s
5936 if test "$LN_S" = "ln -s"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5938 $as_echo "yes" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5941 $as_echo "no, using $LN_S" >&6; }
5942 fi
5943
5944 # find the maximum length of command line arguments
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5946 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5947 if ${lt_cv_sys_max_cmd_len+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 i=0
5951 teststring=ABCD
5952
5953 case $build_os in
5954 msdosdjgpp*)
5955 # On DJGPP, this test can blow up pretty badly due to problems in libc
5956 # (any single argument exceeding 2000 bytes causes a buffer overrun
5957 # during glob expansion). Even if it were fixed, the result of this
5958 # check would be larger than it should be.
5959 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5960 ;;
5961
5962 gnu*)
5963 # Under GNU Hurd, this test is not required because there is
5964 # no limit to the length of command line arguments.
5965 # Libtool will interpret -1 as no limit whatsoever
5966 lt_cv_sys_max_cmd_len=-1;
5967 ;;
5968
5969 cygwin* | mingw* | cegcc*)
5970 # On Win9x/ME, this test blows up -- it succeeds, but takes
5971 # about 5 minutes as the teststring grows exponentially.
5972 # Worse, since 9x/ME are not pre-emptively multitasking,
5973 # you end up with a "frozen" computer, even though with patience
5974 # the test eventually succeeds (with a max line length of 256k).
5975 # Instead, let's just punt: use the minimum linelength reported by
5976 # all of the supported platforms: 8192 (on NT/2K/XP).
5977 lt_cv_sys_max_cmd_len=8192;
5978 ;;
5979
5980 mint*)
5981 # On MiNT this can take a long time and run out of memory.
5982 lt_cv_sys_max_cmd_len=8192;
5983 ;;
5984
5985 amigaos*)
5986 # On AmigaOS with pdksh, this test takes hours, literally.
5987 # So we just punt and use a minimum line length of 8192.
5988 lt_cv_sys_max_cmd_len=8192;
5989 ;;
5990
5991 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5992 # This has been around since 386BSD, at least. Likely further.
5993 if test -x /sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5995 elif test -x /usr/sbin/sysctl; then
5996 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5997 else
5998 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5999 fi
6000 # And add a safety zone
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6003 ;;
6004
6005 interix*)
6006 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6007 lt_cv_sys_max_cmd_len=196608
6008 ;;
6009
6010 os2*)
6011 # The test takes a long time on OS/2.
6012 lt_cv_sys_max_cmd_len=8192
6013 ;;
6014
6015 osf*)
6016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6018 # nice to cause kernel panics so lets avoid the loop below.
6019 # First set a reasonable default.
6020 lt_cv_sys_max_cmd_len=16384
6021 #
6022 if test -x /sbin/sysconfig; then
6023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6024 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6025 esac
6026 fi
6027 ;;
6028 sco3.2v5*)
6029 lt_cv_sys_max_cmd_len=102400
6030 ;;
6031 sysv5* | sco5v6* | sysv4.2uw2*)
6032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6033 if test -n "$kargmax"; then
6034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6035 else
6036 lt_cv_sys_max_cmd_len=32768
6037 fi
6038 ;;
6039 *)
6040 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6041 if test -n "$lt_cv_sys_max_cmd_len" && \
6042 test undefined != "$lt_cv_sys_max_cmd_len"; then
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6045 else
6046 # Make teststring a little bigger before we do anything with it.
6047 # a 1K string should be a reasonable start.
6048 for i in 1 2 3 4 5 6 7 8; do
6049 teststring=$teststring$teststring
6050 done
6051 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6052 # If test is not a shell built-in, we'll probably end up computing a
6053 # maximum length that is only half of the actual maximum length, but
6054 # we can't tell.
6055 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6056 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6057 test 17 != "$i" # 1/2 MB should be enough
6058 do
6059 i=`expr $i + 1`
6060 teststring=$teststring$teststring
6061 done
6062 # Only check the string length outside the loop.
6063 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6064 teststring=
6065 # Add a significant safety factor because C++ compilers can tack on
6066 # massive amounts of additional arguments before passing them to the
6067 # linker. It appears as though 1/2 is a usable value.
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6069 fi
6070 ;;
6071 esac
6072
6073 fi
6074
6075 if test -n "$lt_cv_sys_max_cmd_len"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6077 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6080 $as_echo "none" >&6; }
6081 fi
6082 max_cmd_len=$lt_cv_sys_max_cmd_len
6083
6084
6085
6086
6087
6088
6089 : ${CP="cp -f"}
6090 : ${MV="mv -f"}
6091 : ${RM="rm -f"}
6092
6093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6094 lt_unset=unset
6095 else
6096 lt_unset=false
6097 fi
6098
6099
6100
6101
6102
6103 # test EBCDIC or ASCII
6104 case `echo X|tr X '\101'` in
6105 A) # ASCII based system
6106 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6107 lt_SP2NL='tr \040 \012'
6108 lt_NL2SP='tr \015\012 \040\040'
6109 ;;
6110 *) # EBCDIC based system
6111 lt_SP2NL='tr \100 \n'
6112 lt_NL2SP='tr \r\n \100\100'
6113 ;;
6114 esac
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6125 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6126 if ${lt_cv_to_host_file_cmd+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 case $host in
6130 *-*-mingw* )
6131 case $build in
6132 *-*-mingw* ) # actually msys
6133 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6134 ;;
6135 *-*-cygwin* )
6136 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6137 ;;
6138 * ) # otherwise, assume *nix
6139 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6140 ;;
6141 esac
6142 ;;
6143 *-*-cygwin* )
6144 case $build in
6145 *-*-mingw* ) # actually msys
6146 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6147 ;;
6148 *-*-cygwin* )
6149 lt_cv_to_host_file_cmd=func_convert_file_noop
6150 ;;
6151 * ) # otherwise, assume *nix
6152 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6153 ;;
6154 esac
6155 ;;
6156 * ) # unhandled hosts (and "normal" native builds)
6157 lt_cv_to_host_file_cmd=func_convert_file_noop
6158 ;;
6159 esac
6160
6161 fi
6162
6163 to_host_file_cmd=$lt_cv_to_host_file_cmd
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6165 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6166
6167
6168
6169
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6172 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6173 if ${lt_cv_to_tool_file_cmd+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 #assume ordinary cross tools, or native build.
6177 lt_cv_to_tool_file_cmd=func_convert_file_noop
6178 case $host in
6179 *-*-mingw* )
6180 case $build in
6181 *-*-mingw* ) # actually msys
6182 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6183 ;;
6184 esac
6185 ;;
6186 esac
6187
6188 fi
6189
6190 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6192 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6193
6194
6195
6196
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6199 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6200 if ${lt_cv_ld_reload_flag+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 lt_cv_ld_reload_flag='-r'
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6206 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6207 reload_flag=$lt_cv_ld_reload_flag
6208 case $reload_flag in
6209 "" | " "*) ;;
6210 *) reload_flag=" $reload_flag" ;;
6211 esac
6212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6213 case $host_os in
6214 cygwin* | mingw* | pw32* | cegcc*)
6215 if test yes != "$GCC"; then
6216 reload_cmds=false
6217 fi
6218 ;;
6219 darwin*)
6220 if test yes = "$GCC"; then
6221 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6222 else
6223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6224 fi
6225 ;;
6226 esac
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_OBJDUMP+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$OBJDUMP"; then
6245 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 OBJDUMP=$ac_cv_prog_OBJDUMP
6265 if test -n "$OBJDUMP"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6267 $as_echo "$OBJDUMP" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_OBJDUMP"; then
6276 ac_ct_OBJDUMP=$OBJDUMP
6277 # Extract the first word of "objdump", so it can be a program name with args.
6278 set dummy objdump; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_OBJDUMP"; then
6285 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6305 if test -n "$ac_ct_OBJDUMP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6307 $as_echo "$ac_ct_OBJDUMP" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313 if test "x$ac_ct_OBJDUMP" = x; then
6314 OBJDUMP="false"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 OBJDUMP=$ac_ct_OBJDUMP
6323 fi
6324 else
6325 OBJDUMP="$ac_cv_prog_OBJDUMP"
6326 fi
6327
6328 test -z "$OBJDUMP" && OBJDUMP=objdump
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6339 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6340 if ${lt_cv_deplibs_check_method+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 lt_cv_file_magic_cmd='$MAGIC_CMD'
6344 lt_cv_file_magic_test_file=
6345 lt_cv_deplibs_check_method='unknown'
6346 # Need to set the preceding variable on all platforms that support
6347 # interlibrary dependencies.
6348 # 'none' -- dependencies not supported.
6349 # 'unknown' -- same as none, but documents that we really don't know.
6350 # 'pass_all' -- all dependencies passed with no checks.
6351 # 'test_compile' -- check by making test program.
6352 # 'file_magic [[regex]]' -- check by looking for files in library path
6353 # that responds to the $file_magic_cmd with a given extended regex.
6354 # If you have 'file' or equivalent on your system and you're not sure
6355 # whether 'pass_all' will *always* work, you probably want this one.
6356
6357 case $host_os in
6358 aix[4-9]*)
6359 lt_cv_deplibs_check_method=pass_all
6360 ;;
6361
6362 beos*)
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366 bsdi[45]*)
6367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6368 lt_cv_file_magic_cmd='/usr/bin/file -L'
6369 lt_cv_file_magic_test_file=/shlib/libc.so
6370 ;;
6371
6372 cygwin*)
6373 # func_win32_libid is a shell function defined in ltmain.sh
6374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375 lt_cv_file_magic_cmd='func_win32_libid'
6376 ;;
6377
6378 mingw* | pw32*)
6379 # Base MSYS/MinGW do not provide the 'file' command needed by
6380 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6381 # unless we find 'file', for example because we are cross-compiling.
6382 if ( file / ) >/dev/null 2>&1; then
6383 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6384 lt_cv_file_magic_cmd='func_win32_libid'
6385 else
6386 # Keep this pattern in sync with the one in func_win32_libid.
6387 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6388 lt_cv_file_magic_cmd='$OBJDUMP -f'
6389 fi
6390 ;;
6391
6392 cegcc*)
6393 # use the weaker test based on 'objdump'. See mingw*.
6394 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6395 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 ;;
6397
6398 darwin* | rhapsody*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
6402 freebsd* | dragonfly*)
6403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6404 case $host_cpu in
6405 i*86 )
6406 # Not sure whether the presence of OpenBSD here was a mistake.
6407 # Let's accept both of them until this is cleared up.
6408 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6409 lt_cv_file_magic_cmd=/usr/bin/file
6410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6411 ;;
6412 esac
6413 else
6414 lt_cv_deplibs_check_method=pass_all
6415 fi
6416 ;;
6417
6418 haiku*)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421
6422 hpux10.20* | hpux11*)
6423 lt_cv_file_magic_cmd=/usr/bin/file
6424 case $host_cpu in
6425 ia64*)
6426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6427 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6428 ;;
6429 hppa*64*)
6430 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]'
6431 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6432 ;;
6433 *)
6434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6435 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6436 ;;
6437 esac
6438 ;;
6439
6440 interix[3-9]*)
6441 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6443 ;;
6444
6445 irix5* | irix6* | nonstopux*)
6446 case $LD in
6447 *-32|*"-32 ") libmagic=32-bit;;
6448 *-n32|*"-n32 ") libmagic=N32;;
6449 *-64|*"-64 ") libmagic=64-bit;;
6450 *) libmagic=never-match;;
6451 esac
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 # This must be glibc/ELF.
6456 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6457 lt_cv_deplibs_check_method=pass_all
6458 ;;
6459
6460 netbsd*)
6461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6463 else
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6465 fi
6466 ;;
6467
6468 newos6*)
6469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6470 lt_cv_file_magic_cmd=/usr/bin/file
6471 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6472 ;;
6473
6474 *nto* | *qnx*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477
6478 openbsd* | bitrig*)
6479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6481 else
6482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6483 fi
6484 ;;
6485
6486 osf3* | osf4* | osf5*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 rdos*)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493
6494 solaris*)
6495 lt_cv_deplibs_check_method=pass_all
6496 ;;
6497
6498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501
6502 sysv4 | sysv4.3*)
6503 case $host_vendor in
6504 motorola)
6505 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]'
6506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6507 ;;
6508 ncr)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511 sequent)
6512 lt_cv_file_magic_cmd='/bin/file'
6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6514 ;;
6515 sni)
6516 lt_cv_file_magic_cmd='/bin/file'
6517 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6518 lt_cv_file_magic_test_file=/lib/libc.so
6519 ;;
6520 siemens)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523 pc)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526 esac
6527 ;;
6528
6529 tpf*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532 os2*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535 esac
6536
6537 fi
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6539 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6540
6541 file_magic_glob=
6542 want_nocaseglob=no
6543 if test "$build" = "$host"; then
6544 case $host_os in
6545 mingw* | pw32*)
6546 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6547 want_nocaseglob=yes
6548 else
6549 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6550 fi
6551 ;;
6552 esac
6553 fi
6554
6555 file_magic_cmd=$lt_cv_file_magic_cmd
6556 deplibs_check_method=$lt_cv_deplibs_check_method
6557 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_DLLTOOL+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 if test -n "$DLLTOOL"; then
6589 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 DLLTOOL=$ac_cv_prog_DLLTOOL
6609 if test -n "$DLLTOOL"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6611 $as_echo "$DLLTOOL" >&6; }
6612 else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618 fi
6619 if test -z "$ac_cv_prog_DLLTOOL"; then
6620 ac_ct_DLLTOOL=$DLLTOOL
6621 # Extract the first word of "dlltool", so it can be a program name with args.
6622 set dummy dlltool; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 if test -n "$ac_ct_DLLTOOL"; then
6629 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6649 if test -n "$ac_ct_DLLTOOL"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6651 $as_echo "$ac_ct_DLLTOOL" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655 fi
6656
6657 if test "x$ac_ct_DLLTOOL" = x; then
6658 DLLTOOL="false"
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661 yes:)
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6665 esac
6666 DLLTOOL=$ac_ct_DLLTOOL
6667 fi
6668 else
6669 DLLTOOL="$ac_cv_prog_DLLTOOL"
6670 fi
6671
6672 test -z "$DLLTOOL" && DLLTOOL=dlltool
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6684 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6685 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 lt_cv_sharedlib_from_linklib_cmd='unknown'
6689
6690 case $host_os in
6691 cygwin* | mingw* | pw32* | cegcc*)
6692 # two different shell functions defined in ltmain.sh;
6693 # decide which one to use based on capabilities of $DLLTOOL
6694 case `$DLLTOOL --help 2>&1` in
6695 *--identify-strict*)
6696 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6697 ;;
6698 *)
6699 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6700 ;;
6701 esac
6702 ;;
6703 *)
6704 # fallback: assume linklib IS sharedlib
6705 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6706 ;;
6707 esac
6708
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6711 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6712 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6713 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6714
6715
6716
6717
6718
6719
6720
6721 if test -n "$ac_tool_prefix"; then
6722 for ac_prog in ar
6723 do
6724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_AR+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$AR"; then
6732 ac_cv_prog_AR="$AR" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 AR=$ac_cv_prog_AR
6752 if test -n "$AR"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6754 $as_echo "$AR" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759
6760
6761 test -n "$AR" && break
6762 done
6763 fi
6764 if test -z "$AR"; then
6765 ac_ct_AR=$AR
6766 for ac_prog in ar
6767 do
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$ac_ct_AR"; then
6776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_ac_ct_AR="$ac_prog"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6796 if test -n "$ac_ct_AR"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6798 $as_echo "$ac_ct_AR" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 test -n "$ac_ct_AR" && break
6806 done
6807
6808 if test "x$ac_ct_AR" = x; then
6809 AR="false"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 AR=$ac_ct_AR
6818 fi
6819 fi
6820
6821 : ${AR=ar}
6822 : ${AR_FLAGS=cru}
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6835 $as_echo_n "checking for archiver @FILE support... " >&6; }
6836 if ${lt_cv_ar_at_file+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 lt_cv_ar_at_file=no
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842
6843 int
6844 main ()
6845 {
6846
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 echo conftest.$ac_objext > conftest.lst
6853 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6855 (eval $lt_ar_try) 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }
6859 if test 0 -eq "$ac_status"; then
6860 # Ensure the archiver fails upon bogus file names.
6861 rm -f conftest.$ac_objext libconftest.a
6862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6863 (eval $lt_ar_try) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }
6867 if test 0 -ne "$ac_status"; then
6868 lt_cv_ar_at_file=@
6869 fi
6870 fi
6871 rm -f conftest.* libconftest.a
6872
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6878 $as_echo "$lt_cv_ar_at_file" >&6; }
6879
6880 if test no = "$lt_cv_ar_at_file"; then
6881 archiver_list_spec=
6882 else
6883 archiver_list_spec=$lt_cv_ar_at_file
6884 fi
6885
6886
6887
6888
6889
6890
6891
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}strip; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_STRIP+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$STRIP"; then
6901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 STRIP=$ac_cv_prog_STRIP
6921 if test -n "$STRIP"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6923 $as_echo "$STRIP" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_STRIP"; then
6932 ac_ct_STRIP=$STRIP
6933 # Extract the first word of "strip", so it can be a program name with args.
6934 set dummy strip; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$ac_ct_STRIP"; then
6941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_STRIP="strip"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6961 if test -n "$ac_ct_STRIP"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6963 $as_echo "$ac_ct_STRIP" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969 if test "x$ac_ct_STRIP" = x; then
6970 STRIP=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 STRIP=$ac_ct_STRIP
6979 fi
6980 else
6981 STRIP="$ac_cv_prog_STRIP"
6982 fi
6983
6984 test -z "$STRIP" && STRIP=:
6985
6986
6987
6988
6989
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_RANLIB+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$RANLIB"; then
7000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 RANLIB=$ac_cv_prog_RANLIB
7020 if test -n "$RANLIB"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7022 $as_echo "$RANLIB" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033 set dummy ranlib; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_RANLIB"; then
7040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_RANLIB="ranlib"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060 if test -n "$ac_ct_RANLIB"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7062 $as_echo "$ac_ct_RANLIB" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_RANLIB" = x; then
7069 RANLIB=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 RANLIB=$ac_ct_RANLIB
7078 fi
7079 else
7080 RANLIB="$ac_cv_prog_RANLIB"
7081 fi
7082
7083 test -z "$RANLIB" && RANLIB=:
7084
7085
7086
7087
7088
7089
7090 # Determine commands to create old-style static archives.
7091 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7092 old_postinstall_cmds='chmod 644 $oldlib'
7093 old_postuninstall_cmds=
7094
7095 if test -n "$RANLIB"; then
7096 case $host_os in
7097 bitrig* | openbsd*)
7098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7099 ;;
7100 *)
7101 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7102 ;;
7103 esac
7104 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7105 fi
7106
7107 case $host_os in
7108 darwin*)
7109 lock_old_archive_extraction=yes ;;
7110 *)
7111 lock_old_archive_extraction=no ;;
7112 esac
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152 # If no C compiler was specified, use CC.
7153 LTCC=${LTCC-"$CC"}
7154
7155 # If no C compiler flags were specified, use CFLAGS.
7156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7157
7158 # Allow CC to be a program name with arguments.
7159 compiler=$CC
7160
7161
7162 # Check for command to grab the raw symbol name followed by C symbol from nm.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7164 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7165 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168
7169 # These are sane defaults that work on at least a few old systems.
7170 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7171
7172 # Character class describing NM global symbol codes.
7173 symcode='[BCDEGRST]'
7174
7175 # Regexp to match symbols that can be accessed directly from C.
7176 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7177
7178 # Define system-specific variables.
7179 case $host_os in
7180 aix*)
7181 symcode='[BCDT]'
7182 ;;
7183 cygwin* | mingw* | pw32* | cegcc*)
7184 symcode='[ABCDGISTW]'
7185 ;;
7186 hpux*)
7187 if test ia64 = "$host_cpu"; then
7188 symcode='[ABCDEGRST]'
7189 fi
7190 ;;
7191 irix* | nonstopux*)
7192 symcode='[BCDEGRST]'
7193 ;;
7194 osf*)
7195 symcode='[BCDEGQRST]'
7196 ;;
7197 solaris*)
7198 symcode='[BDRT]'
7199 ;;
7200 sco3.2v5*)
7201 symcode='[DT]'
7202 ;;
7203 sysv4.2uw2*)
7204 symcode='[DT]'
7205 ;;
7206 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7207 symcode='[ABDT]'
7208 ;;
7209 sysv4)
7210 symcode='[DFNSTU]'
7211 ;;
7212 esac
7213
7214 # If we're using GNU nm, then use its standard symbol codes.
7215 case `$NM -V 2>&1` in
7216 *GNU* | *'with BFD'*)
7217 symcode='[ABCDGIRSTW]' ;;
7218 esac
7219
7220 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7221 # Gets list of data symbols to import.
7222 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7223 # Adjust the below global symbol transforms to fixup imported variables.
7224 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7225 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7226 lt_c_name_lib_hook="\
7227 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7228 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7229 else
7230 # Disable hooks by default.
7231 lt_cv_sys_global_symbol_to_import=
7232 lt_cdecl_hook=
7233 lt_c_name_hook=
7234 lt_c_name_lib_hook=
7235 fi
7236
7237 # Transform an extracted symbol line into a proper C declaration.
7238 # Some systems (esp. on ia64) link data and code symbols differently,
7239 # so use this general approach.
7240 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7241 $lt_cdecl_hook\
7242 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7243 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7244
7245 # Transform an extracted symbol line into symbol name and symbol address
7246 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7247 $lt_c_name_hook\
7248 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7249 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7250
7251 # Transform an extracted symbol line into symbol name with lib prefix and
7252 # symbol address.
7253 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7254 $lt_c_name_lib_hook\
7255 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7256 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7257 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7258
7259 # Handle CRLF in mingw tool chain
7260 opt_cr=
7261 case $build_os in
7262 mingw*)
7263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7264 ;;
7265 esac
7266
7267 # Try without a prefix underscore, then with it.
7268 for ac_symprfx in "" "_"; do
7269
7270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7271 symxfrm="\\1 $ac_symprfx\\2 \\2"
7272
7273 # Write the raw and C identifiers.
7274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7275 # Fake it for dumpbin and say T for any non-static function,
7276 # D for any global variable and I for any imported variable.
7277 # Also find C++ and __fastcall symbols from MSVC++,
7278 # which start with @ or ?.
7279 lt_cv_sys_global_symbol_pipe="$AWK '"\
7280 " {last_section=section; section=\$ 3};"\
7281 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7283 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7284 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7285 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7286 " \$ 0!~/External *\|/{next};"\
7287 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7288 " {if(hide[section]) next};"\
7289 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7290 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7291 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7292 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7293 " ' prfx=^$ac_symprfx"
7294 else
7295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7296 fi
7297 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7298
7299 # Check to see that the pipe works correctly.
7300 pipe_works=no
7301
7302 rm -rf conftest*
7303 cat > conftest.$ac_ext <<_LT_EOF
7304 #ifdef __cplusplus
7305 extern "C" {
7306 #endif
7307 char nm_test_var;
7308 void nm_test_func(void);
7309 void nm_test_func(void){}
7310 #ifdef __cplusplus
7311 }
7312 #endif
7313 int main(){nm_test_var='a';nm_test_func();return(0);}
7314 _LT_EOF
7315
7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317 (eval $ac_compile) 2>&5
7318 ac_status=$?
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 # Now try to grab the symbols.
7322 nlist=conftest.nm
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7324 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; } && test -s "$nlist"; then
7328 # Try sorting and uniquifying the output.
7329 if sort "$nlist" | uniq > "$nlist"T; then
7330 mv -f "$nlist"T "$nlist"
7331 else
7332 rm -f "$nlist"T
7333 fi
7334
7335 # Make sure that we snagged all the symbols we need.
7336 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7337 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7338 cat <<_LT_EOF > conftest.$ac_ext
7339 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7340 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7341 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7342 relocations are performed -- see ld's documentation on pseudo-relocs. */
7343 # define LT_DLSYM_CONST
7344 #elif defined __osf__
7345 /* This system does not cope well with relocations in const data. */
7346 # define LT_DLSYM_CONST
7347 #else
7348 # define LT_DLSYM_CONST const
7349 #endif
7350
7351 #ifdef __cplusplus
7352 extern "C" {
7353 #endif
7354
7355 _LT_EOF
7356 # Now generate the symbol file.
7357 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7358
7359 cat <<_LT_EOF >> conftest.$ac_ext
7360
7361 /* The mapping between symbol names and symbols. */
7362 LT_DLSYM_CONST struct {
7363 const char *name;
7364 void *address;
7365 }
7366 lt__PROGRAM__LTX_preloaded_symbols[] =
7367 {
7368 { "@PROGRAM@", (void *) 0 },
7369 _LT_EOF
7370 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7371 cat <<\_LT_EOF >> conftest.$ac_ext
7372 {0, (void *) 0}
7373 };
7374
7375 /* This works around a problem in FreeBSD linker */
7376 #ifdef FREEBSD_WORKAROUND
7377 static const void *lt_preloaded_setup() {
7378 return lt__PROGRAM__LTX_preloaded_symbols;
7379 }
7380 #endif
7381
7382 #ifdef __cplusplus
7383 }
7384 #endif
7385 _LT_EOF
7386 # Now try linking the two files.
7387 mv conftest.$ac_objext conftstm.$ac_objext
7388 lt_globsym_save_LIBS=$LIBS
7389 lt_globsym_save_CFLAGS=$CFLAGS
7390 LIBS=conftstm.$ac_objext
7391 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7397 pipe_works=yes
7398 fi
7399 LIBS=$lt_globsym_save_LIBS
7400 CFLAGS=$lt_globsym_save_CFLAGS
7401 else
7402 echo "cannot find nm_test_func in $nlist" >&5
7403 fi
7404 else
7405 echo "cannot find nm_test_var in $nlist" >&5
7406 fi
7407 else
7408 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7409 fi
7410 else
7411 echo "$progname: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 fi
7414 rm -rf conftest* conftst*
7415
7416 # Do not use the global_symbol_pipe unless it works.
7417 if test yes = "$pipe_works"; then
7418 break
7419 else
7420 lt_cv_sys_global_symbol_pipe=
7421 fi
7422 done
7423
7424 fi
7425
7426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7427 lt_cv_sys_global_symbol_to_cdecl=
7428 fi
7429 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7431 $as_echo "failed" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7434 $as_echo "ok" >&6; }
7435 fi
7436
7437 # Response file support.
7438 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7439 nm_file_list_spec='@'
7440 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7441 nm_file_list_spec='@'
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7481 $as_echo_n "checking for sysroot... " >&6; }
7482
7483 # Check whether --with-sysroot was given.
7484 if test "${with_sysroot+set}" = set; then :
7485 withval=$with_sysroot;
7486 else
7487 with_sysroot=no
7488 fi
7489
7490
7491 lt_sysroot=
7492 case $with_sysroot in #(
7493 yes)
7494 if test yes = "$GCC"; then
7495 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7496 fi
7497 ;; #(
7498 /*)
7499 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7500 ;; #(
7501 no|'')
7502 ;; #(
7503 *)
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7505 $as_echo "$with_sysroot" >&6; }
7506 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7507 ;;
7508 esac
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7511 $as_echo "${lt_sysroot:-no}" >&6; }
7512
7513
7514
7515
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7518 $as_echo_n "checking for a working dd... " >&6; }
7519 if ${ac_cv_path_lt_DD+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 printf 0123456789abcdef0123456789abcdef >conftest.i
7523 cat conftest.i conftest.i >conftest2.i
7524 : ${lt_DD:=$DD}
7525 if test -z "$lt_DD"; then
7526 ac_path_lt_DD_found=false
7527 # Loop through the user's path and test for each of PROGNAME-LIST
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_prog in dd; do
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7536 as_fn_executable_p "$ac_path_lt_DD" || continue
7537 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7538 cmp -s conftest.i conftest.out \
7539 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7540 fi
7541 $ac_path_lt_DD_found && break 3
7542 done
7543 done
7544 done
7545 IFS=$as_save_IFS
7546 if test -z "$ac_cv_path_lt_DD"; then
7547 :
7548 fi
7549 else
7550 ac_cv_path_lt_DD=$lt_DD
7551 fi
7552
7553 rm -f conftest.i conftest2.i conftest.out
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7556 $as_echo "$ac_cv_path_lt_DD" >&6; }
7557
7558
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7560 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7561 if ${lt_cv_truncate_bin+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 printf 0123456789abcdef0123456789abcdef >conftest.i
7565 cat conftest.i conftest.i >conftest2.i
7566 lt_cv_truncate_bin=
7567 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7568 cmp -s conftest.i conftest.out \
7569 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7570 fi
7571 rm -f conftest.i conftest2.i conftest.out
7572 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7575 $as_echo "$lt_cv_truncate_bin" >&6; }
7576
7577
7578
7579
7580
7581
7582
7583 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7584 func_cc_basename ()
7585 {
7586 for cc_temp in $*""; do
7587 case $cc_temp in
7588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7590 \-*) ;;
7591 *) break;;
7592 esac
7593 done
7594 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7595 }
7596
7597 # Check whether --enable-libtool-lock was given.
7598 if test "${enable_libtool_lock+set}" = set; then :
7599 enableval=$enable_libtool_lock;
7600 fi
7601
7602 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7603
7604 # Some flags need to be propagated to the compiler or linker for good
7605 # libtool support.
7606 case $host in
7607 ia64-*-hpux*)
7608 # Find out what ABI is being produced by ac_compile, and set mode
7609 # options accordingly.
7610 echo 'int i;' > conftest.$ac_ext
7611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7612 (eval $ac_compile) 2>&5
7613 ac_status=$?
7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; }; then
7616 case `/usr/bin/file conftest.$ac_objext` in
7617 *ELF-32*)
7618 HPUX_IA64_MODE=32
7619 ;;
7620 *ELF-64*)
7621 HPUX_IA64_MODE=64
7622 ;;
7623 esac
7624 fi
7625 rm -rf conftest*
7626 ;;
7627 *-*-irix6*)
7628 # Find out what ABI is being produced by ac_compile, and set linker
7629 # options accordingly.
7630 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; }; then
7636 if test yes = "$lt_cv_prog_gnu_ld"; then
7637 case `/usr/bin/file conftest.$ac_objext` in
7638 *32-bit*)
7639 LD="${LD-ld} -melf32bsmip"
7640 ;;
7641 *N32*)
7642 LD="${LD-ld} -melf32bmipn32"
7643 ;;
7644 *64-bit*)
7645 LD="${LD-ld} -melf64bmip"
7646 ;;
7647 esac
7648 else
7649 case `/usr/bin/file conftest.$ac_objext` in
7650 *32-bit*)
7651 LD="${LD-ld} -32"
7652 ;;
7653 *N32*)
7654 LD="${LD-ld} -n32"
7655 ;;
7656 *64-bit*)
7657 LD="${LD-ld} -64"
7658 ;;
7659 esac
7660 fi
7661 fi
7662 rm -rf conftest*
7663 ;;
7664
7665 mips64*-*linux*)
7666 # Find out what ABI is being produced by ac_compile, and set linker
7667 # options accordingly.
7668 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7670 (eval $ac_compile) 2>&5
7671 ac_status=$?
7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }; then
7674 emul=elf
7675 case `/usr/bin/file conftest.$ac_objext` in
7676 *32-bit*)
7677 emul="${emul}32"
7678 ;;
7679 *64-bit*)
7680 emul="${emul}64"
7681 ;;
7682 esac
7683 case `/usr/bin/file conftest.$ac_objext` in
7684 *MSB*)
7685 emul="${emul}btsmip"
7686 ;;
7687 *LSB*)
7688 emul="${emul}ltsmip"
7689 ;;
7690 esac
7691 case `/usr/bin/file conftest.$ac_objext` in
7692 *N32*)
7693 emul="${emul}n32"
7694 ;;
7695 esac
7696 LD="${LD-ld} -m $emul"
7697 fi
7698 rm -rf conftest*
7699 ;;
7700
7701 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7702 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7703 # Find out what ABI is being produced by ac_compile, and set linker
7704 # options accordingly. Note that the listed cases only cover the
7705 # situations where additional linker options are needed (such as when
7706 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7707 # vice versa); the common cases where no linker options are needed do
7708 # not appear in the list.
7709 echo 'int i;' > conftest.$ac_ext
7710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7711 (eval $ac_compile) 2>&5
7712 ac_status=$?
7713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; }; then
7715 case `/usr/bin/file conftest.o` in
7716 *32-bit*)
7717 case $host in
7718 x86_64-*kfreebsd*-gnu)
7719 LD="${LD-ld} -m elf_i386_fbsd"
7720 ;;
7721 x86_64-*linux*)
7722 case `/usr/bin/file conftest.o` in
7723 *x86-64*)
7724 LD="${LD-ld} -m elf32_x86_64"
7725 ;;
7726 *)
7727 LD="${LD-ld} -m elf_i386"
7728 ;;
7729 esac
7730 ;;
7731 powerpc64le-*linux*)
7732 LD="${LD-ld} -m elf32lppclinux"
7733 ;;
7734 powerpc64-*linux*)
7735 LD="${LD-ld} -m elf32ppclinux"
7736 ;;
7737 s390x-*linux*)
7738 LD="${LD-ld} -m elf_s390"
7739 ;;
7740 sparc64-*linux*)
7741 LD="${LD-ld} -m elf32_sparc"
7742 ;;
7743 esac
7744 ;;
7745 *64-bit*)
7746 case $host in
7747 x86_64-*kfreebsd*-gnu)
7748 LD="${LD-ld} -m elf_x86_64_fbsd"
7749 ;;
7750 x86_64-*linux*)
7751 LD="${LD-ld} -m elf_x86_64"
7752 ;;
7753 powerpcle-*linux*)
7754 LD="${LD-ld} -m elf64lppc"
7755 ;;
7756 powerpc-*linux*)
7757 LD="${LD-ld} -m elf64ppc"
7758 ;;
7759 s390*-*linux*|s390*-*tpf*)
7760 LD="${LD-ld} -m elf64_s390"
7761 ;;
7762 sparc*-*linux*)
7763 LD="${LD-ld} -m elf64_sparc"
7764 ;;
7765 esac
7766 ;;
7767 esac
7768 fi
7769 rm -rf conftest*
7770 ;;
7771
7772 *-*-sco3.2v5*)
7773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7774 SAVE_CFLAGS=$CFLAGS
7775 CFLAGS="$CFLAGS -belf"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7777 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7778 if ${lt_cv_cc_needs_belf+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789
7790 int
7791 main ()
7792 {
7793
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_link "$LINENO"; then :
7799 lt_cv_cc_needs_belf=yes
7800 else
7801 lt_cv_cc_needs_belf=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7813 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7814 if test yes != "$lt_cv_cc_needs_belf"; then
7815 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7816 CFLAGS=$SAVE_CFLAGS
7817 fi
7818 ;;
7819 *-*solaris*)
7820 # Find out what ABI is being produced by ac_compile, and set linker
7821 # options accordingly.
7822 echo 'int i;' > conftest.$ac_ext
7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824 (eval $ac_compile) 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 case `/usr/bin/file conftest.o` in
7829 *64-bit*)
7830 case $lt_cv_prog_gnu_ld in
7831 yes*)
7832 case $host in
7833 i?86-*-solaris*|x86_64-*-solaris*)
7834 LD="${LD-ld} -m elf_x86_64"
7835 ;;
7836 sparc*-*-solaris*)
7837 LD="${LD-ld} -m elf64_sparc"
7838 ;;
7839 esac
7840 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7841 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7842 LD=${LD-ld}_sol2
7843 fi
7844 ;;
7845 *)
7846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7847 LD="${LD-ld} -64"
7848 fi
7849 ;;
7850 esac
7851 ;;
7852 esac
7853 fi
7854 rm -rf conftest*
7855 ;;
7856 esac
7857
7858 need_locks=$enable_libtool_lock
7859
7860 if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}mt; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 if test -n "$MANIFEST_TOOL"; then
7869 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7889 if test -n "$MANIFEST_TOOL"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7891 $as_echo "$MANIFEST_TOOL" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 fi
7896
7897
7898 fi
7899 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7900 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7901 # Extract the first word of "mt", so it can be a program name with args.
7902 set dummy mt; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -n "$ac_ct_MANIFEST_TOOL"; then
7909 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7929 if test -n "$ac_ct_MANIFEST_TOOL"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7931 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7938 MANIFEST_TOOL=":"
7939 else
7940 case $cross_compiling:$ac_tool_warned in
7941 yes:)
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944 ac_tool_warned=yes ;;
7945 esac
7946 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7947 fi
7948 else
7949 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7950 fi
7951
7952 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7954 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7955 if ${lt_cv_path_mainfest_tool+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 lt_cv_path_mainfest_tool=no
7959 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7960 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7961 cat conftest.err >&5
7962 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7963 lt_cv_path_mainfest_tool=yes
7964 fi
7965 rm -rf conftest*
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7968 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7969 if test yes != "$lt_cv_path_mainfest_tool"; then
7970 MANIFEST_TOOL=:
7971 fi
7972
7973
7974
7975
7976
7977
7978 case $host_os in
7979 rhapsody* | darwin*)
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$DSYMUTIL"; then
7989 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8009 if test -n "$DSYMUTIL"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8011 $as_echo "$DSYMUTIL" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019 if test -z "$ac_cv_prog_DSYMUTIL"; then
8020 ac_ct_DSYMUTIL=$DSYMUTIL
8021 # Extract the first word of "dsymutil", so it can be a program name with args.
8022 set dummy dsymutil; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$ac_ct_DSYMUTIL"; then
8029 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8049 if test -n "$ac_ct_DSYMUTIL"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8051 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057 if test "x$ac_ct_DSYMUTIL" = x; then
8058 DSYMUTIL=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 DSYMUTIL=$ac_ct_DSYMUTIL
8067 fi
8068 else
8069 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8070 fi
8071
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_NMEDIT+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$NMEDIT"; then
8081 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8093 fi
8094 done
8095 done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 NMEDIT=$ac_cv_prog_NMEDIT
8101 if test -n "$NMEDIT"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8103 $as_echo "$NMEDIT" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_prog_NMEDIT"; then
8112 ac_ct_NMEDIT=$NMEDIT
8113 # Extract the first word of "nmedit", so it can be a program name with args.
8114 set dummy nmedit; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$ac_ct_NMEDIT"; then
8121 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8141 if test -n "$ac_ct_NMEDIT"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8143 $as_echo "$ac_ct_NMEDIT" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149 if test "x$ac_ct_NMEDIT" = x; then
8150 NMEDIT=":"
8151 else
8152 case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158 NMEDIT=$ac_ct_NMEDIT
8159 fi
8160 else
8161 NMEDIT="$ac_cv_prog_NMEDIT"
8162 fi
8163
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_LIPO+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$LIPO"; then
8173 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 LIPO=$ac_cv_prog_LIPO
8193 if test -n "$LIPO"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8195 $as_echo "$LIPO" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202 fi
8203 if test -z "$ac_cv_prog_LIPO"; then
8204 ac_ct_LIPO=$LIPO
8205 # Extract the first word of "lipo", so it can be a program name with args.
8206 set dummy lipo; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 if test -n "$ac_ct_LIPO"; then
8213 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_LIPO="lipo"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8233 if test -n "$ac_ct_LIPO"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8235 $as_echo "$ac_ct_LIPO" >&6; }
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241 if test "x$ac_ct_LIPO" = x; then
8242 LIPO=":"
8243 else
8244 case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250 LIPO=$ac_ct_LIPO
8251 fi
8252 else
8253 LIPO="$ac_cv_prog_LIPO"
8254 fi
8255
8256 if test -n "$ac_tool_prefix"; then
8257 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}otool; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_OTOOL+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 if test -n "$OTOOL"; then
8265 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 OTOOL=$ac_cv_prog_OTOOL
8285 if test -n "$OTOOL"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8287 $as_echo "$OTOOL" >&6; }
8288 else
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294 fi
8295 if test -z "$ac_cv_prog_OTOOL"; then
8296 ac_ct_OTOOL=$OTOOL
8297 # Extract the first word of "otool", so it can be a program name with args.
8298 set dummy otool; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$ac_ct_OTOOL"; then
8305 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_ac_ct_OTOOL="otool"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8325 if test -n "$ac_ct_OTOOL"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8327 $as_echo "$ac_ct_OTOOL" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8332
8333 if test "x$ac_ct_OTOOL" = x; then
8334 OTOOL=":"
8335 else
8336 case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342 OTOOL=$ac_ct_OTOOL
8343 fi
8344 else
8345 OTOOL="$ac_cv_prog_OTOOL"
8346 fi
8347
8348 if test -n "$ac_tool_prefix"; then
8349 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8350 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_prog_OTOOL64+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$OTOOL64"; then
8357 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 fi
8375 fi
8376 OTOOL64=$ac_cv_prog_OTOOL64
8377 if test -n "$OTOOL64"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8379 $as_echo "$OTOOL64" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384
8385
8386 fi
8387 if test -z "$ac_cv_prog_OTOOL64"; then
8388 ac_ct_OTOOL64=$OTOOL64
8389 # Extract the first word of "otool64", so it can be a program name with args.
8390 set dummy otool64; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 if test -n "$ac_ct_OTOOL64"; then
8397 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_ac_ct_OTOOL64="otool64"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8417 if test -n "$ac_ct_OTOOL64"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8419 $as_echo "$ac_ct_OTOOL64" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425 if test "x$ac_ct_OTOOL64" = x; then
8426 OTOOL64=":"
8427 else
8428 case $cross_compiling:$ac_tool_warned in
8429 yes:)
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432 ac_tool_warned=yes ;;
8433 esac
8434 OTOOL64=$ac_ct_OTOOL64
8435 fi
8436 else
8437 OTOOL64="$ac_cv_prog_OTOOL64"
8438 fi
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8467 $as_echo_n "checking for -single_module linker flag... " >&6; }
8468 if ${lt_cv_apple_cc_single_mod+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_apple_cc_single_mod=no
8472 if test -z "$LT_MULTI_MODULE"; then
8473 # By default we will add the -single_module flag. You can override
8474 # by either setting the environment variable LT_MULTI_MODULE
8475 # non-empty at configure time, or by adding -multi_module to the
8476 # link flags.
8477 rm -rf libconftest.dylib*
8478 echo "int foo(void){return 1;}" > conftest.c
8479 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8480 -dynamiclib -Wl,-single_module conftest.c" >&5
8481 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8482 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8483 _lt_result=$?
8484 # If there is a non-empty error log, and "single_module"
8485 # appears in it, assume the flag caused a linker warning
8486 if test -s conftest.err && $GREP single_module conftest.err; then
8487 cat conftest.err >&5
8488 # Otherwise, if the output was created with a 0 exit code from
8489 # the compiler, it worked.
8490 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8491 lt_cv_apple_cc_single_mod=yes
8492 else
8493 cat conftest.err >&5
8494 fi
8495 rm -rf libconftest.dylib*
8496 rm -f conftest.*
8497 fi
8498 fi
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8500 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8501
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8503 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8504 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 lt_cv_ld_exported_symbols_list=no
8508 save_LDFLAGS=$LDFLAGS
8509 echo "_main" > conftest.sym
8510 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513
8514 int
8515 main ()
8516 {
8517
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_link "$LINENO"; then :
8523 lt_cv_ld_exported_symbols_list=yes
8524 else
8525 lt_cv_ld_exported_symbols_list=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
8529 LDFLAGS=$save_LDFLAGS
8530
8531 fi
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8533 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8534
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8536 $as_echo_n "checking for -force_load linker flag... " >&6; }
8537 if ${lt_cv_ld_force_load+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_ld_force_load=no
8541 cat > conftest.c << _LT_EOF
8542 int forced_loaded() { return 2;}
8543 _LT_EOF
8544 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8545 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8546 echo "$AR cru libconftest.a conftest.o" >&5
8547 $AR cru libconftest.a conftest.o 2>&5
8548 echo "$RANLIB libconftest.a" >&5
8549 $RANLIB libconftest.a 2>&5
8550 cat > conftest.c << _LT_EOF
8551 int main() { return 0;}
8552 _LT_EOF
8553 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8554 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8555 _lt_result=$?
8556 if test -s conftest.err && $GREP force_load conftest.err; then
8557 cat conftest.err >&5
8558 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8559 lt_cv_ld_force_load=yes
8560 else
8561 cat conftest.err >&5
8562 fi
8563 rm -f conftest.err libconftest.a conftest conftest.c
8564 rm -rf conftest.dSYM
8565
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8568 $as_echo "$lt_cv_ld_force_load" >&6; }
8569 case $host_os in
8570 rhapsody* | darwin1.[012])
8571 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8572 darwin1.*)
8573 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8574 darwin*) # darwin 5.x on
8575 # if running on 10.5 or later, the deployment target defaults
8576 # to the OS version, if on x86, and 10.4, the deployment
8577 # target defaults to 10.4. Don't you love it?
8578 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8579 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8580 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8581 10.[012][,.]*)
8582 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8583 10.*)
8584 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8585 esac
8586 ;;
8587 esac
8588 if test yes = "$lt_cv_apple_cc_single_mod"; then
8589 _lt_dar_single_mod='$single_module'
8590 fi
8591 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8592 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8593 else
8594 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8595 fi
8596 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8597 _lt_dsymutil='~$DSYMUTIL $lib || :'
8598 else
8599 _lt_dsymutil=
8600 fi
8601 ;;
8602 esac
8603
8604 # func_munge_path_list VARIABLE PATH
8605 # -----------------------------------
8606 # VARIABLE is name of variable containing _space_ separated list of
8607 # directories to be munged by the contents of PATH, which is string
8608 # having a format:
8609 # "DIR[:DIR]:"
8610 # string "DIR[ DIR]" will be prepended to VARIABLE
8611 # ":DIR[:DIR]"
8612 # string "DIR[ DIR]" will be appended to VARIABLE
8613 # "DIRP[:DIRP]::[DIRA:]DIRA"
8614 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8615 # "DIRA[ DIRA]" will be appended to VARIABLE
8616 # "DIR[:DIR]"
8617 # VARIABLE will be replaced by "DIR[ DIR]"
8618 func_munge_path_list ()
8619 {
8620 case x$2 in
8621 x)
8622 ;;
8623 *:)
8624 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8625 ;;
8626 x:*)
8627 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8628 ;;
8629 *::*)
8630 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8631 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8632 ;;
8633 *)
8634 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8635 ;;
8636 esac
8637 }
8638
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8645 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8646 # On Suns, sometimes $CPP names a directory.
8647 if test -n "$CPP" && test -d "$CPP"; then
8648 CPP=
8649 fi
8650 if test -z "$CPP"; then
8651 if ${ac_cv_prog_CPP+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 # Double quotes because CPP needs to be expanded
8655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8656 do
8657 ac_preproc_ok=false
8658 for ac_c_preproc_warn_flag in '' yes
8659 do
8660 # Use a header file that comes with gcc, so configuring glibc
8661 # with a fresh cross-compiler works.
8662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8663 # <limits.h> exists even on freestanding compilers.
8664 # On the NeXT, cc -E runs the code through the compiler's parser,
8665 # not just through cpp. "Syntax error" is here to catch this case.
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #ifdef __STDC__
8669 # include <limits.h>
8670 #else
8671 # include <assert.h>
8672 #endif
8673 Syntax error
8674 _ACEOF
8675 if ac_fn_c_try_cpp "$LINENO"; then :
8676
8677 else
8678 # Broken: fails on valid input.
8679 continue
8680 fi
8681 rm -f conftest.err conftest.i conftest.$ac_ext
8682
8683 # OK, works on sane cases. Now check whether nonexistent headers
8684 # can be detected and how.
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <ac_nonexistent.h>
8688 _ACEOF
8689 if ac_fn_c_try_cpp "$LINENO"; then :
8690 # Broken: success on invalid input.
8691 continue
8692 else
8693 # Passes both tests.
8694 ac_preproc_ok=:
8695 break
8696 fi
8697 rm -f conftest.err conftest.i conftest.$ac_ext
8698
8699 done
8700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8701 rm -f conftest.i conftest.err conftest.$ac_ext
8702 if $ac_preproc_ok; then :
8703 break
8704 fi
8705
8706 done
8707 ac_cv_prog_CPP=$CPP
8708
8709 fi
8710 CPP=$ac_cv_prog_CPP
8711 else
8712 ac_cv_prog_CPP=$CPP
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8715 $as_echo "$CPP" >&6; }
8716 ac_preproc_ok=false
8717 for ac_c_preproc_warn_flag in '' yes
8718 do
8719 # Use a header file that comes with gcc, so configuring glibc
8720 # with a fresh cross-compiler works.
8721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722 # <limits.h> exists even on freestanding compilers.
8723 # On the NeXT, cc -E runs the code through the compiler's parser,
8724 # not just through cpp. "Syntax error" is here to catch this case.
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #ifdef __STDC__
8728 # include <limits.h>
8729 #else
8730 # include <assert.h>
8731 #endif
8732 Syntax error
8733 _ACEOF
8734 if ac_fn_c_try_cpp "$LINENO"; then :
8735
8736 else
8737 # Broken: fails on valid input.
8738 continue
8739 fi
8740 rm -f conftest.err conftest.i conftest.$ac_ext
8741
8742 # OK, works on sane cases. Now check whether nonexistent headers
8743 # can be detected and how.
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 #include <ac_nonexistent.h>
8747 _ACEOF
8748 if ac_fn_c_try_cpp "$LINENO"; then :
8749 # Broken: success on invalid input.
8750 continue
8751 else
8752 # Passes both tests.
8753 ac_preproc_ok=:
8754 break
8755 fi
8756 rm -f conftest.err conftest.i conftest.$ac_ext
8757
8758 done
8759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8760 rm -f conftest.i conftest.err conftest.$ac_ext
8761 if $ac_preproc_ok; then :
8762
8763 else
8764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8766 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8767 See \`config.log' for more details" "$LINENO" 5; }
8768 fi
8769
8770 ac_ext=c
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8778 $as_echo_n "checking for ANSI C header files... " >&6; }
8779 if ${ac_cv_header_stdc+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <stdlib.h>
8785 #include <stdarg.h>
8786 #include <string.h>
8787 #include <float.h>
8788
8789 int
8790 main ()
8791 {
8792
8793 ;
8794 return 0;
8795 }
8796 _ACEOF
8797 if ac_fn_c_try_compile "$LINENO"; then :
8798 ac_cv_header_stdc=yes
8799 else
8800 ac_cv_header_stdc=no
8801 fi
8802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803
8804 if test $ac_cv_header_stdc = yes; then
8805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #include <string.h>
8809
8810 _ACEOF
8811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812 $EGREP "memchr" >/dev/null 2>&1; then :
8813
8814 else
8815 ac_cv_header_stdc=no
8816 fi
8817 rm -f conftest*
8818
8819 fi
8820
8821 if test $ac_cv_header_stdc = yes; then
8822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <stdlib.h>
8826
8827 _ACEOF
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "free" >/dev/null 2>&1; then :
8830
8831 else
8832 ac_cv_header_stdc=no
8833 fi
8834 rm -f conftest*
8835
8836 fi
8837
8838 if test $ac_cv_header_stdc = yes; then
8839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8840 if test "$cross_compiling" = yes; then :
8841 :
8842 else
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8845 #include <ctype.h>
8846 #include <stdlib.h>
8847 #if ((' ' & 0x0FF) == 0x020)
8848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8850 #else
8851 # define ISLOWER(c) \
8852 (('a' <= (c) && (c) <= 'i') \
8853 || ('j' <= (c) && (c) <= 'r') \
8854 || ('s' <= (c) && (c) <= 'z'))
8855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8856 #endif
8857
8858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8859 int
8860 main ()
8861 {
8862 int i;
8863 for (i = 0; i < 256; i++)
8864 if (XOR (islower (i), ISLOWER (i))
8865 || toupper (i) != TOUPPER (i))
8866 return 2;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_run "$LINENO"; then :
8871
8872 else
8873 ac_cv_header_stdc=no
8874 fi
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876 conftest.$ac_objext conftest.beam conftest.$ac_ext
8877 fi
8878
8879 fi
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8882 $as_echo "$ac_cv_header_stdc" >&6; }
8883 if test $ac_cv_header_stdc = yes; then
8884
8885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8886
8887 fi
8888
8889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8890 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8891 inttypes.h stdint.h unistd.h
8892 do :
8893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8895 "
8896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8897 cat >>confdefs.h <<_ACEOF
8898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8899 _ACEOF
8900
8901 fi
8902
8903 done
8904
8905
8906 for ac_header in dlfcn.h
8907 do :
8908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8909 "
8910 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8911 cat >>confdefs.h <<_ACEOF
8912 #define HAVE_DLFCN_H 1
8913 _ACEOF
8914
8915 fi
8916
8917 done
8918
8919
8920
8921
8922 func_stripname_cnf ()
8923 {
8924 case $2 in
8925 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8926 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8927 esac
8928 } # func_stripname_cnf
8929
8930
8931
8932
8933
8934 # Set options
8935 # Check whether --enable-static was given.
8936 if test "${enable_static+set}" = set; then :
8937 enableval=$enable_static; p=${PACKAGE-default}
8938 case $enableval in
8939 yes) enable_static=yes ;;
8940 no) enable_static=no ;;
8941 *)
8942 enable_static=no
8943 # Look at the argument we got. We use all the common list separators.
8944 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8945 for pkg in $enableval; do
8946 IFS=$lt_save_ifs
8947 if test "X$pkg" = "X$p"; then
8948 enable_static=yes
8949 fi
8950 done
8951 IFS=$lt_save_ifs
8952 ;;
8953 esac
8954 else
8955 enable_static=no
8956 fi
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967 enable_dlopen=no
8968
8969
8970 enable_win32_dll=no
8971
8972
8973 # Check whether --enable-shared was given.
8974 if test "${enable_shared+set}" = set; then :
8975 enableval=$enable_shared; p=${PACKAGE-default}
8976 case $enableval in
8977 yes) enable_shared=yes ;;
8978 no) enable_shared=no ;;
8979 *)
8980 enable_shared=no
8981 # Look at the argument we got. We use all the common list separators.
8982 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8983 for pkg in $enableval; do
8984 IFS=$lt_save_ifs
8985 if test "X$pkg" = "X$p"; then
8986 enable_shared=yes
8987 fi
8988 done
8989 IFS=$lt_save_ifs
8990 ;;
8991 esac
8992 else
8993 enable_shared=yes
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then :
9008 withval=$with_pic; lt_p=${PACKAGE-default}
9009 case $withval in
9010 yes|no) pic_mode=$withval ;;
9011 *)
9012 pic_mode=default
9013 # Look at the argument we got. We use all the common list separators.
9014 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9015 for lt_pkg in $withval; do
9016 IFS=$lt_save_ifs
9017 if test "X$lt_pkg" = "X$lt_p"; then
9018 pic_mode=yes
9019 fi
9020 done
9021 IFS=$lt_save_ifs
9022 ;;
9023 esac
9024 else
9025 pic_mode=default
9026 fi
9027
9028
9029
9030
9031
9032
9033
9034
9035 # Check whether --enable-fast-install was given.
9036 if test "${enable_fast_install+set}" = set; then :
9037 enableval=$enable_fast_install; p=${PACKAGE-default}
9038 case $enableval in
9039 yes) enable_fast_install=yes ;;
9040 no) enable_fast_install=no ;;
9041 *)
9042 enable_fast_install=no
9043 # Look at the argument we got. We use all the common list separators.
9044 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9045 for pkg in $enableval; do
9046 IFS=$lt_save_ifs
9047 if test "X$pkg" = "X$p"; then
9048 enable_fast_install=yes
9049 fi
9050 done
9051 IFS=$lt_save_ifs
9052 ;;
9053 esac
9054 else
9055 enable_fast_install=yes
9056 fi
9057
9058
9059
9060
9061
9062
9063
9064
9065 shared_archive_member_spec=
9066 case $host,$enable_shared in
9067 power*-*-aix[5-9]*,yes)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9069 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9070
9071 # Check whether --with-aix-soname was given.
9072 if test "${with_aix_soname+set}" = set; then :
9073 withval=$with_aix_soname; case $withval in
9074 aix|svr4|both)
9075 ;;
9076 *)
9077 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9078 ;;
9079 esac
9080 lt_cv_with_aix_soname=$with_aix_soname
9081 else
9082 if ${lt_cv_with_aix_soname+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 lt_cv_with_aix_soname=aix
9086 fi
9087
9088 with_aix_soname=$lt_cv_with_aix_soname
9089 fi
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9092 $as_echo "$with_aix_soname" >&6; }
9093 if test aix != "$with_aix_soname"; then
9094 # For the AIX way of multilib, we name the shared archive member
9095 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9096 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9097 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9098 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9099 if test 64 = "${OBJECT_MODE-32}"; then
9100 shared_archive_member_spec=shr_64
9101 else
9102 shared_archive_member_spec=shr
9103 fi
9104 fi
9105 ;;
9106 *)
9107 with_aix_soname=aix
9108 ;;
9109 esac
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120 # This can be used to rebuild libtool when needed
9121 LIBTOOL_DEPS=$ltmain
9122
9123 # Always use our own libtool.
9124 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155 test -z "$LN_S" && LN_S="ln -s"
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170 if test -n "${ZSH_VERSION+set}"; then
9171 setopt NO_GLOB_SUBST
9172 fi
9173
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9175 $as_echo_n "checking for objdir... " >&6; }
9176 if ${lt_cv_objdir+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 rm -f .libs 2>/dev/null
9180 mkdir .libs 2>/dev/null
9181 if test -d .libs; then
9182 lt_cv_objdir=.libs
9183 else
9184 # MS-DOS does not allow filenames that begin with a dot.
9185 lt_cv_objdir=_libs
9186 fi
9187 rmdir .libs 2>/dev/null
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9190 $as_echo "$lt_cv_objdir" >&6; }
9191 objdir=$lt_cv_objdir
9192
9193
9194
9195
9196
9197 cat >>confdefs.h <<_ACEOF
9198 #define LT_OBJDIR "$lt_cv_objdir/"
9199 _ACEOF
9200
9201
9202
9203
9204 case $host_os in
9205 aix3*)
9206 # AIX sometimes has problems with the GCC collect2 program. For some
9207 # reason, if we set the COLLECT_NAMES environment variable, the problems
9208 # vanish in a puff of smoke.
9209 if test set != "${COLLECT_NAMES+set}"; then
9210 COLLECT_NAMES=
9211 export COLLECT_NAMES
9212 fi
9213 ;;
9214 esac
9215
9216 # Global variables:
9217 ofile=libtool
9218 can_build_shared=yes
9219
9220 # All known linkers require a '.a' archive for static linking (except MSVC,
9221 # which needs '.lib').
9222 libext=a
9223
9224 with_gnu_ld=$lt_cv_prog_gnu_ld
9225
9226 old_CC=$CC
9227 old_CFLAGS=$CFLAGS
9228
9229 # Set sane defaults for various variables
9230 test -z "$CC" && CC=cc
9231 test -z "$LTCC" && LTCC=$CC
9232 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9233 test -z "$LD" && LD=ld
9234 test -z "$ac_objext" && ac_objext=o
9235
9236 func_cc_basename $compiler
9237 cc_basename=$func_cc_basename_result
9238
9239
9240 # Only perform the check for file, if the check method requires it
9241 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9242 case $deplibs_check_method in
9243 file_magic*)
9244 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9246 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9247 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 case $MAGIC_CMD in
9251 [\\/*] | ?:[\\/]*)
9252 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9253 ;;
9254 *)
9255 lt_save_MAGIC_CMD=$MAGIC_CMD
9256 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9258 for ac_dir in $ac_dummy; do
9259 IFS=$lt_save_ifs
9260 test -z "$ac_dir" && ac_dir=.
9261 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9262 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9263 if test -n "$file_magic_test_file"; then
9264 case $deplibs_check_method in
9265 "file_magic "*)
9266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9267 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9269 $EGREP "$file_magic_regex" > /dev/null; then
9270 :
9271 else
9272 cat <<_LT_EOF 1>&2
9273
9274 *** Warning: the command libtool uses to detect shared libraries,
9275 *** $file_magic_cmd, produces output that libtool cannot recognize.
9276 *** The result is that libtool may fail to recognize shared libraries
9277 *** as such. This will affect the creation of libtool libraries that
9278 *** depend on shared libraries, but programs linked with such libtool
9279 *** libraries will work regardless of this problem. Nevertheless, you
9280 *** may want to report the problem to your system manager and/or to
9281 *** bug-libtool@gnu.org
9282
9283 _LT_EOF
9284 fi ;;
9285 esac
9286 fi
9287 break
9288 fi
9289 done
9290 IFS=$lt_save_ifs
9291 MAGIC_CMD=$lt_save_MAGIC_CMD
9292 ;;
9293 esac
9294 fi
9295
9296 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9297 if test -n "$MAGIC_CMD"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9299 $as_echo "$MAGIC_CMD" >&6; }
9300 else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9303 fi
9304
9305
9306
9307
9308
9309 if test -z "$lt_cv_path_MAGIC_CMD"; then
9310 if test -n "$ac_tool_prefix"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9312 $as_echo_n "checking for file... " >&6; }
9313 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 case $MAGIC_CMD in
9317 [\\/*] | ?:[\\/]*)
9318 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9319 ;;
9320 *)
9321 lt_save_MAGIC_CMD=$MAGIC_CMD
9322 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9323 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9324 for ac_dir in $ac_dummy; do
9325 IFS=$lt_save_ifs
9326 test -z "$ac_dir" && ac_dir=.
9327 if test -f "$ac_dir/file"; then
9328 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9329 if test -n "$file_magic_test_file"; then
9330 case $deplibs_check_method in
9331 "file_magic "*)
9332 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9333 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9334 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9335 $EGREP "$file_magic_regex" > /dev/null; then
9336 :
9337 else
9338 cat <<_LT_EOF 1>&2
9339
9340 *** Warning: the command libtool uses to detect shared libraries,
9341 *** $file_magic_cmd, produces output that libtool cannot recognize.
9342 *** The result is that libtool may fail to recognize shared libraries
9343 *** as such. This will affect the creation of libtool libraries that
9344 *** depend on shared libraries, but programs linked with such libtool
9345 *** libraries will work regardless of this problem. Nevertheless, you
9346 *** may want to report the problem to your system manager and/or to
9347 *** bug-libtool@gnu.org
9348
9349 _LT_EOF
9350 fi ;;
9351 esac
9352 fi
9353 break
9354 fi
9355 done
9356 IFS=$lt_save_ifs
9357 MAGIC_CMD=$lt_save_MAGIC_CMD
9358 ;;
9359 esac
9360 fi
9361
9362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9363 if test -n "$MAGIC_CMD"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9365 $as_echo "$MAGIC_CMD" >&6; }
9366 else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9369 fi
9370
9371
9372 else
9373 MAGIC_CMD=:
9374 fi
9375 fi
9376
9377 fi
9378 ;;
9379 esac
9380
9381 # Use C for the default configuration in the libtool script
9382
9383 lt_save_CC=$CC
9384 ac_ext=c
9385 ac_cpp='$CPP $CPPFLAGS'
9386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9389
9390
9391 # Source file extension for C test sources.
9392 ac_ext=c
9393
9394 # Object file extension for compiled C test sources.
9395 objext=o
9396 objext=$objext
9397
9398 # Code to be used in simple compile tests
9399 lt_simple_compile_test_code="int some_variable = 0;"
9400
9401 # Code to be used in simple link tests
9402 lt_simple_link_test_code='int main(){return(0);}'
9403
9404
9405
9406
9407
9408
9409
9410 # If no C compiler was specified, use CC.
9411 LTCC=${LTCC-"$CC"}
9412
9413 # If no C compiler flags were specified, use CFLAGS.
9414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9415
9416 # Allow CC to be a program name with arguments.
9417 compiler=$CC
9418
9419 # Save the default compiler, since it gets overwritten when the other
9420 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9421 compiler_DEFAULT=$CC
9422
9423 # save warnings/boilerplate of simple test code
9424 ac_outfile=conftest.$ac_objext
9425 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9427 _lt_compiler_boilerplate=`cat conftest.err`
9428 $RM -r conftest*
9429
9430 ac_outfile=conftest.$ac_objext
9431 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9433 _lt_linker_boilerplate=`cat conftest.err`
9434 $RM -r conftest*
9435
9436
9437 ## CAVEAT EMPTOR:
9438 ## There is no encapsulation within the following macros, do not change
9439 ## the running order or otherwise move them around unless you know exactly
9440 ## what you are doing...
9441 if test -n "$compiler"; then
9442
9443 lt_prog_compiler_no_builtin_flag=
9444
9445 if test yes = "$GCC"; then
9446 case $cc_basename in
9447 nvcc*)
9448 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9449 *)
9450 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9451 esac
9452
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9454 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9455 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 lt_cv_prog_compiler_rtti_exceptions=no
9459 ac_outfile=conftest.$ac_objext
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9462 # Insert the option either (1) after the last *FLAGS variable, or
9463 # (2) before a word containing "conftest.", or (3) at the end.
9464 # Note that $ac_compile itself does not contain backslashes and begins
9465 # with a dollar sign (not a hyphen), so the echo should work correctly.
9466 # The option is referenced via a variable to avoid confusing sed.
9467 lt_compile=`echo "$ac_compile" | $SED \
9468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9470 -e 's:$: $lt_compiler_flag:'`
9471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9472 (eval "$lt_compile" 2>conftest.err)
9473 ac_status=$?
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 if (exit $ac_status) && test -s "$ac_outfile"; then
9477 # The compiler can only warn and ignore the option if not recognized
9478 # So say no if there are warnings other than the usual output.
9479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9482 lt_cv_prog_compiler_rtti_exceptions=yes
9483 fi
9484 fi
9485 $RM -r conftest*
9486
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9489 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9490
9491 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9492 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9493 else
9494 :
9495 fi
9496
9497 fi
9498
9499
9500
9501
9502
9503
9504 lt_prog_compiler_wl=
9505 lt_prog_compiler_pic=
9506 lt_prog_compiler_static=
9507
9508
9509 if test yes = "$GCC"; then
9510 lt_prog_compiler_wl='-Wl,'
9511 lt_prog_compiler_static='-static'
9512
9513 case $host_os in
9514 aix*)
9515 # All AIX code is PIC.
9516 if test ia64 = "$host_cpu"; then
9517 # AIX 5 now supports IA64 processor
9518 lt_prog_compiler_static='-Bstatic'
9519 fi
9520 lt_prog_compiler_pic='-fPIC'
9521 ;;
9522
9523 amigaos*)
9524 case $host_cpu in
9525 powerpc)
9526 # see comment about AmigaOS4 .so support
9527 lt_prog_compiler_pic='-fPIC'
9528 ;;
9529 m68k)
9530 # FIXME: we need at least 68020 code to build shared libraries, but
9531 # adding the '-m68020' flag to GCC prevents building anything better,
9532 # like '-m68040'.
9533 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9534 ;;
9535 esac
9536 ;;
9537
9538 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9539 # PIC is the default for these OSes.
9540 ;;
9541
9542 mingw* | cygwin* | pw32* | os2* | cegcc*)
9543 # This hack is so that the source file can tell whether it is being
9544 # built for inclusion in a dll (and should export symbols for example).
9545 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9546 # (--disable-auto-import) libraries
9547 lt_prog_compiler_pic='-DDLL_EXPORT'
9548 case $host_os in
9549 os2*)
9550 lt_prog_compiler_static='$wl-static'
9551 ;;
9552 esac
9553 ;;
9554
9555 darwin* | rhapsody*)
9556 # PIC is the default on this platform
9557 # Common symbols not allowed in MH_DYLIB files
9558 lt_prog_compiler_pic='-fno-common'
9559 ;;
9560
9561 haiku*)
9562 # PIC is the default for Haiku.
9563 # The "-static" flag exists, but is broken.
9564 lt_prog_compiler_static=
9565 ;;
9566
9567 hpux*)
9568 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9569 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9570 # sets the default TLS model and affects inlining.
9571 case $host_cpu in
9572 hppa*64*)
9573 # +Z the default
9574 ;;
9575 *)
9576 lt_prog_compiler_pic='-fPIC'
9577 ;;
9578 esac
9579 ;;
9580
9581 interix[3-9]*)
9582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9583 # Instead, we relocate shared libraries at runtime.
9584 ;;
9585
9586 msdosdjgpp*)
9587 # Just because we use GCC doesn't mean we suddenly get shared libraries
9588 # on systems that don't support them.
9589 lt_prog_compiler_can_build_shared=no
9590 enable_shared=no
9591 ;;
9592
9593 *nto* | *qnx*)
9594 # QNX uses GNU C++, but need to define -shared option too, otherwise
9595 # it will coredump.
9596 lt_prog_compiler_pic='-fPIC -shared'
9597 ;;
9598
9599 sysv4*MP*)
9600 if test -d /usr/nec; then
9601 lt_prog_compiler_pic=-Kconform_pic
9602 fi
9603 ;;
9604
9605 *)
9606 lt_prog_compiler_pic='-fPIC'
9607 ;;
9608 esac
9609
9610 case $cc_basename in
9611 nvcc*) # Cuda Compiler Driver 2.2
9612 lt_prog_compiler_wl='-Xlinker '
9613 if test -n "$lt_prog_compiler_pic"; then
9614 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9615 fi
9616 ;;
9617 esac
9618 else
9619 # PORTME Check for flag to pass linker flags through the system compiler.
9620 case $host_os in
9621 aix*)
9622 lt_prog_compiler_wl='-Wl,'
9623 if test ia64 = "$host_cpu"; then
9624 # AIX 5 now supports IA64 processor
9625 lt_prog_compiler_static='-Bstatic'
9626 else
9627 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9628 fi
9629 ;;
9630
9631 darwin* | rhapsody*)
9632 # PIC is the default on this platform
9633 # Common symbols not allowed in MH_DYLIB files
9634 lt_prog_compiler_pic='-fno-common'
9635 case $cc_basename in
9636 nagfor*)
9637 # NAG Fortran compiler
9638 lt_prog_compiler_wl='-Wl,-Wl,,'
9639 lt_prog_compiler_pic='-PIC'
9640 lt_prog_compiler_static='-Bstatic'
9641 ;;
9642 esac
9643 ;;
9644
9645 mingw* | cygwin* | pw32* | os2* | cegcc*)
9646 # This hack is so that the source file can tell whether it is being
9647 # built for inclusion in a dll (and should export symbols for example).
9648 lt_prog_compiler_pic='-DDLL_EXPORT'
9649 case $host_os in
9650 os2*)
9651 lt_prog_compiler_static='$wl-static'
9652 ;;
9653 esac
9654 ;;
9655
9656 hpux9* | hpux10* | hpux11*)
9657 lt_prog_compiler_wl='-Wl,'
9658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9659 # not for PA HP-UX.
9660 case $host_cpu in
9661 hppa*64*|ia64*)
9662 # +Z the default
9663 ;;
9664 *)
9665 lt_prog_compiler_pic='+Z'
9666 ;;
9667 esac
9668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9669 lt_prog_compiler_static='$wl-a ${wl}archive'
9670 ;;
9671
9672 irix5* | irix6* | nonstopux*)
9673 lt_prog_compiler_wl='-Wl,'
9674 # PIC (with -KPIC) is the default.
9675 lt_prog_compiler_static='-non_shared'
9676 ;;
9677
9678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9679 case $cc_basename in
9680 # old Intel for x86_64, which still supported -KPIC.
9681 ecc*)
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-KPIC'
9684 lt_prog_compiler_static='-static'
9685 ;;
9686 # icc used to be incompatible with GCC.
9687 # ICC 10 doesn't accept -KPIC any more.
9688 icc* | ifort*)
9689 lt_prog_compiler_wl='-Wl,'
9690 lt_prog_compiler_pic='-fPIC'
9691 lt_prog_compiler_static='-static'
9692 ;;
9693 # Lahey Fortran 8.1.
9694 lf95*)
9695 lt_prog_compiler_wl='-Wl,'
9696 lt_prog_compiler_pic='--shared'
9697 lt_prog_compiler_static='--static'
9698 ;;
9699 nagfor*)
9700 # NAG Fortran compiler
9701 lt_prog_compiler_wl='-Wl,-Wl,,'
9702 lt_prog_compiler_pic='-PIC'
9703 lt_prog_compiler_static='-Bstatic'
9704 ;;
9705 tcc*)
9706 # Fabrice Bellard et al's Tiny C Compiler
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_pic='-fPIC'
9709 lt_prog_compiler_static='-static'
9710 ;;
9711 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9712 # Portland Group compilers (*not* the Pentium gcc compiler,
9713 # which looks to be a dead project)
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_pic='-fpic'
9716 lt_prog_compiler_static='-Bstatic'
9717 ;;
9718 ccc*)
9719 lt_prog_compiler_wl='-Wl,'
9720 # All Alpha code is PIC.
9721 lt_prog_compiler_static='-non_shared'
9722 ;;
9723 xl* | bgxl* | bgf* | mpixl*)
9724 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9725 lt_prog_compiler_wl='-Wl,'
9726 lt_prog_compiler_pic='-qpic'
9727 lt_prog_compiler_static='-qstaticlink'
9728 ;;
9729 *)
9730 case `$CC -V 2>&1 | sed 5q` in
9731 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9732 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_wl=''
9736 ;;
9737 *Sun\ F* | *Sun*Fortran*)
9738 lt_prog_compiler_pic='-KPIC'
9739 lt_prog_compiler_static='-Bstatic'
9740 lt_prog_compiler_wl='-Qoption ld '
9741 ;;
9742 *Sun\ C*)
9743 # Sun C 5.9
9744 lt_prog_compiler_pic='-KPIC'
9745 lt_prog_compiler_static='-Bstatic'
9746 lt_prog_compiler_wl='-Wl,'
9747 ;;
9748 *Intel*\ [CF]*Compiler*)
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_pic='-fPIC'
9751 lt_prog_compiler_static='-static'
9752 ;;
9753 *Portland\ Group*)
9754 lt_prog_compiler_wl='-Wl,'
9755 lt_prog_compiler_pic='-fpic'
9756 lt_prog_compiler_static='-Bstatic'
9757 ;;
9758 esac
9759 ;;
9760 esac
9761 ;;
9762
9763 newsos6)
9764 lt_prog_compiler_pic='-KPIC'
9765 lt_prog_compiler_static='-Bstatic'
9766 ;;
9767
9768 *nto* | *qnx*)
9769 # QNX uses GNU C++, but need to define -shared option too, otherwise
9770 # it will coredump.
9771 lt_prog_compiler_pic='-fPIC -shared'
9772 ;;
9773
9774 osf3* | osf4* | osf5*)
9775 lt_prog_compiler_wl='-Wl,'
9776 # All OSF/1 code is PIC.
9777 lt_prog_compiler_static='-non_shared'
9778 ;;
9779
9780 rdos*)
9781 lt_prog_compiler_static='-non_shared'
9782 ;;
9783
9784 solaris*)
9785 lt_prog_compiler_pic='-KPIC'
9786 lt_prog_compiler_static='-Bstatic'
9787 case $cc_basename in
9788 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9789 lt_prog_compiler_wl='-Qoption ld ';;
9790 *)
9791 lt_prog_compiler_wl='-Wl,';;
9792 esac
9793 ;;
9794
9795 sunos4*)
9796 lt_prog_compiler_wl='-Qoption ld '
9797 lt_prog_compiler_pic='-PIC'
9798 lt_prog_compiler_static='-Bstatic'
9799 ;;
9800
9801 sysv4 | sysv4.2uw2* | sysv4.3*)
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='-KPIC'
9804 lt_prog_compiler_static='-Bstatic'
9805 ;;
9806
9807 sysv4*MP*)
9808 if test -d /usr/nec; then
9809 lt_prog_compiler_pic='-Kconform_pic'
9810 lt_prog_compiler_static='-Bstatic'
9811 fi
9812 ;;
9813
9814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-Bstatic'
9818 ;;
9819
9820 unicos*)
9821 lt_prog_compiler_wl='-Wl,'
9822 lt_prog_compiler_can_build_shared=no
9823 ;;
9824
9825 uts4*)
9826 lt_prog_compiler_pic='-pic'
9827 lt_prog_compiler_static='-Bstatic'
9828 ;;
9829
9830 *)
9831 lt_prog_compiler_can_build_shared=no
9832 ;;
9833 esac
9834 fi
9835
9836 case $host_os in
9837 # For platforms that do not support PIC, -DPIC is meaningless:
9838 *djgpp*)
9839 lt_prog_compiler_pic=
9840 ;;
9841 *)
9842 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9843 ;;
9844 esac
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9847 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9848 if ${lt_cv_prog_compiler_pic+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9852 fi
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9854 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9855 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9856
9857 #
9858 # Check to make sure the PIC flag actually works.
9859 #
9860 if test -n "$lt_prog_compiler_pic"; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9862 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9863 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 lt_cv_prog_compiler_pic_works=no
9867 ac_outfile=conftest.$ac_objext
9868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9870 # Insert the option either (1) after the last *FLAGS variable, or
9871 # (2) before a word containing "conftest.", or (3) at the end.
9872 # Note that $ac_compile itself does not contain backslashes and begins
9873 # with a dollar sign (not a hyphen), so the echo should work correctly.
9874 # The option is referenced via a variable to avoid confusing sed.
9875 lt_compile=`echo "$ac_compile" | $SED \
9876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878 -e 's:$: $lt_compiler_flag:'`
9879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9880 (eval "$lt_compile" 2>conftest.err)
9881 ac_status=$?
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 if (exit $ac_status) && test -s "$ac_outfile"; then
9885 # The compiler can only warn and ignore the option if not recognized
9886 # So say no if there are warnings other than the usual output.
9887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9890 lt_cv_prog_compiler_pic_works=yes
9891 fi
9892 fi
9893 $RM -r conftest*
9894
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9897 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9898
9899 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9900 case $lt_prog_compiler_pic in
9901 "" | " "*) ;;
9902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9903 esac
9904 else
9905 lt_prog_compiler_pic=
9906 lt_prog_compiler_can_build_shared=no
9907 fi
9908
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 #
9922 # Check to make sure the static flag actually works.
9923 #
9924 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9927 if ${lt_cv_prog_compiler_static_works+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 lt_cv_prog_compiler_static_works=no
9931 save_LDFLAGS=$LDFLAGS
9932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9935 # The linker can only warn and ignore the option if not recognized
9936 # So say no if there are warnings
9937 if test -s conftest.err; then
9938 # Append any errors to the config.log.
9939 cat conftest.err 1>&5
9940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9942 if diff conftest.exp conftest.er2 >/dev/null; then
9943 lt_cv_prog_compiler_static_works=yes
9944 fi
9945 else
9946 lt_cv_prog_compiler_static_works=yes
9947 fi
9948 fi
9949 $RM -r conftest*
9950 LDFLAGS=$save_LDFLAGS
9951
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9954 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9955
9956 if test yes = "$lt_cv_prog_compiler_static_works"; then
9957 :
9958 else
9959 lt_prog_compiler_static=
9960 fi
9961
9962
9963
9964
9965
9966
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9970 if ${lt_cv_prog_compiler_c_o+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 lt_cv_prog_compiler_c_o=no
9974 $RM -r conftest 2>/dev/null
9975 mkdir conftest
9976 cd conftest
9977 mkdir out
9978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9979
9980 lt_compiler_flag="-o out/conftest2.$ac_objext"
9981 # Insert the option either (1) after the last *FLAGS variable, or
9982 # (2) before a word containing "conftest.", or (3) at the end.
9983 # Note that $ac_compile itself does not contain backslashes and begins
9984 # with a dollar sign (not a hyphen), so the echo should work correctly.
9985 lt_compile=`echo "$ac_compile" | $SED \
9986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9988 -e 's:$: $lt_compiler_flag:'`
9989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9990 (eval "$lt_compile" 2>out/conftest.err)
9991 ac_status=$?
9992 cat out/conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9995 then
9996 # The compiler can only warn and ignore the option if not recognized
9997 # So say no if there are warnings
9998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10001 lt_cv_prog_compiler_c_o=yes
10002 fi
10003 fi
10004 chmod u+w . 2>&5
10005 $RM -r conftest*
10006 # SGI C++ compiler will create directory out/ii_files/ for
10007 # template instantiation
10008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10009 $RM out/* && rmdir out
10010 cd ..
10011 $RM -r conftest
10012 $RM -r conftest*
10013
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10016 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10017
10018
10019
10020
10021
10022
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10025 if ${lt_cv_prog_compiler_c_o+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 lt_cv_prog_compiler_c_o=no
10029 $RM -r conftest 2>/dev/null
10030 mkdir conftest
10031 cd conftest
10032 mkdir out
10033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10034
10035 lt_compiler_flag="-o out/conftest2.$ac_objext"
10036 # Insert the option either (1) after the last *FLAGS variable, or
10037 # (2) before a word containing "conftest.", or (3) at the end.
10038 # Note that $ac_compile itself does not contain backslashes and begins
10039 # with a dollar sign (not a hyphen), so the echo should work correctly.
10040 lt_compile=`echo "$ac_compile" | $SED \
10041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10043 -e 's:$: $lt_compiler_flag:'`
10044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10045 (eval "$lt_compile" 2>out/conftest.err)
10046 ac_status=$?
10047 cat out/conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10050 then
10051 # The compiler can only warn and ignore the option if not recognized
10052 # So say no if there are warnings
10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10056 lt_cv_prog_compiler_c_o=yes
10057 fi
10058 fi
10059 chmod u+w . 2>&5
10060 $RM -r conftest*
10061 # SGI C++ compiler will create directory out/ii_files/ for
10062 # template instantiation
10063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10064 $RM out/* && rmdir out
10065 cd ..
10066 $RM -r conftest
10067 $RM -r conftest*
10068
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10071 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10072
10073
10074
10075
10076 hard_links=nottested
10077 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10078 # do not overwrite the value of need_locks provided by the user
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10080 $as_echo_n "checking if we can lock with hard links... " >&6; }
10081 hard_links=yes
10082 $RM -r conftest*
10083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10084 touch conftest.a
10085 ln conftest.a conftest.b 2>&5 || hard_links=no
10086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10088 $as_echo "$hard_links" >&6; }
10089 if test no = "$hard_links"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10091 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10092 need_locks=warn
10093 fi
10094 else
10095 need_locks=no
10096 fi
10097
10098
10099
10100
10101
10102
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10104 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10105
10106 runpath_var=
10107 allow_undefined_flag=
10108 always_export_symbols=no
10109 archive_cmds=
10110 archive_expsym_cmds=
10111 compiler_needs_object=no
10112 enable_shared_with_static_runtimes=no
10113 export_dynamic_flag_spec=
10114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10115 hardcode_automatic=no
10116 hardcode_direct=no
10117 hardcode_direct_absolute=no
10118 hardcode_libdir_flag_spec=
10119 hardcode_libdir_separator=
10120 hardcode_minus_L=no
10121 hardcode_shlibpath_var=unsupported
10122 inherit_rpath=no
10123 link_all_deplibs=unknown
10124 module_cmds=
10125 module_expsym_cmds=
10126 old_archive_from_new_cmds=
10127 old_archive_from_expsyms_cmds=
10128 thread_safe_flag_spec=
10129 whole_archive_flag_spec=
10130 # include_expsyms should be a list of space-separated symbols to be *always*
10131 # included in the symbol list
10132 include_expsyms=
10133 # exclude_expsyms can be an extended regexp of symbols to exclude
10134 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10135 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10136 # as well as any symbol that contains 'd'.
10137 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10138 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10139 # platforms (ab)use it in PIC code, but their linkers get confused if
10140 # the symbol is explicitly referenced. Since portable code cannot
10141 # rely on this symbol name, it's probably fine to never include it in
10142 # preloaded symbol tables.
10143 # Exclude shared library initialization/finalization symbols.
10144 extract_expsyms_cmds=
10145
10146 case $host_os in
10147 cygwin* | mingw* | pw32* | cegcc*)
10148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10149 # When not using gcc, we currently assume that we are using
10150 # Microsoft Visual C++.
10151 if test yes != "$GCC"; then
10152 with_gnu_ld=no
10153 fi
10154 ;;
10155 interix*)
10156 # we just hope/assume this is gcc and not c89 (= MSVC++)
10157 with_gnu_ld=yes
10158 ;;
10159 openbsd* | bitrig*)
10160 with_gnu_ld=no
10161 ;;
10162 esac
10163
10164 ld_shlibs=yes
10165
10166 # On some targets, GNU ld is compatible enough with the native linker
10167 # that we're better off using the native interface for both.
10168 lt_use_gnu_ld_interface=no
10169 if test yes = "$with_gnu_ld"; then
10170 case $host_os in
10171 aix*)
10172 # The AIX port of GNU ld has always aspired to compatibility
10173 # with the native linker. However, as the warning in the GNU ld
10174 # block says, versions before 2.19.5* couldn't really create working
10175 # shared libraries, regardless of the interface used.
10176 case `$LD -v 2>&1` in
10177 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10178 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10179 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10180 *)
10181 lt_use_gnu_ld_interface=yes
10182 ;;
10183 esac
10184 ;;
10185 *)
10186 lt_use_gnu_ld_interface=yes
10187 ;;
10188 esac
10189 fi
10190
10191 if test yes = "$lt_use_gnu_ld_interface"; then
10192 # If archive_cmds runs LD, not CC, wlarc should be empty
10193 wlarc='$wl'
10194
10195 # Set some defaults for GNU ld with shared library support. These
10196 # are reset later if shared libraries are not supported. Putting them
10197 # here allows them to be overridden if necessary.
10198 runpath_var=LD_RUN_PATH
10199 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10200 export_dynamic_flag_spec='$wl--export-dynamic'
10201 # ancient GNU ld didn't support --whole-archive et. al.
10202 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10203 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10204 else
10205 whole_archive_flag_spec=
10206 fi
10207 supports_anon_versioning=no
10208 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10209 *GNU\ gold*) supports_anon_versioning=yes ;;
10210 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10213 *\ 2.11.*) ;; # other 2.11 versions
10214 *) supports_anon_versioning=yes ;;
10215 esac
10216
10217 # See if GNU ld supports shared libraries.
10218 case $host_os in
10219 aix[3-9]*)
10220 # On AIX/PPC, the GNU linker is very broken
10221 if test ia64 != "$host_cpu"; then
10222 ld_shlibs=no
10223 cat <<_LT_EOF 1>&2
10224
10225 *** Warning: the GNU linker, at least up to release 2.19, is reported
10226 *** to be unable to reliably create shared libraries on AIX.
10227 *** Therefore, libtool is disabling shared libraries support. If you
10228 *** really care for shared libraries, you may want to install binutils
10229 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10230 *** You will then need to restart the configuration process.
10231
10232 _LT_EOF
10233 fi
10234 ;;
10235
10236 amigaos*)
10237 case $host_cpu in
10238 powerpc)
10239 # see comment about AmigaOS4 .so support
10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10241 archive_expsym_cmds=''
10242 ;;
10243 m68k)
10244 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)'
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_minus_L=yes
10247 ;;
10248 esac
10249 ;;
10250
10251 beos*)
10252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10253 allow_undefined_flag=unsupported
10254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10255 # support --undefined. This deserves some investigation. FIXME
10256 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10257 else
10258 ld_shlibs=no
10259 fi
10260 ;;
10261
10262 cygwin* | mingw* | pw32* | cegcc*)
10263 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10264 # as there is no search path for DLLs.
10265 hardcode_libdir_flag_spec='-L$libdir'
10266 export_dynamic_flag_spec='$wl--export-all-symbols'
10267 allow_undefined_flag=unsupported
10268 always_export_symbols=no
10269 enable_shared_with_static_runtimes=yes
10270 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'
10271 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10272
10273 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10275 # If the export-symbols file already is a .def file, use it as
10276 # is; otherwise, prepend EXPORTS...
10277 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10278 cp $export_symbols $output_objdir/$soname.def;
10279 else
10280 echo EXPORTS > $output_objdir/$soname.def;
10281 cat $export_symbols >> $output_objdir/$soname.def;
10282 fi~
10283 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10284 else
10285 ld_shlibs=no
10286 fi
10287 ;;
10288
10289 haiku*)
10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10291 link_all_deplibs=yes
10292 ;;
10293
10294 os2*)
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_minus_L=yes
10297 allow_undefined_flag=unsupported
10298 shrext_cmds=.dll
10299 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10300 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10301 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10302 $ECHO EXPORTS >> $output_objdir/$libname.def~
10303 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10304 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10305 emximp -o $lib $output_objdir/$libname.def'
10306 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10307 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10308 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10309 $ECHO EXPORTS >> $output_objdir/$libname.def~
10310 prefix_cmds="$SED"~
10311 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10312 prefix_cmds="$prefix_cmds -e 1d";
10313 fi~
10314 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10315 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10316 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10317 emximp -o $lib $output_objdir/$libname.def'
10318 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10319 enable_shared_with_static_runtimes=yes
10320 ;;
10321
10322 interix[3-9]*)
10323 hardcode_direct=no
10324 hardcode_shlibpath_var=no
10325 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10326 export_dynamic_flag_spec='$wl-E'
10327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10328 # Instead, shared libraries are loaded at an image base (0x10000000 by
10329 # default) and relocated if they conflict, which is a slow very memory
10330 # consuming and fragmenting process. To avoid this, we pick a random,
10331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10334 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'
10335 ;;
10336
10337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10338 tmp_diet=no
10339 if test linux-dietlibc = "$host_os"; then
10340 case $cc_basename in
10341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10342 esac
10343 fi
10344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10345 && test no = "$tmp_diet"
10346 then
10347 tmp_addflag=' $pic_flag'
10348 tmp_sharedflag='-shared'
10349 case $cc_basename,$host_cpu in
10350 pgcc*) # Portland Group C compiler
10351 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'
10352 tmp_addflag=' $pic_flag'
10353 ;;
10354 pgf77* | pgf90* | pgf95* | pgfortran*)
10355 # Portland Group f77 and f90 compilers
10356 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'
10357 tmp_addflag=' $pic_flag -Mnomain' ;;
10358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10359 tmp_addflag=' -i_dynamic' ;;
10360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10361 tmp_addflag=' -i_dynamic -nofor_main' ;;
10362 ifc* | ifort*) # Intel Fortran compiler
10363 tmp_addflag=' -nofor_main' ;;
10364 lf95*) # Lahey Fortran 8.1
10365 whole_archive_flag_spec=
10366 tmp_sharedflag='--shared' ;;
10367 nagfor*) # NAGFOR 5.3
10368 tmp_sharedflag='-Wl,-shared' ;;
10369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10370 tmp_sharedflag='-qmkshrobj'
10371 tmp_addflag= ;;
10372 nvcc*) # Cuda Compiler Driver 2.2
10373 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'
10374 compiler_needs_object=yes
10375 ;;
10376 esac
10377 case `$CC -V 2>&1 | sed 5q` in
10378 *Sun\ C*) # Sun C 5.9
10379 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'
10380 compiler_needs_object=yes
10381 tmp_sharedflag='-G' ;;
10382 *Sun\ F*) # Sun Fortran 8.3
10383 tmp_sharedflag='-G' ;;
10384 esac
10385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10386
10387 if test yes = "$supports_anon_versioning"; then
10388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10390 echo "local: *; };" >> $output_objdir/$libname.ver~
10391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10392 fi
10393
10394 case $cc_basename in
10395 tcc*)
10396 export_dynamic_flag_spec='-rdynamic'
10397 ;;
10398 xlf* | bgf* | bgxlf* | mpixlf*)
10399 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10400 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10401 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10402 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10403 if test yes = "$supports_anon_versioning"; then
10404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406 echo "local: *; };" >> $output_objdir/$libname.ver~
10407 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10408 fi
10409 ;;
10410 esac
10411 else
10412 ld_shlibs=no
10413 fi
10414 ;;
10415
10416 netbsd*)
10417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10419 wlarc=
10420 else
10421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10422 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10423 fi
10424 ;;
10425
10426 solaris*)
10427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10428 ld_shlibs=no
10429 cat <<_LT_EOF 1>&2
10430
10431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10432 *** create shared libraries on Solaris systems. Therefore, libtool
10433 *** is disabling shared libraries support. We urge you to upgrade GNU
10434 *** binutils to release 2.9.1 or newer. Another option is to modify
10435 *** your PATH or compiler configuration so that the native linker is
10436 *** used, and then restart.
10437
10438 _LT_EOF
10439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10441 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10442 else
10443 ld_shlibs=no
10444 fi
10445 ;;
10446
10447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10448 case `$LD -v 2>&1` in
10449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10450 ld_shlibs=no
10451 cat <<_LT_EOF 1>&2
10452
10453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10454 *** reliably create shared libraries on SCO systems. Therefore, libtool
10455 *** is disabling shared libraries support. We urge you to upgrade GNU
10456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10457 *** your PATH or compiler configuration so that the native linker is
10458 *** used, and then restart.
10459
10460 _LT_EOF
10461 ;;
10462 *)
10463 # For security reasons, it is highly recommended that you always
10464 # use absolute paths for naming shared libraries, and exclude the
10465 # DT_RUNPATH tag from executables and libraries. But doing so
10466 # requires that you compile everything twice, which is a pain.
10467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10471 else
10472 ld_shlibs=no
10473 fi
10474 ;;
10475 esac
10476 ;;
10477
10478 sunos4*)
10479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480 wlarc=
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10483 ;;
10484
10485 *)
10486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10488 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10489 else
10490 ld_shlibs=no
10491 fi
10492 ;;
10493 esac
10494
10495 if test no = "$ld_shlibs"; then
10496 runpath_var=
10497 hardcode_libdir_flag_spec=
10498 export_dynamic_flag_spec=
10499 whole_archive_flag_spec=
10500 fi
10501 else
10502 # PORTME fill in a description of your system's linker (not GNU ld)
10503 case $host_os in
10504 aix3*)
10505 allow_undefined_flag=unsupported
10506 always_export_symbols=yes
10507 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'
10508 # Note: this linker hardcodes the directories in LIBPATH if there
10509 # are no directories specified by -L.
10510 hardcode_minus_L=yes
10511 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10512 # Neither direct hardcoding nor static linking is supported with a
10513 # broken collect2.
10514 hardcode_direct=unsupported
10515 fi
10516 ;;
10517
10518 aix[4-9]*)
10519 if test ia64 = "$host_cpu"; then
10520 # On IA64, the linker does run time linking by default, so we don't
10521 # have to do anything special.
10522 aix_use_runtimelinking=no
10523 exp_sym_flag='-Bexport'
10524 no_entry_flag=
10525 else
10526 # If we're using GNU nm, then we don't want the "-C" option.
10527 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10528 # Without the "-l" option, or with the "-B" option, AIX nm treats
10529 # weak defined symbols like other global defined symbols, whereas
10530 # GNU nm marks them as "W".
10531 # While the 'weak' keyword is ignored in the Export File, we need
10532 # it in the Import File for the 'aix-soname' feature, so we have
10533 # to replace the "-B" option with "-P" for AIX nm.
10534 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10535 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10536 else
10537 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10538 fi
10539 aix_use_runtimelinking=no
10540
10541 # Test if we are trying to use run time linking or normal
10542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10543 # have runtime linking enabled, and use it for executables.
10544 # For shared libraries, we enable/disable runtime linking
10545 # depending on the kind of the shared library created -
10546 # when "with_aix_soname,aix_use_runtimelinking" is:
10547 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10548 # "aix,yes" lib.so shared, rtl:yes, for executables
10549 # lib.a static archive
10550 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10551 # lib.a(lib.so.V) shared, rtl:no, for executables
10552 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10553 # lib.a(lib.so.V) shared, rtl:no
10554 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10555 # lib.a static archive
10556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10557 for ld_flag in $LDFLAGS; do
10558 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10559 aix_use_runtimelinking=yes
10560 break
10561 fi
10562 done
10563 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10564 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10565 # so we don't have lib.a shared libs to link our executables.
10566 # We have to force runtime linking in this case.
10567 aix_use_runtimelinking=yes
10568 LDFLAGS="$LDFLAGS -Wl,-brtl"
10569 fi
10570 ;;
10571 esac
10572
10573 exp_sym_flag='-bexport'
10574 no_entry_flag='-bnoentry'
10575 fi
10576
10577 # When large executables or shared objects are built, AIX ld can
10578 # have problems creating the table of contents. If linking a library
10579 # or program results in "error TOC overflow" add -mminimal-toc to
10580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10582
10583 archive_cmds=''
10584 hardcode_direct=yes
10585 hardcode_direct_absolute=yes
10586 hardcode_libdir_separator=':'
10587 link_all_deplibs=yes
10588 file_list_spec='$wl-f,'
10589 case $with_aix_soname,$aix_use_runtimelinking in
10590 aix,*) ;; # traditional, no import file
10591 svr4,* | *,yes) # use import file
10592 # The Import File defines what to hardcode.
10593 hardcode_direct=no
10594 hardcode_direct_absolute=no
10595 ;;
10596 esac
10597
10598 if test yes = "$GCC"; then
10599 case $host_os in aix4.[012]|aix4.[012].*)
10600 # We only want to do this on AIX 4.2 and lower, the check
10601 # below for broken collect2 doesn't work under 4.3+
10602 collect2name=`$CC -print-prog-name=collect2`
10603 if test -f "$collect2name" &&
10604 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10605 then
10606 # We have reworked collect2
10607 :
10608 else
10609 # We have old collect2
10610 hardcode_direct=unsupported
10611 # It fails to find uninstalled libraries when the uninstalled
10612 # path is not listed in the libpath. Setting hardcode_minus_L
10613 # to unsupported forces relinking
10614 hardcode_minus_L=yes
10615 hardcode_libdir_flag_spec='-L$libdir'
10616 hardcode_libdir_separator=
10617 fi
10618 ;;
10619 esac
10620 shared_flag='-shared'
10621 if test yes = "$aix_use_runtimelinking"; then
10622 shared_flag="$shared_flag "'$wl-G'
10623 fi
10624 # Need to ensure runtime linking is disabled for the traditional
10625 # shared library, or the linker may eventually find shared libraries
10626 # /with/ Import File - we do not want to mix them.
10627 shared_flag_aix='-shared'
10628 shared_flag_svr4='-shared $wl-G'
10629 else
10630 # not using gcc
10631 if test ia64 = "$host_cpu"; then
10632 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10633 # chokes on -Wl,-G. The following line is correct:
10634 shared_flag='-G'
10635 else
10636 if test yes = "$aix_use_runtimelinking"; then
10637 shared_flag='$wl-G'
10638 else
10639 shared_flag='$wl-bM:SRE'
10640 fi
10641 shared_flag_aix='$wl-bM:SRE'
10642 shared_flag_svr4='$wl-G'
10643 fi
10644 fi
10645
10646 export_dynamic_flag_spec='$wl-bexpall'
10647 # It seems that -bexpall does not export symbols beginning with
10648 # underscore (_), so it is better to generate a list of symbols to export.
10649 always_export_symbols=yes
10650 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10651 # Warning - without using the other runtime loading flags (-brtl),
10652 # -berok will link without error, but may produce a broken library.
10653 allow_undefined_flag='-berok'
10654 # Determine the default libpath from the value encoded in an
10655 # empty executable.
10656 if test set = "${lt_cv_aix_libpath+set}"; then
10657 aix_libpath=$lt_cv_aix_libpath
10658 else
10659 if ${lt_cv_aix_libpath_+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664
10665 int
10666 main ()
10667 {
10668
10669 ;
10670 return 0;
10671 }
10672 _ACEOF
10673 if ac_fn_c_try_link "$LINENO"; then :
10674
10675 lt_aix_libpath_sed='
10676 /Import File Strings/,/^$/ {
10677 /^0/ {
10678 s/^0 *\([^ ]*\) *$/\1/
10679 p
10680 }
10681 }'
10682 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 # Check for a 64-bit object if we didn't find anything.
10684 if test -z "$lt_cv_aix_libpath_"; then
10685 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10686 fi
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 if test -z "$lt_cv_aix_libpath_"; then
10691 lt_cv_aix_libpath_=/usr/lib:/lib
10692 fi
10693
10694 fi
10695
10696 aix_libpath=$lt_cv_aix_libpath_
10697 fi
10698
10699 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10700 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10701 else
10702 if test ia64 = "$host_cpu"; then
10703 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10704 allow_undefined_flag="-z nodefs"
10705 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"
10706 else
10707 # Determine the default libpath from the value encoded in an
10708 # empty executable.
10709 if test set = "${lt_cv_aix_libpath+set}"; then
10710 aix_libpath=$lt_cv_aix_libpath
10711 else
10712 if ${lt_cv_aix_libpath_+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717
10718 int
10719 main ()
10720 {
10721
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727
10728 lt_aix_libpath_sed='
10729 /Import File Strings/,/^$/ {
10730 /^0/ {
10731 s/^0 *\([^ ]*\) *$/\1/
10732 p
10733 }
10734 }'
10735 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 # Check for a 64-bit object if we didn't find anything.
10737 if test -z "$lt_cv_aix_libpath_"; then
10738 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10739 fi
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 if test -z "$lt_cv_aix_libpath_"; then
10744 lt_cv_aix_libpath_=/usr/lib:/lib
10745 fi
10746
10747 fi
10748
10749 aix_libpath=$lt_cv_aix_libpath_
10750 fi
10751
10752 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10753 # Warning - without using the other run time loading flags,
10754 # -berok will link without error, but may produce a broken library.
10755 no_undefined_flag=' $wl-bernotok'
10756 allow_undefined_flag=' $wl-berok'
10757 if test yes = "$with_gnu_ld"; then
10758 # We only use this code for GNU lds that support --whole-archive.
10759 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10760 else
10761 # Exported symbols can be pulled into shared objects from archives
10762 whole_archive_flag_spec='$convenience'
10763 fi
10764 archive_cmds_need_lc=yes
10765 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10766 # -brtl affects multiple linker settings, -berok does not and is overridden later
10767 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10768 if test svr4 != "$with_aix_soname"; then
10769 # This is similar to how AIX traditionally builds its shared libraries.
10770 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10771 fi
10772 if test aix != "$with_aix_soname"; then
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10774 else
10775 # used by -dlpreopen to get the symbols
10776 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10777 fi
10778 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10779 fi
10780 fi
10781 ;;
10782
10783 amigaos*)
10784 case $host_cpu in
10785 powerpc)
10786 # see comment about AmigaOS4 .so support
10787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10788 archive_expsym_cmds=''
10789 ;;
10790 m68k)
10791 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)'
10792 hardcode_libdir_flag_spec='-L$libdir'
10793 hardcode_minus_L=yes
10794 ;;
10795 esac
10796 ;;
10797
10798 bsdi[45]*)
10799 export_dynamic_flag_spec=-rdynamic
10800 ;;
10801
10802 cygwin* | mingw* | pw32* | cegcc*)
10803 # When not using gcc, we currently assume that we are using
10804 # Microsoft Visual C++.
10805 # hardcode_libdir_flag_spec is actually meaningless, as there is
10806 # no search path for DLLs.
10807 case $cc_basename in
10808 cl*)
10809 # Native MSVC
10810 hardcode_libdir_flag_spec=' '
10811 allow_undefined_flag=unsupported
10812 always_export_symbols=yes
10813 file_list_spec='@'
10814 # Tell ltmain to make .lib files, not .a files.
10815 libext=lib
10816 # Tell ltmain to make .dll files, not .so files.
10817 shrext_cmds=.dll
10818 # FIXME: Setting linknames here is a bad hack.
10819 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10820 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10821 cp "$export_symbols" "$output_objdir/$soname.def";
10822 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10823 else
10824 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10825 fi~
10826 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10827 linknames='
10828 # The linker will not automatically build a static lib if we build a DLL.
10829 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10830 enable_shared_with_static_runtimes=yes
10831 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10833 # Don't use ranlib
10834 old_postinstall_cmds='chmod 644 $oldlib'
10835 postlink_cmds='lt_outputfile="@OUTPUT@"~
10836 lt_tool_outputfile="@TOOL_OUTPUT@"~
10837 case $lt_outputfile in
10838 *.exe|*.EXE) ;;
10839 *)
10840 lt_outputfile=$lt_outputfile.exe
10841 lt_tool_outputfile=$lt_tool_outputfile.exe
10842 ;;
10843 esac~
10844 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10845 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10846 $RM "$lt_outputfile.manifest";
10847 fi'
10848 ;;
10849 *)
10850 # Assume MSVC wrapper
10851 hardcode_libdir_flag_spec=' '
10852 allow_undefined_flag=unsupported
10853 # Tell ltmain to make .lib files, not .a files.
10854 libext=lib
10855 # Tell ltmain to make .dll files, not .so files.
10856 shrext_cmds=.dll
10857 # FIXME: Setting linknames here is a bad hack.
10858 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10859 # The linker will automatically build a .lib file if we build a DLL.
10860 old_archive_from_new_cmds='true'
10861 # FIXME: Should let the user specify the lib program.
10862 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10863 enable_shared_with_static_runtimes=yes
10864 ;;
10865 esac
10866 ;;
10867
10868 darwin* | rhapsody*)
10869
10870
10871 archive_cmds_need_lc=no
10872 hardcode_direct=no
10873 hardcode_automatic=yes
10874 hardcode_shlibpath_var=unsupported
10875 if test yes = "$lt_cv_ld_force_load"; then
10876 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\"`'
10877
10878 else
10879 whole_archive_flag_spec=''
10880 fi
10881 link_all_deplibs=yes
10882 allow_undefined_flag=$_lt_dar_allow_undefined
10883 case $cc_basename in
10884 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10885 *) _lt_dar_can_shared=$GCC ;;
10886 esac
10887 if test yes = "$_lt_dar_can_shared"; then
10888 output_verbose_link_cmd=func_echo_all
10889 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10890 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10891 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"
10892 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"
10893
10894 else
10895 ld_shlibs=no
10896 fi
10897
10898 ;;
10899
10900 dgux*)
10901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_libdir_flag_spec='-L$libdir'
10903 hardcode_shlibpath_var=no
10904 ;;
10905
10906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10907 # support. Future versions do this automatically, but an explicit c++rt0.o
10908 # does not break anything, and helps significantly (at the cost of a little
10909 # extra space).
10910 freebsd2.2*)
10911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10912 hardcode_libdir_flag_spec='-R$libdir'
10913 hardcode_direct=yes
10914 hardcode_shlibpath_var=no
10915 ;;
10916
10917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10918 freebsd2.*)
10919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_direct=yes
10921 hardcode_minus_L=yes
10922 hardcode_shlibpath_var=no
10923 ;;
10924
10925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10926 freebsd* | dragonfly*)
10927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10928 hardcode_libdir_flag_spec='-R$libdir'
10929 hardcode_direct=yes
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 hpux9*)
10934 if test yes = "$GCC"; then
10935 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10936 else
10937 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10938 fi
10939 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10940 hardcode_libdir_separator=:
10941 hardcode_direct=yes
10942
10943 # hardcode_minus_L: Not really in the search PATH,
10944 # but as the default location of the library.
10945 hardcode_minus_L=yes
10946 export_dynamic_flag_spec='$wl-E'
10947 ;;
10948
10949 hpux10*)
10950 if test yes,no = "$GCC,$with_gnu_ld"; then
10951 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10952 else
10953 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10954 fi
10955 if test no = "$with_gnu_ld"; then
10956 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10957 hardcode_libdir_separator=:
10958 hardcode_direct=yes
10959 hardcode_direct_absolute=yes
10960 export_dynamic_flag_spec='$wl-E'
10961 # hardcode_minus_L: Not really in the search PATH,
10962 # but as the default location of the library.
10963 hardcode_minus_L=yes
10964 fi
10965 ;;
10966
10967 hpux11*)
10968 if test yes,no = "$GCC,$with_gnu_ld"; then
10969 case $host_cpu in
10970 hppa*64*)
10971 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 ia64*)
10974 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10975 ;;
10976 *)
10977 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10978 ;;
10979 esac
10980 else
10981 case $host_cpu in
10982 hppa*64*)
10983 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 ;;
10985 ia64*)
10986 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10987 ;;
10988 *)
10989
10990 # Older versions of the 11.00 compiler do not understand -b yet
10991 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10993 $as_echo_n "checking if $CC understands -b... " >&6; }
10994 if ${lt_cv_prog_compiler__b+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 lt_cv_prog_compiler__b=no
10998 save_LDFLAGS=$LDFLAGS
10999 LDFLAGS="$LDFLAGS -b"
11000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11002 # The linker can only warn and ignore the option if not recognized
11003 # So say no if there are warnings
11004 if test -s conftest.err; then
11005 # Append any errors to the config.log.
11006 cat conftest.err 1>&5
11007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11009 if diff conftest.exp conftest.er2 >/dev/null; then
11010 lt_cv_prog_compiler__b=yes
11011 fi
11012 else
11013 lt_cv_prog_compiler__b=yes
11014 fi
11015 fi
11016 $RM -r conftest*
11017 LDFLAGS=$save_LDFLAGS
11018
11019 fi
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11021 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11022
11023 if test yes = "$lt_cv_prog_compiler__b"; then
11024 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11025 else
11026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11027 fi
11028
11029 ;;
11030 esac
11031 fi
11032 if test no = "$with_gnu_ld"; then
11033 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11034 hardcode_libdir_separator=:
11035
11036 case $host_cpu in
11037 hppa*64*|ia64*)
11038 hardcode_direct=no
11039 hardcode_shlibpath_var=no
11040 ;;
11041 *)
11042 hardcode_direct=yes
11043 hardcode_direct_absolute=yes
11044 export_dynamic_flag_spec='$wl-E'
11045
11046 # hardcode_minus_L: Not really in the search PATH,
11047 # but as the default location of the library.
11048 hardcode_minus_L=yes
11049 ;;
11050 esac
11051 fi
11052 ;;
11053
11054 irix5* | irix6* | nonstopux*)
11055 if test yes = "$GCC"; then
11056 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'
11057 # Try to use the -exported_symbol ld option, if it does not
11058 # work, assume that -exports_file does not work either and
11059 # implicitly export all symbols.
11060 # This should be the same for all languages, so no per-tag cache variable.
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11062 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11063 if ${lt_cv_irix_exported_symbol+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 save_LDFLAGS=$LDFLAGS
11067 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11070 int foo (void) { return 0; }
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073 lt_cv_irix_exported_symbol=yes
11074 else
11075 lt_cv_irix_exported_symbol=no
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LDFLAGS=$save_LDFLAGS
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11082 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11083 if test yes = "$lt_cv_irix_exported_symbol"; then
11084 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'
11085 fi
11086 else
11087 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'
11088 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'
11089 fi
11090 archive_cmds_need_lc='no'
11091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11092 hardcode_libdir_separator=:
11093 inherit_rpath=yes
11094 link_all_deplibs=yes
11095 ;;
11096
11097 linux*)
11098 case $cc_basename in
11099 tcc*)
11100 # Fabrice Bellard et al's Tiny C Compiler
11101 ld_shlibs=yes
11102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11103 ;;
11104 esac
11105 ;;
11106
11107 netbsd*)
11108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11110 else
11111 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11112 fi
11113 hardcode_libdir_flag_spec='-R$libdir'
11114 hardcode_direct=yes
11115 hardcode_shlibpath_var=no
11116 ;;
11117
11118 newsos6)
11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120 hardcode_direct=yes
11121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11122 hardcode_libdir_separator=:
11123 hardcode_shlibpath_var=no
11124 ;;
11125
11126 *nto* | *qnx*)
11127 ;;
11128
11129 openbsd* | bitrig*)
11130 if test -f /usr/libexec/ld.so; then
11131 hardcode_direct=yes
11132 hardcode_shlibpath_var=no
11133 hardcode_direct_absolute=yes
11134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11136 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11137 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11138 export_dynamic_flag_spec='$wl-E'
11139 else
11140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11141 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11142 fi
11143 else
11144 ld_shlibs=no
11145 fi
11146 ;;
11147
11148 os2*)
11149 hardcode_libdir_flag_spec='-L$libdir'
11150 hardcode_minus_L=yes
11151 allow_undefined_flag=unsupported
11152 shrext_cmds=.dll
11153 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11156 $ECHO EXPORTS >> $output_objdir/$libname.def~
11157 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11159 emximp -o $lib $output_objdir/$libname.def'
11160 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11161 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11162 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11163 $ECHO EXPORTS >> $output_objdir/$libname.def~
11164 prefix_cmds="$SED"~
11165 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11166 prefix_cmds="$prefix_cmds -e 1d";
11167 fi~
11168 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11169 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11171 emximp -o $lib $output_objdir/$libname.def'
11172 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11173 enable_shared_with_static_runtimes=yes
11174 ;;
11175
11176 osf3*)
11177 if test yes = "$GCC"; then
11178 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11179 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'
11180 else
11181 allow_undefined_flag=' -expect_unresolved \*'
11182 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'
11183 fi
11184 archive_cmds_need_lc='no'
11185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11186 hardcode_libdir_separator=:
11187 ;;
11188
11189 osf4* | osf5*) # as osf3* with the addition of -msym flag
11190 if test yes = "$GCC"; then
11191 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11192 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'
11193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11194 else
11195 allow_undefined_flag=' -expect_unresolved \*'
11196 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'
11197 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~
11198 $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'
11199
11200 # Both c and cxx compiler support -rpath directly
11201 hardcode_libdir_flag_spec='-rpath $libdir'
11202 fi
11203 archive_cmds_need_lc='no'
11204 hardcode_libdir_separator=:
11205 ;;
11206
11207 solaris*)
11208 no_undefined_flag=' -z defs'
11209 if test yes = "$GCC"; then
11210 wlarc='$wl'
11211 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11213 $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'
11214 else
11215 case `$CC -V 2>&1` in
11216 *"Compilers 5.0"*)
11217 wlarc=''
11218 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11220 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11221 ;;
11222 *)
11223 wlarc='$wl'
11224 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11226 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11227 ;;
11228 esac
11229 fi
11230 hardcode_libdir_flag_spec='-R$libdir'
11231 hardcode_shlibpath_var=no
11232 case $host_os in
11233 solaris2.[0-5] | solaris2.[0-5].*) ;;
11234 *)
11235 # The compiler driver will combine and reorder linker options,
11236 # but understands '-z linker_flag'. GCC discards it without '$wl',
11237 # but is careful enough not to reorder.
11238 # Supported since Solaris 2.6 (maybe 2.5.1?)
11239 if test yes = "$GCC"; then
11240 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11241 else
11242 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11243 fi
11244 ;;
11245 esac
11246 link_all_deplibs=yes
11247 ;;
11248
11249 sunos4*)
11250 if test sequent = "$host_vendor"; then
11251 # Use $CC to link under sequent, because it throws in some extra .o
11252 # files that make .init and .fini sections work.
11253 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11254 else
11255 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11256 fi
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 hardcode_direct=yes
11259 hardcode_minus_L=yes
11260 hardcode_shlibpath_var=no
11261 ;;
11262
11263 sysv4)
11264 case $host_vendor in
11265 sni)
11266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11267 hardcode_direct=yes # is this really true???
11268 ;;
11269 siemens)
11270 ## LD is ld it makes a PLAMLIB
11271 ## CC just makes a GrossModule.
11272 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11273 reload_cmds='$CC -r -o $output$reload_objs'
11274 hardcode_direct=no
11275 ;;
11276 motorola)
11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11279 ;;
11280 esac
11281 runpath_var='LD_RUN_PATH'
11282 hardcode_shlibpath_var=no
11283 ;;
11284
11285 sysv4.3*)
11286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287 hardcode_shlibpath_var=no
11288 export_dynamic_flag_spec='-Bexport'
11289 ;;
11290
11291 sysv4*MP*)
11292 if test -d /usr/nec; then
11293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294 hardcode_shlibpath_var=no
11295 runpath_var=LD_RUN_PATH
11296 hardcode_runpath_var=yes
11297 ld_shlibs=yes
11298 fi
11299 ;;
11300
11301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11302 no_undefined_flag='$wl-z,text'
11303 archive_cmds_need_lc=no
11304 hardcode_shlibpath_var=no
11305 runpath_var='LD_RUN_PATH'
11306
11307 if test yes = "$GCC"; then
11308 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 else
11311 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 fi
11314 ;;
11315
11316 sysv5* | sco3.2v5* | sco5v6*)
11317 # Note: We CANNOT use -z defs as we might desire, because we do not
11318 # link with -lc, and that would cause any symbols used from libc to
11319 # always be unresolved, which means just about no library would
11320 # ever link correctly. If we're not using GNU ld we use -z text
11321 # though, which does catch some bad symbols but isn't as heavy-handed
11322 # as -z defs.
11323 no_undefined_flag='$wl-z,text'
11324 allow_undefined_flag='$wl-z,nodefs'
11325 archive_cmds_need_lc=no
11326 hardcode_shlibpath_var=no
11327 hardcode_libdir_flag_spec='$wl-R,$libdir'
11328 hardcode_libdir_separator=':'
11329 link_all_deplibs=yes
11330 export_dynamic_flag_spec='$wl-Bexport'
11331 runpath_var='LD_RUN_PATH'
11332
11333 if test yes = "$GCC"; then
11334 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 else
11337 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 fi
11340 ;;
11341
11342 uts4*)
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_libdir_flag_spec='-L$libdir'
11345 hardcode_shlibpath_var=no
11346 ;;
11347
11348 *)
11349 ld_shlibs=no
11350 ;;
11351 esac
11352
11353 if test sni = "$host_vendor"; then
11354 case $host in
11355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11356 export_dynamic_flag_spec='$wl-Blargedynsym'
11357 ;;
11358 esac
11359 fi
11360 fi
11361
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11363 $as_echo "$ld_shlibs" >&6; }
11364 test no = "$ld_shlibs" && can_build_shared=no
11365
11366 with_gnu_ld=$with_gnu_ld
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382 #
11383 # Do we need to explicitly link libc?
11384 #
11385 case "x$archive_cmds_need_lc" in
11386 x|xyes)
11387 # Assume -lc should be added
11388 archive_cmds_need_lc=yes
11389
11390 if test yes,yes = "$GCC,$enable_shared"; then
11391 case $archive_cmds in
11392 *'~'*)
11393 # FIXME: we may have to deal with multi-command sequences.
11394 ;;
11395 '$CC '*)
11396 # Test whether the compiler implicitly links with -lc since on some
11397 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11398 # to ld, don't add -lc before -lgcc.
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11400 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11401 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 $RM -r conftest*
11405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11406
11407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11408 (eval $ac_compile) 2>&5
11409 ac_status=$?
11410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11411 test $ac_status = 0; } 2>conftest.err; then
11412 soname=conftest
11413 lib=conftest
11414 libobjs=conftest.$ac_objext
11415 deplibs=
11416 wl=$lt_prog_compiler_wl
11417 pic_flag=$lt_prog_compiler_pic
11418 compiler_flags=-v
11419 linker_flags=-v
11420 verstring=
11421 output_objdir=.
11422 libname=conftest
11423 lt_save_allow_undefined_flag=$allow_undefined_flag
11424 allow_undefined_flag=
11425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11426 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11427 ac_status=$?
11428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11429 test $ac_status = 0; }
11430 then
11431 lt_cv_archive_cmds_need_lc=no
11432 else
11433 lt_cv_archive_cmds_need_lc=yes
11434 fi
11435 allow_undefined_flag=$lt_save_allow_undefined_flag
11436 else
11437 cat conftest.err 1>&5
11438 fi
11439 $RM -r conftest*
11440
11441 fi
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11443 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11444 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11445 ;;
11446 esac
11447 fi
11448 ;;
11449 esac
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11603 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11604
11605 if test yes = "$GCC"; then
11606 case $host_os in
11607 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11608 *) lt_awk_arg='/^libraries:/' ;;
11609 esac
11610 case $host_os in
11611 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11612 *) lt_sed_strip_eq='s|=/|/|g' ;;
11613 esac
11614 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11615 case $lt_search_path_spec in
11616 *\;*)
11617 # if the path contains ";" then we assume it to be the separator
11618 # otherwise default to the standard path separator (i.e. ":") - it is
11619 # assumed that no part of a normal pathname contains ";" but that should
11620 # okay in the real world where ";" in dirpaths is itself problematic.
11621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11622 ;;
11623 *)
11624 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11625 ;;
11626 esac
11627 # Ok, now we have the path, separated by spaces, we can step through it
11628 # and add multilib dir if necessary...
11629 lt_tmp_lt_search_path_spec=
11630 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11631 # ...but if some path component already ends with the multilib dir we assume
11632 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11633 case "$lt_multi_os_dir; $lt_search_path_spec " in
11634 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11635 lt_multi_os_dir=
11636 ;;
11637 esac
11638 for lt_sys_path in $lt_search_path_spec; do
11639 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11641 elif test -n "$lt_multi_os_dir"; then
11642 test -d "$lt_sys_path" && \
11643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11644 fi
11645 done
11646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11647 BEGIN {RS = " "; FS = "/|\n";} {
11648 lt_foo = "";
11649 lt_count = 0;
11650 for (lt_i = NF; lt_i > 0; lt_i--) {
11651 if ($lt_i != "" && $lt_i != ".") {
11652 if ($lt_i == "..") {
11653 lt_count++;
11654 } else {
11655 if (lt_count == 0) {
11656 lt_foo = "/" $lt_i lt_foo;
11657 } else {
11658 lt_count--;
11659 }
11660 }
11661 }
11662 }
11663 if (lt_foo != "") { lt_freq[lt_foo]++; }
11664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11665 }'`
11666 # AWK program above erroneously prepends '/' to C:/dos/paths
11667 # for these hosts.
11668 case $host_os in
11669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11670 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11671 esac
11672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11673 else
11674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675 fi
11676 library_names_spec=
11677 libname_spec='lib$name'
11678 soname_spec=
11679 shrext_cmds=.so
11680 postinstall_cmds=
11681 postuninstall_cmds=
11682 finish_cmds=
11683 finish_eval=
11684 shlibpath_var=
11685 shlibpath_overrides_runpath=unknown
11686 version_type=none
11687 dynamic_linker="$host_os ld.so"
11688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11689 need_lib_prefix=unknown
11690 hardcode_into_libs=no
11691
11692 # when you set need_version to no, make sure it does not cause -set_version
11693 # flags to be left without arguments
11694 need_version=unknown
11695
11696
11697
11698 case $host_os in
11699 aix3*)
11700 version_type=linux # correct to gnu/linux during the next big refactor
11701 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11702 shlibpath_var=LIBPATH
11703
11704 # AIX 3 has no versioning support, so we append a major version to the name.
11705 soname_spec='$libname$release$shared_ext$major'
11706 ;;
11707
11708 aix[4-9]*)
11709 version_type=linux # correct to gnu/linux during the next big refactor
11710 need_lib_prefix=no
11711 need_version=no
11712 hardcode_into_libs=yes
11713 if test ia64 = "$host_cpu"; then
11714 # AIX 5 supports IA64
11715 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 else
11718 # With GCC up to 2.95.x, collect2 would create an import file
11719 # for dependence libraries. The import file would start with
11720 # the line '#! .'. This would cause the generated library to
11721 # depend on '.', always an invalid library. This was fixed in
11722 # development snapshots of GCC prior to 3.0.
11723 case $host_os in
11724 aix4 | aix4.[01] | aix4.[01].*)
11725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11726 echo ' yes '
11727 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11728 :
11729 else
11730 can_build_shared=no
11731 fi
11732 ;;
11733 esac
11734 # Using Import Files as archive members, it is possible to support
11735 # filename-based versioning of shared library archives on AIX. While
11736 # this would work for both with and without runtime linking, it will
11737 # prevent static linking of such archives. So we do filename-based
11738 # shared library versioning with .so extension only, which is used
11739 # when both runtime linking and shared linking is enabled.
11740 # Unfortunately, runtime linking may impact performance, so we do
11741 # not want this to be the default eventually. Also, we use the
11742 # versioned .so libs for executables only if there is the -brtl
11743 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11744 # To allow for filename-based versioning support, we need to create
11745 # libNAME.so.V as an archive file, containing:
11746 # *) an Import File, referring to the versioned filename of the
11747 # archive as well as the shared archive member, telling the
11748 # bitwidth (32 or 64) of that shared object, and providing the
11749 # list of exported symbols of that shared object, eventually
11750 # decorated with the 'weak' keyword
11751 # *) the shared object with the F_LOADONLY flag set, to really avoid
11752 # it being seen by the linker.
11753 # At run time we better use the real file rather than another symlink,
11754 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11755
11756 case $with_aix_soname,$aix_use_runtimelinking in
11757 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11758 # soname into executable. Probably we can add versioning support to
11759 # collect2, so additional links can be useful in future.
11760 aix,yes) # traditional libtool
11761 dynamic_linker='AIX unversionable lib.so'
11762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11763 # instead of lib<name>.a to let people know that these are not
11764 # typical AIX shared libraries.
11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11766 ;;
11767 aix,no) # traditional AIX only
11768 dynamic_linker='AIX lib.a(lib.so.V)'
11769 # We preserve .a as extension for shared libraries through AIX4.2
11770 # and later when we are not doing run time linking.
11771 library_names_spec='$libname$release.a $libname.a'
11772 soname_spec='$libname$release$shared_ext$major'
11773 ;;
11774 svr4,*) # full svr4 only
11775 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11776 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11777 # We do not specify a path in Import Files, so LIBPATH fires.
11778 shlibpath_overrides_runpath=yes
11779 ;;
11780 *,yes) # both, prefer svr4
11781 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11782 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11783 # unpreferred sharedlib libNAME.a needs extra handling
11784 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11785 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11786 # We do not specify a path in Import Files, so LIBPATH fires.
11787 shlibpath_overrides_runpath=yes
11788 ;;
11789 *,no) # both, prefer aix
11790 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11791 library_names_spec='$libname$release.a $libname.a'
11792 soname_spec='$libname$release$shared_ext$major'
11793 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11794 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11795 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11796 ;;
11797 esac
11798 shlibpath_var=LIBPATH
11799 fi
11800 ;;
11801
11802 amigaos*)
11803 case $host_cpu in
11804 powerpc)
11805 # Since July 2007 AmigaOS4 officially supports .so libraries.
11806 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808 ;;
11809 m68k)
11810 library_names_spec='$libname.ixlibrary $libname.a'
11811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11812 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11813 ;;
11814 esac
11815 ;;
11816
11817 beos*)
11818 library_names_spec='$libname$shared_ext'
11819 dynamic_linker="$host_os ld.so"
11820 shlibpath_var=LIBRARY_PATH
11821 ;;
11822
11823 bsdi[45]*)
11824 version_type=linux # correct to gnu/linux during the next big refactor
11825 need_version=no
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11827 soname_spec='$libname$release$shared_ext$major'
11828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11832 # the default ld.so.conf also contains /usr/contrib/lib and
11833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11834 # libtool to hard-code these into programs
11835 ;;
11836
11837 cygwin* | mingw* | pw32* | cegcc*)
11838 version_type=windows
11839 shrext_cmds=.dll
11840 need_version=no
11841 need_lib_prefix=no
11842
11843 case $GCC,$cc_basename in
11844 yes,*)
11845 # gcc
11846 library_names_spec='$libname.dll.a'
11847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11848 postinstall_cmds='base_file=`basename \$file`~
11849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11850 dldir=$destdir/`dirname \$dlpath`~
11851 test -d \$dldir || mkdir -p \$dldir~
11852 $install_prog $dir/$dlname \$dldir/$dlname~
11853 chmod a+x \$dldir/$dlname~
11854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11856 fi'
11857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11858 dlpath=$dir/\$dldll~
11859 $RM \$dlpath'
11860 shlibpath_overrides_runpath=yes
11861
11862 case $host_os in
11863 cygwin*)
11864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11865 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11866
11867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11868 ;;
11869 mingw* | cegcc*)
11870 # MinGW DLLs use traditional 'lib' prefix
11871 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11872 ;;
11873 pw32*)
11874 # pw32 DLLs use 'pw' prefix rather than 'lib'
11875 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11876 ;;
11877 esac
11878 dynamic_linker='Win32 ld.exe'
11879 ;;
11880
11881 *,cl*)
11882 # Native MSVC
11883 libname_spec='$name'
11884 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11885 library_names_spec='$libname.dll.lib'
11886
11887 case $build_os in
11888 mingw*)
11889 sys_lib_search_path_spec=
11890 lt_save_ifs=$IFS
11891 IFS=';'
11892 for lt_path in $LIB
11893 do
11894 IFS=$lt_save_ifs
11895 # Let DOS variable expansion print the short 8.3 style file name.
11896 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11897 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11898 done
11899 IFS=$lt_save_ifs
11900 # Convert to MSYS style.
11901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11902 ;;
11903 cygwin*)
11904 # Convert to unix form, then to dos form, then back to unix form
11905 # but this time dos style (no spaces!) so that the unix form looks
11906 # like /cygdrive/c/PROGRA~1:/cygdr...
11907 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11908 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11909 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11910 ;;
11911 *)
11912 sys_lib_search_path_spec=$LIB
11913 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11914 # It is most probably a Windows format PATH.
11915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11916 else
11917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11918 fi
11919 # FIXME: find the short name or the path components, as spaces are
11920 # common. (e.g. "Program Files" -> "PROGRA~1")
11921 ;;
11922 esac
11923
11924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11925 postinstall_cmds='base_file=`basename \$file`~
11926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11927 dldir=$destdir/`dirname \$dlpath`~
11928 test -d \$dldir || mkdir -p \$dldir~
11929 $install_prog $dir/$dlname \$dldir/$dlname'
11930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11931 dlpath=$dir/\$dldll~
11932 $RM \$dlpath'
11933 shlibpath_overrides_runpath=yes
11934 dynamic_linker='Win32 link.exe'
11935 ;;
11936
11937 *)
11938 # Assume MSVC wrapper
11939 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11940 dynamic_linker='Win32 ld.exe'
11941 ;;
11942 esac
11943 # FIXME: first we should search . and the directory the executable is in
11944 shlibpath_var=PATH
11945 ;;
11946
11947 darwin* | rhapsody*)
11948 dynamic_linker="$host_os dyld"
11949 version_type=darwin
11950 need_lib_prefix=no
11951 need_version=no
11952 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11953 soname_spec='$libname$release$major$shared_ext'
11954 shlibpath_overrides_runpath=yes
11955 shlibpath_var=DYLD_LIBRARY_PATH
11956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11957
11958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11960 ;;
11961
11962 dgux*)
11963 version_type=linux # correct to gnu/linux during the next big refactor
11964 need_lib_prefix=no
11965 need_version=no
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 ;;
11970
11971 freebsd* | dragonfly*)
11972 # DragonFly does not have aout. When/if they implement a new
11973 # versioning mechanism, adjust this.
11974 if test -x /usr/bin/objformat; then
11975 objformat=`/usr/bin/objformat`
11976 else
11977 case $host_os in
11978 freebsd[23].*) objformat=aout ;;
11979 *) objformat=elf ;;
11980 esac
11981 fi
11982 version_type=freebsd-$objformat
11983 case $version_type in
11984 freebsd-elf*)
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 soname_spec='$libname$release$shared_ext$major'
11987 need_version=no
11988 need_lib_prefix=no
11989 ;;
11990 freebsd-*)
11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11992 need_version=yes
11993 ;;
11994 esac
11995 shlibpath_var=LD_LIBRARY_PATH
11996 case $host_os in
11997 freebsd2.*)
11998 shlibpath_overrides_runpath=yes
11999 ;;
12000 freebsd3.[01]* | freebsdelf3.[01]*)
12001 shlibpath_overrides_runpath=yes
12002 hardcode_into_libs=yes
12003 ;;
12004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
12008 ;;
12009 *) # from 4.6 on, and DragonFly
12010 shlibpath_overrides_runpath=yes
12011 hardcode_into_libs=yes
12012 ;;
12013 esac
12014 ;;
12015
12016 haiku*)
12017 version_type=linux # correct to gnu/linux during the next big refactor
12018 need_lib_prefix=no
12019 need_version=no
12020 dynamic_linker="$host_os runtime_loader"
12021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12022 soname_spec='$libname$release$shared_ext$major'
12023 shlibpath_var=LIBRARY_PATH
12024 shlibpath_overrides_runpath=no
12025 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12026 hardcode_into_libs=yes
12027 ;;
12028
12029 hpux9* | hpux10* | hpux11*)
12030 # Give a soname corresponding to the major version so that dld.sl refuses to
12031 # link against other versions.
12032 version_type=sunos
12033 need_lib_prefix=no
12034 need_version=no
12035 case $host_cpu in
12036 ia64*)
12037 shrext_cmds='.so'
12038 hardcode_into_libs=yes
12039 dynamic_linker="$host_os dld.so"
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12043 soname_spec='$libname$release$shared_ext$major'
12044 if test 32 = "$HPUX_IA64_MODE"; then
12045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12046 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12047 else
12048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12049 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12050 fi
12051 ;;
12052 hppa*64*)
12053 shrext_cmds='.sl'
12054 hardcode_into_libs=yes
12055 dynamic_linker="$host_os dld.sl"
12056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059 soname_spec='$libname$release$shared_ext$major'
12060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062 ;;
12063 *)
12064 shrext_cmds='.sl'
12065 dynamic_linker="$host_os dld.sl"
12066 shlibpath_var=SHLIB_PATH
12067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 soname_spec='$libname$release$shared_ext$major'
12070 ;;
12071 esac
12072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12073 postinstall_cmds='chmod 555 $lib'
12074 # or fails outright, so override atomically:
12075 install_override_mode=555
12076 ;;
12077
12078 interix[3-9]*)
12079 version_type=linux # correct to gnu/linux during the next big refactor
12080 need_lib_prefix=no
12081 need_version=no
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
12084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 shlibpath_overrides_runpath=no
12087 hardcode_into_libs=yes
12088 ;;
12089
12090 irix5* | irix6* | nonstopux*)
12091 case $host_os in
12092 nonstopux*) version_type=nonstopux ;;
12093 *)
12094 if test yes = "$lt_cv_prog_gnu_ld"; then
12095 version_type=linux # correct to gnu/linux during the next big refactor
12096 else
12097 version_type=irix
12098 fi ;;
12099 esac
12100 need_lib_prefix=no
12101 need_version=no
12102 soname_spec='$libname$release$shared_ext$major'
12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12104 case $host_os in
12105 irix5* | nonstopux*)
12106 libsuff= shlibsuff=
12107 ;;
12108 *)
12109 case $LD in # libtool.m4 will add one of these switches to LD
12110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12111 libsuff= shlibsuff= libmagic=32-bit;;
12112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12113 libsuff=32 shlibsuff=N32 libmagic=N32;;
12114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12116 *) libsuff= shlibsuff= libmagic=never-match;;
12117 esac
12118 ;;
12119 esac
12120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12121 shlibpath_overrides_runpath=no
12122 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12123 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12124 hardcode_into_libs=yes
12125 ;;
12126
12127 # No shared lib support for Linux oldld, aout, or coff.
12128 linux*oldld* | linux*aout* | linux*coff*)
12129 dynamic_linker=no
12130 ;;
12131
12132 linux*android*)
12133 version_type=none # Android doesn't support versioned libraries.
12134 need_lib_prefix=no
12135 need_version=no
12136 library_names_spec='$libname$release$shared_ext'
12137 soname_spec='$libname$release$shared_ext'
12138 finish_cmds=
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=yes
12141
12142 # This implies no fast_install, which is unacceptable.
12143 # Some rework will be needed to allow for fast_install
12144 # before this can be enabled.
12145 hardcode_into_libs=yes
12146
12147 dynamic_linker='Android linker'
12148 # Don't embed -rpath directories since the linker doesn't support them.
12149 hardcode_libdir_flag_spec='-L$libdir'
12150 ;;
12151
12152 # This must be glibc/ELF.
12153 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12154 version_type=linux # correct to gnu/linux during the next big refactor
12155 need_lib_prefix=no
12156 need_version=no
12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12158 soname_spec='$libname$release$shared_ext$major'
12159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 shlibpath_overrides_runpath=no
12162
12163 # Some binutils ld are patched to set DT_RUNPATH
12164 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 lt_cv_shlibpath_overrides_runpath=no
12168 save_LDFLAGS=$LDFLAGS
12169 save_libdir=$libdir
12170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174
12175 int
12176 main ()
12177 {
12178
12179 ;
12180 return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12185 lt_cv_shlibpath_overrides_runpath=yes
12186 fi
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LDFLAGS=$save_LDFLAGS
12191 libdir=$save_libdir
12192
12193 fi
12194
12195 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12196
12197 # This implies no fast_install, which is unacceptable.
12198 # Some rework will be needed to allow for fast_install
12199 # before this can be enabled.
12200 hardcode_into_libs=yes
12201
12202 # Ideally, we could use ldconfig to report *all* directores which are
12203 # searched for libraries, however this is still not possible. Aside from not
12204 # being certain /sbin/ldconfig is available, command
12205 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12206 # even though it is searched at run-time. Try to do the best guess by
12207 # appending ld.so.conf contents (and includes) to the search path.
12208 if test -f /etc/ld.so.conf; then
12209 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' ' '`
12210 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12211 fi
12212
12213 # We used to test for /lib/ld.so.1 and disable shared libraries on
12214 # powerpc, because MkLinux only supported shared libraries with the
12215 # GNU dynamic linker. Since this was broken with cross compilers,
12216 # most powerpc-linux boxes support dynamic linking these days and
12217 # people can always --disable-shared, the test was removed, and we
12218 # assume the GNU/Linux dynamic linker is in use.
12219 dynamic_linker='GNU/Linux ld.so'
12220 ;;
12221
12222 netbsd*)
12223 version_type=sunos
12224 need_lib_prefix=no
12225 need_version=no
12226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12229 dynamic_linker='NetBSD (a.out) ld.so'
12230 else
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232 soname_spec='$libname$release$shared_ext$major'
12233 dynamic_linker='NetBSD ld.elf_so'
12234 fi
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=yes
12237 hardcode_into_libs=yes
12238 ;;
12239
12240 newsos6)
12241 version_type=linux # correct to gnu/linux during the next big refactor
12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243 shlibpath_var=LD_LIBRARY_PATH
12244 shlibpath_overrides_runpath=yes
12245 ;;
12246
12247 *nto* | *qnx*)
12248 version_type=qnx
12249 need_lib_prefix=no
12250 need_version=no
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext$major'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=no
12255 hardcode_into_libs=yes
12256 dynamic_linker='ldqnx.so'
12257 ;;
12258
12259 openbsd* | bitrig*)
12260 version_type=sunos
12261 sys_lib_dlsearch_path_spec=/usr/lib
12262 need_lib_prefix=no
12263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12264 need_version=no
12265 else
12266 need_version=yes
12267 fi
12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12272 ;;
12273
12274 os2*)
12275 libname_spec='$name'
12276 version_type=windows
12277 shrext_cmds=.dll
12278 need_version=no
12279 need_lib_prefix=no
12280 # OS/2 can only load a DLL with a base name of 8 characters or less.
12281 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12282 v=$($ECHO $release$versuffix | tr -d .-);
12283 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12284 $ECHO $n$v`$shared_ext'
12285 library_names_spec='${libname}_dll.$libext'
12286 dynamic_linker='OS/2 ld.exe'
12287 shlibpath_var=BEGINLIBPATH
12288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12290 postinstall_cmds='base_file=`basename \$file`~
12291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12292 dldir=$destdir/`dirname \$dlpath`~
12293 test -d \$dldir || mkdir -p \$dldir~
12294 $install_prog $dir/$dlname \$dldir/$dlname~
12295 chmod a+x \$dldir/$dlname~
12296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12298 fi'
12299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12300 dlpath=$dir/\$dldll~
12301 $RM \$dlpath'
12302 ;;
12303
12304 osf3* | osf4* | osf5*)
12305 version_type=osf
12306 need_lib_prefix=no
12307 need_version=no
12308 soname_spec='$libname$release$shared_ext$major'
12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12313 ;;
12314
12315 rdos*)
12316 dynamic_linker=no
12317 ;;
12318
12319 solaris*)
12320 version_type=linux # correct to gnu/linux during the next big refactor
12321 need_lib_prefix=no
12322 need_version=no
12323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324 soname_spec='$libname$release$shared_ext$major'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 shlibpath_overrides_runpath=yes
12327 hardcode_into_libs=yes
12328 # ldd complains unless libraries are executable
12329 postinstall_cmds='chmod +x $lib'
12330 ;;
12331
12332 sunos4*)
12333 version_type=sunos
12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes
12338 if test yes = "$with_gnu_ld"; then
12339 need_lib_prefix=no
12340 fi
12341 need_version=yes
12342 ;;
12343
12344 sysv4 | sysv4.3*)
12345 version_type=linux # correct to gnu/linux during the next big refactor
12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12347 soname_spec='$libname$release$shared_ext$major'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 case $host_vendor in
12350 sni)
12351 shlibpath_overrides_runpath=no
12352 need_lib_prefix=no
12353 runpath_var=LD_RUN_PATH
12354 ;;
12355 siemens)
12356 need_lib_prefix=no
12357 ;;
12358 motorola)
12359 need_lib_prefix=no
12360 need_version=no
12361 shlibpath_overrides_runpath=no
12362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12363 ;;
12364 esac
12365 ;;
12366
12367 sysv4*MP*)
12368 if test -d /usr/nec; then
12369 version_type=linux # correct to gnu/linux during the next big refactor
12370 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12371 soname_spec='$libname$shared_ext.$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 fi
12374 ;;
12375
12376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12377 version_type=sco
12378 need_lib_prefix=no
12379 need_version=no
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=yes
12384 hardcode_into_libs=yes
12385 if test yes = "$with_gnu_ld"; then
12386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12387 else
12388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12389 case $host_os in
12390 sco3.2v5*)
12391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12392 ;;
12393 esac
12394 fi
12395 sys_lib_dlsearch_path_spec='/usr/lib'
12396 ;;
12397
12398 tpf*)
12399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12400 version_type=linux # correct to gnu/linux during the next big refactor
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=no
12406 hardcode_into_libs=yes
12407 ;;
12408
12409 uts4*)
12410 version_type=linux # correct to gnu/linux during the next big refactor
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12412 soname_spec='$libname$release$shared_ext$major'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 ;;
12415
12416 *)
12417 dynamic_linker=no
12418 ;;
12419 esac
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12421 $as_echo "$dynamic_linker" >&6; }
12422 test no = "$dynamic_linker" && can_build_shared=no
12423
12424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12425 if test yes = "$GCC"; then
12426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12427 fi
12428
12429 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12430 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12431 fi
12432
12433 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12434 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12435 fi
12436
12437 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12438 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12439
12440 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12441 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12442
12443 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12444 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12543 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12544 hardcode_action=
12545 if test -n "$hardcode_libdir_flag_spec" ||
12546 test -n "$runpath_var" ||
12547 test yes = "$hardcode_automatic"; then
12548
12549 # We can hardcode non-existent directories.
12550 if test no != "$hardcode_direct" &&
12551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12552 # have to relink, otherwise we might link with an installed library
12553 # when we should be linking with a yet-to-be-installed one
12554 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12555 test no != "$hardcode_minus_L"; then
12556 # Linking always hardcodes the temporary library directory.
12557 hardcode_action=relink
12558 else
12559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12560 hardcode_action=immediate
12561 fi
12562 else
12563 # We cannot hardcode anything, or else we can only hardcode existing
12564 # directories.
12565 hardcode_action=unsupported
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12568 $as_echo "$hardcode_action" >&6; }
12569
12570 if test relink = "$hardcode_action" ||
12571 test yes = "$inherit_rpath"; then
12572 # Fast installation is not supported
12573 enable_fast_install=no
12574 elif test yes = "$shlibpath_overrides_runpath" ||
12575 test no = "$enable_shared"; then
12576 # Fast installation is not necessary
12577 enable_fast_install=needless
12578 fi
12579
12580
12581
12582
12583
12584
12585 if test yes != "$enable_dlopen"; then
12586 enable_dlopen=unknown
12587 enable_dlopen_self=unknown
12588 enable_dlopen_self_static=unknown
12589 else
12590 lt_cv_dlopen=no
12591 lt_cv_dlopen_libs=
12592
12593 case $host_os in
12594 beos*)
12595 lt_cv_dlopen=load_add_on
12596 lt_cv_dlopen_libs=
12597 lt_cv_dlopen_self=yes
12598 ;;
12599
12600 mingw* | pw32* | cegcc*)
12601 lt_cv_dlopen=LoadLibrary
12602 lt_cv_dlopen_libs=
12603 ;;
12604
12605 cygwin*)
12606 lt_cv_dlopen=dlopen
12607 lt_cv_dlopen_libs=
12608 ;;
12609
12610 darwin*)
12611 # if libdl is installed we need to link against it
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12614 if ${ac_cv_lib_dl_dlopen+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-ldl $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char dlopen ();
12629 int
12630 main ()
12631 {
12632 return dlopen ();
12633 ;
12634 return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 ac_cv_lib_dl_dlopen=yes
12639 else
12640 ac_cv_lib_dl_dlopen=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12650 else
12651
12652 lt_cv_dlopen=dyld
12653 lt_cv_dlopen_libs=
12654 lt_cv_dlopen_self=yes
12655
12656 fi
12657
12658 ;;
12659
12660 tpf*)
12661 # Don't try to run any link tests for TPF. We know it's impossible
12662 # because TPF is a cross-compiler, and we know how we open DSOs.
12663 lt_cv_dlopen=dlopen
12664 lt_cv_dlopen_libs=
12665 lt_cv_dlopen_self=no
12666 ;;
12667
12668 *)
12669 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12670 if test "x$ac_cv_func_shl_load" = xyes; then :
12671 lt_cv_dlopen=shl_load
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12674 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12675 if ${ac_cv_lib_dld_shl_load+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 ac_check_lib_save_LIBS=$LIBS
12679 LIBS="-ldld $LIBS"
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char shl_load ();
12690 int
12691 main ()
12692 {
12693 return shl_load ();
12694 ;
12695 return 0;
12696 }
12697 _ACEOF
12698 if ac_fn_c_try_link "$LINENO"; then :
12699 ac_cv_lib_dld_shl_load=yes
12700 else
12701 ac_cv_lib_dld_shl_load=no
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12708 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12709 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12710 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12711 else
12712 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12713 if test "x$ac_cv_func_dlopen" = xyes; then :
12714 lt_cv_dlopen=dlopen
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12717 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12718 if ${ac_cv_lib_dl_dlopen+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 ac_check_lib_save_LIBS=$LIBS
12722 LIBS="-ldl $LIBS"
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729 #ifdef __cplusplus
12730 extern "C"
12731 #endif
12732 char dlopen ();
12733 int
12734 main ()
12735 {
12736 return dlopen ();
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_lib_dl_dlopen=yes
12743 else
12744 ac_cv_lib_dl_dlopen=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748 LIBS=$ac_check_lib_save_LIBS
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12751 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12752 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12753 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12756 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12757 if ${ac_cv_lib_svld_dlopen+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 ac_check_lib_save_LIBS=$LIBS
12761 LIBS="-lsvld $LIBS"
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764
12765 /* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12768 #ifdef __cplusplus
12769 extern "C"
12770 #endif
12771 char dlopen ();
12772 int
12773 main ()
12774 {
12775 return dlopen ();
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 if ac_fn_c_try_link "$LINENO"; then :
12781 ac_cv_lib_svld_dlopen=yes
12782 else
12783 ac_cv_lib_svld_dlopen=no
12784 fi
12785 rm -f core conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12787 LIBS=$ac_check_lib_save_LIBS
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12790 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12791 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12792 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12795 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12796 if ${ac_cv_lib_dld_dld_link+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 ac_check_lib_save_LIBS=$LIBS
12800 LIBS="-ldld $LIBS"
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807 #ifdef __cplusplus
12808 extern "C"
12809 #endif
12810 char dld_link ();
12811 int
12812 main ()
12813 {
12814 return dld_link ();
12815 ;
12816 return 0;
12817 }
12818 _ACEOF
12819 if ac_fn_c_try_link "$LINENO"; then :
12820 ac_cv_lib_dld_dld_link=yes
12821 else
12822 ac_cv_lib_dld_dld_link=no
12823 fi
12824 rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12826 LIBS=$ac_check_lib_save_LIBS
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12829 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12830 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12831 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12832 fi
12833
12834
12835 fi
12836
12837
12838 fi
12839
12840
12841 fi
12842
12843
12844 fi
12845
12846
12847 fi
12848
12849 ;;
12850 esac
12851
12852 if test no = "$lt_cv_dlopen"; then
12853 enable_dlopen=no
12854 else
12855 enable_dlopen=yes
12856 fi
12857
12858 case $lt_cv_dlopen in
12859 dlopen)
12860 save_CPPFLAGS=$CPPFLAGS
12861 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12862
12863 save_LDFLAGS=$LDFLAGS
12864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12865
12866 save_LIBS=$LIBS
12867 LIBS="$lt_cv_dlopen_libs $LIBS"
12868
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12870 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12871 if ${lt_cv_dlopen_self+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 if test yes = "$cross_compiling"; then :
12875 lt_cv_dlopen_self=cross
12876 else
12877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12878 lt_status=$lt_dlunknown
12879 cat > conftest.$ac_ext <<_LT_EOF
12880 #line $LINENO "configure"
12881 #include "confdefs.h"
12882
12883 #if HAVE_DLFCN_H
12884 #include <dlfcn.h>
12885 #endif
12886
12887 #include <stdio.h>
12888
12889 #ifdef RTLD_GLOBAL
12890 # define LT_DLGLOBAL RTLD_GLOBAL
12891 #else
12892 # ifdef DL_GLOBAL
12893 # define LT_DLGLOBAL DL_GLOBAL
12894 # else
12895 # define LT_DLGLOBAL 0
12896 # endif
12897 #endif
12898
12899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12900 find out it does not work in some platform. */
12901 #ifndef LT_DLLAZY_OR_NOW
12902 # ifdef RTLD_LAZY
12903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12904 # else
12905 # ifdef DL_LAZY
12906 # define LT_DLLAZY_OR_NOW DL_LAZY
12907 # else
12908 # ifdef RTLD_NOW
12909 # define LT_DLLAZY_OR_NOW RTLD_NOW
12910 # else
12911 # ifdef DL_NOW
12912 # define LT_DLLAZY_OR_NOW DL_NOW
12913 # else
12914 # define LT_DLLAZY_OR_NOW 0
12915 # endif
12916 # endif
12917 # endif
12918 # endif
12919 #endif
12920
12921 /* When -fvisibility=hidden is used, assume the code has been annotated
12922 correspondingly for the symbols needed. */
12923 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12924 int fnord () __attribute__((visibility("default")));
12925 #endif
12926
12927 int fnord () { return 42; }
12928 int main ()
12929 {
12930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12931 int status = $lt_dlunknown;
12932
12933 if (self)
12934 {
12935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12936 else
12937 {
12938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12939 else puts (dlerror ());
12940 }
12941 /* dlclose (self); */
12942 }
12943 else
12944 puts (dlerror ());
12945
12946 return status;
12947 }
12948 _LT_EOF
12949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12950 (eval $ac_link) 2>&5
12951 ac_status=$?
12952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12954 (./conftest; exit; ) >&5 2>/dev/null
12955 lt_status=$?
12956 case x$lt_status in
12957 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12958 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12959 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12960 esac
12961 else :
12962 # compilation failed
12963 lt_cv_dlopen_self=no
12964 fi
12965 fi
12966 rm -fr conftest*
12967
12968
12969 fi
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12971 $as_echo "$lt_cv_dlopen_self" >&6; }
12972
12973 if test yes = "$lt_cv_dlopen_self"; then
12974 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12976 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12977 if ${lt_cv_dlopen_self_static+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 if test yes = "$cross_compiling"; then :
12981 lt_cv_dlopen_self_static=cross
12982 else
12983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12984 lt_status=$lt_dlunknown
12985 cat > conftest.$ac_ext <<_LT_EOF
12986 #line $LINENO "configure"
12987 #include "confdefs.h"
12988
12989 #if HAVE_DLFCN_H
12990 #include <dlfcn.h>
12991 #endif
12992
12993 #include <stdio.h>
12994
12995 #ifdef RTLD_GLOBAL
12996 # define LT_DLGLOBAL RTLD_GLOBAL
12997 #else
12998 # ifdef DL_GLOBAL
12999 # define LT_DLGLOBAL DL_GLOBAL
13000 # else
13001 # define LT_DLGLOBAL 0
13002 # endif
13003 #endif
13004
13005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13006 find out it does not work in some platform. */
13007 #ifndef LT_DLLAZY_OR_NOW
13008 # ifdef RTLD_LAZY
13009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13010 # else
13011 # ifdef DL_LAZY
13012 # define LT_DLLAZY_OR_NOW DL_LAZY
13013 # else
13014 # ifdef RTLD_NOW
13015 # define LT_DLLAZY_OR_NOW RTLD_NOW
13016 # else
13017 # ifdef DL_NOW
13018 # define LT_DLLAZY_OR_NOW DL_NOW
13019 # else
13020 # define LT_DLLAZY_OR_NOW 0
13021 # endif
13022 # endif
13023 # endif
13024 # endif
13025 #endif
13026
13027 /* When -fvisibility=hidden is used, assume the code has been annotated
13028 correspondingly for the symbols needed. */
13029 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13030 int fnord () __attribute__((visibility("default")));
13031 #endif
13032
13033 int fnord () { return 42; }
13034 int main ()
13035 {
13036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13037 int status = $lt_dlunknown;
13038
13039 if (self)
13040 {
13041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13042 else
13043 {
13044 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13045 else puts (dlerror ());
13046 }
13047 /* dlclose (self); */
13048 }
13049 else
13050 puts (dlerror ());
13051
13052 return status;
13053 }
13054 _LT_EOF
13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13056 (eval $ac_link) 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13060 (./conftest; exit; ) >&5 2>/dev/null
13061 lt_status=$?
13062 case x$lt_status in
13063 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13064 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13065 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13066 esac
13067 else :
13068 # compilation failed
13069 lt_cv_dlopen_self_static=no
13070 fi
13071 fi
13072 rm -fr conftest*
13073
13074
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13077 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13078 fi
13079
13080 CPPFLAGS=$save_CPPFLAGS
13081 LDFLAGS=$save_LDFLAGS
13082 LIBS=$save_LIBS
13083 ;;
13084 esac
13085
13086 case $lt_cv_dlopen_self in
13087 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13088 *) enable_dlopen_self=unknown ;;
13089 esac
13090
13091 case $lt_cv_dlopen_self_static in
13092 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13093 *) enable_dlopen_self_static=unknown ;;
13094 esac
13095 fi
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113 striplib=
13114 old_striplib=
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13116 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13117 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13122 else
13123 # FIXME - insert some real tests, host_os isn't really good enough
13124 case $host_os in
13125 darwin*)
13126 if test -n "$STRIP"; then
13127 striplib="$STRIP -x"
13128 old_striplib="$STRIP -S"
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130 $as_echo "yes" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 fi
13135 ;;
13136 *)
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139 ;;
13140 esac
13141 fi
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154 # Report what library types will actually be built
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13156 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13158 $as_echo "$can_build_shared" >&6; }
13159
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13161 $as_echo_n "checking whether to build shared libraries... " >&6; }
13162 test no = "$can_build_shared" && enable_shared=no
13163
13164 # On AIX, shared libraries and static libraries use the same namespace, and
13165 # are all built from PIC.
13166 case $host_os in
13167 aix3*)
13168 test yes = "$enable_shared" && enable_static=no
13169 if test -n "$RANLIB"; then
13170 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13171 postinstall_cmds='$RANLIB $lib'
13172 fi
13173 ;;
13174
13175 aix[4-9]*)
13176 if test ia64 != "$host_cpu"; then
13177 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13178 yes,aix,yes) ;; # shared object as lib.so file only
13179 yes,svr4,*) ;; # shared object as lib.so archive member only
13180 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13181 esac
13182 fi
13183 ;;
13184 esac
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13186 $as_echo "$enable_shared" >&6; }
13187
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13189 $as_echo_n "checking whether to build static libraries... " >&6; }
13190 # Make sure either enable_shared or enable_static is yes.
13191 test yes = "$enable_shared" || enable_static=yes
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13193 $as_echo "$enable_static" >&6; }
13194
13195
13196
13197
13198 fi
13199 ac_ext=c
13200 ac_cpp='$CPP $CPPFLAGS'
13201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
13205 CC=$lt_save_CC
13206
13207 if test -n "$CXX" && ( test no != "$CXX" &&
13208 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13209 (test g++ != "$CXX"))); then
13210 ac_ext=cpp
13211 ac_cpp='$CXXCPP $CPPFLAGS'
13212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13216 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13217 if test -z "$CXXCPP"; then
13218 if ${ac_cv_prog_CXXCPP+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 # Double quotes because CXXCPP needs to be expanded
13222 for CXXCPP in "$CXX -E" "/lib/cpp"
13223 do
13224 ac_preproc_ok=false
13225 for ac_cxx_preproc_warn_flag in '' yes
13226 do
13227 # Use a header file that comes with gcc, so configuring glibc
13228 # with a fresh cross-compiler works.
13229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13230 # <limits.h> exists even on freestanding compilers.
13231 # On the NeXT, cc -E runs the code through the compiler's parser,
13232 # not just through cpp. "Syntax error" is here to catch this case.
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235 #ifdef __STDC__
13236 # include <limits.h>
13237 #else
13238 # include <assert.h>
13239 #endif
13240 Syntax error
13241 _ACEOF
13242 if ac_fn_cxx_try_cpp "$LINENO"; then :
13243
13244 else
13245 # Broken: fails on valid input.
13246 continue
13247 fi
13248 rm -f conftest.err conftest.i conftest.$ac_ext
13249
13250 # OK, works on sane cases. Now check whether nonexistent headers
13251 # can be detected and how.
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13254 #include <ac_nonexistent.h>
13255 _ACEOF
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13257 # Broken: success on invalid input.
13258 continue
13259 else
13260 # Passes both tests.
13261 ac_preproc_ok=:
13262 break
13263 fi
13264 rm -f conftest.err conftest.i conftest.$ac_ext
13265
13266 done
13267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13268 rm -f conftest.i conftest.err conftest.$ac_ext
13269 if $ac_preproc_ok; then :
13270 break
13271 fi
13272
13273 done
13274 ac_cv_prog_CXXCPP=$CXXCPP
13275
13276 fi
13277 CXXCPP=$ac_cv_prog_CXXCPP
13278 else
13279 ac_cv_prog_CXXCPP=$CXXCPP
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13282 $as_echo "$CXXCPP" >&6; }
13283 ac_preproc_ok=false
13284 for ac_cxx_preproc_warn_flag in '' yes
13285 do
13286 # Use a header file that comes with gcc, so configuring glibc
13287 # with a fresh cross-compiler works.
13288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13289 # <limits.h> exists even on freestanding compilers.
13290 # On the NeXT, cc -E runs the code through the compiler's parser,
13291 # not just through cpp. "Syntax error" is here to catch this case.
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 #ifdef __STDC__
13295 # include <limits.h>
13296 #else
13297 # include <assert.h>
13298 #endif
13299 Syntax error
13300 _ACEOF
13301 if ac_fn_cxx_try_cpp "$LINENO"; then :
13302
13303 else
13304 # Broken: fails on valid input.
13305 continue
13306 fi
13307 rm -f conftest.err conftest.i conftest.$ac_ext
13308
13309 # OK, works on sane cases. Now check whether nonexistent headers
13310 # can be detected and how.
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 #include <ac_nonexistent.h>
13314 _ACEOF
13315 if ac_fn_cxx_try_cpp "$LINENO"; then :
13316 # Broken: success on invalid input.
13317 continue
13318 else
13319 # Passes both tests.
13320 ac_preproc_ok=:
13321 break
13322 fi
13323 rm -f conftest.err conftest.i conftest.$ac_ext
13324
13325 done
13326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13327 rm -f conftest.i conftest.err conftest.$ac_ext
13328 if $ac_preproc_ok; then :
13329
13330 else
13331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13333 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13334 See \`config.log' for more details" "$LINENO" 5; }
13335 fi
13336
13337 ac_ext=c
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342
13343 else
13344 _lt_caught_CXX_error=yes
13345 fi
13346
13347 ac_ext=cpp
13348 ac_cpp='$CXXCPP $CPPFLAGS'
13349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13352
13353 archive_cmds_need_lc_CXX=no
13354 allow_undefined_flag_CXX=
13355 always_export_symbols_CXX=no
13356 archive_expsym_cmds_CXX=
13357 compiler_needs_object_CXX=no
13358 export_dynamic_flag_spec_CXX=
13359 hardcode_direct_CXX=no
13360 hardcode_direct_absolute_CXX=no
13361 hardcode_libdir_flag_spec_CXX=
13362 hardcode_libdir_separator_CXX=
13363 hardcode_minus_L_CXX=no
13364 hardcode_shlibpath_var_CXX=unsupported
13365 hardcode_automatic_CXX=no
13366 inherit_rpath_CXX=no
13367 module_cmds_CXX=
13368 module_expsym_cmds_CXX=
13369 link_all_deplibs_CXX=unknown
13370 old_archive_cmds_CXX=$old_archive_cmds
13371 reload_flag_CXX=$reload_flag
13372 reload_cmds_CXX=$reload_cmds
13373 no_undefined_flag_CXX=
13374 whole_archive_flag_spec_CXX=
13375 enable_shared_with_static_runtimes_CXX=no
13376
13377 # Source file extension for C++ test sources.
13378 ac_ext=cpp
13379
13380 # Object file extension for compiled C++ test sources.
13381 objext=o
13382 objext_CXX=$objext
13383
13384 # No sense in running all these tests if we already determined that
13385 # the CXX compiler isn't working. Some variables (like enable_shared)
13386 # are currently assumed to apply to all compilers on this platform,
13387 # and will be corrupted by setting them based on a non-working compiler.
13388 if test yes != "$_lt_caught_CXX_error"; then
13389 # Code to be used in simple compile tests
13390 lt_simple_compile_test_code="int some_variable = 0;"
13391
13392 # Code to be used in simple link tests
13393 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13394
13395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13396
13397
13398
13399
13400
13401
13402 # If no C compiler was specified, use CC.
13403 LTCC=${LTCC-"$CC"}
13404
13405 # If no C compiler flags were specified, use CFLAGS.
13406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13407
13408 # Allow CC to be a program name with arguments.
13409 compiler=$CC
13410
13411
13412 # save warnings/boilerplate of simple test code
13413 ac_outfile=conftest.$ac_objext
13414 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13415 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416 _lt_compiler_boilerplate=`cat conftest.err`
13417 $RM -r conftest*
13418
13419 ac_outfile=conftest.$ac_objext
13420 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13421 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13422 _lt_linker_boilerplate=`cat conftest.err`
13423 $RM -r conftest*
13424
13425
13426 # Allow CC to be a program name with arguments.
13427 lt_save_CC=$CC
13428 lt_save_CFLAGS=$CFLAGS
13429 lt_save_LD=$LD
13430 lt_save_GCC=$GCC
13431 GCC=$GXX
13432 lt_save_with_gnu_ld=$with_gnu_ld
13433 lt_save_path_LD=$lt_cv_path_LD
13434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13436 else
13437 $as_unset lt_cv_prog_gnu_ld
13438 fi
13439 if test -n "${lt_cv_path_LDCXX+set}"; then
13440 lt_cv_path_LD=$lt_cv_path_LDCXX
13441 else
13442 $as_unset lt_cv_path_LD
13443 fi
13444 test -z "${LDCXX+set}" || LD=$LDCXX
13445 CC=${CXX-"c++"}
13446 CFLAGS=$CXXFLAGS
13447 compiler=$CC
13448 compiler_CXX=$CC
13449 func_cc_basename $compiler
13450 cc_basename=$func_cc_basename_result
13451
13452
13453 if test -n "$compiler"; then
13454 # We don't want -fno-exception when compiling C++ code, so set the
13455 # no_builtin_flag separately
13456 if test yes = "$GXX"; then
13457 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13458 else
13459 lt_prog_compiler_no_builtin_flag_CXX=
13460 fi
13461
13462 if test yes = "$GXX"; then
13463 # Set up default GNU C++ configuration
13464
13465
13466
13467 # Check whether --with-gnu-ld was given.
13468 if test "${with_gnu_ld+set}" = set; then :
13469 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13470 else
13471 with_gnu_ld=no
13472 fi
13473
13474 ac_prog=ld
13475 if test yes = "$GCC"; then
13476 # Check if gcc -print-prog-name=ld gives a path.
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13478 $as_echo_n "checking for ld used by $CC... " >&6; }
13479 case $host in
13480 *-*-mingw*)
13481 # gcc leaves a trailing carriage return, which upsets mingw
13482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13483 *)
13484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13485 esac
13486 case $ac_prog in
13487 # Accept absolute paths.
13488 [\\/]* | ?:[\\/]*)
13489 re_direlt='/[^/][^/]*/\.\./'
13490 # Canonicalize the pathname of ld
13491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13494 done
13495 test -z "$LD" && LD=$ac_prog
13496 ;;
13497 "")
13498 # If it fails, then pretend we aren't using GCC.
13499 ac_prog=ld
13500 ;;
13501 *)
13502 # If it is relative, then search for the first ld in PATH.
13503 with_gnu_ld=unknown
13504 ;;
13505 esac
13506 elif test yes = "$with_gnu_ld"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13508 $as_echo_n "checking for GNU ld... " >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13511 $as_echo_n "checking for non-GNU ld... " >&6; }
13512 fi
13513 if ${lt_cv_path_LD+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 if test -z "$LD"; then
13517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13518 for ac_dir in $PATH; do
13519 IFS=$lt_save_ifs
13520 test -z "$ac_dir" && ac_dir=.
13521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13522 lt_cv_path_LD=$ac_dir/$ac_prog
13523 # Check to see if the program is GNU ld. I'd rather use --version,
13524 # but apparently some variants of GNU ld only accept -v.
13525 # Break only if it was the GNU/non-GNU ld that we prefer.
13526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13527 *GNU* | *'with BFD'*)
13528 test no != "$with_gnu_ld" && break
13529 ;;
13530 *)
13531 test yes != "$with_gnu_ld" && break
13532 ;;
13533 esac
13534 fi
13535 done
13536 IFS=$lt_save_ifs
13537 else
13538 lt_cv_path_LD=$LD # Let the user override the test with a path.
13539 fi
13540 fi
13541
13542 LD=$lt_cv_path_LD
13543 if test -n "$LD"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13545 $as_echo "$LD" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13552 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13553 if ${lt_cv_prog_gnu_ld+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13557 case `$LD -v 2>&1 </dev/null` in
13558 *GNU* | *'with BFD'*)
13559 lt_cv_prog_gnu_ld=yes
13560 ;;
13561 *)
13562 lt_cv_prog_gnu_ld=no
13563 ;;
13564 esac
13565 fi
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13567 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13568 with_gnu_ld=$lt_cv_prog_gnu_ld
13569
13570
13571
13572
13573
13574
13575
13576 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13577 # archiving commands below assume that GNU ld is being used.
13578 if test yes = "$with_gnu_ld"; then
13579 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13580 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'
13581
13582 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13583 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13584
13585 # If archive_cmds runs LD, not CC, wlarc should be empty
13586 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13587 # investigate it a little bit more. (MM)
13588 wlarc='$wl'
13589
13590 # ancient GNU ld didn't support --whole-archive et. al.
13591 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13592 $GREP 'no-whole-archive' > /dev/null; then
13593 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13594 else
13595 whole_archive_flag_spec_CXX=
13596 fi
13597 else
13598 with_gnu_ld=no
13599 wlarc=
13600
13601 # A generic and very simple default shared library creation
13602 # command for GNU C++ for the case where it uses the native
13603 # linker, instead of GNU ld. If possible, this setting should
13604 # overridden to take advantage of the native linker features on
13605 # the platform it is being used on.
13606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13607 fi
13608
13609 # Commands to make compiler produce verbose output that lists
13610 # what "hidden" libraries, object files and flags are used when
13611 # linking a shared library.
13612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13613
13614 else
13615 GXX=no
13616 with_gnu_ld=no
13617 wlarc=
13618 fi
13619
13620 # PORTME: fill in a description of your system's C++ link characteristics
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13622 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13623 ld_shlibs_CXX=yes
13624 case $host_os in
13625 aix3*)
13626 # FIXME: insert proper C++ library support
13627 ld_shlibs_CXX=no
13628 ;;
13629 aix[4-9]*)
13630 if test ia64 = "$host_cpu"; then
13631 # On IA64, the linker does run time linking by default, so we don't
13632 # have to do anything special.
13633 aix_use_runtimelinking=no
13634 exp_sym_flag='-Bexport'
13635 no_entry_flag=
13636 else
13637 aix_use_runtimelinking=no
13638
13639 # Test if we are trying to use run time linking or normal
13640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13641 # have runtime linking enabled, and use it for executables.
13642 # For shared libraries, we enable/disable runtime linking
13643 # depending on the kind of the shared library created -
13644 # when "with_aix_soname,aix_use_runtimelinking" is:
13645 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13646 # "aix,yes" lib.so shared, rtl:yes, for executables
13647 # lib.a static archive
13648 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13649 # lib.a(lib.so.V) shared, rtl:no, for executables
13650 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13651 # lib.a(lib.so.V) shared, rtl:no
13652 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13653 # lib.a static archive
13654 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13655 for ld_flag in $LDFLAGS; do
13656 case $ld_flag in
13657 *-brtl*)
13658 aix_use_runtimelinking=yes
13659 break
13660 ;;
13661 esac
13662 done
13663 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13664 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13665 # so we don't have lib.a shared libs to link our executables.
13666 # We have to force runtime linking in this case.
13667 aix_use_runtimelinking=yes
13668 LDFLAGS="$LDFLAGS -Wl,-brtl"
13669 fi
13670 ;;
13671 esac
13672
13673 exp_sym_flag='-bexport'
13674 no_entry_flag='-bnoentry'
13675 fi
13676
13677 # When large executables or shared objects are built, AIX ld can
13678 # have problems creating the table of contents. If linking a library
13679 # or program results in "error TOC overflow" add -mminimal-toc to
13680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13682
13683 archive_cmds_CXX=''
13684 hardcode_direct_CXX=yes
13685 hardcode_direct_absolute_CXX=yes
13686 hardcode_libdir_separator_CXX=':'
13687 link_all_deplibs_CXX=yes
13688 file_list_spec_CXX='$wl-f,'
13689 case $with_aix_soname,$aix_use_runtimelinking in
13690 aix,*) ;; # no import file
13691 svr4,* | *,yes) # use import file
13692 # The Import File defines what to hardcode.
13693 hardcode_direct_CXX=no
13694 hardcode_direct_absolute_CXX=no
13695 ;;
13696 esac
13697
13698 if test yes = "$GXX"; then
13699 case $host_os in aix4.[012]|aix4.[012].*)
13700 # We only want to do this on AIX 4.2 and lower, the check
13701 # below for broken collect2 doesn't work under 4.3+
13702 collect2name=`$CC -print-prog-name=collect2`
13703 if test -f "$collect2name" &&
13704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13705 then
13706 # We have reworked collect2
13707 :
13708 else
13709 # We have old collect2
13710 hardcode_direct_CXX=unsupported
13711 # It fails to find uninstalled libraries when the uninstalled
13712 # path is not listed in the libpath. Setting hardcode_minus_L
13713 # to unsupported forces relinking
13714 hardcode_minus_L_CXX=yes
13715 hardcode_libdir_flag_spec_CXX='-L$libdir'
13716 hardcode_libdir_separator_CXX=
13717 fi
13718 esac
13719 shared_flag='-shared'
13720 if test yes = "$aix_use_runtimelinking"; then
13721 shared_flag=$shared_flag' $wl-G'
13722 fi
13723 # Need to ensure runtime linking is disabled for the traditional
13724 # shared library, or the linker may eventually find shared libraries
13725 # /with/ Import File - we do not want to mix them.
13726 shared_flag_aix='-shared'
13727 shared_flag_svr4='-shared $wl-G'
13728 else
13729 # not using gcc
13730 if test ia64 = "$host_cpu"; then
13731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13732 # chokes on -Wl,-G. The following line is correct:
13733 shared_flag='-G'
13734 else
13735 if test yes = "$aix_use_runtimelinking"; then
13736 shared_flag='$wl-G'
13737 else
13738 shared_flag='$wl-bM:SRE'
13739 fi
13740 shared_flag_aix='$wl-bM:SRE'
13741 shared_flag_svr4='$wl-G'
13742 fi
13743 fi
13744
13745 export_dynamic_flag_spec_CXX='$wl-bexpall'
13746 # It seems that -bexpall does not export symbols beginning with
13747 # underscore (_), so it is better to generate a list of symbols to
13748 # export.
13749 always_export_symbols_CXX=yes
13750 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13751 # Warning - without using the other runtime loading flags (-brtl),
13752 # -berok will link without error, but may produce a broken library.
13753 # The "-G" linker flag allows undefined symbols.
13754 no_undefined_flag_CXX='-bernotok'
13755 # Determine the default libpath from the value encoded in an empty
13756 # executable.
13757 if test set = "${lt_cv_aix_libpath+set}"; then
13758 aix_libpath=$lt_cv_aix_libpath
13759 else
13760 if ${lt_cv_aix_libpath__CXX+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765
13766 int
13767 main ()
13768 {
13769
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_cxx_try_link "$LINENO"; then :
13775
13776 lt_aix_libpath_sed='
13777 /Import File Strings/,/^$/ {
13778 /^0/ {
13779 s/^0 *\([^ ]*\) *$/\1/
13780 p
13781 }
13782 }'
13783 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784 # Check for a 64-bit object if we didn't find anything.
13785 if test -z "$lt_cv_aix_libpath__CXX"; then
13786 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13787 fi
13788 fi
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 if test -z "$lt_cv_aix_libpath__CXX"; then
13792 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13793 fi
13794
13795 fi
13796
13797 aix_libpath=$lt_cv_aix_libpath__CXX
13798 fi
13799
13800 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13801
13802 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13803 else
13804 if test ia64 = "$host_cpu"; then
13805 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13806 allow_undefined_flag_CXX="-z nodefs"
13807 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"
13808 else
13809 # Determine the default libpath from the value encoded in an
13810 # empty executable.
13811 if test set = "${lt_cv_aix_libpath+set}"; then
13812 aix_libpath=$lt_cv_aix_libpath
13813 else
13814 if ${lt_cv_aix_libpath__CXX+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819
13820 int
13821 main ()
13822 {
13823
13824 ;
13825 return 0;
13826 }
13827 _ACEOF
13828 if ac_fn_cxx_try_link "$LINENO"; then :
13829
13830 lt_aix_libpath_sed='
13831 /Import File Strings/,/^$/ {
13832 /^0/ {
13833 s/^0 *\([^ ]*\) *$/\1/
13834 p
13835 }
13836 }'
13837 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13838 # Check for a 64-bit object if we didn't find anything.
13839 if test -z "$lt_cv_aix_libpath__CXX"; then
13840 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13841 fi
13842 fi
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 if test -z "$lt_cv_aix_libpath__CXX"; then
13846 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13847 fi
13848
13849 fi
13850
13851 aix_libpath=$lt_cv_aix_libpath__CXX
13852 fi
13853
13854 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13855 # Warning - without using the other run time loading flags,
13856 # -berok will link without error, but may produce a broken library.
13857 no_undefined_flag_CXX=' $wl-bernotok'
13858 allow_undefined_flag_CXX=' $wl-berok'
13859 if test yes = "$with_gnu_ld"; then
13860 # We only use this code for GNU lds that support --whole-archive.
13861 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13862 else
13863 # Exported symbols can be pulled into shared objects from archives
13864 whole_archive_flag_spec_CXX='$convenience'
13865 fi
13866 archive_cmds_need_lc_CXX=yes
13867 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13868 # -brtl affects multiple linker settings, -berok does not and is overridden later
13869 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13870 if test svr4 != "$with_aix_soname"; then
13871 # This is similar to how AIX traditionally builds its shared
13872 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13873 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13874 fi
13875 if test aix != "$with_aix_soname"; then
13876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13877 else
13878 # used by -dlpreopen to get the symbols
13879 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13880 fi
13881 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13882 fi
13883 fi
13884 ;;
13885
13886 beos*)
13887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13888 allow_undefined_flag_CXX=unsupported
13889 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13890 # support --undefined. This deserves some investigation. FIXME
13891 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13892 else
13893 ld_shlibs_CXX=no
13894 fi
13895 ;;
13896
13897 chorus*)
13898 case $cc_basename in
13899 *)
13900 # FIXME: insert proper C++ library support
13901 ld_shlibs_CXX=no
13902 ;;
13903 esac
13904 ;;
13905
13906 cygwin* | mingw* | pw32* | cegcc*)
13907 case $GXX,$cc_basename in
13908 ,cl* | no,cl*)
13909 # Native MSVC
13910 # hardcode_libdir_flag_spec is actually meaningless, as there is
13911 # no search path for DLLs.
13912 hardcode_libdir_flag_spec_CXX=' '
13913 allow_undefined_flag_CXX=unsupported
13914 always_export_symbols_CXX=yes
13915 file_list_spec_CXX='@'
13916 # Tell ltmain to make .lib files, not .a files.
13917 libext=lib
13918 # Tell ltmain to make .dll files, not .so files.
13919 shrext_cmds=.dll
13920 # FIXME: Setting linknames here is a bad hack.
13921 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13922 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13923 cp "$export_symbols" "$output_objdir/$soname.def";
13924 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13925 else
13926 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13927 fi~
13928 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13929 linknames='
13930 # The linker will not automatically build a static lib if we build a DLL.
13931 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13932 enable_shared_with_static_runtimes_CXX=yes
13933 # Don't use ranlib
13934 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13935 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13936 lt_tool_outputfile="@TOOL_OUTPUT@"~
13937 case $lt_outputfile in
13938 *.exe|*.EXE) ;;
13939 *)
13940 lt_outputfile=$lt_outputfile.exe
13941 lt_tool_outputfile=$lt_tool_outputfile.exe
13942 ;;
13943 esac~
13944 func_to_tool_file "$lt_outputfile"~
13945 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13946 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13947 $RM "$lt_outputfile.manifest";
13948 fi'
13949 ;;
13950 *)
13951 # g++
13952 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13953 # as there is no search path for DLLs.
13954 hardcode_libdir_flag_spec_CXX='-L$libdir'
13955 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13956 allow_undefined_flag_CXX=unsupported
13957 always_export_symbols_CXX=no
13958 enable_shared_with_static_runtimes_CXX=yes
13959
13960 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13961 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'
13962 # If the export-symbols file already is a .def file, use it as
13963 # is; otherwise, prepend EXPORTS...
13964 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13965 cp $export_symbols $output_objdir/$soname.def;
13966 else
13967 echo EXPORTS > $output_objdir/$soname.def;
13968 cat $export_symbols >> $output_objdir/$soname.def;
13969 fi~
13970 $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'
13971 else
13972 ld_shlibs_CXX=no
13973 fi
13974 ;;
13975 esac
13976 ;;
13977 darwin* | rhapsody*)
13978
13979
13980 archive_cmds_need_lc_CXX=no
13981 hardcode_direct_CXX=no
13982 hardcode_automatic_CXX=yes
13983 hardcode_shlibpath_var_CXX=unsupported
13984 if test yes = "$lt_cv_ld_force_load"; then
13985 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\"`'
13986
13987 else
13988 whole_archive_flag_spec_CXX=''
13989 fi
13990 link_all_deplibs_CXX=yes
13991 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13992 case $cc_basename in
13993 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13994 *) _lt_dar_can_shared=$GCC ;;
13995 esac
13996 if test yes = "$_lt_dar_can_shared"; then
13997 output_verbose_link_cmd=func_echo_all
13998 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"
13999 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14000 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"
14001 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"
14002 if test yes != "$lt_cv_apple_cc_single_mod"; then
14003 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"
14004 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"
14005 fi
14006
14007 else
14008 ld_shlibs_CXX=no
14009 fi
14010
14011 ;;
14012
14013 os2*)
14014 hardcode_libdir_flag_spec_CXX='-L$libdir'
14015 hardcode_minus_L_CXX=yes
14016 allow_undefined_flag_CXX=unsupported
14017 shrext_cmds=.dll
14018 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14019 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14020 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14021 $ECHO EXPORTS >> $output_objdir/$libname.def~
14022 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14023 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14024 emximp -o $lib $output_objdir/$libname.def'
14025 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14026 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14027 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14028 $ECHO EXPORTS >> $output_objdir/$libname.def~
14029 prefix_cmds="$SED"~
14030 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14031 prefix_cmds="$prefix_cmds -e 1d";
14032 fi~
14033 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14034 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14035 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14036 emximp -o $lib $output_objdir/$libname.def'
14037 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14038 enable_shared_with_static_runtimes_CXX=yes
14039 ;;
14040
14041 dgux*)
14042 case $cc_basename in
14043 ec++*)
14044 # FIXME: insert proper C++ library support
14045 ld_shlibs_CXX=no
14046 ;;
14047 ghcx*)
14048 # Green Hills C++ Compiler
14049 # FIXME: insert proper C++ library support
14050 ld_shlibs_CXX=no
14051 ;;
14052 *)
14053 # FIXME: insert proper C++ library support
14054 ld_shlibs_CXX=no
14055 ;;
14056 esac
14057 ;;
14058
14059 freebsd2.*)
14060 # C++ shared libraries reported to be fairly broken before
14061 # switch to ELF
14062 ld_shlibs_CXX=no
14063 ;;
14064
14065 freebsd-elf*)
14066 archive_cmds_need_lc_CXX=no
14067 ;;
14068
14069 freebsd* | dragonfly*)
14070 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14071 # conventions
14072 ld_shlibs_CXX=yes
14073 ;;
14074
14075 haiku*)
14076 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14077 link_all_deplibs_CXX=yes
14078 ;;
14079
14080 hpux9*)
14081 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14082 hardcode_libdir_separator_CXX=:
14083 export_dynamic_flag_spec_CXX='$wl-E'
14084 hardcode_direct_CXX=yes
14085 hardcode_minus_L_CXX=yes # Not in the search PATH,
14086 # but as the default
14087 # location of the library.
14088
14089 case $cc_basename in
14090 CC*)
14091 # FIXME: insert proper C++ library support
14092 ld_shlibs_CXX=no
14093 ;;
14094 aCC*)
14095 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14096 # Commands to make compiler produce verbose output that lists
14097 # what "hidden" libraries, object files and flags are used when
14098 # linking a shared library.
14099 #
14100 # There doesn't appear to be a way to prevent this compiler from
14101 # explicitly linking system object files so we need to strip them
14102 # from the output so that they don't get included in the library
14103 # dependencies.
14104 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"'
14105 ;;
14106 *)
14107 if test yes = "$GXX"; then
14108 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14109 else
14110 # FIXME: insert proper C++ library support
14111 ld_shlibs_CXX=no
14112 fi
14113 ;;
14114 esac
14115 ;;
14116
14117 hpux10*|hpux11*)
14118 if test no = "$with_gnu_ld"; then
14119 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14120 hardcode_libdir_separator_CXX=:
14121
14122 case $host_cpu in
14123 hppa*64*|ia64*)
14124 ;;
14125 *)
14126 export_dynamic_flag_spec_CXX='$wl-E'
14127 ;;
14128 esac
14129 fi
14130 case $host_cpu in
14131 hppa*64*|ia64*)
14132 hardcode_direct_CXX=no
14133 hardcode_shlibpath_var_CXX=no
14134 ;;
14135 *)
14136 hardcode_direct_CXX=yes
14137 hardcode_direct_absolute_CXX=yes
14138 hardcode_minus_L_CXX=yes # Not in the search PATH,
14139 # but as the default
14140 # location of the library.
14141 ;;
14142 esac
14143
14144 case $cc_basename in
14145 CC*)
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 ;;
14149 aCC*)
14150 case $host_cpu in
14151 hppa*64*)
14152 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14153 ;;
14154 ia64*)
14155 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14156 ;;
14157 *)
14158 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14159 ;;
14160 esac
14161 # Commands to make compiler produce verbose output that lists
14162 # what "hidden" libraries, object files and flags are used when
14163 # linking a shared library.
14164 #
14165 # There doesn't appear to be a way to prevent this compiler from
14166 # explicitly linking system object files so we need to strip them
14167 # from the output so that they don't get included in the library
14168 # dependencies.
14169 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"'
14170 ;;
14171 *)
14172 if test yes = "$GXX"; then
14173 if test no = "$with_gnu_ld"; then
14174 case $host_cpu in
14175 hppa*64*)
14176 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14177 ;;
14178 ia64*)
14179 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14180 ;;
14181 *)
14182 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'
14183 ;;
14184 esac
14185 fi
14186 else
14187 # FIXME: insert proper C++ library support
14188 ld_shlibs_CXX=no
14189 fi
14190 ;;
14191 esac
14192 ;;
14193
14194 interix[3-9]*)
14195 hardcode_direct_CXX=no
14196 hardcode_shlibpath_var_CXX=no
14197 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14198 export_dynamic_flag_spec_CXX='$wl-E'
14199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14200 # Instead, shared libraries are loaded at an image base (0x10000000 by
14201 # default) and relocated if they conflict, which is a slow very memory
14202 # consuming and fragmenting process. To avoid this, we pick a random,
14203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14205 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'
14206 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'
14207 ;;
14208 irix5* | irix6*)
14209 case $cc_basename in
14210 CC*)
14211 # SGI C++
14212 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'
14213
14214 # Archives containing C++ object files must be created using
14215 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14216 # necessary to make sure instantiated templates are included
14217 # in the archive.
14218 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14219 ;;
14220 *)
14221 if test yes = "$GXX"; then
14222 if test no = "$with_gnu_ld"; then
14223 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'
14224 else
14225 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'
14226 fi
14227 fi
14228 link_all_deplibs_CXX=yes
14229 ;;
14230 esac
14231 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14232 hardcode_libdir_separator_CXX=:
14233 inherit_rpath_CXX=yes
14234 ;;
14235
14236 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14237 case $cc_basename in
14238 KCC*)
14239 # Kuck and Associates, Inc. (KAI) C++ Compiler
14240
14241 # KCC will only create a shared library if the output file
14242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14243 # to its proper name (with version) after linking.
14244 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'
14245 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'
14246 # Commands to make compiler produce verbose output that lists
14247 # what "hidden" libraries, object files and flags are used when
14248 # linking a shared library.
14249 #
14250 # There doesn't appear to be a way to prevent this compiler from
14251 # explicitly linking system object files so we need to strip them
14252 # from the output so that they don't get included in the library
14253 # dependencies.
14254 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"'
14255
14256 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14257 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14258
14259 # Archives containing C++ object files must be created using
14260 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14261 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14262 ;;
14263 icpc* | ecpc* )
14264 # Intel C++
14265 with_gnu_ld=yes
14266 # version 8.0 and above of icpc choke on multiply defined symbols
14267 # if we add $predep_objects and $postdep_objects, however 7.1 and
14268 # earlier do not add the objects themselves.
14269 case `$CC -V 2>&1` in
14270 *"Version 7."*)
14271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14272 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'
14273 ;;
14274 *) # Version 8.0 or newer
14275 tmp_idyn=
14276 case $host_cpu in
14277 ia64*) tmp_idyn=' -i_dynamic';;
14278 esac
14279 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14280 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'
14281 ;;
14282 esac
14283 archive_cmds_need_lc_CXX=no
14284 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14285 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14286 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14287 ;;
14288 pgCC* | pgcpp*)
14289 # Portland Group C++ compiler
14290 case `$CC -V` in
14291 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14292 prelink_cmds_CXX='tpldir=Template.dir~
14293 rm -rf $tpldir~
14294 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14295 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14296 old_archive_cmds_CXX='tpldir=Template.dir~
14297 rm -rf $tpldir~
14298 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14299 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14300 $RANLIB $oldlib'
14301 archive_cmds_CXX='tpldir=Template.dir~
14302 rm -rf $tpldir~
14303 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14304 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14305 archive_expsym_cmds_CXX='tpldir=Template.dir~
14306 rm -rf $tpldir~
14307 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14308 $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'
14309 ;;
14310 *) # Version 6 and above use weak symbols
14311 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14312 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'
14313 ;;
14314 esac
14315
14316 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14317 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14318 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'
14319 ;;
14320 cxx*)
14321 # Compaq C++
14322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14323 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'
14324
14325 runpath_var=LD_RUN_PATH
14326 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14327 hardcode_libdir_separator_CXX=:
14328
14329 # Commands to make compiler produce verbose output that lists
14330 # what "hidden" libraries, object files and flags are used when
14331 # linking a shared library.
14332 #
14333 # There doesn't appear to be a way to prevent this compiler from
14334 # explicitly linking system object files so we need to strip them
14335 # from the output so that they don't get included in the library
14336 # dependencies.
14337 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'
14338 ;;
14339 xl* | mpixl* | bgxl*)
14340 # IBM XL 8.0 on PPC, with GNU ld
14341 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14342 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14343 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14344 if test yes = "$supports_anon_versioning"; then
14345 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14347 echo "local: *; };" >> $output_objdir/$libname.ver~
14348 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14349 fi
14350 ;;
14351 *)
14352 case `$CC -V 2>&1 | sed 5q` in
14353 *Sun\ C*)
14354 # Sun C++ 5.9
14355 no_undefined_flag_CXX=' -zdefs'
14356 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14357 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'
14358 hardcode_libdir_flag_spec_CXX='-R$libdir'
14359 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'
14360 compiler_needs_object_CXX=yes
14361
14362 # Not sure whether something based on
14363 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14364 # would be better.
14365 output_verbose_link_cmd='func_echo_all'
14366
14367 # Archives containing C++ object files must be created using
14368 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14369 # necessary to make sure instantiated templates are included
14370 # in the archive.
14371 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14372 ;;
14373 esac
14374 ;;
14375 esac
14376 ;;
14377
14378 lynxos*)
14379 # FIXME: insert proper C++ library support
14380 ld_shlibs_CXX=no
14381 ;;
14382
14383 m88k*)
14384 # FIXME: insert proper C++ library support
14385 ld_shlibs_CXX=no
14386 ;;
14387
14388 mvs*)
14389 case $cc_basename in
14390 cxx*)
14391 # FIXME: insert proper C++ library support
14392 ld_shlibs_CXX=no
14393 ;;
14394 *)
14395 # FIXME: insert proper C++ library support
14396 ld_shlibs_CXX=no
14397 ;;
14398 esac
14399 ;;
14400
14401 netbsd*)
14402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14403 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14404 wlarc=
14405 hardcode_libdir_flag_spec_CXX='-R$libdir'
14406 hardcode_direct_CXX=yes
14407 hardcode_shlibpath_var_CXX=no
14408 fi
14409 # Workaround some broken pre-1.5 toolchains
14410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14411 ;;
14412
14413 *nto* | *qnx*)
14414 ld_shlibs_CXX=yes
14415 ;;
14416
14417 openbsd* | bitrig*)
14418 if test -f /usr/libexec/ld.so; then
14419 hardcode_direct_CXX=yes
14420 hardcode_shlibpath_var_CXX=no
14421 hardcode_direct_absolute_CXX=yes
14422 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14423 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14425 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14426 export_dynamic_flag_spec_CXX='$wl-E'
14427 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14428 fi
14429 output_verbose_link_cmd=func_echo_all
14430 else
14431 ld_shlibs_CXX=no
14432 fi
14433 ;;
14434
14435 osf3* | osf4* | osf5*)
14436 case $cc_basename in
14437 KCC*)
14438 # Kuck and Associates, Inc. (KAI) C++ Compiler
14439
14440 # KCC will only create a shared library if the output file
14441 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14442 # to its proper name (with version) after linking.
14443 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'
14444
14445 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14446 hardcode_libdir_separator_CXX=:
14447
14448 # Archives containing C++ object files must be created using
14449 # the KAI C++ compiler.
14450 case $host in
14451 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14452 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14453 esac
14454 ;;
14455 RCC*)
14456 # Rational C++ 2.4.1
14457 # FIXME: insert proper C++ library support
14458 ld_shlibs_CXX=no
14459 ;;
14460 cxx*)
14461 case $host in
14462 osf3*)
14463 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14464 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'
14465 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14466 ;;
14467 *)
14468 allow_undefined_flag_CXX=' -expect_unresolved \*'
14469 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'
14470 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14471 echo "-hidden">> $lib.exp~
14472 $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~
14473 $RM $lib.exp'
14474 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14475 ;;
14476 esac
14477
14478 hardcode_libdir_separator_CXX=:
14479
14480 # Commands to make compiler produce verbose output that lists
14481 # what "hidden" libraries, object files and flags are used when
14482 # linking a shared library.
14483 #
14484 # There doesn't appear to be a way to prevent this compiler from
14485 # explicitly linking system object files so we need to strip them
14486 # from the output so that they don't get included in the library
14487 # dependencies.
14488 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"'
14489 ;;
14490 *)
14491 if test yes,no = "$GXX,$with_gnu_ld"; then
14492 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14493 case $host in
14494 osf3*)
14495 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'
14496 ;;
14497 *)
14498 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'
14499 ;;
14500 esac
14501
14502 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14503 hardcode_libdir_separator_CXX=:
14504
14505 # Commands to make compiler produce verbose output that lists
14506 # what "hidden" libraries, object files and flags are used when
14507 # linking a shared library.
14508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14509
14510 else
14511 # FIXME: insert proper C++ library support
14512 ld_shlibs_CXX=no
14513 fi
14514 ;;
14515 esac
14516 ;;
14517
14518 psos*)
14519 # FIXME: insert proper C++ library support
14520 ld_shlibs_CXX=no
14521 ;;
14522
14523 sunos4*)
14524 case $cc_basename in
14525 CC*)
14526 # Sun C++ 4.x
14527 # FIXME: insert proper C++ library support
14528 ld_shlibs_CXX=no
14529 ;;
14530 lcc*)
14531 # Lucid
14532 # FIXME: insert proper C++ library support
14533 ld_shlibs_CXX=no
14534 ;;
14535 *)
14536 # FIXME: insert proper C++ library support
14537 ld_shlibs_CXX=no
14538 ;;
14539 esac
14540 ;;
14541
14542 solaris*)
14543 case $cc_basename in
14544 CC* | sunCC*)
14545 # Sun C++ 4.2, 5.x and Centerline C++
14546 archive_cmds_need_lc_CXX=yes
14547 no_undefined_flag_CXX=' -zdefs'
14548 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14549 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14550 $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'
14551
14552 hardcode_libdir_flag_spec_CXX='-R$libdir'
14553 hardcode_shlibpath_var_CXX=no
14554 case $host_os in
14555 solaris2.[0-5] | solaris2.[0-5].*) ;;
14556 *)
14557 # The compiler driver will combine and reorder linker options,
14558 # but understands '-z linker_flag'.
14559 # Supported since Solaris 2.6 (maybe 2.5.1?)
14560 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14561 ;;
14562 esac
14563 link_all_deplibs_CXX=yes
14564
14565 output_verbose_link_cmd='func_echo_all'
14566
14567 # Archives containing C++ object files must be created using
14568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14569 # necessary to make sure instantiated templates are included
14570 # in the archive.
14571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14572 ;;
14573 gcx*)
14574 # Green Hills C++ Compiler
14575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14576
14577 # The C++ compiler must be used to create the archive.
14578 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14579 ;;
14580 *)
14581 # GNU C++ compiler with Solaris linker
14582 if test yes,no = "$GXX,$with_gnu_ld"; then
14583 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14584 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14585 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14586 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14587 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14588
14589 # Commands to make compiler produce verbose output that lists
14590 # what "hidden" libraries, object files and flags are used when
14591 # linking a shared library.
14592 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14593 else
14594 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14595 # platform.
14596 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14597 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14598 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14599
14600 # Commands to make compiler produce verbose output that lists
14601 # what "hidden" libraries, object files and flags are used when
14602 # linking a shared library.
14603 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14604 fi
14605
14606 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14607 case $host_os in
14608 solaris2.[0-5] | solaris2.[0-5].*) ;;
14609 *)
14610 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14611 ;;
14612 esac
14613 fi
14614 ;;
14615 esac
14616 ;;
14617
14618 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14619 no_undefined_flag_CXX='$wl-z,text'
14620 archive_cmds_need_lc_CXX=no
14621 hardcode_shlibpath_var_CXX=no
14622 runpath_var='LD_RUN_PATH'
14623
14624 case $cc_basename in
14625 CC*)
14626 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 ;;
14629 *)
14630 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14631 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14632 ;;
14633 esac
14634 ;;
14635
14636 sysv5* | sco3.2v5* | sco5v6*)
14637 # Note: We CANNOT use -z defs as we might desire, because we do not
14638 # link with -lc, and that would cause any symbols used from libc to
14639 # always be unresolved, which means just about no library would
14640 # ever link correctly. If we're not using GNU ld we use -z text
14641 # though, which does catch some bad symbols but isn't as heavy-handed
14642 # as -z defs.
14643 no_undefined_flag_CXX='$wl-z,text'
14644 allow_undefined_flag_CXX='$wl-z,nodefs'
14645 archive_cmds_need_lc_CXX=no
14646 hardcode_shlibpath_var_CXX=no
14647 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14648 hardcode_libdir_separator_CXX=':'
14649 link_all_deplibs_CXX=yes
14650 export_dynamic_flag_spec_CXX='$wl-Bexport'
14651 runpath_var='LD_RUN_PATH'
14652
14653 case $cc_basename in
14654 CC*)
14655 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14658 '"$old_archive_cmds_CXX"
14659 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14660 '"$reload_cmds_CXX"
14661 ;;
14662 *)
14663 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14664 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14665 ;;
14666 esac
14667 ;;
14668
14669 tandem*)
14670 case $cc_basename in
14671 NCC*)
14672 # NonStop-UX NCC 3.20
14673 # FIXME: insert proper C++ library support
14674 ld_shlibs_CXX=no
14675 ;;
14676 *)
14677 # FIXME: insert proper C++ library support
14678 ld_shlibs_CXX=no
14679 ;;
14680 esac
14681 ;;
14682
14683 vxworks*)
14684 # FIXME: insert proper C++ library support
14685 ld_shlibs_CXX=no
14686 ;;
14687
14688 *)
14689 # FIXME: insert proper C++ library support
14690 ld_shlibs_CXX=no
14691 ;;
14692 esac
14693
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14695 $as_echo "$ld_shlibs_CXX" >&6; }
14696 test no = "$ld_shlibs_CXX" && can_build_shared=no
14697
14698 GCC_CXX=$GXX
14699 LD_CXX=$LD
14700
14701 ## CAVEAT EMPTOR:
14702 ## There is no encapsulation within the following macros, do not change
14703 ## the running order or otherwise move them around unless you know exactly
14704 ## what you are doing...
14705 # Dependencies to place before and after the object being linked:
14706 predep_objects_CXX=
14707 postdep_objects_CXX=
14708 predeps_CXX=
14709 postdeps_CXX=
14710 compiler_lib_search_path_CXX=
14711
14712 cat > conftest.$ac_ext <<_LT_EOF
14713 class Foo
14714 {
14715 public:
14716 Foo (void) { a = 0; }
14717 private:
14718 int a;
14719 };
14720 _LT_EOF
14721
14722
14723 _lt_libdeps_save_CFLAGS=$CFLAGS
14724 case "$CC $CFLAGS " in #(
14725 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14726 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14727 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14728 esac
14729
14730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14731 (eval $ac_compile) 2>&5
14732 ac_status=$?
14733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14734 test $ac_status = 0; }; then
14735 # Parse the compiler output and extract the necessary
14736 # objects, libraries and library flags.
14737
14738 # Sentinel used to keep track of whether or not we are before
14739 # the conftest object file.
14740 pre_test_object_deps_done=no
14741
14742 for p in `eval "$output_verbose_link_cmd"`; do
14743 case $prev$p in
14744
14745 -L* | -R* | -l*)
14746 # Some compilers place space between "-{L,R}" and the path.
14747 # Remove the space.
14748 if test x-L = "$p" ||
14749 test x-R = "$p"; then
14750 prev=$p
14751 continue
14752 fi
14753
14754 # Expand the sysroot to ease extracting the directories later.
14755 if test -z "$prev"; then
14756 case $p in
14757 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14758 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14759 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14760 esac
14761 fi
14762 case $p in
14763 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14764 esac
14765 if test no = "$pre_test_object_deps_done"; then
14766 case $prev in
14767 -L | -R)
14768 # Internal compiler library paths should come after those
14769 # provided the user. The postdeps already come after the
14770 # user supplied libs so there is no need to process them.
14771 if test -z "$compiler_lib_search_path_CXX"; then
14772 compiler_lib_search_path_CXX=$prev$p
14773 else
14774 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14775 fi
14776 ;;
14777 # The "-l" case would never come before the object being
14778 # linked, so don't bother handling this case.
14779 esac
14780 else
14781 if test -z "$postdeps_CXX"; then
14782 postdeps_CXX=$prev$p
14783 else
14784 postdeps_CXX="${postdeps_CXX} $prev$p"
14785 fi
14786 fi
14787 prev=
14788 ;;
14789
14790 *.lto.$objext) ;; # Ignore GCC LTO objects
14791 *.$objext)
14792 # This assumes that the test object file only shows up
14793 # once in the compiler output.
14794 if test "$p" = "conftest.$objext"; then
14795 pre_test_object_deps_done=yes
14796 continue
14797 fi
14798
14799 if test no = "$pre_test_object_deps_done"; then
14800 if test -z "$predep_objects_CXX"; then
14801 predep_objects_CXX=$p
14802 else
14803 predep_objects_CXX="$predep_objects_CXX $p"
14804 fi
14805 else
14806 if test -z "$postdep_objects_CXX"; then
14807 postdep_objects_CXX=$p
14808 else
14809 postdep_objects_CXX="$postdep_objects_CXX $p"
14810 fi
14811 fi
14812 ;;
14813
14814 *) ;; # Ignore the rest.
14815
14816 esac
14817 done
14818
14819 # Clean up.
14820 rm -f a.out a.exe
14821 else
14822 echo "libtool.m4: error: problem compiling CXX test program"
14823 fi
14824
14825 $RM -f confest.$objext
14826 CFLAGS=$_lt_libdeps_save_CFLAGS
14827
14828 # PORTME: override above test on systems where it is broken
14829 case $host_os in
14830 interix[3-9]*)
14831 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14832 # hack all around it, let's just trust "g++" to DTRT.
14833 predep_objects_CXX=
14834 postdep_objects_CXX=
14835 postdeps_CXX=
14836 ;;
14837 esac
14838
14839
14840 case " $postdeps_CXX " in
14841 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14842 esac
14843 compiler_lib_search_dirs_CXX=
14844 if test -n "${compiler_lib_search_path_CXX}"; then
14845 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14846 fi
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 lt_prog_compiler_wl_CXX=
14879 lt_prog_compiler_pic_CXX=
14880 lt_prog_compiler_static_CXX=
14881
14882
14883 # C++ specific cases for pic, static, wl, etc.
14884 if test yes = "$GXX"; then
14885 lt_prog_compiler_wl_CXX='-Wl,'
14886 lt_prog_compiler_static_CXX='-static'
14887
14888 case $host_os in
14889 aix*)
14890 # All AIX code is PIC.
14891 if test ia64 = "$host_cpu"; then
14892 # AIX 5 now supports IA64 processor
14893 lt_prog_compiler_static_CXX='-Bstatic'
14894 fi
14895 lt_prog_compiler_pic_CXX='-fPIC'
14896 ;;
14897
14898 amigaos*)
14899 case $host_cpu in
14900 powerpc)
14901 # see comment about AmigaOS4 .so support
14902 lt_prog_compiler_pic_CXX='-fPIC'
14903 ;;
14904 m68k)
14905 # FIXME: we need at least 68020 code to build shared libraries, but
14906 # adding the '-m68020' flag to GCC prevents building anything better,
14907 # like '-m68040'.
14908 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14909 ;;
14910 esac
14911 ;;
14912
14913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14914 # PIC is the default for these OSes.
14915 ;;
14916 mingw* | cygwin* | os2* | pw32* | cegcc*)
14917 # This hack is so that the source file can tell whether it is being
14918 # built for inclusion in a dll (and should export symbols for example).
14919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14920 # (--disable-auto-import) libraries
14921 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14922 case $host_os in
14923 os2*)
14924 lt_prog_compiler_static_CXX='$wl-static'
14925 ;;
14926 esac
14927 ;;
14928 darwin* | rhapsody*)
14929 # PIC is the default on this platform
14930 # Common symbols not allowed in MH_DYLIB files
14931 lt_prog_compiler_pic_CXX='-fno-common'
14932 ;;
14933 *djgpp*)
14934 # DJGPP does not support shared libraries at all
14935 lt_prog_compiler_pic_CXX=
14936 ;;
14937 haiku*)
14938 # PIC is the default for Haiku.
14939 # The "-static" flag exists, but is broken.
14940 lt_prog_compiler_static_CXX=
14941 ;;
14942 interix[3-9]*)
14943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14944 # Instead, we relocate shared libraries at runtime.
14945 ;;
14946 sysv4*MP*)
14947 if test -d /usr/nec; then
14948 lt_prog_compiler_pic_CXX=-Kconform_pic
14949 fi
14950 ;;
14951 hpux*)
14952 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14953 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14954 # sets the default TLS model and affects inlining.
14955 case $host_cpu in
14956 hppa*64*)
14957 ;;
14958 *)
14959 lt_prog_compiler_pic_CXX='-fPIC'
14960 ;;
14961 esac
14962 ;;
14963 *qnx* | *nto*)
14964 # QNX uses GNU C++, but need to define -shared option too, otherwise
14965 # it will coredump.
14966 lt_prog_compiler_pic_CXX='-fPIC -shared'
14967 ;;
14968 *)
14969 lt_prog_compiler_pic_CXX='-fPIC'
14970 ;;
14971 esac
14972 else
14973 case $host_os in
14974 aix[4-9]*)
14975 # All AIX code is PIC.
14976 if test ia64 = "$host_cpu"; then
14977 # AIX 5 now supports IA64 processor
14978 lt_prog_compiler_static_CXX='-Bstatic'
14979 else
14980 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14981 fi
14982 ;;
14983 chorus*)
14984 case $cc_basename in
14985 cxch68*)
14986 # Green Hills C++ Compiler
14987 # _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"
14988 ;;
14989 esac
14990 ;;
14991 mingw* | cygwin* | os2* | pw32* | cegcc*)
14992 # This hack is so that the source file can tell whether it is being
14993 # built for inclusion in a dll (and should export symbols for example).
14994 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14995 ;;
14996 dgux*)
14997 case $cc_basename in
14998 ec++*)
14999 lt_prog_compiler_pic_CXX='-KPIC'
15000 ;;
15001 ghcx*)
15002 # Green Hills C++ Compiler
15003 lt_prog_compiler_pic_CXX='-pic'
15004 ;;
15005 *)
15006 ;;
15007 esac
15008 ;;
15009 freebsd* | dragonfly*)
15010 # FreeBSD uses GNU C++
15011 ;;
15012 hpux9* | hpux10* | hpux11*)
15013 case $cc_basename in
15014 CC*)
15015 lt_prog_compiler_wl_CXX='-Wl,'
15016 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15017 if test ia64 != "$host_cpu"; then
15018 lt_prog_compiler_pic_CXX='+Z'
15019 fi
15020 ;;
15021 aCC*)
15022 lt_prog_compiler_wl_CXX='-Wl,'
15023 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15024 case $host_cpu in
15025 hppa*64*|ia64*)
15026 # +Z the default
15027 ;;
15028 *)
15029 lt_prog_compiler_pic_CXX='+Z'
15030 ;;
15031 esac
15032 ;;
15033 *)
15034 ;;
15035 esac
15036 ;;
15037 interix*)
15038 # This is c89, which is MS Visual C++ (no shared libs)
15039 # Anyone wants to do a port?
15040 ;;
15041 irix5* | irix6* | nonstopux*)
15042 case $cc_basename in
15043 CC*)
15044 lt_prog_compiler_wl_CXX='-Wl,'
15045 lt_prog_compiler_static_CXX='-non_shared'
15046 # CC pic flag -KPIC is the default.
15047 ;;
15048 *)
15049 ;;
15050 esac
15051 ;;
15052 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15053 case $cc_basename in
15054 KCC*)
15055 # KAI C++ Compiler
15056 lt_prog_compiler_wl_CXX='--backend -Wl,'
15057 lt_prog_compiler_pic_CXX='-fPIC'
15058 ;;
15059 ecpc* )
15060 # old Intel C++ for x86_64, which still supported -KPIC.
15061 lt_prog_compiler_wl_CXX='-Wl,'
15062 lt_prog_compiler_pic_CXX='-KPIC'
15063 lt_prog_compiler_static_CXX='-static'
15064 ;;
15065 icpc* )
15066 # Intel C++, used to be incompatible with GCC.
15067 # ICC 10 doesn't accept -KPIC any more.
15068 lt_prog_compiler_wl_CXX='-Wl,'
15069 lt_prog_compiler_pic_CXX='-fPIC'
15070 lt_prog_compiler_static_CXX='-static'
15071 ;;
15072 pgCC* | pgcpp*)
15073 # Portland Group C++ compiler
15074 lt_prog_compiler_wl_CXX='-Wl,'
15075 lt_prog_compiler_pic_CXX='-fpic'
15076 lt_prog_compiler_static_CXX='-Bstatic'
15077 ;;
15078 cxx*)
15079 # Compaq C++
15080 # Make sure the PIC flag is empty. It appears that all Alpha
15081 # Linux and Compaq Tru64 Unix objects are PIC.
15082 lt_prog_compiler_pic_CXX=
15083 lt_prog_compiler_static_CXX='-non_shared'
15084 ;;
15085 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15086 # IBM XL 8.0, 9.0 on PPC and BlueGene
15087 lt_prog_compiler_wl_CXX='-Wl,'
15088 lt_prog_compiler_pic_CXX='-qpic'
15089 lt_prog_compiler_static_CXX='-qstaticlink'
15090 ;;
15091 *)
15092 case `$CC -V 2>&1 | sed 5q` in
15093 *Sun\ C*)
15094 # Sun C++ 5.9
15095 lt_prog_compiler_pic_CXX='-KPIC'
15096 lt_prog_compiler_static_CXX='-Bstatic'
15097 lt_prog_compiler_wl_CXX='-Qoption ld '
15098 ;;
15099 esac
15100 ;;
15101 esac
15102 ;;
15103 lynxos*)
15104 ;;
15105 m88k*)
15106 ;;
15107 mvs*)
15108 case $cc_basename in
15109 cxx*)
15110 lt_prog_compiler_pic_CXX='-W c,exportall'
15111 ;;
15112 *)
15113 ;;
15114 esac
15115 ;;
15116 netbsd*)
15117 ;;
15118 *qnx* | *nto*)
15119 # QNX uses GNU C++, but need to define -shared option too, otherwise
15120 # it will coredump.
15121 lt_prog_compiler_pic_CXX='-fPIC -shared'
15122 ;;
15123 osf3* | osf4* | osf5*)
15124 case $cc_basename in
15125 KCC*)
15126 lt_prog_compiler_wl_CXX='--backend -Wl,'
15127 ;;
15128 RCC*)
15129 # Rational C++ 2.4.1
15130 lt_prog_compiler_pic_CXX='-pic'
15131 ;;
15132 cxx*)
15133 # Digital/Compaq C++
15134 lt_prog_compiler_wl_CXX='-Wl,'
15135 # Make sure the PIC flag is empty. It appears that all Alpha
15136 # Linux and Compaq Tru64 Unix objects are PIC.
15137 lt_prog_compiler_pic_CXX=
15138 lt_prog_compiler_static_CXX='-non_shared'
15139 ;;
15140 *)
15141 ;;
15142 esac
15143 ;;
15144 psos*)
15145 ;;
15146 solaris*)
15147 case $cc_basename in
15148 CC* | sunCC*)
15149 # Sun C++ 4.2, 5.x and Centerline C++
15150 lt_prog_compiler_pic_CXX='-KPIC'
15151 lt_prog_compiler_static_CXX='-Bstatic'
15152 lt_prog_compiler_wl_CXX='-Qoption ld '
15153 ;;
15154 gcx*)
15155 # Green Hills C++ Compiler
15156 lt_prog_compiler_pic_CXX='-PIC'
15157 ;;
15158 *)
15159 ;;
15160 esac
15161 ;;
15162 sunos4*)
15163 case $cc_basename in
15164 CC*)
15165 # Sun C++ 4.x
15166 lt_prog_compiler_pic_CXX='-pic'
15167 lt_prog_compiler_static_CXX='-Bstatic'
15168 ;;
15169 lcc*)
15170 # Lucid
15171 lt_prog_compiler_pic_CXX='-pic'
15172 ;;
15173 *)
15174 ;;
15175 esac
15176 ;;
15177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15178 case $cc_basename in
15179 CC*)
15180 lt_prog_compiler_wl_CXX='-Wl,'
15181 lt_prog_compiler_pic_CXX='-KPIC'
15182 lt_prog_compiler_static_CXX='-Bstatic'
15183 ;;
15184 esac
15185 ;;
15186 tandem*)
15187 case $cc_basename in
15188 NCC*)
15189 # NonStop-UX NCC 3.20
15190 lt_prog_compiler_pic_CXX='-KPIC'
15191 ;;
15192 *)
15193 ;;
15194 esac
15195 ;;
15196 vxworks*)
15197 ;;
15198 *)
15199 lt_prog_compiler_can_build_shared_CXX=no
15200 ;;
15201 esac
15202 fi
15203
15204 case $host_os in
15205 # For platforms that do not support PIC, -DPIC is meaningless:
15206 *djgpp*)
15207 lt_prog_compiler_pic_CXX=
15208 ;;
15209 *)
15210 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15211 ;;
15212 esac
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15215 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15216 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15222 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15223 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15224
15225 #
15226 # Check to make sure the PIC flag actually works.
15227 #
15228 if test -n "$lt_prog_compiler_pic_CXX"; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15230 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15231 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15232 $as_echo_n "(cached) " >&6
15233 else
15234 lt_cv_prog_compiler_pic_works_CXX=no
15235 ac_outfile=conftest.$ac_objext
15236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15237 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15238 # Insert the option either (1) after the last *FLAGS variable, or
15239 # (2) before a word containing "conftest.", or (3) at the end.
15240 # Note that $ac_compile itself does not contain backslashes and begins
15241 # with a dollar sign (not a hyphen), so the echo should work correctly.
15242 # The option is referenced via a variable to avoid confusing sed.
15243 lt_compile=`echo "$ac_compile" | $SED \
15244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
15247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15248 (eval "$lt_compile" 2>conftest.err)
15249 ac_status=$?
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 if (exit $ac_status) && test -s "$ac_outfile"; then
15253 # The compiler can only warn and ignore the option if not recognized
15254 # So say no if there are warnings other than the usual output.
15255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15258 lt_cv_prog_compiler_pic_works_CXX=yes
15259 fi
15260 fi
15261 $RM -r conftest*
15262
15263 fi
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15265 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15266
15267 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15268 case $lt_prog_compiler_pic_CXX in
15269 "" | " "*) ;;
15270 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15271 esac
15272 else
15273 lt_prog_compiler_pic_CXX=
15274 lt_prog_compiler_can_build_shared_CXX=no
15275 fi
15276
15277 fi
15278
15279
15280
15281
15282
15283 #
15284 # Check to make sure the static flag actually works.
15285 #
15286 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15288 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15289 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 lt_cv_prog_compiler_static_works_CXX=no
15293 save_LDFLAGS=$LDFLAGS
15294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15297 # The linker can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 if test -s conftest.err; then
15300 # Append any errors to the config.log.
15301 cat conftest.err 1>&5
15302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15304 if diff conftest.exp conftest.er2 >/dev/null; then
15305 lt_cv_prog_compiler_static_works_CXX=yes
15306 fi
15307 else
15308 lt_cv_prog_compiler_static_works_CXX=yes
15309 fi
15310 fi
15311 $RM -r conftest*
15312 LDFLAGS=$save_LDFLAGS
15313
15314 fi
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15316 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15317
15318 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15319 :
15320 else
15321 lt_prog_compiler_static_CXX=
15322 fi
15323
15324
15325
15326
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15329 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15330 $as_echo_n "(cached) " >&6
15331 else
15332 lt_cv_prog_compiler_c_o_CXX=no
15333 $RM -r conftest 2>/dev/null
15334 mkdir conftest
15335 cd conftest
15336 mkdir out
15337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338
15339 lt_compiler_flag="-o out/conftest2.$ac_objext"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
15348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15349 (eval "$lt_compile" 2>out/conftest.err)
15350 ac_status=$?
15351 cat out/conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354 then
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler_c_o_CXX=yes
15361 fi
15362 fi
15363 chmod u+w . 2>&5
15364 $RM -r conftest*
15365 # SGI C++ compiler will create directory out/ii_files/ for
15366 # template instantiation
15367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15368 $RM out/* && rmdir out
15369 cd ..
15370 $RM -r conftest
15371 $RM -r conftest*
15372
15373 fi
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15375 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15376
15377
15378
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15380 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15381 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384 lt_cv_prog_compiler_c_o_CXX=no
15385 $RM -r conftest 2>/dev/null
15386 mkdir conftest
15387 cd conftest
15388 mkdir out
15389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15390
15391 lt_compiler_flag="-o out/conftest2.$ac_objext"
15392 # Insert the option either (1) after the last *FLAGS variable, or
15393 # (2) before a word containing "conftest.", or (3) at the end.
15394 # Note that $ac_compile itself does not contain backslashes and begins
15395 # with a dollar sign (not a hyphen), so the echo should work correctly.
15396 lt_compile=`echo "$ac_compile" | $SED \
15397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399 -e 's:$: $lt_compiler_flag:'`
15400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15401 (eval "$lt_compile" 2>out/conftest.err)
15402 ac_status=$?
15403 cat out/conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15406 then
15407 # The compiler can only warn and ignore the option if not recognized
15408 # So say no if there are warnings
15409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15412 lt_cv_prog_compiler_c_o_CXX=yes
15413 fi
15414 fi
15415 chmod u+w . 2>&5
15416 $RM -r conftest*
15417 # SGI C++ compiler will create directory out/ii_files/ for
15418 # template instantiation
15419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15420 $RM out/* && rmdir out
15421 cd ..
15422 $RM -r conftest
15423 $RM -r conftest*
15424
15425 fi
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15427 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15428
15429
15430
15431
15432 hard_links=nottested
15433 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15434 # do not overwrite the value of need_locks provided by the user
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15436 $as_echo_n "checking if we can lock with hard links... " >&6; }
15437 hard_links=yes
15438 $RM -r conftest*
15439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15440 touch conftest.a
15441 ln conftest.a conftest.b 2>&5 || hard_links=no
15442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15444 $as_echo "$hard_links" >&6; }
15445 if test no = "$hard_links"; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15447 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15448 need_locks=warn
15449 fi
15450 else
15451 need_locks=no
15452 fi
15453
15454
15455
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15458
15459 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15460 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15461 case $host_os in
15462 aix[4-9]*)
15463 # If we're using GNU nm, then we don't want the "-C" option.
15464 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15465 # Without the "-l" option, or with the "-B" option, AIX nm treats
15466 # weak defined symbols like other global defined symbols, whereas
15467 # GNU nm marks them as "W".
15468 # While the 'weak' keyword is ignored in the Export File, we need
15469 # it in the Import File for the 'aix-soname' feature, so we have
15470 # to replace the "-B" option with "-P" for AIX nm.
15471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15472 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15473 else
15474 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15475 fi
15476 ;;
15477 pw32*)
15478 export_symbols_cmds_CXX=$ltdll_cmds
15479 ;;
15480 cygwin* | mingw* | cegcc*)
15481 case $cc_basename in
15482 cl*)
15483 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15484 ;;
15485 *)
15486 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'
15487 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15488 ;;
15489 esac
15490 ;;
15491 *)
15492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15493 ;;
15494 esac
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15497 $as_echo "$ld_shlibs_CXX" >&6; }
15498 test no = "$ld_shlibs_CXX" && can_build_shared=no
15499
15500 with_gnu_ld_CXX=$with_gnu_ld
15501
15502
15503
15504
15505
15506
15507 #
15508 # Do we need to explicitly link libc?
15509 #
15510 case "x$archive_cmds_need_lc_CXX" in
15511 x|xyes)
15512 # Assume -lc should be added
15513 archive_cmds_need_lc_CXX=yes
15514
15515 if test yes,yes = "$GCC,$enable_shared"; then
15516 case $archive_cmds_CXX in
15517 *'~'*)
15518 # FIXME: we may have to deal with multi-command sequences.
15519 ;;
15520 '$CC '*)
15521 # Test whether the compiler implicitly links with -lc since on some
15522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15523 # to ld, don't add -lc before -lgcc.
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15526 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528 else
15529 $RM -r conftest*
15530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15531
15532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15533 (eval $ac_compile) 2>&5
15534 ac_status=$?
15535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15536 test $ac_status = 0; } 2>conftest.err; then
15537 soname=conftest
15538 lib=conftest
15539 libobjs=conftest.$ac_objext
15540 deplibs=
15541 wl=$lt_prog_compiler_wl_CXX
15542 pic_flag=$lt_prog_compiler_pic_CXX
15543 compiler_flags=-v
15544 linker_flags=-v
15545 verstring=
15546 output_objdir=.
15547 libname=conftest
15548 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15549 allow_undefined_flag_CXX=
15550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15551 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15552 ac_status=$?
15553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15554 test $ac_status = 0; }
15555 then
15556 lt_cv_archive_cmds_need_lc_CXX=no
15557 else
15558 lt_cv_archive_cmds_need_lc_CXX=yes
15559 fi
15560 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15561 else
15562 cat conftest.err 1>&5
15563 fi
15564 $RM -r conftest*
15565
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15568 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15569 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15570 ;;
15571 esac
15572 fi
15573 ;;
15574 esac
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15638 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15639
15640 library_names_spec=
15641 libname_spec='lib$name'
15642 soname_spec=
15643 shrext_cmds=.so
15644 postinstall_cmds=
15645 postuninstall_cmds=
15646 finish_cmds=
15647 finish_eval=
15648 shlibpath_var=
15649 shlibpath_overrides_runpath=unknown
15650 version_type=none
15651 dynamic_linker="$host_os ld.so"
15652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15653 need_lib_prefix=unknown
15654 hardcode_into_libs=no
15655
15656 # when you set need_version to no, make sure it does not cause -set_version
15657 # flags to be left without arguments
15658 need_version=unknown
15659
15660
15661
15662 case $host_os in
15663 aix3*)
15664 version_type=linux # correct to gnu/linux during the next big refactor
15665 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15666 shlibpath_var=LIBPATH
15667
15668 # AIX 3 has no versioning support, so we append a major version to the name.
15669 soname_spec='$libname$release$shared_ext$major'
15670 ;;
15671
15672 aix[4-9]*)
15673 version_type=linux # correct to gnu/linux during the next big refactor
15674 need_lib_prefix=no
15675 need_version=no
15676 hardcode_into_libs=yes
15677 if test ia64 = "$host_cpu"; then
15678 # AIX 5 supports IA64
15679 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 else
15682 # With GCC up to 2.95.x, collect2 would create an import file
15683 # for dependence libraries. The import file would start with
15684 # the line '#! .'. This would cause the generated library to
15685 # depend on '.', always an invalid library. This was fixed in
15686 # development snapshots of GCC prior to 3.0.
15687 case $host_os in
15688 aix4 | aix4.[01] | aix4.[01].*)
15689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15690 echo ' yes '
15691 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15692 :
15693 else
15694 can_build_shared=no
15695 fi
15696 ;;
15697 esac
15698 # Using Import Files as archive members, it is possible to support
15699 # filename-based versioning of shared library archives on AIX. While
15700 # this would work for both with and without runtime linking, it will
15701 # prevent static linking of such archives. So we do filename-based
15702 # shared library versioning with .so extension only, which is used
15703 # when both runtime linking and shared linking is enabled.
15704 # Unfortunately, runtime linking may impact performance, so we do
15705 # not want this to be the default eventually. Also, we use the
15706 # versioned .so libs for executables only if there is the -brtl
15707 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15708 # To allow for filename-based versioning support, we need to create
15709 # libNAME.so.V as an archive file, containing:
15710 # *) an Import File, referring to the versioned filename of the
15711 # archive as well as the shared archive member, telling the
15712 # bitwidth (32 or 64) of that shared object, and providing the
15713 # list of exported symbols of that shared object, eventually
15714 # decorated with the 'weak' keyword
15715 # *) the shared object with the F_LOADONLY flag set, to really avoid
15716 # it being seen by the linker.
15717 # At run time we better use the real file rather than another symlink,
15718 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15719
15720 case $with_aix_soname,$aix_use_runtimelinking in
15721 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15722 # soname into executable. Probably we can add versioning support to
15723 # collect2, so additional links can be useful in future.
15724 aix,yes) # traditional libtool
15725 dynamic_linker='AIX unversionable lib.so'
15726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15727 # instead of lib<name>.a to let people know that these are not
15728 # typical AIX shared libraries.
15729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15730 ;;
15731 aix,no) # traditional AIX only
15732 dynamic_linker='AIX lib.a(lib.so.V)'
15733 # We preserve .a as extension for shared libraries through AIX4.2
15734 # and later when we are not doing run time linking.
15735 library_names_spec='$libname$release.a $libname.a'
15736 soname_spec='$libname$release$shared_ext$major'
15737 ;;
15738 svr4,*) # full svr4 only
15739 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15741 # We do not specify a path in Import Files, so LIBPATH fires.
15742 shlibpath_overrides_runpath=yes
15743 ;;
15744 *,yes) # both, prefer svr4
15745 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15746 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15747 # unpreferred sharedlib libNAME.a needs extra handling
15748 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15749 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15750 # We do not specify a path in Import Files, so LIBPATH fires.
15751 shlibpath_overrides_runpath=yes
15752 ;;
15753 *,no) # both, prefer aix
15754 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15755 library_names_spec='$libname$release.a $libname.a'
15756 soname_spec='$libname$release$shared_ext$major'
15757 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15758 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15759 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15760 ;;
15761 esac
15762 shlibpath_var=LIBPATH
15763 fi
15764 ;;
15765
15766 amigaos*)
15767 case $host_cpu in
15768 powerpc)
15769 # Since July 2007 AmigaOS4 officially supports .so libraries.
15770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15772 ;;
15773 m68k)
15774 library_names_spec='$libname.ixlibrary $libname.a'
15775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15776 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15777 ;;
15778 esac
15779 ;;
15780
15781 beos*)
15782 library_names_spec='$libname$shared_ext'
15783 dynamic_linker="$host_os ld.so"
15784 shlibpath_var=LIBRARY_PATH
15785 ;;
15786
15787 bsdi[45]*)
15788 version_type=linux # correct to gnu/linux during the next big refactor
15789 need_version=no
15790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15791 soname_spec='$libname$release$shared_ext$major'
15792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15796 # the default ld.so.conf also contains /usr/contrib/lib and
15797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15798 # libtool to hard-code these into programs
15799 ;;
15800
15801 cygwin* | mingw* | pw32* | cegcc*)
15802 version_type=windows
15803 shrext_cmds=.dll
15804 need_version=no
15805 need_lib_prefix=no
15806
15807 case $GCC,$cc_basename in
15808 yes,*)
15809 # gcc
15810 library_names_spec='$libname.dll.a'
15811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15812 postinstall_cmds='base_file=`basename \$file`~
15813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15814 dldir=$destdir/`dirname \$dlpath`~
15815 test -d \$dldir || mkdir -p \$dldir~
15816 $install_prog $dir/$dlname \$dldir/$dlname~
15817 chmod a+x \$dldir/$dlname~
15818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15820 fi'
15821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15822 dlpath=$dir/\$dldll~
15823 $RM \$dlpath'
15824 shlibpath_overrides_runpath=yes
15825
15826 case $host_os in
15827 cygwin*)
15828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15829 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15830
15831 ;;
15832 mingw* | cegcc*)
15833 # MinGW DLLs use traditional 'lib' prefix
15834 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15835 ;;
15836 pw32*)
15837 # pw32 DLLs use 'pw' prefix rather than 'lib'
15838 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15839 ;;
15840 esac
15841 dynamic_linker='Win32 ld.exe'
15842 ;;
15843
15844 *,cl*)
15845 # Native MSVC
15846 libname_spec='$name'
15847 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15848 library_names_spec='$libname.dll.lib'
15849
15850 case $build_os in
15851 mingw*)
15852 sys_lib_search_path_spec=
15853 lt_save_ifs=$IFS
15854 IFS=';'
15855 for lt_path in $LIB
15856 do
15857 IFS=$lt_save_ifs
15858 # Let DOS variable expansion print the short 8.3 style file name.
15859 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15860 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15861 done
15862 IFS=$lt_save_ifs
15863 # Convert to MSYS style.
15864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15865 ;;
15866 cygwin*)
15867 # Convert to unix form, then to dos form, then back to unix form
15868 # but this time dos style (no spaces!) so that the unix form looks
15869 # like /cygdrive/c/PROGRA~1:/cygdr...
15870 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15871 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15872 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15873 ;;
15874 *)
15875 sys_lib_search_path_spec=$LIB
15876 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15877 # It is most probably a Windows format PATH.
15878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15879 else
15880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15881 fi
15882 # FIXME: find the short name or the path components, as spaces are
15883 # common. (e.g. "Program Files" -> "PROGRA~1")
15884 ;;
15885 esac
15886
15887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15888 postinstall_cmds='base_file=`basename \$file`~
15889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15890 dldir=$destdir/`dirname \$dlpath`~
15891 test -d \$dldir || mkdir -p \$dldir~
15892 $install_prog $dir/$dlname \$dldir/$dlname'
15893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15894 dlpath=$dir/\$dldll~
15895 $RM \$dlpath'
15896 shlibpath_overrides_runpath=yes
15897 dynamic_linker='Win32 link.exe'
15898 ;;
15899
15900 *)
15901 # Assume MSVC wrapper
15902 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15903 dynamic_linker='Win32 ld.exe'
15904 ;;
15905 esac
15906 # FIXME: first we should search . and the directory the executable is in
15907 shlibpath_var=PATH
15908 ;;
15909
15910 darwin* | rhapsody*)
15911 dynamic_linker="$host_os dyld"
15912 version_type=darwin
15913 need_lib_prefix=no
15914 need_version=no
15915 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15916 soname_spec='$libname$release$major$shared_ext'
15917 shlibpath_overrides_runpath=yes
15918 shlibpath_var=DYLD_LIBRARY_PATH
15919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15920
15921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15922 ;;
15923
15924 dgux*)
15925 version_type=linux # correct to gnu/linux during the next big refactor
15926 need_lib_prefix=no
15927 need_version=no
15928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15929 soname_spec='$libname$release$shared_ext$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 ;;
15932
15933 freebsd* | dragonfly*)
15934 # DragonFly does not have aout. When/if they implement a new
15935 # versioning mechanism, adjust this.
15936 if test -x /usr/bin/objformat; then
15937 objformat=`/usr/bin/objformat`
15938 else
15939 case $host_os in
15940 freebsd[23].*) objformat=aout ;;
15941 *) objformat=elf ;;
15942 esac
15943 fi
15944 version_type=freebsd-$objformat
15945 case $version_type in
15946 freebsd-elf*)
15947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15948 soname_spec='$libname$release$shared_ext$major'
15949 need_version=no
15950 need_lib_prefix=no
15951 ;;
15952 freebsd-*)
15953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15954 need_version=yes
15955 ;;
15956 esac
15957 shlibpath_var=LD_LIBRARY_PATH
15958 case $host_os in
15959 freebsd2.*)
15960 shlibpath_overrides_runpath=yes
15961 ;;
15962 freebsd3.[01]* | freebsdelf3.[01]*)
15963 shlibpath_overrides_runpath=yes
15964 hardcode_into_libs=yes
15965 ;;
15966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15968 shlibpath_overrides_runpath=no
15969 hardcode_into_libs=yes
15970 ;;
15971 *) # from 4.6 on, and DragonFly
15972 shlibpath_overrides_runpath=yes
15973 hardcode_into_libs=yes
15974 ;;
15975 esac
15976 ;;
15977
15978 haiku*)
15979 version_type=linux # correct to gnu/linux during the next big refactor
15980 need_lib_prefix=no
15981 need_version=no
15982 dynamic_linker="$host_os runtime_loader"
15983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15984 soname_spec='$libname$release$shared_ext$major'
15985 shlibpath_var=LIBRARY_PATH
15986 shlibpath_overrides_runpath=no
15987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15988 hardcode_into_libs=yes
15989 ;;
15990
15991 hpux9* | hpux10* | hpux11*)
15992 # Give a soname corresponding to the major version so that dld.sl refuses to
15993 # link against other versions.
15994 version_type=sunos
15995 need_lib_prefix=no
15996 need_version=no
15997 case $host_cpu in
15998 ia64*)
15999 shrext_cmds='.so'
16000 hardcode_into_libs=yes
16001 dynamic_linker="$host_os dld.so"
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16005 soname_spec='$libname$release$shared_ext$major'
16006 if test 32 = "$HPUX_IA64_MODE"; then
16007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16008 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16009 else
16010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16011 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16012 fi
16013 ;;
16014 hppa*64*)
16015 shrext_cmds='.sl'
16016 hardcode_into_libs=yes
16017 dynamic_linker="$host_os dld.sl"
16018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16021 soname_spec='$libname$release$shared_ext$major'
16022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16024 ;;
16025 *)
16026 shrext_cmds='.sl'
16027 dynamic_linker="$host_os dld.sl"
16028 shlibpath_var=SHLIB_PATH
16029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16031 soname_spec='$libname$release$shared_ext$major'
16032 ;;
16033 esac
16034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16035 postinstall_cmds='chmod 555 $lib'
16036 # or fails outright, so override atomically:
16037 install_override_mode=555
16038 ;;
16039
16040 interix[3-9]*)
16041 version_type=linux # correct to gnu/linux during the next big refactor
16042 need_lib_prefix=no
16043 need_version=no
16044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16045 soname_spec='$libname$release$shared_ext$major'
16046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16050 ;;
16051
16052 irix5* | irix6* | nonstopux*)
16053 case $host_os in
16054 nonstopux*) version_type=nonstopux ;;
16055 *)
16056 if test yes = "$lt_cv_prog_gnu_ld"; then
16057 version_type=linux # correct to gnu/linux during the next big refactor
16058 else
16059 version_type=irix
16060 fi ;;
16061 esac
16062 need_lib_prefix=no
16063 need_version=no
16064 soname_spec='$libname$release$shared_ext$major'
16065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16066 case $host_os in
16067 irix5* | nonstopux*)
16068 libsuff= shlibsuff=
16069 ;;
16070 *)
16071 case $LD in # libtool.m4 will add one of these switches to LD
16072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16073 libsuff= shlibsuff= libmagic=32-bit;;
16074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16075 libsuff=32 shlibsuff=N32 libmagic=N32;;
16076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16078 *) libsuff= shlibsuff= libmagic=never-match;;
16079 esac
16080 ;;
16081 esac
16082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16083 shlibpath_overrides_runpath=no
16084 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16085 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16086 hardcode_into_libs=yes
16087 ;;
16088
16089 # No shared lib support for Linux oldld, aout, or coff.
16090 linux*oldld* | linux*aout* | linux*coff*)
16091 dynamic_linker=no
16092 ;;
16093
16094 linux*android*)
16095 version_type=none # Android doesn't support versioned libraries.
16096 need_lib_prefix=no
16097 need_version=no
16098 library_names_spec='$libname$release$shared_ext'
16099 soname_spec='$libname$release$shared_ext'
16100 finish_cmds=
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16103
16104 # This implies no fast_install, which is unacceptable.
16105 # Some rework will be needed to allow for fast_install
16106 # before this can be enabled.
16107 hardcode_into_libs=yes
16108
16109 dynamic_linker='Android linker'
16110 # Don't embed -rpath directories since the linker doesn't support them.
16111 hardcode_libdir_flag_spec_CXX='-L$libdir'
16112 ;;
16113
16114 # This must be glibc/ELF.
16115 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16116 version_type=linux # correct to gnu/linux during the next big refactor
16117 need_lib_prefix=no
16118 need_version=no
16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16120 soname_spec='$libname$release$shared_ext$major'
16121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 shlibpath_overrides_runpath=no
16124
16125 # Some binutils ld are patched to set DT_RUNPATH
16126 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16127 $as_echo_n "(cached) " >&6
16128 else
16129 lt_cv_shlibpath_overrides_runpath=no
16130 save_LDFLAGS=$LDFLAGS
16131 save_libdir=$libdir
16132 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16133 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136
16137 int
16138 main ()
16139 {
16140
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 if ac_fn_cxx_try_link "$LINENO"; then :
16146 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16147 lt_cv_shlibpath_overrides_runpath=yes
16148 fi
16149 fi
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 LDFLAGS=$save_LDFLAGS
16153 libdir=$save_libdir
16154
16155 fi
16156
16157 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16158
16159 # This implies no fast_install, which is unacceptable.
16160 # Some rework will be needed to allow for fast_install
16161 # before this can be enabled.
16162 hardcode_into_libs=yes
16163
16164 # Ideally, we could use ldconfig to report *all* directores which are
16165 # searched for libraries, however this is still not possible. Aside from not
16166 # being certain /sbin/ldconfig is available, command
16167 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16168 # even though it is searched at run-time. Try to do the best guess by
16169 # appending ld.so.conf contents (and includes) to the search path.
16170 if test -f /etc/ld.so.conf; then
16171 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' ' '`
16172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16173 fi
16174
16175 # We used to test for /lib/ld.so.1 and disable shared libraries on
16176 # powerpc, because MkLinux only supported shared libraries with the
16177 # GNU dynamic linker. Since this was broken with cross compilers,
16178 # most powerpc-linux boxes support dynamic linking these days and
16179 # people can always --disable-shared, the test was removed, and we
16180 # assume the GNU/Linux dynamic linker is in use.
16181 dynamic_linker='GNU/Linux ld.so'
16182 ;;
16183
16184 netbsd*)
16185 version_type=sunos
16186 need_lib_prefix=no
16187 need_version=no
16188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16191 dynamic_linker='NetBSD (a.out) ld.so'
16192 else
16193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16194 soname_spec='$libname$release$shared_ext$major'
16195 dynamic_linker='NetBSD ld.elf_so'
16196 fi
16197 shlibpath_var=LD_LIBRARY_PATH
16198 shlibpath_overrides_runpath=yes
16199 hardcode_into_libs=yes
16200 ;;
16201
16202 newsos6)
16203 version_type=linux # correct to gnu/linux during the next big refactor
16204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 shlibpath_overrides_runpath=yes
16207 ;;
16208
16209 *nto* | *qnx*)
16210 version_type=qnx
16211 need_lib_prefix=no
16212 need_version=no
16213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16214 soname_spec='$libname$release$shared_ext$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=no
16217 hardcode_into_libs=yes
16218 dynamic_linker='ldqnx.so'
16219 ;;
16220
16221 openbsd* | bitrig*)
16222 version_type=sunos
16223 sys_lib_dlsearch_path_spec=/usr/lib
16224 need_lib_prefix=no
16225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16226 need_version=no
16227 else
16228 need_version=yes
16229 fi
16230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=yes
16234 ;;
16235
16236 os2*)
16237 libname_spec='$name'
16238 version_type=windows
16239 shrext_cmds=.dll
16240 need_version=no
16241 need_lib_prefix=no
16242 # OS/2 can only load a DLL with a base name of 8 characters or less.
16243 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16244 v=$($ECHO $release$versuffix | tr -d .-);
16245 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16246 $ECHO $n$v`$shared_ext'
16247 library_names_spec='${libname}_dll.$libext'
16248 dynamic_linker='OS/2 ld.exe'
16249 shlibpath_var=BEGINLIBPATH
16250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252 postinstall_cmds='base_file=`basename \$file`~
16253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16254 dldir=$destdir/`dirname \$dlpath`~
16255 test -d \$dldir || mkdir -p \$dldir~
16256 $install_prog $dir/$dlname \$dldir/$dlname~
16257 chmod a+x \$dldir/$dlname~
16258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16260 fi'
16261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16262 dlpath=$dir/\$dldll~
16263 $RM \$dlpath'
16264 ;;
16265
16266 osf3* | osf4* | osf5*)
16267 version_type=osf
16268 need_lib_prefix=no
16269 need_version=no
16270 soname_spec='$libname$release$shared_ext$major'
16271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275 ;;
16276
16277 rdos*)
16278 dynamic_linker=no
16279 ;;
16280
16281 solaris*)
16282 version_type=linux # correct to gnu/linux during the next big refactor
16283 need_lib_prefix=no
16284 need_version=no
16285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16286 soname_spec='$libname$release$shared_ext$major'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=yes
16289 hardcode_into_libs=yes
16290 # ldd complains unless libraries are executable
16291 postinstall_cmds='chmod +x $lib'
16292 ;;
16293
16294 sunos4*)
16295 version_type=sunos
16296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16297 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=yes
16300 if test yes = "$with_gnu_ld"; then
16301 need_lib_prefix=no
16302 fi
16303 need_version=yes
16304 ;;
16305
16306 sysv4 | sysv4.3*)
16307 version_type=linux # correct to gnu/linux during the next big refactor
16308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16309 soname_spec='$libname$release$shared_ext$major'
16310 shlibpath_var=LD_LIBRARY_PATH
16311 case $host_vendor in
16312 sni)
16313 shlibpath_overrides_runpath=no
16314 need_lib_prefix=no
16315 runpath_var=LD_RUN_PATH
16316 ;;
16317 siemens)
16318 need_lib_prefix=no
16319 ;;
16320 motorola)
16321 need_lib_prefix=no
16322 need_version=no
16323 shlibpath_overrides_runpath=no
16324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16325 ;;
16326 esac
16327 ;;
16328
16329 sysv4*MP*)
16330 if test -d /usr/nec; then
16331 version_type=linux # correct to gnu/linux during the next big refactor
16332 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16333 soname_spec='$libname$shared_ext.$major'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 fi
16336 ;;
16337
16338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16339 version_type=sco
16340 need_lib_prefix=no
16341 need_version=no
16342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16343 soname_spec='$libname$release$shared_ext$major'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=yes
16346 hardcode_into_libs=yes
16347 if test yes = "$with_gnu_ld"; then
16348 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16349 else
16350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16351 case $host_os in
16352 sco3.2v5*)
16353 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16354 ;;
16355 esac
16356 fi
16357 sys_lib_dlsearch_path_spec='/usr/lib'
16358 ;;
16359
16360 tpf*)
16361 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16362 version_type=linux # correct to gnu/linux during the next big refactor
16363 need_lib_prefix=no
16364 need_version=no
16365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 shlibpath_overrides_runpath=no
16368 hardcode_into_libs=yes
16369 ;;
16370
16371 uts4*)
16372 version_type=linux # correct to gnu/linux during the next big refactor
16373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16374 soname_spec='$libname$release$shared_ext$major'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 ;;
16377
16378 *)
16379 dynamic_linker=no
16380 ;;
16381 esac
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16383 $as_echo "$dynamic_linker" >&6; }
16384 test no = "$dynamic_linker" && can_build_shared=no
16385
16386 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16387 if test yes = "$GCC"; then
16388 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16389 fi
16390
16391 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16392 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16393 fi
16394
16395 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16396 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16397 fi
16398
16399 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16400 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16401
16402 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16403 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16404
16405 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16406 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16449 hardcode_action_CXX=
16450 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16451 test -n "$runpath_var_CXX" ||
16452 test yes = "$hardcode_automatic_CXX"; then
16453
16454 # We can hardcode non-existent directories.
16455 if test no != "$hardcode_direct_CXX" &&
16456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16457 # have to relink, otherwise we might link with an installed library
16458 # when we should be linking with a yet-to-be-installed one
16459 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16460 test no != "$hardcode_minus_L_CXX"; then
16461 # Linking always hardcodes the temporary library directory.
16462 hardcode_action_CXX=relink
16463 else
16464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16465 hardcode_action_CXX=immediate
16466 fi
16467 else
16468 # We cannot hardcode anything, or else we can only hardcode existing
16469 # directories.
16470 hardcode_action_CXX=unsupported
16471 fi
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16473 $as_echo "$hardcode_action_CXX" >&6; }
16474
16475 if test relink = "$hardcode_action_CXX" ||
16476 test yes = "$inherit_rpath_CXX"; then
16477 # Fast installation is not supported
16478 enable_fast_install=no
16479 elif test yes = "$shlibpath_overrides_runpath" ||
16480 test no = "$enable_shared"; then
16481 # Fast installation is not necessary
16482 enable_fast_install=needless
16483 fi
16484
16485
16486
16487
16488
16489
16490
16491 fi # test -n "$compiler"
16492
16493 CC=$lt_save_CC
16494 CFLAGS=$lt_save_CFLAGS
16495 LDCXX=$LD
16496 LD=$lt_save_LD
16497 GCC=$lt_save_GCC
16498 with_gnu_ld=$lt_save_with_gnu_ld
16499 lt_cv_path_LDCXX=$lt_cv_path_LD
16500 lt_cv_path_LD=$lt_save_path_LD
16501 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16502 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16503 fi # test yes != "$_lt_caught_CXX_error"
16504
16505 ac_ext=c
16506 ac_cpp='$CPP $CPPFLAGS'
16507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525 ac_config_commands="$ac_config_commands libtool"
16526
16527
16528
16529
16530 # Only expand once:
16531
16532
16533
16534 ac_ext=cpp
16535 ac_cpp='$CXXCPP $CPPFLAGS'
16536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16539
16540
16541 ax_cxx_compile_cxx11_required=true
16542 ac_ext=cpp
16543 ac_cpp='$CXXCPP $CPPFLAGS'
16544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16547 ac_success=no
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16549 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16550 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16551 $as_echo_n "(cached) " >&6
16552 else
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555
16556 template <typename T>
16557 struct check
16558 {
16559 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16560 };
16561
16562 struct Base {
16563 virtual void f() {}
16564 };
16565 struct Child : public Base {
16566 virtual void f() override {}
16567 };
16568
16569 typedef check<check<bool>> right_angle_brackets;
16570
16571 int a;
16572 decltype(a) b;
16573
16574 typedef check<int> check_type;
16575 check_type c;
16576 check_type&& cr = static_cast<check_type&&>(c);
16577
16578 auto d = a;
16579 auto l = [](){};
16580
16581 _ACEOF
16582 if ac_fn_cxx_try_compile "$LINENO"; then :
16583 ax_cv_cxx_compile_cxx11=yes
16584 else
16585 ax_cv_cxx_compile_cxx11=no
16586 fi
16587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588 fi
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16590 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16591 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16592 ac_success=yes
16593 fi
16594
16595 if test x$ac_success = xno; then
16596 for switch in -std=gnu++11 -std=gnu++0x; do
16597 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16599 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16600 if eval \${$cachevar+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602 else
16603 ac_save_CXXFLAGS="$CXXFLAGS"
16604 CXXFLAGS="$CXXFLAGS $switch"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607
16608 template <typename T>
16609 struct check
16610 {
16611 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16612 };
16613
16614 struct Base {
16615 virtual void f() {}
16616 };
16617 struct Child : public Base {
16618 virtual void f() override {}
16619 };
16620
16621 typedef check<check<bool>> right_angle_brackets;
16622
16623 int a;
16624 decltype(a) b;
16625
16626 typedef check<int> check_type;
16627 check_type c;
16628 check_type&& cr = static_cast<check_type&&>(c);
16629
16630 auto d = a;
16631 auto l = [](){};
16632
16633 _ACEOF
16634 if ac_fn_cxx_try_compile "$LINENO"; then :
16635 eval $cachevar=yes
16636 else
16637 eval $cachevar=no
16638 fi
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 CXXFLAGS="$ac_save_CXXFLAGS"
16641 fi
16642 eval ac_res=\$$cachevar
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16644 $as_echo "$ac_res" >&6; }
16645 if eval test x\$$cachevar = xyes; then
16646 CXXFLAGS="$CXXFLAGS $switch"
16647 ac_success=yes
16648 break
16649 fi
16650 done
16651 fi
16652
16653
16654 ac_ext=cpp
16655 ac_cpp='$CXXCPP $CPPFLAGS'
16656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16659
16660 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16661 if test x$ac_success = xno; then
16662 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16663 fi
16664 else
16665 if test x$ac_success = xno; then
16666 HAVE_CXX11=0
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16668 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16669 else
16670 HAVE_CXX11=1
16671
16672 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16673
16674 fi
16675
16676
16677 fi
16678
16679 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16680
16681
16682
16683
16684
16685
16686
16687
16688 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16689 if test -n "$ac_tool_prefix"; then
16690 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16691 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16693 $as_echo_n "checking for $ac_word... " >&6; }
16694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 case $PKG_CONFIG in
16698 [\\/]* | ?:[\\/]*)
16699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16700 ;;
16701 *)
16702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH
16704 do
16705 IFS=$as_save_IFS
16706 test -z "$as_dir" && as_dir=.
16707 for ac_exec_ext in '' $ac_executable_extensions; do
16708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16711 break 2
16712 fi
16713 done
16714 done
16715 IFS=$as_save_IFS
16716
16717 ;;
16718 esac
16719 fi
16720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16721 if test -n "$PKG_CONFIG"; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16723 $as_echo "$PKG_CONFIG" >&6; }
16724 else
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16727 fi
16728
16729
16730 fi
16731 if test -z "$ac_cv_path_PKG_CONFIG"; then
16732 ac_pt_PKG_CONFIG=$PKG_CONFIG
16733 # Extract the first word of "pkg-config", so it can be a program name with args.
16734 set dummy pkg-config; ac_word=$2
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16736 $as_echo_n "checking for $ac_word... " >&6; }
16737 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16738 $as_echo_n "(cached) " >&6
16739 else
16740 case $ac_pt_PKG_CONFIG in
16741 [\\/]* | ?:[\\/]*)
16742 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16743 ;;
16744 *)
16745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16747 do
16748 IFS=$as_save_IFS
16749 test -z "$as_dir" && as_dir=.
16750 for ac_exec_ext in '' $ac_executable_extensions; do
16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754 break 2
16755 fi
16756 done
16757 done
16758 IFS=$as_save_IFS
16759
16760 ;;
16761 esac
16762 fi
16763 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16764 if test -n "$ac_pt_PKG_CONFIG"; then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16766 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16767 else
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16769 $as_echo "no" >&6; }
16770 fi
16771
16772 if test "x$ac_pt_PKG_CONFIG" = x; then
16773 PKG_CONFIG=""
16774 else
16775 case $cross_compiling:$ac_tool_warned in
16776 yes:)
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16779 ac_tool_warned=yes ;;
16780 esac
16781 PKG_CONFIG=$ac_pt_PKG_CONFIG
16782 fi
16783 else
16784 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16785 fi
16786
16787 fi
16788 if test -n "$PKG_CONFIG"; then
16789 _pkg_min_version=0.22
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16791 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16792 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16794 $as_echo "yes" >&6; }
16795 else
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16797 $as_echo "no" >&6; }
16798 PKG_CONFIG=""
16799 fi
16800 fi
16801
16802 # Extract the first word of "git", so it can be a program name with args.
16803 set dummy git; ac_word=$2
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805 $as_echo_n "checking for $ac_word... " >&6; }
16806 if ${ac_cv_path_GIT+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808 else
16809 case $GIT in
16810 [\\/]* | ?:[\\/]*)
16811 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16812 ;;
16813 *)
16814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16815 for as_dir in $PATH
16816 do
16817 IFS=$as_save_IFS
16818 test -z "$as_dir" && as_dir=.
16819 for ac_exec_ext in '' $ac_executable_extensions; do
16820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16821 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16823 break 2
16824 fi
16825 done
16826 done
16827 IFS=$as_save_IFS
16828
16829 ;;
16830 esac
16831 fi
16832 GIT=$ac_cv_path_GIT
16833 if test -n "$GIT"; then
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16835 $as_echo "$GIT" >&6; }
16836 else
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16838 $as_echo "no" >&6; }
16839 fi
16840
16841
16842 # Extract the first word of "time", so it can be a program name with args.
16843 set dummy time; ac_word=$2
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16845 $as_echo_n "checking for $ac_word... " >&6; }
16846 if ${ac_cv_path_TIME+:} false; then :
16847 $as_echo_n "(cached) " >&6
16848 else
16849 case $TIME in
16850 [\\/]* | ?:[\\/]*)
16851 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16852 ;;
16853 *)
16854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16855 for as_dir in $PATH
16856 do
16857 IFS=$as_save_IFS
16858 test -z "$as_dir" && as_dir=.
16859 for ac_exec_ext in '' $ac_executable_extensions; do
16860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16861 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16863 break 2
16864 fi
16865 done
16866 done
16867 IFS=$as_save_IFS
16868
16869 ;;
16870 esac
16871 fi
16872 TIME=$ac_cv_path_TIME
16873 if test -n "$TIME"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16875 $as_echo "$TIME" >&6; }
16876 else
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878 $as_echo "no" >&6; }
16879 fi
16880
16881
16882
16883
16884
16885
16886
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16888 $as_echo_n "checking for bison >= 3.0... " >&6; }
16889 if test -z "$BISON"; then
16890 ac_path_BISON_found=false
16891 # Loop through the user's path and test for each of PROGNAME-LIST
16892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16893 for as_dir in $PATH
16894 do
16895 IFS=$as_save_IFS
16896 test -z "$as_dir" && as_dir=.
16897 for ac_prog in bison; do
16898 for ac_exec_ext in '' $ac_executable_extensions; do
16899 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16900 as_fn_executable_p "$ac_path_BISON" || continue
16901 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16902 if ${version:+false} :; then :
16903
16904 else
16905 as_awk_strverscmp='
16906 # Use only awk features that work with 7th edition Unix awk (1978).
16907 # My, what an old awk you have, Mr. Solaris!
16908 END {
16909 while (length(v1) && length(v2)) {
16910 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16911 # Normally this is a single character, but if v1 and v2 contain digits,
16912 # compare them as integers and fractions as strverscmp does.
16913 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16914 # Split v1 and v2 into their leading digit string components d1 and d2,
16915 # and advance v1 and v2 past the leading digit strings.
16916 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16917 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16918 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16919 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16920 if (d1 ~ /^0/) {
16921 if (d2 ~ /^0/) {
16922 # Compare two fractions.
16923 while (d1 ~ /^0/ && d2 ~ /^0/) {
16924 d1 = substr(d1, 2); len1--
16925 d2 = substr(d2, 2); len2--
16926 }
16927 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16928 # The two components differ in length, and the common prefix
16929 # contains only leading zeros. Consider the longer to be less.
16930 d1 = -len1
16931 d2 = -len2
16932 } else {
16933 # Otherwise, compare as strings.
16934 d1 = "x" d1
16935 d2 = "x" d2
16936 }
16937 } else {
16938 # A fraction is less than an integer.
16939 exit 1
16940 }
16941 } else {
16942 if (d2 ~ /^0/) {
16943 # An integer is greater than a fraction.
16944 exit 2
16945 } else {
16946 # Compare two integers.
16947 d1 += 0
16948 d2 += 0
16949 }
16950 }
16951 } else {
16952 # The normal case, without worrying about digits.
16953 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16954 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16955 }
16956 if (d1 < d2) exit 1
16957 if (d1 > d2) exit 2
16958 }
16959 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16960 # which mishandles some comparisons of empty strings to integers.
16961 if (length(v2)) exit 1
16962 if (length(v1)) exit 2
16963 }
16964 '
16965 as_arg_v1=$version
16966 as_arg_v2=3.0
16967 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16968 case $? in #(
16969 1) :
16970 ;; #(
16971 0) :
16972 ac_cv_path_BISON=$ac_path_BISON ;; #(
16973 2) :
16974 ac_cv_path_BISON=$ac_path_BISON ;; #(
16975 *) :
16976 ;;
16977 esac
16978 fi
16979
16980 $ac_path_BISON_found && break 3
16981 done
16982 done
16983 done
16984 IFS=$as_save_IFS
16985 if test -z "$ac_cv_path_BISON"; then
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987 $as_echo "no" >&6; }
16988 fi
16989 else
16990 ac_cv_path_BISON=$BISON
16991 fi
16992
16993
16994 if true; then :
16995
16996 BISON=$ac_cv_path_BISON
16997
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16999 $as_echo "$BISON" >&6; }
17000
17001 else
17002 if true; then :
17003
17004 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
17005
17006 else
17007
17008 BISON=:
17009
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17011 $as_echo "no" >&6; }
17012
17013 fi
17014 fi
17015
17016
17017
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17020 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
17021 if test -z "$FLEX"; then
17022 ac_path_FLEX_found=false
17023 # Loop through the user's path and test for each of PROGNAME-LIST
17024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17025 for as_dir in $PATH
17026 do
17027 IFS=$as_save_IFS
17028 test -z "$as_dir" && as_dir=.
17029 for ac_prog in flex; do
17030 for ac_exec_ext in '' $ac_executable_extensions; do
17031 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17032 as_fn_executable_p "$ac_path_FLEX" || continue
17033 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17034 if ${version:+false} :; then :
17035
17036 else
17037 as_arg_v1=$version
17038 as_arg_v2=2.5.33
17039 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17040 case $? in #(
17041 1) :
17042 ;; #(
17043 0) :
17044 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17045 2) :
17046 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17047 *) :
17048 ;;
17049 esac
17050 fi
17051
17052 $ac_path_FLEX_found && break 3
17053 done
17054 done
17055 done
17056 IFS=$as_save_IFS
17057 if test -z "$ac_cv_path_FLEX"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17059 $as_echo "no" >&6; }
17060 fi
17061 else
17062 ac_cv_path_FLEX=$FLEX
17063 fi
17064
17065
17066 if true; then :
17067
17068 FLEX=$ac_cv_path_FLEX
17069
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17071 $as_echo "$FLEX" >&6; }
17072
17073 else
17074 if true; then :
17075
17076 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
17077
17078 else
17079
17080 FLEX=:
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083 $as_echo "no" >&6; }
17084
17085 fi
17086 fi
17087
17088
17089
17090
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17092 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17093 if test -z "$GPERF"; then
17094 ac_path_GPERF_found=false
17095 # Loop through the user's path and test for each of PROGNAME-LIST
17096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17097 for as_dir in $PATH
17098 do
17099 IFS=$as_save_IFS
17100 test -z "$as_dir" && as_dir=.
17101 for ac_prog in gperf; do
17102 for ac_exec_ext in '' $ac_executable_extensions; do
17103 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17104 as_fn_executable_p "$ac_path_GPERF" || continue
17105 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17106 if ${version:+false} :; then :
17107
17108 else
17109 as_arg_v1=$version
17110 as_arg_v2=3.0.3
17111 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17112 case $? in #(
17113 1) :
17114 ;; #(
17115 0) :
17116 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17117 2) :
17118 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17119 *) :
17120 ;;
17121 esac
17122 fi
17123
17124 $ac_path_GPERF_found && break 3
17125 done
17126 done
17127 done
17128 IFS=$as_save_IFS
17129 if test -z "$ac_cv_path_GPERF"; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17132 fi
17133 else
17134 ac_cv_path_GPERF=$GPERF
17135 fi
17136
17137
17138 if true; then :
17139
17140 GPERF=$ac_cv_path_GPERF
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17143 $as_echo "$GPERF" >&6; }
17144
17145 else
17146 if true; then :
17147
17148 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17149
17150 else
17151
17152 GPERF=:
17153
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 $as_echo "no" >&6; }
17156
17157 fi
17158 fi
17159
17160
17161
17162
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17164 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17165 if test -z "$GNUTAR"; then
17166 ac_path_GNUTAR_found=false
17167 # Loop through the user's path and test for each of PROGNAME-LIST
17168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17169 for as_dir in $PATH
17170 do
17171 IFS=$as_save_IFS
17172 test -z "$as_dir" && as_dir=.
17173 for ac_prog in tar gtar gnutar; do
17174 for ac_exec_ext in '' $ac_executable_extensions; do
17175 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17176 as_fn_executable_p "$ac_path_GNUTAR" || continue
17177 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17178 if ${version:+false} :; then :
17179
17180 else
17181 as_arg_v1=$version
17182 as_arg_v2=1.19
17183 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17184 case $? in #(
17185 1) :
17186 ;; #(
17187 0) :
17188 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17189 2) :
17190 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17191 *) :
17192 ;;
17193 esac
17194 fi
17195
17196 $ac_path_GNUTAR_found && break 3
17197 done
17198 done
17199 done
17200 IFS=$as_save_IFS
17201 if test -z "$ac_cv_path_GNUTAR"; then
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17204 fi
17205 else
17206 ac_cv_path_GNUTAR=$GNUTAR
17207 fi
17208
17209
17210 if true; then :
17211
17212 GNUTAR=$ac_cv_path_GNUTAR
17213
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17215 $as_echo "$GNUTAR" >&6; }
17216
17217 else
17218 if true; then :
17219
17220 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
17221
17222 else
17223
17224 GNUTAR=:
17225
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228
17229 fi
17230 fi
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241 ac_ext=c
17242 ac_cpp='$CPP $CPPFLAGS'
17243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17248 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17249 if ${ac_cv_cflags_warn_all+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 ac_cv_cflags_warn_all="no, unknown"
17253 ac_save_CFLAGS="$CFLAGS"
17254 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" #
17255 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258
17259 int
17260 main ()
17261 {
17262
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 if ac_fn_c_try_compile "$LINENO"; then :
17268 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 done
17272 CFLAGS="$ac_save_CFLAGS"
17273
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17276 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17277
17278
17279 case ".$ac_cv_cflags_warn_all" in
17280 .ok|.ok,*) ;;
17281 .|.no|.no,*) ;;
17282 *) if ${CFLAGS+:} false; then :
17283 case " $CFLAGS " in
17284 *" $ac_cv_cflags_warn_all "*)
17285 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17286 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17287 ac_status=$?
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; }
17290 ;;
17291 *)
17292 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17293 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17294 ac_status=$?
17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296 test $ac_status = 0; }
17297 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17298 ;;
17299 esac
17300 else
17301 CFLAGS="$ac_cv_cflags_warn_all"
17302 fi
17303 ;;
17304 esac
17305
17306 ac_ext=cpp
17307 ac_cpp='$CXXCPP $CPPFLAGS'
17308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17311
17312
17313 ac_ext=cpp
17314 ac_cpp='$CXXCPP $CPPFLAGS'
17315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17318
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17320 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17321 if ${ac_cv_cxxflags_warn_all+:} false; then :
17322 $as_echo_n "(cached) " >&6
17323 else
17324 ac_cv_cxxflags_warn_all="no, unknown"
17325 ac_save_CXXFLAGS="$CXXFLAGS"
17326 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" #
17327 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17330
17331 int
17332 main ()
17333 {
17334
17335 ;
17336 return 0;
17337 }
17338 _ACEOF
17339 if ac_fn_cxx_try_compile "$LINENO"; then :
17340 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 done
17344 CXXFLAGS="$ac_save_CXXFLAGS"
17345
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17348 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17349
17350
17351 case ".$ac_cv_cxxflags_warn_all" in
17352 .ok|.ok,*) ;;
17353 .|.no|.no,*) ;;
17354 *) if ${CXXFLAGS+:} false; then :
17355 case " $CXXFLAGS " in
17356 *" $ac_cv_cxxflags_warn_all "*)
17357 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17358 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17359 ac_status=$?
17360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17361 test $ac_status = 0; }
17362 ;;
17363 *)
17364 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17365 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17366 ac_status=$?
17367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17368 test $ac_status = 0; }
17369 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17370 ;;
17371 esac
17372 else
17373 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17374 fi
17375 ;;
17376 esac
17377
17378 ac_ext=cpp
17379 ac_cpp='$CXXCPP $CPPFLAGS'
17380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17383
17384
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17386 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17387 if ${ac_cv_cxxflags_warn_all+:} false; then :
17388 $as_echo_n "(cached) " >&6
17389 else
17390 ac_cv_cxxflags_warn_all="no, unknown"
17391 ac_save_CXXFLAGS="$CXXFLAGS"
17392 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" #
17393 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17396
17397 int
17398 main ()
17399 {
17400
17401 ;
17402 return 0;
17403 }
17404 _ACEOF
17405 if ac_fn_cxx_try_compile "$LINENO"; then :
17406 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409 done
17410 CXXFLAGS="$ac_save_CXXFLAGS"
17411
17412 fi
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17414 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17415
17416
17417 case ".$ac_cv_cxxflags_warn_all" in
17418 .ok|.ok,*) ;;
17419 .|.no|.no,*) ;;
17420 *) if ${CXXFLAGS+:} false; then :
17421 case " $CXXFLAGS " in
17422 *" $ac_cv_cxxflags_warn_all "*)
17423 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17424 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17425 ac_status=$?
17426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17427 test $ac_status = 0; }
17428 ;;
17429 *)
17430 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17431 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17432 ac_status=$?
17433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17434 test $ac_status = 0; }
17435 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17436 ;;
17437 esac
17438 else
17439 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17440 fi
17441 ;;
17442 esac
17443
17444
17445
17446
17447
17448 ac_ext=c
17449 ac_cpp='$CPP $CPPFLAGS'
17450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17455 $as_echo_n "checking for cc -Werror... " >&6; }
17456
17457 cy_save=$CFLAGS
17458
17459 for element in -Werror; do
17460 haveit=
17461 for x in $CFLAGS; do
17462
17463 acl_save_prefix="$prefix"
17464 prefix="$acl_final_prefix"
17465 acl_save_exec_prefix="$exec_prefix"
17466 exec_prefix="$acl_final_exec_prefix"
17467 eval x=\"$x\"
17468 exec_prefix="$acl_save_exec_prefix"
17469 prefix="$acl_save_prefix"
17470
17471 if test "X$x" = "X$element"; then
17472 haveit=yes
17473 break
17474 fi
17475 done
17476 if test -z "$haveit"; then
17477 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17478 fi
17479 done
17480
17481
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17484
17485 _ACEOF
17486 if ac_fn_c_try_compile "$LINENO"; then :
17487 cy_good=1
17488 else
17489 cy_good=0
17490 fi
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492
17493 CFLAGS=$cy_save
17494 if test "x$cy_good" = x1; then :
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497
17498 for element in -Werror; do
17499 haveit=
17500 for x in $CFLAGS; do
17501
17502 acl_save_prefix="$prefix"
17503 prefix="$acl_final_prefix"
17504 acl_save_exec_prefix="$exec_prefix"
17505 exec_prefix="$acl_final_exec_prefix"
17506 eval x=\"$x\"
17507 exec_prefix="$acl_save_exec_prefix"
17508 prefix="$acl_save_prefix"
17509
17510 if test "X$x" = "X$element"; then
17511 haveit=yes
17512 break
17513 fi
17514 done
17515 if test -z "$haveit"; then
17516 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17517 fi
17518 done
17519
17520
17521 else
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17523 $as_echo "no" >&6; }
17524 fi
17525
17526 ac_ext=cpp
17527 ac_cpp='$CXXCPP $CPPFLAGS'
17528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17531
17532
17533
17534 ac_ext=cpp
17535 ac_cpp='$CXXCPP $CPPFLAGS'
17536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17539
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17541 $as_echo_n "checking for c++ -Werror... " >&6; }
17542
17543 cy_save=$CXXFLAGS
17544
17545 for element in -Werror; do
17546 haveit=
17547 for x in $CXXFLAGS; do
17548
17549 acl_save_prefix="$prefix"
17550 prefix="$acl_final_prefix"
17551 acl_save_exec_prefix="$exec_prefix"
17552 exec_prefix="$acl_final_exec_prefix"
17553 eval x=\"$x\"
17554 exec_prefix="$acl_save_exec_prefix"
17555 prefix="$acl_save_prefix"
17556
17557 if test "X$x" = "X$element"; then
17558 haveit=yes
17559 break
17560 fi
17561 done
17562 if test -z "$haveit"; then
17563 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17564 fi
17565 done
17566
17567
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17570
17571 _ACEOF
17572 if ac_fn_cxx_try_compile "$LINENO"; then :
17573 cy_good=1
17574 else
17575 cy_good=0
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578
17579 CXXFLAGS=$cy_save
17580 if test "x$cy_good" = x1; then :
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17582 $as_echo "yes" >&6; }
17583
17584 for element in -Werror; do
17585 haveit=
17586 for x in $CXXFLAGS; do
17587
17588 acl_save_prefix="$prefix"
17589 prefix="$acl_final_prefix"
17590 acl_save_exec_prefix="$exec_prefix"
17591 exec_prefix="$acl_final_exec_prefix"
17592 eval x=\"$x\"
17593 exec_prefix="$acl_save_exec_prefix"
17594 prefix="$acl_save_prefix"
17595
17596 if test "X$x" = "X$element"; then
17597 haveit=yes
17598 break
17599 fi
17600 done
17601 if test -z "$haveit"; then
17602 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17603 fi
17604 done
17605
17606
17607 else
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17610 fi
17611
17612 ac_ext=cpp
17613 ac_cpp='$CXXCPP $CPPFLAGS'
17614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17617
17618
17619
17620 ac_ext=mm
17621 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17622 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17625
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17627 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17628
17629 cy_save=$OBJCXXFLAGS
17630
17631 for element in -Werror; do
17632 haveit=
17633 for x in $OBJCXXFLAGS; do
17634
17635 acl_save_prefix="$prefix"
17636 prefix="$acl_final_prefix"
17637 acl_save_exec_prefix="$exec_prefix"
17638 exec_prefix="$acl_final_exec_prefix"
17639 eval x=\"$x\"
17640 exec_prefix="$acl_save_exec_prefix"
17641 prefix="$acl_save_prefix"
17642
17643 if test "X$x" = "X$element"; then
17644 haveit=yes
17645 break
17646 fi
17647 done
17648 if test -z "$haveit"; then
17649 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17650 fi
17651 done
17652
17653
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656
17657 _ACEOF
17658 if ac_fn_objcxx_try_compile "$LINENO"; then :
17659 cy_good=1
17660 else
17661 cy_good=0
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664
17665 OBJCXXFLAGS=$cy_save
17666 if test "x$cy_good" = x1; then :
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17668 $as_echo "yes" >&6; }
17669
17670 for element in -Werror; do
17671 haveit=
17672 for x in $OBJCXXFLAGS; do
17673
17674 acl_save_prefix="$prefix"
17675 prefix="$acl_final_prefix"
17676 acl_save_exec_prefix="$exec_prefix"
17677 exec_prefix="$acl_final_exec_prefix"
17678 eval x=\"$x\"
17679 exec_prefix="$acl_save_exec_prefix"
17680 prefix="$acl_save_prefix"
17681
17682 if test "X$x" = "X$element"; then
17683 haveit=yes
17684 break
17685 fi
17686 done
17687 if test -z "$haveit"; then
17688 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17689 fi
17690 done
17691
17692
17693 else
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17695 $as_echo "no" >&6; }
17696 fi
17697
17698 ac_ext=cpp
17699 ac_cpp='$CXXCPP $CPPFLAGS'
17700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703
17704
17705
17706
17707
17708
17709 ac_ext=c
17710 ac_cpp='$CPP $CPPFLAGS'
17711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17716 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17717
17718 cy_save=$CFLAGS
17719
17720 for element in -Wno-deprecated-declarations; do
17721 haveit=
17722 for x in $CFLAGS; do
17723
17724 acl_save_prefix="$prefix"
17725 prefix="$acl_final_prefix"
17726 acl_save_exec_prefix="$exec_prefix"
17727 exec_prefix="$acl_final_exec_prefix"
17728 eval x=\"$x\"
17729 exec_prefix="$acl_save_exec_prefix"
17730 prefix="$acl_save_prefix"
17731
17732 if test "X$x" = "X$element"; then
17733 haveit=yes
17734 break
17735 fi
17736 done
17737 if test -z "$haveit"; then
17738 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17739 fi
17740 done
17741
17742
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745
17746 _ACEOF
17747 if ac_fn_c_try_compile "$LINENO"; then :
17748 cy_good=1
17749 else
17750 cy_good=0
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753
17754 CFLAGS=$cy_save
17755 if test "x$cy_good" = x1; then :
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17757 $as_echo "yes" >&6; }
17758
17759 for element in -Wno-deprecated-declarations; do
17760 haveit=
17761 for x in $CFLAGS; do
17762
17763 acl_save_prefix="$prefix"
17764 prefix="$acl_final_prefix"
17765 acl_save_exec_prefix="$exec_prefix"
17766 exec_prefix="$acl_final_exec_prefix"
17767 eval x=\"$x\"
17768 exec_prefix="$acl_save_exec_prefix"
17769 prefix="$acl_save_prefix"
17770
17771 if test "X$x" = "X$element"; then
17772 haveit=yes
17773 break
17774 fi
17775 done
17776 if test -z "$haveit"; then
17777 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17778 fi
17779 done
17780
17781
17782 else
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784 $as_echo "no" >&6; }
17785 fi
17786
17787 ac_ext=cpp
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17792
17793
17794
17795 ac_ext=cpp
17796 ac_cpp='$CXXCPP $CPPFLAGS'
17797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17800
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17802 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17803
17804 cy_save=$CXXFLAGS
17805
17806 for element in -Wno-deprecated-declarations; do
17807 haveit=
17808 for x in $CXXFLAGS; do
17809
17810 acl_save_prefix="$prefix"
17811 prefix="$acl_final_prefix"
17812 acl_save_exec_prefix="$exec_prefix"
17813 exec_prefix="$acl_final_exec_prefix"
17814 eval x=\"$x\"
17815 exec_prefix="$acl_save_exec_prefix"
17816 prefix="$acl_save_prefix"
17817
17818 if test "X$x" = "X$element"; then
17819 haveit=yes
17820 break
17821 fi
17822 done
17823 if test -z "$haveit"; then
17824 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17825 fi
17826 done
17827
17828
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17831
17832 _ACEOF
17833 if ac_fn_cxx_try_compile "$LINENO"; then :
17834 cy_good=1
17835 else
17836 cy_good=0
17837 fi
17838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17839
17840 CXXFLAGS=$cy_save
17841 if test "x$cy_good" = x1; then :
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17843 $as_echo "yes" >&6; }
17844
17845 for element in -Wno-deprecated-declarations; do
17846 haveit=
17847 for x in $CXXFLAGS; do
17848
17849 acl_save_prefix="$prefix"
17850 prefix="$acl_final_prefix"
17851 acl_save_exec_prefix="$exec_prefix"
17852 exec_prefix="$acl_final_exec_prefix"
17853 eval x=\"$x\"
17854 exec_prefix="$acl_save_exec_prefix"
17855 prefix="$acl_save_prefix"
17856
17857 if test "X$x" = "X$element"; then
17858 haveit=yes
17859 break
17860 fi
17861 done
17862 if test -z "$haveit"; then
17863 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17864 fi
17865 done
17866
17867
17868 else
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17870 $as_echo "no" >&6; }
17871 fi
17872
17873 ac_ext=cpp
17874 ac_cpp='$CXXCPP $CPPFLAGS'
17875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17878
17879
17880
17881 ac_ext=mm
17882 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17883 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17884 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17885 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17886
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17888 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17889
17890 cy_save=$OBJCXXFLAGS
17891
17892 for element in -Wno-deprecated-declarations; do
17893 haveit=
17894 for x in $OBJCXXFLAGS; do
17895
17896 acl_save_prefix="$prefix"
17897 prefix="$acl_final_prefix"
17898 acl_save_exec_prefix="$exec_prefix"
17899 exec_prefix="$acl_final_exec_prefix"
17900 eval x=\"$x\"
17901 exec_prefix="$acl_save_exec_prefix"
17902 prefix="$acl_save_prefix"
17903
17904 if test "X$x" = "X$element"; then
17905 haveit=yes
17906 break
17907 fi
17908 done
17909 if test -z "$haveit"; then
17910 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17911 fi
17912 done
17913
17914
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917
17918 _ACEOF
17919 if ac_fn_objcxx_try_compile "$LINENO"; then :
17920 cy_good=1
17921 else
17922 cy_good=0
17923 fi
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925
17926 OBJCXXFLAGS=$cy_save
17927 if test "x$cy_good" = x1; then :
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17929 $as_echo "yes" >&6; }
17930
17931 for element in -Wno-deprecated-declarations; do
17932 haveit=
17933 for x in $OBJCXXFLAGS; do
17934
17935 acl_save_prefix="$prefix"
17936 prefix="$acl_final_prefix"
17937 acl_save_exec_prefix="$exec_prefix"
17938 exec_prefix="$acl_final_exec_prefix"
17939 eval x=\"$x\"
17940 exec_prefix="$acl_save_exec_prefix"
17941 prefix="$acl_save_prefix"
17942
17943 if test "X$x" = "X$element"; then
17944 haveit=yes
17945 break
17946 fi
17947 done
17948 if test -z "$haveit"; then
17949 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17950 fi
17951 done
17952
17953
17954 else
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956 $as_echo "no" >&6; }
17957 fi
17958
17959 ac_ext=cpp
17960 ac_cpp='$CXXCPP $CPPFLAGS'
17961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17964
17965
17966
17967
17968
17969
17970 ac_ext=c
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17977 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17978
17979 cy_save=$CFLAGS
17980
17981 for element in -Wno-dangling-else; do
17982 haveit=
17983 for x in $CFLAGS; do
17984
17985 acl_save_prefix="$prefix"
17986 prefix="$acl_final_prefix"
17987 acl_save_exec_prefix="$exec_prefix"
17988 exec_prefix="$acl_final_exec_prefix"
17989 eval x=\"$x\"
17990 exec_prefix="$acl_save_exec_prefix"
17991 prefix="$acl_save_prefix"
17992
17993 if test "X$x" = "X$element"; then
17994 haveit=yes
17995 break
17996 fi
17997 done
17998 if test -z "$haveit"; then
17999 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18000 fi
18001 done
18002
18003
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006
18007 _ACEOF
18008 if ac_fn_c_try_compile "$LINENO"; then :
18009 cy_good=1
18010 else
18011 cy_good=0
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014
18015 CFLAGS=$cy_save
18016 if test "x$cy_good" = x1; then :
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18018 $as_echo "yes" >&6; }
18019
18020 for element in -Wno-dangling-else; do
18021 haveit=
18022 for x in $CFLAGS; do
18023
18024 acl_save_prefix="$prefix"
18025 prefix="$acl_final_prefix"
18026 acl_save_exec_prefix="$exec_prefix"
18027 exec_prefix="$acl_final_exec_prefix"
18028 eval x=\"$x\"
18029 exec_prefix="$acl_save_exec_prefix"
18030 prefix="$acl_save_prefix"
18031
18032 if test "X$x" = "X$element"; then
18033 haveit=yes
18034 break
18035 fi
18036 done
18037 if test -z "$haveit"; then
18038 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18039 fi
18040 done
18041
18042
18043 else
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18045 $as_echo "no" >&6; }
18046 fi
18047
18048 ac_ext=cpp
18049 ac_cpp='$CXXCPP $CPPFLAGS'
18050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18053
18054
18055
18056 ac_ext=cpp
18057 ac_cpp='$CXXCPP $CPPFLAGS'
18058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18061
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18063 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18064
18065 cy_save=$CXXFLAGS
18066
18067 for element in -Wno-dangling-else; do
18068 haveit=
18069 for x in $CXXFLAGS; do
18070
18071 acl_save_prefix="$prefix"
18072 prefix="$acl_final_prefix"
18073 acl_save_exec_prefix="$exec_prefix"
18074 exec_prefix="$acl_final_exec_prefix"
18075 eval x=\"$x\"
18076 exec_prefix="$acl_save_exec_prefix"
18077 prefix="$acl_save_prefix"
18078
18079 if test "X$x" = "X$element"; then
18080 haveit=yes
18081 break
18082 fi
18083 done
18084 if test -z "$haveit"; then
18085 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18086 fi
18087 done
18088
18089
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18092
18093 _ACEOF
18094 if ac_fn_cxx_try_compile "$LINENO"; then :
18095 cy_good=1
18096 else
18097 cy_good=0
18098 fi
18099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100
18101 CXXFLAGS=$cy_save
18102 if test "x$cy_good" = x1; then :
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18104 $as_echo "yes" >&6; }
18105
18106 for element in -Wno-dangling-else; do
18107 haveit=
18108 for x in $CXXFLAGS; do
18109
18110 acl_save_prefix="$prefix"
18111 prefix="$acl_final_prefix"
18112 acl_save_exec_prefix="$exec_prefix"
18113 exec_prefix="$acl_final_exec_prefix"
18114 eval x=\"$x\"
18115 exec_prefix="$acl_save_exec_prefix"
18116 prefix="$acl_save_prefix"
18117
18118 if test "X$x" = "X$element"; then
18119 haveit=yes
18120 break
18121 fi
18122 done
18123 if test -z "$haveit"; then
18124 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18125 fi
18126 done
18127
18128
18129 else
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18131 $as_echo "no" >&6; }
18132 fi
18133
18134 ac_ext=cpp
18135 ac_cpp='$CXXCPP $CPPFLAGS'
18136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18139
18140
18141
18142 ac_ext=mm
18143 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18144 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18147
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18149 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18150
18151 cy_save=$OBJCXXFLAGS
18152
18153 for element in -Wno-dangling-else; do
18154 haveit=
18155 for x in $OBJCXXFLAGS; do
18156
18157 acl_save_prefix="$prefix"
18158 prefix="$acl_final_prefix"
18159 acl_save_exec_prefix="$exec_prefix"
18160 exec_prefix="$acl_final_exec_prefix"
18161 eval x=\"$x\"
18162 exec_prefix="$acl_save_exec_prefix"
18163 prefix="$acl_save_prefix"
18164
18165 if test "X$x" = "X$element"; then
18166 haveit=yes
18167 break
18168 fi
18169 done
18170 if test -z "$haveit"; then
18171 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18172 fi
18173 done
18174
18175
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18178
18179 _ACEOF
18180 if ac_fn_objcxx_try_compile "$LINENO"; then :
18181 cy_good=1
18182 else
18183 cy_good=0
18184 fi
18185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18186
18187 OBJCXXFLAGS=$cy_save
18188 if test "x$cy_good" = x1; then :
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18190 $as_echo "yes" >&6; }
18191
18192 for element in -Wno-dangling-else; do
18193 haveit=
18194 for x in $OBJCXXFLAGS; do
18195
18196 acl_save_prefix="$prefix"
18197 prefix="$acl_final_prefix"
18198 acl_save_exec_prefix="$exec_prefix"
18199 exec_prefix="$acl_final_exec_prefix"
18200 eval x=\"$x\"
18201 exec_prefix="$acl_save_exec_prefix"
18202 prefix="$acl_save_prefix"
18203
18204 if test "X$x" = "X$element"; then
18205 haveit=yes
18206 break
18207 fi
18208 done
18209 if test -z "$haveit"; then
18210 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18211 fi
18212 done
18213
18214
18215 else
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18218 fi
18219
18220 ac_ext=cpp
18221 ac_cpp='$CXXCPP $CPPFLAGS'
18222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18225
18226
18227
18228
18229
18230 ac_ext=c
18231 ac_cpp='$CPP $CPPFLAGS'
18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18237 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18238
18239 cy_save=$CFLAGS
18240
18241 for element in -Wno-overloaded-virtual; do
18242 haveit=
18243 for x in $CFLAGS; do
18244
18245 acl_save_prefix="$prefix"
18246 prefix="$acl_final_prefix"
18247 acl_save_exec_prefix="$exec_prefix"
18248 exec_prefix="$acl_final_exec_prefix"
18249 eval x=\"$x\"
18250 exec_prefix="$acl_save_exec_prefix"
18251 prefix="$acl_save_prefix"
18252
18253 if test "X$x" = "X$element"; then
18254 haveit=yes
18255 break
18256 fi
18257 done
18258 if test -z "$haveit"; then
18259 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18260 fi
18261 done
18262
18263
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266
18267 _ACEOF
18268 if ac_fn_c_try_compile "$LINENO"; then :
18269 cy_good=1
18270 else
18271 cy_good=0
18272 fi
18273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18274
18275 CFLAGS=$cy_save
18276 if test "x$cy_good" = x1; then :
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18279
18280 for element in -Wno-overloaded-virtual; do
18281 haveit=
18282 for x in $CFLAGS; 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 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18299 fi
18300 done
18301
18302
18303 else
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306 fi
18307
18308 ac_ext=cpp
18309 ac_cpp='$CXXCPP $CPPFLAGS'
18310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313
18314
18315
18316 ac_ext=cpp
18317 ac_cpp='$CXXCPP $CPPFLAGS'
18318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18323 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18324
18325 cy_save=$CXXFLAGS
18326
18327 for element in -Wno-overloaded-virtual; do
18328 haveit=
18329 for x in $CXXFLAGS; do
18330
18331 acl_save_prefix="$prefix"
18332 prefix="$acl_final_prefix"
18333 acl_save_exec_prefix="$exec_prefix"
18334 exec_prefix="$acl_final_exec_prefix"
18335 eval x=\"$x\"
18336 exec_prefix="$acl_save_exec_prefix"
18337 prefix="$acl_save_prefix"
18338
18339 if test "X$x" = "X$element"; then
18340 haveit=yes
18341 break
18342 fi
18343 done
18344 if test -z "$haveit"; then
18345 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18346 fi
18347 done
18348
18349
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352
18353 _ACEOF
18354 if ac_fn_cxx_try_compile "$LINENO"; then :
18355 cy_good=1
18356 else
18357 cy_good=0
18358 fi
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360
18361 CXXFLAGS=$cy_save
18362 if test "x$cy_good" = x1; then :
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18364 $as_echo "yes" >&6; }
18365
18366 for element in -Wno-overloaded-virtual; do
18367 haveit=
18368 for x in $CXXFLAGS; do
18369
18370 acl_save_prefix="$prefix"
18371 prefix="$acl_final_prefix"
18372 acl_save_exec_prefix="$exec_prefix"
18373 exec_prefix="$acl_final_exec_prefix"
18374 eval x=\"$x\"
18375 exec_prefix="$acl_save_exec_prefix"
18376 prefix="$acl_save_prefix"
18377
18378 if test "X$x" = "X$element"; then
18379 haveit=yes
18380 break
18381 fi
18382 done
18383 if test -z "$haveit"; then
18384 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18385 fi
18386 done
18387
18388
18389 else
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391 $as_echo "no" >&6; }
18392 fi
18393
18394 ac_ext=cpp
18395 ac_cpp='$CXXCPP $CPPFLAGS'
18396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18399
18400
18401
18402 ac_ext=mm
18403 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18404 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18407
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18409 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18410
18411 cy_save=$OBJCXXFLAGS
18412
18413 for element in -Wno-overloaded-virtual; do
18414 haveit=
18415 for x in $OBJCXXFLAGS; do
18416
18417 acl_save_prefix="$prefix"
18418 prefix="$acl_final_prefix"
18419 acl_save_exec_prefix="$exec_prefix"
18420 exec_prefix="$acl_final_exec_prefix"
18421 eval x=\"$x\"
18422 exec_prefix="$acl_save_exec_prefix"
18423 prefix="$acl_save_prefix"
18424
18425 if test "X$x" = "X$element"; then
18426 haveit=yes
18427 break
18428 fi
18429 done
18430 if test -z "$haveit"; then
18431 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18432 fi
18433 done
18434
18435
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18438
18439 _ACEOF
18440 if ac_fn_objcxx_try_compile "$LINENO"; then :
18441 cy_good=1
18442 else
18443 cy_good=0
18444 fi
18445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446
18447 OBJCXXFLAGS=$cy_save
18448 if test "x$cy_good" = x1; then :
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450 $as_echo "yes" >&6; }
18451
18452 for element in -Wno-overloaded-virtual; do
18453 haveit=
18454 for x in $OBJCXXFLAGS; do
18455
18456 acl_save_prefix="$prefix"
18457 prefix="$acl_final_prefix"
18458 acl_save_exec_prefix="$exec_prefix"
18459 exec_prefix="$acl_final_exec_prefix"
18460 eval x=\"$x\"
18461 exec_prefix="$acl_save_exec_prefix"
18462 prefix="$acl_save_prefix"
18463
18464 if test "X$x" = "X$element"; then
18465 haveit=yes
18466 break
18467 fi
18468 done
18469 if test -z "$haveit"; then
18470 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18471 fi
18472 done
18473
18474
18475 else
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18478 fi
18479
18480 ac_ext=cpp
18481 ac_cpp='$CXXCPP $CPPFLAGS'
18482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18485
18486
18487
18488
18489
18490 ac_ext=c
18491 ac_cpp='$CPP $CPPFLAGS'
18492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18495
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18497 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18498
18499 cy_save=$CFLAGS
18500
18501 for element in -Wno-parentheses; do
18502 haveit=
18503 for x in $CFLAGS; do
18504
18505 acl_save_prefix="$prefix"
18506 prefix="$acl_final_prefix"
18507 acl_save_exec_prefix="$exec_prefix"
18508 exec_prefix="$acl_final_exec_prefix"
18509 eval x=\"$x\"
18510 exec_prefix="$acl_save_exec_prefix"
18511 prefix="$acl_save_prefix"
18512
18513 if test "X$x" = "X$element"; then
18514 haveit=yes
18515 break
18516 fi
18517 done
18518 if test -z "$haveit"; then
18519 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18520 fi
18521 done
18522
18523
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526
18527 _ACEOF
18528 if ac_fn_c_try_compile "$LINENO"; then :
18529 cy_good=1
18530 else
18531 cy_good=0
18532 fi
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534
18535 CFLAGS=$cy_save
18536 if test "x$cy_good" = x1; then :
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18538 $as_echo "yes" >&6; }
18539
18540 for element in -Wno-parentheses; do
18541 haveit=
18542 for x in $CFLAGS; do
18543
18544 acl_save_prefix="$prefix"
18545 prefix="$acl_final_prefix"
18546 acl_save_exec_prefix="$exec_prefix"
18547 exec_prefix="$acl_final_exec_prefix"
18548 eval x=\"$x\"
18549 exec_prefix="$acl_save_exec_prefix"
18550 prefix="$acl_save_prefix"
18551
18552 if test "X$x" = "X$element"; then
18553 haveit=yes
18554 break
18555 fi
18556 done
18557 if test -z "$haveit"; then
18558 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18559 fi
18560 done
18561
18562
18563 else
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566 fi
18567
18568 ac_ext=cpp
18569 ac_cpp='$CXXCPP $CPPFLAGS'
18570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18573
18574
18575
18576 ac_ext=cpp
18577 ac_cpp='$CXXCPP $CPPFLAGS'
18578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18581
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18583 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18584
18585 cy_save=$CXXFLAGS
18586
18587 for element in -Wno-parentheses; do
18588 haveit=
18589 for x in $CXXFLAGS; do
18590
18591 acl_save_prefix="$prefix"
18592 prefix="$acl_final_prefix"
18593 acl_save_exec_prefix="$exec_prefix"
18594 exec_prefix="$acl_final_exec_prefix"
18595 eval x=\"$x\"
18596 exec_prefix="$acl_save_exec_prefix"
18597 prefix="$acl_save_prefix"
18598
18599 if test "X$x" = "X$element"; then
18600 haveit=yes
18601 break
18602 fi
18603 done
18604 if test -z "$haveit"; then
18605 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18606 fi
18607 done
18608
18609
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612
18613 _ACEOF
18614 if ac_fn_cxx_try_compile "$LINENO"; then :
18615 cy_good=1
18616 else
18617 cy_good=0
18618 fi
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620
18621 CXXFLAGS=$cy_save
18622 if test "x$cy_good" = x1; then :
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624 $as_echo "yes" >&6; }
18625
18626 for element in -Wno-parentheses; do
18627 haveit=
18628 for x in $CXXFLAGS; do
18629
18630 acl_save_prefix="$prefix"
18631 prefix="$acl_final_prefix"
18632 acl_save_exec_prefix="$exec_prefix"
18633 exec_prefix="$acl_final_exec_prefix"
18634 eval x=\"$x\"
18635 exec_prefix="$acl_save_exec_prefix"
18636 prefix="$acl_save_prefix"
18637
18638 if test "X$x" = "X$element"; then
18639 haveit=yes
18640 break
18641 fi
18642 done
18643 if test -z "$haveit"; then
18644 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18645 fi
18646 done
18647
18648
18649 else
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18652 fi
18653
18654 ac_ext=cpp
18655 ac_cpp='$CXXCPP $CPPFLAGS'
18656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659
18660
18661
18662 ac_ext=mm
18663 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18664 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18667
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18669 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18670
18671 cy_save=$OBJCXXFLAGS
18672
18673 for element in -Wno-parentheses; do
18674 haveit=
18675 for x in $OBJCXXFLAGS; do
18676
18677 acl_save_prefix="$prefix"
18678 prefix="$acl_final_prefix"
18679 acl_save_exec_prefix="$exec_prefix"
18680 exec_prefix="$acl_final_exec_prefix"
18681 eval x=\"$x\"
18682 exec_prefix="$acl_save_exec_prefix"
18683 prefix="$acl_save_prefix"
18684
18685 if test "X$x" = "X$element"; then
18686 haveit=yes
18687 break
18688 fi
18689 done
18690 if test -z "$haveit"; then
18691 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18692 fi
18693 done
18694
18695
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698
18699 _ACEOF
18700 if ac_fn_objcxx_try_compile "$LINENO"; then :
18701 cy_good=1
18702 else
18703 cy_good=0
18704 fi
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706
18707 OBJCXXFLAGS=$cy_save
18708 if test "x$cy_good" = x1; then :
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18710 $as_echo "yes" >&6; }
18711
18712 for element in -Wno-parentheses; do
18713 haveit=
18714 for x in $OBJCXXFLAGS; do
18715
18716 acl_save_prefix="$prefix"
18717 prefix="$acl_final_prefix"
18718 acl_save_exec_prefix="$exec_prefix"
18719 exec_prefix="$acl_final_exec_prefix"
18720 eval x=\"$x\"
18721 exec_prefix="$acl_save_exec_prefix"
18722 prefix="$acl_save_prefix"
18723
18724 if test "X$x" = "X$element"; then
18725 haveit=yes
18726 break
18727 fi
18728 done
18729 if test -z "$haveit"; then
18730 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18731 fi
18732 done
18733
18734
18735 else
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 $as_echo "no" >&6; }
18738 fi
18739
18740 ac_ext=cpp
18741 ac_cpp='$CXXCPP $CPPFLAGS'
18742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18745
18746
18747
18748
18749
18750 ac_ext=c
18751 ac_cpp='$CPP $CPPFLAGS'
18752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18755
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18757 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18758
18759 cy_save=$CFLAGS
18760
18761 for element in -Wno-unneeded-internal-declaration; do
18762 haveit=
18763 for x in $CFLAGS; do
18764
18765 acl_save_prefix="$prefix"
18766 prefix="$acl_final_prefix"
18767 acl_save_exec_prefix="$exec_prefix"
18768 exec_prefix="$acl_final_exec_prefix"
18769 eval x=\"$x\"
18770 exec_prefix="$acl_save_exec_prefix"
18771 prefix="$acl_save_prefix"
18772
18773 if test "X$x" = "X$element"; then
18774 haveit=yes
18775 break
18776 fi
18777 done
18778 if test -z "$haveit"; then
18779 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18780 fi
18781 done
18782
18783
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18786
18787 _ACEOF
18788 if ac_fn_c_try_compile "$LINENO"; then :
18789 cy_good=1
18790 else
18791 cy_good=0
18792 fi
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794
18795 CFLAGS=$cy_save
18796 if test "x$cy_good" = x1; then :
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798 $as_echo "yes" >&6; }
18799
18800 for element in -Wno-unneeded-internal-declaration; do
18801 haveit=
18802 for x in $CFLAGS; do
18803
18804 acl_save_prefix="$prefix"
18805 prefix="$acl_final_prefix"
18806 acl_save_exec_prefix="$exec_prefix"
18807 exec_prefix="$acl_final_exec_prefix"
18808 eval x=\"$x\"
18809 exec_prefix="$acl_save_exec_prefix"
18810 prefix="$acl_save_prefix"
18811
18812 if test "X$x" = "X$element"; then
18813 haveit=yes
18814 break
18815 fi
18816 done
18817 if test -z "$haveit"; then
18818 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18819 fi
18820 done
18821
18822
18823 else
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825 $as_echo "no" >&6; }
18826 fi
18827
18828 ac_ext=cpp
18829 ac_cpp='$CXXCPP $CPPFLAGS'
18830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18833
18834
18835
18836 ac_ext=cpp
18837 ac_cpp='$CXXCPP $CPPFLAGS'
18838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18841
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18843 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18844
18845 cy_save=$CXXFLAGS
18846
18847 for element in -Wno-unneeded-internal-declaration; do
18848 haveit=
18849 for x in $CXXFLAGS; do
18850
18851 acl_save_prefix="$prefix"
18852 prefix="$acl_final_prefix"
18853 acl_save_exec_prefix="$exec_prefix"
18854 exec_prefix="$acl_final_exec_prefix"
18855 eval x=\"$x\"
18856 exec_prefix="$acl_save_exec_prefix"
18857 prefix="$acl_save_prefix"
18858
18859 if test "X$x" = "X$element"; then
18860 haveit=yes
18861 break
18862 fi
18863 done
18864 if test -z "$haveit"; then
18865 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18866 fi
18867 done
18868
18869
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872
18873 _ACEOF
18874 if ac_fn_cxx_try_compile "$LINENO"; then :
18875 cy_good=1
18876 else
18877 cy_good=0
18878 fi
18879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18880
18881 CXXFLAGS=$cy_save
18882 if test "x$cy_good" = x1; then :
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884 $as_echo "yes" >&6; }
18885
18886 for element in -Wno-unneeded-internal-declaration; do
18887 haveit=
18888 for x in $CXXFLAGS; do
18889
18890 acl_save_prefix="$prefix"
18891 prefix="$acl_final_prefix"
18892 acl_save_exec_prefix="$exec_prefix"
18893 exec_prefix="$acl_final_exec_prefix"
18894 eval x=\"$x\"
18895 exec_prefix="$acl_save_exec_prefix"
18896 prefix="$acl_save_prefix"
18897
18898 if test "X$x" = "X$element"; then
18899 haveit=yes
18900 break
18901 fi
18902 done
18903 if test -z "$haveit"; then
18904 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18905 fi
18906 done
18907
18908
18909 else
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
18912 fi
18913
18914 ac_ext=cpp
18915 ac_cpp='$CXXCPP $CPPFLAGS'
18916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18919
18920
18921
18922 ac_ext=mm
18923 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18924 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18927
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18929 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18930
18931 cy_save=$OBJCXXFLAGS
18932
18933 for element in -Wno-unneeded-internal-declaration; do
18934 haveit=
18935 for x in $OBJCXXFLAGS; do
18936
18937 acl_save_prefix="$prefix"
18938 prefix="$acl_final_prefix"
18939 acl_save_exec_prefix="$exec_prefix"
18940 exec_prefix="$acl_final_exec_prefix"
18941 eval x=\"$x\"
18942 exec_prefix="$acl_save_exec_prefix"
18943 prefix="$acl_save_prefix"
18944
18945 if test "X$x" = "X$element"; then
18946 haveit=yes
18947 break
18948 fi
18949 done
18950 if test -z "$haveit"; then
18951 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18952 fi
18953 done
18954
18955
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958
18959 _ACEOF
18960 if ac_fn_objcxx_try_compile "$LINENO"; then :
18961 cy_good=1
18962 else
18963 cy_good=0
18964 fi
18965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18966
18967 OBJCXXFLAGS=$cy_save
18968 if test "x$cy_good" = x1; then :
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18970 $as_echo "yes" >&6; }
18971
18972 for element in -Wno-unneeded-internal-declaration; do
18973 haveit=
18974 for x in $OBJCXXFLAGS; do
18975
18976 acl_save_prefix="$prefix"
18977 prefix="$acl_final_prefix"
18978 acl_save_exec_prefix="$exec_prefix"
18979 exec_prefix="$acl_final_exec_prefix"
18980 eval x=\"$x\"
18981 exec_prefix="$acl_save_exec_prefix"
18982 prefix="$acl_save_prefix"
18983
18984 if test "X$x" = "X$element"; then
18985 haveit=yes
18986 break
18987 fi
18988 done
18989 if test -z "$haveit"; then
18990 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18991 fi
18992 done
18993
18994
18995 else
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997 $as_echo "no" >&6; }
18998 fi
18999
19000 ac_ext=cpp
19001 ac_cpp='$CXXCPP $CPPFLAGS'
19002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19005
19006
19007
19008
19009
19010
19011
19012 ac_ext=c
19013 ac_cpp='$CPP $CPPFLAGS'
19014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19017
19018 ax_pthread_ok=no
19019
19020 # We used to check for pthread.h first, but this fails if pthread.h
19021 # requires special compiler flags (e.g. on Tru64 or Sequent).
19022 # It gets checked for in the link test anyway.
19023
19024 # First of all, check if the user has set any of the PTHREAD_LIBS,
19025 # etcetera environment variables, and if threads linking works using
19026 # them:
19027 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19028 save_CFLAGS="$CFLAGS"
19029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19030 save_LIBS="$LIBS"
19031 LIBS="$PTHREAD_LIBS $LIBS"
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19033 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19036
19037 /* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19040 #ifdef __cplusplus
19041 extern "C"
19042 #endif
19043 char pthread_join ();
19044 int
19045 main ()
19046 {
19047 return pthread_join ();
19048 ;
19049 return 0;
19050 }
19051 _ACEOF
19052 if ac_fn_c_try_link "$LINENO"; then :
19053 ax_pthread_ok=yes
19054 fi
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19058 $as_echo "$ax_pthread_ok" >&6; }
19059 if test x"$ax_pthread_ok" = xno; then
19060 PTHREAD_LIBS=""
19061 PTHREAD_CFLAGS=""
19062 fi
19063 LIBS="$save_LIBS"
19064 CFLAGS="$save_CFLAGS"
19065 fi
19066
19067 # We must check for the threads library under a number of different
19068 # names; the ordering is very important because some systems
19069 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19070 # libraries is broken (non-POSIX).
19071
19072 # Create a list of thread flags to try. Items starting with a "-" are
19073 # C compiler flags, and other items are library names, except for "none"
19074 # which indicates that we try without any flags at all, and "pthread-config"
19075 # which is a program returning the flags for the Pth emulation library.
19076
19077 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
19078
19079 # The ordering *is* (sometimes) important. Some notes on the
19080 # individual items follow:
19081
19082 # pthreads: AIX (must check this before -lpthread)
19083 # none: in case threads are in libc; should be tried before -Kthread and
19084 # other compiler flags to prevent continual compiler warnings
19085 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19086 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19087 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19088 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19089 # -pthreads: Solaris/gcc
19090 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19091 # doesn't hurt to check since this sometimes defines pthreads and
19092 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19093 # is present but should not be used directly)
19094 # -mthreads: Mingw32/gcc, Lynx/gcc
19095 # pthread: Linux, etcetera
19096 # --thread-safe: KAI C++
19097 # pthread-config: use pthread-config program (for GNU Pth library)
19098
19099 case $host_os in
19100
19101 hpux*)
19102
19103 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19104 # multi-threading and also sets -lpthread."
19105
19106 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19107 ;;
19108
19109 openedition*)
19110
19111 # IBM z/OS requires a feature-test macro to be defined in order to
19112 # enable POSIX threads at all, so give the user a hint if this is
19113 # not set. (We don't define these ourselves, as they can affect
19114 # other portions of the system API in unpredictable ways.)
19115
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118
19119 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19120 AX_PTHREAD_ZOS_MISSING
19121 # endif
19122
19123 _ACEOF
19124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19125 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19127 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19128 fi
19129 rm -f conftest*
19130
19131 ;;
19132
19133 solaris*)
19134
19135 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19136 # check that first. On some older versions, libc contains stubbed
19137 # (non-functional) versions of the pthreads routines, so link-based
19138 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19139 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19140 # a function called by this macro, so we could check for that, but
19141 # who knows whether they'll stub that too in a future libc.) So
19142 # we'll look for -pthreads and -lpthread shortly thereafter.
19143
19144 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
19145 ;;
19146 esac
19147
19148 # Older versions of Clang only give a warning instead of an error for an
19149 # unrecognized option, unless we specify -Werror. (We throw in some extra
19150 # Clang warning flags for good measure.)
19151
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19153 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19154 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19155 $as_echo_n "(cached) " >&6
19156 else
19157 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19158 save_CFLAGS="$CFLAGS"
19159 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19160 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163 int foo(void);
19164 int
19165 main ()
19166 {
19167 foo()
19168 ;
19169 return 0;
19170 }
19171 _ACEOF
19172 if ac_fn_c_try_compile "$LINENO"; then :
19173 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
19174 else
19175 ax_cv_PTHREAD_REJECT_UNKNOWN=no
19176 fi
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 CFLAGS="$save_CFLAGS"
19179
19180 fi
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19182 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19183 ax_pthread_extra_flags=
19184 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19185 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19186 fi
19187
19188 if test x"$ax_pthread_ok" = xno; then
19189 for flag in $ax_pthread_flags; do
19190
19191 case $flag in
19192 none)
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19194 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19195 ;;
19196
19197 -mt,pthread)
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19199 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19200 PTHREAD_CFLAGS="-mt"
19201 PTHREAD_LIBS="-lpthread"
19202 ;;
19203
19204 -*)
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19206 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19207 PTHREAD_CFLAGS="$flag"
19208 ;;
19209
19210 pthread-config)
19211 # Extract the first word of "pthread-config", so it can be a program name with args.
19212 set dummy pthread-config; ac_word=$2
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19214 $as_echo_n "checking for $ac_word... " >&6; }
19215 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19216 $as_echo_n "(cached) " >&6
19217 else
19218 if test -n "$ax_pthread_config"; then
19219 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19220 else
19221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222 for as_dir in $PATH
19223 do
19224 IFS=$as_save_IFS
19225 test -z "$as_dir" && as_dir=.
19226 for ac_exec_ext in '' $ac_executable_extensions; do
19227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19228 ac_cv_prog_ax_pthread_config="yes"
19229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19230 break 2
19231 fi
19232 done
19233 done
19234 IFS=$as_save_IFS
19235
19236 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19237 fi
19238 fi
19239 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19240 if test -n "$ax_pthread_config"; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19242 $as_echo "$ax_pthread_config" >&6; }
19243 else
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 fi
19247
19248
19249 if test x"$ax_pthread_config" = xno; then continue; fi
19250 PTHREAD_CFLAGS="`pthread-config --cflags`"
19251 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19252 ;;
19253
19254 *)
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19256 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19257 PTHREAD_LIBS="-l$flag"
19258 ;;
19259 esac
19260
19261 save_LIBS="$LIBS"
19262 save_CFLAGS="$CFLAGS"
19263 LIBS="$PTHREAD_LIBS $LIBS"
19264 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19265
19266 # Check for various functions. We must include pthread.h,
19267 # since some functions may be macros. (On the Sequent, we
19268 # need a special flag -Kthread to make this header compile.)
19269 # We check for pthread_join because it is in -lpthread on IRIX
19270 # while pthread_create is in libc. We check for pthread_attr_init
19271 # due to DEC craziness with -lpthreads. We check for
19272 # pthread_cleanup_push because it is one of the few pthread
19273 # functions on Solaris that doesn't have a non-functional libc stub.
19274 # We try pthread_create on general principles.
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 #include <pthread.h>
19278 static void routine(void *a) { a = 0; }
19279 static void *start_routine(void *a) { return a; }
19280 int
19281 main ()
19282 {
19283 pthread_t th; pthread_attr_t attr;
19284 pthread_create(&th, 0, start_routine, 0);
19285 pthread_join(th, 0);
19286 pthread_attr_init(&attr);
19287 pthread_cleanup_push(routine, 0);
19288 pthread_cleanup_pop(0) /* ; */
19289 ;
19290 return 0;
19291 }
19292 _ACEOF
19293 if ac_fn_c_try_link "$LINENO"; then :
19294 ax_pthread_ok=yes
19295 fi
19296 rm -f core conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298
19299 LIBS="$save_LIBS"
19300 CFLAGS="$save_CFLAGS"
19301
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19303 $as_echo "$ax_pthread_ok" >&6; }
19304 if test "x$ax_pthread_ok" = xyes; then
19305 break;
19306 fi
19307
19308 PTHREAD_LIBS=""
19309 PTHREAD_CFLAGS=""
19310 done
19311 fi
19312
19313 # Various other checks:
19314 if test "x$ax_pthread_ok" = xyes; then
19315 save_LIBS="$LIBS"
19316 LIBS="$PTHREAD_LIBS $LIBS"
19317 save_CFLAGS="$CFLAGS"
19318 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19319
19320 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19322 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19323 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19327 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 #include <pthread.h>
19331 int
19332 main ()
19333 {
19334 int attr = $attr; return attr /* ; */
19335 ;
19336 return 0;
19337 }
19338 _ACEOF
19339 if ac_fn_c_try_link "$LINENO"; then :
19340 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344 done
19345
19346 fi
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19348 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19349 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19350 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
19351
19352 cat >>confdefs.h <<_ACEOF
19353 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19354 _ACEOF
19355
19356 fi
19357
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19359 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19360 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19361 $as_echo_n "(cached) " >&6
19362 else
19363 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19364 ax_pthread_special_flags_added=no
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367
19368 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19369 AX_PTHREAD_NEED_SPECIAL_FLAG
19370 # endif
19371
19372 _ACEOF
19373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19374 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19375 case $host_os in
19376 aix* | freebsd*)
19377 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19378 ;;
19379 darwin* | hpux* | osf* | solaris*)
19380 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19381 ;;
19382 esac
19383
19384 fi
19385 rm -f conftest*
19386
19387
19388 fi
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19390 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19391 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19392 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19393 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19394 ax_pthread_special_flags_added=yes
19395 fi
19396
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19398 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19399 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19400 $as_echo_n "(cached) " >&6
19401 else
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19404 #include <pthread.h>
19405 int
19406 main ()
19407 {
19408 int i = PTHREAD_PRIO_INHERIT;
19409 ;
19410 return 0;
19411 }
19412 _ACEOF
19413 if ac_fn_c_try_link "$LINENO"; then :
19414 ax_cv_PTHREAD_PRIO_INHERIT=yes
19415 else
19416 ax_cv_PTHREAD_PRIO_INHERIT=no
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420
19421 fi
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19423 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19424 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19425
19426 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19427
19428 fi
19429
19430 LIBS="$save_LIBS"
19431 CFLAGS="$save_CFLAGS"
19432
19433 # More AIX lossage: compile with *_r variant
19434 if test "x$GCC" != xyes; then
19435 case $host_os in
19436 aix*)
19437 case "x/$CC" in #(
19438 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19439 #handle absolute path differently from PATH based program lookup
19440 case "x$CC" in #(
19441 x/*) :
19442 if as_fn_executable_p ${CC}_r; then :
19443 PTHREAD_CC="${CC}_r"
19444 fi ;; #(
19445 *) :
19446 for ac_prog in ${CC}_r
19447 do
19448 # Extract the first word of "$ac_prog", so it can be a program name with args.
19449 set dummy $ac_prog; ac_word=$2
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19451 $as_echo_n "checking for $ac_word... " >&6; }
19452 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19453 $as_echo_n "(cached) " >&6
19454 else
19455 if test -n "$PTHREAD_CC"; then
19456 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19457 else
19458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19459 for as_dir in $PATH
19460 do
19461 IFS=$as_save_IFS
19462 test -z "$as_dir" && as_dir=.
19463 for ac_exec_ext in '' $ac_executable_extensions; do
19464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19465 ac_cv_prog_PTHREAD_CC="$ac_prog"
19466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19467 break 2
19468 fi
19469 done
19470 done
19471 IFS=$as_save_IFS
19472
19473 fi
19474 fi
19475 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19476 if test -n "$PTHREAD_CC"; then
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19478 $as_echo "$PTHREAD_CC" >&6; }
19479 else
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481 $as_echo "no" >&6; }
19482 fi
19483
19484
19485 test -n "$PTHREAD_CC" && break
19486 done
19487 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19488 ;;
19489 esac ;; #(
19490 *) :
19491 ;;
19492 esac
19493 ;;
19494 esac
19495 fi
19496 fi
19497
19498 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19499
19500
19501
19502
19503
19504 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19505 if test x"$ax_pthread_ok" = xyes; then
19506
19507 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19508
19509 :
19510 else
19511 ax_pthread_ok=no
19512
19513 fi
19514 ac_ext=cpp
19515 ac_cpp='$CXXCPP $CPPFLAGS'
19516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19519
19520
19521
19522
19523
19524 for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19526 $as_echo_n "checking for -arch $cy_arch... " >&6; }
19527
19528 cy_save=$CXXFLAGS
19529
19530 for element in "-arch $cy_arch"; do
19531 haveit=
19532 for x in $CXXFLAGS; do
19533
19534 acl_save_prefix="$prefix"
19535 prefix="$acl_final_prefix"
19536 acl_save_exec_prefix="$exec_prefix"
19537 exec_prefix="$acl_final_exec_prefix"
19538 eval x=\"$x\"
19539 exec_prefix="$acl_save_exec_prefix"
19540 prefix="$acl_save_prefix"
19541
19542 if test "X$x" = "X$element"; then
19543 haveit=yes
19544 break
19545 fi
19546 done
19547 if test -z "$haveit"; then
19548 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19549 fi
19550 done
19551
19552
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19555
19556 int
19557 main ()
19558 {
19559
19560 ;
19561 return 0;
19562 }
19563 _ACEOF
19564 if ac_fn_cxx_try_link "$LINENO"; then :
19565 cy_good=1
19566 else
19567 cy_good=0
19568 fi
19569 rm -f core conftest.err conftest.$ac_objext \
19570 conftest$ac_exeext conftest.$ac_ext
19571
19572 CXXFLAGS=$cy_save
19573 if test "x$cy_good" = x1; then :
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19575 $as_echo "yes" >&6; }
19576
19577 for element in "-arch $cy_arch"; do
19578 haveit=
19579 for x in $CY_ARCH; do
19580
19581 acl_save_prefix="$prefix"
19582 prefix="$acl_final_prefix"
19583 acl_save_exec_prefix="$exec_prefix"
19584 exec_prefix="$acl_final_exec_prefix"
19585 eval x=\"$x\"
19586 exec_prefix="$acl_save_exec_prefix"
19587 prefix="$acl_save_prefix"
19588
19589 if test "X$x" = "X$element"; then
19590 haveit=yes
19591 break
19592 fi
19593 done
19594 if test -z "$haveit"; then
19595 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19596 fi
19597 done
19598
19599
19600 else
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19602 $as_echo "no" >&6; }
19603 fi
19604
19605 done
19606
19607
19608
19609
19610
19611
19612 # Check whether --enable-javascript was given.
19613 if test "${enable_javascript+set}" = set; then :
19614 enableval=$enable_javascript;
19615 case $enableval in #(
19616 yes) :
19617
19618
19619
19620
19621 cy_save=$LIBS
19622 LIBS=
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19624 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19625 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19626 $as_echo_n "(cached) " >&6
19627 else
19628 ac_func_search_save_LIBS=$LIBS
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19631
19632 /* Override any GCC internal prototype to avoid an error.
19633 Use char because int might match the return type of a GCC
19634 builtin and then its argument prototype would still apply. */
19635 #ifdef __cplusplus
19636 extern "C"
19637 #endif
19638 char JSEvaluateScript ();
19639 int
19640 main ()
19641 {
19642 return JSEvaluateScript ();
19643 ;
19644 return 0;
19645 }
19646 _ACEOF
19647 for ac_lib in '' JavaScriptCore; do
19648 if test -z "$ac_lib"; then
19649 ac_res="none required"
19650 else
19651 ac_res=-l$ac_lib
19652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19653 fi
19654 if ac_fn_cxx_try_link "$LINENO"; then :
19655 ac_cv_search_JSEvaluateScript=$ac_res
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext
19659 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19660 break
19661 fi
19662 done
19663 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19664
19665 else
19666 ac_cv_search_JSEvaluateScript=no
19667 fi
19668 rm conftest.$ac_ext
19669 LIBS=$ac_func_search_save_LIBS
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19672 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19673 ac_res=$ac_cv_search_JSEvaluateScript
19674 if test "$ac_res" != no; then :
19675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19676
19677 CY_EXECUTE=1
19678
19679
19680 else
19681
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19683 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19684 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19687
19688 ac_check_framework_save_LIBS=$LIBS
19689 LIBS="-framework JavaScriptCore $LIBS"
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19692
19693 #include <JavaScriptCore/JSBase.h>
19694
19695 int
19696 main ()
19697 {
19698
19699 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19700
19701 ;
19702 return 0;
19703 }
19704 _ACEOF
19705 if ac_fn_cxx_try_link "$LINENO"; then :
19706
19707 ac_cv_framework_JavaScriptCore=yes
19708
19709 else
19710 ac_cv_framework_JavaScriptCore=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_framework_save_LIBS
19715
19716 fi
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19718 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19719 if test $ac_cv_framework_JavaScriptCore = yes; then :
19720
19721
19722 for element in "-framework JavaScriptCore"; do
19723 haveit=
19724 for x in $LIBS; do
19725
19726 acl_save_prefix="$prefix"
19727 prefix="$acl_final_prefix"
19728 acl_save_exec_prefix="$exec_prefix"
19729 exec_prefix="$acl_final_exec_prefix"
19730 eval x=\"$x\"
19731 exec_prefix="$acl_save_exec_prefix"
19732 prefix="$acl_save_prefix"
19733
19734 if test "X$x" = "X$element"; then
19735 haveit=yes
19736 break
19737 fi
19738 done
19739 if test -z "$haveit"; then
19740 LIBS="${LIBS}${LIBS:+ }$element"
19741 fi
19742 done
19743
19744
19745 CY_EXECUTE=1
19746
19747
19748
19749 else
19750
19751 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19752
19753 pkg_failed=no
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19755 $as_echo_n "checking for WEBKIT... " >&6; }
19756
19757 if test -n "$WEBKIT_CFLAGS"; then
19758 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19759 elif test -n "$PKG_CONFIG"; then
19760 if test -n "$PKG_CONFIG" && \
19761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19762 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19763 ac_status=$?
19764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765 test $ac_status = 0; }; then
19766 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19767 test "x$?" != "x0" && pkg_failed=yes
19768 else
19769 pkg_failed=yes
19770 fi
19771 else
19772 pkg_failed=untried
19773 fi
19774 if test -n "$WEBKIT_LIBS"; then
19775 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19776 elif test -n "$PKG_CONFIG"; then
19777 if test -n "$PKG_CONFIG" && \
19778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19779 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19780 ac_status=$?
19781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19782 test $ac_status = 0; }; then
19783 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19784 test "x$?" != "x0" && pkg_failed=yes
19785 else
19786 pkg_failed=yes
19787 fi
19788 else
19789 pkg_failed=untried
19790 fi
19791
19792
19793
19794 if test $pkg_failed = yes; then
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19796 $as_echo "no" >&6; }
19797
19798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19799 _pkg_short_errors_supported=yes
19800 else
19801 _pkg_short_errors_supported=no
19802 fi
19803 if test $_pkg_short_errors_supported = yes; then
19804 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19805 else
19806 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19807 fi
19808 # Put the nasty error message in config.log where it belongs
19809 echo "$WEBKIT_PKG_ERRORS" >&5
19810
19811 :
19812 elif test $pkg_failed = untried; then
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19814 $as_echo "no" >&6; }
19815 :
19816 else
19817 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19818 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19820 $as_echo "yes" >&6; }
19821
19822 CY_EXECUTE=1
19823
19824
19825 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19826 haveit=
19827 for x in $CPPFLAGS; do
19828
19829 acl_save_prefix="$prefix"
19830 prefix="$acl_final_prefix"
19831 acl_save_exec_prefix="$exec_prefix"
19832 exec_prefix="$acl_final_exec_prefix"
19833 eval x=\"$x\"
19834 exec_prefix="$acl_save_exec_prefix"
19835 prefix="$acl_save_prefix"
19836
19837 if test "X$x" = "X$element"; then
19838 haveit=yes
19839 break
19840 fi
19841 done
19842 if test -z "$haveit"; then
19843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19844 fi
19845 done
19846
19847
19848 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19849 haveit=
19850 for x in $LIBS; do
19851
19852 acl_save_prefix="$prefix"
19853 prefix="$acl_final_prefix"
19854 acl_save_exec_prefix="$exec_prefix"
19855 exec_prefix="$acl_final_exec_prefix"
19856 eval x=\"$x\"
19857 exec_prefix="$acl_save_exec_prefix"
19858 prefix="$acl_save_prefix"
19859
19860 if test "X$x" = "X$element"; then
19861 haveit=yes
19862 break
19863 fi
19864 done
19865 if test -z "$haveit"; then
19866 LIBS="${LIBS}${LIBS:+ }$element"
19867 fi
19868 done
19869
19870
19871 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19872 done
19873
19874 fi
19875 fi
19876
19877 LTJAVASCRIPTCORE=$LIBS
19878 LIBS=$cy_save
19879
19880
19881 ;; #(
19882 no) :
19883
19884 CY_EXECUTE=0
19885 ;; #(
19886 JavaScriptCore) :
19887
19888
19889
19890 cy_save=$LIBS
19891 LIBS=
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19893 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19894 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19895 $as_echo_n "(cached) " >&6
19896 else
19897 ac_func_search_save_LIBS=$LIBS
19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899 /* end confdefs.h. */
19900
19901 /* Override any GCC internal prototype to avoid an error.
19902 Use char because int might match the return type of a GCC
19903 builtin and then its argument prototype would still apply. */
19904 #ifdef __cplusplus
19905 extern "C"
19906 #endif
19907 char JSEvaluateScript ();
19908 int
19909 main ()
19910 {
19911 return JSEvaluateScript ();
19912 ;
19913 return 0;
19914 }
19915 _ACEOF
19916 for ac_lib in '' JavaScriptCore; do
19917 if test -z "$ac_lib"; then
19918 ac_res="none required"
19919 else
19920 ac_res=-l$ac_lib
19921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19922 fi
19923 if ac_fn_cxx_try_link "$LINENO"; then :
19924 ac_cv_search_JSEvaluateScript=$ac_res
19925 fi
19926 rm -f core conftest.err conftest.$ac_objext \
19927 conftest$ac_exeext
19928 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19929 break
19930 fi
19931 done
19932 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19933
19934 else
19935 ac_cv_search_JSEvaluateScript=no
19936 fi
19937 rm conftest.$ac_ext
19938 LIBS=$ac_func_search_save_LIBS
19939 fi
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19941 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19942 ac_res=$ac_cv_search_JSEvaluateScript
19943 if test "$ac_res" != no; then :
19944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19945
19946 CY_EXECUTE=1
19947
19948
19949 else
19950
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19952 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19953 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19954 $as_echo_n "(cached) " >&6
19955 else
19956
19957 ac_check_framework_save_LIBS=$LIBS
19958 LIBS="-framework JavaScriptCore $LIBS"
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h. */
19961
19962 #include <JavaScriptCore/JSBase.h>
19963
19964 int
19965 main ()
19966 {
19967
19968 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19969
19970 ;
19971 return 0;
19972 }
19973 _ACEOF
19974 if ac_fn_cxx_try_link "$LINENO"; then :
19975
19976 ac_cv_framework_JavaScriptCore=yes
19977
19978 else
19979 ac_cv_framework_JavaScriptCore=no
19980 fi
19981 rm -f core conftest.err conftest.$ac_objext \
19982 conftest$ac_exeext conftest.$ac_ext
19983 LIBS=$ac_check_framework_save_LIBS
19984
19985 fi
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19987 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19988 if test $ac_cv_framework_JavaScriptCore = yes; then :
19989
19990
19991 for element in "-framework JavaScriptCore"; do
19992 haveit=
19993 for x in $LIBS; do
19994
19995 acl_save_prefix="$prefix"
19996 prefix="$acl_final_prefix"
19997 acl_save_exec_prefix="$exec_prefix"
19998 exec_prefix="$acl_final_exec_prefix"
19999 eval x=\"$x\"
20000 exec_prefix="$acl_save_exec_prefix"
20001 prefix="$acl_save_prefix"
20002
20003 if test "X$x" = "X$element"; then
20004 haveit=yes
20005 break
20006 fi
20007 done
20008 if test -z "$haveit"; then
20009 LIBS="${LIBS}${LIBS:+ }$element"
20010 fi
20011 done
20012
20013
20014 CY_EXECUTE=1
20015
20016
20017
20018 else
20019
20020 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20021
20022 pkg_failed=no
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20024 $as_echo_n "checking for WEBKIT... " >&6; }
20025
20026 if test -n "$WEBKIT_CFLAGS"; then
20027 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20028 elif test -n "$PKG_CONFIG"; then
20029 if test -n "$PKG_CONFIG" && \
20030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20031 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20032 ac_status=$?
20033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20034 test $ac_status = 0; }; then
20035 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20036 test "x$?" != "x0" && pkg_failed=yes
20037 else
20038 pkg_failed=yes
20039 fi
20040 else
20041 pkg_failed=untried
20042 fi
20043 if test -n "$WEBKIT_LIBS"; then
20044 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20045 elif test -n "$PKG_CONFIG"; then
20046 if test -n "$PKG_CONFIG" && \
20047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20048 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20049 ac_status=$?
20050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20051 test $ac_status = 0; }; then
20052 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20053 test "x$?" != "x0" && pkg_failed=yes
20054 else
20055 pkg_failed=yes
20056 fi
20057 else
20058 pkg_failed=untried
20059 fi
20060
20061
20062
20063 if test $pkg_failed = yes; then
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065 $as_echo "no" >&6; }
20066
20067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20068 _pkg_short_errors_supported=yes
20069 else
20070 _pkg_short_errors_supported=no
20071 fi
20072 if test $_pkg_short_errors_supported = yes; then
20073 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20074 else
20075 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20076 fi
20077 # Put the nasty error message in config.log where it belongs
20078 echo "$WEBKIT_PKG_ERRORS" >&5
20079
20080 :
20081 elif test $pkg_failed = untried; then
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083 $as_echo "no" >&6; }
20084 :
20085 else
20086 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20087 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20089 $as_echo "yes" >&6; }
20090
20091 CY_EXECUTE=1
20092
20093
20094 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20095 haveit=
20096 for x in $CPPFLAGS; do
20097
20098 acl_save_prefix="$prefix"
20099 prefix="$acl_final_prefix"
20100 acl_save_exec_prefix="$exec_prefix"
20101 exec_prefix="$acl_final_exec_prefix"
20102 eval x=\"$x\"
20103 exec_prefix="$acl_save_exec_prefix"
20104 prefix="$acl_save_prefix"
20105
20106 if test "X$x" = "X$element"; then
20107 haveit=yes
20108 break
20109 fi
20110 done
20111 if test -z "$haveit"; then
20112 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20113 fi
20114 done
20115
20116
20117 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20118 haveit=
20119 for x in $LIBS; do
20120
20121 acl_save_prefix="$prefix"
20122 prefix="$acl_final_prefix"
20123 acl_save_exec_prefix="$exec_prefix"
20124 exec_prefix="$acl_final_exec_prefix"
20125 eval x=\"$x\"
20126 exec_prefix="$acl_save_exec_prefix"
20127 prefix="$acl_save_prefix"
20128
20129 if test "X$x" = "X$element"; then
20130 haveit=yes
20131 break
20132 fi
20133 done
20134 if test -z "$haveit"; then
20135 LIBS="${LIBS}${LIBS:+ }$element"
20136 fi
20137 done
20138
20139
20140 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20141 done
20142
20143 fi
20144 fi
20145
20146 LTJAVASCRIPTCORE=$LIBS
20147 LIBS=$cy_save
20148
20149
20150 ;; #(
20151 *) :
20152 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20153 esac
20154
20155 else
20156
20157
20158
20159 cy_save=$LIBS
20160 LIBS=
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20162 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20163 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20164 $as_echo_n "(cached) " >&6
20165 else
20166 ac_func_search_save_LIBS=$LIBS
20167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168 /* end confdefs.h. */
20169
20170 /* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20173 #ifdef __cplusplus
20174 extern "C"
20175 #endif
20176 char JSEvaluateScript ();
20177 int
20178 main ()
20179 {
20180 return JSEvaluateScript ();
20181 ;
20182 return 0;
20183 }
20184 _ACEOF
20185 for ac_lib in '' JavaScriptCore; do
20186 if test -z "$ac_lib"; then
20187 ac_res="none required"
20188 else
20189 ac_res=-l$ac_lib
20190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20191 fi
20192 if ac_fn_cxx_try_link "$LINENO"; then :
20193 ac_cv_search_JSEvaluateScript=$ac_res
20194 fi
20195 rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext
20197 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20198 break
20199 fi
20200 done
20201 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20202
20203 else
20204 ac_cv_search_JSEvaluateScript=no
20205 fi
20206 rm conftest.$ac_ext
20207 LIBS=$ac_func_search_save_LIBS
20208 fi
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20210 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20211 ac_res=$ac_cv_search_JSEvaluateScript
20212 if test "$ac_res" != no; then :
20213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20214
20215 CY_EXECUTE=1
20216
20217
20218 else
20219
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20221 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20222 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20223 $as_echo_n "(cached) " >&6
20224 else
20225
20226 ac_check_framework_save_LIBS=$LIBS
20227 LIBS="-framework JavaScriptCore $LIBS"
20228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20229 /* end confdefs.h. */
20230
20231 #include <JavaScriptCore/JSBase.h>
20232
20233 int
20234 main ()
20235 {
20236
20237 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20238
20239 ;
20240 return 0;
20241 }
20242 _ACEOF
20243 if ac_fn_cxx_try_link "$LINENO"; then :
20244
20245 ac_cv_framework_JavaScriptCore=yes
20246
20247 else
20248 ac_cv_framework_JavaScriptCore=no
20249 fi
20250 rm -f core conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20252 LIBS=$ac_check_framework_save_LIBS
20253
20254 fi
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20256 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20257 if test $ac_cv_framework_JavaScriptCore = yes; then :
20258
20259
20260 for element in "-framework JavaScriptCore"; do
20261 haveit=
20262 for x in $LIBS; do
20263
20264 acl_save_prefix="$prefix"
20265 prefix="$acl_final_prefix"
20266 acl_save_exec_prefix="$exec_prefix"
20267 exec_prefix="$acl_final_exec_prefix"
20268 eval x=\"$x\"
20269 exec_prefix="$acl_save_exec_prefix"
20270 prefix="$acl_save_prefix"
20271
20272 if test "X$x" = "X$element"; then
20273 haveit=yes
20274 break
20275 fi
20276 done
20277 if test -z "$haveit"; then
20278 LIBS="${LIBS}${LIBS:+ }$element"
20279 fi
20280 done
20281
20282
20283 CY_EXECUTE=1
20284
20285
20286
20287 else
20288
20289 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20290
20291 pkg_failed=no
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20293 $as_echo_n "checking for WEBKIT... " >&6; }
20294
20295 if test -n "$WEBKIT_CFLAGS"; then
20296 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20297 elif test -n "$PKG_CONFIG"; then
20298 if test -n "$PKG_CONFIG" && \
20299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20300 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20301 ac_status=$?
20302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20303 test $ac_status = 0; }; then
20304 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20305 test "x$?" != "x0" && pkg_failed=yes
20306 else
20307 pkg_failed=yes
20308 fi
20309 else
20310 pkg_failed=untried
20311 fi
20312 if test -n "$WEBKIT_LIBS"; then
20313 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20314 elif test -n "$PKG_CONFIG"; then
20315 if test -n "$PKG_CONFIG" && \
20316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20317 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20318 ac_status=$?
20319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20320 test $ac_status = 0; }; then
20321 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20322 test "x$?" != "x0" && pkg_failed=yes
20323 else
20324 pkg_failed=yes
20325 fi
20326 else
20327 pkg_failed=untried
20328 fi
20329
20330
20331
20332 if test $pkg_failed = yes; then
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20334 $as_echo "no" >&6; }
20335
20336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20337 _pkg_short_errors_supported=yes
20338 else
20339 _pkg_short_errors_supported=no
20340 fi
20341 if test $_pkg_short_errors_supported = yes; then
20342 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20343 else
20344 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20345 fi
20346 # Put the nasty error message in config.log where it belongs
20347 echo "$WEBKIT_PKG_ERRORS" >&5
20348
20349 :
20350 elif test $pkg_failed = untried; then
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20352 $as_echo "no" >&6; }
20353 :
20354 else
20355 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20356 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20358 $as_echo "yes" >&6; }
20359
20360 CY_EXECUTE=1
20361
20362
20363 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20364 haveit=
20365 for x in $CPPFLAGS; do
20366
20367 acl_save_prefix="$prefix"
20368 prefix="$acl_final_prefix"
20369 acl_save_exec_prefix="$exec_prefix"
20370 exec_prefix="$acl_final_exec_prefix"
20371 eval x=\"$x\"
20372 exec_prefix="$acl_save_exec_prefix"
20373 prefix="$acl_save_prefix"
20374
20375 if test "X$x" = "X$element"; then
20376 haveit=yes
20377 break
20378 fi
20379 done
20380 if test -z "$haveit"; then
20381 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20382 fi
20383 done
20384
20385
20386 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20387 haveit=
20388 for x in $LIBS; do
20389
20390 acl_save_prefix="$prefix"
20391 prefix="$acl_final_prefix"
20392 acl_save_exec_prefix="$exec_prefix"
20393 exec_prefix="$acl_final_exec_prefix"
20394 eval x=\"$x\"
20395 exec_prefix="$acl_save_exec_prefix"
20396 prefix="$acl_save_prefix"
20397
20398 if test "X$x" = "X$element"; then
20399 haveit=yes
20400 break
20401 fi
20402 done
20403 if test -z "$haveit"; then
20404 LIBS="${LIBS}${LIBS:+ }$element"
20405 fi
20406 done
20407
20408
20409 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20410 done
20411
20412 fi
20413 fi
20414
20415 LTJAVASCRIPTCORE=$LIBS
20416 LIBS=$cy_save
20417
20418
20419
20420 fi
20421
20422
20423 # Check whether --enable-console was given.
20424 if test "${enable_console+set}" = set; then :
20425 enableval=$enable_console;
20426 fi
20427
20428 if test "x$enable_console" != "xno"; then
20429 CY_CONSOLE_TRUE=
20430 CY_CONSOLE_FALSE='#'
20431 else
20432 CY_CONSOLE_TRUE='#'
20433 CY_CONSOLE_FALSE=
20434 fi
20435
20436
20437
20438
20439 if test "x$CY_EXECUTE" = x1; then
20440 CY_EXECUTE_TRUE=
20441 CY_EXECUTE_FALSE='#'
20442 else
20443 CY_EXECUTE_TRUE='#'
20444 CY_EXECUTE_FALSE=
20445 fi
20446
20447
20448
20449 case $CY_EXECUTE in #(
20450 1) :
20451
20452 for ac_header in ffi.h ffi/ffi.h
20453 do :
20454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20455 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20457 cat >>confdefs.h <<_ACEOF
20458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20459 _ACEOF
20460 break
20461 fi
20462
20463 done
20464
20465
20466
20467 cy_save=$LIBS
20468 LIBS=
20469 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
20470
20471
20472 LIBFFI_CFLAGS
20473 C compiler flags for LIBFFI, overriding pkg-config
20474 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
20475
20476 pkg_failed=no
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20478 $as_echo_n "checking for LIBFFI... " >&6; }
20479
20480 if test -n "$LIBFFI_CFLAGS"; then
20481 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20482 elif test -n "$PKG_CONFIG"; then
20483 if test -n "$PKG_CONFIG" && \
20484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20485 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20486 ac_status=$?
20487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20488 test $ac_status = 0; }; then
20489 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20490 test "x$?" != "x0" && pkg_failed=yes
20491 else
20492 pkg_failed=yes
20493 fi
20494 else
20495 pkg_failed=untried
20496 fi
20497 if test -n "$LIBFFI_LIBS"; then
20498 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20499 elif test -n "$PKG_CONFIG"; then
20500 if test -n "$PKG_CONFIG" && \
20501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20502 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; }; then
20506 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20507 test "x$?" != "x0" && pkg_failed=yes
20508 else
20509 pkg_failed=yes
20510 fi
20511 else
20512 pkg_failed=untried
20513 fi
20514
20515
20516
20517 if test $pkg_failed = yes; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20519 $as_echo "no" >&6; }
20520
20521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20522 _pkg_short_errors_supported=yes
20523 else
20524 _pkg_short_errors_supported=no
20525 fi
20526 if test $_pkg_short_errors_supported = yes; then
20527 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20528 else
20529 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20530 fi
20531 # Put the nasty error message in config.log where it belongs
20532 echo "$LIBFFI_PKG_ERRORS" >&5
20533
20534 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20535 elif test $pkg_failed = untried; then
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537 $as_echo "no" >&6; }
20538 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20539 else
20540 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20541 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543 $as_echo "yes" >&6; }
20544
20545
20546 for element in `$PKG_CONFIG --cflags libffi`; do
20547 haveit=
20548 for x in $CPPFLAGS; do
20549
20550 acl_save_prefix="$prefix"
20551 prefix="$acl_final_prefix"
20552 acl_save_exec_prefix="$exec_prefix"
20553 exec_prefix="$acl_final_exec_prefix"
20554 eval x=\"$x\"
20555 exec_prefix="$acl_save_exec_prefix"
20556 prefix="$acl_save_prefix"
20557
20558 if test "X$x" = "X$element"; then
20559 haveit=yes
20560 break
20561 fi
20562 done
20563 if test -z "$haveit"; then
20564 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20565 fi
20566 done
20567
20568
20569 for element in `$PKG_CONFIG --libs libffi`; do
20570 haveit=
20571 for x in $LIBS; do
20572
20573 acl_save_prefix="$prefix"
20574 prefix="$acl_final_prefix"
20575 acl_save_exec_prefix="$exec_prefix"
20576 exec_prefix="$acl_final_exec_prefix"
20577 eval x=\"$x\"
20578 exec_prefix="$acl_save_exec_prefix"
20579 prefix="$acl_save_prefix"
20580
20581 if test "X$x" = "X$element"; then
20582 haveit=yes
20583 break
20584 fi
20585 done
20586 if test -z "$haveit"; then
20587 LIBS="${LIBS}${LIBS:+ }$element"
20588 fi
20589 done
20590
20591
20592 fi
20593
20594 else
20595
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20597 $as_echo_n "checking for library containing ffi_call... " >&6; }
20598 if ${ac_cv_search_ffi_call+:} false; then :
20599 $as_echo_n "(cached) " >&6
20600 else
20601 ac_func_search_save_LIBS=$LIBS
20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h. */
20604
20605 /* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
20608 #ifdef __cplusplus
20609 extern "C"
20610 #endif
20611 char ffi_call ();
20612 int
20613 main ()
20614 {
20615 return ffi_call ();
20616 ;
20617 return 0;
20618 }
20619 _ACEOF
20620 for ac_lib in '' ffi; do
20621 if test -z "$ac_lib"; then
20622 ac_res="none required"
20623 else
20624 ac_res=-l$ac_lib
20625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20626 fi
20627 if ac_fn_cxx_try_link "$LINENO"; then :
20628 ac_cv_search_ffi_call=$ac_res
20629 fi
20630 rm -f core conftest.err conftest.$ac_objext \
20631 conftest$ac_exeext
20632 if ${ac_cv_search_ffi_call+:} false; then :
20633 break
20634 fi
20635 done
20636 if ${ac_cv_search_ffi_call+:} false; then :
20637
20638 else
20639 ac_cv_search_ffi_call=no
20640 fi
20641 rm conftest.$ac_ext
20642 LIBS=$ac_func_search_save_LIBS
20643 fi
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20645 $as_echo "$ac_cv_search_ffi_call" >&6; }
20646 ac_res=$ac_cv_search_ffi_call
20647 if test "$ac_res" != no; then :
20648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20649
20650 fi
20651
20652 case $ac_cv_search_ffi_call in #(
20653 no) :
20654
20655
20656 pkg_failed=no
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20658 $as_echo_n "checking for LIBFFI... " >&6; }
20659
20660 if test -n "$LIBFFI_CFLAGS"; then
20661 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20662 elif test -n "$PKG_CONFIG"; then
20663 if test -n "$PKG_CONFIG" && \
20664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20665 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20666 ac_status=$?
20667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668 test $ac_status = 0; }; then
20669 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20670 test "x$?" != "x0" && pkg_failed=yes
20671 else
20672 pkg_failed=yes
20673 fi
20674 else
20675 pkg_failed=untried
20676 fi
20677 if test -n "$LIBFFI_LIBS"; then
20678 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20679 elif test -n "$PKG_CONFIG"; then
20680 if test -n "$PKG_CONFIG" && \
20681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20682 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20683 ac_status=$?
20684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685 test $ac_status = 0; }; then
20686 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20687 test "x$?" != "x0" && pkg_failed=yes
20688 else
20689 pkg_failed=yes
20690 fi
20691 else
20692 pkg_failed=untried
20693 fi
20694
20695
20696
20697 if test $pkg_failed = yes; then
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20699 $as_echo "no" >&6; }
20700
20701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20702 _pkg_short_errors_supported=yes
20703 else
20704 _pkg_short_errors_supported=no
20705 fi
20706 if test $_pkg_short_errors_supported = yes; then
20707 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20708 else
20709 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20710 fi
20711 # Put the nasty error message in config.log where it belongs
20712 echo "$LIBFFI_PKG_ERRORS" >&5
20713
20714 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20715 elif test $pkg_failed = untried; then
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717 $as_echo "no" >&6; }
20718 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20719 else
20720 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20721 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20723 $as_echo "yes" >&6; }
20724
20725
20726 for element in `$PKG_CONFIG --cflags libffi`; do
20727 haveit=
20728 for x in $CPPFLAGS; do
20729
20730 acl_save_prefix="$prefix"
20731 prefix="$acl_final_prefix"
20732 acl_save_exec_prefix="$exec_prefix"
20733 exec_prefix="$acl_final_exec_prefix"
20734 eval x=\"$x\"
20735 exec_prefix="$acl_save_exec_prefix"
20736 prefix="$acl_save_prefix"
20737
20738 if test "X$x" = "X$element"; then
20739 haveit=yes
20740 break
20741 fi
20742 done
20743 if test -z "$haveit"; then
20744 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20745 fi
20746 done
20747
20748
20749 for element in `$PKG_CONFIG --libs libffi`; do
20750 haveit=
20751 for x in $LIBS; do
20752
20753 acl_save_prefix="$prefix"
20754 prefix="$acl_final_prefix"
20755 acl_save_exec_prefix="$exec_prefix"
20756 exec_prefix="$acl_final_exec_prefix"
20757 eval x=\"$x\"
20758 exec_prefix="$acl_save_exec_prefix"
20759 prefix="$acl_save_prefix"
20760
20761 if test "X$x" = "X$element"; then
20762 haveit=yes
20763 break
20764 fi
20765 done
20766 if test -z "$haveit"; then
20767 LIBS="${LIBS}${LIBS:+ }$element"
20768 fi
20769 done
20770
20771
20772 fi ;; #(
20773 *) :
20774 ;;
20775 esac
20776
20777 fi
20778 LTLIBFFI=$LIBS
20779 LIBS=$cy_save
20780
20781
20782
20783 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20784 if test "x$ac_cv_header_jni_h" = xyes; then :
20785
20786 CY_JAVA=1
20787
20788
20789 cy_save=$LIBS
20790 LIBS=
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20792 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20793 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20794 $as_echo_n "(cached) " >&6
20795 else
20796 ac_func_search_save_LIBS=$LIBS
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20799
20800 /* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20803 #ifdef __cplusplus
20804 extern "C"
20805 #endif
20806 char JNI_GetCreatedJavaVMs ();
20807 int
20808 main ()
20809 {
20810 return JNI_GetCreatedJavaVMs ();
20811 ;
20812 return 0;
20813 }
20814 _ACEOF
20815 for ac_lib in '' dvm; do
20816 if test -z "$ac_lib"; then
20817 ac_res="none required"
20818 else
20819 ac_res=-l$ac_lib
20820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20821 fi
20822 if ac_fn_cxx_try_link "$LINENO"; then :
20823 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20824 fi
20825 rm -f core conftest.err conftest.$ac_objext \
20826 conftest$ac_exeext
20827 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20828 break
20829 fi
20830 done
20831 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20832
20833 else
20834 ac_cv_search_JNI_GetCreatedJavaVMs=no
20835 fi
20836 rm conftest.$ac_ext
20837 LIBS=$ac_func_search_save_LIBS
20838 fi
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20840 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20841 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20842 if test "$ac_res" != no; then :
20843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20844
20845
20846 fi
20847
20848 LTJAVA=$LIBS
20849 LIBS=$cy_save
20850
20851
20852
20853 else
20854
20855 CY_JAVA=0
20856
20857
20858 fi
20859
20860
20861
20862 ac_ext=mm
20863 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20864 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20867
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20870 $as_echo_n "checking if we really have Objective C++... " >&6; }
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20873
20874 _ACEOF
20875 if ac_fn_objcxx_try_compile "$LINENO"; then :
20876
20877 CY_OBJECTIVEC=1
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20879 $as_echo "yes" >&6; }
20880
20881 else
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20883 $as_echo "no" >&6; }
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886
20887 if test "x$CY_OBJECTIVEC" = x1; then :
20888
20889
20890 cy_save=$LIBS
20891 LIBS=
20892
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20894 $as_echo_n "checking for framework CoreFoundation... " >&6; }
20895 if ${ac_cv_framework_CoreFoundation+:} false; then :
20896 $as_echo_n "(cached) " >&6
20897 else
20898
20899 ac_check_framework_save_LIBS=$LIBS
20900 LIBS="-framework CoreFoundation $LIBS"
20901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902 /* end confdefs.h. */
20903
20904 #include <CoreFoundation/CFBase.h>
20905
20906 int
20907 main ()
20908 {
20909 CFAllocatorGetDefault();
20910 ;
20911 return 0;
20912 }
20913 _ACEOF
20914 if ac_fn_objcxx_try_link "$LINENO"; then :
20915
20916 ac_cv_framework_CoreFoundation=yes
20917
20918 else
20919 ac_cv_framework_CoreFoundation=no
20920 fi
20921 rm -f core conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
20923 LIBS=$ac_check_framework_save_LIBS
20924
20925 fi
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20927 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20928 if test $ac_cv_framework_CoreFoundation = yes; then :
20929
20930
20931 for element in "-framework CoreFoundation"; do
20932 haveit=
20933 for x in $LIBS; do
20934
20935 acl_save_prefix="$prefix"
20936 prefix="$acl_final_prefix"
20937 acl_save_exec_prefix="$exec_prefix"
20938 exec_prefix="$acl_final_exec_prefix"
20939 eval x=\"$x\"
20940 exec_prefix="$acl_save_exec_prefix"
20941 prefix="$acl_save_prefix"
20942
20943 if test "X$x" = "X$element"; then
20944 haveit=yes
20945 break
20946 fi
20947 done
20948 if test -z "$haveit"; then
20949 LIBS="${LIBS}${LIBS:+ }$element"
20950 fi
20951 done
20952
20953
20954
20955
20956
20957
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20959 $as_echo_n "checking for framework Foundation... " >&6; }
20960 if ${ac_cv_framework_Foundation+:} false; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20963
20964 ac_check_framework_save_LIBS=$LIBS
20965 LIBS="-framework Foundation $LIBS"
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968
20969 #include <Foundation/NSObject.h>
20970
20971 int
20972 main ()
20973 {
20974 [[NSObject alloc] init];
20975 ;
20976 return 0;
20977 }
20978 _ACEOF
20979 if ac_fn_objcxx_try_link "$LINENO"; then :
20980
20981 ac_cv_framework_Foundation=yes
20982
20983 else
20984 ac_cv_framework_Foundation=no
20985 fi
20986 rm -f core conftest.err conftest.$ac_objext \
20987 conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_framework_save_LIBS
20989
20990 fi
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
20992 $as_echo "$ac_cv_framework_Foundation" >&6; }
20993 if test $ac_cv_framework_Foundation = yes; then :
20994
20995
20996 for element in "-framework Foundation"; do
20997 haveit=
20998 for x in $LIBS; do
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 eval x=\"$x\"
21005 exec_prefix="$acl_save_exec_prefix"
21006 prefix="$acl_save_prefix"
21007
21008 if test "X$x" = "X$element"; then
21009 haveit=yes
21010 break
21011 fi
21012 done
21013 if test -z "$haveit"; then
21014 LIBS="${LIBS}${LIBS:+ }$element"
21015 fi
21016 done
21017
21018 cat >>confdefs.h <<_ACEOF
21019 #define HAVE_FRAMEWORK_FOUNDATION 1
21020 _ACEOF
21021
21022
21023 fi
21024
21025
21026 else
21027
21028
21029 for ac_prog in gnustep-config
21030 do
21031 # Extract the first word of "$ac_prog", so it can be a program name with args.
21032 set dummy $ac_prog; ac_word=$2
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21034 $as_echo_n "checking for $ac_word... " >&6; }
21035 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21036 $as_echo_n "(cached) " >&6
21037 else
21038 if test -n "$GNUSTEP_CONFIG"; then
21039 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
21040 else
21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042 for as_dir in $PATH
21043 do
21044 IFS=$as_save_IFS
21045 test -z "$as_dir" && as_dir=.
21046 for ac_exec_ext in '' $ac_executable_extensions; do
21047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21048 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21050 break 2
21051 fi
21052 done
21053 done
21054 IFS=$as_save_IFS
21055
21056 fi
21057 fi
21058 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21059 if test -n "$GNUSTEP_CONFIG"; then
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21061 $as_echo "$GNUSTEP_CONFIG" >&6; }
21062 else
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21064 $as_echo "no" >&6; }
21065 fi
21066
21067
21068 test -n "$GNUSTEP_CONFIG" && break
21069 done
21070
21071
21072 if test "x$GNUSTEP_CONFIG" != x; then :
21073
21074
21075
21076 for element in `$GNUSTEP_CONFIG --objc-flags`; do
21077 haveit=
21078 for x in $OBJCXXFLAGS; do
21079
21080 acl_save_prefix="$prefix"
21081 prefix="$acl_final_prefix"
21082 acl_save_exec_prefix="$exec_prefix"
21083 exec_prefix="$acl_final_exec_prefix"
21084 eval x=\"$x\"
21085 exec_prefix="$acl_save_exec_prefix"
21086 prefix="$acl_save_prefix"
21087
21088 if test "X$x" = "X$element"; then
21089 haveit=yes
21090 break
21091 fi
21092 done
21093 if test -z "$haveit"; then
21094 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21095 fi
21096 done
21097
21098
21099 for element in `$GNUSTEP_CONFIG --base-libs`; do
21100 haveit=
21101 for x in $LIBS; do
21102
21103 acl_save_prefix="$prefix"
21104 prefix="$acl_final_prefix"
21105 acl_save_exec_prefix="$exec_prefix"
21106 exec_prefix="$acl_final_exec_prefix"
21107 eval x=\"$x\"
21108 exec_prefix="$acl_save_exec_prefix"
21109 prefix="$acl_save_prefix"
21110
21111 if test "X$x" = "X$element"; then
21112 haveit=yes
21113 break
21114 fi
21115 done
21116 if test -z "$haveit"; then
21117 LIBS="${LIBS}${LIBS:+ }$element"
21118 fi
21119 done
21120
21121
21122 else
21123 CY_OBJECTIVEC=0
21124
21125 fi
21126
21127 fi
21128 LTOBJECTIVEC=$LIBS
21129 LIBS=$cy_save
21130
21131
21132
21133 fi
21134
21135 ac_ext=cpp
21136 ac_cpp='$CXXCPP $CPPFLAGS'
21137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21140
21141 ;; #(
21142 *) :
21143 ;;
21144 esac
21145
21146 if test "x$CY_JAVA" = x1; then
21147 CY_JAVA_TRUE=
21148 CY_JAVA_FALSE='#'
21149 else
21150 CY_JAVA_TRUE='#'
21151 CY_JAVA_FALSE=
21152 fi
21153
21154 if test "x$CY_OBJECTIVEC" = x1; then
21155 CY_OBJECTIVEC_TRUE=
21156 CY_OBJECTIVEC_FALSE='#'
21157 else
21158 CY_OBJECTIVEC_TRUE='#'
21159 CY_OBJECTIVEC_FALSE=
21160 fi
21161
21162
21163
21164 cy_save=$LIBS
21165 LIBS=
21166
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21168 $as_echo_n "checking for a readline compatible library... " >&6; }
21169 if ${ax_cv_lib_readline+:} false; then :
21170 $as_echo_n "(cached) " >&6
21171 else
21172
21173 ORIG_LIBS="$LIBS"
21174 for readline_lib in readline edit editline; do
21175 for termcap_lib in "" termcap curses ncurses; do
21176 if test -z "$termcap_lib"; then
21177 TRY_LIB="-l$readline_lib"
21178 else
21179 TRY_LIB="-l$readline_lib -l$termcap_lib"
21180 fi
21181 LIBS="$ORIG_LIBS $TRY_LIB"
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h. */
21184
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char readline ();
21192 int
21193 main ()
21194 {
21195 return readline ();
21196 ;
21197 return 0;
21198 }
21199 _ACEOF
21200 if ac_fn_cxx_try_link "$LINENO"; then :
21201 ax_cv_lib_readline="$TRY_LIB"
21202 fi
21203 rm -f core conftest.err conftest.$ac_objext \
21204 conftest$ac_exeext conftest.$ac_ext
21205 if test -n "$ax_cv_lib_readline"; then
21206 break
21207 fi
21208 done
21209 if test -n "$ax_cv_lib_readline"; then
21210 break
21211 fi
21212 done
21213 if test -z "$ax_cv_lib_readline"; then
21214 ax_cv_lib_readline="no"
21215 fi
21216 LIBS="$ORIG_LIBS"
21217
21218 fi
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21220 $as_echo "$ax_cv_lib_readline" >&6; }
21221
21222 if test "$ax_cv_lib_readline" != "no"; then
21223 LIBS="$LIBS $ax_cv_lib_readline"
21224
21225 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21226
21227 for ac_header in readline.h readline/readline.h
21228 do :
21229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21230 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21232 cat >>confdefs.h <<_ACEOF
21233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21234 _ACEOF
21235
21236 fi
21237
21238 done
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21241 $as_echo_n "checking whether readline supports history... " >&6; }
21242 if ${ax_cv_lib_readline_history+:} false; then :
21243 $as_echo_n "(cached) " >&6
21244 else
21245
21246 ax_cv_lib_readline_history="no"
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248 /* end confdefs.h. */
21249
21250 /* Override any GCC internal prototype to avoid an error.
21251 Use char because int might match the return type of a GCC
21252 builtin and then its argument prototype would still apply. */
21253 #ifdef __cplusplus
21254 extern "C"
21255 #endif
21256 char add_history ();
21257 int
21258 main ()
21259 {
21260 return add_history ();
21261 ;
21262 return 0;
21263 }
21264 _ACEOF
21265 if ac_fn_cxx_try_link "$LINENO"; then :
21266 ax_cv_lib_readline_history="yes"
21267 fi
21268 rm -f core conftest.err conftest.$ac_objext \
21269 conftest$ac_exeext conftest.$ac_ext
21270
21271 fi
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21273 $as_echo "$ax_cv_lib_readline_history" >&6; }
21274 if test "$ax_cv_lib_readline_history" = "yes"; then
21275
21276 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21277
21278 for ac_header in history.h readline/history.h
21279 do :
21280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21281 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21283 cat >>confdefs.h <<_ACEOF
21284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21285 _ACEOF
21286
21287 fi
21288
21289 done
21290
21291 fi
21292 fi
21293
21294 LTLIBREADLINE=$LIBS
21295 LIBS=$cy_save
21296
21297
21298 case $ax_cv_lib_readline in #(
21299 no) :
21300 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21301 *) :
21302 ;;
21303 esac
21304
21305
21306 cy_save=$LIBS
21307 LIBS=
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21309 $as_echo_n "checking for library containing cur_term... " >&6; }
21310 if ${ac_cv_search_cur_term+:} false; then :
21311 $as_echo_n "(cached) " >&6
21312 else
21313 ac_func_search_save_LIBS=$LIBS
21314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h. */
21316
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 char cur_term ();
21324 int
21325 main ()
21326 {
21327 return cur_term ();
21328 ;
21329 return 0;
21330 }
21331 _ACEOF
21332 for ac_lib in '' termcap ncurses; do
21333 if test -z "$ac_lib"; then
21334 ac_res="none required"
21335 else
21336 ac_res=-l$ac_lib
21337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21338 fi
21339 if ac_fn_cxx_try_link "$LINENO"; then :
21340 ac_cv_search_cur_term=$ac_res
21341 fi
21342 rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext
21344 if ${ac_cv_search_cur_term+:} false; then :
21345 break
21346 fi
21347 done
21348 if ${ac_cv_search_cur_term+:} false; then :
21349
21350 else
21351 ac_cv_search_cur_term=no
21352 fi
21353 rm conftest.$ac_ext
21354 LIBS=$ac_func_search_save_LIBS
21355 fi
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21357 $as_echo "$ac_cv_search_cur_term" >&6; }
21358 ac_res=$ac_cv_search_cur_term
21359 if test "$ac_res" != no; then :
21360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21361
21362 fi
21363
21364 LTLIBTERMCAP=$LIBS
21365 LIBS=$cy_save
21366
21367
21368
21369
21370
21371
21372 SO=$acl_shlibext
21373
21374
21375 if test "x$CY_EXECUTE" = x1; then :
21376
21377 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21378 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
21379
21380 if test -n "$ac_tool_prefix"; then
21381 for ac_prog in lipo
21382 do
21383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21386 $as_echo_n "checking for $ac_word... " >&6; }
21387 if ${ac_cv_prog__LIPO+:} false; then :
21388 $as_echo_n "(cached) " >&6
21389 else
21390 if test -n "$_LIPO"; then
21391 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
21392 else
21393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394 for as_dir in $PATH
21395 do
21396 IFS=$as_save_IFS
21397 test -z "$as_dir" && as_dir=.
21398 for ac_exec_ext in '' $ac_executable_extensions; do
21399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21400 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
21401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21402 break 2
21403 fi
21404 done
21405 done
21406 IFS=$as_save_IFS
21407
21408 fi
21409 fi
21410 _LIPO=$ac_cv_prog__LIPO
21411 if test -n "$_LIPO"; then
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21413 $as_echo "$_LIPO" >&6; }
21414 else
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 fi
21418
21419
21420 test -n "$_LIPO" && break
21421 done
21422 fi
21423 if test -z "$_LIPO"; then
21424 ac_ct__LIPO=$_LIPO
21425 for ac_prog in lipo
21426 do
21427 # Extract the first word of "$ac_prog", so it can be a program name with args.
21428 set dummy $ac_prog; ac_word=$2
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21430 $as_echo_n "checking for $ac_word... " >&6; }
21431 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
21432 $as_echo_n "(cached) " >&6
21433 else
21434 if test -n "$ac_ct__LIPO"; then
21435 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
21436 else
21437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21438 for as_dir in $PATH
21439 do
21440 IFS=$as_save_IFS
21441 test -z "$as_dir" && as_dir=.
21442 for ac_exec_ext in '' $ac_executable_extensions; do
21443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21444 ac_cv_prog_ac_ct__LIPO="$ac_prog"
21445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21446 break 2
21447 fi
21448 done
21449 done
21450 IFS=$as_save_IFS
21451
21452 fi
21453 fi
21454 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21455 if test -n "$ac_ct__LIPO"; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21457 $as_echo "$ac_ct__LIPO" >&6; }
21458 else
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21460 $as_echo "no" >&6; }
21461 fi
21462
21463
21464 test -n "$ac_ct__LIPO" && break
21465 done
21466
21467 if test "x$ac_ct__LIPO" = x; then
21468 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
21469 else
21470 case $cross_compiling:$ac_tool_warned in
21471 yes:)
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21474 ac_tool_warned=yes ;;
21475 esac
21476 _LIPO=$ac_ct__LIPO
21477 fi
21478 fi
21479
21480 if test -n "$ac_tool_prefix"; then
21481 for ac_prog in nm
21482 do
21483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if ${ac_cv_prog__NM+:} false; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 if test -n "$_NM"; then
21491 ac_cv_prog__NM="$_NM" # Let the user override the test.
21492 else
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21495 do
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21500 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
21501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21503 fi
21504 done
21505 done
21506 IFS=$as_save_IFS
21507
21508 fi
21509 fi
21510 _NM=$ac_cv_prog__NM
21511 if test -n "$_NM"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21513 $as_echo "$_NM" >&6; }
21514 else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516 $as_echo "no" >&6; }
21517 fi
21518
21519
21520 test -n "$_NM" && break
21521 done
21522 fi
21523 if test -z "$_NM"; then
21524 ac_ct__NM=$_NM
21525 for ac_prog in nm
21526 do
21527 # Extract the first word of "$ac_prog", so it can be a program name with args.
21528 set dummy $ac_prog; ac_word=$2
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21530 $as_echo_n "checking for $ac_word... " >&6; }
21531 if ${ac_cv_prog_ac_ct__NM+:} false; then :
21532 $as_echo_n "(cached) " >&6
21533 else
21534 if test -n "$ac_ct__NM"; then
21535 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
21536 else
21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21539 do
21540 IFS=$as_save_IFS
21541 test -z "$as_dir" && as_dir=.
21542 for ac_exec_ext in '' $ac_executable_extensions; do
21543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21544 ac_cv_prog_ac_ct__NM="$ac_prog"
21545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546 break 2
21547 fi
21548 done
21549 done
21550 IFS=$as_save_IFS
21551
21552 fi
21553 fi
21554 ac_ct__NM=$ac_cv_prog_ac_ct__NM
21555 if test -n "$ac_ct__NM"; then
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21557 $as_echo "$ac_ct__NM" >&6; }
21558 else
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560 $as_echo "no" >&6; }
21561 fi
21562
21563
21564 test -n "$ac_ct__NM" && break
21565 done
21566
21567 if test "x$ac_ct__NM" = x; then
21568 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
21569 else
21570 case $cross_compiling:$ac_tool_warned in
21571 yes:)
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21574 ac_tool_warned=yes ;;
21575 esac
21576 _NM=$ac_ct__NM
21577 fi
21578 fi
21579
21580 if test -n "$ac_tool_prefix"; then
21581 for ac_prog in otool
21582 do
21583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21586 $as_echo_n "checking for $ac_word... " >&6; }
21587 if ${ac_cv_prog__OTOOL+:} false; then :
21588 $as_echo_n "(cached) " >&6
21589 else
21590 if test -n "$_OTOOL"; then
21591 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
21592 else
21593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21594 for as_dir in $PATH
21595 do
21596 IFS=$as_save_IFS
21597 test -z "$as_dir" && as_dir=.
21598 for ac_exec_ext in '' $ac_executable_extensions; do
21599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21600 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
21601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21602 break 2
21603 fi
21604 done
21605 done
21606 IFS=$as_save_IFS
21607
21608 fi
21609 fi
21610 _OTOOL=$ac_cv_prog__OTOOL
21611 if test -n "$_OTOOL"; then
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21613 $as_echo "$_OTOOL" >&6; }
21614 else
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21616 $as_echo "no" >&6; }
21617 fi
21618
21619
21620 test -n "$_OTOOL" && break
21621 done
21622 fi
21623 if test -z "$_OTOOL"; then
21624 ac_ct__OTOOL=$_OTOOL
21625 for ac_prog in otool
21626 do
21627 # Extract the first word of "$ac_prog", so it can be a program name with args.
21628 set dummy $ac_prog; ac_word=$2
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21630 $as_echo_n "checking for $ac_word... " >&6; }
21631 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 if test -n "$ac_ct__OTOOL"; then
21635 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
21636 else
21637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638 for as_dir in $PATH
21639 do
21640 IFS=$as_save_IFS
21641 test -z "$as_dir" && as_dir=.
21642 for ac_exec_ext in '' $ac_executable_extensions; do
21643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21644 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21646 break 2
21647 fi
21648 done
21649 done
21650 IFS=$as_save_IFS
21651
21652 fi
21653 fi
21654 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21655 if test -n "$ac_ct__OTOOL"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21657 $as_echo "$ac_ct__OTOOL" >&6; }
21658 else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 $as_echo "no" >&6; }
21661 fi
21662
21663
21664 test -n "$ac_ct__OTOOL" && break
21665 done
21666
21667 if test "x$ac_ct__OTOOL" = x; then
21668 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
21669 else
21670 case $cross_compiling:$ac_tool_warned in
21671 yes:)
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21674 ac_tool_warned=yes ;;
21675 esac
21676 _OTOOL=$ac_ct__OTOOL
21677 fi
21678 fi
21679
21680 CY_ATTACH_GROUP=procmod
21681
21682 CY_MACH=1
21683
21684 fi
21685
21686
21687 fi
21688 if test "x$CY_MACH" = x1; then
21689 CY_MACH_TRUE=
21690 CY_MACH_FALSE='#'
21691 else
21692 CY_MACH_TRUE='#'
21693 CY_MACH_FALSE=
21694 fi
21695
21696
21697 ac_config_files="$ac_config_files Makefile"
21698
21699 cat >confcache <<\_ACEOF
21700 # This file is a shell script that caches the results of configure
21701 # tests run on this system so they can be shared between configure
21702 # scripts and configure runs, see configure's option --config-cache.
21703 # It is not useful on other systems. If it contains results you don't
21704 # want to keep, you may remove or edit it.
21705 #
21706 # config.status only pays attention to the cache file if you give it
21707 # the --recheck option to rerun configure.
21708 #
21709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21711 # following values.
21712
21713 _ACEOF
21714
21715 # The following way of writing the cache mishandles newlines in values,
21716 # but we know of no workaround that is simple, portable, and efficient.
21717 # So, we kill variables containing newlines.
21718 # Ultrix sh set writes to stderr and can't be redirected directly,
21719 # and sets the high bit in the cache file unless we assign to the vars.
21720 (
21721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21722 eval ac_val=\$$ac_var
21723 case $ac_val in #(
21724 *${as_nl}*)
21725 case $ac_var in #(
21726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21728 esac
21729 case $ac_var in #(
21730 _ | IFS | as_nl) ;; #(
21731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21732 *) { eval $ac_var=; unset $ac_var;} ;;
21733 esac ;;
21734 esac
21735 done
21736
21737 (set) 2>&1 |
21738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21739 *${as_nl}ac_space=\ *)
21740 # `set' does not quote correctly, so add quotes: double-quote
21741 # substitution turns \\\\ into \\, and sed turns \\ into \.
21742 sed -n \
21743 "s/'/'\\\\''/g;
21744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21745 ;; #(
21746 *)
21747 # `set' quotes correctly as required by POSIX, so do not add quotes.
21748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21749 ;;
21750 esac |
21751 sort
21752 ) |
21753 sed '
21754 /^ac_cv_env_/b end
21755 t clear
21756 :clear
21757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21758 t end
21759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21760 :end' >>confcache
21761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21762 if test -w "$cache_file"; then
21763 if test "x$cache_file" != "x/dev/null"; then
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21765 $as_echo "$as_me: updating cache $cache_file" >&6;}
21766 if test ! -f "$cache_file" || test -h "$cache_file"; then
21767 cat confcache >"$cache_file"
21768 else
21769 case $cache_file in #(
21770 */* | ?:*)
21771 mv -f confcache "$cache_file"$$ &&
21772 mv -f "$cache_file"$$ "$cache_file" ;; #(
21773 *)
21774 mv -f confcache "$cache_file" ;;
21775 esac
21776 fi
21777 fi
21778 else
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21780 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21781 fi
21782 fi
21783 rm -f confcache
21784
21785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21786 # Let make expand exec_prefix.
21787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21788
21789 DEFS=-DHAVE_CONFIG_H
21790
21791 ac_libobjs=
21792 ac_ltlibobjs=
21793 U=
21794 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21795 # 1. Remove the extension, and $U if already installed.
21796 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21797 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21799 # will be set to the directory where LIBOBJS objects are built.
21800 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21801 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21802 done
21803 LIBOBJS=$ac_libobjs
21804
21805 LTLIBOBJS=$ac_ltlibobjs
21806
21807
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21809 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21810 if test -n "$am_sleep_pid"; then
21811 # Hide warnings about reused PIDs.
21812 wait $am_sleep_pid 2>/dev/null
21813 fi
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21815 $as_echo "done" >&6; }
21816 if test -n "$EXEEXT"; then
21817 am__EXEEXT_TRUE=
21818 am__EXEEXT_FALSE='#'
21819 else
21820 am__EXEEXT_TRUE='#'
21821 am__EXEEXT_FALSE=
21822 fi
21823
21824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21827 fi
21828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21829 as_fn_error $? "conditional \"AMDEP\" was never defined.
21830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21831 fi
21832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21833 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21835 fi
21836 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21837 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21839 fi
21840 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21841 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21843 fi
21844 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21845 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
21846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21847 fi
21848 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21849 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21851 fi
21852 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21853 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21855 fi
21856 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21857 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21859 fi
21860 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21861 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21863 fi
21864
21865 : "${CONFIG_STATUS=./config.status}"
21866 ac_write_fail=0
21867 ac_clean_files_save=$ac_clean_files
21868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21870 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21871 as_write_fail=0
21872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21873 #! $SHELL
21874 # Generated by $as_me.
21875 # Run this file to recreate the current configuration.
21876 # Compiler output produced by configure, useful for debugging
21877 # configure, is in config.log if it exists.
21878
21879 debug=false
21880 ac_cs_recheck=false
21881 ac_cs_silent=false
21882
21883 SHELL=\${CONFIG_SHELL-$SHELL}
21884 export SHELL
21885 _ASEOF
21886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21887 ## -------------------- ##
21888 ## M4sh Initialization. ##
21889 ## -------------------- ##
21890
21891 # Be more Bourne compatible
21892 DUALCASE=1; export DUALCASE # for MKS sh
21893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21894 emulate sh
21895 NULLCMD=:
21896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21897 # is contrary to our usage. Disable this feature.
21898 alias -g '${1+"$@"}'='"$@"'
21899 setopt NO_GLOB_SUBST
21900 else
21901 case `(set -o) 2>/dev/null` in #(
21902 *posix*) :
21903 set -o posix ;; #(
21904 *) :
21905 ;;
21906 esac
21907 fi
21908
21909
21910 as_nl='
21911 '
21912 export as_nl
21913 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21914 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21917 # Prefer a ksh shell builtin over an external printf program on Solaris,
21918 # but without wasting forks for bash or zsh.
21919 if test -z "$BASH_VERSION$ZSH_VERSION" \
21920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21921 as_echo='print -r --'
21922 as_echo_n='print -rn --'
21923 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21924 as_echo='printf %s\n'
21925 as_echo_n='printf %s'
21926 else
21927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21929 as_echo_n='/usr/ucb/echo -n'
21930 else
21931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21932 as_echo_n_body='eval
21933 arg=$1;
21934 case $arg in #(
21935 *"$as_nl"*)
21936 expr "X$arg" : "X\\(.*\\)$as_nl";
21937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21938 esac;
21939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21940 '
21941 export as_echo_n_body
21942 as_echo_n='sh -c $as_echo_n_body as_echo'
21943 fi
21944 export as_echo_body
21945 as_echo='sh -c $as_echo_body as_echo'
21946 fi
21947
21948 # The user is always right.
21949 if test "${PATH_SEPARATOR+set}" != set; then
21950 PATH_SEPARATOR=:
21951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21953 PATH_SEPARATOR=';'
21954 }
21955 fi
21956
21957
21958 # IFS
21959 # We need space, tab and new line, in precisely that order. Quoting is
21960 # there to prevent editors from complaining about space-tab.
21961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21962 # splitting by setting IFS to empty value.)
21963 IFS=" "" $as_nl"
21964
21965 # Find who we are. Look in the path if we contain no directory separator.
21966 as_myself=
21967 case $0 in #((
21968 *[\\/]* ) as_myself=$0 ;;
21969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21970 for as_dir in $PATH
21971 do
21972 IFS=$as_save_IFS
21973 test -z "$as_dir" && as_dir=.
21974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21975 done
21976 IFS=$as_save_IFS
21977
21978 ;;
21979 esac
21980 # We did not find ourselves, most probably we were run as `sh COMMAND'
21981 # in which case we are not to be found in the path.
21982 if test "x$as_myself" = x; then
21983 as_myself=$0
21984 fi
21985 if test ! -f "$as_myself"; then
21986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21987 exit 1
21988 fi
21989
21990 # Unset variables that we do not need and which cause bugs (e.g. in
21991 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21992 # suppresses any "Segmentation fault" message there. '((' could
21993 # trigger a bug in pdksh 5.2.14.
21994 for as_var in BASH_ENV ENV MAIL MAILPATH
21995 do eval test x\${$as_var+set} = xset \
21996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21997 done
21998 PS1='$ '
21999 PS2='> '
22000 PS4='+ '
22001
22002 # NLS nuisances.
22003 LC_ALL=C
22004 export LC_ALL
22005 LANGUAGE=C
22006 export LANGUAGE
22007
22008 # CDPATH.
22009 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22010
22011
22012 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22013 # ----------------------------------------
22014 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22015 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22016 # script with STATUS, using 1 if that was 0.
22017 as_fn_error ()
22018 {
22019 as_status=$1; test $as_status -eq 0 && as_status=1
22020 if test "$4"; then
22021 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22023 fi
22024 $as_echo "$as_me: error: $2" >&2
22025 as_fn_exit $as_status
22026 } # as_fn_error
22027
22028
22029 # as_fn_set_status STATUS
22030 # -----------------------
22031 # Set $? to STATUS, without forking.
22032 as_fn_set_status ()
22033 {
22034 return $1
22035 } # as_fn_set_status
22036
22037 # as_fn_exit STATUS
22038 # -----------------
22039 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22040 as_fn_exit ()
22041 {
22042 set +e
22043 as_fn_set_status $1
22044 exit $1
22045 } # as_fn_exit
22046
22047 # as_fn_unset VAR
22048 # ---------------
22049 # Portably unset VAR.
22050 as_fn_unset ()
22051 {
22052 { eval $1=; unset $1;}
22053 }
22054 as_unset=as_fn_unset
22055 # as_fn_append VAR VALUE
22056 # ----------------------
22057 # Append the text in VALUE to the end of the definition contained in VAR. Take
22058 # advantage of any shell optimizations that allow amortized linear growth over
22059 # repeated appends, instead of the typical quadratic growth present in naive
22060 # implementations.
22061 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22062 eval 'as_fn_append ()
22063 {
22064 eval $1+=\$2
22065 }'
22066 else
22067 as_fn_append ()
22068 {
22069 eval $1=\$$1\$2
22070 }
22071 fi # as_fn_append
22072
22073 # as_fn_arith ARG...
22074 # ------------------
22075 # Perform arithmetic evaluation on the ARGs, and store the result in the
22076 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22077 # must be portable across $(()) and expr.
22078 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22079 eval 'as_fn_arith ()
22080 {
22081 as_val=$(( $* ))
22082 }'
22083 else
22084 as_fn_arith ()
22085 {
22086 as_val=`expr "$@" || test $? -eq 1`
22087 }
22088 fi # as_fn_arith
22089
22090
22091 if expr a : '\(a\)' >/dev/null 2>&1 &&
22092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22093 as_expr=expr
22094 else
22095 as_expr=false
22096 fi
22097
22098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22099 as_basename=basename
22100 else
22101 as_basename=false
22102 fi
22103
22104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22105 as_dirname=dirname
22106 else
22107 as_dirname=false
22108 fi
22109
22110 as_me=`$as_basename -- "$0" ||
22111 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22112 X"$0" : 'X\(//\)$' \| \
22113 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22114 $as_echo X/"$0" |
22115 sed '/^.*\/\([^/][^/]*\)\/*$/{
22116 s//\1/
22117 q
22118 }
22119 /^X\/\(\/\/\)$/{
22120 s//\1/
22121 q
22122 }
22123 /^X\/\(\/\).*/{
22124 s//\1/
22125 q
22126 }
22127 s/.*/./; q'`
22128
22129 # Avoid depending upon Character Ranges.
22130 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22131 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22132 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22133 as_cr_digits='0123456789'
22134 as_cr_alnum=$as_cr_Letters$as_cr_digits
22135
22136 ECHO_C= ECHO_N= ECHO_T=
22137 case `echo -n x` in #(((((
22138 -n*)
22139 case `echo 'xy\c'` in
22140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22141 xy) ECHO_C='\c';;
22142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22143 ECHO_T=' ';;
22144 esac;;
22145 *)
22146 ECHO_N='-n';;
22147 esac
22148
22149 rm -f conf$$ conf$$.exe conf$$.file
22150 if test -d conf$$.dir; then
22151 rm -f conf$$.dir/conf$$.file
22152 else
22153 rm -f conf$$.dir
22154 mkdir conf$$.dir 2>/dev/null
22155 fi
22156 if (echo >conf$$.file) 2>/dev/null; then
22157 if ln -s conf$$.file conf$$ 2>/dev/null; then
22158 as_ln_s='ln -s'
22159 # ... but there are two gotchas:
22160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22162 # In both cases, we have to default to `cp -pR'.
22163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22164 as_ln_s='cp -pR'
22165 elif ln conf$$.file conf$$ 2>/dev/null; then
22166 as_ln_s=ln
22167 else
22168 as_ln_s='cp -pR'
22169 fi
22170 else
22171 as_ln_s='cp -pR'
22172 fi
22173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22174 rmdir conf$$.dir 2>/dev/null
22175
22176
22177 # as_fn_mkdir_p
22178 # -------------
22179 # Create "$as_dir" as a directory, including parents if necessary.
22180 as_fn_mkdir_p ()
22181 {
22182
22183 case $as_dir in #(
22184 -*) as_dir=./$as_dir;;
22185 esac
22186 test -d "$as_dir" || eval $as_mkdir_p || {
22187 as_dirs=
22188 while :; do
22189 case $as_dir in #(
22190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22191 *) as_qdir=$as_dir;;
22192 esac
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199 $as_echo X"$as_dir" |
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201 s//\1/
22202 q
22203 }
22204 /^X\(\/\/\)[^/].*/{
22205 s//\1/
22206 q
22207 }
22208 /^X\(\/\/\)$/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\).*/{
22213 s//\1/
22214 q
22215 }
22216 s/.*/./; q'`
22217 test -d "$as_dir" && break
22218 done
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
22220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22221
22222
22223 } # as_fn_mkdir_p
22224 if mkdir -p . 2>/dev/null; then
22225 as_mkdir_p='mkdir -p "$as_dir"'
22226 else
22227 test -d ./-p && rmdir ./-p
22228 as_mkdir_p=false
22229 fi
22230
22231
22232 # as_fn_executable_p FILE
22233 # -----------------------
22234 # Test if FILE is an executable regular file.
22235 as_fn_executable_p ()
22236 {
22237 test -f "$1" && test -x "$1"
22238 } # as_fn_executable_p
22239 as_test_x='test -x'
22240 as_executable_p=as_fn_executable_p
22241
22242 # Sed expression to map a string onto a valid CPP name.
22243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22244
22245 # Sed expression to map a string onto a valid variable name.
22246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22247
22248
22249 exec 6>&1
22250 ## ----------------------------------- ##
22251 ## Main body of $CONFIG_STATUS script. ##
22252 ## ----------------------------------- ##
22253 _ASEOF
22254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22255
22256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22257 # Save the log message, to keep $0 and so on meaningful, and to
22258 # report actual input values of CONFIG_FILES etc. instead of their
22259 # values after options handling.
22260 ac_log="
22261 This file was extended by Cycript $as_me 0.9, which was
22262 generated by GNU Autoconf 2.69. Invocation command line was
22263
22264 CONFIG_FILES = $CONFIG_FILES
22265 CONFIG_HEADERS = $CONFIG_HEADERS
22266 CONFIG_LINKS = $CONFIG_LINKS
22267 CONFIG_COMMANDS = $CONFIG_COMMANDS
22268 $ $0 $@
22269
22270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22271 "
22272
22273 _ACEOF
22274
22275 case $ac_config_files in *"
22276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22277 esac
22278
22279 case $ac_config_headers in *"
22280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22281 esac
22282
22283
22284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22285 # Files that config.status was made for.
22286 config_files="$ac_config_files"
22287 config_headers="$ac_config_headers"
22288 config_commands="$ac_config_commands"
22289
22290 _ACEOF
22291
22292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22293 ac_cs_usage="\
22294 \`$as_me' instantiates files and other configuration actions
22295 from templates according to the current configuration. Unless the files
22296 and actions are specified as TAGs, all are instantiated by default.
22297
22298 Usage: $0 [OPTION]... [TAG]...
22299
22300 -h, --help print this help, then exit
22301 -V, --version print version number and configuration settings, then exit
22302 --config print configuration, then exit
22303 -q, --quiet, --silent
22304 do not print progress messages
22305 -d, --debug don't remove temporary files
22306 --recheck update $as_me by reconfiguring in the same conditions
22307 --file=FILE[:TEMPLATE]
22308 instantiate the configuration file FILE
22309 --header=FILE[:TEMPLATE]
22310 instantiate the configuration header FILE
22311
22312 Configuration files:
22313 $config_files
22314
22315 Configuration headers:
22316 $config_headers
22317
22318 Configuration commands:
22319 $config_commands
22320
22321 Report bugs to <saurik@saurik.com>.
22322 Cycript home page: <http://www.cycript.org/>."
22323
22324 _ACEOF
22325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22327 ac_cs_version="\\
22328 Cycript config.status 0.9
22329 configured by $0, generated by GNU Autoconf 2.69,
22330 with options \\"\$ac_cs_config\\"
22331
22332 Copyright (C) 2012 Free Software Foundation, Inc.
22333 This config.status script is free software; the Free Software Foundation
22334 gives unlimited permission to copy, distribute and modify it."
22335
22336 ac_pwd='$ac_pwd'
22337 srcdir='$srcdir'
22338 INSTALL='$INSTALL'
22339 MKDIR_P='$MKDIR_P'
22340 AWK='$AWK'
22341 test -n "\$AWK" || AWK=awk
22342 _ACEOF
22343
22344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22345 # The default lists apply if the user does not specify any file.
22346 ac_need_defaults=:
22347 while test $# != 0
22348 do
22349 case $1 in
22350 --*=?*)
22351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22353 ac_shift=:
22354 ;;
22355 --*=)
22356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22357 ac_optarg=
22358 ac_shift=:
22359 ;;
22360 *)
22361 ac_option=$1
22362 ac_optarg=$2
22363 ac_shift=shift
22364 ;;
22365 esac
22366
22367 case $ac_option in
22368 # Handling of the options.
22369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22370 ac_cs_recheck=: ;;
22371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22372 $as_echo "$ac_cs_version"; exit ;;
22373 --config | --confi | --conf | --con | --co | --c )
22374 $as_echo "$ac_cs_config"; exit ;;
22375 --debug | --debu | --deb | --de | --d | -d )
22376 debug=: ;;
22377 --file | --fil | --fi | --f )
22378 $ac_shift
22379 case $ac_optarg in
22380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22381 '') as_fn_error $? "missing file argument" ;;
22382 esac
22383 as_fn_append CONFIG_FILES " '$ac_optarg'"
22384 ac_need_defaults=false;;
22385 --header | --heade | --head | --hea )
22386 $ac_shift
22387 case $ac_optarg in
22388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22389 esac
22390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22391 ac_need_defaults=false;;
22392 --he | --h)
22393 # Conflict between --help and --header
22394 as_fn_error $? "ambiguous option: \`$1'
22395 Try \`$0 --help' for more information.";;
22396 --help | --hel | -h )
22397 $as_echo "$ac_cs_usage"; exit ;;
22398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22400 ac_cs_silent=: ;;
22401
22402 # This is an error.
22403 -*) as_fn_error $? "unrecognized option: \`$1'
22404 Try \`$0 --help' for more information." ;;
22405
22406 *) as_fn_append ac_config_targets " $1"
22407 ac_need_defaults=false ;;
22408
22409 esac
22410 shift
22411 done
22412
22413 ac_configure_extra_args=
22414
22415 if $ac_cs_silent; then
22416 exec 6>/dev/null
22417 ac_configure_extra_args="$ac_configure_extra_args --silent"
22418 fi
22419
22420 _ACEOF
22421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22422 if \$ac_cs_recheck; then
22423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22424 shift
22425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22426 CONFIG_SHELL='$SHELL'
22427 export CONFIG_SHELL
22428 exec "\$@"
22429 fi
22430
22431 _ACEOF
22432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22433 exec 5>>config.log
22434 {
22435 echo
22436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22437 ## Running $as_me. ##
22438 _ASBOX
22439 $as_echo "$ac_log"
22440 } >&5
22441
22442 _ACEOF
22443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22444 #
22445 # INIT-COMMANDS
22446 #
22447 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22448
22449
22450 # The HP-UX ksh and POSIX shell print the target directory to stdout
22451 # if CDPATH is set.
22452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22453
22454 sed_quote_subst='$sed_quote_subst'
22455 double_quote_subst='$double_quote_subst'
22456 delay_variable_subst='$delay_variable_subst'
22457 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22458 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22459 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22460 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22461 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22462 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22463 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22464 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22465 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22466 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22467 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22468 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22469 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22470 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22471 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22472 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22473 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22474 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22475 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22476 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22477 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22478 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22479 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22480 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22481 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22482 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22483 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22484 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22485 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22486 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22487 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22488 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22489 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22490 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22491 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22492 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22493 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22494 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22495 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22496 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22497 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22498 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22500 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22501 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22502 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22503 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22504 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22505 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22506 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22507 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22508 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22509 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22510 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22511 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22513 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22514 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22515 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"`'
22516 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22517 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22518 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22519 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22520 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22521 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22522 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22523 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22524 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22525 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22526 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22527 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22528 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22529 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22530 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22531 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22532 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22533 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22534 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22535 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22536 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22537 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22538 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22539 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22540 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22541 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22542 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22543 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22544 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22545 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22546 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22547 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22548 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22549 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22550 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22551 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22552 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22553 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22554 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22555 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22556 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22557 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22558 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22559 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22560 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22561 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22562 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22563 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22564 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22565 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22566 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22567 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22568 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22569 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22570 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22571 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22572 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22573 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22574 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22575 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22576 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22577 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22578 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22579 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22580 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22581 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22582 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22583 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22584 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22585 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22586 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22587 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22588 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22589 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22590 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22591 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22592 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22593 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22594 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22595 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22596 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22597 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22598 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22599 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22600 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22601 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22602 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22603 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22604 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22605 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22606 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22607 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22608 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22609 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22610 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22611 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22612 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22613 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22614 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22615 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22616 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22617 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22618 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22619 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22620 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22621 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22622 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22623 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22624 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22625 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22626 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22627 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22628 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22629 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22630 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22631 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22632 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22633 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22634 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22635 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22636 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22637 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22638 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22639 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22640 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22641 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22642 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22643 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22644 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22645 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22646
22647 LTCC='$LTCC'
22648 LTCFLAGS='$LTCFLAGS'
22649 compiler='$compiler_DEFAULT'
22650
22651 # A function that is used when there is no print builtin or printf.
22652 func_fallback_echo ()
22653 {
22654 eval 'cat <<_LTECHO_EOF
22655 \$1
22656 _LTECHO_EOF'
22657 }
22658
22659 # Quote evaled strings.
22660 for var in SHELL \
22661 ECHO \
22662 PATH_SEPARATOR \
22663 SED \
22664 GREP \
22665 EGREP \
22666 FGREP \
22667 LD \
22668 NM \
22669 LN_S \
22670 lt_SP2NL \
22671 lt_NL2SP \
22672 reload_flag \
22673 OBJDUMP \
22674 deplibs_check_method \
22675 file_magic_cmd \
22676 file_magic_glob \
22677 want_nocaseglob \
22678 DLLTOOL \
22679 sharedlib_from_linklib_cmd \
22680 AR \
22681 AR_FLAGS \
22682 archiver_list_spec \
22683 STRIP \
22684 RANLIB \
22685 CC \
22686 CFLAGS \
22687 compiler \
22688 lt_cv_sys_global_symbol_pipe \
22689 lt_cv_sys_global_symbol_to_cdecl \
22690 lt_cv_sys_global_symbol_to_import \
22691 lt_cv_sys_global_symbol_to_c_name_address \
22692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22693 lt_cv_nm_interface \
22694 nm_file_list_spec \
22695 lt_cv_truncate_bin \
22696 lt_prog_compiler_no_builtin_flag \
22697 lt_prog_compiler_pic \
22698 lt_prog_compiler_wl \
22699 lt_prog_compiler_static \
22700 lt_cv_prog_compiler_c_o \
22701 need_locks \
22702 MANIFEST_TOOL \
22703 DSYMUTIL \
22704 NMEDIT \
22705 LIPO \
22706 OTOOL \
22707 OTOOL64 \
22708 shrext_cmds \
22709 export_dynamic_flag_spec \
22710 whole_archive_flag_spec \
22711 compiler_needs_object \
22712 with_gnu_ld \
22713 allow_undefined_flag \
22714 no_undefined_flag \
22715 hardcode_libdir_flag_spec \
22716 hardcode_libdir_separator \
22717 exclude_expsyms \
22718 include_expsyms \
22719 file_list_spec \
22720 variables_saved_for_relink \
22721 libname_spec \
22722 library_names_spec \
22723 soname_spec \
22724 install_override_mode \
22725 finish_eval \
22726 old_striplib \
22727 striplib \
22728 compiler_lib_search_dirs \
22729 predep_objects \
22730 postdep_objects \
22731 predeps \
22732 postdeps \
22733 compiler_lib_search_path \
22734 LD_CXX \
22735 reload_flag_CXX \
22736 compiler_CXX \
22737 lt_prog_compiler_no_builtin_flag_CXX \
22738 lt_prog_compiler_pic_CXX \
22739 lt_prog_compiler_wl_CXX \
22740 lt_prog_compiler_static_CXX \
22741 lt_cv_prog_compiler_c_o_CXX \
22742 export_dynamic_flag_spec_CXX \
22743 whole_archive_flag_spec_CXX \
22744 compiler_needs_object_CXX \
22745 with_gnu_ld_CXX \
22746 allow_undefined_flag_CXX \
22747 no_undefined_flag_CXX \
22748 hardcode_libdir_flag_spec_CXX \
22749 hardcode_libdir_separator_CXX \
22750 exclude_expsyms_CXX \
22751 include_expsyms_CXX \
22752 file_list_spec_CXX \
22753 compiler_lib_search_dirs_CXX \
22754 predep_objects_CXX \
22755 postdep_objects_CXX \
22756 predeps_CXX \
22757 postdeps_CXX \
22758 compiler_lib_search_path_CXX; do
22759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22760 *[\\\\\\\`\\"\\\$]*)
22761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22762 ;;
22763 *)
22764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22765 ;;
22766 esac
22767 done
22768
22769 # Double-quote double-evaled strings.
22770 for var in reload_cmds \
22771 old_postinstall_cmds \
22772 old_postuninstall_cmds \
22773 old_archive_cmds \
22774 extract_expsyms_cmds \
22775 old_archive_from_new_cmds \
22776 old_archive_from_expsyms_cmds \
22777 archive_cmds \
22778 archive_expsym_cmds \
22779 module_cmds \
22780 module_expsym_cmds \
22781 export_symbols_cmds \
22782 prelink_cmds \
22783 postlink_cmds \
22784 postinstall_cmds \
22785 postuninstall_cmds \
22786 finish_cmds \
22787 sys_lib_search_path_spec \
22788 configure_time_dlsearch_path \
22789 configure_time_lt_sys_library_path \
22790 reload_cmds_CXX \
22791 old_archive_cmds_CXX \
22792 old_archive_from_new_cmds_CXX \
22793 old_archive_from_expsyms_cmds_CXX \
22794 archive_cmds_CXX \
22795 archive_expsym_cmds_CXX \
22796 module_cmds_CXX \
22797 module_expsym_cmds_CXX \
22798 export_symbols_cmds_CXX \
22799 prelink_cmds_CXX \
22800 postlink_cmds_CXX; do
22801 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22802 *[\\\\\\\`\\"\\\$]*)
22803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22804 ;;
22805 *)
22806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22807 ;;
22808 esac
22809 done
22810
22811 ac_aux_dir='$ac_aux_dir'
22812
22813 # See if we are running on zsh, and set the options that allow our
22814 # commands through without removal of \ escapes INIT.
22815 if test -n "\${ZSH_VERSION+set}"; then
22816 setopt NO_GLOB_SUBST
22817 fi
22818
22819
22820 PACKAGE='$PACKAGE'
22821 VERSION='$VERSION'
22822 RM='$RM'
22823 ofile='$ofile'
22824
22825
22826
22827
22828
22829
22830 _ACEOF
22831
22832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22833
22834 # Handling of arguments.
22835 for ac_config_target in $ac_config_targets
22836 do
22837 case $ac_config_target in
22838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22840 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22842
22843 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22844 esac
22845 done
22846
22847
22848 # If the user did not use the arguments to specify the items to instantiate,
22849 # then the envvar interface is used. Set only those that are not.
22850 # We use the long form for the default assignment because of an extremely
22851 # bizarre bug on SunOS 4.1.3.
22852 if $ac_need_defaults; then
22853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22856 fi
22857
22858 # Have a temporary directory for convenience. Make it in the build tree
22859 # simply because there is no reason against having it here, and in addition,
22860 # creating and moving files from /tmp can sometimes cause problems.
22861 # Hook for its removal unless debugging.
22862 # Note that there is a small window in which the directory will not be cleaned:
22863 # after its creation but before its name has been assigned to `$tmp'.
22864 $debug ||
22865 {
22866 tmp= ac_tmp=
22867 trap 'exit_status=$?
22868 : "${ac_tmp:=$tmp}"
22869 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22870 ' 0
22871 trap 'as_fn_exit 1' 1 2 13 15
22872 }
22873 # Create a (secure) tmp directory for tmp files.
22874
22875 {
22876 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22877 test -d "$tmp"
22878 } ||
22879 {
22880 tmp=./conf$$-$RANDOM
22881 (umask 077 && mkdir "$tmp")
22882 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22883 ac_tmp=$tmp
22884
22885 # Set up the scripts for CONFIG_FILES section.
22886 # No need to generate them if there are no CONFIG_FILES.
22887 # This happens for instance with `./config.status config.h'.
22888 if test -n "$CONFIG_FILES"; then
22889
22890
22891 ac_cr=`echo X | tr X '\015'`
22892 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22893 # But we know of no other shell where ac_cr would be empty at this
22894 # point, so we can use a bashism as a fallback.
22895 if test "x$ac_cr" = x; then
22896 eval ac_cr=\$\'\\r\'
22897 fi
22898 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22899 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22900 ac_cs_awk_cr='\\r'
22901 else
22902 ac_cs_awk_cr=$ac_cr
22903 fi
22904
22905 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22906 _ACEOF
22907
22908
22909 {
22910 echo "cat >conf$$subs.awk <<_ACEOF" &&
22911 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22912 echo "_ACEOF"
22913 } >conf$$subs.sh ||
22914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22915 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22916 ac_delim='%!_!# '
22917 for ac_last_try in false false false false false :; do
22918 . ./conf$$subs.sh ||
22919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22920
22921 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22922 if test $ac_delim_n = $ac_delim_num; then
22923 break
22924 elif $ac_last_try; then
22925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22926 else
22927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22928 fi
22929 done
22930 rm -f conf$$subs.sh
22931
22932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22933 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22934 _ACEOF
22935 sed -n '
22936 h
22937 s/^/S["/; s/!.*/"]=/
22938 p
22939 g
22940 s/^[^!]*!//
22941 :repl
22942 t repl
22943 s/'"$ac_delim"'$//
22944 t delim
22945 :nl
22946 h
22947 s/\(.\{148\}\)..*/\1/
22948 t more1
22949 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22950 p
22951 n
22952 b repl
22953 :more1
22954 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22955 p
22956 g
22957 s/.\{148\}//
22958 t nl
22959 :delim
22960 h
22961 s/\(.\{148\}\)..*/\1/
22962 t more2
22963 s/["\\]/\\&/g; s/^/"/; s/$/"/
22964 p
22965 b
22966 :more2
22967 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22968 p
22969 g
22970 s/.\{148\}//
22971 t delim
22972 ' <conf$$subs.awk | sed '
22973 /^[^""]/{
22974 N
22975 s/\n//
22976 }
22977 ' >>$CONFIG_STATUS || ac_write_fail=1
22978 rm -f conf$$subs.awk
22979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22980 _ACAWK
22981 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22982 for (key in S) S_is_set[key] = 1
22983 FS = "\a"
22984
22985 }
22986 {
22987 line = $ 0
22988 nfields = split(line, field, "@")
22989 substed = 0
22990 len = length(field[1])
22991 for (i = 2; i < nfields; i++) {
22992 key = field[i]
22993 keylen = length(key)
22994 if (S_is_set[key]) {
22995 value = S[key]
22996 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22997 len += length(value) + length(field[++i])
22998 substed = 1
22999 } else
23000 len += 1 + keylen
23001 }
23002
23003 print line
23004 }
23005
23006 _ACAWK
23007 _ACEOF
23008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23009 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23010 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23011 else
23012 cat
23013 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23014 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23015 _ACEOF
23016
23017 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23018 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23019 # trailing colons and then remove the whole line if VPATH becomes empty
23020 # (actually we leave an empty line to preserve line numbers).
23021 if test "x$srcdir" = x.; then
23022 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23023 h
23024 s///
23025 s/^/:/
23026 s/[ ]*$/:/
23027 s/:\$(srcdir):/:/g
23028 s/:\${srcdir}:/:/g
23029 s/:@srcdir@:/:/g
23030 s/^:*//
23031 s/:*$//
23032 x
23033 s/\(=[ ]*\).*/\1/
23034 G
23035 s/\n//
23036 s/^[^=]*=[ ]*$//
23037 }'
23038 fi
23039
23040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23041 fi # test -n "$CONFIG_FILES"
23042
23043 # Set up the scripts for CONFIG_HEADERS section.
23044 # No need to generate them if there are no CONFIG_HEADERS.
23045 # This happens for instance with `./config.status Makefile'.
23046 if test -n "$CONFIG_HEADERS"; then
23047 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23048 BEGIN {
23049 _ACEOF
23050
23051 # Transform confdefs.h into an awk script `defines.awk', embedded as
23052 # here-document in config.status, that substitutes the proper values into
23053 # config.h.in to produce config.h.
23054
23055 # Create a delimiter string that does not exist in confdefs.h, to ease
23056 # handling of long lines.
23057 ac_delim='%!_!# '
23058 for ac_last_try in false false :; do
23059 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23060 if test -z "$ac_tt"; then
23061 break
23062 elif $ac_last_try; then
23063 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23064 else
23065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23066 fi
23067 done
23068
23069 # For the awk script, D is an array of macro values keyed by name,
23070 # likewise P contains macro parameters if any. Preserve backslash
23071 # newline sequences.
23072
23073 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23074 sed -n '
23075 s/.\{148\}/&'"$ac_delim"'/g
23076 t rset
23077 :rset
23078 s/^[ ]*#[ ]*define[ ][ ]*/ /
23079 t def
23080 d
23081 :def
23082 s/\\$//
23083 t bsnl
23084 s/["\\]/\\&/g
23085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23086 D["\1"]=" \3"/p
23087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23088 d
23089 :bsnl
23090 s/["\\]/\\&/g
23091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23092 D["\1"]=" \3\\\\\\n"\\/p
23093 t cont
23094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23095 t cont
23096 d
23097 :cont
23098 n
23099 s/.\{148\}/&'"$ac_delim"'/g
23100 t clear
23101 :clear
23102 s/\\$//
23103 t bsnlc
23104 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23105 d
23106 :bsnlc
23107 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23108 b cont
23109 ' <confdefs.h | sed '
23110 s/'"$ac_delim"'/"\\\
23111 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23112
23113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23114 for (key in D) D_is_set[key] = 1
23115 FS = "\a"
23116 }
23117 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23118 line = \$ 0
23119 split(line, arg, " ")
23120 if (arg[1] == "#") {
23121 defundef = arg[2]
23122 mac1 = arg[3]
23123 } else {
23124 defundef = substr(arg[1], 2)
23125 mac1 = arg[2]
23126 }
23127 split(mac1, mac2, "(") #)
23128 macro = mac2[1]
23129 prefix = substr(line, 1, index(line, defundef) - 1)
23130 if (D_is_set[macro]) {
23131 # Preserve the white space surrounding the "#".
23132 print prefix "define", macro P[macro] D[macro]
23133 next
23134 } else {
23135 # Replace #undef with comments. This is necessary, for example,
23136 # in the case of _POSIX_SOURCE, which is predefined and required
23137 # on some systems where configure will not decide to define it.
23138 if (defundef == "undef") {
23139 print "/*", prefix defundef, macro, "*/"
23140 next
23141 }
23142 }
23143 }
23144 { print }
23145 _ACAWK
23146 _ACEOF
23147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23148 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23149 fi # test -n "$CONFIG_HEADERS"
23150
23151
23152 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23153 shift
23154 for ac_tag
23155 do
23156 case $ac_tag in
23157 :[FHLC]) ac_mode=$ac_tag; continue;;
23158 esac
23159 case $ac_mode$ac_tag in
23160 :[FHL]*:*);;
23161 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23162 :[FH]-) ac_tag=-:-;;
23163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23164 esac
23165 ac_save_IFS=$IFS
23166 IFS=:
23167 set x $ac_tag
23168 IFS=$ac_save_IFS
23169 shift
23170 ac_file=$1
23171 shift
23172
23173 case $ac_mode in
23174 :L) ac_source=$1;;
23175 :[FH])
23176 ac_file_inputs=
23177 for ac_f
23178 do
23179 case $ac_f in
23180 -) ac_f="$ac_tmp/stdin";;
23181 *) # Look for the file first in the build tree, then in the source tree
23182 # (if the path is not absolute). The absolute path cannot be DOS-style,
23183 # because $ac_f cannot contain `:'.
23184 test -f "$ac_f" ||
23185 case $ac_f in
23186 [\\/$]*) false;;
23187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23188 esac ||
23189 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23190 esac
23191 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23192 as_fn_append ac_file_inputs " '$ac_f'"
23193 done
23194
23195 # Let's still pretend it is `configure' which instantiates (i.e., don't
23196 # use $as_me), people would be surprised to read:
23197 # /* config.h. Generated by config.status. */
23198 configure_input='Generated from '`
23199 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23200 `' by configure.'
23201 if test x"$ac_file" != x-; then
23202 configure_input="$ac_file. $configure_input"
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23204 $as_echo "$as_me: creating $ac_file" >&6;}
23205 fi
23206 # Neutralize special characters interpreted by sed in replacement strings.
23207 case $configure_input in #(
23208 *\&* | *\|* | *\\* )
23209 ac_sed_conf_input=`$as_echo "$configure_input" |
23210 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23211 *) ac_sed_conf_input=$configure_input;;
23212 esac
23213
23214 case $ac_tag in
23215 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23217 esac
23218 ;;
23219 esac
23220
23221 ac_dir=`$as_dirname -- "$ac_file" ||
23222 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23223 X"$ac_file" : 'X\(//\)[^/]' \| \
23224 X"$ac_file" : 'X\(//\)$' \| \
23225 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23226 $as_echo X"$ac_file" |
23227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23228 s//\1/
23229 q
23230 }
23231 /^X\(\/\/\)[^/].*/{
23232 s//\1/
23233 q
23234 }
23235 /^X\(\/\/\)$/{
23236 s//\1/
23237 q
23238 }
23239 /^X\(\/\).*/{
23240 s//\1/
23241 q
23242 }
23243 s/.*/./; q'`
23244 as_dir="$ac_dir"; as_fn_mkdir_p
23245 ac_builddir=.
23246
23247 case "$ac_dir" in
23248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23249 *)
23250 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23251 # A ".." for each directory in $ac_dir_suffix.
23252 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23253 case $ac_top_builddir_sub in
23254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23256 esac ;;
23257 esac
23258 ac_abs_top_builddir=$ac_pwd
23259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23260 # for backward compatibility:
23261 ac_top_builddir=$ac_top_build_prefix
23262
23263 case $srcdir in
23264 .) # We are building in place.
23265 ac_srcdir=.
23266 ac_top_srcdir=$ac_top_builddir_sub
23267 ac_abs_top_srcdir=$ac_pwd ;;
23268 [\\/]* | ?:[\\/]* ) # Absolute name.
23269 ac_srcdir=$srcdir$ac_dir_suffix;
23270 ac_top_srcdir=$srcdir
23271 ac_abs_top_srcdir=$srcdir ;;
23272 *) # Relative name.
23273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23274 ac_top_srcdir=$ac_top_build_prefix$srcdir
23275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23276 esac
23277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23278
23279
23280 case $ac_mode in
23281 :F)
23282 #
23283 # CONFIG_FILE
23284 #
23285
23286 case $INSTALL in
23287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23289 esac
23290 ac_MKDIR_P=$MKDIR_P
23291 case $MKDIR_P in
23292 [\\/$]* | ?:[\\/]* ) ;;
23293 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23294 esac
23295 _ACEOF
23296
23297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23298 # If the template does not know about datarootdir, expand it.
23299 # FIXME: This hack should be removed a few years after 2.60.
23300 ac_datarootdir_hack=; ac_datarootdir_seen=
23301 ac_sed_dataroot='
23302 /datarootdir/ {
23303 p
23304 q
23305 }
23306 /@datadir@/p
23307 /@docdir@/p
23308 /@infodir@/p
23309 /@localedir@/p
23310 /@mandir@/p'
23311 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23312 *datarootdir*) ac_datarootdir_seen=yes;;
23313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23315 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23316 _ACEOF
23317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23318 ac_datarootdir_hack='
23319 s&@datadir@&$datadir&g
23320 s&@docdir@&$docdir&g
23321 s&@infodir@&$infodir&g
23322 s&@localedir@&$localedir&g
23323 s&@mandir@&$mandir&g
23324 s&\\\${datarootdir}&$datarootdir&g' ;;
23325 esac
23326 _ACEOF
23327
23328 # Neutralize VPATH when `$srcdir' = `.'.
23329 # Shell code in configure.ac might set extrasub.
23330 # FIXME: do we really want to maintain this feature?
23331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23332 ac_sed_extra="$ac_vpsub
23333 $extrasub
23334 _ACEOF
23335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23336 :t
23337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23338 s|@configure_input@|$ac_sed_conf_input|;t t
23339 s&@top_builddir@&$ac_top_builddir_sub&;t t
23340 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23341 s&@srcdir@&$ac_srcdir&;t t
23342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23343 s&@top_srcdir@&$ac_top_srcdir&;t t
23344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23345 s&@builddir@&$ac_builddir&;t t
23346 s&@abs_builddir@&$ac_abs_builddir&;t t
23347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23348 s&@INSTALL@&$ac_INSTALL&;t t
23349 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23350 $ac_datarootdir_hack
23351 "
23352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23354
23355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23360 which seems to be undefined. Please make sure it is defined" >&5
23361 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23362 which seems to be undefined. Please make sure it is defined" >&2;}
23363
23364 rm -f "$ac_tmp/stdin"
23365 case $ac_file in
23366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23368 esac \
23369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23370 ;;
23371 :H)
23372 #
23373 # CONFIG_HEADER
23374 #
23375 if test x"$ac_file" != x-; then
23376 {
23377 $as_echo "/* $configure_input */" \
23378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23379 } >"$ac_tmp/config.h" \
23380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23383 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23384 else
23385 rm -f "$ac_file"
23386 mv "$ac_tmp/config.h" "$ac_file" \
23387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23388 fi
23389 else
23390 $as_echo "/* $configure_input */" \
23391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23392 || as_fn_error $? "could not create -" "$LINENO" 5
23393 fi
23394 # Compute "$ac_file"'s index in $config_headers.
23395 _am_arg="$ac_file"
23396 _am_stamp_count=1
23397 for _am_header in $config_headers :; do
23398 case $_am_header in
23399 $_am_arg | $_am_arg:* )
23400 break ;;
23401 * )
23402 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23403 esac
23404 done
23405 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23406 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23407 X"$_am_arg" : 'X\(//\)[^/]' \| \
23408 X"$_am_arg" : 'X\(//\)$' \| \
23409 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23410 $as_echo X"$_am_arg" |
23411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23412 s//\1/
23413 q
23414 }
23415 /^X\(\/\/\)[^/].*/{
23416 s//\1/
23417 q
23418 }
23419 /^X\(\/\/\)$/{
23420 s//\1/
23421 q
23422 }
23423 /^X\(\/\).*/{
23424 s//\1/
23425 q
23426 }
23427 s/.*/./; q'`/stamp-h$_am_stamp_count
23428 ;;
23429
23430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23431 $as_echo "$as_me: executing $ac_file commands" >&6;}
23432 ;;
23433 esac
23434
23435
23436 case $ac_file$ac_mode in
23437 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23438 # Older Autoconf quotes --file arguments for eval, but not when files
23439 # are listed without --file. Let's play safe and only enable the eval
23440 # if we detect the quoting.
23441 case $CONFIG_FILES in
23442 *\'*) eval set x "$CONFIG_FILES" ;;
23443 *) set x $CONFIG_FILES ;;
23444 esac
23445 shift
23446 for mf
23447 do
23448 # Strip MF so we end up with the name of the file.
23449 mf=`echo "$mf" | sed -e 's/:.*$//'`
23450 # Check whether this is an Automake generated Makefile or not.
23451 # We used to match only the files named 'Makefile.in', but
23452 # some people rename them; so instead we look at the file content.
23453 # Grep'ing the first line is not enough: some people post-process
23454 # each Makefile.in and add a new line on top of each file to say so.
23455 # Grep'ing the whole file is not good either: AIX grep has a line
23456 # limit of 2048, but all sed's we know have understand at least 4000.
23457 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23458 dirpart=`$as_dirname -- "$mf" ||
23459 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23460 X"$mf" : 'X\(//\)[^/]' \| \
23461 X"$mf" : 'X\(//\)$' \| \
23462 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23463 $as_echo X"$mf" |
23464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23465 s//\1/
23466 q
23467 }
23468 /^X\(\/\/\)[^/].*/{
23469 s//\1/
23470 q
23471 }
23472 /^X\(\/\/\)$/{
23473 s//\1/
23474 q
23475 }
23476 /^X\(\/\).*/{
23477 s//\1/
23478 q
23479 }
23480 s/.*/./; q'`
23481 else
23482 continue
23483 fi
23484 # Extract the definition of DEPDIR, am__include, and am__quote
23485 # from the Makefile without running 'make'.
23486 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23487 test -z "$DEPDIR" && continue
23488 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23489 test -z "$am__include" && continue
23490 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23491 # Find all dependency output files, they are included files with
23492 # $(DEPDIR) in their names. We invoke sed twice because it is the
23493 # simplest approach to changing $(DEPDIR) to its actual value in the
23494 # expansion.
23495 for file in `sed -n "
23496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23498 # Make sure the directory exists.
23499 test -f "$dirpart/$file" && continue
23500 fdir=`$as_dirname -- "$file" ||
23501 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23502 X"$file" : 'X\(//\)[^/]' \| \
23503 X"$file" : 'X\(//\)$' \| \
23504 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23505 $as_echo X"$file" |
23506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23507 s//\1/
23508 q
23509 }
23510 /^X\(\/\/\)[^/].*/{
23511 s//\1/
23512 q
23513 }
23514 /^X\(\/\/\)$/{
23515 s//\1/
23516 q
23517 }
23518 /^X\(\/\).*/{
23519 s//\1/
23520 q
23521 }
23522 s/.*/./; q'`
23523 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23524 # echo "creating $dirpart/$file"
23525 echo '# dummy' > "$dirpart/$file"
23526 done
23527 done
23528 }
23529 ;;
23530 "libtool":C)
23531
23532 # See if we are running on zsh, and set the options that allow our
23533 # commands through without removal of \ escapes.
23534 if test -n "${ZSH_VERSION+set}"; then
23535 setopt NO_GLOB_SUBST
23536 fi
23537
23538 cfgfile=${ofile}T
23539 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23540 $RM "$cfgfile"
23541
23542 cat <<_LT_EOF >> "$cfgfile"
23543 #! $SHELL
23544 # Generated automatically by $as_me ($PACKAGE) $VERSION
23545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23546 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23547
23548 # Provide generalized library-building support services.
23549 # Written by Gordon Matzigkeit, 1996
23550
23551 # Copyright (C) 2014 Free Software Foundation, Inc.
23552 # This is free software; see the source for copying conditions. There is NO
23553 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23554
23555 # GNU Libtool is free software; you can redistribute it and/or modify
23556 # it under the terms of the GNU General Public License as published by
23557 # the Free Software Foundation; either version 2 of of the License, or
23558 # (at your option) any later version.
23559 #
23560 # As a special exception to the GNU General Public License, if you
23561 # distribute this file as part of a program or library that is built
23562 # using GNU Libtool, you may include this file under the same
23563 # distribution terms that you use for the rest of that program.
23564 #
23565 # GNU Libtool is distributed in the hope that it will be useful, but
23566 # WITHOUT ANY WARRANTY; without even the implied warranty of
23567 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23568 # GNU General Public License for more details.
23569 #
23570 # You should have received a copy of the GNU General Public License
23571 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23572
23573
23574 # The names of the tagged configurations supported by this script.
23575 available_tags='CXX '
23576
23577 # Configured defaults for sys_lib_dlsearch_path munging.
23578 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23579
23580 # ### BEGIN LIBTOOL CONFIG
23581
23582 # Which release of libtool.m4 was used?
23583 macro_version=$macro_version
23584 macro_revision=$macro_revision
23585
23586 # Whether or not to build static libraries.
23587 build_old_libs=$enable_static
23588
23589 # Whether or not to build shared libraries.
23590 build_libtool_libs=$enable_shared
23591
23592 # What type of objects to build.
23593 pic_mode=$pic_mode
23594
23595 # Whether or not to optimize for fast installation.
23596 fast_install=$enable_fast_install
23597
23598 # Shared archive member basename,for filename based shared library versioning on AIX.
23599 shared_archive_member_spec=$shared_archive_member_spec
23600
23601 # Shell to use when invoking shell scripts.
23602 SHELL=$lt_SHELL
23603
23604 # An echo program that protects backslashes.
23605 ECHO=$lt_ECHO
23606
23607 # The PATH separator for the build system.
23608 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23609
23610 # The host system.
23611 host_alias=$host_alias
23612 host=$host
23613 host_os=$host_os
23614
23615 # The build system.
23616 build_alias=$build_alias
23617 build=$build
23618 build_os=$build_os
23619
23620 # A sed program that does not truncate output.
23621 SED=$lt_SED
23622
23623 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23624 Xsed="\$SED -e 1s/^X//"
23625
23626 # A grep program that handles long lines.
23627 GREP=$lt_GREP
23628
23629 # An ERE matcher.
23630 EGREP=$lt_EGREP
23631
23632 # A literal string matcher.
23633 FGREP=$lt_FGREP
23634
23635 # A BSD- or MS-compatible name lister.
23636 NM=$lt_NM
23637
23638 # Whether we need soft or hard links.
23639 LN_S=$lt_LN_S
23640
23641 # What is the maximum length of a command?
23642 max_cmd_len=$max_cmd_len
23643
23644 # Object file suffix (normally "o").
23645 objext=$ac_objext
23646
23647 # Executable file suffix (normally "").
23648 exeext=$exeext
23649
23650 # whether the shell understands "unset".
23651 lt_unset=$lt_unset
23652
23653 # turn spaces into newlines.
23654 SP2NL=$lt_lt_SP2NL
23655
23656 # turn newlines into spaces.
23657 NL2SP=$lt_lt_NL2SP
23658
23659 # convert \$build file names to \$host format.
23660 to_host_file_cmd=$lt_cv_to_host_file_cmd
23661
23662 # convert \$build files to toolchain format.
23663 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23664
23665 # An object symbol dumper.
23666 OBJDUMP=$lt_OBJDUMP
23667
23668 # Method to check whether dependent libraries are shared objects.
23669 deplibs_check_method=$lt_deplibs_check_method
23670
23671 # Command to use when deplibs_check_method = "file_magic".
23672 file_magic_cmd=$lt_file_magic_cmd
23673
23674 # How to find potential files when deplibs_check_method = "file_magic".
23675 file_magic_glob=$lt_file_magic_glob
23676
23677 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23678 want_nocaseglob=$lt_want_nocaseglob
23679
23680 # DLL creation program.
23681 DLLTOOL=$lt_DLLTOOL
23682
23683 # Command to associate shared and link libraries.
23684 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23685
23686 # The archiver.
23687 AR=$lt_AR
23688
23689 # Flags to create an archive.
23690 AR_FLAGS=$lt_AR_FLAGS
23691
23692 # How to feed a file listing to the archiver.
23693 archiver_list_spec=$lt_archiver_list_spec
23694
23695 # A symbol stripping program.
23696 STRIP=$lt_STRIP
23697
23698 # Commands used to install an old-style archive.
23699 RANLIB=$lt_RANLIB
23700 old_postinstall_cmds=$lt_old_postinstall_cmds
23701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23702
23703 # Whether to use a lock for old archive extraction.
23704 lock_old_archive_extraction=$lock_old_archive_extraction
23705
23706 # A C compiler.
23707 LTCC=$lt_CC
23708
23709 # LTCC compiler flags.
23710 LTCFLAGS=$lt_CFLAGS
23711
23712 # Take the output of nm and produce a listing of raw symbols and C names.
23713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23714
23715 # Transform the output of nm in a proper C declaration.
23716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23717
23718 # Transform the output of nm into a list of symbols to manually relocate.
23719 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23720
23721 # Transform the output of nm in a C name address pair.
23722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23723
23724 # Transform the output of nm in a C name address pair when lib prefix is needed.
23725 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23726
23727 # The name lister interface.
23728 nm_interface=$lt_lt_cv_nm_interface
23729
23730 # Specify filename containing input files for \$NM.
23731 nm_file_list_spec=$lt_nm_file_list_spec
23732
23733 # The root where to search for dependent libraries,and where our libraries should be installed.
23734 lt_sysroot=$lt_sysroot
23735
23736 # Command to truncate a binary pipe.
23737 lt_truncate_bin=$lt_lt_cv_truncate_bin
23738
23739 # The name of the directory that contains temporary libtool files.
23740 objdir=$objdir
23741
23742 # Used to examine libraries when file_magic_cmd begins with "file".
23743 MAGIC_CMD=$MAGIC_CMD
23744
23745 # Must we lock files when doing compilation?
23746 need_locks=$lt_need_locks
23747
23748 # Manifest tool.
23749 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23750
23751 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23752 DSYMUTIL=$lt_DSYMUTIL
23753
23754 # Tool to change global to local symbols on Mac OS X.
23755 NMEDIT=$lt_NMEDIT
23756
23757 # Tool to manipulate fat objects and archives on Mac OS X.
23758 LIPO=$lt_LIPO
23759
23760 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23761 OTOOL=$lt_OTOOL
23762
23763 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23764 OTOOL64=$lt_OTOOL64
23765
23766 # Old archive suffix (normally "a").
23767 libext=$libext
23768
23769 # Shared library suffix (normally ".so").
23770 shrext_cmds=$lt_shrext_cmds
23771
23772 # The commands to extract the exported symbol list from a shared archive.
23773 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23774
23775 # Variables whose values should be saved in libtool wrapper scripts and
23776 # restored at link time.
23777 variables_saved_for_relink=$lt_variables_saved_for_relink
23778
23779 # Do we need the "lib" prefix for modules?
23780 need_lib_prefix=$need_lib_prefix
23781
23782 # Do we need a version for libraries?
23783 need_version=$need_version
23784
23785 # Library versioning type.
23786 version_type=$version_type
23787
23788 # Shared library runtime path variable.
23789 runpath_var=$runpath_var
23790
23791 # Shared library path variable.
23792 shlibpath_var=$shlibpath_var
23793
23794 # Is shlibpath searched before the hard-coded library search path?
23795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23796
23797 # Format of library name prefix.
23798 libname_spec=$lt_libname_spec
23799
23800 # List of archive names. First name is the real one, the rest are links.
23801 # The last name is the one that the linker finds with -lNAME
23802 library_names_spec=$lt_library_names_spec
23803
23804 # The coded name of the library, if different from the real name.
23805 soname_spec=$lt_soname_spec
23806
23807 # Permission mode override for installation of shared libraries.
23808 install_override_mode=$lt_install_override_mode
23809
23810 # Command to use after installation of a shared archive.
23811 postinstall_cmds=$lt_postinstall_cmds
23812
23813 # Command to use after uninstallation of a shared archive.
23814 postuninstall_cmds=$lt_postuninstall_cmds
23815
23816 # Commands used to finish a libtool library installation in a directory.
23817 finish_cmds=$lt_finish_cmds
23818
23819 # As "finish_cmds", except a single script fragment to be evaled but
23820 # not shown.
23821 finish_eval=$lt_finish_eval
23822
23823 # Whether we should hardcode library paths into libraries.
23824 hardcode_into_libs=$hardcode_into_libs
23825
23826 # Compile-time system search path for libraries.
23827 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23828
23829 # Detected run-time system search path for libraries.
23830 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23831
23832 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23833 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23834
23835 # Whether dlopen is supported.
23836 dlopen_support=$enable_dlopen
23837
23838 # Whether dlopen of programs is supported.
23839 dlopen_self=$enable_dlopen_self
23840
23841 # Whether dlopen of statically linked programs is supported.
23842 dlopen_self_static=$enable_dlopen_self_static
23843
23844 # Commands to strip libraries.
23845 old_striplib=$lt_old_striplib
23846 striplib=$lt_striplib
23847
23848
23849 # The linker used to build libraries.
23850 LD=$lt_LD
23851
23852 # How to create reloadable object files.
23853 reload_flag=$lt_reload_flag
23854 reload_cmds=$lt_reload_cmds
23855
23856 # Commands used to build an old-style archive.
23857 old_archive_cmds=$lt_old_archive_cmds
23858
23859 # A language specific compiler.
23860 CC=$lt_compiler
23861
23862 # Is the compiler the GNU compiler?
23863 with_gcc=$GCC
23864
23865 # Compiler flag to turn off builtin functions.
23866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23867
23868 # Additional compiler flags for building library objects.
23869 pic_flag=$lt_lt_prog_compiler_pic
23870
23871 # How to pass a linker flag through the compiler.
23872 wl=$lt_lt_prog_compiler_wl
23873
23874 # Compiler flag to prevent dynamic linking.
23875 link_static_flag=$lt_lt_prog_compiler_static
23876
23877 # Does compiler simultaneously support -c and -o options?
23878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23879
23880 # Whether or not to add -lc for building shared libraries.
23881 build_libtool_need_lc=$archive_cmds_need_lc
23882
23883 # Whether or not to disallow shared libs when runtime libs are static.
23884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23885
23886 # Compiler flag to allow reflexive dlopens.
23887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23888
23889 # Compiler flag to generate shared objects directly from archives.
23890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23891
23892 # Whether the compiler copes with passing no objects directly.
23893 compiler_needs_object=$lt_compiler_needs_object
23894
23895 # Create an old-style archive from a shared archive.
23896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23897
23898 # Create a temporary old-style archive to link instead of a shared archive.
23899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23900
23901 # Commands used to build a shared archive.
23902 archive_cmds=$lt_archive_cmds
23903 archive_expsym_cmds=$lt_archive_expsym_cmds
23904
23905 # Commands used to build a loadable module if different from building
23906 # a shared archive.
23907 module_cmds=$lt_module_cmds
23908 module_expsym_cmds=$lt_module_expsym_cmds
23909
23910 # Whether we are building with GNU ld or not.
23911 with_gnu_ld=$lt_with_gnu_ld
23912
23913 # Flag that allows shared libraries with undefined symbols to be built.
23914 allow_undefined_flag=$lt_allow_undefined_flag
23915
23916 # Flag that enforces no undefined symbols.
23917 no_undefined_flag=$lt_no_undefined_flag
23918
23919 # Flag to hardcode \$libdir into a binary during linking.
23920 # This must work even if \$libdir does not exist
23921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23922
23923 # Whether we need a single "-rpath" flag with a separated argument.
23924 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23925
23926 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23927 # DIR into the resulting binary.
23928 hardcode_direct=$hardcode_direct
23929
23930 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23931 # DIR into the resulting binary and the resulting library dependency is
23932 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23933 # library is relocated.
23934 hardcode_direct_absolute=$hardcode_direct_absolute
23935
23936 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23937 # into the resulting binary.
23938 hardcode_minus_L=$hardcode_minus_L
23939
23940 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23941 # into the resulting binary.
23942 hardcode_shlibpath_var=$hardcode_shlibpath_var
23943
23944 # Set to "yes" if building a shared library automatically hardcodes DIR
23945 # into the library and all subsequent libraries and executables linked
23946 # against it.
23947 hardcode_automatic=$hardcode_automatic
23948
23949 # Set to yes if linker adds runtime paths of dependent libraries
23950 # to runtime path list.
23951 inherit_rpath=$inherit_rpath
23952
23953 # Whether libtool must link a program against all its dependency libraries.
23954 link_all_deplibs=$link_all_deplibs
23955
23956 # Set to "yes" if exported symbols are required.
23957 always_export_symbols=$always_export_symbols
23958
23959 # The commands to list exported symbols.
23960 export_symbols_cmds=$lt_export_symbols_cmds
23961
23962 # Symbols that should not be listed in the preloaded symbols.
23963 exclude_expsyms=$lt_exclude_expsyms
23964
23965 # Symbols that must always be exported.
23966 include_expsyms=$lt_include_expsyms
23967
23968 # Commands necessary for linking programs (against libraries) with templates.
23969 prelink_cmds=$lt_prelink_cmds
23970
23971 # Commands necessary for finishing linking programs.
23972 postlink_cmds=$lt_postlink_cmds
23973
23974 # Specify filename containing input files.
23975 file_list_spec=$lt_file_list_spec
23976
23977 # How to hardcode a shared library path into an executable.
23978 hardcode_action=$hardcode_action
23979
23980 # The directories searched by this compiler when creating a shared library.
23981 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23982
23983 # Dependencies to place before and after the objects being linked to
23984 # create a shared library.
23985 predep_objects=$lt_predep_objects
23986 postdep_objects=$lt_postdep_objects
23987 predeps=$lt_predeps
23988 postdeps=$lt_postdeps
23989
23990 # The library search path used internally by the compiler when linking
23991 # a shared library.
23992 compiler_lib_search_path=$lt_compiler_lib_search_path
23993
23994 # ### END LIBTOOL CONFIG
23995
23996 _LT_EOF
23997
23998 cat <<'_LT_EOF' >> "$cfgfile"
23999
24000 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24001
24002 # func_munge_path_list VARIABLE PATH
24003 # -----------------------------------
24004 # VARIABLE is name of variable containing _space_ separated list of
24005 # directories to be munged by the contents of PATH, which is string
24006 # having a format:
24007 # "DIR[:DIR]:"
24008 # string "DIR[ DIR]" will be prepended to VARIABLE
24009 # ":DIR[:DIR]"
24010 # string "DIR[ DIR]" will be appended to VARIABLE
24011 # "DIRP[:DIRP]::[DIRA:]DIRA"
24012 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24013 # "DIRA[ DIRA]" will be appended to VARIABLE
24014 # "DIR[:DIR]"
24015 # VARIABLE will be replaced by "DIR[ DIR]"
24016 func_munge_path_list ()
24017 {
24018 case x$2 in
24019 x)
24020 ;;
24021 *:)
24022 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24023 ;;
24024 x:*)
24025 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24026 ;;
24027 *::*)
24028 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24029 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24030 ;;
24031 *)
24032 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24033 ;;
24034 esac
24035 }
24036
24037
24038 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24039 func_cc_basename ()
24040 {
24041 for cc_temp in $*""; do
24042 case $cc_temp in
24043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24045 \-*) ;;
24046 *) break;;
24047 esac
24048 done
24049 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24050 }
24051
24052
24053 # ### END FUNCTIONS SHARED WITH CONFIGURE
24054
24055 _LT_EOF
24056
24057 case $host_os in
24058 aix3*)
24059 cat <<\_LT_EOF >> "$cfgfile"
24060 # AIX sometimes has problems with the GCC collect2 program. For some
24061 # reason, if we set the COLLECT_NAMES environment variable, the problems
24062 # vanish in a puff of smoke.
24063 if test set != "${COLLECT_NAMES+set}"; then
24064 COLLECT_NAMES=
24065 export COLLECT_NAMES
24066 fi
24067 _LT_EOF
24068 ;;
24069 esac
24070
24071
24072 ltmain=$ac_aux_dir/ltmain.sh
24073
24074
24075 # We use sed instead of cat because bash on DJGPP gets confused if
24076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24077 # text mode, it properly converts lines to CR/LF. This bash problem
24078 # is reportedly fixed, but why not run on old versions too?
24079 sed '$q' "$ltmain" >> "$cfgfile" \
24080 || (rm -f "$cfgfile"; exit 1)
24081
24082 mv -f "$cfgfile" "$ofile" ||
24083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24084 chmod +x "$ofile"
24085
24086
24087 cat <<_LT_EOF >> "$ofile"
24088
24089 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24090
24091 # The linker used to build libraries.
24092 LD=$lt_LD_CXX
24093
24094 # How to create reloadable object files.
24095 reload_flag=$lt_reload_flag_CXX
24096 reload_cmds=$lt_reload_cmds_CXX
24097
24098 # Commands used to build an old-style archive.
24099 old_archive_cmds=$lt_old_archive_cmds_CXX
24100
24101 # A language specific compiler.
24102 CC=$lt_compiler_CXX
24103
24104 # Is the compiler the GNU compiler?
24105 with_gcc=$GCC_CXX
24106
24107 # Compiler flag to turn off builtin functions.
24108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24109
24110 # Additional compiler flags for building library objects.
24111 pic_flag=$lt_lt_prog_compiler_pic_CXX
24112
24113 # How to pass a linker flag through the compiler.
24114 wl=$lt_lt_prog_compiler_wl_CXX
24115
24116 # Compiler flag to prevent dynamic linking.
24117 link_static_flag=$lt_lt_prog_compiler_static_CXX
24118
24119 # Does compiler simultaneously support -c and -o options?
24120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24121
24122 # Whether or not to add -lc for building shared libraries.
24123 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24124
24125 # Whether or not to disallow shared libs when runtime libs are static.
24126 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24127
24128 # Compiler flag to allow reflexive dlopens.
24129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24130
24131 # Compiler flag to generate shared objects directly from archives.
24132 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24133
24134 # Whether the compiler copes with passing no objects directly.
24135 compiler_needs_object=$lt_compiler_needs_object_CXX
24136
24137 # Create an old-style archive from a shared archive.
24138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24139
24140 # Create a temporary old-style archive to link instead of a shared archive.
24141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24142
24143 # Commands used to build a shared archive.
24144 archive_cmds=$lt_archive_cmds_CXX
24145 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24146
24147 # Commands used to build a loadable module if different from building
24148 # a shared archive.
24149 module_cmds=$lt_module_cmds_CXX
24150 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24151
24152 # Whether we are building with GNU ld or not.
24153 with_gnu_ld=$lt_with_gnu_ld_CXX
24154
24155 # Flag that allows shared libraries with undefined symbols to be built.
24156 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24157
24158 # Flag that enforces no undefined symbols.
24159 no_undefined_flag=$lt_no_undefined_flag_CXX
24160
24161 # Flag to hardcode \$libdir into a binary during linking.
24162 # This must work even if \$libdir does not exist
24163 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24164
24165 # Whether we need a single "-rpath" flag with a separated argument.
24166 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24167
24168 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24169 # DIR into the resulting binary.
24170 hardcode_direct=$hardcode_direct_CXX
24171
24172 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24173 # DIR into the resulting binary and the resulting library dependency is
24174 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24175 # library is relocated.
24176 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24177
24178 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24179 # into the resulting binary.
24180 hardcode_minus_L=$hardcode_minus_L_CXX
24181
24182 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24183 # into the resulting binary.
24184 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24185
24186 # Set to "yes" if building a shared library automatically hardcodes DIR
24187 # into the library and all subsequent libraries and executables linked
24188 # against it.
24189 hardcode_automatic=$hardcode_automatic_CXX
24190
24191 # Set to yes if linker adds runtime paths of dependent libraries
24192 # to runtime path list.
24193 inherit_rpath=$inherit_rpath_CXX
24194
24195 # Whether libtool must link a program against all its dependency libraries.
24196 link_all_deplibs=$link_all_deplibs_CXX
24197
24198 # Set to "yes" if exported symbols are required.
24199 always_export_symbols=$always_export_symbols_CXX
24200
24201 # The commands to list exported symbols.
24202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24203
24204 # Symbols that should not be listed in the preloaded symbols.
24205 exclude_expsyms=$lt_exclude_expsyms_CXX
24206
24207 # Symbols that must always be exported.
24208 include_expsyms=$lt_include_expsyms_CXX
24209
24210 # Commands necessary for linking programs (against libraries) with templates.
24211 prelink_cmds=$lt_prelink_cmds_CXX
24212
24213 # Commands necessary for finishing linking programs.
24214 postlink_cmds=$lt_postlink_cmds_CXX
24215
24216 # Specify filename containing input files.
24217 file_list_spec=$lt_file_list_spec_CXX
24218
24219 # How to hardcode a shared library path into an executable.
24220 hardcode_action=$hardcode_action_CXX
24221
24222 # The directories searched by this compiler when creating a shared library.
24223 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24224
24225 # Dependencies to place before and after the objects being linked to
24226 # create a shared library.
24227 predep_objects=$lt_predep_objects_CXX
24228 postdep_objects=$lt_postdep_objects_CXX
24229 predeps=$lt_predeps_CXX
24230 postdeps=$lt_postdeps_CXX
24231
24232 # The library search path used internally by the compiler when linking
24233 # a shared library.
24234 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24235
24236 # ### END LIBTOOL TAG CONFIG: CXX
24237 _LT_EOF
24238
24239 ;;
24240
24241 esac
24242 done # for ac_tag
24243
24244
24245 as_fn_exit 0
24246 _ACEOF
24247 ac_clean_files=$ac_clean_files_save
24248
24249 test $ac_write_fail = 0 ||
24250 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24251
24252
24253 # configure is writing to config.log, and then calls config.status.
24254 # config.status does its own redirection, appending to config.log.
24255 # Unfortunately, on DOS this fails, as config.log is still kept open
24256 # by configure, so config.status won't be able to write to it; its
24257 # output is simply discarded. So we exec the FD to /dev/null,
24258 # effectively closing config.log, so it can be properly (re)opened and
24259 # appended to by config.status. When coming back to configure, we
24260 # need to make the FD available again.
24261 if test "$no_create" != yes; then
24262 ac_cs_success=:
24263 ac_config_status_args=
24264 test "$silent" = yes &&
24265 ac_config_status_args="$ac_config_status_args --quiet"
24266 exec 5>/dev/null
24267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24268 exec 5>>config.log
24269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24270 # would make configure fail if this is the last instruction.
24271 $ac_cs_success || as_fn_exit 1
24272 fi
24273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24275 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24276 fi
24277