]> git.saurik.com Git - cycript.git/blob - configure
Remove everything obsoleted by just using cynject.
[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 SO
642 LTFLAGS
643 LTLIBGCC
644 LTLIBTERMCAP
645 LTLIBREADLINE
646 CY_OBJECTIVEC_FALSE
647 CY_OBJECTIVEC_TRUE
648 CY_JAVA_FALSE
649 CY_JAVA_TRUE
650 LTOBJECTIVEC
651 GNUSTEP_CONFIG
652 CY_OBJECTIVEC
653 LTJAVA
654 CY_JAVA
655 LTLIBFFI
656 LIBFFI_LIBS
657 LIBFFI_CFLAGS
658 CY_EXECUTE_FALSE
659 CY_EXECUTE_TRUE
660 CY_ATTACH_FALSE
661 CY_ATTACH_TRUE
662 CY_CONSOLE_FALSE
663 CY_CONSOLE_TRUE
664 LTJAVASCRIPTCORE
665 WEBKIT_LIBS
666 WEBKIT_CFLAGS
667 CY_EXECUTE
668 CY_ARCH
669 PTHREAD_CFLAGS
670 PTHREAD_LIBS
671 PTHREAD_CC
672 ax_pthread_config
673 GNUTAR
674 GPERF
675 FLEX
676 BISON
677 TIME
678 GIT
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 HAVE_CXX11
683 CXXCPP
684 CPP
685 LT_SYS_LIBRARY_PATH
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 ac_ct_AR
714 AR
715 am__fastdepOBJCXX_FALSE
716 am__fastdepOBJCXX_TRUE
717 OBJCXXDEPMODE
718 ac_ct_OBJCXX
719 OBJCXXFLAGS
720 OBJCXX
721 am__fastdepCXX_FALSE
722 am__fastdepCXX_TRUE
723 CXXDEPMODE
724 ac_ct_CXX
725 CXXFLAGS
726 CXX
727 am__fastdepCC_FALSE
728 am__fastdepCC_TRUE
729 CCDEPMODE
730 am__nodep
731 AMDEPBACKSLASH
732 AMDEP_FALSE
733 AMDEP_TRUE
734 am__quote
735 am__include
736 DEPDIR
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 AM_BACKSLASH
748 AM_DEFAULT_VERBOSITY
749 AM_DEFAULT_V
750 AM_V
751 am__untar
752 am__tar
753 AMTAR
754 am__leading_dot
755 SET_MAKE
756 AWK
757 mkdir_p
758 MKDIR_P
759 INSTALL_STRIP_PROGRAM
760 STRIP
761 install_sh
762 MAKEINFO
763 AUTOHEADER
764 AUTOMAKE
765 AUTOCONF
766 ACLOCAL
767 VERSION
768 PACKAGE
769 CYGPATH_W
770 am__isrc
771 INSTALL_DATA
772 INSTALL_SCRIPT
773 INSTALL_PROGRAM
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_static
819 enable_shared
820 with_pic
821 enable_fast_install
822 with_aix_soname
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_javascript
827 enable_console
828 enable_attach
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CXX
839 CXXFLAGS
840 CCC
841 OBJCXX
842 OBJCXXFLAGS
843 LT_SYS_LIBRARY_PATH
844 CPP
845 CXXCPP
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 BISON
850 FLEX
851 GPERF
852 GNUTAR
853 WEBKIT_CFLAGS
854 WEBKIT_LIBS
855 LIBFFI_CFLAGS
856 LIBFFI_LIBS
857 GNUSTEP_CONFIG'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of Cycript 0.9:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-static[=PKGS] build static libraries [default=no]
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-javascript[=ENGINE]
1491 use a JavaScript runtime (currently the only
1492 available option for ENGINE is JavaScriptCore)
1493 [default=yes]
1494 --disable-console disable console
1495 --disable-attach disable attach
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1508
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 CXX C++ compiler command
1518 CXXFLAGS C++ compiler flags
1519 OBJCXX Objective C++ compiler command
1520 OBJCXXFLAGS Objective C++ compiler flags
1521 LT_SYS_LIBRARY_PATH
1522 User-defined run-time library search path.
1523 CPP C preprocessor
1524 CXXCPP C++ preprocessor
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 BISON GNU Project parser generator (yacc replacement)
1531 FLEX the fast lexical analyser generator
1532 GPERF perfect hash function generator
1533 GNUTAR a very sticky lump of files
1534 WEBKIT_CFLAGS
1535 C compiler flags for WEBKIT, overriding pkg-config
1536 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1537 GNUSTEP_CONFIG
1538 prints information about the current gnustep installation
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to <saurik@saurik.com>.
1544 Cycript home page: <http://www.cycript.org/>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 Cycript configure 0.9
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613
1614 Copyright (C) 2009-2014 Jay Freeman (saurik)
1615 _ACEOF
1616 exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_cxx_try_compile LINENO
1662 # ----------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_cxx_try_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_cxx_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_cxx_try_compile
1698
1699 # ac_fn_objcxx_try_compile LINENO
1700 # -------------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_objcxx_try_compile ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_objcxx_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_objcxx_try_compile
1736
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 test -x conftest$ac_exeext
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_link
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_header_compile
1813
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_cpp ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 }; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_cpp
1850
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=$ac_status
1886 fi
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908 #define $2 innocuous_$2
1909
1910 /* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1914
1915 #ifdef __STDC__
1916 # include <limits.h>
1917 #else
1918 # include <assert.h>
1919 #endif
1920
1921 #undef $2
1922
1923 /* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1926 #ifdef __cplusplus
1927 extern "C"
1928 #endif
1929 char $2 ();
1930 /* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933 #if defined __stub_$2 || defined __stub___$2
1934 choke me
1935 #endif
1936
1937 int
1938 main ()
1939 {
1940 return $2 ();
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_link "$LINENO"; then :
1946 eval "$3=yes"
1947 else
1948 eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext \
1951 conftest$ac_exeext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_check_func
1959
1960 # ac_fn_cxx_try_cpp LINENO
1961 # ------------------------
1962 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_cxx_try_cpp ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } > conftest.i && {
1982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_cxx_try_cpp
1996
1997 # ac_fn_cxx_try_link LINENO
1998 # -------------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_link ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2017 fi
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_cxx_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest$ac_exeext && {
2023 test "$cross_compiling" = yes ||
2024 test -x conftest$ac_exeext
2025 }; then :
2026 ac_retval=0
2027 else
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032 fi
2033 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 # interfere with the next link command; also delete a directory that is
2036 # left behind by Apple's compiler. We do this before executing the actions.
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2040
2041 } # ac_fn_cxx_try_link
2042
2043 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2044 # ---------------------------------------------------------
2045 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2046 # the include files in INCLUDES and setting the cache variable VAR
2047 # accordingly.
2048 ac_fn_cxx_check_header_mongrel ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if eval \${$3+:} false; then :
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056 fi
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 else
2061 # Is the header compilable?
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2063 $as_echo_n "checking $2 usability... " >&6; }
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $4
2067 #include <$2>
2068 _ACEOF
2069 if ac_fn_cxx_try_compile "$LINENO"; then :
2070 ac_header_compiler=yes
2071 else
2072 ac_header_compiler=no
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2076 $as_echo "$ac_header_compiler" >&6; }
2077
2078 # Is the header present?
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2080 $as_echo_n "checking $2 presence... " >&6; }
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_cxx_try_cpp "$LINENO"; then :
2086 ac_header_preproc=yes
2087 else
2088 ac_header_preproc=no
2089 fi
2090 rm -f conftest.err conftest.i conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2092 $as_echo "$ac_header_preproc" >&6; }
2093
2094 # So? What about this header?
2095 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2096 yes:no: )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2098 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 ;;
2102 no:yes:* )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2104 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2106 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2108 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2110 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2113 ( $as_echo "## -------------------------------- ##
2114 ## Report this to saurik@saurik.com ##
2115 ## -------------------------------- ##"
2116 ) | sed "s/^/$as_me: WARNING: /" >&2
2117 ;;
2118 esac
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 eval "$3=\$ac_header_compiler"
2125 fi
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 fi
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_cxx_check_header_mongrel
2133
2134 # ac_fn_objcxx_try_link LINENO
2135 # ----------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_objcxx_try_link ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_objcxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 test -x conftest$ac_exeext
2162 }; then :
2163 ac_retval=0
2164 else
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169 fi
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_objcxx_try_link
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2182
2183 It was created by Cycript $as_me 0.9, which was
2184 generated by GNU Autoconf 2.69. Invocation command line was
2185
2186 $ $0 $@
2187
2188 _ACEOF
2189 exec 5>>config.log
2190 {
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2195
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212
2213 _ASUNAME
2214
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2221 done
2222 IFS=$as_save_IFS
2223
2224 } >&5
2225
2226 cat >&5 <<_ACEOF
2227
2228
2229 ## ----------- ##
2230 ## Core tests. ##
2231 ## ----------- ##
2232
2233 _ACEOF
2234
2235
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_configure_args=
2242 ac_configure_args0=
2243 ac_configure_args1=
2244 ac_must_keep_next=false
2245 for ac_pass in 1 2
2246 do
2247 for ac_arg
2248 do
2249 case $ac_arg in
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2253 continue ;;
2254 *\'*)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 esac
2257 case $ac_pass in
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 2)
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2263 else
2264 case $ac_arg in
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 esac
2272 ;;
2273 -* ) ac_must_keep_next=true ;;
2274 esac
2275 fi
2276 as_fn_append ac_configure_args " '$ac_arg'"
2277 ;;
2278 esac
2279 done
2280 done
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2283
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log. We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2291 {
2292 echo
2293
2294 $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2297 echo
2298 # The following way of writing the cache mishandles newlines in values,
2299 (
2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in #(
2303 *${as_nl}*)
2304 case $ac_var in #(
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307 esac
2308 case $ac_var in #(
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2312 esac ;;
2313 esac
2314 done
2315 (set) 2>&1 |
2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2318 sed -n \
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321 ;; #(
2322 *)
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ;;
2325 esac |
2326 sort
2327 )
2328 echo
2329
2330 $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2333 echo
2334 for ac_var in $ac_subst_vars
2335 do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2343
2344 if test -n "$ac_subst_files"; then
2345 $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2348 echo
2349 for ac_var in $ac_subst_files
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358 fi
2359
2360 if test -s confdefs.h; then
2361 $as_echo "## ----------- ##
2362 ## confdefs.h. ##
2363 ## ----------- ##"
2364 echo
2365 cat confdefs.h
2366 echo
2367 fi
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2371 } >&5
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 exit $exit_status
2375 ' 0
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 done
2379 ac_signal=0
2380
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2383
2384 $as_echo "/* confdefs.h */" > confdefs.h
2385
2386 # Predefined preprocessor variables.
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2410 _ACEOF
2411
2412
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2415 ac_site_file1=NONE
2416 ac_site_file2=NONE
2417 if test -n "$CONFIG_SITE"; then
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2423 esac
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2427 else
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2430 fi
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 do
2433 test "x$ac_site_file" = xNONE && continue
2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2438 . "$ac_site_file" \
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See \`config.log' for more details" "$LINENO" 5; }
2443 fi
2444 done
2445
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452 case $cache_file in
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2455 esac
2456 fi
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 >$cache_file
2461 fi
2462
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2481 *)
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2511 fi
2512 done
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 fi
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532
2533
2534 ac_aux_dir=
2535 for ac_dir in . "$srcdir"/.; do
2536 if test -f "$ac_dir/install-sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 break
2540 elif test -f "$ac_dir/install.sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 break
2544 elif test -f "$ac_dir/shtool"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2547 break
2548 fi
2549 done
2550 if test -z "$ac_aux_dir"; then
2551 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2552 fi
2553
2554 # These three variables are undocumented and unsupported,
2555 # and are intended to be withdrawn in a future Autoconf release.
2556 # They can cause serious problems if a builder's source tree is in a directory
2557 # whose full name contains unusual characters.
2558 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561
2562
2563
2564 ac_config_headers="$ac_config_headers config.h"
2565
2566
2567 am__api_version='1.14'
2568
2569 # Find a good install program. We prefer a C program (faster),
2570 # so one script is as good as another. But avoid the broken or
2571 # incompatible versions:
2572 # SysV /etc/install, /usr/sbin/install
2573 # SunOS /usr/etc/install
2574 # IRIX /sbin/install
2575 # AIX /bin/install
2576 # AmigaOS /C/install, which installs bootblocks on floppy discs
2577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # OS/2's system install, which has a completely different semantic
2581 # ./install, which can be erroneously created by make from ./install.sh.
2582 # Reject install programs that cannot install multiple files.
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2585 if test -z "$INSTALL"; then
2586 if ${ac_cv_path_install+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 # Account for people who put trailing slashes in PATH elements.
2595 case $as_dir/ in #((
2596 ./ | .// | /[cC]/* | \
2597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2599 /usr/ucb/* ) ;;
2600 *)
2601 # OSF1 and SCO ODT 3.0 have their own names for install.
2602 # Don't use installbsd from OSF since it installs stuff as root
2603 # by default.
2604 for ac_prog in ginstall scoinst install; do
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2607 if test $ac_prog = install &&
2608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # AIX install. It has an incompatible calling convention.
2610 :
2611 elif test $ac_prog = install &&
2612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # program-specific install script used by HP pwplus--don't use.
2614 :
2615 else
2616 rm -rf conftest.one conftest.two conftest.dir
2617 echo one > conftest.one
2618 echo two > conftest.two
2619 mkdir conftest.dir
2620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2621 test -s conftest.one && test -s conftest.two &&
2622 test -s conftest.dir/conftest.one &&
2623 test -s conftest.dir/conftest.two
2624 then
2625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2626 break 3
2627 fi
2628 fi
2629 fi
2630 done
2631 done
2632 ;;
2633 esac
2634
2635 done
2636 IFS=$as_save_IFS
2637
2638 rm -rf conftest.one conftest.two conftest.dir
2639
2640 fi
2641 if test "${ac_cv_path_install+set}" = set; then
2642 INSTALL=$ac_cv_path_install
2643 else
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for INSTALL within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 INSTALL=$ac_install_sh
2649 fi
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2652 $as_echo "$INSTALL" >&6; }
2653
2654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2655 # It thinks the first close brace ends the variable substitution.
2656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2657
2658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2659
2660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2663 $as_echo_n "checking whether build environment is sane... " >&6; }
2664 # Reject unsafe characters in $srcdir or the absolute working directory
2665 # name. Accept space and tab only in the latter.
2666 am_lf='
2667 '
2668 case `pwd` in
2669 *[\\\"\#\$\&\'\`$am_lf]*)
2670 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2671 esac
2672 case $srcdir in
2673 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2674 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2675 esac
2676
2677 # Do 'set' in a subshell so we don't clobber the current shell's
2678 # arguments. Must try -L first in case configure is actually a
2679 # symlink; some systems play weird games with the mod time of symlinks
2680 # (eg FreeBSD returns the mod time of the symlink's containing
2681 # directory).
2682 if (
2683 am_has_slept=no
2684 for am_try in 1 2; do
2685 echo "timestamp, slept: $am_has_slept" > conftest.file
2686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2687 if test "$*" = "X"; then
2688 # -L didn't work.
2689 set X `ls -t "$srcdir/configure" conftest.file`
2690 fi
2691 if test "$*" != "X $srcdir/configure conftest.file" \
2692 && test "$*" != "X conftest.file $srcdir/configure"; then
2693
2694 # If neither matched, then we have a broken ls. This can happen
2695 # if, for instance, CONFIG_SHELL is bash and it inherits a
2696 # broken ls alias from the environment. This has actually
2697 # happened. Such a system could not be considered "sane".
2698 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2699 alias in your environment" "$LINENO" 5
2700 fi
2701 if test "$2" = conftest.file || test $am_try -eq 2; then
2702 break
2703 fi
2704 # Just in case.
2705 sleep 1
2706 am_has_slept=yes
2707 done
2708 test "$2" = conftest.file
2709 )
2710 then
2711 # Ok.
2712 :
2713 else
2714 as_fn_error $? "newly created file is older than distributed files!
2715 Check your system clock" "$LINENO" 5
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2719 # If we didn't sleep, we still need to ensure time stamps of config.status and
2720 # generated files are strictly newer.
2721 am_sleep_pid=
2722 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2723 ( sleep 1 ) &
2724 am_sleep_pid=$!
2725 fi
2726
2727 rm -f conftest.file
2728
2729 test "$program_prefix" != NONE &&
2730 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2731 # Use a double $ so make ignores it.
2732 test "$program_suffix" != NONE &&
2733 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2734 # Double any \ or $.
2735 # By default was `s,x,x', remove it if useless.
2736 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2737 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738
2739 # expand $ac_aux_dir to an absolute path
2740 am_aux_dir=`cd $ac_aux_dir && pwd`
2741
2742 if test x"${MISSING+set}" != xset; then
2743 case $am_aux_dir in
2744 *\ * | *\ *)
2745 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 *)
2747 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2748 esac
2749 fi
2750 # Use eval to expand $SHELL
2751 if eval "$MISSING --is-lightweight"; then
2752 am_missing_run="$MISSING "
2753 else
2754 am_missing_run=
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2756 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2757 fi
2758
2759 if test x"${install_sh}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 *)
2764 install_sh="\${SHELL} $am_aux_dir/install-sh"
2765 esac
2766 fi
2767
2768 # Installed binaries are usually stripped using 'strip' when the user
2769 # run "make install-strip". However 'strip' might not be the right
2770 # tool to use in cross-compilation environments, therefore Automake
2771 # will honor the 'STRIP' environment variable to overrule this program.
2772 if test "$cross_compiling" != no; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}strip; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_STRIP+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$STRIP"; then
2782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 STRIP=$ac_cv_prog_STRIP
2802 if test -n "$STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2804 $as_echo "$STRIP" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$ac_cv_prog_STRIP"; then
2813 ac_ct_STRIP=$STRIP
2814 # Extract the first word of "strip", so it can be a program name with args.
2815 set dummy strip; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_STRIP"; then
2822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_STRIP="strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2842 if test -n "$ac_ct_STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2844 $as_echo "$ac_ct_STRIP" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850 if test "x$ac_ct_STRIP" = x; then
2851 STRIP=":"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 STRIP=$ac_ct_STRIP
2860 fi
2861 else
2862 STRIP="$ac_cv_prog_STRIP"
2863 fi
2864
2865 fi
2866 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2869 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2870 if test -z "$MKDIR_P"; then
2871 if ${ac_cv_path_mkdir+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_prog in mkdir gmkdir; do
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2882 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2883 'mkdir (GNU coreutils) '* | \
2884 'mkdir (coreutils) '* | \
2885 'mkdir (fileutils) '4.1*)
2886 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2887 break 3;;
2888 esac
2889 done
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895
2896 test -d ./--version && rmdir ./--version
2897 if test "${ac_cv_path_mkdir+set}" = set; then
2898 MKDIR_P="$ac_cv_path_mkdir -p"
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for MKDIR_P within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 MKDIR_P="$ac_install_sh -d"
2905 fi
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2908 $as_echo "$MKDIR_P" >&6; }
2909
2910 for ac_prog in gawk mawk nawk awk
2911 do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_AWK+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$AWK"; then
2920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_AWK="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 AWK=$ac_cv_prog_AWK
2940 if test -n "$AWK"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942 $as_echo "$AWK" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 test -n "$AWK" && break
2950 done
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2953 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2954 set x ${MAKE-make}
2955 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2956 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 cat >conftest.make <<\_ACEOF
2960 SHELL = /bin/sh
2961 all:
2962 @echo '@@@%%%=$(MAKE)=@@@%%%'
2963 _ACEOF
2964 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2965 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2966 *@@@%%%=?*=@@@%%%*)
2967 eval ac_cv_prog_make_${ac_make}_set=yes;;
2968 *)
2969 eval ac_cv_prog_make_${ac_make}_set=no;;
2970 esac
2971 rm -f conftest.make
2972 fi
2973 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2976 SET_MAKE=
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 SET_MAKE="MAKE=${MAKE-make}"
2981 fi
2982
2983 rm -rf .tst 2>/dev/null
2984 mkdir .tst 2>/dev/null
2985 if test -d .tst; then
2986 am__leading_dot=.
2987 else
2988 am__leading_dot=_
2989 fi
2990 rmdir .tst 2>/dev/null
2991
2992 # Check whether --enable-silent-rules was given.
2993 if test "${enable_silent_rules+set}" = set; then :
2994 enableval=$enable_silent_rules;
2995 fi
2996
2997 case $enable_silent_rules in # (((
2998 yes) AM_DEFAULT_VERBOSITY=0;;
2999 no) AM_DEFAULT_VERBOSITY=1;;
3000 *) AM_DEFAULT_VERBOSITY=1;;
3001 esac
3002 am_make=${MAKE-make}
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3004 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3005 if ${am_cv_make_support_nested_variables+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if $as_echo 'TRUE=$(BAR$(V))
3009 BAR0=false
3010 BAR1=true
3011 V=1
3012 am__doit:
3013 @$(TRUE)
3014 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3015 am_cv_make_support_nested_variables=yes
3016 else
3017 am_cv_make_support_nested_variables=no
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3021 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3022 if test $am_cv_make_support_nested_variables = yes; then
3023 AM_V='$(V)'
3024 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3025 else
3026 AM_V=$AM_DEFAULT_VERBOSITY
3027 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3028 fi
3029 AM_BACKSLASH='\'
3030
3031 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3032 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3033 # is not polluted with repeated "-I."
3034 am__isrc=' -I$(srcdir)'
3035 # test to see if srcdir already configured
3036 if test -f $srcdir/config.status; then
3037 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3038 fi
3039 fi
3040
3041 # test whether we have cygpath
3042 if test -z "$CYGPATH_W"; then
3043 if (cygpath --version) >/dev/null 2>/dev/null; then
3044 CYGPATH_W='cygpath -w'
3045 else
3046 CYGPATH_W=echo
3047 fi
3048 fi
3049
3050
3051 # Define the identity of the package.
3052 PACKAGE='cycript'
3053 VERSION='0.9'
3054
3055
3056 cat >>confdefs.h <<_ACEOF
3057 #define PACKAGE "$PACKAGE"
3058 _ACEOF
3059
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define VERSION "$VERSION"
3063 _ACEOF
3064
3065 # Some tools Automake needs.
3066
3067 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3068
3069
3070 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3071
3072
3073 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3074
3075
3076 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3077
3078
3079 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3080
3081 # For better backward compatibility. To be removed once Automake 1.9.x
3082 # dies out for good. For more background, see:
3083 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3084 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3085 mkdir_p='$(MKDIR_P)'
3086
3087 # We need awk for the "check" target. The system "awk" is bad on
3088 # some platforms.
3089 # Always define AMTAR for backward compatibility. Yes, it's still used
3090 # in the wild :-( We should find a proper way to deprecate it ...
3091 AMTAR='$${TAR-tar}'
3092
3093
3094 # We'll loop over all known methods to create a tar archive until one works.
3095 _am_tools='gnutar pax cpio none'
3096
3097 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3098
3099
3100
3101
3102
3103
3104 # POSIX will say in a future version that running "rm -f" with no argument
3105 # is OK; and we want to be able to make that assumption in our Makefile
3106 # recipes. So use an aggressive probe to check that the usage we want is
3107 # actually supported "in the wild" to an acceptable degree.
3108 # See automake bug#10828.
3109 # To make any issue more visible, cause the running configure to be aborted
3110 # by default if the 'rm' program in use doesn't match our expectations; the
3111 # user can still override this though.
3112 if rm -f && rm -fr && rm -rf; then : OK; else
3113 cat >&2 <<'END'
3114 Oops!
3115
3116 Your 'rm' program seems unable to run without file operands specified
3117 on the command line, even when the '-f' option is present. This is contrary
3118 to the behaviour of most rm programs out there, and not conforming with
3119 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3120
3121 Please tell bug-automake@gnu.org about your system, including the value
3122 of your $PATH and any error possibly output before this message. This
3123 can help us improve future automake versions.
3124
3125 END
3126 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3127 echo 'Configuration will proceed anyway, since you have set the' >&2
3128 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3129 echo >&2
3130 else
3131 cat >&2 <<'END'
3132 Aborting the configuration process, to ensure you take notice of the issue.
3133
3134 You can download and install GNU coreutils to get an 'rm' implementation
3135 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3136
3137 If you want to complete the configuration process using your problematic
3138 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3139 to "yes", and re-run configure.
3140
3141 END
3142 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3143 fi
3144 fi
3145
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3147 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3148 # Check whether --enable-maintainer-mode was given.
3149 if test "${enable_maintainer_mode+set}" = set; then :
3150 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3151 else
3152 USE_MAINTAINER_MODE=no
3153 fi
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3156 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3157 if test $USE_MAINTAINER_MODE = yes; then
3158 MAINTAINER_MODE_TRUE=
3159 MAINTAINER_MODE_FALSE='#'
3160 else
3161 MAINTAINER_MODE_TRUE='#'
3162 MAINTAINER_MODE_FALSE=
3163 fi
3164
3165 MAINT=$MAINTAINER_MODE_TRUE
3166
3167
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 fi
3213 if test -z "$ac_cv_prog_CC"; then
3214 ac_ct_CC=$CC
3215 # Extract the first word of "gcc", so it can be a program name with args.
3216 set dummy gcc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_ac_ct_CC="gcc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243 if test -n "$ac_ct_CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245 $as_echo "$ac_ct_CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251 if test "x$ac_ct_CC" = x; then
3252 CC=""
3253 else
3254 case $cross_compiling:$ac_tool_warned in
3255 yes:)
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258 ac_tool_warned=yes ;;
3259 esac
3260 CC=$ac_ct_CC
3261 fi
3262 else
3263 CC="$ac_cv_prog_CC"
3264 fi
3265
3266 if test -z "$CC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}cc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC="${ac_tool_prefix}cc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 fi
3306 fi
3307 if test -z "$CC"; then
3308 # Extract the first word of "cc", so it can be a program name with args.
3309 set dummy cc; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 ac_prog_rejected=no
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3327 ac_prog_rejected=yes
3328 continue
3329 fi
3330 ac_cv_prog_CC="cc"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 if test $ac_prog_rejected = yes; then
3339 # We found a bogon in the path, so make sure we never use it.
3340 set dummy $ac_cv_prog_CC
3341 shift
3342 if test $# != 0; then
3343 # We chose a different compiler from the bogus one.
3344 # However, it has the same basename, so the bogon will be chosen
3345 # first if we set CC to just the basename; use the full file name.
3346 shift
3347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3348 fi
3349 fi
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 fi
3363 if test -z "$CC"; then
3364 if test -n "$ac_tool_prefix"; then
3365 for ac_prog in cl.exe
3366 do
3367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388 done
3389 done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403
3404 test -n "$CC" && break
3405 done
3406 fi
3407 if test -z "$CC"; then
3408 ac_ct_CC=$CC
3409 for ac_prog in cl.exe
3410 do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$ac_ct_CC"; then
3419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_ac_ct_CC="$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439 if test -n "$ac_ct_CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441 $as_echo "$ac_ct_CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 test -n "$ac_ct_CC" && break
3449 done
3450
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460 CC=$ac_ct_CC
3461 fi
3462 fi
3463
3464 fi
3465
3466
3467 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "no acceptable C compiler found in \$PATH
3470 See \`config.log' for more details" "$LINENO" 5; }
3471
3472 # Provide some information about the compiler.
3473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3474 set X $ac_compile
3475 ac_compiler=$2
3476 for ac_option in --version -v -V -qversion; do
3477 { { ac_try="$ac_compiler $ac_option >&5"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3485 ac_status=$?
3486 if test -s conftest.err; then
3487 sed '10a\
3488 ... rest of stderr output deleted ...
3489 10q' conftest.err >conftest.er1
3490 cat conftest.er1 >&5
3491 fi
3492 rm -f conftest.er1 conftest.err
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }
3495 done
3496
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 ac_clean_files_save=$ac_clean_files
3509 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3510 # Try to create an executable without -o first, disregard a.out.
3511 # It will help us diagnose broken compilers, and finding out an intuition
3512 # of exeext.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3514 $as_echo_n "checking whether the C compiler works... " >&6; }
3515 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3516
3517 # The possible output files:
3518 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519
3520 ac_rmfiles=
3521 for ac_file in $ac_files
3522 do
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3526 esac
3527 done
3528 rm -f $ac_rmfiles
3529
3530 if { { ac_try="$ac_link_default"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link_default") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3543 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3544 # so that the user can short-circuit this test for compilers unknown to
3545 # Autoconf.
3546 for ac_file in $ac_files ''
3547 do
3548 test -f "$ac_file" || continue
3549 case $ac_file in
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3551 ;;
3552 [ab].out )
3553 # We found the default executable, but exeext='' is most
3554 # certainly right.
3555 break;;
3556 *.* )
3557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3558 then :; else
3559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 fi
3561 # We set ac_cv_exeext here because the later test for it is not
3562 # safe: cross compilers may not add the suffix if given an `-o'
3563 # argument, so we may need to know it at that point already.
3564 # Even if this section looks crufty: it has the advantage of
3565 # actually working.
3566 break;;
3567 * )
3568 break;;
3569 esac
3570 done
3571 test "$ac_cv_exeext" = no && ac_cv_exeext=
3572
3573 else
3574 ac_file=''
3575 fi
3576 if test -z "$ac_file"; then :
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error 77 "C compiler cannot create executables
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3588 $as_echo "yes" >&6; }
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3591 $as_echo_n "checking for C compiler default output file name... " >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3593 $as_echo "$ac_file" >&6; }
3594 ac_exeext=$ac_cv_exeext
3595
3596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3597 ac_clean_files=$ac_clean_files_save
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3599 $as_echo_n "checking for suffix of executables... " >&6; }
3600 if { { ac_try="$ac_link"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3613 # work properly (i.e., refer to `conftest.exe'), while it won't with
3614 # `rm'.
3615 for ac_file in conftest.exe conftest conftest.*; do
3616 test -f "$ac_file" || continue
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 break;;
3621 * ) break;;
3622 esac
3623 done
3624 else
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details" "$LINENO" 5; }
3629 fi
3630 rm -f conftest conftest$ac_cv_exeext
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3632 $as_echo "$ac_cv_exeext" >&6; }
3633
3634 rm -f conftest.$ac_ext
3635 EXEEXT=$ac_cv_exeext
3636 ac_exeext=$EXEEXT
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdio.h>
3640 int
3641 main ()
3642 {
3643 FILE *f = fopen ("conftest.out", "w");
3644 return ferror (f) || fclose (f) != 0;
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 ac_clean_files="$ac_clean_files conftest.out"
3651 # Check that the compiler produces executables we can run. If not, either
3652 # the compiler is broken, or we cross compile.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3654 $as_echo_n "checking whether we are cross compiling... " >&6; }
3655 if test "$cross_compiling" != yes; then
3656 { { ac_try="$ac_link"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }
3667 if { ac_try='./conftest$ac_cv_exeext'
3668 { { case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_try") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; }; then
3678 cross_compiling=no
3679 else
3680 if test "$cross_compiling" = maybe; then
3681 cross_compiling=yes
3682 else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot run C compiled programs.
3686 If you meant to cross compile, use \`--host'.
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 fi
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3692 $as_echo "$cross_compiling" >&6; }
3693
3694 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3695 ac_clean_files=$ac_clean_files_save
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3697 $as_echo_n "checking for suffix of object files... " >&6; }
3698 if ${ac_cv_objext+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703
3704 int
3705 main ()
3706 {
3707
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.o conftest.obj
3713 if { { ac_try="$ac_compile"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_compile") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; then :
3724 for ac_file in conftest.o conftest.obj conftest.*; do
3725 test -f "$ac_file" || continue;
3726 case $ac_file in
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3729 break;;
3730 esac
3731 done
3732 else
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $? "cannot compute suffix of object files: cannot compile
3739 See \`config.log' for more details" "$LINENO" 5; }
3740 fi
3741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3744 $as_echo "$ac_cv_objext" >&6; }
3745 OBJEXT=$ac_cv_objext
3746 ac_objext=$OBJEXT
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3748 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3749 if ${ac_cv_c_compiler_gnu+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 int
3756 main ()
3757 {
3758 #ifndef __GNUC__
3759 choke me
3760 #endif
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_compiler_gnu=yes
3768 else
3769 ac_compiler_gnu=no
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3773
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3776 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3777 if test $ac_compiler_gnu = yes; then
3778 GCC=yes
3779 else
3780 GCC=
3781 fi
3782 ac_test_CFLAGS=${CFLAGS+set}
3783 ac_save_CFLAGS=$CFLAGS
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3785 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3786 if ${ac_cv_prog_cc_g+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 ac_save_c_werror_flag=$ac_c_werror_flag
3790 ac_c_werror_flag=yes
3791 ac_cv_prog_cc_g=no
3792 CFLAGS="-g"
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_g=yes
3806 else
3807 CFLAGS=""
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810
3811 int
3812 main ()
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820
3821 else
3822 ac_c_werror_flag=$ac_save_c_werror_flag
3823 CFLAGS="-g"
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main ()
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_c_try_compile "$LINENO"; then :
3836 ac_cv_prog_cc_g=yes
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_c_werror_flag=$ac_save_c_werror_flag
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3846 $as_echo "$ac_cv_prog_cc_g" >&6; }
3847 if test "$ac_test_CFLAGS" = set; then
3848 CFLAGS=$ac_save_CFLAGS
3849 elif test $ac_cv_prog_cc_g = yes; then
3850 if test "$GCC" = yes; then
3851 CFLAGS="-g -O2"
3852 else
3853 CFLAGS="-g"
3854 fi
3855 else
3856 if test "$GCC" = yes; then
3857 CFLAGS="-O2"
3858 else
3859 CFLAGS=
3860 fi
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3863 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3864 if ${ac_cv_prog_cc_c89+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 ac_cv_prog_cc_c89=no
3868 ac_save_CC=$CC
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871 #include <stdarg.h>
3872 #include <stdio.h>
3873 struct stat;
3874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3875 struct buf { int x; };
3876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3877 static char *e (p, i)
3878 char **p;
3879 int i;
3880 {
3881 return p[i];
3882 }
3883 static char *f (char * (*g) (char **, int), char **p, ...)
3884 {
3885 char *s;
3886 va_list v;
3887 va_start (v,p);
3888 s = g (p, va_arg (v,int));
3889 va_end (v);
3890 return s;
3891 }
3892
3893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3894 function prototypes and stuff, but not '\xHH' hex character constants.
3895 These don't provoke an error unfortunately, instead are silently treated
3896 as 'x'. The following induces an error, until -std is added to get
3897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3898 array size at least. It's necessary to write '\x00'==0 to get something
3899 that's true only with -std. */
3900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901
3902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3903 inside strings and character constants. */
3904 #define FOO(x) 'x'
3905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3906
3907 int test (int i, double x);
3908 struct s1 {int (*f) (int a);};
3909 struct s2 {int (*f) (double a);};
3910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3911 int argc;
3912 char **argv;
3913 int
3914 main ()
3915 {
3916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 do
3924 CC="$ac_save_CC $ac_arg"
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_prog_cc_c89=$ac_arg
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext
3929 test "x$ac_cv_prog_cc_c89" != "xno" && break
3930 done
3931 rm -f conftest.$ac_ext
3932 CC=$ac_save_CC
3933
3934 fi
3935 # AC_CACHE_VAL
3936 case "x$ac_cv_prog_cc_c89" in
3937 x)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3939 $as_echo "none needed" >&6; } ;;
3940 xno)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3942 $as_echo "unsupported" >&6; } ;;
3943 *)
3944 CC="$CC $ac_cv_prog_cc_c89"
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3946 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3947 esac
3948 if test "x$ac_cv_prog_cc_c89" != xno; then :
3949
3950 fi
3951
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3964 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3965 if ${am_cv_prog_cc_c_o+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main ()
3973 {
3974
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 # Make sure it works both with $CC and with simple cc.
3980 # Following AC_PROG_CC_C_O, we do the test twice because some
3981 # compilers refuse to overwrite an existing .o file with -o,
3982 # though they will create one.
3983 am_cv_prog_cc_c_o=yes
3984 for am_i in 1 2; do
3985 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3986 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } \
3990 && test -f conftest2.$ac_objext; then
3991 : OK
3992 else
3993 am_cv_prog_cc_c_o=no
3994 break
3995 fi
3996 done
3997 rm -f core conftest*
3998 unset am_i
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4001 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4002 if test "$am_cv_prog_cc_c_o" != yes; then
4003 # Losing compiler, so override with the script.
4004 # FIXME: It is wrong to rewrite CC.
4005 # But if we don't then we get into trouble of one sort or another.
4006 # A longer-term fix would be to have automake use am__CC in this case,
4007 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4008 CC="$am_aux_dir/compile $CC"
4009 fi
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016 DEPDIR="${am__leading_dot}deps"
4017
4018 ac_config_commands="$ac_config_commands depfiles"
4019
4020
4021 am_make=${MAKE-make}
4022 cat > confinc << 'END'
4023 am__doit:
4024 @echo this is the am__doit target
4025 .PHONY: am__doit
4026 END
4027 # If we don't find an include directive, just comment out the code.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4030 am__include="#"
4031 am__quote=
4032 _am_result=none
4033 # First try GNU make style include.
4034 echo "include confinc" > confmf
4035 # Ignore all kinds of additional output from 'make'.
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038 am__include=include
4039 am__quote=
4040 _am_result=GNU
4041 ;;
4042 esac
4043 # Now try BSD make style include.
4044 if test "$am__include" = "#"; then
4045 echo '.include "confinc"' > confmf
4046 case `$am_make -s -f confmf 2> /dev/null` in #(
4047 *the\ am__doit\ target*)
4048 am__include=.include
4049 am__quote="\""
4050 _am_result=BSD
4051 ;;
4052 esac
4053 fi
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057 $as_echo "$_am_result" >&6; }
4058 rm -f confinc confmf
4059
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then :
4062 enableval=$enable_dependency_tracking;
4063 fi
4064
4065 if test "x$enable_dependency_tracking" != xno; then
4066 am_depcomp="$ac_aux_dir/depcomp"
4067 AMDEPBACKSLASH='\'
4068 am__nodep='_no'
4069 fi
4070 if test "x$enable_dependency_tracking" != xno; then
4071 AMDEP_TRUE=
4072 AMDEP_FALSE='#'
4073 else
4074 AMDEP_TRUE='#'
4075 AMDEP_FALSE=
4076 fi
4077
4078
4079
4080 depcc="$CC" am_compiler_list=
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4083 $as_echo_n "checking dependency style of $depcc... " >&6; }
4084 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088 # We make a subdir and do the tests there. Otherwise we can end up
4089 # making bogus files that we don't know about and never remove. For
4090 # instance it was reported that on HP-UX the gcc test will end up
4091 # making a dummy file named 'D' -- because '-MD' means "put the output
4092 # in D".
4093 rm -rf conftest.dir
4094 mkdir conftest.dir
4095 # Copy depcomp to subdir because otherwise we won't find it if we're
4096 # using a relative directory.
4097 cp "$am_depcomp" conftest.dir
4098 cd conftest.dir
4099 # We will build objects and dependencies in a subdirectory because
4100 # it helps to detect inapplicable dependency modes. For instance
4101 # both Tru64's cc and ICC support -MD to output dependencies as a
4102 # side effect of compilation, but ICC will put the dependencies in
4103 # the current directory while Tru64 will put them in the object
4104 # directory.
4105 mkdir sub
4106
4107 am_cv_CC_dependencies_compiler_type=none
4108 if test "$am_compiler_list" = ""; then
4109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110 fi
4111 am__universal=false
4112 case " $depcc " in #(
4113 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114 esac
4115
4116 for depmode in $am_compiler_list; do
4117 # Setup a source with many dependencies, because some compilers
4118 # like to wrap large dependency lists on column 80 (with \), and
4119 # we should not choose a depcomp mode which is confused by this.
4120 #
4121 # We need to recreate these files for each test, as the compiler may
4122 # overwrite some of them when testing with obscure command lines.
4123 # This happens at least with the AIX C compiler.
4124 : > sub/conftest.c
4125 for i in 1 2 3 4 5 6; do
4126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4128 # Solaris 10 /bin/sh.
4129 echo '/* dummy */' > sub/conftst$i.h
4130 done
4131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4134 # mode. It turns out that the SunPro C++ compiler does not properly
4135 # handle '-M -o', and we need to detect this. Also, some Intel
4136 # versions had trouble with output in subdirs.
4137 am__obj=sub/conftest.${OBJEXT-o}
4138 am__minus_obj="-o $am__obj"
4139 case $depmode in
4140 gcc)
4141 # This depmode causes a compiler race in universal mode.
4142 test "$am__universal" = false || continue
4143 ;;
4144 nosideeffect)
4145 # After this tag, mechanisms are not by side-effect, so they'll
4146 # only be used when explicitly requested.
4147 if test "x$enable_dependency_tracking" = xyes; then
4148 continue
4149 else
4150 break
4151 fi
4152 ;;
4153 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4154 # This compiler won't grok '-c -o', but also, the minuso test has
4155 # not run yet. These depmodes are late enough in the game, and
4156 # so weak that their functioning should not be impacted.
4157 am__obj=conftest.${OBJEXT-o}
4158 am__minus_obj=
4159 ;;
4160 none) break ;;
4161 esac
4162 if depmode=$depmode \
4163 source=sub/conftest.c object=$am__obj \
4164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166 >/dev/null 2>conftest.err &&
4167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171 # icc doesn't choke on unknown options, it will just issue warnings
4172 # or remarks (even with -Werror). So we grep stderr for any message
4173 # that says an option was ignored or not supported.
4174 # When given -MP, icc 7.0 and 7.1 complain thusly:
4175 # icc: Command line warning: ignoring option '-M'; no argument required
4176 # The diagnosis changed in icc 8.0:
4177 # icc: Command line remark: option '-MP' not supported
4178 if (grep 'ignoring option' conftest.err ||
4179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180 am_cv_CC_dependencies_compiler_type=$depmode
4181 break
4182 fi
4183 fi
4184 done
4185
4186 cd ..
4187 rm -rf conftest.dir
4188 else
4189 am_cv_CC_dependencies_compiler_type=none
4190 fi
4191
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197 if
4198 test "x$enable_dependency_tracking" != xno \
4199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200 am__fastdepCC_TRUE=
4201 am__fastdepCC_FALSE='#'
4202 else
4203 am__fastdepCC_TRUE='#'
4204 am__fastdepCC_FALSE=
4205 fi
4206
4207
4208 ac_ext=cpp
4209 ac_cpp='$CXXCPP $CPPFLAGS'
4210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4213 if test -z "$CXX"; then
4214 if test -n "$CCC"; then
4215 CXX=$CCC
4216 else
4217 if test -n "$ac_tool_prefix"; then
4218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4219 do
4220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CXX+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$CXX"; then
4228 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 CXX=$ac_cv_prog_CXX
4248 if test -n "$CXX"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4250 $as_echo "$CXX" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257 test -n "$CXX" && break
4258 done
4259 fi
4260 if test -z "$CXX"; then
4261 ac_ct_CXX=$CXX
4262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4263 do
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$ac_ct_CXX"; then
4272 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_prog_ac_ct_CXX="$ac_prog"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4292 if test -n "$ac_ct_CXX"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4294 $as_echo "$ac_ct_CXX" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300
4301 test -n "$ac_ct_CXX" && break
4302 done
4303
4304 if test "x$ac_ct_CXX" = x; then
4305 CXX="g++"
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308 yes:)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4312 esac
4313 CXX=$ac_ct_CXX
4314 fi
4315 fi
4316
4317 fi
4318 fi
4319 # Provide some information about the compiler.
4320 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4321 set X $ac_compile
4322 ac_compiler=$2
4323 for ac_option in --version -v -V -qversion; do
4324 { { ac_try="$ac_compiler $ac_option >&5"
4325 case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4332 ac_status=$?
4333 if test -s conftest.err; then
4334 sed '10a\
4335 ... rest of stderr output deleted ...
4336 10q' conftest.err >conftest.er1
4337 cat conftest.er1 >&5
4338 fi
4339 rm -f conftest.er1 conftest.err
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }
4342 done
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4345 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4346 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351
4352 int
4353 main ()
4354 {
4355 #ifndef __GNUC__
4356 choke me
4357 #endif
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_cxx_try_compile "$LINENO"; then :
4364 ac_compiler_gnu=yes
4365 else
4366 ac_compiler_gnu=no
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4370
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4373 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4374 if test $ac_compiler_gnu = yes; then
4375 GXX=yes
4376 else
4377 GXX=
4378 fi
4379 ac_test_CXXFLAGS=${CXXFLAGS+set}
4380 ac_save_CXXFLAGS=$CXXFLAGS
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4382 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4383 if ${ac_cv_prog_cxx_g+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4387 ac_cxx_werror_flag=yes
4388 ac_cv_prog_cxx_g=no
4389 CXXFLAGS="-g"
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 int
4394 main ()
4395 {
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_cxx_try_compile "$LINENO"; then :
4402 ac_cv_prog_cxx_g=yes
4403 else
4404 CXXFLAGS=""
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407
4408 int
4409 main ()
4410 {
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_cxx_try_compile "$LINENO"; then :
4417
4418 else
4419 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4420 CXXFLAGS="-g"
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423
4424 int
4425 main ()
4426 {
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_cv_prog_cxx_g=yes
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 fi
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4443 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4444 if test "$ac_test_CXXFLAGS" = set; then
4445 CXXFLAGS=$ac_save_CXXFLAGS
4446 elif test $ac_cv_prog_cxx_g = yes; then
4447 if test "$GXX" = yes; then
4448 CXXFLAGS="-g -O2"
4449 else
4450 CXXFLAGS="-g"
4451 fi
4452 else
4453 if test "$GXX" = yes; then
4454 CXXFLAGS="-O2"
4455 else
4456 CXXFLAGS=
4457 fi
4458 fi
4459 ac_ext=c
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464
4465 depcc="$CXX" am_compiler_list=
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4468 $as_echo_n "checking dependency style of $depcc... " >&6; }
4469 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4473 # We make a subdir and do the tests there. Otherwise we can end up
4474 # making bogus files that we don't know about and never remove. For
4475 # instance it was reported that on HP-UX the gcc test will end up
4476 # making a dummy file named 'D' -- because '-MD' means "put the output
4477 # in D".
4478 rm -rf conftest.dir
4479 mkdir conftest.dir
4480 # Copy depcomp to subdir because otherwise we won't find it if we're
4481 # using a relative directory.
4482 cp "$am_depcomp" conftest.dir
4483 cd conftest.dir
4484 # We will build objects and dependencies in a subdirectory because
4485 # it helps to detect inapplicable dependency modes. For instance
4486 # both Tru64's cc and ICC support -MD to output dependencies as a
4487 # side effect of compilation, but ICC will put the dependencies in
4488 # the current directory while Tru64 will put them in the object
4489 # directory.
4490 mkdir sub
4491
4492 am_cv_CXX_dependencies_compiler_type=none
4493 if test "$am_compiler_list" = ""; then
4494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4495 fi
4496 am__universal=false
4497 case " $depcc " in #(
4498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4499 esac
4500
4501 for depmode in $am_compiler_list; do
4502 # Setup a source with many dependencies, because some compilers
4503 # like to wrap large dependency lists on column 80 (with \), and
4504 # we should not choose a depcomp mode which is confused by this.
4505 #
4506 # We need to recreate these files for each test, as the compiler may
4507 # overwrite some of them when testing with obscure command lines.
4508 # This happens at least with the AIX C compiler.
4509 : > sub/conftest.c
4510 for i in 1 2 3 4 5 6; do
4511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4512 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4513 # Solaris 10 /bin/sh.
4514 echo '/* dummy */' > sub/conftst$i.h
4515 done
4516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517
4518 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4519 # mode. It turns out that the SunPro C++ compiler does not properly
4520 # handle '-M -o', and we need to detect this. Also, some Intel
4521 # versions had trouble with output in subdirs.
4522 am__obj=sub/conftest.${OBJEXT-o}
4523 am__minus_obj="-o $am__obj"
4524 case $depmode in
4525 gcc)
4526 # This depmode causes a compiler race in universal mode.
4527 test "$am__universal" = false || continue
4528 ;;
4529 nosideeffect)
4530 # After this tag, mechanisms are not by side-effect, so they'll
4531 # only be used when explicitly requested.
4532 if test "x$enable_dependency_tracking" = xyes; then
4533 continue
4534 else
4535 break
4536 fi
4537 ;;
4538 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4539 # This compiler won't grok '-c -o', but also, the minuso test has
4540 # not run yet. These depmodes are late enough in the game, and
4541 # so weak that their functioning should not be impacted.
4542 am__obj=conftest.${OBJEXT-o}
4543 am__minus_obj=
4544 ;;
4545 none) break ;;
4546 esac
4547 if depmode=$depmode \
4548 source=sub/conftest.c object=$am__obj \
4549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4551 >/dev/null 2>conftest.err &&
4552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4556 # icc doesn't choke on unknown options, it will just issue warnings
4557 # or remarks (even with -Werror). So we grep stderr for any message
4558 # that says an option was ignored or not supported.
4559 # When given -MP, icc 7.0 and 7.1 complain thusly:
4560 # icc: Command line warning: ignoring option '-M'; no argument required
4561 # The diagnosis changed in icc 8.0:
4562 # icc: Command line remark: option '-MP' not supported
4563 if (grep 'ignoring option' conftest.err ||
4564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4565 am_cv_CXX_dependencies_compiler_type=$depmode
4566 break
4567 fi
4568 fi
4569 done
4570
4571 cd ..
4572 rm -rf conftest.dir
4573 else
4574 am_cv_CXX_dependencies_compiler_type=none
4575 fi
4576
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4579 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4580 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4581
4582 if
4583 test "x$enable_dependency_tracking" != xno \
4584 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4585 am__fastdepCXX_TRUE=
4586 am__fastdepCXX_FALSE='#'
4587 else
4588 am__fastdepCXX_TRUE='#'
4589 am__fastdepCXX_FALSE=
4590 fi
4591
4592
4593 ac_ext=mm
4594 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4595 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in g++ objc++ objcxx c++ CXX
4600 do
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if ${ac_cv_prog_OBJCXX+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$OBJCXX"; then
4609 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 OBJCXX=$ac_cv_prog_OBJCXX
4629 if test -n "$OBJCXX"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4631 $as_echo "$OBJCXX" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638 test -n "$OBJCXX" && break
4639 done
4640 fi
4641 if test -z "$OBJCXX"; then
4642 ac_ct_OBJCXX=$OBJCXX
4643 for ac_prog in g++ objc++ objcxx c++ CXX
4644 do
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_OBJCXX"; then
4653 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4673 if test -n "$ac_ct_OBJCXX"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4675 $as_echo "$ac_ct_OBJCXX" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681
4682 test -n "$ac_ct_OBJCXX" && break
4683 done
4684
4685 if test "x$ac_ct_OBJCXX" = x; then
4686 OBJCXX="g++"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694 OBJCXX=$ac_ct_OBJCXX
4695 fi
4696 fi
4697
4698 # Provide some information about the compiler.
4699 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4700 set X $ac_compile
4701 ac_compiler=$2
4702 for ac_option in --version -v -V -qversion; do
4703 { { ac_try="$ac_compiler $ac_option >&5"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4711 ac_status=$?
4712 if test -s conftest.err; then
4713 sed '10a\
4714 ... rest of stderr output deleted ...
4715 10q' conftest.err >conftest.er1
4716 cat conftest.er1 >&5
4717 fi
4718 rm -f conftest.er1 conftest.err
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721 done
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4724 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4725 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734 #ifndef __GNUC__
4735 choke me
4736 #endif
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_objcxx_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744 else
4745 ac_compiler_gnu=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4752 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4753 if test $ac_compiler_gnu = yes; then
4754 GOBJCXX=yes
4755 else
4756 GOBJCXX=
4757 fi
4758 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4759 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4761 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4762 if ${ac_cv_prog_objcxx_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4766 ac_objcxx_werror_flag=yes
4767 ac_cv_prog_objcxx_g=no
4768 OBJCXXFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771
4772 int
4773 main ()
4774 {
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_objcxx_try_compile "$LINENO"; then :
4781 ac_cv_prog_objcxx_g=yes
4782 else
4783 OBJCXXFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786
4787 int
4788 main ()
4789 {
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 if ac_fn_objcxx_try_compile "$LINENO"; then :
4796
4797 else
4798 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4799 OBJCXXFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_objcxx_try_compile "$LINENO"; then :
4812 ac_cv_prog_objcxx_g=yes
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4822 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4823 if test "$ac_test_OBJCXXFLAGS" = set; then
4824 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4825 elif test $ac_cv_prog_objcxx_g = yes; then
4826 if test "$GOBJCXX" = yes; then
4827 OBJCXXFLAGS="-g -O2"
4828 else
4829 OBJCXXFLAGS="-g"
4830 fi
4831 else
4832 if test "$GOBJCXX" = yes; then
4833 OBJCXXFLAGS="-O2"
4834 else
4835 OBJCXXFLAGS=
4836 fi
4837 fi
4838 ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4847 $as_echo_n "checking dependency style of $depcc... " >&6; }
4848 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4852 # We make a subdir and do the tests there. Otherwise we can end up
4853 # making bogus files that we don't know about and never remove. For
4854 # instance it was reported that on HP-UX the gcc test will end up
4855 # making a dummy file named 'D' -- because '-MD' means "put the output
4856 # in D".
4857 rm -rf conftest.dir
4858 mkdir conftest.dir
4859 # Copy depcomp to subdir because otherwise we won't find it if we're
4860 # using a relative directory.
4861 cp "$am_depcomp" conftest.dir
4862 cd conftest.dir
4863 # We will build objects and dependencies in a subdirectory because
4864 # it helps to detect inapplicable dependency modes. For instance
4865 # both Tru64's cc and ICC support -MD to output dependencies as a
4866 # side effect of compilation, but ICC will put the dependencies in
4867 # the current directory while Tru64 will put them in the object
4868 # directory.
4869 mkdir sub
4870
4871 am_cv_OBJCXX_dependencies_compiler_type=none
4872 if test "$am_compiler_list" = ""; then
4873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4874 fi
4875 am__universal=false
4876
4877
4878 for depmode in $am_compiler_list; do
4879 # Setup a source with many dependencies, because some compilers
4880 # like to wrap large dependency lists on column 80 (with \), and
4881 # we should not choose a depcomp mode which is confused by this.
4882 #
4883 # We need to recreate these files for each test, as the compiler may
4884 # overwrite some of them when testing with obscure command lines.
4885 # This happens at least with the AIX C compiler.
4886 : > sub/conftest.c
4887 for i in 1 2 3 4 5 6; do
4888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4889 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4890 # Solaris 10 /bin/sh.
4891 echo '/* dummy */' > sub/conftst$i.h
4892 done
4893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4894
4895 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4896 # mode. It turns out that the SunPro C++ compiler does not properly
4897 # handle '-M -o', and we need to detect this. Also, some Intel
4898 # versions had trouble with output in subdirs.
4899 am__obj=sub/conftest.${OBJEXT-o}
4900 am__minus_obj="-o $am__obj"
4901 case $depmode in
4902 gcc)
4903 # This depmode causes a compiler race in universal mode.
4904 test "$am__universal" = false || continue
4905 ;;
4906 nosideeffect)
4907 # After this tag, mechanisms are not by side-effect, so they'll
4908 # only be used when explicitly requested.
4909 if test "x$enable_dependency_tracking" = xyes; then
4910 continue
4911 else
4912 break
4913 fi
4914 ;;
4915 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4916 # This compiler won't grok '-c -o', but also, the minuso test has
4917 # not run yet. These depmodes are late enough in the game, and
4918 # so weak that their functioning should not be impacted.
4919 am__obj=conftest.${OBJEXT-o}
4920 am__minus_obj=
4921 ;;
4922 none) break ;;
4923 esac
4924 if depmode=$depmode \
4925 source=sub/conftest.c object=$am__obj \
4926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4928 >/dev/null 2>conftest.err &&
4929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4933 # icc doesn't choke on unknown options, it will just issue warnings
4934 # or remarks (even with -Werror). So we grep stderr for any message
4935 # that says an option was ignored or not supported.
4936 # When given -MP, icc 7.0 and 7.1 complain thusly:
4937 # icc: Command line warning: ignoring option '-M'; no argument required
4938 # The diagnosis changed in icc 8.0:
4939 # icc: Command line remark: option '-MP' not supported
4940 if (grep 'ignoring option' conftest.err ||
4941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4942 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4943 break
4944 fi
4945 fi
4946 done
4947
4948 cd ..
4949 rm -rf conftest.dir
4950 else
4951 am_cv_OBJCXX_dependencies_compiler_type=none
4952 fi
4953
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4956 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4957 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4958
4959 if
4960 test "x$enable_dependency_tracking" != xno \
4961 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4962 am__fastdepOBJCXX_TRUE=
4963 am__fastdepOBJCXX_FALSE='#'
4964 else
4965 am__fastdepOBJCXX_TRUE='#'
4966 am__fastdepOBJCXX_FALSE=
4967 fi
4968
4969
4970
4971
4972 if test -n "$ac_tool_prefix"; then
4973 for ac_prog in ar lib "link -lib"
4974 do
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_AR+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$AR"; then
4983 ac_cv_prog_AR="$AR" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996 done
4997 done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 AR=$ac_cv_prog_AR
5003 if test -n "$AR"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5005 $as_echo "$AR" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011
5012 test -n "$AR" && break
5013 done
5014 fi
5015 if test -z "$AR"; then
5016 ac_ct_AR=$AR
5017 for ac_prog in ar lib "link -lib"
5018 do
5019 # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$ac_ct_AR"; then
5027 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_AR="$ac_prog"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5047 if test -n "$ac_ct_AR"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5049 $as_echo "$ac_ct_AR" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056 test -n "$ac_ct_AR" && break
5057 done
5058
5059 if test "x$ac_ct_AR" = x; then
5060 AR="false"
5061 else
5062 case $cross_compiling:$ac_tool_warned in
5063 yes:)
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066 ac_tool_warned=yes ;;
5067 esac
5068 AR=$ac_ct_AR
5069 fi
5070 fi
5071
5072 : ${AR=ar}
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5075 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5076 if ${am_cv_ar_interface+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085 am_cv_ar_interface=ar
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 int some_variable = 0;
5089 _ACEOF
5090 if ac_fn_c_try_compile "$LINENO"; then :
5091 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5093 (eval $am_ar_try) 2>&5
5094 ac_status=$?
5095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096 test $ac_status = 0; }
5097 if test "$ac_status" -eq 0; then
5098 am_cv_ar_interface=ar
5099 else
5100 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5102 (eval $am_ar_try) 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }
5106 if test "$ac_status" -eq 0; then
5107 am_cv_ar_interface=lib
5108 else
5109 am_cv_ar_interface=unknown
5110 fi
5111 fi
5112 rm -f conftest.lib libconftest.a
5113
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_ext=c
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5124 $as_echo "$am_cv_ar_interface" >&6; }
5125
5126 case $am_cv_ar_interface in
5127 ar)
5128 ;;
5129 lib)
5130 # Microsoft lib, so override with the ar-lib wrapper script.
5131 # FIXME: It is wrong to rewrite AR.
5132 # But if we don't then we get into trouble of one sort or another.
5133 # A longer-term fix would be to have automake use am__AR in this case,
5134 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5135 # similar.
5136 AR="$am_aux_dir/ar-lib $AR"
5137 ;;
5138 unknown)
5139 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5140 ;;
5141 esac
5142
5143
5144
5145 case `pwd` in
5146 *\ * | *\ *)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5148 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5149 esac
5150
5151
5152
5153 macro_version='2.4.6'
5154 macro_revision='2.4.6'
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 ltmain=$ac_aux_dir/ltmain.sh
5169
5170 # Make sure we can run config.sub.
5171 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5172 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5175 $as_echo_n "checking build system type... " >&6; }
5176 if ${ac_cv_build+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 ac_build_alias=$build_alias
5180 test "x$ac_build_alias" = x &&
5181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5182 test "x$ac_build_alias" = x &&
5183 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5184 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5186
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5189 $as_echo "$ac_cv_build" >&6; }
5190 case $ac_cv_build in
5191 *-*-*) ;;
5192 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5193 esac
5194 build=$ac_cv_build
5195 ac_save_IFS=$IFS; IFS='-'
5196 set x $ac_cv_build
5197 shift
5198 build_cpu=$1
5199 build_vendor=$2
5200 shift; shift
5201 # Remember, the first character of IFS is used to create $*,
5202 # except with old shells:
5203 build_os=$*
5204 IFS=$ac_save_IFS
5205 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5206
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5209 $as_echo_n "checking host system type... " >&6; }
5210 if ${ac_cv_host+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test "x$host_alias" = x; then
5214 ac_cv_host=$ac_cv_build
5215 else
5216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5217 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5218 fi
5219
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5222 $as_echo "$ac_cv_host" >&6; }
5223 case $ac_cv_host in
5224 *-*-*) ;;
5225 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5226 esac
5227 host=$ac_cv_host
5228 ac_save_IFS=$IFS; IFS='-'
5229 set x $ac_cv_host
5230 shift
5231 host_cpu=$1
5232 host_vendor=$2
5233 shift; shift
5234 # Remember, the first character of IFS is used to create $*,
5235 # except with old shells:
5236 host_os=$*
5237 IFS=$ac_save_IFS
5238 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5239
5240
5241 # Backslashify metacharacters that are still active within
5242 # double-quoted strings.
5243 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5244
5245 # Same as above, but do not quote variable references.
5246 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5247
5248 # Sed substitution to delay expansion of an escaped shell variable in a
5249 # double_quote_subst'ed string.
5250 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5251
5252 # Sed substitution to delay expansion of an escaped single quote.
5253 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5254
5255 # Sed substitution to avoid accidental globbing in evaled expressions
5256 no_glob_subst='s/\*/\\\*/g'
5257
5258 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5259 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5260 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5263 $as_echo_n "checking how to print strings... " >&6; }
5264 # Test print first, because it will be a builtin if present.
5265 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5266 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5267 ECHO='print -r --'
5268 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5269 ECHO='printf %s\n'
5270 else
5271 # Use this function as a fallback that always works.
5272 func_fallback_echo ()
5273 {
5274 eval 'cat <<_LTECHO_EOF
5275 $1
5276 _LTECHO_EOF'
5277 }
5278 ECHO='func_fallback_echo'
5279 fi
5280
5281 # func_echo_all arg...
5282 # Invoke $ECHO with all args, space-separated.
5283 func_echo_all ()
5284 {
5285 $ECHO ""
5286 }
5287
5288 case $ECHO in
5289 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5290 $as_echo "printf" >&6; } ;;
5291 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5292 $as_echo "print -r" >&6; } ;;
5293 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5294 $as_echo "cat" >&6; } ;;
5295 esac
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5311 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5312 if ${ac_cv_path_SED+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5316 for ac_i in 1 2 3 4 5 6 7; do
5317 ac_script="$ac_script$as_nl$ac_script"
5318 done
5319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5320 { ac_script=; unset ac_script;}
5321 if test -z "$SED"; then
5322 ac_path_SED_found=false
5323 # Loop through the user's path and test for each of PROGNAME-LIST
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_prog in sed gsed; do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5332 as_fn_executable_p "$ac_path_SED" || continue
5333 # Check for GNU ac_path_SED and select it if it is found.
5334 # Check for GNU $ac_path_SED
5335 case `"$ac_path_SED" --version 2>&1` in
5336 *GNU*)
5337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5338 *)
5339 ac_count=0
5340 $as_echo_n 0123456789 >"conftest.in"
5341 while :
5342 do
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 $as_echo '' >> "conftest.nl"
5347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 as_fn_arith $ac_count + 1 && ac_count=$as_val
5350 if test $ac_count -gt ${ac_path_SED_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_SED="$ac_path_SED"
5353 ac_path_SED_max=$ac_count
5354 fi
5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5357 done
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359 esac
5360
5361 $ac_path_SED_found && break 3
5362 done
5363 done
5364 done
5365 IFS=$as_save_IFS
5366 if test -z "$ac_cv_path_SED"; then
5367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5368 fi
5369 else
5370 ac_cv_path_SED=$SED
5371 fi
5372
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5375 $as_echo "$ac_cv_path_SED" >&6; }
5376 SED="$ac_cv_path_SED"
5377 rm -f conftest.sed
5378
5379 test -z "$SED" && SED=sed
5380 Xsed="$SED -e 1s/^X//"
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5394 if ${ac_cv_path_GREP+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -z "$GREP"; then
5398 ac_path_GREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_prog in grep ggrep; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5408 as_fn_executable_p "$ac_path_GREP" || continue
5409 # Check for GNU ac_path_GREP and select it if it is found.
5410 # Check for GNU $ac_path_GREP
5411 case `"$ac_path_GREP" --version 2>&1` in
5412 *GNU*)
5413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5414 *)
5415 ac_count=0
5416 $as_echo_n 0123456789 >"conftest.in"
5417 while :
5418 do
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'GREP' >> "conftest.nl"
5423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425 as_fn_arith $ac_count + 1 && ac_count=$as_val
5426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_GREP="$ac_path_GREP"
5429 ac_path_GREP_max=$ac_count
5430 fi
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5433 done
5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5435 esac
5436
5437 $ac_path_GREP_found && break 3
5438 done
5439 done
5440 done
5441 IFS=$as_save_IFS
5442 if test -z "$ac_cv_path_GREP"; then
5443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444 fi
5445 else
5446 ac_cv_path_GREP=$GREP
5447 fi
5448
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5451 $as_echo "$ac_cv_path_GREP" >&6; }
5452 GREP="$ac_cv_path_GREP"
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5456 $as_echo_n "checking for egrep... " >&6; }
5457 if ${ac_cv_path_EGREP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5461 then ac_cv_path_EGREP="$GREP -E"
5462 else
5463 if test -z "$EGREP"; then
5464 ac_path_EGREP_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_prog in egrep; do
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5474 as_fn_executable_p "$ac_path_EGREP" || continue
5475 # Check for GNU ac_path_EGREP and select it if it is found.
5476 # Check for GNU $ac_path_EGREP
5477 case `"$ac_path_EGREP" --version 2>&1` in
5478 *GNU*)
5479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5480 *)
5481 ac_count=0
5482 $as_echo_n 0123456789 >"conftest.in"
5483 while :
5484 do
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'EGREP' >> "conftest.nl"
5489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491 as_fn_arith $ac_count + 1 && ac_count=$as_val
5492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_EGREP="$ac_path_EGREP"
5495 ac_path_EGREP_max=$ac_count
5496 fi
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5499 done
5500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5502
5503 $ac_path_EGREP_found && break 3
5504 done
5505 done
5506 done
5507 IFS=$as_save_IFS
5508 if test -z "$ac_cv_path_EGREP"; then
5509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5510 fi
5511 else
5512 ac_cv_path_EGREP=$EGREP
5513 fi
5514
5515 fi
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5518 $as_echo "$ac_cv_path_EGREP" >&6; }
5519 EGREP="$ac_cv_path_EGREP"
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5523 $as_echo_n "checking for fgrep... " >&6; }
5524 if ${ac_cv_path_FGREP+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5528 then ac_cv_path_FGREP="$GREP -F"
5529 else
5530 if test -z "$FGREP"; then
5531 ac_path_FGREP_found=false
5532 # Loop through the user's path and test for each of PROGNAME-LIST
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_prog in fgrep; do
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5541 as_fn_executable_p "$ac_path_FGREP" || continue
5542 # Check for GNU ac_path_FGREP and select it if it is found.
5543 # Check for GNU $ac_path_FGREP
5544 case `"$ac_path_FGREP" --version 2>&1` in
5545 *GNU*)
5546 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5547 *)
5548 ac_count=0
5549 $as_echo_n 0123456789 >"conftest.in"
5550 while :
5551 do
5552 cat "conftest.in" "conftest.in" >"conftest.tmp"
5553 mv "conftest.tmp" "conftest.in"
5554 cp "conftest.in" "conftest.nl"
5555 $as_echo 'FGREP' >> "conftest.nl"
5556 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558 as_fn_arith $ac_count + 1 && ac_count=$as_val
5559 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5560 # Best one so far, save it but keep looking for a better one
5561 ac_cv_path_FGREP="$ac_path_FGREP"
5562 ac_path_FGREP_max=$ac_count
5563 fi
5564 # 10*(2^10) chars as input seems more than enough
5565 test $ac_count -gt 10 && break
5566 done
5567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568 esac
5569
5570 $ac_path_FGREP_found && break 3
5571 done
5572 done
5573 done
5574 IFS=$as_save_IFS
5575 if test -z "$ac_cv_path_FGREP"; then
5576 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5577 fi
5578 else
5579 ac_cv_path_FGREP=$FGREP
5580 fi
5581
5582 fi
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5585 $as_echo "$ac_cv_path_FGREP" >&6; }
5586 FGREP="$ac_cv_path_FGREP"
5587
5588
5589 test -z "$GREP" && GREP=grep
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 # Check whether --with-gnu-ld was given.
5610 if test "${with_gnu_ld+set}" = set; then :
5611 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5612 else
5613 with_gnu_ld=no
5614 fi
5615
5616 ac_prog=ld
5617 if test yes = "$GCC"; then
5618 # Check if gcc -print-prog-name=ld gives a path.
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5620 $as_echo_n "checking for ld used by $CC... " >&6; }
5621 case $host in
5622 *-*-mingw*)
5623 # gcc leaves a trailing carriage return, which upsets mingw
5624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5625 *)
5626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5627 esac
5628 case $ac_prog in
5629 # Accept absolute paths.
5630 [\\/]* | ?:[\\/]*)
5631 re_direlt='/[^/][^/]*/\.\./'
5632 # Canonicalize the pathname of ld
5633 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5634 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5635 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5636 done
5637 test -z "$LD" && LD=$ac_prog
5638 ;;
5639 "")
5640 # If it fails, then pretend we aren't using GCC.
5641 ac_prog=ld
5642 ;;
5643 *)
5644 # If it is relative, then search for the first ld in PATH.
5645 with_gnu_ld=unknown
5646 ;;
5647 esac
5648 elif test yes = "$with_gnu_ld"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5650 $as_echo_n "checking for GNU ld... " >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5653 $as_echo_n "checking for non-GNU ld... " >&6; }
5654 fi
5655 if ${lt_cv_path_LD+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -z "$LD"; then
5659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5660 for ac_dir in $PATH; do
5661 IFS=$lt_save_ifs
5662 test -z "$ac_dir" && ac_dir=.
5663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5664 lt_cv_path_LD=$ac_dir/$ac_prog
5665 # Check to see if the program is GNU ld. I'd rather use --version,
5666 # but apparently some variants of GNU ld only accept -v.
5667 # Break only if it was the GNU/non-GNU ld that we prefer.
5668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5669 *GNU* | *'with BFD'*)
5670 test no != "$with_gnu_ld" && break
5671 ;;
5672 *)
5673 test yes != "$with_gnu_ld" && break
5674 ;;
5675 esac
5676 fi
5677 done
5678 IFS=$lt_save_ifs
5679 else
5680 lt_cv_path_LD=$LD # Let the user override the test with a path.
5681 fi
5682 fi
5683
5684 LD=$lt_cv_path_LD
5685 if test -n "$LD"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5687 $as_echo "$LD" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5694 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5695 if ${lt_cv_prog_gnu_ld+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5699 case `$LD -v 2>&1 </dev/null` in
5700 *GNU* | *'with BFD'*)
5701 lt_cv_prog_gnu_ld=yes
5702 ;;
5703 *)
5704 lt_cv_prog_gnu_ld=no
5705 ;;
5706 esac
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5709 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5710 with_gnu_ld=$lt_cv_prog_gnu_ld
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5721 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5722 if ${lt_cv_path_NM+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$NM"; then
5726 # Let the user override the test.
5727 lt_cv_path_NM=$NM
5728 else
5729 lt_nm_to_check=${ac_tool_prefix}nm
5730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5731 lt_nm_to_check="$lt_nm_to_check nm"
5732 fi
5733 for lt_tmp_nm in $lt_nm_to_check; do
5734 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5736 IFS=$lt_save_ifs
5737 test -z "$ac_dir" && ac_dir=.
5738 tmp_nm=$ac_dir/$lt_tmp_nm
5739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5740 # Check to see if the nm accepts a BSD-compat flag.
5741 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5742 # nm: unknown option "B" ignored
5743 # Tru64's nm complains that /dev/null is an invalid object file
5744 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5745 case $build_os in
5746 mingw*) lt_bad_file=conftest.nm/nofile ;;
5747 *) lt_bad_file=/dev/null ;;
5748 esac
5749 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5750 *$lt_bad_file* | *'Invalid file or object type'*)
5751 lt_cv_path_NM="$tmp_nm -B"
5752 break 2
5753 ;;
5754 *)
5755 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5756 */dev/null*)
5757 lt_cv_path_NM="$tmp_nm -p"
5758 break 2
5759 ;;
5760 *)
5761 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5762 continue # so that we can try to find one that supports BSD flags
5763 ;;
5764 esac
5765 ;;
5766 esac
5767 fi
5768 done
5769 IFS=$lt_save_ifs
5770 done
5771 : ${lt_cv_path_NM=no}
5772 fi
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5775 $as_echo "$lt_cv_path_NM" >&6; }
5776 if test no != "$lt_cv_path_NM"; then
5777 NM=$lt_cv_path_NM
5778 else
5779 # Didn't find any BSD compatible name lister, look for dumpbin.
5780 if test -n "$DUMPBIN"; then :
5781 # Let the user override the test.
5782 else
5783 if test -n "$ac_tool_prefix"; then
5784 for ac_prog in dumpbin "link -dump"
5785 do
5786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_DUMPBIN+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$DUMPBIN"; then
5794 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 DUMPBIN=$ac_cv_prog_DUMPBIN
5814 if test -n "$DUMPBIN"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5816 $as_echo "$DUMPBIN" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 test -n "$DUMPBIN" && break
5824 done
5825 fi
5826 if test -z "$DUMPBIN"; then
5827 ac_ct_DUMPBIN=$DUMPBIN
5828 for ac_prog in dumpbin "link -dump"
5829 do
5830 # Extract the first word of "$ac_prog", so it can be a program name with args.
5831 set dummy $ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if test -n "$ac_ct_DUMPBIN"; then
5838 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5858 if test -n "$ac_ct_DUMPBIN"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5860 $as_echo "$ac_ct_DUMPBIN" >&6; }
5861 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866
5867 test -n "$ac_ct_DUMPBIN" && break
5868 done
5869
5870 if test "x$ac_ct_DUMPBIN" = x; then
5871 DUMPBIN=":"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5878 esac
5879 DUMPBIN=$ac_ct_DUMPBIN
5880 fi
5881 fi
5882
5883 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5884 *COFF*)
5885 DUMPBIN="$DUMPBIN -symbols -headers"
5886 ;;
5887 *)
5888 DUMPBIN=:
5889 ;;
5890 esac
5891 fi
5892
5893 if test : != "$DUMPBIN"; then
5894 NM=$DUMPBIN
5895 fi
5896 fi
5897 test -z "$NM" && NM=nm
5898
5899
5900
5901
5902
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5905 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5906 if ${lt_cv_nm_interface+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 lt_cv_nm_interface="BSD nm"
5910 echo "int some_variable = 0;" > conftest.$ac_ext
5911 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5912 (eval "$ac_compile" 2>conftest.err)
5913 cat conftest.err >&5
5914 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5915 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5916 cat conftest.err >&5
5917 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5918 cat conftest.out >&5
5919 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5920 lt_cv_nm_interface="MS dumpbin"
5921 fi
5922 rm -rf conftest*
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5925 $as_echo "$lt_cv_nm_interface" >&6; }
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5928 $as_echo_n "checking whether ln -s works... " >&6; }
5929 LN_S=$as_ln_s
5930 if test "$LN_S" = "ln -s"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5932 $as_echo "yes" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5935 $as_echo "no, using $LN_S" >&6; }
5936 fi
5937
5938 # find the maximum length of command line arguments
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5940 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5941 if ${lt_cv_sys_max_cmd_len+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 i=0
5945 teststring=ABCD
5946
5947 case $build_os in
5948 msdosdjgpp*)
5949 # On DJGPP, this test can blow up pretty badly due to problems in libc
5950 # (any single argument exceeding 2000 bytes causes a buffer overrun
5951 # during glob expansion). Even if it were fixed, the result of this
5952 # check would be larger than it should be.
5953 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5954 ;;
5955
5956 gnu*)
5957 # Under GNU Hurd, this test is not required because there is
5958 # no limit to the length of command line arguments.
5959 # Libtool will interpret -1 as no limit whatsoever
5960 lt_cv_sys_max_cmd_len=-1;
5961 ;;
5962
5963 cygwin* | mingw* | cegcc*)
5964 # On Win9x/ME, this test blows up -- it succeeds, but takes
5965 # about 5 minutes as the teststring grows exponentially.
5966 # Worse, since 9x/ME are not pre-emptively multitasking,
5967 # you end up with a "frozen" computer, even though with patience
5968 # the test eventually succeeds (with a max line length of 256k).
5969 # Instead, let's just punt: use the minimum linelength reported by
5970 # all of the supported platforms: 8192 (on NT/2K/XP).
5971 lt_cv_sys_max_cmd_len=8192;
5972 ;;
5973
5974 mint*)
5975 # On MiNT this can take a long time and run out of memory.
5976 lt_cv_sys_max_cmd_len=8192;
5977 ;;
5978
5979 amigaos*)
5980 # On AmigaOS with pdksh, this test takes hours, literally.
5981 # So we just punt and use a minimum line length of 8192.
5982 lt_cv_sys_max_cmd_len=8192;
5983 ;;
5984
5985 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5986 # This has been around since 386BSD, at least. Likely further.
5987 if test -x /sbin/sysctl; then
5988 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5989 elif test -x /usr/sbin/sysctl; then
5990 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5991 else
5992 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5993 fi
5994 # And add a safety zone
5995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5997 ;;
5998
5999 interix*)
6000 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6001 lt_cv_sys_max_cmd_len=196608
6002 ;;
6003
6004 os2*)
6005 # The test takes a long time on OS/2.
6006 lt_cv_sys_max_cmd_len=8192
6007 ;;
6008
6009 osf*)
6010 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6011 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6012 # nice to cause kernel panics so lets avoid the loop below.
6013 # First set a reasonable default.
6014 lt_cv_sys_max_cmd_len=16384
6015 #
6016 if test -x /sbin/sysconfig; then
6017 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6018 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6019 esac
6020 fi
6021 ;;
6022 sco3.2v5*)
6023 lt_cv_sys_max_cmd_len=102400
6024 ;;
6025 sysv5* | sco5v6* | sysv4.2uw2*)
6026 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6027 if test -n "$kargmax"; then
6028 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6029 else
6030 lt_cv_sys_max_cmd_len=32768
6031 fi
6032 ;;
6033 *)
6034 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6035 if test -n "$lt_cv_sys_max_cmd_len" && \
6036 test undefined != "$lt_cv_sys_max_cmd_len"; then
6037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6039 else
6040 # Make teststring a little bigger before we do anything with it.
6041 # a 1K string should be a reasonable start.
6042 for i in 1 2 3 4 5 6 7 8; do
6043 teststring=$teststring$teststring
6044 done
6045 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6046 # If test is not a shell built-in, we'll probably end up computing a
6047 # maximum length that is only half of the actual maximum length, but
6048 # we can't tell.
6049 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6050 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6051 test 17 != "$i" # 1/2 MB should be enough
6052 do
6053 i=`expr $i + 1`
6054 teststring=$teststring$teststring
6055 done
6056 # Only check the string length outside the loop.
6057 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6058 teststring=
6059 # Add a significant safety factor because C++ compilers can tack on
6060 # massive amounts of additional arguments before passing them to the
6061 # linker. It appears as though 1/2 is a usable value.
6062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6063 fi
6064 ;;
6065 esac
6066
6067 fi
6068
6069 if test -n "$lt_cv_sys_max_cmd_len"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6071 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6074 $as_echo "none" >&6; }
6075 fi
6076 max_cmd_len=$lt_cv_sys_max_cmd_len
6077
6078
6079
6080
6081
6082
6083 : ${CP="cp -f"}
6084 : ${MV="mv -f"}
6085 : ${RM="rm -f"}
6086
6087 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6088 lt_unset=unset
6089 else
6090 lt_unset=false
6091 fi
6092
6093
6094
6095
6096
6097 # test EBCDIC or ASCII
6098 case `echo X|tr X '\101'` in
6099 A) # ASCII based system
6100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6101 lt_SP2NL='tr \040 \012'
6102 lt_NL2SP='tr \015\012 \040\040'
6103 ;;
6104 *) # EBCDIC based system
6105 lt_SP2NL='tr \100 \n'
6106 lt_NL2SP='tr \r\n \100\100'
6107 ;;
6108 esac
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6119 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6120 if ${lt_cv_to_host_file_cmd+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 case $host in
6124 *-*-mingw* )
6125 case $build in
6126 *-*-mingw* ) # actually msys
6127 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6128 ;;
6129 *-*-cygwin* )
6130 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6131 ;;
6132 * ) # otherwise, assume *nix
6133 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6134 ;;
6135 esac
6136 ;;
6137 *-*-cygwin* )
6138 case $build in
6139 *-*-mingw* ) # actually msys
6140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6141 ;;
6142 *-*-cygwin* )
6143 lt_cv_to_host_file_cmd=func_convert_file_noop
6144 ;;
6145 * ) # otherwise, assume *nix
6146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6147 ;;
6148 esac
6149 ;;
6150 * ) # unhandled hosts (and "normal" native builds)
6151 lt_cv_to_host_file_cmd=func_convert_file_noop
6152 ;;
6153 esac
6154
6155 fi
6156
6157 to_host_file_cmd=$lt_cv_to_host_file_cmd
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6159 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6160
6161
6162
6163
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6166 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6167 if ${lt_cv_to_tool_file_cmd+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 #assume ordinary cross tools, or native build.
6171 lt_cv_to_tool_file_cmd=func_convert_file_noop
6172 case $host in
6173 *-*-mingw* )
6174 case $build in
6175 *-*-mingw* ) # actually msys
6176 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6177 ;;
6178 esac
6179 ;;
6180 esac
6181
6182 fi
6183
6184 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6186 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6187
6188
6189
6190
6191
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6193 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6194 if ${lt_cv_ld_reload_flag+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 lt_cv_ld_reload_flag='-r'
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6200 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6201 reload_flag=$lt_cv_ld_reload_flag
6202 case $reload_flag in
6203 "" | " "*) ;;
6204 *) reload_flag=" $reload_flag" ;;
6205 esac
6206 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6207 case $host_os in
6208 cygwin* | mingw* | pw32* | cegcc*)
6209 if test yes != "$GCC"; then
6210 reload_cmds=false
6211 fi
6212 ;;
6213 darwin*)
6214 if test yes = "$GCC"; then
6215 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6216 else
6217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6218 fi
6219 ;;
6220 esac
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_OBJDUMP+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$OBJDUMP"; then
6239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 OBJDUMP=$ac_cv_prog_OBJDUMP
6259 if test -n "$OBJDUMP"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6261 $as_echo "$OBJDUMP" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 fi
6269 if test -z "$ac_cv_prog_OBJDUMP"; then
6270 ac_ct_OBJDUMP=$OBJDUMP
6271 # Extract the first word of "objdump", so it can be a program name with args.
6272 set dummy objdump; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$ac_ct_OBJDUMP"; then
6279 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6299 if test -n "$ac_ct_OBJDUMP"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6301 $as_echo "$ac_ct_OBJDUMP" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307 if test "x$ac_ct_OBJDUMP" = x; then
6308 OBJDUMP="false"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311 yes:)
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314 ac_tool_warned=yes ;;
6315 esac
6316 OBJDUMP=$ac_ct_OBJDUMP
6317 fi
6318 else
6319 OBJDUMP="$ac_cv_prog_OBJDUMP"
6320 fi
6321
6322 test -z "$OBJDUMP" && OBJDUMP=objdump
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6333 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6334 if ${lt_cv_deplibs_check_method+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 lt_cv_file_magic_cmd='$MAGIC_CMD'
6338 lt_cv_file_magic_test_file=
6339 lt_cv_deplibs_check_method='unknown'
6340 # Need to set the preceding variable on all platforms that support
6341 # interlibrary dependencies.
6342 # 'none' -- dependencies not supported.
6343 # 'unknown' -- same as none, but documents that we really don't know.
6344 # 'pass_all' -- all dependencies passed with no checks.
6345 # 'test_compile' -- check by making test program.
6346 # 'file_magic [[regex]]' -- check by looking for files in library path
6347 # that responds to the $file_magic_cmd with a given extended regex.
6348 # If you have 'file' or equivalent on your system and you're not sure
6349 # whether 'pass_all' will *always* work, you probably want this one.
6350
6351 case $host_os in
6352 aix[4-9]*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356 beos*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359
6360 bsdi[45]*)
6361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6362 lt_cv_file_magic_cmd='/usr/bin/file -L'
6363 lt_cv_file_magic_test_file=/shlib/libc.so
6364 ;;
6365
6366 cygwin*)
6367 # func_win32_libid is a shell function defined in ltmain.sh
6368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6369 lt_cv_file_magic_cmd='func_win32_libid'
6370 ;;
6371
6372 mingw* | pw32*)
6373 # Base MSYS/MinGW do not provide the 'file' command needed by
6374 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6375 # unless we find 'file', for example because we are cross-compiling.
6376 if ( file / ) >/dev/null 2>&1; then
6377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6378 lt_cv_file_magic_cmd='func_win32_libid'
6379 else
6380 # Keep this pattern in sync with the one in func_win32_libid.
6381 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6382 lt_cv_file_magic_cmd='$OBJDUMP -f'
6383 fi
6384 ;;
6385
6386 cegcc*)
6387 # use the weaker test based on 'objdump'. See mingw*.
6388 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6389 lt_cv_file_magic_cmd='$OBJDUMP -f'
6390 ;;
6391
6392 darwin* | rhapsody*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 freebsd* | dragonfly*)
6397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6398 case $host_cpu in
6399 i*86 )
6400 # Not sure whether the presence of OpenBSD here was a mistake.
6401 # Let's accept both of them until this is cleared up.
6402 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6403 lt_cv_file_magic_cmd=/usr/bin/file
6404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6405 ;;
6406 esac
6407 else
6408 lt_cv_deplibs_check_method=pass_all
6409 fi
6410 ;;
6411
6412 haiku*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416 hpux10.20* | hpux11*)
6417 lt_cv_file_magic_cmd=/usr/bin/file
6418 case $host_cpu in
6419 ia64*)
6420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6421 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6422 ;;
6423 hppa*64*)
6424 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]'
6425 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6426 ;;
6427 *)
6428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6429 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6430 ;;
6431 esac
6432 ;;
6433
6434 interix[3-9]*)
6435 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6437 ;;
6438
6439 irix5* | irix6* | nonstopux*)
6440 case $LD in
6441 *-32|*"-32 ") libmagic=32-bit;;
6442 *-n32|*"-n32 ") libmagic=N32;;
6443 *-64|*"-64 ") libmagic=64-bit;;
6444 *) libmagic=never-match;;
6445 esac
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448
6449 # This must be glibc/ELF.
6450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453
6454 netbsd*)
6455 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6457 else
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6459 fi
6460 ;;
6461
6462 newos6*)
6463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6464 lt_cv_file_magic_cmd=/usr/bin/file
6465 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6466 ;;
6467
6468 *nto* | *qnx*)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
6471
6472 openbsd* | bitrig*)
6473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6475 else
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6477 fi
6478 ;;
6479
6480 osf3* | osf4* | osf5*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484 rdos*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 solaris*)
6489 lt_cv_deplibs_check_method=pass_all
6490 ;;
6491
6492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 sysv4 | sysv4.3*)
6497 case $host_vendor in
6498 motorola)
6499 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]'
6500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6501 ;;
6502 ncr)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505 sequent)
6506 lt_cv_file_magic_cmd='/bin/file'
6507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6508 ;;
6509 sni)
6510 lt_cv_file_magic_cmd='/bin/file'
6511 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6512 lt_cv_file_magic_test_file=/lib/libc.so
6513 ;;
6514 siemens)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517 pc)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520 esac
6521 ;;
6522
6523 tpf*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526 os2*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529 esac
6530
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6533 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6534
6535 file_magic_glob=
6536 want_nocaseglob=no
6537 if test "$build" = "$host"; then
6538 case $host_os in
6539 mingw* | pw32*)
6540 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6541 want_nocaseglob=yes
6542 else
6543 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6544 fi
6545 ;;
6546 esac
6547 fi
6548
6549 file_magic_cmd=$lt_cv_file_magic_cmd
6550 deplibs_check_method=$lt_cv_deplibs_check_method
6551 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_DLLTOOL+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$DLLTOOL"; then
6583 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 DLLTOOL=$ac_cv_prog_DLLTOOL
6603 if test -n "$DLLTOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6605 $as_echo "$DLLTOOL" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611
6612 fi
6613 if test -z "$ac_cv_prog_DLLTOOL"; then
6614 ac_ct_DLLTOOL=$DLLTOOL
6615 # Extract the first word of "dlltool", so it can be a program name with args.
6616 set dummy dlltool; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 if test -n "$ac_ct_DLLTOOL"; then
6623 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6643 if test -n "$ac_ct_DLLTOOL"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6645 $as_echo "$ac_ct_DLLTOOL" >&6; }
6646 else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651 if test "x$ac_ct_DLLTOOL" = x; then
6652 DLLTOOL="false"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655 yes:)
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 DLLTOOL=$ac_ct_DLLTOOL
6661 fi
6662 else
6663 DLLTOOL="$ac_cv_prog_DLLTOOL"
6664 fi
6665
6666 test -z "$DLLTOOL" && DLLTOOL=dlltool
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6678 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6679 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 lt_cv_sharedlib_from_linklib_cmd='unknown'
6683
6684 case $host_os in
6685 cygwin* | mingw* | pw32* | cegcc*)
6686 # two different shell functions defined in ltmain.sh;
6687 # decide which one to use based on capabilities of $DLLTOOL
6688 case `$DLLTOOL --help 2>&1` in
6689 *--identify-strict*)
6690 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6691 ;;
6692 *)
6693 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6694 ;;
6695 esac
6696 ;;
6697 *)
6698 # fallback: assume linklib IS sharedlib
6699 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6700 ;;
6701 esac
6702
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6705 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6706 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6707 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6708
6709
6710
6711
6712
6713
6714
6715 if test -n "$ac_tool_prefix"; then
6716 for ac_prog in ar
6717 do
6718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_AR+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$AR"; then
6726 ac_cv_prog_AR="$AR" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 AR=$ac_cv_prog_AR
6746 if test -n "$AR"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6748 $as_echo "$AR" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754
6755 test -n "$AR" && break
6756 done
6757 fi
6758 if test -z "$AR"; then
6759 ac_ct_AR=$AR
6760 for ac_prog in ar
6761 do
6762 # Extract the first word of "$ac_prog", so it can be a program name with args.
6763 set dummy $ac_prog; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_AR"; then
6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_AR="$ac_prog"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790 if test -n "$ac_ct_AR"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792 $as_echo "$ac_ct_AR" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 test -n "$ac_ct_AR" && break
6800 done
6801
6802 if test "x$ac_ct_AR" = x; then
6803 AR="false"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 AR=$ac_ct_AR
6812 fi
6813 fi
6814
6815 : ${AR=ar}
6816 : ${AR_FLAGS=cru}
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6829 $as_echo_n "checking for archiver @FILE support... " >&6; }
6830 if ${lt_cv_ar_at_file+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 lt_cv_ar_at_file=no
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836
6837 int
6838 main ()
6839 {
6840
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 echo conftest.$ac_objext > conftest.lst
6847 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849 (eval $lt_ar_try) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }
6853 if test 0 -eq "$ac_status"; then
6854 # Ensure the archiver fails upon bogus file names.
6855 rm -f conftest.$ac_objext libconftest.a
6856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6857 (eval $lt_ar_try) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }
6861 if test 0 -ne "$ac_status"; then
6862 lt_cv_ar_at_file=@
6863 fi
6864 fi
6865 rm -f conftest.* libconftest.a
6866
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6872 $as_echo "$lt_cv_ar_at_file" >&6; }
6873
6874 if test no = "$lt_cv_ar_at_file"; then
6875 archiver_list_spec=
6876 else
6877 archiver_list_spec=$lt_cv_ar_at_file
6878 fi
6879
6880
6881
6882
6883
6884
6885
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}strip; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_STRIP+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$STRIP"; then
6895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 STRIP=$ac_cv_prog_STRIP
6915 if test -n "$STRIP"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6917 $as_echo "$STRIP" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 fi
6925 if test -z "$ac_cv_prog_STRIP"; then
6926 ac_ct_STRIP=$STRIP
6927 # Extract the first word of "strip", so it can be a program name with args.
6928 set dummy strip; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$ac_ct_STRIP"; then
6935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_STRIP="strip"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955 if test -n "$ac_ct_STRIP"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6957 $as_echo "$ac_ct_STRIP" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963 if test "x$ac_ct_STRIP" = x; then
6964 STRIP=":"
6965 else
6966 case $cross_compiling:$ac_tool_warned in
6967 yes:)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned=yes ;;
6971 esac
6972 STRIP=$ac_ct_STRIP
6973 fi
6974 else
6975 STRIP="$ac_cv_prog_STRIP"
6976 fi
6977
6978 test -z "$STRIP" && STRIP=:
6979
6980
6981
6982
6983
6984
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_RANLIB+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -n "$RANLIB"; then
6994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007 done
7008 done
7009 IFS=$as_save_IFS
7010
7011 fi
7012 fi
7013 RANLIB=$ac_cv_prog_RANLIB
7014 if test -n "$RANLIB"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016 $as_echo "$RANLIB" >&6; }
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023 fi
7024 if test -z "$ac_cv_prog_RANLIB"; then
7025 ac_ct_RANLIB=$RANLIB
7026 # Extract the first word of "ranlib", so it can be a program name with args.
7027 set dummy ranlib; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$ac_ct_RANLIB"; then
7034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_ac_ct_RANLIB="ranlib"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7054 if test -n "$ac_ct_RANLIB"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7056 $as_echo "$ac_ct_RANLIB" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062 if test "x$ac_ct_RANLIB" = x; then
7063 RANLIB=":"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066 yes:)
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071 RANLIB=$ac_ct_RANLIB
7072 fi
7073 else
7074 RANLIB="$ac_cv_prog_RANLIB"
7075 fi
7076
7077 test -z "$RANLIB" && RANLIB=:
7078
7079
7080
7081
7082
7083
7084 # Determine commands to create old-style static archives.
7085 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7086 old_postinstall_cmds='chmod 644 $oldlib'
7087 old_postuninstall_cmds=
7088
7089 if test -n "$RANLIB"; then
7090 case $host_os in
7091 bitrig* | openbsd*)
7092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7093 ;;
7094 *)
7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7096 ;;
7097 esac
7098 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7099 fi
7100
7101 case $host_os in
7102 darwin*)
7103 lock_old_archive_extraction=yes ;;
7104 *)
7105 lock_old_archive_extraction=no ;;
7106 esac
7107
7108
7109
7110
7111
7112
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 # If no C compiler was specified, use CC.
7147 LTCC=${LTCC-"$CC"}
7148
7149 # If no C compiler flags were specified, use CFLAGS.
7150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7151
7152 # Allow CC to be a program name with arguments.
7153 compiler=$CC
7154
7155
7156 # Check for command to grab the raw symbol name followed by C symbol from nm.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7158 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7159 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162
7163 # These are sane defaults that work on at least a few old systems.
7164 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7165
7166 # Character class describing NM global symbol codes.
7167 symcode='[BCDEGRST]'
7168
7169 # Regexp to match symbols that can be accessed directly from C.
7170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7171
7172 # Define system-specific variables.
7173 case $host_os in
7174 aix*)
7175 symcode='[BCDT]'
7176 ;;
7177 cygwin* | mingw* | pw32* | cegcc*)
7178 symcode='[ABCDGISTW]'
7179 ;;
7180 hpux*)
7181 if test ia64 = "$host_cpu"; then
7182 symcode='[ABCDEGRST]'
7183 fi
7184 ;;
7185 irix* | nonstopux*)
7186 symcode='[BCDEGRST]'
7187 ;;
7188 osf*)
7189 symcode='[BCDEGQRST]'
7190 ;;
7191 solaris*)
7192 symcode='[BDRT]'
7193 ;;
7194 sco3.2v5*)
7195 symcode='[DT]'
7196 ;;
7197 sysv4.2uw2*)
7198 symcode='[DT]'
7199 ;;
7200 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7201 symcode='[ABDT]'
7202 ;;
7203 sysv4)
7204 symcode='[DFNSTU]'
7205 ;;
7206 esac
7207
7208 # If we're using GNU nm, then use its standard symbol codes.
7209 case `$NM -V 2>&1` in
7210 *GNU* | *'with BFD'*)
7211 symcode='[ABCDGIRSTW]' ;;
7212 esac
7213
7214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7215 # Gets list of data symbols to import.
7216 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7217 # Adjust the below global symbol transforms to fixup imported variables.
7218 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7219 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7220 lt_c_name_lib_hook="\
7221 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7222 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7223 else
7224 # Disable hooks by default.
7225 lt_cv_sys_global_symbol_to_import=
7226 lt_cdecl_hook=
7227 lt_c_name_hook=
7228 lt_c_name_lib_hook=
7229 fi
7230
7231 # Transform an extracted symbol line into a proper C declaration.
7232 # Some systems (esp. on ia64) link data and code symbols differently,
7233 # so use this general approach.
7234 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7235 $lt_cdecl_hook\
7236 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7237 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7238
7239 # Transform an extracted symbol line into symbol name and symbol address
7240 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7241 $lt_c_name_hook\
7242 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7243 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7244
7245 # Transform an extracted symbol line into symbol name with lib prefix and
7246 # symbol address.
7247 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7248 $lt_c_name_lib_hook\
7249 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7250 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7251 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7252
7253 # Handle CRLF in mingw tool chain
7254 opt_cr=
7255 case $build_os in
7256 mingw*)
7257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7258 ;;
7259 esac
7260
7261 # Try without a prefix underscore, then with it.
7262 for ac_symprfx in "" "_"; do
7263
7264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7265 symxfrm="\\1 $ac_symprfx\\2 \\2"
7266
7267 # Write the raw and C identifiers.
7268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7269 # Fake it for dumpbin and say T for any non-static function,
7270 # D for any global variable and I for any imported variable.
7271 # Also find C++ and __fastcall symbols from MSVC++,
7272 # which start with @ or ?.
7273 lt_cv_sys_global_symbol_pipe="$AWK '"\
7274 " {last_section=section; section=\$ 3};"\
7275 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7276 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7277 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7278 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7279 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7280 " \$ 0!~/External *\|/{next};"\
7281 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7282 " {if(hide[section]) next};"\
7283 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7284 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7285 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7286 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7287 " ' prfx=^$ac_symprfx"
7288 else
7289 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7290 fi
7291 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7292
7293 # Check to see that the pipe works correctly.
7294 pipe_works=no
7295
7296 rm -rf conftest*
7297 cat > conftest.$ac_ext <<_LT_EOF
7298 #ifdef __cplusplus
7299 extern "C" {
7300 #endif
7301 char nm_test_var;
7302 void nm_test_func(void);
7303 void nm_test_func(void){}
7304 #ifdef __cplusplus
7305 }
7306 #endif
7307 int main(){nm_test_var='a';nm_test_func();return(0);}
7308 _LT_EOF
7309
7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7311 (eval $ac_compile) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; }; then
7315 # Now try to grab the symbols.
7316 nlist=conftest.nm
7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7318 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7319 ac_status=$?
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; } && test -s "$nlist"; then
7322 # Try sorting and uniquifying the output.
7323 if sort "$nlist" | uniq > "$nlist"T; then
7324 mv -f "$nlist"T "$nlist"
7325 else
7326 rm -f "$nlist"T
7327 fi
7328
7329 # Make sure that we snagged all the symbols we need.
7330 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7331 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7332 cat <<_LT_EOF > conftest.$ac_ext
7333 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7334 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7335 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7336 relocations are performed -- see ld's documentation on pseudo-relocs. */
7337 # define LT_DLSYM_CONST
7338 #elif defined __osf__
7339 /* This system does not cope well with relocations in const data. */
7340 # define LT_DLSYM_CONST
7341 #else
7342 # define LT_DLSYM_CONST const
7343 #endif
7344
7345 #ifdef __cplusplus
7346 extern "C" {
7347 #endif
7348
7349 _LT_EOF
7350 # Now generate the symbol file.
7351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7352
7353 cat <<_LT_EOF >> conftest.$ac_ext
7354
7355 /* The mapping between symbol names and symbols. */
7356 LT_DLSYM_CONST struct {
7357 const char *name;
7358 void *address;
7359 }
7360 lt__PROGRAM__LTX_preloaded_symbols[] =
7361 {
7362 { "@PROGRAM@", (void *) 0 },
7363 _LT_EOF
7364 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7365 cat <<\_LT_EOF >> conftest.$ac_ext
7366 {0, (void *) 0}
7367 };
7368
7369 /* This works around a problem in FreeBSD linker */
7370 #ifdef FREEBSD_WORKAROUND
7371 static const void *lt_preloaded_setup() {
7372 return lt__PROGRAM__LTX_preloaded_symbols;
7373 }
7374 #endif
7375
7376 #ifdef __cplusplus
7377 }
7378 #endif
7379 _LT_EOF
7380 # Now try linking the two files.
7381 mv conftest.$ac_objext conftstm.$ac_objext
7382 lt_globsym_save_LIBS=$LIBS
7383 lt_globsym_save_CFLAGS=$CFLAGS
7384 LIBS=conftstm.$ac_objext
7385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7387 (eval $ac_link) 2>&5
7388 ac_status=$?
7389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7391 pipe_works=yes
7392 fi
7393 LIBS=$lt_globsym_save_LIBS
7394 CFLAGS=$lt_globsym_save_CFLAGS
7395 else
7396 echo "cannot find nm_test_func in $nlist" >&5
7397 fi
7398 else
7399 echo "cannot find nm_test_var in $nlist" >&5
7400 fi
7401 else
7402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7403 fi
7404 else
7405 echo "$progname: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 fi
7408 rm -rf conftest* conftst*
7409
7410 # Do not use the global_symbol_pipe unless it works.
7411 if test yes = "$pipe_works"; then
7412 break
7413 else
7414 lt_cv_sys_global_symbol_pipe=
7415 fi
7416 done
7417
7418 fi
7419
7420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7421 lt_cv_sys_global_symbol_to_cdecl=
7422 fi
7423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7425 $as_echo "failed" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7428 $as_echo "ok" >&6; }
7429 fi
7430
7431 # Response file support.
7432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7433 nm_file_list_spec='@'
7434 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7435 nm_file_list_spec='@'
7436 fi
7437
7438
7439
7440
7441
7442
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7475 $as_echo_n "checking for sysroot... " >&6; }
7476
7477 # Check whether --with-sysroot was given.
7478 if test "${with_sysroot+set}" = set; then :
7479 withval=$with_sysroot;
7480 else
7481 with_sysroot=no
7482 fi
7483
7484
7485 lt_sysroot=
7486 case $with_sysroot in #(
7487 yes)
7488 if test yes = "$GCC"; then
7489 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7490 fi
7491 ;; #(
7492 /*)
7493 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7494 ;; #(
7495 no|'')
7496 ;; #(
7497 *)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7499 $as_echo "$with_sysroot" >&6; }
7500 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7501 ;;
7502 esac
7503
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7505 $as_echo "${lt_sysroot:-no}" >&6; }
7506
7507
7508
7509
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7512 $as_echo_n "checking for a working dd... " >&6; }
7513 if ${ac_cv_path_lt_DD+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 printf 0123456789abcdef0123456789abcdef >conftest.i
7517 cat conftest.i conftest.i >conftest2.i
7518 : ${lt_DD:=$DD}
7519 if test -z "$lt_DD"; then
7520 ac_path_lt_DD_found=false
7521 # Loop through the user's path and test for each of PROGNAME-LIST
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_prog in dd; do
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7530 as_fn_executable_p "$ac_path_lt_DD" || continue
7531 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7532 cmp -s conftest.i conftest.out \
7533 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7534 fi
7535 $ac_path_lt_DD_found && break 3
7536 done
7537 done
7538 done
7539 IFS=$as_save_IFS
7540 if test -z "$ac_cv_path_lt_DD"; then
7541 :
7542 fi
7543 else
7544 ac_cv_path_lt_DD=$lt_DD
7545 fi
7546
7547 rm -f conftest.i conftest2.i conftest.out
7548 fi
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7550 $as_echo "$ac_cv_path_lt_DD" >&6; }
7551
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7554 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7555 if ${lt_cv_truncate_bin+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 printf 0123456789abcdef0123456789abcdef >conftest.i
7559 cat conftest.i conftest.i >conftest2.i
7560 lt_cv_truncate_bin=
7561 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7562 cmp -s conftest.i conftest.out \
7563 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7564 fi
7565 rm -f conftest.i conftest2.i conftest.out
7566 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7569 $as_echo "$lt_cv_truncate_bin" >&6; }
7570
7571
7572
7573
7574
7575
7576
7577 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7578 func_cc_basename ()
7579 {
7580 for cc_temp in $*""; do
7581 case $cc_temp in
7582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584 \-*) ;;
7585 *) break;;
7586 esac
7587 done
7588 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7589 }
7590
7591 # Check whether --enable-libtool-lock was given.
7592 if test "${enable_libtool_lock+set}" = set; then :
7593 enableval=$enable_libtool_lock;
7594 fi
7595
7596 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7597
7598 # Some flags need to be propagated to the compiler or linker for good
7599 # libtool support.
7600 case $host in
7601 ia64-*-hpux*)
7602 # Find out what ABI is being produced by ac_compile, and set mode
7603 # options accordingly.
7604 echo 'int i;' > conftest.$ac_ext
7605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7606 (eval $ac_compile) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; }; then
7610 case `/usr/bin/file conftest.$ac_objext` in
7611 *ELF-32*)
7612 HPUX_IA64_MODE=32
7613 ;;
7614 *ELF-64*)
7615 HPUX_IA64_MODE=64
7616 ;;
7617 esac
7618 fi
7619 rm -rf conftest*
7620 ;;
7621 *-*-irix6*)
7622 # Find out what ABI is being produced by ac_compile, and set linker
7623 # options accordingly.
7624 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7626 (eval $ac_compile) 2>&5
7627 ac_status=$?
7628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629 test $ac_status = 0; }; then
7630 if test yes = "$lt_cv_prog_gnu_ld"; then
7631 case `/usr/bin/file conftest.$ac_objext` in
7632 *32-bit*)
7633 LD="${LD-ld} -melf32bsmip"
7634 ;;
7635 *N32*)
7636 LD="${LD-ld} -melf32bmipn32"
7637 ;;
7638 *64-bit*)
7639 LD="${LD-ld} -melf64bmip"
7640 ;;
7641 esac
7642 else
7643 case `/usr/bin/file conftest.$ac_objext` in
7644 *32-bit*)
7645 LD="${LD-ld} -32"
7646 ;;
7647 *N32*)
7648 LD="${LD-ld} -n32"
7649 ;;
7650 *64-bit*)
7651 LD="${LD-ld} -64"
7652 ;;
7653 esac
7654 fi
7655 fi
7656 rm -rf conftest*
7657 ;;
7658
7659 mips64*-*linux*)
7660 # Find out what ABI is being produced by ac_compile, and set linker
7661 # options accordingly.
7662 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664 (eval $ac_compile) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }; then
7668 emul=elf
7669 case `/usr/bin/file conftest.$ac_objext` in
7670 *32-bit*)
7671 emul="${emul}32"
7672 ;;
7673 *64-bit*)
7674 emul="${emul}64"
7675 ;;
7676 esac
7677 case `/usr/bin/file conftest.$ac_objext` in
7678 *MSB*)
7679 emul="${emul}btsmip"
7680 ;;
7681 *LSB*)
7682 emul="${emul}ltsmip"
7683 ;;
7684 esac
7685 case `/usr/bin/file conftest.$ac_objext` in
7686 *N32*)
7687 emul="${emul}n32"
7688 ;;
7689 esac
7690 LD="${LD-ld} -m $emul"
7691 fi
7692 rm -rf conftest*
7693 ;;
7694
7695 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7696 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7697 # Find out what ABI is being produced by ac_compile, and set linker
7698 # options accordingly. Note that the listed cases only cover the
7699 # situations where additional linker options are needed (such as when
7700 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7701 # vice versa); the common cases where no linker options are needed do
7702 # not appear in the list.
7703 echo 'int i;' > conftest.$ac_ext
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705 (eval $ac_compile) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.o` in
7710 *32-bit*)
7711 case $host in
7712 x86_64-*kfreebsd*-gnu)
7713 LD="${LD-ld} -m elf_i386_fbsd"
7714 ;;
7715 x86_64-*linux*)
7716 case `/usr/bin/file conftest.o` in
7717 *x86-64*)
7718 LD="${LD-ld} -m elf32_x86_64"
7719 ;;
7720 *)
7721 LD="${LD-ld} -m elf_i386"
7722 ;;
7723 esac
7724 ;;
7725 powerpc64le-*linux*)
7726 LD="${LD-ld} -m elf32lppclinux"
7727 ;;
7728 powerpc64-*linux*)
7729 LD="${LD-ld} -m elf32ppclinux"
7730 ;;
7731 s390x-*linux*)
7732 LD="${LD-ld} -m elf_s390"
7733 ;;
7734 sparc64-*linux*)
7735 LD="${LD-ld} -m elf32_sparc"
7736 ;;
7737 esac
7738 ;;
7739 *64-bit*)
7740 case $host in
7741 x86_64-*kfreebsd*-gnu)
7742 LD="${LD-ld} -m elf_x86_64_fbsd"
7743 ;;
7744 x86_64-*linux*)
7745 LD="${LD-ld} -m elf_x86_64"
7746 ;;
7747 powerpcle-*linux*)
7748 LD="${LD-ld} -m elf64lppc"
7749 ;;
7750 powerpc-*linux*)
7751 LD="${LD-ld} -m elf64ppc"
7752 ;;
7753 s390*-*linux*|s390*-*tpf*)
7754 LD="${LD-ld} -m elf64_s390"
7755 ;;
7756 sparc*-*linux*)
7757 LD="${LD-ld} -m elf64_sparc"
7758 ;;
7759 esac
7760 ;;
7761 esac
7762 fi
7763 rm -rf conftest*
7764 ;;
7765
7766 *-*-sco3.2v5*)
7767 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7768 SAVE_CFLAGS=$CFLAGS
7769 CFLAGS="$CFLAGS -belf"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7771 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7772 if ${lt_cv_cc_needs_belf+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 ac_ext=c
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 int
7785 main ()
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"; then :
7793 lt_cv_cc_needs_belf=yes
7794 else
7795 lt_cv_cc_needs_belf=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7799 ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7807 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7808 if test yes != "$lt_cv_cc_needs_belf"; then
7809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7810 CFLAGS=$SAVE_CFLAGS
7811 fi
7812 ;;
7813 *-*solaris*)
7814 # Find out what ABI is being produced by ac_compile, and set linker
7815 # options accordingly.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.o` in
7823 *64-bit*)
7824 case $lt_cv_prog_gnu_ld in
7825 yes*)
7826 case $host in
7827 i?86-*-solaris*|x86_64-*-solaris*)
7828 LD="${LD-ld} -m elf_x86_64"
7829 ;;
7830 sparc*-*-solaris*)
7831 LD="${LD-ld} -m elf64_sparc"
7832 ;;
7833 esac
7834 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7835 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7836 LD=${LD-ld}_sol2
7837 fi
7838 ;;
7839 *)
7840 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7841 LD="${LD-ld} -64"
7842 fi
7843 ;;
7844 esac
7845 ;;
7846 esac
7847 fi
7848 rm -rf conftest*
7849 ;;
7850 esac
7851
7852 need_locks=$enable_libtool_lock
7853
7854 if test -n "$ac_tool_prefix"; then
7855 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7856 set dummy ${ac_tool_prefix}mt; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 if test -n "$MANIFEST_TOOL"; then
7863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7883 if test -n "$MANIFEST_TOOL"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7885 $as_echo "$MANIFEST_TOOL" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890
7891
7892 fi
7893 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7894 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7895 # Extract the first word of "mt", so it can be a program name with args.
7896 set dummy mt; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if test -n "$ac_ct_MANIFEST_TOOL"; then
7903 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7923 if test -n "$ac_ct_MANIFEST_TOOL"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7925 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7932 MANIFEST_TOOL=":"
7933 else
7934 case $cross_compiling:$ac_tool_warned in
7935 yes:)
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938 ac_tool_warned=yes ;;
7939 esac
7940 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7941 fi
7942 else
7943 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7944 fi
7945
7946 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7948 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7949 if ${lt_cv_path_mainfest_tool+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_path_mainfest_tool=no
7953 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7954 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7955 cat conftest.err >&5
7956 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7957 lt_cv_path_mainfest_tool=yes
7958 fi
7959 rm -rf conftest*
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7962 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7963 if test yes != "$lt_cv_path_mainfest_tool"; then
7964 MANIFEST_TOOL=:
7965 fi
7966
7967
7968
7969
7970
7971
7972 case $host_os in
7973 rhapsody* | darwin*)
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7976 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$DSYMUTIL"; then
7983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8003 if test -n "$DSYMUTIL"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8005 $as_echo "$DSYMUTIL" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8009 fi
8010
8011
8012 fi
8013 if test -z "$ac_cv_prog_DSYMUTIL"; then
8014 ac_ct_DSYMUTIL=$DSYMUTIL
8015 # Extract the first word of "dsymutil", so it can be a program name with args.
8016 set dummy dsymutil; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8043 if test -n "$ac_ct_DSYMUTIL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8045 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051 if test "x$ac_ct_DSYMUTIL" = x; then
8052 DSYMUTIL=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055 yes:)
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058 ac_tool_warned=yes ;;
8059 esac
8060 DSYMUTIL=$ac_ct_DSYMUTIL
8061 fi
8062 else
8063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8064 fi
8065
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if ${ac_cv_prog_NMEDIT+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$NMEDIT"; then
8075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8087 fi
8088 done
8089 done
8090 IFS=$as_save_IFS
8091
8092 fi
8093 fi
8094 NMEDIT=$ac_cv_prog_NMEDIT
8095 if test -n "$NMEDIT"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8097 $as_echo "$NMEDIT" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102
8103
8104 fi
8105 if test -z "$ac_cv_prog_NMEDIT"; then
8106 ac_ct_NMEDIT=$NMEDIT
8107 # Extract the first word of "nmedit", so it can be a program name with args.
8108 set dummy nmedit; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$ac_ct_NMEDIT"; then
8115 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8135 if test -n "$ac_ct_NMEDIT"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8137 $as_echo "$ac_ct_NMEDIT" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143 if test "x$ac_ct_NMEDIT" = x; then
8144 NMEDIT=":"
8145 else
8146 case $cross_compiling:$ac_tool_warned in
8147 yes:)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150 ac_tool_warned=yes ;;
8151 esac
8152 NMEDIT=$ac_ct_NMEDIT
8153 fi
8154 else
8155 NMEDIT="$ac_cv_prog_NMEDIT"
8156 fi
8157
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8160 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_prog_LIPO+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$LIPO"; then
8167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 LIPO=$ac_cv_prog_LIPO
8187 if test -n "$LIPO"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8189 $as_echo "$LIPO" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196 fi
8197 if test -z "$ac_cv_prog_LIPO"; then
8198 ac_ct_LIPO=$LIPO
8199 # Extract the first word of "lipo", so it can be a program name with args.
8200 set dummy lipo; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$ac_ct_LIPO"; then
8207 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_ac_ct_LIPO="lipo"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8227 if test -n "$ac_ct_LIPO"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8229 $as_echo "$ac_ct_LIPO" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235 if test "x$ac_ct_LIPO" = x; then
8236 LIPO=":"
8237 else
8238 case $cross_compiling:$ac_tool_warned in
8239 yes:)
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242 ac_tool_warned=yes ;;
8243 esac
8244 LIPO=$ac_ct_LIPO
8245 fi
8246 else
8247 LIPO="$ac_cv_prog_LIPO"
8248 fi
8249
8250 if test -n "$ac_tool_prefix"; then
8251 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8252 set dummy ${ac_tool_prefix}otool; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_OTOOL+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 if test -n "$OTOOL"; then
8259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 OTOOL=$ac_cv_prog_OTOOL
8279 if test -n "$OTOOL"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8281 $as_echo "$OTOOL" >&6; }
8282 else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286
8287
8288 fi
8289 if test -z "$ac_cv_prog_OTOOL"; then
8290 ac_ct_OTOOL=$OTOOL
8291 # Extract the first word of "otool", so it can be a program name with args.
8292 set dummy otool; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$ac_ct_OTOOL"; then
8299 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_ac_ct_OTOOL="otool"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8319 if test -n "$ac_ct_OTOOL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8321 $as_echo "$ac_ct_OTOOL" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327 if test "x$ac_ct_OTOOL" = x; then
8328 OTOOL=":"
8329 else
8330 case $cross_compiling:$ac_tool_warned in
8331 yes:)
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8334 ac_tool_warned=yes ;;
8335 esac
8336 OTOOL=$ac_ct_OTOOL
8337 fi
8338 else
8339 OTOOL="$ac_cv_prog_OTOOL"
8340 fi
8341
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8344 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_prog_OTOOL64+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$OTOOL64"; then
8351 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 OTOOL64=$ac_cv_prog_OTOOL64
8371 if test -n "$OTOOL64"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8373 $as_echo "$OTOOL64" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381 if test -z "$ac_cv_prog_OTOOL64"; then
8382 ac_ct_OTOOL64=$OTOOL64
8383 # Extract the first word of "otool64", so it can be a program name with args.
8384 set dummy otool64; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test -n "$ac_ct_OTOOL64"; then
8391 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8395 do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_ac_ct_OTOOL64="otool64"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8411 if test -n "$ac_ct_OTOOL64"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8413 $as_echo "$ac_ct_OTOOL64" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419 if test "x$ac_ct_OTOOL64" = x; then
8420 OTOOL64=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423 yes:)
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426 ac_tool_warned=yes ;;
8427 esac
8428 OTOOL64=$ac_ct_OTOOL64
8429 fi
8430 else
8431 OTOOL64="$ac_cv_prog_OTOOL64"
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8461 $as_echo_n "checking for -single_module linker flag... " >&6; }
8462 if ${lt_cv_apple_cc_single_mod+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 lt_cv_apple_cc_single_mod=no
8466 if test -z "$LT_MULTI_MODULE"; then
8467 # By default we will add the -single_module flag. You can override
8468 # by either setting the environment variable LT_MULTI_MODULE
8469 # non-empty at configure time, or by adding -multi_module to the
8470 # link flags.
8471 rm -rf libconftest.dylib*
8472 echo "int foo(void){return 1;}" > conftest.c
8473 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8474 -dynamiclib -Wl,-single_module conftest.c" >&5
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8477 _lt_result=$?
8478 # If there is a non-empty error log, and "single_module"
8479 # appears in it, assume the flag caused a linker warning
8480 if test -s conftest.err && $GREP single_module conftest.err; then
8481 cat conftest.err >&5
8482 # Otherwise, if the output was created with a 0 exit code from
8483 # the compiler, it worked.
8484 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8485 lt_cv_apple_cc_single_mod=yes
8486 else
8487 cat conftest.err >&5
8488 fi
8489 rm -rf libconftest.dylib*
8490 rm -f conftest.*
8491 fi
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8494 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8495
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8497 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8498 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 lt_cv_ld_exported_symbols_list=no
8502 save_LDFLAGS=$LDFLAGS
8503 echo "_main" > conftest.sym
8504 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507
8508 int
8509 main ()
8510 {
8511
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 lt_cv_ld_exported_symbols_list=yes
8518 else
8519 lt_cv_ld_exported_symbols_list=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LDFLAGS=$save_LDFLAGS
8524
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8527 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8530 $as_echo_n "checking for -force_load linker flag... " >&6; }
8531 if ${lt_cv_ld_force_load+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 lt_cv_ld_force_load=no
8535 cat > conftest.c << _LT_EOF
8536 int forced_loaded() { return 2;}
8537 _LT_EOF
8538 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8539 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8540 echo "$AR cru libconftest.a conftest.o" >&5
8541 $AR cru libconftest.a conftest.o 2>&5
8542 echo "$RANLIB libconftest.a" >&5
8543 $RANLIB libconftest.a 2>&5
8544 cat > conftest.c << _LT_EOF
8545 int main() { return 0;}
8546 _LT_EOF
8547 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8548 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8549 _lt_result=$?
8550 if test -s conftest.err && $GREP force_load conftest.err; then
8551 cat conftest.err >&5
8552 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8553 lt_cv_ld_force_load=yes
8554 else
8555 cat conftest.err >&5
8556 fi
8557 rm -f conftest.err libconftest.a conftest conftest.c
8558 rm -rf conftest.dSYM
8559
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8562 $as_echo "$lt_cv_ld_force_load" >&6; }
8563 case $host_os in
8564 rhapsody* | darwin1.[012])
8565 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8566 darwin1.*)
8567 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8568 darwin*) # darwin 5.x on
8569 # if running on 10.5 or later, the deployment target defaults
8570 # to the OS version, if on x86, and 10.4, the deployment
8571 # target defaults to 10.4. Don't you love it?
8572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8574 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8575 10.[012][,.]*)
8576 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8577 10.*)
8578 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8579 esac
8580 ;;
8581 esac
8582 if test yes = "$lt_cv_apple_cc_single_mod"; then
8583 _lt_dar_single_mod='$single_module'
8584 fi
8585 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8586 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8587 else
8588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8589 fi
8590 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8591 _lt_dsymutil='~$DSYMUTIL $lib || :'
8592 else
8593 _lt_dsymutil=
8594 fi
8595 ;;
8596 esac
8597
8598 # func_munge_path_list VARIABLE PATH
8599 # -----------------------------------
8600 # VARIABLE is name of variable containing _space_ separated list of
8601 # directories to be munged by the contents of PATH, which is string
8602 # having a format:
8603 # "DIR[:DIR]:"
8604 # string "DIR[ DIR]" will be prepended to VARIABLE
8605 # ":DIR[:DIR]"
8606 # string "DIR[ DIR]" will be appended to VARIABLE
8607 # "DIRP[:DIRP]::[DIRA:]DIRA"
8608 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8609 # "DIRA[ DIRA]" will be appended to VARIABLE
8610 # "DIR[:DIR]"
8611 # VARIABLE will be replaced by "DIR[ DIR]"
8612 func_munge_path_list ()
8613 {
8614 case x$2 in
8615 x)
8616 ;;
8617 *:)
8618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8619 ;;
8620 x:*)
8621 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8622 ;;
8623 *::*)
8624 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8625 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8626 ;;
8627 *)
8628 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8629 ;;
8630 esac
8631 }
8632
8633 ac_ext=c
8634 ac_cpp='$CPP $CPPFLAGS'
8635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8639 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8640 # On Suns, sometimes $CPP names a directory.
8641 if test -n "$CPP" && test -d "$CPP"; then
8642 CPP=
8643 fi
8644 if test -z "$CPP"; then
8645 if ${ac_cv_prog_CPP+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 # Double quotes because CPP needs to be expanded
8649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8650 do
8651 ac_preproc_ok=false
8652 for ac_c_preproc_warn_flag in '' yes
8653 do
8654 # Use a header file that comes with gcc, so configuring glibc
8655 # with a fresh cross-compiler works.
8656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 # <limits.h> exists even on freestanding compilers.
8658 # On the NeXT, cc -E runs the code through the compiler's parser,
8659 # not just through cpp. "Syntax error" is here to catch this case.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #ifdef __STDC__
8663 # include <limits.h>
8664 #else
8665 # include <assert.h>
8666 #endif
8667 Syntax error
8668 _ACEOF
8669 if ac_fn_c_try_cpp "$LINENO"; then :
8670
8671 else
8672 # Broken: fails on valid input.
8673 continue
8674 fi
8675 rm -f conftest.err conftest.i conftest.$ac_ext
8676
8677 # OK, works on sane cases. Now check whether nonexistent headers
8678 # can be detected and how.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <ac_nonexistent.h>
8682 _ACEOF
8683 if ac_fn_c_try_cpp "$LINENO"; then :
8684 # Broken: success on invalid input.
8685 continue
8686 else
8687 # Passes both tests.
8688 ac_preproc_ok=:
8689 break
8690 fi
8691 rm -f conftest.err conftest.i conftest.$ac_ext
8692
8693 done
8694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8695 rm -f conftest.i conftest.err conftest.$ac_ext
8696 if $ac_preproc_ok; then :
8697 break
8698 fi
8699
8700 done
8701 ac_cv_prog_CPP=$CPP
8702
8703 fi
8704 CPP=$ac_cv_prog_CPP
8705 else
8706 ac_cv_prog_CPP=$CPP
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8709 $as_echo "$CPP" >&6; }
8710 ac_preproc_ok=false
8711 for ac_c_preproc_warn_flag in '' yes
8712 do
8713 # Use a header file that comes with gcc, so configuring glibc
8714 # with a fresh cross-compiler works.
8715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8716 # <limits.h> exists even on freestanding compilers.
8717 # On the NeXT, cc -E runs the code through the compiler's parser,
8718 # not just through cpp. "Syntax error" is here to catch this case.
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8726 Syntax error
8727 _ACEOF
8728 if ac_fn_c_try_cpp "$LINENO"; then :
8729
8730 else
8731 # Broken: fails on valid input.
8732 continue
8733 fi
8734 rm -f conftest.err conftest.i conftest.$ac_ext
8735
8736 # OK, works on sane cases. Now check whether nonexistent headers
8737 # can be detected and how.
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <ac_nonexistent.h>
8741 _ACEOF
8742 if ac_fn_c_try_cpp "$LINENO"; then :
8743 # Broken: success on invalid input.
8744 continue
8745 else
8746 # Passes both tests.
8747 ac_preproc_ok=:
8748 break
8749 fi
8750 rm -f conftest.err conftest.i conftest.$ac_ext
8751
8752 done
8753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8754 rm -f conftest.i conftest.err conftest.$ac_ext
8755 if $ac_preproc_ok; then :
8756
8757 else
8758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8760 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8761 See \`config.log' for more details" "$LINENO" 5; }
8762 fi
8763
8764 ac_ext=c
8765 ac_cpp='$CPP $CPPFLAGS'
8766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769
8770
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8772 $as_echo_n "checking for ANSI C header files... " >&6; }
8773 if ${ac_cv_header_stdc+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <stdlib.h>
8779 #include <stdarg.h>
8780 #include <string.h>
8781 #include <float.h>
8782
8783 int
8784 main ()
8785 {
8786
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792 ac_cv_header_stdc=yes
8793 else
8794 ac_cv_header_stdc=no
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797
8798 if test $ac_cv_header_stdc = yes; then
8799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #include <string.h>
8803
8804 _ACEOF
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP "memchr" >/dev/null 2>&1; then :
8807
8808 else
8809 ac_cv_header_stdc=no
8810 fi
8811 rm -f conftest*
8812
8813 fi
8814
8815 if test $ac_cv_header_stdc = yes; then
8816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #include <stdlib.h>
8820
8821 _ACEOF
8822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8823 $EGREP "free" >/dev/null 2>&1; then :
8824
8825 else
8826 ac_cv_header_stdc=no
8827 fi
8828 rm -f conftest*
8829
8830 fi
8831
8832 if test $ac_cv_header_stdc = yes; then
8833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8834 if test "$cross_compiling" = yes; then :
8835 :
8836 else
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 #include <ctype.h>
8840 #include <stdlib.h>
8841 #if ((' ' & 0x0FF) == 0x020)
8842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8844 #else
8845 # define ISLOWER(c) \
8846 (('a' <= (c) && (c) <= 'i') \
8847 || ('j' <= (c) && (c) <= 'r') \
8848 || ('s' <= (c) && (c) <= 'z'))
8849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8850 #endif
8851
8852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8853 int
8854 main ()
8855 {
8856 int i;
8857 for (i = 0; i < 256; i++)
8858 if (XOR (islower (i), ISLOWER (i))
8859 || toupper (i) != TOUPPER (i))
8860 return 2;
8861 return 0;
8862 }
8863 _ACEOF
8864 if ac_fn_c_try_run "$LINENO"; then :
8865
8866 else
8867 ac_cv_header_stdc=no
8868 fi
8869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8870 conftest.$ac_objext conftest.beam conftest.$ac_ext
8871 fi
8872
8873 fi
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8876 $as_echo "$ac_cv_header_stdc" >&6; }
8877 if test $ac_cv_header_stdc = yes; then
8878
8879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8880
8881 fi
8882
8883 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8884 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8885 inttypes.h stdint.h unistd.h
8886 do :
8887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8889 "
8890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8891 cat >>confdefs.h <<_ACEOF
8892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8893 _ACEOF
8894
8895 fi
8896
8897 done
8898
8899
8900 for ac_header in dlfcn.h
8901 do :
8902 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8903 "
8904 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8905 cat >>confdefs.h <<_ACEOF
8906 #define HAVE_DLFCN_H 1
8907 _ACEOF
8908
8909 fi
8910
8911 done
8912
8913
8914
8915
8916 func_stripname_cnf ()
8917 {
8918 case $2 in
8919 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8920 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8921 esac
8922 } # func_stripname_cnf
8923
8924
8925
8926
8927
8928 # Set options
8929 # Check whether --enable-static was given.
8930 if test "${enable_static+set}" = set; then :
8931 enableval=$enable_static; p=${PACKAGE-default}
8932 case $enableval in
8933 yes) enable_static=yes ;;
8934 no) enable_static=no ;;
8935 *)
8936 enable_static=no
8937 # Look at the argument we got. We use all the common list separators.
8938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8939 for pkg in $enableval; do
8940 IFS=$lt_save_ifs
8941 if test "X$pkg" = "X$p"; then
8942 enable_static=yes
8943 fi
8944 done
8945 IFS=$lt_save_ifs
8946 ;;
8947 esac
8948 else
8949 enable_static=no
8950 fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 enable_dlopen=no
8962
8963
8964 enable_win32_dll=no
8965
8966
8967 # Check whether --enable-shared was given.
8968 if test "${enable_shared+set}" = set; then :
8969 enableval=$enable_shared; p=${PACKAGE-default}
8970 case $enableval in
8971 yes) enable_shared=yes ;;
8972 no) enable_shared=no ;;
8973 *)
8974 enable_shared=no
8975 # Look at the argument we got. We use all the common list separators.
8976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8977 for pkg in $enableval; do
8978 IFS=$lt_save_ifs
8979 if test "X$pkg" = "X$p"; then
8980 enable_shared=yes
8981 fi
8982 done
8983 IFS=$lt_save_ifs
8984 ;;
8985 esac
8986 else
8987 enable_shared=yes
8988 fi
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000 # Check whether --with-pic was given.
9001 if test "${with_pic+set}" = set; then :
9002 withval=$with_pic; lt_p=${PACKAGE-default}
9003 case $withval in
9004 yes|no) pic_mode=$withval ;;
9005 *)
9006 pic_mode=default
9007 # Look at the argument we got. We use all the common list separators.
9008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9009 for lt_pkg in $withval; do
9010 IFS=$lt_save_ifs
9011 if test "X$lt_pkg" = "X$lt_p"; then
9012 pic_mode=yes
9013 fi
9014 done
9015 IFS=$lt_save_ifs
9016 ;;
9017 esac
9018 else
9019 pic_mode=default
9020 fi
9021
9022
9023
9024
9025
9026
9027
9028
9029 # Check whether --enable-fast-install was given.
9030 if test "${enable_fast_install+set}" = set; then :
9031 enableval=$enable_fast_install; p=${PACKAGE-default}
9032 case $enableval in
9033 yes) enable_fast_install=yes ;;
9034 no) enable_fast_install=no ;;
9035 *)
9036 enable_fast_install=no
9037 # Look at the argument we got. We use all the common list separators.
9038 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9039 for pkg in $enableval; do
9040 IFS=$lt_save_ifs
9041 if test "X$pkg" = "X$p"; then
9042 enable_fast_install=yes
9043 fi
9044 done
9045 IFS=$lt_save_ifs
9046 ;;
9047 esac
9048 else
9049 enable_fast_install=yes
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058
9059 shared_archive_member_spec=
9060 case $host,$enable_shared in
9061 power*-*-aix[5-9]*,yes)
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9063 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9064
9065 # Check whether --with-aix-soname was given.
9066 if test "${with_aix_soname+set}" = set; then :
9067 withval=$with_aix_soname; case $withval in
9068 aix|svr4|both)
9069 ;;
9070 *)
9071 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9072 ;;
9073 esac
9074 lt_cv_with_aix_soname=$with_aix_soname
9075 else
9076 if ${lt_cv_with_aix_soname+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 lt_cv_with_aix_soname=aix
9080 fi
9081
9082 with_aix_soname=$lt_cv_with_aix_soname
9083 fi
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9086 $as_echo "$with_aix_soname" >&6; }
9087 if test aix != "$with_aix_soname"; then
9088 # For the AIX way of multilib, we name the shared archive member
9089 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9090 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9091 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9092 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9093 if test 64 = "${OBJECT_MODE-32}"; then
9094 shared_archive_member_spec=shr_64
9095 else
9096 shared_archive_member_spec=shr
9097 fi
9098 fi
9099 ;;
9100 *)
9101 with_aix_soname=aix
9102 ;;
9103 esac
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 # This can be used to rebuild libtool when needed
9115 LIBTOOL_DEPS=$ltmain
9116
9117 # Always use our own libtool.
9118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149 test -z "$LN_S" && LN_S="ln -s"
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164 if test -n "${ZSH_VERSION+set}"; then
9165 setopt NO_GLOB_SUBST
9166 fi
9167
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9169 $as_echo_n "checking for objdir... " >&6; }
9170 if ${lt_cv_objdir+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 rm -f .libs 2>/dev/null
9174 mkdir .libs 2>/dev/null
9175 if test -d .libs; then
9176 lt_cv_objdir=.libs
9177 else
9178 # MS-DOS does not allow filenames that begin with a dot.
9179 lt_cv_objdir=_libs
9180 fi
9181 rmdir .libs 2>/dev/null
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9184 $as_echo "$lt_cv_objdir" >&6; }
9185 objdir=$lt_cv_objdir
9186
9187
9188
9189
9190
9191 cat >>confdefs.h <<_ACEOF
9192 #define LT_OBJDIR "$lt_cv_objdir/"
9193 _ACEOF
9194
9195
9196
9197
9198 case $host_os in
9199 aix3*)
9200 # AIX sometimes has problems with the GCC collect2 program. For some
9201 # reason, if we set the COLLECT_NAMES environment variable, the problems
9202 # vanish in a puff of smoke.
9203 if test set != "${COLLECT_NAMES+set}"; then
9204 COLLECT_NAMES=
9205 export COLLECT_NAMES
9206 fi
9207 ;;
9208 esac
9209
9210 # Global variables:
9211 ofile=libtool
9212 can_build_shared=yes
9213
9214 # All known linkers require a '.a' archive for static linking (except MSVC,
9215 # which needs '.lib').
9216 libext=a
9217
9218 with_gnu_ld=$lt_cv_prog_gnu_ld
9219
9220 old_CC=$CC
9221 old_CFLAGS=$CFLAGS
9222
9223 # Set sane defaults for various variables
9224 test -z "$CC" && CC=cc
9225 test -z "$LTCC" && LTCC=$CC
9226 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9227 test -z "$LD" && LD=ld
9228 test -z "$ac_objext" && ac_objext=o
9229
9230 func_cc_basename $compiler
9231 cc_basename=$func_cc_basename_result
9232
9233
9234 # Only perform the check for file, if the check method requires it
9235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9236 case $deplibs_check_method in
9237 file_magic*)
9238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9240 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 case $MAGIC_CMD in
9245 [\\/*] | ?:[\\/]*)
9246 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9247 ;;
9248 *)
9249 lt_save_MAGIC_CMD=$MAGIC_CMD
9250 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9252 for ac_dir in $ac_dummy; do
9253 IFS=$lt_save_ifs
9254 test -z "$ac_dir" && ac_dir=.
9255 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9256 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9257 if test -n "$file_magic_test_file"; then
9258 case $deplibs_check_method in
9259 "file_magic "*)
9260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9261 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9263 $EGREP "$file_magic_regex" > /dev/null; then
9264 :
9265 else
9266 cat <<_LT_EOF 1>&2
9267
9268 *** Warning: the command libtool uses to detect shared libraries,
9269 *** $file_magic_cmd, produces output that libtool cannot recognize.
9270 *** The result is that libtool may fail to recognize shared libraries
9271 *** as such. This will affect the creation of libtool libraries that
9272 *** depend on shared libraries, but programs linked with such libtool
9273 *** libraries will work regardless of this problem. Nevertheless, you
9274 *** may want to report the problem to your system manager and/or to
9275 *** bug-libtool@gnu.org
9276
9277 _LT_EOF
9278 fi ;;
9279 esac
9280 fi
9281 break
9282 fi
9283 done
9284 IFS=$lt_save_ifs
9285 MAGIC_CMD=$lt_save_MAGIC_CMD
9286 ;;
9287 esac
9288 fi
9289
9290 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9291 if test -n "$MAGIC_CMD"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9293 $as_echo "$MAGIC_CMD" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9297 fi
9298
9299
9300
9301
9302
9303 if test -z "$lt_cv_path_MAGIC_CMD"; then
9304 if test -n "$ac_tool_prefix"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9306 $as_echo_n "checking for file... " >&6; }
9307 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 case $MAGIC_CMD in
9311 [\\/*] | ?:[\\/]*)
9312 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9313 ;;
9314 *)
9315 lt_save_MAGIC_CMD=$MAGIC_CMD
9316 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9318 for ac_dir in $ac_dummy; do
9319 IFS=$lt_save_ifs
9320 test -z "$ac_dir" && ac_dir=.
9321 if test -f "$ac_dir/file"; then
9322 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9323 if test -n "$file_magic_test_file"; then
9324 case $deplibs_check_method in
9325 "file_magic "*)
9326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9327 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9329 $EGREP "$file_magic_regex" > /dev/null; then
9330 :
9331 else
9332 cat <<_LT_EOF 1>&2
9333
9334 *** Warning: the command libtool uses to detect shared libraries,
9335 *** $file_magic_cmd, produces output that libtool cannot recognize.
9336 *** The result is that libtool may fail to recognize shared libraries
9337 *** as such. This will affect the creation of libtool libraries that
9338 *** depend on shared libraries, but programs linked with such libtool
9339 *** libraries will work regardless of this problem. Nevertheless, you
9340 *** may want to report the problem to your system manager and/or to
9341 *** bug-libtool@gnu.org
9342
9343 _LT_EOF
9344 fi ;;
9345 esac
9346 fi
9347 break
9348 fi
9349 done
9350 IFS=$lt_save_ifs
9351 MAGIC_CMD=$lt_save_MAGIC_CMD
9352 ;;
9353 esac
9354 fi
9355
9356 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9357 if test -n "$MAGIC_CMD"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9359 $as_echo "$MAGIC_CMD" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9363 fi
9364
9365
9366 else
9367 MAGIC_CMD=:
9368 fi
9369 fi
9370
9371 fi
9372 ;;
9373 esac
9374
9375 # Use C for the default configuration in the libtool script
9376
9377 lt_save_CC=$CC
9378 ac_ext=c
9379 ac_cpp='$CPP $CPPFLAGS'
9380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9383
9384
9385 # Source file extension for C test sources.
9386 ac_ext=c
9387
9388 # Object file extension for compiled C test sources.
9389 objext=o
9390 objext=$objext
9391
9392 # Code to be used in simple compile tests
9393 lt_simple_compile_test_code="int some_variable = 0;"
9394
9395 # Code to be used in simple link tests
9396 lt_simple_link_test_code='int main(){return(0);}'
9397
9398
9399
9400
9401
9402
9403
9404 # If no C compiler was specified, use CC.
9405 LTCC=${LTCC-"$CC"}
9406
9407 # If no C compiler flags were specified, use CFLAGS.
9408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9409
9410 # Allow CC to be a program name with arguments.
9411 compiler=$CC
9412
9413 # Save the default compiler, since it gets overwritten when the other
9414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9415 compiler_DEFAULT=$CC
9416
9417 # save warnings/boilerplate of simple test code
9418 ac_outfile=conftest.$ac_objext
9419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9421 _lt_compiler_boilerplate=`cat conftest.err`
9422 $RM -r conftest*
9423
9424 ac_outfile=conftest.$ac_objext
9425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9427 _lt_linker_boilerplate=`cat conftest.err`
9428 $RM -r conftest*
9429
9430
9431 ## CAVEAT EMPTOR:
9432 ## There is no encapsulation within the following macros, do not change
9433 ## the running order or otherwise move them around unless you know exactly
9434 ## what you are doing...
9435 if test -n "$compiler"; then
9436
9437 lt_prog_compiler_no_builtin_flag=
9438
9439 if test yes = "$GCC"; then
9440 case $cc_basename in
9441 nvcc*)
9442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9443 *)
9444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9445 esac
9446
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9449 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 lt_cv_prog_compiler_rtti_exceptions=no
9453 ac_outfile=conftest.$ac_objext
9454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9456 # Insert the option either (1) after the last *FLAGS variable, or
9457 # (2) before a word containing "conftest.", or (3) at the end.
9458 # Note that $ac_compile itself does not contain backslashes and begins
9459 # with a dollar sign (not a hyphen), so the echo should work correctly.
9460 # The option is referenced via a variable to avoid confusing sed.
9461 lt_compile=`echo "$ac_compile" | $SED \
9462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464 -e 's:$: $lt_compiler_flag:'`
9465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9466 (eval "$lt_compile" 2>conftest.err)
9467 ac_status=$?
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 if (exit $ac_status) && test -s "$ac_outfile"; then
9471 # The compiler can only warn and ignore the option if not recognized
9472 # So say no if there are warnings other than the usual output.
9473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_rtti_exceptions=yes
9477 fi
9478 fi
9479 $RM -r conftest*
9480
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9484
9485 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9487 else
9488 :
9489 fi
9490
9491 fi
9492
9493
9494
9495
9496
9497
9498 lt_prog_compiler_wl=
9499 lt_prog_compiler_pic=
9500 lt_prog_compiler_static=
9501
9502
9503 if test yes = "$GCC"; then
9504 lt_prog_compiler_wl='-Wl,'
9505 lt_prog_compiler_static='-static'
9506
9507 case $host_os in
9508 aix*)
9509 # All AIX code is PIC.
9510 if test ia64 = "$host_cpu"; then
9511 # AIX 5 now supports IA64 processor
9512 lt_prog_compiler_static='-Bstatic'
9513 fi
9514 lt_prog_compiler_pic='-fPIC'
9515 ;;
9516
9517 amigaos*)
9518 case $host_cpu in
9519 powerpc)
9520 # see comment about AmigaOS4 .so support
9521 lt_prog_compiler_pic='-fPIC'
9522 ;;
9523 m68k)
9524 # FIXME: we need at least 68020 code to build shared libraries, but
9525 # adding the '-m68020' flag to GCC prevents building anything better,
9526 # like '-m68040'.
9527 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9528 ;;
9529 esac
9530 ;;
9531
9532 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9533 # PIC is the default for these OSes.
9534 ;;
9535
9536 mingw* | cygwin* | pw32* | os2* | cegcc*)
9537 # This hack is so that the source file can tell whether it is being
9538 # built for inclusion in a dll (and should export symbols for example).
9539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9540 # (--disable-auto-import) libraries
9541 lt_prog_compiler_pic='-DDLL_EXPORT'
9542 case $host_os in
9543 os2*)
9544 lt_prog_compiler_static='$wl-static'
9545 ;;
9546 esac
9547 ;;
9548
9549 darwin* | rhapsody*)
9550 # PIC is the default on this platform
9551 # Common symbols not allowed in MH_DYLIB files
9552 lt_prog_compiler_pic='-fno-common'
9553 ;;
9554
9555 haiku*)
9556 # PIC is the default for Haiku.
9557 # The "-static" flag exists, but is broken.
9558 lt_prog_compiler_static=
9559 ;;
9560
9561 hpux*)
9562 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9563 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9564 # sets the default TLS model and affects inlining.
9565 case $host_cpu in
9566 hppa*64*)
9567 # +Z the default
9568 ;;
9569 *)
9570 lt_prog_compiler_pic='-fPIC'
9571 ;;
9572 esac
9573 ;;
9574
9575 interix[3-9]*)
9576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9577 # Instead, we relocate shared libraries at runtime.
9578 ;;
9579
9580 msdosdjgpp*)
9581 # Just because we use GCC doesn't mean we suddenly get shared libraries
9582 # on systems that don't support them.
9583 lt_prog_compiler_can_build_shared=no
9584 enable_shared=no
9585 ;;
9586
9587 *nto* | *qnx*)
9588 # QNX uses GNU C++, but need to define -shared option too, otherwise
9589 # it will coredump.
9590 lt_prog_compiler_pic='-fPIC -shared'
9591 ;;
9592
9593 sysv4*MP*)
9594 if test -d /usr/nec; then
9595 lt_prog_compiler_pic=-Kconform_pic
9596 fi
9597 ;;
9598
9599 *)
9600 lt_prog_compiler_pic='-fPIC'
9601 ;;
9602 esac
9603
9604 case $cc_basename in
9605 nvcc*) # Cuda Compiler Driver 2.2
9606 lt_prog_compiler_wl='-Xlinker '
9607 if test -n "$lt_prog_compiler_pic"; then
9608 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9609 fi
9610 ;;
9611 esac
9612 else
9613 # PORTME Check for flag to pass linker flags through the system compiler.
9614 case $host_os in
9615 aix*)
9616 lt_prog_compiler_wl='-Wl,'
9617 if test ia64 = "$host_cpu"; then
9618 # AIX 5 now supports IA64 processor
9619 lt_prog_compiler_static='-Bstatic'
9620 else
9621 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9622 fi
9623 ;;
9624
9625 darwin* | rhapsody*)
9626 # PIC is the default on this platform
9627 # Common symbols not allowed in MH_DYLIB files
9628 lt_prog_compiler_pic='-fno-common'
9629 case $cc_basename in
9630 nagfor*)
9631 # NAG Fortran compiler
9632 lt_prog_compiler_wl='-Wl,-Wl,,'
9633 lt_prog_compiler_pic='-PIC'
9634 lt_prog_compiler_static='-Bstatic'
9635 ;;
9636 esac
9637 ;;
9638
9639 mingw* | cygwin* | pw32* | os2* | cegcc*)
9640 # This hack is so that the source file can tell whether it is being
9641 # built for inclusion in a dll (and should export symbols for example).
9642 lt_prog_compiler_pic='-DDLL_EXPORT'
9643 case $host_os in
9644 os2*)
9645 lt_prog_compiler_static='$wl-static'
9646 ;;
9647 esac
9648 ;;
9649
9650 hpux9* | hpux10* | hpux11*)
9651 lt_prog_compiler_wl='-Wl,'
9652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9653 # not for PA HP-UX.
9654 case $host_cpu in
9655 hppa*64*|ia64*)
9656 # +Z the default
9657 ;;
9658 *)
9659 lt_prog_compiler_pic='+Z'
9660 ;;
9661 esac
9662 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9663 lt_prog_compiler_static='$wl-a ${wl}archive'
9664 ;;
9665
9666 irix5* | irix6* | nonstopux*)
9667 lt_prog_compiler_wl='-Wl,'
9668 # PIC (with -KPIC) is the default.
9669 lt_prog_compiler_static='-non_shared'
9670 ;;
9671
9672 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9673 case $cc_basename in
9674 # old Intel for x86_64, which still supported -KPIC.
9675 ecc*)
9676 lt_prog_compiler_wl='-Wl,'
9677 lt_prog_compiler_pic='-KPIC'
9678 lt_prog_compiler_static='-static'
9679 ;;
9680 # icc used to be incompatible with GCC.
9681 # ICC 10 doesn't accept -KPIC any more.
9682 icc* | ifort*)
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_pic='-fPIC'
9685 lt_prog_compiler_static='-static'
9686 ;;
9687 # Lahey Fortran 8.1.
9688 lf95*)
9689 lt_prog_compiler_wl='-Wl,'
9690 lt_prog_compiler_pic='--shared'
9691 lt_prog_compiler_static='--static'
9692 ;;
9693 nagfor*)
9694 # NAG Fortran compiler
9695 lt_prog_compiler_wl='-Wl,-Wl,,'
9696 lt_prog_compiler_pic='-PIC'
9697 lt_prog_compiler_static='-Bstatic'
9698 ;;
9699 tcc*)
9700 # Fabrice Bellard et al's Tiny C Compiler
9701 lt_prog_compiler_wl='-Wl,'
9702 lt_prog_compiler_pic='-fPIC'
9703 lt_prog_compiler_static='-static'
9704 ;;
9705 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9706 # Portland Group compilers (*not* the Pentium gcc compiler,
9707 # which looks to be a dead project)
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_pic='-fpic'
9710 lt_prog_compiler_static='-Bstatic'
9711 ;;
9712 ccc*)
9713 lt_prog_compiler_wl='-Wl,'
9714 # All Alpha code is PIC.
9715 lt_prog_compiler_static='-non_shared'
9716 ;;
9717 xl* | bgxl* | bgf* | mpixl*)
9718 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-qpic'
9721 lt_prog_compiler_static='-qstaticlink'
9722 ;;
9723 *)
9724 case `$CC -V 2>&1 | sed 5q` in
9725 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9726 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9727 lt_prog_compiler_pic='-KPIC'
9728 lt_prog_compiler_static='-Bstatic'
9729 lt_prog_compiler_wl=''
9730 ;;
9731 *Sun\ F* | *Sun*Fortran*)
9732 lt_prog_compiler_pic='-KPIC'
9733 lt_prog_compiler_static='-Bstatic'
9734 lt_prog_compiler_wl='-Qoption ld '
9735 ;;
9736 *Sun\ C*)
9737 # Sun C 5.9
9738 lt_prog_compiler_pic='-KPIC'
9739 lt_prog_compiler_static='-Bstatic'
9740 lt_prog_compiler_wl='-Wl,'
9741 ;;
9742 *Intel*\ [CF]*Compiler*)
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_pic='-fPIC'
9745 lt_prog_compiler_static='-static'
9746 ;;
9747 *Portland\ Group*)
9748 lt_prog_compiler_wl='-Wl,'
9749 lt_prog_compiler_pic='-fpic'
9750 lt_prog_compiler_static='-Bstatic'
9751 ;;
9752 esac
9753 ;;
9754 esac
9755 ;;
9756
9757 newsos6)
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-Bstatic'
9760 ;;
9761
9762 *nto* | *qnx*)
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9764 # it will coredump.
9765 lt_prog_compiler_pic='-fPIC -shared'
9766 ;;
9767
9768 osf3* | osf4* | osf5*)
9769 lt_prog_compiler_wl='-Wl,'
9770 # All OSF/1 code is PIC.
9771 lt_prog_compiler_static='-non_shared'
9772 ;;
9773
9774 rdos*)
9775 lt_prog_compiler_static='-non_shared'
9776 ;;
9777
9778 solaris*)
9779 lt_prog_compiler_pic='-KPIC'
9780 lt_prog_compiler_static='-Bstatic'
9781 case $cc_basename in
9782 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9783 lt_prog_compiler_wl='-Qoption ld ';;
9784 *)
9785 lt_prog_compiler_wl='-Wl,';;
9786 esac
9787 ;;
9788
9789 sunos4*)
9790 lt_prog_compiler_wl='-Qoption ld '
9791 lt_prog_compiler_pic='-PIC'
9792 lt_prog_compiler_static='-Bstatic'
9793 ;;
9794
9795 sysv4 | sysv4.2uw2* | sysv4.3*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-KPIC'
9798 lt_prog_compiler_static='-Bstatic'
9799 ;;
9800
9801 sysv4*MP*)
9802 if test -d /usr/nec; then
9803 lt_prog_compiler_pic='-Kconform_pic'
9804 lt_prog_compiler_static='-Bstatic'
9805 fi
9806 ;;
9807
9808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-KPIC'
9811 lt_prog_compiler_static='-Bstatic'
9812 ;;
9813
9814 unicos*)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_can_build_shared=no
9817 ;;
9818
9819 uts4*)
9820 lt_prog_compiler_pic='-pic'
9821 lt_prog_compiler_static='-Bstatic'
9822 ;;
9823
9824 *)
9825 lt_prog_compiler_can_build_shared=no
9826 ;;
9827 esac
9828 fi
9829
9830 case $host_os in
9831 # For platforms that do not support PIC, -DPIC is meaningless:
9832 *djgpp*)
9833 lt_prog_compiler_pic=
9834 ;;
9835 *)
9836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9837 ;;
9838 esac
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9841 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9842 if ${lt_cv_prog_compiler_pic+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9848 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9849 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9850
9851 #
9852 # Check to make sure the PIC flag actually works.
9853 #
9854 if test -n "$lt_prog_compiler_pic"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9856 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9857 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 lt_cv_prog_compiler_pic_works=no
9861 ac_outfile=conftest.$ac_objext
9862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9863 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9864 # Insert the option either (1) after the last *FLAGS variable, or
9865 # (2) before a word containing "conftest.", or (3) at the end.
9866 # Note that $ac_compile itself does not contain backslashes and begins
9867 # with a dollar sign (not a hyphen), so the echo should work correctly.
9868 # The option is referenced via a variable to avoid confusing sed.
9869 lt_compile=`echo "$ac_compile" | $SED \
9870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9872 -e 's:$: $lt_compiler_flag:'`
9873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9874 (eval "$lt_compile" 2>conftest.err)
9875 ac_status=$?
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 if (exit $ac_status) && test -s "$ac_outfile"; then
9879 # The compiler can only warn and ignore the option if not recognized
9880 # So say no if there are warnings other than the usual output.
9881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9884 lt_cv_prog_compiler_pic_works=yes
9885 fi
9886 fi
9887 $RM -r conftest*
9888
9889 fi
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9891 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9892
9893 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9894 case $lt_prog_compiler_pic in
9895 "" | " "*) ;;
9896 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9897 esac
9898 else
9899 lt_prog_compiler_pic=
9900 lt_prog_compiler_can_build_shared=no
9901 fi
9902
9903 fi
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915 #
9916 # Check to make sure the static flag actually works.
9917 #
9918 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9920 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9921 if ${lt_cv_prog_compiler_static_works+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 lt_cv_prog_compiler_static_works=no
9925 save_LDFLAGS=$LDFLAGS
9926 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9927 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9929 # The linker can only warn and ignore the option if not recognized
9930 # So say no if there are warnings
9931 if test -s conftest.err; then
9932 # Append any errors to the config.log.
9933 cat conftest.err 1>&5
9934 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9936 if diff conftest.exp conftest.er2 >/dev/null; then
9937 lt_cv_prog_compiler_static_works=yes
9938 fi
9939 else
9940 lt_cv_prog_compiler_static_works=yes
9941 fi
9942 fi
9943 $RM -r conftest*
9944 LDFLAGS=$save_LDFLAGS
9945
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9948 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9949
9950 if test yes = "$lt_cv_prog_compiler_static_works"; then
9951 :
9952 else
9953 lt_prog_compiler_static=
9954 fi
9955
9956
9957
9958
9959
9960
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9963 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9964 if ${lt_cv_prog_compiler_c_o+:} false; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 lt_cv_prog_compiler_c_o=no
9968 $RM -r conftest 2>/dev/null
9969 mkdir conftest
9970 cd conftest
9971 mkdir out
9972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9973
9974 lt_compiler_flag="-o out/conftest2.$ac_objext"
9975 # Insert the option either (1) after the last *FLAGS variable, or
9976 # (2) before a word containing "conftest.", or (3) at the end.
9977 # Note that $ac_compile itself does not contain backslashes and begins
9978 # with a dollar sign (not a hyphen), so the echo should work correctly.
9979 lt_compile=`echo "$ac_compile" | $SED \
9980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9982 -e 's:$: $lt_compiler_flag:'`
9983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9984 (eval "$lt_compile" 2>out/conftest.err)
9985 ac_status=$?
9986 cat out/conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9989 then
9990 # The compiler can only warn and ignore the option if not recognized
9991 # So say no if there are warnings
9992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9995 lt_cv_prog_compiler_c_o=yes
9996 fi
9997 fi
9998 chmod u+w . 2>&5
9999 $RM -r conftest*
10000 # SGI C++ compiler will create directory out/ii_files/ for
10001 # template instantiation
10002 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10003 $RM out/* && rmdir out
10004 cd ..
10005 $RM -r conftest
10006 $RM -r conftest*
10007
10008 fi
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10010 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10011
10012
10013
10014
10015
10016
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10019 if ${lt_cv_prog_compiler_c_o+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 lt_cv_prog_compiler_c_o=no
10023 $RM -r conftest 2>/dev/null
10024 mkdir conftest
10025 cd conftest
10026 mkdir out
10027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10028
10029 lt_compiler_flag="-o out/conftest2.$ac_objext"
10030 # Insert the option either (1) after the last *FLAGS variable, or
10031 # (2) before a word containing "conftest.", or (3) at the end.
10032 # Note that $ac_compile itself does not contain backslashes and begins
10033 # with a dollar sign (not a hyphen), so the echo should work correctly.
10034 lt_compile=`echo "$ac_compile" | $SED \
10035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10037 -e 's:$: $lt_compiler_flag:'`
10038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10039 (eval "$lt_compile" 2>out/conftest.err)
10040 ac_status=$?
10041 cat out/conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10044 then
10045 # The compiler can only warn and ignore the option if not recognized
10046 # So say no if there are warnings
10047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10050 lt_cv_prog_compiler_c_o=yes
10051 fi
10052 fi
10053 chmod u+w . 2>&5
10054 $RM -r conftest*
10055 # SGI C++ compiler will create directory out/ii_files/ for
10056 # template instantiation
10057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10058 $RM out/* && rmdir out
10059 cd ..
10060 $RM -r conftest
10061 $RM -r conftest*
10062
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10065 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10066
10067
10068
10069
10070 hard_links=nottested
10071 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10072 # do not overwrite the value of need_locks provided by the user
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10074 $as_echo_n "checking if we can lock with hard links... " >&6; }
10075 hard_links=yes
10076 $RM -r conftest*
10077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10078 touch conftest.a
10079 ln conftest.a conftest.b 2>&5 || hard_links=no
10080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10082 $as_echo "$hard_links" >&6; }
10083 if test no = "$hard_links"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10085 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10086 need_locks=warn
10087 fi
10088 else
10089 need_locks=no
10090 fi
10091
10092
10093
10094
10095
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10099
10100 runpath_var=
10101 allow_undefined_flag=
10102 always_export_symbols=no
10103 archive_cmds=
10104 archive_expsym_cmds=
10105 compiler_needs_object=no
10106 enable_shared_with_static_runtimes=no
10107 export_dynamic_flag_spec=
10108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10109 hardcode_automatic=no
10110 hardcode_direct=no
10111 hardcode_direct_absolute=no
10112 hardcode_libdir_flag_spec=
10113 hardcode_libdir_separator=
10114 hardcode_minus_L=no
10115 hardcode_shlibpath_var=unsupported
10116 inherit_rpath=no
10117 link_all_deplibs=unknown
10118 module_cmds=
10119 module_expsym_cmds=
10120 old_archive_from_new_cmds=
10121 old_archive_from_expsyms_cmds=
10122 thread_safe_flag_spec=
10123 whole_archive_flag_spec=
10124 # include_expsyms should be a list of space-separated symbols to be *always*
10125 # included in the symbol list
10126 include_expsyms=
10127 # exclude_expsyms can be an extended regexp of symbols to exclude
10128 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10129 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10130 # as well as any symbol that contains 'd'.
10131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10133 # platforms (ab)use it in PIC code, but their linkers get confused if
10134 # the symbol is explicitly referenced. Since portable code cannot
10135 # rely on this symbol name, it's probably fine to never include it in
10136 # preloaded symbol tables.
10137 # Exclude shared library initialization/finalization symbols.
10138 extract_expsyms_cmds=
10139
10140 case $host_os in
10141 cygwin* | mingw* | pw32* | cegcc*)
10142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10143 # When not using gcc, we currently assume that we are using
10144 # Microsoft Visual C++.
10145 if test yes != "$GCC"; then
10146 with_gnu_ld=no
10147 fi
10148 ;;
10149 interix*)
10150 # we just hope/assume this is gcc and not c89 (= MSVC++)
10151 with_gnu_ld=yes
10152 ;;
10153 openbsd* | bitrig*)
10154 with_gnu_ld=no
10155 ;;
10156 esac
10157
10158 ld_shlibs=yes
10159
10160 # On some targets, GNU ld is compatible enough with the native linker
10161 # that we're better off using the native interface for both.
10162 lt_use_gnu_ld_interface=no
10163 if test yes = "$with_gnu_ld"; then
10164 case $host_os in
10165 aix*)
10166 # The AIX port of GNU ld has always aspired to compatibility
10167 # with the native linker. However, as the warning in the GNU ld
10168 # block says, versions before 2.19.5* couldn't really create working
10169 # shared libraries, regardless of the interface used.
10170 case `$LD -v 2>&1` in
10171 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10172 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10173 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10174 *)
10175 lt_use_gnu_ld_interface=yes
10176 ;;
10177 esac
10178 ;;
10179 *)
10180 lt_use_gnu_ld_interface=yes
10181 ;;
10182 esac
10183 fi
10184
10185 if test yes = "$lt_use_gnu_ld_interface"; then
10186 # If archive_cmds runs LD, not CC, wlarc should be empty
10187 wlarc='$wl'
10188
10189 # Set some defaults for GNU ld with shared library support. These
10190 # are reset later if shared libraries are not supported. Putting them
10191 # here allows them to be overridden if necessary.
10192 runpath_var=LD_RUN_PATH
10193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194 export_dynamic_flag_spec='$wl--export-dynamic'
10195 # ancient GNU ld didn't support --whole-archive et. al.
10196 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10197 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10198 else
10199 whole_archive_flag_spec=
10200 fi
10201 supports_anon_versioning=no
10202 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10203 *GNU\ gold*) supports_anon_versioning=yes ;;
10204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10207 *\ 2.11.*) ;; # other 2.11 versions
10208 *) supports_anon_versioning=yes ;;
10209 esac
10210
10211 # See if GNU ld supports shared libraries.
10212 case $host_os in
10213 aix[3-9]*)
10214 # On AIX/PPC, the GNU linker is very broken
10215 if test ia64 != "$host_cpu"; then
10216 ld_shlibs=no
10217 cat <<_LT_EOF 1>&2
10218
10219 *** Warning: the GNU linker, at least up to release 2.19, is reported
10220 *** to be unable to reliably create shared libraries on AIX.
10221 *** Therefore, libtool is disabling shared libraries support. If you
10222 *** really care for shared libraries, you may want to install binutils
10223 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10224 *** You will then need to restart the configuration process.
10225
10226 _LT_EOF
10227 fi
10228 ;;
10229
10230 amigaos*)
10231 case $host_cpu in
10232 powerpc)
10233 # see comment about AmigaOS4 .so support
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10235 archive_expsym_cmds=''
10236 ;;
10237 m68k)
10238 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)'
10239 hardcode_libdir_flag_spec='-L$libdir'
10240 hardcode_minus_L=yes
10241 ;;
10242 esac
10243 ;;
10244
10245 beos*)
10246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247 allow_undefined_flag=unsupported
10248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10249 # support --undefined. This deserves some investigation. FIXME
10250 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10251 else
10252 ld_shlibs=no
10253 fi
10254 ;;
10255
10256 cygwin* | mingw* | pw32* | cegcc*)
10257 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10258 # as there is no search path for DLLs.
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 export_dynamic_flag_spec='$wl--export-all-symbols'
10261 allow_undefined_flag=unsupported
10262 always_export_symbols=no
10263 enable_shared_with_static_runtimes=yes
10264 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'
10265 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10266
10267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10269 # If the export-symbols file already is a .def file, use it as
10270 # is; otherwise, prepend EXPORTS...
10271 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10272 cp $export_symbols $output_objdir/$soname.def;
10273 else
10274 echo EXPORTS > $output_objdir/$soname.def;
10275 cat $export_symbols >> $output_objdir/$soname.def;
10276 fi~
10277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10278 else
10279 ld_shlibs=no
10280 fi
10281 ;;
10282
10283 haiku*)
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10285 link_all_deplibs=yes
10286 ;;
10287
10288 os2*)
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10291 allow_undefined_flag=unsupported
10292 shrext_cmds=.dll
10293 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10294 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10295 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10296 $ECHO EXPORTS >> $output_objdir/$libname.def~
10297 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10299 emximp -o $lib $output_objdir/$libname.def'
10300 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10303 $ECHO EXPORTS >> $output_objdir/$libname.def~
10304 prefix_cmds="$SED"~
10305 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10306 prefix_cmds="$prefix_cmds -e 1d";
10307 fi~
10308 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10309 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10310 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10311 emximp -o $lib $output_objdir/$libname.def'
10312 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10313 enable_shared_with_static_runtimes=yes
10314 ;;
10315
10316 interix[3-9]*)
10317 hardcode_direct=no
10318 hardcode_shlibpath_var=no
10319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10320 export_dynamic_flag_spec='$wl-E'
10321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10322 # Instead, shared libraries are loaded at an image base (0x10000000 by
10323 # default) and relocated if they conflict, which is a slow very memory
10324 # consuming and fragmenting process. To avoid this, we pick a random,
10325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10328 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'
10329 ;;
10330
10331 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10332 tmp_diet=no
10333 if test linux-dietlibc = "$host_os"; then
10334 case $cc_basename in
10335 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10336 esac
10337 fi
10338 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10339 && test no = "$tmp_diet"
10340 then
10341 tmp_addflag=' $pic_flag'
10342 tmp_sharedflag='-shared'
10343 case $cc_basename,$host_cpu in
10344 pgcc*) # Portland Group C compiler
10345 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'
10346 tmp_addflag=' $pic_flag'
10347 ;;
10348 pgf77* | pgf90* | pgf95* | pgfortran*)
10349 # Portland Group f77 and f90 compilers
10350 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'
10351 tmp_addflag=' $pic_flag -Mnomain' ;;
10352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10353 tmp_addflag=' -i_dynamic' ;;
10354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10355 tmp_addflag=' -i_dynamic -nofor_main' ;;
10356 ifc* | ifort*) # Intel Fortran compiler
10357 tmp_addflag=' -nofor_main' ;;
10358 lf95*) # Lahey Fortran 8.1
10359 whole_archive_flag_spec=
10360 tmp_sharedflag='--shared' ;;
10361 nagfor*) # NAGFOR 5.3
10362 tmp_sharedflag='-Wl,-shared' ;;
10363 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10364 tmp_sharedflag='-qmkshrobj'
10365 tmp_addflag= ;;
10366 nvcc*) # Cuda Compiler Driver 2.2
10367 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'
10368 compiler_needs_object=yes
10369 ;;
10370 esac
10371 case `$CC -V 2>&1 | sed 5q` in
10372 *Sun\ C*) # Sun C 5.9
10373 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'
10374 compiler_needs_object=yes
10375 tmp_sharedflag='-G' ;;
10376 *Sun\ F*) # Sun Fortran 8.3
10377 tmp_sharedflag='-G' ;;
10378 esac
10379 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10380
10381 if test yes = "$supports_anon_versioning"; then
10382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10384 echo "local: *; };" >> $output_objdir/$libname.ver~
10385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10386 fi
10387
10388 case $cc_basename in
10389 tcc*)
10390 export_dynamic_flag_spec='-rdynamic'
10391 ;;
10392 xlf* | bgf* | bgxlf* | mpixlf*)
10393 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10394 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10396 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10397 if test yes = "$supports_anon_versioning"; then
10398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10400 echo "local: *; };" >> $output_objdir/$libname.ver~
10401 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10402 fi
10403 ;;
10404 esac
10405 else
10406 ld_shlibs=no
10407 fi
10408 ;;
10409
10410 netbsd*)
10411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10413 wlarc=
10414 else
10415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10417 fi
10418 ;;
10419
10420 solaris*)
10421 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10422 ld_shlibs=no
10423 cat <<_LT_EOF 1>&2
10424
10425 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10426 *** create shared libraries on Solaris systems. Therefore, libtool
10427 *** is disabling shared libraries support. We urge you to upgrade GNU
10428 *** binutils to release 2.9.1 or newer. Another option is to modify
10429 *** your PATH or compiler configuration so that the native linker is
10430 *** used, and then restart.
10431
10432 _LT_EOF
10433 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10436 else
10437 ld_shlibs=no
10438 fi
10439 ;;
10440
10441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10442 case `$LD -v 2>&1` in
10443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10444 ld_shlibs=no
10445 cat <<_LT_EOF 1>&2
10446
10447 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10448 *** reliably create shared libraries on SCO systems. Therefore, libtool
10449 *** is disabling shared libraries support. We urge you to upgrade GNU
10450 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10451 *** your PATH or compiler configuration so that the native linker is
10452 *** used, and then restart.
10453
10454 _LT_EOF
10455 ;;
10456 *)
10457 # For security reasons, it is highly recommended that you always
10458 # use absolute paths for naming shared libraries, and exclude the
10459 # DT_RUNPATH tag from executables and libraries. But doing so
10460 # requires that you compile everything twice, which is a pain.
10461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10465 else
10466 ld_shlibs=no
10467 fi
10468 ;;
10469 esac
10470 ;;
10471
10472 sunos4*)
10473 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10474 wlarc=
10475 hardcode_direct=yes
10476 hardcode_shlibpath_var=no
10477 ;;
10478
10479 *)
10480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10482 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10483 else
10484 ld_shlibs=no
10485 fi
10486 ;;
10487 esac
10488
10489 if test no = "$ld_shlibs"; then
10490 runpath_var=
10491 hardcode_libdir_flag_spec=
10492 export_dynamic_flag_spec=
10493 whole_archive_flag_spec=
10494 fi
10495 else
10496 # PORTME fill in a description of your system's linker (not GNU ld)
10497 case $host_os in
10498 aix3*)
10499 allow_undefined_flag=unsupported
10500 always_export_symbols=yes
10501 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'
10502 # Note: this linker hardcodes the directories in LIBPATH if there
10503 # are no directories specified by -L.
10504 hardcode_minus_L=yes
10505 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10506 # Neither direct hardcoding nor static linking is supported with a
10507 # broken collect2.
10508 hardcode_direct=unsupported
10509 fi
10510 ;;
10511
10512 aix[4-9]*)
10513 if test ia64 = "$host_cpu"; then
10514 # On IA64, the linker does run time linking by default, so we don't
10515 # have to do anything special.
10516 aix_use_runtimelinking=no
10517 exp_sym_flag='-Bexport'
10518 no_entry_flag=
10519 else
10520 # If we're using GNU nm, then we don't want the "-C" option.
10521 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10522 # Without the "-l" option, or with the "-B" option, AIX nm treats
10523 # weak defined symbols like other global defined symbols, whereas
10524 # GNU nm marks them as "W".
10525 # While the 'weak' keyword is ignored in the Export File, we need
10526 # it in the Import File for the 'aix-soname' feature, so we have
10527 # to replace the "-B" option with "-P" for AIX nm.
10528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529 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'
10530 else
10531 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'
10532 fi
10533 aix_use_runtimelinking=no
10534
10535 # Test if we are trying to use run time linking or normal
10536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537 # have runtime linking enabled, and use it for executables.
10538 # For shared libraries, we enable/disable runtime linking
10539 # depending on the kind of the shared library created -
10540 # when "with_aix_soname,aix_use_runtimelinking" is:
10541 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10542 # "aix,yes" lib.so shared, rtl:yes, for executables
10543 # lib.a static archive
10544 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10545 # lib.a(lib.so.V) shared, rtl:no, for executables
10546 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10547 # lib.a(lib.so.V) shared, rtl:no
10548 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10549 # lib.a static archive
10550 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10551 for ld_flag in $LDFLAGS; do
10552 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10553 aix_use_runtimelinking=yes
10554 break
10555 fi
10556 done
10557 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10558 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10559 # so we don't have lib.a shared libs to link our executables.
10560 # We have to force runtime linking in this case.
10561 aix_use_runtimelinking=yes
10562 LDFLAGS="$LDFLAGS -Wl,-brtl"
10563 fi
10564 ;;
10565 esac
10566
10567 exp_sym_flag='-bexport'
10568 no_entry_flag='-bnoentry'
10569 fi
10570
10571 # When large executables or shared objects are built, AIX ld can
10572 # have problems creating the table of contents. If linking a library
10573 # or program results in "error TOC overflow" add -mminimal-toc to
10574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10576
10577 archive_cmds=''
10578 hardcode_direct=yes
10579 hardcode_direct_absolute=yes
10580 hardcode_libdir_separator=':'
10581 link_all_deplibs=yes
10582 file_list_spec='$wl-f,'
10583 case $with_aix_soname,$aix_use_runtimelinking in
10584 aix,*) ;; # traditional, no import file
10585 svr4,* | *,yes) # use import file
10586 # The Import File defines what to hardcode.
10587 hardcode_direct=no
10588 hardcode_direct_absolute=no
10589 ;;
10590 esac
10591
10592 if test yes = "$GCC"; then
10593 case $host_os in aix4.[012]|aix4.[012].*)
10594 # We only want to do this on AIX 4.2 and lower, the check
10595 # below for broken collect2 doesn't work under 4.3+
10596 collect2name=`$CC -print-prog-name=collect2`
10597 if test -f "$collect2name" &&
10598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10599 then
10600 # We have reworked collect2
10601 :
10602 else
10603 # We have old collect2
10604 hardcode_direct=unsupported
10605 # It fails to find uninstalled libraries when the uninstalled
10606 # path is not listed in the libpath. Setting hardcode_minus_L
10607 # to unsupported forces relinking
10608 hardcode_minus_L=yes
10609 hardcode_libdir_flag_spec='-L$libdir'
10610 hardcode_libdir_separator=
10611 fi
10612 ;;
10613 esac
10614 shared_flag='-shared'
10615 if test yes = "$aix_use_runtimelinking"; then
10616 shared_flag="$shared_flag "'$wl-G'
10617 fi
10618 # Need to ensure runtime linking is disabled for the traditional
10619 # shared library, or the linker may eventually find shared libraries
10620 # /with/ Import File - we do not want to mix them.
10621 shared_flag_aix='-shared'
10622 shared_flag_svr4='-shared $wl-G'
10623 else
10624 # not using gcc
10625 if test ia64 = "$host_cpu"; then
10626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10627 # chokes on -Wl,-G. The following line is correct:
10628 shared_flag='-G'
10629 else
10630 if test yes = "$aix_use_runtimelinking"; then
10631 shared_flag='$wl-G'
10632 else
10633 shared_flag='$wl-bM:SRE'
10634 fi
10635 shared_flag_aix='$wl-bM:SRE'
10636 shared_flag_svr4='$wl-G'
10637 fi
10638 fi
10639
10640 export_dynamic_flag_spec='$wl-bexpall'
10641 # It seems that -bexpall does not export symbols beginning with
10642 # underscore (_), so it is better to generate a list of symbols to export.
10643 always_export_symbols=yes
10644 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10645 # Warning - without using the other runtime loading flags (-brtl),
10646 # -berok will link without error, but may produce a broken library.
10647 allow_undefined_flag='-berok'
10648 # Determine the default libpath from the value encoded in an
10649 # empty executable.
10650 if test set = "${lt_cv_aix_libpath+set}"; then
10651 aix_libpath=$lt_cv_aix_libpath
10652 else
10653 if ${lt_cv_aix_libpath_+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658
10659 int
10660 main ()
10661 {
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"; then :
10668
10669 lt_aix_libpath_sed='
10670 /Import File Strings/,/^$/ {
10671 /^0/ {
10672 s/^0 *\([^ ]*\) *$/\1/
10673 p
10674 }
10675 }'
10676 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10677 # Check for a 64-bit object if we didn't find anything.
10678 if test -z "$lt_cv_aix_libpath_"; then
10679 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 fi
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 if test -z "$lt_cv_aix_libpath_"; then
10685 lt_cv_aix_libpath_=/usr/lib:/lib
10686 fi
10687
10688 fi
10689
10690 aix_libpath=$lt_cv_aix_libpath_
10691 fi
10692
10693 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10694 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
10695 else
10696 if test ia64 = "$host_cpu"; then
10697 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10698 allow_undefined_flag="-z nodefs"
10699 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"
10700 else
10701 # Determine the default libpath from the value encoded in an
10702 # empty executable.
10703 if test set = "${lt_cv_aix_libpath+set}"; then
10704 aix_libpath=$lt_cv_aix_libpath
10705 else
10706 if ${lt_cv_aix_libpath_+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711
10712 int
10713 main ()
10714 {
10715
10716 ;
10717 return 0;
10718 }
10719 _ACEOF
10720 if ac_fn_c_try_link "$LINENO"; then :
10721
10722 lt_aix_libpath_sed='
10723 /Import File Strings/,/^$/ {
10724 /^0/ {
10725 s/^0 *\([^ ]*\) *$/\1/
10726 p
10727 }
10728 }'
10729 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10730 # Check for a 64-bit object if we didn't find anything.
10731 if test -z "$lt_cv_aix_libpath_"; then
10732 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 fi
10734 fi
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 if test -z "$lt_cv_aix_libpath_"; then
10738 lt_cv_aix_libpath_=/usr/lib:/lib
10739 fi
10740
10741 fi
10742
10743 aix_libpath=$lt_cv_aix_libpath_
10744 fi
10745
10746 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10747 # Warning - without using the other run time loading flags,
10748 # -berok will link without error, but may produce a broken library.
10749 no_undefined_flag=' $wl-bernotok'
10750 allow_undefined_flag=' $wl-berok'
10751 if test yes = "$with_gnu_ld"; then
10752 # We only use this code for GNU lds that support --whole-archive.
10753 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10754 else
10755 # Exported symbols can be pulled into shared objects from archives
10756 whole_archive_flag_spec='$convenience'
10757 fi
10758 archive_cmds_need_lc=yes
10759 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10760 # -brtl affects multiple linker settings, -berok does not and is overridden later
10761 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10762 if test svr4 != "$with_aix_soname"; then
10763 # This is similar to how AIX traditionally builds its shared libraries.
10764 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'
10765 fi
10766 if test aix != "$with_aix_soname"; then
10767 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'
10768 else
10769 # used by -dlpreopen to get the symbols
10770 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10771 fi
10772 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10773 fi
10774 fi
10775 ;;
10776
10777 amigaos*)
10778 case $host_cpu in
10779 powerpc)
10780 # see comment about AmigaOS4 .so support
10781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10782 archive_expsym_cmds=''
10783 ;;
10784 m68k)
10785 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)'
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_minus_L=yes
10788 ;;
10789 esac
10790 ;;
10791
10792 bsdi[45]*)
10793 export_dynamic_flag_spec=-rdynamic
10794 ;;
10795
10796 cygwin* | mingw* | pw32* | cegcc*)
10797 # When not using gcc, we currently assume that we are using
10798 # Microsoft Visual C++.
10799 # hardcode_libdir_flag_spec is actually meaningless, as there is
10800 # no search path for DLLs.
10801 case $cc_basename in
10802 cl*)
10803 # Native MSVC
10804 hardcode_libdir_flag_spec=' '
10805 allow_undefined_flag=unsupported
10806 always_export_symbols=yes
10807 file_list_spec='@'
10808 # Tell ltmain to make .lib files, not .a files.
10809 libext=lib
10810 # Tell ltmain to make .dll files, not .so files.
10811 shrext_cmds=.dll
10812 # FIXME: Setting linknames here is a bad hack.
10813 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10814 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10815 cp "$export_symbols" "$output_objdir/$soname.def";
10816 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10817 else
10818 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10819 fi~
10820 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10821 linknames='
10822 # The linker will not automatically build a static lib if we build a DLL.
10823 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10824 enable_shared_with_static_runtimes=yes
10825 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10827 # Don't use ranlib
10828 old_postinstall_cmds='chmod 644 $oldlib'
10829 postlink_cmds='lt_outputfile="@OUTPUT@"~
10830 lt_tool_outputfile="@TOOL_OUTPUT@"~
10831 case $lt_outputfile in
10832 *.exe|*.EXE) ;;
10833 *)
10834 lt_outputfile=$lt_outputfile.exe
10835 lt_tool_outputfile=$lt_tool_outputfile.exe
10836 ;;
10837 esac~
10838 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10839 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10840 $RM "$lt_outputfile.manifest";
10841 fi'
10842 ;;
10843 *)
10844 # Assume MSVC wrapper
10845 hardcode_libdir_flag_spec=' '
10846 allow_undefined_flag=unsupported
10847 # Tell ltmain to make .lib files, not .a files.
10848 libext=lib
10849 # Tell ltmain to make .dll files, not .so files.
10850 shrext_cmds=.dll
10851 # FIXME: Setting linknames here is a bad hack.
10852 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10853 # The linker will automatically build a .lib file if we build a DLL.
10854 old_archive_from_new_cmds='true'
10855 # FIXME: Should let the user specify the lib program.
10856 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10857 enable_shared_with_static_runtimes=yes
10858 ;;
10859 esac
10860 ;;
10861
10862 darwin* | rhapsody*)
10863
10864
10865 archive_cmds_need_lc=no
10866 hardcode_direct=no
10867 hardcode_automatic=yes
10868 hardcode_shlibpath_var=unsupported
10869 if test yes = "$lt_cv_ld_force_load"; then
10870 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\"`'
10871
10872 else
10873 whole_archive_flag_spec=''
10874 fi
10875 link_all_deplibs=yes
10876 allow_undefined_flag=$_lt_dar_allow_undefined
10877 case $cc_basename in
10878 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10879 *) _lt_dar_can_shared=$GCC ;;
10880 esac
10881 if test yes = "$_lt_dar_can_shared"; then
10882 output_verbose_link_cmd=func_echo_all
10883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10885 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"
10886 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"
10887
10888 else
10889 ld_shlibs=no
10890 fi
10891
10892 ;;
10893
10894 dgux*)
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_libdir_flag_spec='-L$libdir'
10897 hardcode_shlibpath_var=no
10898 ;;
10899
10900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10901 # support. Future versions do this automatically, but an explicit c++rt0.o
10902 # does not break anything, and helps significantly (at the cost of a little
10903 # extra space).
10904 freebsd2.2*)
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10906 hardcode_libdir_flag_spec='-R$libdir'
10907 hardcode_direct=yes
10908 hardcode_shlibpath_var=no
10909 ;;
10910
10911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10912 freebsd2.*)
10913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=yes
10915 hardcode_minus_L=yes
10916 hardcode_shlibpath_var=no
10917 ;;
10918
10919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10920 freebsd* | dragonfly*)
10921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10922 hardcode_libdir_flag_spec='-R$libdir'
10923 hardcode_direct=yes
10924 hardcode_shlibpath_var=no
10925 ;;
10926
10927 hpux9*)
10928 if test yes = "$GCC"; then
10929 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'
10930 else
10931 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'
10932 fi
10933 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10934 hardcode_libdir_separator=:
10935 hardcode_direct=yes
10936
10937 # hardcode_minus_L: Not really in the search PATH,
10938 # but as the default location of the library.
10939 hardcode_minus_L=yes
10940 export_dynamic_flag_spec='$wl-E'
10941 ;;
10942
10943 hpux10*)
10944 if test yes,no = "$GCC,$with_gnu_ld"; then
10945 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946 else
10947 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10948 fi
10949 if test no = "$with_gnu_ld"; then
10950 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10951 hardcode_libdir_separator=:
10952 hardcode_direct=yes
10953 hardcode_direct_absolute=yes
10954 export_dynamic_flag_spec='$wl-E'
10955 # hardcode_minus_L: Not really in the search PATH,
10956 # but as the default location of the library.
10957 hardcode_minus_L=yes
10958 fi
10959 ;;
10960
10961 hpux11*)
10962 if test yes,no = "$GCC,$with_gnu_ld"; then
10963 case $host_cpu in
10964 hppa*64*)
10965 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 ;;
10967 ia64*)
10968 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10969 ;;
10970 *)
10971 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 esac
10974 else
10975 case $host_cpu in
10976 hppa*64*)
10977 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10978 ;;
10979 ia64*)
10980 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10981 ;;
10982 *)
10983
10984 # Older versions of the 11.00 compiler do not understand -b yet
10985 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10987 $as_echo_n "checking if $CC understands -b... " >&6; }
10988 if ${lt_cv_prog_compiler__b+:} false; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 lt_cv_prog_compiler__b=no
10992 save_LDFLAGS=$LDFLAGS
10993 LDFLAGS="$LDFLAGS -b"
10994 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10995 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10996 # The linker can only warn and ignore the option if not recognized
10997 # So say no if there are warnings
10998 if test -s conftest.err; then
10999 # Append any errors to the config.log.
11000 cat conftest.err 1>&5
11001 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11003 if diff conftest.exp conftest.er2 >/dev/null; then
11004 lt_cv_prog_compiler__b=yes
11005 fi
11006 else
11007 lt_cv_prog_compiler__b=yes
11008 fi
11009 fi
11010 $RM -r conftest*
11011 LDFLAGS=$save_LDFLAGS
11012
11013 fi
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11015 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11016
11017 if test yes = "$lt_cv_prog_compiler__b"; then
11018 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11019 else
11020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11021 fi
11022
11023 ;;
11024 esac
11025 fi
11026 if test no = "$with_gnu_ld"; then
11027 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11028 hardcode_libdir_separator=:
11029
11030 case $host_cpu in
11031 hppa*64*|ia64*)
11032 hardcode_direct=no
11033 hardcode_shlibpath_var=no
11034 ;;
11035 *)
11036 hardcode_direct=yes
11037 hardcode_direct_absolute=yes
11038 export_dynamic_flag_spec='$wl-E'
11039
11040 # hardcode_minus_L: Not really in the search PATH,
11041 # but as the default location of the library.
11042 hardcode_minus_L=yes
11043 ;;
11044 esac
11045 fi
11046 ;;
11047
11048 irix5* | irix6* | nonstopux*)
11049 if test yes = "$GCC"; then
11050 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'
11051 # Try to use the -exported_symbol ld option, if it does not
11052 # work, assume that -exports_file does not work either and
11053 # implicitly export all symbols.
11054 # This should be the same for all languages, so no per-tag cache variable.
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11056 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11057 if ${lt_cv_irix_exported_symbol+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 save_LDFLAGS=$LDFLAGS
11061 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064 int foo (void) { return 0; }
11065 _ACEOF
11066 if ac_fn_c_try_link "$LINENO"; then :
11067 lt_cv_irix_exported_symbol=yes
11068 else
11069 lt_cv_irix_exported_symbol=no
11070 fi
11071 rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11073 LDFLAGS=$save_LDFLAGS
11074 fi
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11076 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11077 if test yes = "$lt_cv_irix_exported_symbol"; then
11078 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'
11079 fi
11080 else
11081 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'
11082 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'
11083 fi
11084 archive_cmds_need_lc='no'
11085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11086 hardcode_libdir_separator=:
11087 inherit_rpath=yes
11088 link_all_deplibs=yes
11089 ;;
11090
11091 linux*)
11092 case $cc_basename in
11093 tcc*)
11094 # Fabrice Bellard et al's Tiny C Compiler
11095 ld_shlibs=yes
11096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11097 ;;
11098 esac
11099 ;;
11100
11101 netbsd*)
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11104 else
11105 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11106 fi
11107 hardcode_libdir_flag_spec='-R$libdir'
11108 hardcode_direct=yes
11109 hardcode_shlibpath_var=no
11110 ;;
11111
11112 newsos6)
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_direct=yes
11115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11116 hardcode_libdir_separator=:
11117 hardcode_shlibpath_var=no
11118 ;;
11119
11120 *nto* | *qnx*)
11121 ;;
11122
11123 openbsd* | bitrig*)
11124 if test -f /usr/libexec/ld.so; then
11125 hardcode_direct=yes
11126 hardcode_shlibpath_var=no
11127 hardcode_direct_absolute=yes
11128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11131 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11132 export_dynamic_flag_spec='$wl-E'
11133 else
11134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11135 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11136 fi
11137 else
11138 ld_shlibs=no
11139 fi
11140 ;;
11141
11142 os2*)
11143 hardcode_libdir_flag_spec='-L$libdir'
11144 hardcode_minus_L=yes
11145 allow_undefined_flag=unsupported
11146 shrext_cmds=.dll
11147 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11148 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11149 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11150 $ECHO EXPORTS >> $output_objdir/$libname.def~
11151 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11152 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11153 emximp -o $lib $output_objdir/$libname.def'
11154 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11155 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11156 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11157 $ECHO EXPORTS >> $output_objdir/$libname.def~
11158 prefix_cmds="$SED"~
11159 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11160 prefix_cmds="$prefix_cmds -e 1d";
11161 fi~
11162 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11163 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11164 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11165 emximp -o $lib $output_objdir/$libname.def'
11166 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11167 enable_shared_with_static_runtimes=yes
11168 ;;
11169
11170 osf3*)
11171 if test yes = "$GCC"; then
11172 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11173 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'
11174 else
11175 allow_undefined_flag=' -expect_unresolved \*'
11176 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'
11177 fi
11178 archive_cmds_need_lc='no'
11179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11180 hardcode_libdir_separator=:
11181 ;;
11182
11183 osf4* | osf5*) # as osf3* with the addition of -msym flag
11184 if test yes = "$GCC"; then
11185 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11186 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'
11187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188 else
11189 allow_undefined_flag=' -expect_unresolved \*'
11190 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'
11191 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~
11192 $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'
11193
11194 # Both c and cxx compiler support -rpath directly
11195 hardcode_libdir_flag_spec='-rpath $libdir'
11196 fi
11197 archive_cmds_need_lc='no'
11198 hardcode_libdir_separator=:
11199 ;;
11200
11201 solaris*)
11202 no_undefined_flag=' -z defs'
11203 if test yes = "$GCC"; then
11204 wlarc='$wl'
11205 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11207 $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'
11208 else
11209 case `$CC -V 2>&1` in
11210 *"Compilers 5.0"*)
11211 wlarc=''
11212 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11215 ;;
11216 *)
11217 wlarc='$wl'
11218 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11220 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11221 ;;
11222 esac
11223 fi
11224 hardcode_libdir_flag_spec='-R$libdir'
11225 hardcode_shlibpath_var=no
11226 case $host_os in
11227 solaris2.[0-5] | solaris2.[0-5].*) ;;
11228 *)
11229 # The compiler driver will combine and reorder linker options,
11230 # but understands '-z linker_flag'. GCC discards it without '$wl',
11231 # but is careful enough not to reorder.
11232 # Supported since Solaris 2.6 (maybe 2.5.1?)
11233 if test yes = "$GCC"; then
11234 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11235 else
11236 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11237 fi
11238 ;;
11239 esac
11240 link_all_deplibs=yes
11241 ;;
11242
11243 sunos4*)
11244 if test sequent = "$host_vendor"; then
11245 # Use $CC to link under sequent, because it throws in some extra .o
11246 # files that make .init and .fini sections work.
11247 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11248 else
11249 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11250 fi
11251 hardcode_libdir_flag_spec='-L$libdir'
11252 hardcode_direct=yes
11253 hardcode_minus_L=yes
11254 hardcode_shlibpath_var=no
11255 ;;
11256
11257 sysv4)
11258 case $host_vendor in
11259 sni)
11260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11261 hardcode_direct=yes # is this really true???
11262 ;;
11263 siemens)
11264 ## LD is ld it makes a PLAMLIB
11265 ## CC just makes a GrossModule.
11266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11267 reload_cmds='$CC -r -o $output$reload_objs'
11268 hardcode_direct=no
11269 ;;
11270 motorola)
11271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11272 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11273 ;;
11274 esac
11275 runpath_var='LD_RUN_PATH'
11276 hardcode_shlibpath_var=no
11277 ;;
11278
11279 sysv4.3*)
11280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281 hardcode_shlibpath_var=no
11282 export_dynamic_flag_spec='-Bexport'
11283 ;;
11284
11285 sysv4*MP*)
11286 if test -d /usr/nec; then
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_shlibpath_var=no
11289 runpath_var=LD_RUN_PATH
11290 hardcode_runpath_var=yes
11291 ld_shlibs=yes
11292 fi
11293 ;;
11294
11295 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11296 no_undefined_flag='$wl-z,text'
11297 archive_cmds_need_lc=no
11298 hardcode_shlibpath_var=no
11299 runpath_var='LD_RUN_PATH'
11300
11301 if test yes = "$GCC"; then
11302 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 else
11305 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 fi
11308 ;;
11309
11310 sysv5* | sco3.2v5* | sco5v6*)
11311 # Note: We CANNOT use -z defs as we might desire, because we do not
11312 # link with -lc, and that would cause any symbols used from libc to
11313 # always be unresolved, which means just about no library would
11314 # ever link correctly. If we're not using GNU ld we use -z text
11315 # though, which does catch some bad symbols but isn't as heavy-handed
11316 # as -z defs.
11317 no_undefined_flag='$wl-z,text'
11318 allow_undefined_flag='$wl-z,nodefs'
11319 archive_cmds_need_lc=no
11320 hardcode_shlibpath_var=no
11321 hardcode_libdir_flag_spec='$wl-R,$libdir'
11322 hardcode_libdir_separator=':'
11323 link_all_deplibs=yes
11324 export_dynamic_flag_spec='$wl-Bexport'
11325 runpath_var='LD_RUN_PATH'
11326
11327 if test yes = "$GCC"; then
11328 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 else
11331 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 fi
11334 ;;
11335
11336 uts4*)
11337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338 hardcode_libdir_flag_spec='-L$libdir'
11339 hardcode_shlibpath_var=no
11340 ;;
11341
11342 *)
11343 ld_shlibs=no
11344 ;;
11345 esac
11346
11347 if test sni = "$host_vendor"; then
11348 case $host in
11349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11350 export_dynamic_flag_spec='$wl-Blargedynsym'
11351 ;;
11352 esac
11353 fi
11354 fi
11355
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11357 $as_echo "$ld_shlibs" >&6; }
11358 test no = "$ld_shlibs" && can_build_shared=no
11359
11360 with_gnu_ld=$with_gnu_ld
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376 #
11377 # Do we need to explicitly link libc?
11378 #
11379 case "x$archive_cmds_need_lc" in
11380 x|xyes)
11381 # Assume -lc should be added
11382 archive_cmds_need_lc=yes
11383
11384 if test yes,yes = "$GCC,$enable_shared"; then
11385 case $archive_cmds in
11386 *'~'*)
11387 # FIXME: we may have to deal with multi-command sequences.
11388 ;;
11389 '$CC '*)
11390 # Test whether the compiler implicitly links with -lc since on some
11391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11392 # to ld, don't add -lc before -lgcc.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11394 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11395 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 $RM -r conftest*
11399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11400
11401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11402 (eval $ac_compile) 2>&5
11403 ac_status=$?
11404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405 test $ac_status = 0; } 2>conftest.err; then
11406 soname=conftest
11407 lib=conftest
11408 libobjs=conftest.$ac_objext
11409 deplibs=
11410 wl=$lt_prog_compiler_wl
11411 pic_flag=$lt_prog_compiler_pic
11412 compiler_flags=-v
11413 linker_flags=-v
11414 verstring=
11415 output_objdir=.
11416 libname=conftest
11417 lt_save_allow_undefined_flag=$allow_undefined_flag
11418 allow_undefined_flag=
11419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11420 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11421 ac_status=$?
11422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11423 test $ac_status = 0; }
11424 then
11425 lt_cv_archive_cmds_need_lc=no
11426 else
11427 lt_cv_archive_cmds_need_lc=yes
11428 fi
11429 allow_undefined_flag=$lt_save_allow_undefined_flag
11430 else
11431 cat conftest.err 1>&5
11432 fi
11433 $RM -r conftest*
11434
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11437 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11438 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11439 ;;
11440 esac
11441 fi
11442 ;;
11443 esac
11444
11445
11446
11447
11448
11449
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11597 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11598
11599 if test yes = "$GCC"; then
11600 case $host_os in
11601 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11602 *) lt_awk_arg='/^libraries:/' ;;
11603 esac
11604 case $host_os in
11605 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11606 *) lt_sed_strip_eq='s|=/|/|g' ;;
11607 esac
11608 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11609 case $lt_search_path_spec in
11610 *\;*)
11611 # if the path contains ";" then we assume it to be the separator
11612 # otherwise default to the standard path separator (i.e. ":") - it is
11613 # assumed that no part of a normal pathname contains ";" but that should
11614 # okay in the real world where ";" in dirpaths is itself problematic.
11615 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11616 ;;
11617 *)
11618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11619 ;;
11620 esac
11621 # Ok, now we have the path, separated by spaces, we can step through it
11622 # and add multilib dir if necessary...
11623 lt_tmp_lt_search_path_spec=
11624 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11625 # ...but if some path component already ends with the multilib dir we assume
11626 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11627 case "$lt_multi_os_dir; $lt_search_path_spec " in
11628 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11629 lt_multi_os_dir=
11630 ;;
11631 esac
11632 for lt_sys_path in $lt_search_path_spec; do
11633 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11635 elif test -n "$lt_multi_os_dir"; then
11636 test -d "$lt_sys_path" && \
11637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11638 fi
11639 done
11640 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11641 BEGIN {RS = " "; FS = "/|\n";} {
11642 lt_foo = "";
11643 lt_count = 0;
11644 for (lt_i = NF; lt_i > 0; lt_i--) {
11645 if ($lt_i != "" && $lt_i != ".") {
11646 if ($lt_i == "..") {
11647 lt_count++;
11648 } else {
11649 if (lt_count == 0) {
11650 lt_foo = "/" $lt_i lt_foo;
11651 } else {
11652 lt_count--;
11653 }
11654 }
11655 }
11656 }
11657 if (lt_foo != "") { lt_freq[lt_foo]++; }
11658 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11659 }'`
11660 # AWK program above erroneously prepends '/' to C:/dos/paths
11661 # for these hosts.
11662 case $host_os in
11663 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11664 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11665 esac
11666 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11667 else
11668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11669 fi
11670 library_names_spec=
11671 libname_spec='lib$name'
11672 soname_spec=
11673 shrext_cmds=.so
11674 postinstall_cmds=
11675 postuninstall_cmds=
11676 finish_cmds=
11677 finish_eval=
11678 shlibpath_var=
11679 shlibpath_overrides_runpath=unknown
11680 version_type=none
11681 dynamic_linker="$host_os ld.so"
11682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11683 need_lib_prefix=unknown
11684 hardcode_into_libs=no
11685
11686 # when you set need_version to no, make sure it does not cause -set_version
11687 # flags to be left without arguments
11688 need_version=unknown
11689
11690
11691
11692 case $host_os in
11693 aix3*)
11694 version_type=linux # correct to gnu/linux during the next big refactor
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11696 shlibpath_var=LIBPATH
11697
11698 # AIX 3 has no versioning support, so we append a major version to the name.
11699 soname_spec='$libname$release$shared_ext$major'
11700 ;;
11701
11702 aix[4-9]*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 hardcode_into_libs=yes
11707 if test ia64 = "$host_cpu"; then
11708 # AIX 5 supports IA64
11709 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 else
11712 # With GCC up to 2.95.x, collect2 would create an import file
11713 # for dependence libraries. The import file would start with
11714 # the line '#! .'. This would cause the generated library to
11715 # depend on '.', always an invalid library. This was fixed in
11716 # development snapshots of GCC prior to 3.0.
11717 case $host_os in
11718 aix4 | aix4.[01] | aix4.[01].*)
11719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11720 echo ' yes '
11721 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11722 :
11723 else
11724 can_build_shared=no
11725 fi
11726 ;;
11727 esac
11728 # Using Import Files as archive members, it is possible to support
11729 # filename-based versioning of shared library archives on AIX. While
11730 # this would work for both with and without runtime linking, it will
11731 # prevent static linking of such archives. So we do filename-based
11732 # shared library versioning with .so extension only, which is used
11733 # when both runtime linking and shared linking is enabled.
11734 # Unfortunately, runtime linking may impact performance, so we do
11735 # not want this to be the default eventually. Also, we use the
11736 # versioned .so libs for executables only if there is the -brtl
11737 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11738 # To allow for filename-based versioning support, we need to create
11739 # libNAME.so.V as an archive file, containing:
11740 # *) an Import File, referring to the versioned filename of the
11741 # archive as well as the shared archive member, telling the
11742 # bitwidth (32 or 64) of that shared object, and providing the
11743 # list of exported symbols of that shared object, eventually
11744 # decorated with the 'weak' keyword
11745 # *) the shared object with the F_LOADONLY flag set, to really avoid
11746 # it being seen by the linker.
11747 # At run time we better use the real file rather than another symlink,
11748 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11749
11750 case $with_aix_soname,$aix_use_runtimelinking in
11751 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11752 # soname into executable. Probably we can add versioning support to
11753 # collect2, so additional links can be useful in future.
11754 aix,yes) # traditional libtool
11755 dynamic_linker='AIX unversionable lib.so'
11756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11757 # instead of lib<name>.a to let people know that these are not
11758 # typical AIX shared libraries.
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760 ;;
11761 aix,no) # traditional AIX only
11762 dynamic_linker='AIX lib.a(lib.so.V)'
11763 # We preserve .a as extension for shared libraries through AIX4.2
11764 # and later when we are not doing run time linking.
11765 library_names_spec='$libname$release.a $libname.a'
11766 soname_spec='$libname$release$shared_ext$major'
11767 ;;
11768 svr4,*) # full svr4 only
11769 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11770 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11771 # We do not specify a path in Import Files, so LIBPATH fires.
11772 shlibpath_overrides_runpath=yes
11773 ;;
11774 *,yes) # both, prefer svr4
11775 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11776 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11777 # unpreferred sharedlib libNAME.a needs extra handling
11778 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"'
11779 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"'
11780 # We do not specify a path in Import Files, so LIBPATH fires.
11781 shlibpath_overrides_runpath=yes
11782 ;;
11783 *,no) # both, prefer aix
11784 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11785 library_names_spec='$libname$release.a $libname.a'
11786 soname_spec='$libname$release$shared_ext$major'
11787 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11788 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)'
11789 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"'
11790 ;;
11791 esac
11792 shlibpath_var=LIBPATH
11793 fi
11794 ;;
11795
11796 amigaos*)
11797 case $host_cpu in
11798 powerpc)
11799 # Since July 2007 AmigaOS4 officially supports .so libraries.
11800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802 ;;
11803 m68k)
11804 library_names_spec='$libname.ixlibrary $libname.a'
11805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11806 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'
11807 ;;
11808 esac
11809 ;;
11810
11811 beos*)
11812 library_names_spec='$libname$shared_ext'
11813 dynamic_linker="$host_os ld.so"
11814 shlibpath_var=LIBRARY_PATH
11815 ;;
11816
11817 bsdi[45]*)
11818 version_type=linux # correct to gnu/linux during the next big refactor
11819 need_version=no
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 soname_spec='$libname$release$shared_ext$major'
11822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11826 # the default ld.so.conf also contains /usr/contrib/lib and
11827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11828 # libtool to hard-code these into programs
11829 ;;
11830
11831 cygwin* | mingw* | pw32* | cegcc*)
11832 version_type=windows
11833 shrext_cmds=.dll
11834 need_version=no
11835 need_lib_prefix=no
11836
11837 case $GCC,$cc_basename in
11838 yes,*)
11839 # gcc
11840 library_names_spec='$libname.dll.a'
11841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11842 postinstall_cmds='base_file=`basename \$file`~
11843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11844 dldir=$destdir/`dirname \$dlpath`~
11845 test -d \$dldir || mkdir -p \$dldir~
11846 $install_prog $dir/$dlname \$dldir/$dlname~
11847 chmod a+x \$dldir/$dlname~
11848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11850 fi'
11851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11852 dlpath=$dir/\$dldll~
11853 $RM \$dlpath'
11854 shlibpath_overrides_runpath=yes
11855
11856 case $host_os in
11857 cygwin*)
11858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11859 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11860
11861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11862 ;;
11863 mingw* | cegcc*)
11864 # MinGW DLLs use traditional 'lib' prefix
11865 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11866 ;;
11867 pw32*)
11868 # pw32 DLLs use 'pw' prefix rather than 'lib'
11869 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11870 ;;
11871 esac
11872 dynamic_linker='Win32 ld.exe'
11873 ;;
11874
11875 *,cl*)
11876 # Native MSVC
11877 libname_spec='$name'
11878 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11879 library_names_spec='$libname.dll.lib'
11880
11881 case $build_os in
11882 mingw*)
11883 sys_lib_search_path_spec=
11884 lt_save_ifs=$IFS
11885 IFS=';'
11886 for lt_path in $LIB
11887 do
11888 IFS=$lt_save_ifs
11889 # Let DOS variable expansion print the short 8.3 style file name.
11890 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11891 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11892 done
11893 IFS=$lt_save_ifs
11894 # Convert to MSYS style.
11895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11896 ;;
11897 cygwin*)
11898 # Convert to unix form, then to dos form, then back to unix form
11899 # but this time dos style (no spaces!) so that the unix form looks
11900 # like /cygdrive/c/PROGRA~1:/cygdr...
11901 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11902 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11903 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11904 ;;
11905 *)
11906 sys_lib_search_path_spec=$LIB
11907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11908 # It is most probably a Windows format PATH.
11909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11910 else
11911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11912 fi
11913 # FIXME: find the short name or the path components, as spaces are
11914 # common. (e.g. "Program Files" -> "PROGRA~1")
11915 ;;
11916 esac
11917
11918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11919 postinstall_cmds='base_file=`basename \$file`~
11920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11921 dldir=$destdir/`dirname \$dlpath`~
11922 test -d \$dldir || mkdir -p \$dldir~
11923 $install_prog $dir/$dlname \$dldir/$dlname'
11924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11925 dlpath=$dir/\$dldll~
11926 $RM \$dlpath'
11927 shlibpath_overrides_runpath=yes
11928 dynamic_linker='Win32 link.exe'
11929 ;;
11930
11931 *)
11932 # Assume MSVC wrapper
11933 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11934 dynamic_linker='Win32 ld.exe'
11935 ;;
11936 esac
11937 # FIXME: first we should search . and the directory the executable is in
11938 shlibpath_var=PATH
11939 ;;
11940
11941 darwin* | rhapsody*)
11942 dynamic_linker="$host_os dyld"
11943 version_type=darwin
11944 need_lib_prefix=no
11945 need_version=no
11946 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11947 soname_spec='$libname$release$major$shared_ext'
11948 shlibpath_overrides_runpath=yes
11949 shlibpath_var=DYLD_LIBRARY_PATH
11950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11951
11952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11954 ;;
11955
11956 dgux*)
11957 version_type=linux # correct to gnu/linux during the next big refactor
11958 need_lib_prefix=no
11959 need_version=no
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11961 soname_spec='$libname$release$shared_ext$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 ;;
11964
11965 freebsd* | dragonfly*)
11966 # DragonFly does not have aout. When/if they implement a new
11967 # versioning mechanism, adjust this.
11968 if test -x /usr/bin/objformat; then
11969 objformat=`/usr/bin/objformat`
11970 else
11971 case $host_os in
11972 freebsd[23].*) objformat=aout ;;
11973 *) objformat=elf ;;
11974 esac
11975 fi
11976 version_type=freebsd-$objformat
11977 case $version_type in
11978 freebsd-elf*)
11979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980 soname_spec='$libname$release$shared_ext$major'
11981 need_version=no
11982 need_lib_prefix=no
11983 ;;
11984 freebsd-*)
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11986 need_version=yes
11987 ;;
11988 esac
11989 shlibpath_var=LD_LIBRARY_PATH
11990 case $host_os in
11991 freebsd2.*)
11992 shlibpath_overrides_runpath=yes
11993 ;;
11994 freebsd3.[01]* | freebsdelf3.[01]*)
11995 shlibpath_overrides_runpath=yes
11996 hardcode_into_libs=yes
11997 ;;
11998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12000 shlibpath_overrides_runpath=no
12001 hardcode_into_libs=yes
12002 ;;
12003 *) # from 4.6 on, and DragonFly
12004 shlibpath_overrides_runpath=yes
12005 hardcode_into_libs=yes
12006 ;;
12007 esac
12008 ;;
12009
12010 haiku*)
12011 version_type=linux # correct to gnu/linux during the next big refactor
12012 need_lib_prefix=no
12013 need_version=no
12014 dynamic_linker="$host_os runtime_loader"
12015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016 soname_spec='$libname$release$shared_ext$major'
12017 shlibpath_var=LIBRARY_PATH
12018 shlibpath_overrides_runpath=no
12019 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12020 hardcode_into_libs=yes
12021 ;;
12022
12023 hpux9* | hpux10* | hpux11*)
12024 # Give a soname corresponding to the major version so that dld.sl refuses to
12025 # link against other versions.
12026 version_type=sunos
12027 need_lib_prefix=no
12028 need_version=no
12029 case $host_cpu in
12030 ia64*)
12031 shrext_cmds='.so'
12032 hardcode_into_libs=yes
12033 dynamic_linker="$host_os dld.so"
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037 soname_spec='$libname$release$shared_ext$major'
12038 if test 32 = "$HPUX_IA64_MODE"; then
12039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12040 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12041 else
12042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12043 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12044 fi
12045 ;;
12046 hppa*64*)
12047 shrext_cmds='.sl'
12048 hardcode_into_libs=yes
12049 dynamic_linker="$host_os dld.sl"
12050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053 soname_spec='$libname$release$shared_ext$major'
12054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056 ;;
12057 *)
12058 shrext_cmds='.sl'
12059 dynamic_linker="$host_os dld.sl"
12060 shlibpath_var=SHLIB_PATH
12061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063 soname_spec='$libname$release$shared_ext$major'
12064 ;;
12065 esac
12066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12067 postinstall_cmds='chmod 555 $lib'
12068 # or fails outright, so override atomically:
12069 install_override_mode=555
12070 ;;
12071
12072 interix[3-9]*)
12073 version_type=linux # correct to gnu/linux during the next big refactor
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077 soname_spec='$libname$release$shared_ext$major'
12078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12082 ;;
12083
12084 irix5* | irix6* | nonstopux*)
12085 case $host_os in
12086 nonstopux*) version_type=nonstopux ;;
12087 *)
12088 if test yes = "$lt_cv_prog_gnu_ld"; then
12089 version_type=linux # correct to gnu/linux during the next big refactor
12090 else
12091 version_type=irix
12092 fi ;;
12093 esac
12094 need_lib_prefix=no
12095 need_version=no
12096 soname_spec='$libname$release$shared_ext$major'
12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12098 case $host_os in
12099 irix5* | nonstopux*)
12100 libsuff= shlibsuff=
12101 ;;
12102 *)
12103 case $LD in # libtool.m4 will add one of these switches to LD
12104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105 libsuff= shlibsuff= libmagic=32-bit;;
12106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107 libsuff=32 shlibsuff=N32 libmagic=N32;;
12108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110 *) libsuff= shlibsuff= libmagic=never-match;;
12111 esac
12112 ;;
12113 esac
12114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115 shlibpath_overrides_runpath=no
12116 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12117 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12118 hardcode_into_libs=yes
12119 ;;
12120
12121 # No shared lib support for Linux oldld, aout, or coff.
12122 linux*oldld* | linux*aout* | linux*coff*)
12123 dynamic_linker=no
12124 ;;
12125
12126 linux*android*)
12127 version_type=none # Android doesn't support versioned libraries.
12128 need_lib_prefix=no
12129 need_version=no
12130 library_names_spec='$libname$release$shared_ext'
12131 soname_spec='$libname$release$shared_ext'
12132 finish_cmds=
12133 shlibpath_var=LD_LIBRARY_PATH
12134 shlibpath_overrides_runpath=yes
12135
12136 # This implies no fast_install, which is unacceptable.
12137 # Some rework will be needed to allow for fast_install
12138 # before this can be enabled.
12139 hardcode_into_libs=yes
12140
12141 dynamic_linker='Android linker'
12142 # Don't embed -rpath directories since the linker doesn't support them.
12143 hardcode_libdir_flag_spec='-L$libdir'
12144 ;;
12145
12146 # This must be glibc/ELF.
12147 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12148 version_type=linux # correct to gnu/linux during the next big refactor
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152 soname_spec='$libname$release$shared_ext$major'
12153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156
12157 # Some binutils ld are patched to set DT_RUNPATH
12158 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 lt_cv_shlibpath_overrides_runpath=no
12162 save_LDFLAGS=$LDFLAGS
12163 save_libdir=$libdir
12164 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12165 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168
12169 int
12170 main ()
12171 {
12172
12173 ;
12174 return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12179 lt_cv_shlibpath_overrides_runpath=yes
12180 fi
12181 fi
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LDFLAGS=$save_LDFLAGS
12185 libdir=$save_libdir
12186
12187 fi
12188
12189 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12190
12191 # This implies no fast_install, which is unacceptable.
12192 # Some rework will be needed to allow for fast_install
12193 # before this can be enabled.
12194 hardcode_into_libs=yes
12195
12196 # Ideally, we could use ldconfig to report *all* directores which are
12197 # searched for libraries, however this is still not possible. Aside from not
12198 # being certain /sbin/ldconfig is available, command
12199 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12200 # even though it is searched at run-time. Try to do the best guess by
12201 # appending ld.so.conf contents (and includes) to the search path.
12202 if test -f /etc/ld.so.conf; then
12203 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' ' '`
12204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12205 fi
12206
12207 # We used to test for /lib/ld.so.1 and disable shared libraries on
12208 # powerpc, because MkLinux only supported shared libraries with the
12209 # GNU dynamic linker. Since this was broken with cross compilers,
12210 # most powerpc-linux boxes support dynamic linking these days and
12211 # people can always --disable-shared, the test was removed, and we
12212 # assume the GNU/Linux dynamic linker is in use.
12213 dynamic_linker='GNU/Linux ld.so'
12214 ;;
12215
12216 netbsd*)
12217 version_type=sunos
12218 need_lib_prefix=no
12219 need_version=no
12220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12223 dynamic_linker='NetBSD (a.out) ld.so'
12224 else
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226 soname_spec='$libname$release$shared_ext$major'
12227 dynamic_linker='NetBSD ld.elf_so'
12228 fi
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=yes
12231 hardcode_into_libs=yes
12232 ;;
12233
12234 newsos6)
12235 version_type=linux # correct to gnu/linux during the next big refactor
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 ;;
12240
12241 *nto* | *qnx*)
12242 version_type=qnx
12243 need_lib_prefix=no
12244 need_version=no
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 soname_spec='$libname$release$shared_ext$major'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=no
12249 hardcode_into_libs=yes
12250 dynamic_linker='ldqnx.so'
12251 ;;
12252
12253 openbsd* | bitrig*)
12254 version_type=sunos
12255 sys_lib_dlsearch_path_spec=/usr/lib
12256 need_lib_prefix=no
12257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12258 need_version=no
12259 else
12260 need_version=yes
12261 fi
12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=yes
12266 ;;
12267
12268 os2*)
12269 libname_spec='$name'
12270 version_type=windows
12271 shrext_cmds=.dll
12272 need_version=no
12273 need_lib_prefix=no
12274 # OS/2 can only load a DLL with a base name of 8 characters or less.
12275 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12276 v=$($ECHO $release$versuffix | tr -d .-);
12277 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12278 $ECHO $n$v`$shared_ext'
12279 library_names_spec='${libname}_dll.$libext'
12280 dynamic_linker='OS/2 ld.exe'
12281 shlibpath_var=BEGINLIBPATH
12282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284 postinstall_cmds='base_file=`basename \$file`~
12285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12286 dldir=$destdir/`dirname \$dlpath`~
12287 test -d \$dldir || mkdir -p \$dldir~
12288 $install_prog $dir/$dlname \$dldir/$dlname~
12289 chmod a+x \$dldir/$dlname~
12290 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12291 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12292 fi'
12293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12294 dlpath=$dir/\$dldll~
12295 $RM \$dlpath'
12296 ;;
12297
12298 osf3* | osf4* | osf5*)
12299 version_type=osf
12300 need_lib_prefix=no
12301 need_version=no
12302 soname_spec='$libname$release$shared_ext$major'
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12307 ;;
12308
12309 rdos*)
12310 dynamic_linker=no
12311 ;;
12312
12313 solaris*)
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 soname_spec='$libname$release$shared_ext$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12321 hardcode_into_libs=yes
12322 # ldd complains unless libraries are executable
12323 postinstall_cmds='chmod +x $lib'
12324 ;;
12325
12326 sunos4*)
12327 version_type=sunos
12328 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 shlibpath_overrides_runpath=yes
12332 if test yes = "$with_gnu_ld"; then
12333 need_lib_prefix=no
12334 fi
12335 need_version=yes
12336 ;;
12337
12338 sysv4 | sysv4.3*)
12339 version_type=linux # correct to gnu/linux during the next big refactor
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 soname_spec='$libname$release$shared_ext$major'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 case $host_vendor in
12344 sni)
12345 shlibpath_overrides_runpath=no
12346 need_lib_prefix=no
12347 runpath_var=LD_RUN_PATH
12348 ;;
12349 siemens)
12350 need_lib_prefix=no
12351 ;;
12352 motorola)
12353 need_lib_prefix=no
12354 need_version=no
12355 shlibpath_overrides_runpath=no
12356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12357 ;;
12358 esac
12359 ;;
12360
12361 sysv4*MP*)
12362 if test -d /usr/nec; then
12363 version_type=linux # correct to gnu/linux during the next big refactor
12364 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12365 soname_spec='$libname$shared_ext.$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 fi
12368 ;;
12369
12370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12371 version_type=sco
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12375 soname_spec='$libname$release$shared_ext$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 shlibpath_overrides_runpath=yes
12378 hardcode_into_libs=yes
12379 if test yes = "$with_gnu_ld"; then
12380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12381 else
12382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12383 case $host_os in
12384 sco3.2v5*)
12385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12386 ;;
12387 esac
12388 fi
12389 sys_lib_dlsearch_path_spec='/usr/lib'
12390 ;;
12391
12392 tpf*)
12393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12394 version_type=linux # correct to gnu/linux during the next big refactor
12395 need_lib_prefix=no
12396 need_version=no
12397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 shlibpath_overrides_runpath=no
12400 hardcode_into_libs=yes
12401 ;;
12402
12403 uts4*)
12404 version_type=linux # correct to gnu/linux during the next big refactor
12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406 soname_spec='$libname$release$shared_ext$major'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 ;;
12409
12410 *)
12411 dynamic_linker=no
12412 ;;
12413 esac
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12415 $as_echo "$dynamic_linker" >&6; }
12416 test no = "$dynamic_linker" && can_build_shared=no
12417
12418 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12419 if test yes = "$GCC"; then
12420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12421 fi
12422
12423 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12424 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12425 fi
12426
12427 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12428 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12429 fi
12430
12431 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12432 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12433
12434 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12435 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12436
12437 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12438 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12439
12440
12441
12442
12443
12444
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12538 hardcode_action=
12539 if test -n "$hardcode_libdir_flag_spec" ||
12540 test -n "$runpath_var" ||
12541 test yes = "$hardcode_automatic"; then
12542
12543 # We can hardcode non-existent directories.
12544 if test no != "$hardcode_direct" &&
12545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12546 # have to relink, otherwise we might link with an installed library
12547 # when we should be linking with a yet-to-be-installed one
12548 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12549 test no != "$hardcode_minus_L"; then
12550 # Linking always hardcodes the temporary library directory.
12551 hardcode_action=relink
12552 else
12553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12554 hardcode_action=immediate
12555 fi
12556 else
12557 # We cannot hardcode anything, or else we can only hardcode existing
12558 # directories.
12559 hardcode_action=unsupported
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12562 $as_echo "$hardcode_action" >&6; }
12563
12564 if test relink = "$hardcode_action" ||
12565 test yes = "$inherit_rpath"; then
12566 # Fast installation is not supported
12567 enable_fast_install=no
12568 elif test yes = "$shlibpath_overrides_runpath" ||
12569 test no = "$enable_shared"; then
12570 # Fast installation is not necessary
12571 enable_fast_install=needless
12572 fi
12573
12574
12575
12576
12577
12578
12579 if test yes != "$enable_dlopen"; then
12580 enable_dlopen=unknown
12581 enable_dlopen_self=unknown
12582 enable_dlopen_self_static=unknown
12583 else
12584 lt_cv_dlopen=no
12585 lt_cv_dlopen_libs=
12586
12587 case $host_os in
12588 beos*)
12589 lt_cv_dlopen=load_add_on
12590 lt_cv_dlopen_libs=
12591 lt_cv_dlopen_self=yes
12592 ;;
12593
12594 mingw* | pw32* | cegcc*)
12595 lt_cv_dlopen=LoadLibrary
12596 lt_cv_dlopen_libs=
12597 ;;
12598
12599 cygwin*)
12600 lt_cv_dlopen=dlopen
12601 lt_cv_dlopen_libs=
12602 ;;
12603
12604 darwin*)
12605 # if libdl is installed we need to link against it
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12608 if ${ac_cv_lib_dl_dlopen+:} false; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 ac_check_lib_save_LIBS=$LIBS
12612 LIBS="-ldl $LIBS"
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char dlopen ();
12623 int
12624 main ()
12625 {
12626 return dlopen ();
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"; then :
12632 ac_cv_lib_dl_dlopen=yes
12633 else
12634 ac_cv_lib_dl_dlopen=no
12635 fi
12636 rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12639 fi
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12643 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12644 else
12645
12646 lt_cv_dlopen=dyld
12647 lt_cv_dlopen_libs=
12648 lt_cv_dlopen_self=yes
12649
12650 fi
12651
12652 ;;
12653
12654 tpf*)
12655 # Don't try to run any link tests for TPF. We know it's impossible
12656 # because TPF is a cross-compiler, and we know how we open DSOs.
12657 lt_cv_dlopen=dlopen
12658 lt_cv_dlopen_libs=
12659 lt_cv_dlopen_self=no
12660 ;;
12661
12662 *)
12663 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12664 if test "x$ac_cv_func_shl_load" = xyes; then :
12665 lt_cv_dlopen=shl_load
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12668 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12669 if ${ac_cv_lib_dld_shl_load+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-ldld $LIBS"
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676
12677 /* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
12683 char shl_load ();
12684 int
12685 main ()
12686 {
12687 return shl_load ();
12688 ;
12689 return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_link "$LINENO"; then :
12693 ac_cv_lib_dld_shl_load=yes
12694 else
12695 ac_cv_lib_dld_shl_load=no
12696 fi
12697 rm -f core conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
12699 LIBS=$ac_check_lib_save_LIBS
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12702 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12703 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12704 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12705 else
12706 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12707 if test "x$ac_cv_func_dlopen" = xyes; then :
12708 lt_cv_dlopen=dlopen
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12712 if ${ac_cv_lib_dl_dlopen+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 ac_check_lib_save_LIBS=$LIBS
12716 LIBS="-ldl $LIBS"
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12719
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 char dlopen ();
12727 int
12728 main ()
12729 {
12730 return dlopen ();
12731 ;
12732 return 0;
12733 }
12734 _ACEOF
12735 if ac_fn_c_try_link "$LINENO"; then :
12736 ac_cv_lib_dl_dlopen=yes
12737 else
12738 ac_cv_lib_dl_dlopen=no
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12742 LIBS=$ac_check_lib_save_LIBS
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12746 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12747 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12750 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12751 if ${ac_cv_lib_svld_dlopen+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lsvld $LIBS"
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char dlopen ();
12766 int
12767 main ()
12768 {
12769 return dlopen ();
12770 ;
12771 return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_lib_svld_dlopen=yes
12776 else
12777 ac_cv_lib_svld_dlopen=no
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12785 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12786 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12790 if ${ac_cv_lib_dld_dld_link+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 ac_check_lib_save_LIBS=$LIBS
12794 LIBS="-ldld $LIBS"
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12797
12798 /* Override any GCC internal prototype to avoid an error.
12799 Use char because int might match the return type of a GCC
12800 builtin and then its argument prototype would still apply. */
12801 #ifdef __cplusplus
12802 extern "C"
12803 #endif
12804 char dld_link ();
12805 int
12806 main ()
12807 {
12808 return dld_link ();
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_link "$LINENO"; then :
12814 ac_cv_lib_dld_dld_link=yes
12815 else
12816 ac_cv_lib_dld_dld_link=no
12817 fi
12818 rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12820 LIBS=$ac_check_lib_save_LIBS
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12823 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12824 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12825 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12826 fi
12827
12828
12829 fi
12830
12831
12832 fi
12833
12834
12835 fi
12836
12837
12838 fi
12839
12840
12841 fi
12842
12843 ;;
12844 esac
12845
12846 if test no = "$lt_cv_dlopen"; then
12847 enable_dlopen=no
12848 else
12849 enable_dlopen=yes
12850 fi
12851
12852 case $lt_cv_dlopen in
12853 dlopen)
12854 save_CPPFLAGS=$CPPFLAGS
12855 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12856
12857 save_LDFLAGS=$LDFLAGS
12858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12859
12860 save_LIBS=$LIBS
12861 LIBS="$lt_cv_dlopen_libs $LIBS"
12862
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12864 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12865 if ${lt_cv_dlopen_self+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 if test yes = "$cross_compiling"; then :
12869 lt_cv_dlopen_self=cross
12870 else
12871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12872 lt_status=$lt_dlunknown
12873 cat > conftest.$ac_ext <<_LT_EOF
12874 #line $LINENO "configure"
12875 #include "confdefs.h"
12876
12877 #if HAVE_DLFCN_H
12878 #include <dlfcn.h>
12879 #endif
12880
12881 #include <stdio.h>
12882
12883 #ifdef RTLD_GLOBAL
12884 # define LT_DLGLOBAL RTLD_GLOBAL
12885 #else
12886 # ifdef DL_GLOBAL
12887 # define LT_DLGLOBAL DL_GLOBAL
12888 # else
12889 # define LT_DLGLOBAL 0
12890 # endif
12891 #endif
12892
12893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12894 find out it does not work in some platform. */
12895 #ifndef LT_DLLAZY_OR_NOW
12896 # ifdef RTLD_LAZY
12897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12898 # else
12899 # ifdef DL_LAZY
12900 # define LT_DLLAZY_OR_NOW DL_LAZY
12901 # else
12902 # ifdef RTLD_NOW
12903 # define LT_DLLAZY_OR_NOW RTLD_NOW
12904 # else
12905 # ifdef DL_NOW
12906 # define LT_DLLAZY_OR_NOW DL_NOW
12907 # else
12908 # define LT_DLLAZY_OR_NOW 0
12909 # endif
12910 # endif
12911 # endif
12912 # endif
12913 #endif
12914
12915 /* When -fvisibility=hidden is used, assume the code has been annotated
12916 correspondingly for the symbols needed. */
12917 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12918 int fnord () __attribute__((visibility("default")));
12919 #endif
12920
12921 int fnord () { return 42; }
12922 int main ()
12923 {
12924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12925 int status = $lt_dlunknown;
12926
12927 if (self)
12928 {
12929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12930 else
12931 {
12932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12933 else puts (dlerror ());
12934 }
12935 /* dlclose (self); */
12936 }
12937 else
12938 puts (dlerror ());
12939
12940 return status;
12941 }
12942 _LT_EOF
12943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12944 (eval $ac_link) 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12948 (./conftest; exit; ) >&5 2>/dev/null
12949 lt_status=$?
12950 case x$lt_status in
12951 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12952 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12953 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12954 esac
12955 else :
12956 # compilation failed
12957 lt_cv_dlopen_self=no
12958 fi
12959 fi
12960 rm -fr conftest*
12961
12962
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12965 $as_echo "$lt_cv_dlopen_self" >&6; }
12966
12967 if test yes = "$lt_cv_dlopen_self"; then
12968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12970 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12971 if ${lt_cv_dlopen_self_static+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 if test yes = "$cross_compiling"; then :
12975 lt_cv_dlopen_self_static=cross
12976 else
12977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12978 lt_status=$lt_dlunknown
12979 cat > conftest.$ac_ext <<_LT_EOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12982
12983 #if HAVE_DLFCN_H
12984 #include <dlfcn.h>
12985 #endif
12986
12987 #include <stdio.h>
12988
12989 #ifdef RTLD_GLOBAL
12990 # define LT_DLGLOBAL RTLD_GLOBAL
12991 #else
12992 # ifdef DL_GLOBAL
12993 # define LT_DLGLOBAL DL_GLOBAL
12994 # else
12995 # define LT_DLGLOBAL 0
12996 # endif
12997 #endif
12998
12999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13000 find out it does not work in some platform. */
13001 #ifndef LT_DLLAZY_OR_NOW
13002 # ifdef RTLD_LAZY
13003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13004 # else
13005 # ifdef DL_LAZY
13006 # define LT_DLLAZY_OR_NOW DL_LAZY
13007 # else
13008 # ifdef RTLD_NOW
13009 # define LT_DLLAZY_OR_NOW RTLD_NOW
13010 # else
13011 # ifdef DL_NOW
13012 # define LT_DLLAZY_OR_NOW DL_NOW
13013 # else
13014 # define LT_DLLAZY_OR_NOW 0
13015 # endif
13016 # endif
13017 # endif
13018 # endif
13019 #endif
13020
13021 /* When -fvisibility=hidden is used, assume the code has been annotated
13022 correspondingly for the symbols needed. */
13023 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13024 int fnord () __attribute__((visibility("default")));
13025 #endif
13026
13027 int fnord () { return 42; }
13028 int main ()
13029 {
13030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13031 int status = $lt_dlunknown;
13032
13033 if (self)
13034 {
13035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13036 else
13037 {
13038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13039 else puts (dlerror ());
13040 }
13041 /* dlclose (self); */
13042 }
13043 else
13044 puts (dlerror ());
13045
13046 return status;
13047 }
13048 _LT_EOF
13049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13050 (eval $ac_link) 2>&5
13051 ac_status=$?
13052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13053 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13054 (./conftest; exit; ) >&5 2>/dev/null
13055 lt_status=$?
13056 case x$lt_status in
13057 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13058 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13059 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13060 esac
13061 else :
13062 # compilation failed
13063 lt_cv_dlopen_self_static=no
13064 fi
13065 fi
13066 rm -fr conftest*
13067
13068
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13071 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13072 fi
13073
13074 CPPFLAGS=$save_CPPFLAGS
13075 LDFLAGS=$save_LDFLAGS
13076 LIBS=$save_LIBS
13077 ;;
13078 esac
13079
13080 case $lt_cv_dlopen_self in
13081 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13082 *) enable_dlopen_self=unknown ;;
13083 esac
13084
13085 case $lt_cv_dlopen_self_static in
13086 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13087 *) enable_dlopen_self_static=unknown ;;
13088 esac
13089 fi
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107 striplib=
13108 old_striplib=
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13110 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13111 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13112 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13113 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13115 $as_echo "yes" >&6; }
13116 else
13117 # FIXME - insert some real tests, host_os isn't really good enough
13118 case $host_os in
13119 darwin*)
13120 if test -n "$STRIP"; then
13121 striplib="$STRIP -x"
13122 old_striplib="$STRIP -S"
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124 $as_echo "yes" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129 ;;
13130 *)
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13133 ;;
13134 esac
13135 fi
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 # Report what library types will actually be built
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13150 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13152 $as_echo "$can_build_shared" >&6; }
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13155 $as_echo_n "checking whether to build shared libraries... " >&6; }
13156 test no = "$can_build_shared" && enable_shared=no
13157
13158 # On AIX, shared libraries and static libraries use the same namespace, and
13159 # are all built from PIC.
13160 case $host_os in
13161 aix3*)
13162 test yes = "$enable_shared" && enable_static=no
13163 if test -n "$RANLIB"; then
13164 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13165 postinstall_cmds='$RANLIB $lib'
13166 fi
13167 ;;
13168
13169 aix[4-9]*)
13170 if test ia64 != "$host_cpu"; then
13171 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13172 yes,aix,yes) ;; # shared object as lib.so file only
13173 yes,svr4,*) ;; # shared object as lib.so archive member only
13174 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13175 esac
13176 fi
13177 ;;
13178 esac
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13180 $as_echo "$enable_shared" >&6; }
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13183 $as_echo_n "checking whether to build static libraries... " >&6; }
13184 # Make sure either enable_shared or enable_static is yes.
13185 test yes = "$enable_shared" || enable_static=yes
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13187 $as_echo "$enable_static" >&6; }
13188
13189
13190
13191
13192 fi
13193 ac_ext=c
13194 ac_cpp='$CPP $CPPFLAGS'
13195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198
13199 CC=$lt_save_CC
13200
13201 if test -n "$CXX" && ( test no != "$CXX" &&
13202 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13203 (test g++ != "$CXX"))); then
13204 ac_ext=cpp
13205 ac_cpp='$CXXCPP $CPPFLAGS'
13206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13210 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13211 if test -z "$CXXCPP"; then
13212 if ${ac_cv_prog_CXXCPP+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 # Double quotes because CXXCPP needs to be expanded
13216 for CXXCPP in "$CXX -E" "/lib/cpp"
13217 do
13218 ac_preproc_ok=false
13219 for ac_cxx_preproc_warn_flag in '' yes
13220 do
13221 # Use a header file that comes with gcc, so configuring glibc
13222 # with a fresh cross-compiler works.
13223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13224 # <limits.h> exists even on freestanding compilers.
13225 # On the NeXT, cc -E runs the code through the compiler's parser,
13226 # not just through cpp. "Syntax error" is here to catch this case.
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 #ifdef __STDC__
13230 # include <limits.h>
13231 #else
13232 # include <assert.h>
13233 #endif
13234 Syntax error
13235 _ACEOF
13236 if ac_fn_cxx_try_cpp "$LINENO"; then :
13237
13238 else
13239 # Broken: fails on valid input.
13240 continue
13241 fi
13242 rm -f conftest.err conftest.i conftest.$ac_ext
13243
13244 # OK, works on sane cases. Now check whether nonexistent headers
13245 # can be detected and how.
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 #include <ac_nonexistent.h>
13249 _ACEOF
13250 if ac_fn_cxx_try_cpp "$LINENO"; then :
13251 # Broken: success on invalid input.
13252 continue
13253 else
13254 # Passes both tests.
13255 ac_preproc_ok=:
13256 break
13257 fi
13258 rm -f conftest.err conftest.i conftest.$ac_ext
13259
13260 done
13261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13262 rm -f conftest.i conftest.err conftest.$ac_ext
13263 if $ac_preproc_ok; then :
13264 break
13265 fi
13266
13267 done
13268 ac_cv_prog_CXXCPP=$CXXCPP
13269
13270 fi
13271 CXXCPP=$ac_cv_prog_CXXCPP
13272 else
13273 ac_cv_prog_CXXCPP=$CXXCPP
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13276 $as_echo "$CXXCPP" >&6; }
13277 ac_preproc_ok=false
13278 for ac_cxx_preproc_warn_flag in '' yes
13279 do
13280 # Use a header file that comes with gcc, so configuring glibc
13281 # with a fresh cross-compiler works.
13282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13283 # <limits.h> exists even on freestanding compilers.
13284 # On the NeXT, cc -E runs the code through the compiler's parser,
13285 # not just through cpp. "Syntax error" is here to catch this case.
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288 #ifdef __STDC__
13289 # include <limits.h>
13290 #else
13291 # include <assert.h>
13292 #endif
13293 Syntax error
13294 _ACEOF
13295 if ac_fn_cxx_try_cpp "$LINENO"; then :
13296
13297 else
13298 # Broken: fails on valid input.
13299 continue
13300 fi
13301 rm -f conftest.err conftest.i conftest.$ac_ext
13302
13303 # OK, works on sane cases. Now check whether nonexistent headers
13304 # can be detected and how.
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #include <ac_nonexistent.h>
13308 _ACEOF
13309 if ac_fn_cxx_try_cpp "$LINENO"; then :
13310 # Broken: success on invalid input.
13311 continue
13312 else
13313 # Passes both tests.
13314 ac_preproc_ok=:
13315 break
13316 fi
13317 rm -f conftest.err conftest.i conftest.$ac_ext
13318
13319 done
13320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13321 rm -f conftest.i conftest.err conftest.$ac_ext
13322 if $ac_preproc_ok; then :
13323
13324 else
13325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13327 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13328 See \`config.log' for more details" "$LINENO" 5; }
13329 fi
13330
13331 ac_ext=c
13332 ac_cpp='$CPP $CPPFLAGS'
13333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13336
13337 else
13338 _lt_caught_CXX_error=yes
13339 fi
13340
13341 ac_ext=cpp
13342 ac_cpp='$CXXCPP $CPPFLAGS'
13343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13346
13347 archive_cmds_need_lc_CXX=no
13348 allow_undefined_flag_CXX=
13349 always_export_symbols_CXX=no
13350 archive_expsym_cmds_CXX=
13351 compiler_needs_object_CXX=no
13352 export_dynamic_flag_spec_CXX=
13353 hardcode_direct_CXX=no
13354 hardcode_direct_absolute_CXX=no
13355 hardcode_libdir_flag_spec_CXX=
13356 hardcode_libdir_separator_CXX=
13357 hardcode_minus_L_CXX=no
13358 hardcode_shlibpath_var_CXX=unsupported
13359 hardcode_automatic_CXX=no
13360 inherit_rpath_CXX=no
13361 module_cmds_CXX=
13362 module_expsym_cmds_CXX=
13363 link_all_deplibs_CXX=unknown
13364 old_archive_cmds_CXX=$old_archive_cmds
13365 reload_flag_CXX=$reload_flag
13366 reload_cmds_CXX=$reload_cmds
13367 no_undefined_flag_CXX=
13368 whole_archive_flag_spec_CXX=
13369 enable_shared_with_static_runtimes_CXX=no
13370
13371 # Source file extension for C++ test sources.
13372 ac_ext=cpp
13373
13374 # Object file extension for compiled C++ test sources.
13375 objext=o
13376 objext_CXX=$objext
13377
13378 # No sense in running all these tests if we already determined that
13379 # the CXX compiler isn't working. Some variables (like enable_shared)
13380 # are currently assumed to apply to all compilers on this platform,
13381 # and will be corrupted by setting them based on a non-working compiler.
13382 if test yes != "$_lt_caught_CXX_error"; then
13383 # Code to be used in simple compile tests
13384 lt_simple_compile_test_code="int some_variable = 0;"
13385
13386 # Code to be used in simple link tests
13387 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13388
13389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13390
13391
13392
13393
13394
13395
13396 # If no C compiler was specified, use CC.
13397 LTCC=${LTCC-"$CC"}
13398
13399 # If no C compiler flags were specified, use CFLAGS.
13400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13401
13402 # Allow CC to be a program name with arguments.
13403 compiler=$CC
13404
13405
13406 # save warnings/boilerplate of simple test code
13407 ac_outfile=conftest.$ac_objext
13408 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410 _lt_compiler_boilerplate=`cat conftest.err`
13411 $RM -r conftest*
13412
13413 ac_outfile=conftest.$ac_objext
13414 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416 _lt_linker_boilerplate=`cat conftest.err`
13417 $RM -r conftest*
13418
13419
13420 # Allow CC to be a program name with arguments.
13421 lt_save_CC=$CC
13422 lt_save_CFLAGS=$CFLAGS
13423 lt_save_LD=$LD
13424 lt_save_GCC=$GCC
13425 GCC=$GXX
13426 lt_save_with_gnu_ld=$with_gnu_ld
13427 lt_save_path_LD=$lt_cv_path_LD
13428 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13429 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13430 else
13431 $as_unset lt_cv_prog_gnu_ld
13432 fi
13433 if test -n "${lt_cv_path_LDCXX+set}"; then
13434 lt_cv_path_LD=$lt_cv_path_LDCXX
13435 else
13436 $as_unset lt_cv_path_LD
13437 fi
13438 test -z "${LDCXX+set}" || LD=$LDCXX
13439 CC=${CXX-"c++"}
13440 CFLAGS=$CXXFLAGS
13441 compiler=$CC
13442 compiler_CXX=$CC
13443 func_cc_basename $compiler
13444 cc_basename=$func_cc_basename_result
13445
13446
13447 if test -n "$compiler"; then
13448 # We don't want -fno-exception when compiling C++ code, so set the
13449 # no_builtin_flag separately
13450 if test yes = "$GXX"; then
13451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13452 else
13453 lt_prog_compiler_no_builtin_flag_CXX=
13454 fi
13455
13456 if test yes = "$GXX"; then
13457 # Set up default GNU C++ configuration
13458
13459
13460
13461 # Check whether --with-gnu-ld was given.
13462 if test "${with_gnu_ld+set}" = set; then :
13463 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13464 else
13465 with_gnu_ld=no
13466 fi
13467
13468 ac_prog=ld
13469 if test yes = "$GCC"; then
13470 # Check if gcc -print-prog-name=ld gives a path.
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13472 $as_echo_n "checking for ld used by $CC... " >&6; }
13473 case $host in
13474 *-*-mingw*)
13475 # gcc leaves a trailing carriage return, which upsets mingw
13476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13477 *)
13478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13479 esac
13480 case $ac_prog in
13481 # Accept absolute paths.
13482 [\\/]* | ?:[\\/]*)
13483 re_direlt='/[^/][^/]*/\.\./'
13484 # Canonicalize the pathname of ld
13485 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13486 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13487 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13488 done
13489 test -z "$LD" && LD=$ac_prog
13490 ;;
13491 "")
13492 # If it fails, then pretend we aren't using GCC.
13493 ac_prog=ld
13494 ;;
13495 *)
13496 # If it is relative, then search for the first ld in PATH.
13497 with_gnu_ld=unknown
13498 ;;
13499 esac
13500 elif test yes = "$with_gnu_ld"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13502 $as_echo_n "checking for GNU ld... " >&6; }
13503 else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13505 $as_echo_n "checking for non-GNU ld... " >&6; }
13506 fi
13507 if ${lt_cv_path_LD+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 if test -z "$LD"; then
13511 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13512 for ac_dir in $PATH; do
13513 IFS=$lt_save_ifs
13514 test -z "$ac_dir" && ac_dir=.
13515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13516 lt_cv_path_LD=$ac_dir/$ac_prog
13517 # Check to see if the program is GNU ld. I'd rather use --version,
13518 # but apparently some variants of GNU ld only accept -v.
13519 # Break only if it was the GNU/non-GNU ld that we prefer.
13520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13521 *GNU* | *'with BFD'*)
13522 test no != "$with_gnu_ld" && break
13523 ;;
13524 *)
13525 test yes != "$with_gnu_ld" && break
13526 ;;
13527 esac
13528 fi
13529 done
13530 IFS=$lt_save_ifs
13531 else
13532 lt_cv_path_LD=$LD # Let the user override the test with a path.
13533 fi
13534 fi
13535
13536 LD=$lt_cv_path_LD
13537 if test -n "$LD"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13539 $as_echo "$LD" >&6; }
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 fi
13544 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13546 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13547 if ${lt_cv_prog_gnu_ld+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13551 case `$LD -v 2>&1 </dev/null` in
13552 *GNU* | *'with BFD'*)
13553 lt_cv_prog_gnu_ld=yes
13554 ;;
13555 *)
13556 lt_cv_prog_gnu_ld=no
13557 ;;
13558 esac
13559 fi
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13561 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13562 with_gnu_ld=$lt_cv_prog_gnu_ld
13563
13564
13565
13566
13567
13568
13569
13570 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13571 # archiving commands below assume that GNU ld is being used.
13572 if test yes = "$with_gnu_ld"; then
13573 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13574 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'
13575
13576 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13577 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13578
13579 # If archive_cmds runs LD, not CC, wlarc should be empty
13580 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13581 # investigate it a little bit more. (MM)
13582 wlarc='$wl'
13583
13584 # ancient GNU ld didn't support --whole-archive et. al.
13585 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13586 $GREP 'no-whole-archive' > /dev/null; then
13587 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13588 else
13589 whole_archive_flag_spec_CXX=
13590 fi
13591 else
13592 with_gnu_ld=no
13593 wlarc=
13594
13595 # A generic and very simple default shared library creation
13596 # command for GNU C++ for the case where it uses the native
13597 # linker, instead of GNU ld. If possible, this setting should
13598 # overridden to take advantage of the native linker features on
13599 # the platform it is being used on.
13600 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13601 fi
13602
13603 # Commands to make compiler produce verbose output that lists
13604 # what "hidden" libraries, object files and flags are used when
13605 # linking a shared library.
13606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13607
13608 else
13609 GXX=no
13610 with_gnu_ld=no
13611 wlarc=
13612 fi
13613
13614 # PORTME: fill in a description of your system's C++ link characteristics
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13616 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13617 ld_shlibs_CXX=yes
13618 case $host_os in
13619 aix3*)
13620 # FIXME: insert proper C++ library support
13621 ld_shlibs_CXX=no
13622 ;;
13623 aix[4-9]*)
13624 if test ia64 = "$host_cpu"; then
13625 # On IA64, the linker does run time linking by default, so we don't
13626 # have to do anything special.
13627 aix_use_runtimelinking=no
13628 exp_sym_flag='-Bexport'
13629 no_entry_flag=
13630 else
13631 aix_use_runtimelinking=no
13632
13633 # Test if we are trying to use run time linking or normal
13634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13635 # have runtime linking enabled, and use it for executables.
13636 # For shared libraries, we enable/disable runtime linking
13637 # depending on the kind of the shared library created -
13638 # when "with_aix_soname,aix_use_runtimelinking" is:
13639 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13640 # "aix,yes" lib.so shared, rtl:yes, for executables
13641 # lib.a static archive
13642 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13643 # lib.a(lib.so.V) shared, rtl:no, for executables
13644 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13645 # lib.a(lib.so.V) shared, rtl:no
13646 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13647 # lib.a static archive
13648 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13649 for ld_flag in $LDFLAGS; do
13650 case $ld_flag in
13651 *-brtl*)
13652 aix_use_runtimelinking=yes
13653 break
13654 ;;
13655 esac
13656 done
13657 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13658 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13659 # so we don't have lib.a shared libs to link our executables.
13660 # We have to force runtime linking in this case.
13661 aix_use_runtimelinking=yes
13662 LDFLAGS="$LDFLAGS -Wl,-brtl"
13663 fi
13664 ;;
13665 esac
13666
13667 exp_sym_flag='-bexport'
13668 no_entry_flag='-bnoentry'
13669 fi
13670
13671 # When large executables or shared objects are built, AIX ld can
13672 # have problems creating the table of contents. If linking a library
13673 # or program results in "error TOC overflow" add -mminimal-toc to
13674 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13675 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13676
13677 archive_cmds_CXX=''
13678 hardcode_direct_CXX=yes
13679 hardcode_direct_absolute_CXX=yes
13680 hardcode_libdir_separator_CXX=':'
13681 link_all_deplibs_CXX=yes
13682 file_list_spec_CXX='$wl-f,'
13683 case $with_aix_soname,$aix_use_runtimelinking in
13684 aix,*) ;; # no import file
13685 svr4,* | *,yes) # use import file
13686 # The Import File defines what to hardcode.
13687 hardcode_direct_CXX=no
13688 hardcode_direct_absolute_CXX=no
13689 ;;
13690 esac
13691
13692 if test yes = "$GXX"; then
13693 case $host_os in aix4.[012]|aix4.[012].*)
13694 # We only want to do this on AIX 4.2 and lower, the check
13695 # below for broken collect2 doesn't work under 4.3+
13696 collect2name=`$CC -print-prog-name=collect2`
13697 if test -f "$collect2name" &&
13698 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13699 then
13700 # We have reworked collect2
13701 :
13702 else
13703 # We have old collect2
13704 hardcode_direct_CXX=unsupported
13705 # It fails to find uninstalled libraries when the uninstalled
13706 # path is not listed in the libpath. Setting hardcode_minus_L
13707 # to unsupported forces relinking
13708 hardcode_minus_L_CXX=yes
13709 hardcode_libdir_flag_spec_CXX='-L$libdir'
13710 hardcode_libdir_separator_CXX=
13711 fi
13712 esac
13713 shared_flag='-shared'
13714 if test yes = "$aix_use_runtimelinking"; then
13715 shared_flag=$shared_flag' $wl-G'
13716 fi
13717 # Need to ensure runtime linking is disabled for the traditional
13718 # shared library, or the linker may eventually find shared libraries
13719 # /with/ Import File - we do not want to mix them.
13720 shared_flag_aix='-shared'
13721 shared_flag_svr4='-shared $wl-G'
13722 else
13723 # not using gcc
13724 if test ia64 = "$host_cpu"; then
13725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13726 # chokes on -Wl,-G. The following line is correct:
13727 shared_flag='-G'
13728 else
13729 if test yes = "$aix_use_runtimelinking"; then
13730 shared_flag='$wl-G'
13731 else
13732 shared_flag='$wl-bM:SRE'
13733 fi
13734 shared_flag_aix='$wl-bM:SRE'
13735 shared_flag_svr4='$wl-G'
13736 fi
13737 fi
13738
13739 export_dynamic_flag_spec_CXX='$wl-bexpall'
13740 # It seems that -bexpall does not export symbols beginning with
13741 # underscore (_), so it is better to generate a list of symbols to
13742 # export.
13743 always_export_symbols_CXX=yes
13744 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13745 # Warning - without using the other runtime loading flags (-brtl),
13746 # -berok will link without error, but may produce a broken library.
13747 # The "-G" linker flag allows undefined symbols.
13748 no_undefined_flag_CXX='-bernotok'
13749 # Determine the default libpath from the value encoded in an empty
13750 # executable.
13751 if test set = "${lt_cv_aix_libpath+set}"; then
13752 aix_libpath=$lt_cv_aix_libpath
13753 else
13754 if ${lt_cv_aix_libpath__CXX+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759
13760 int
13761 main ()
13762 {
13763
13764 ;
13765 return 0;
13766 }
13767 _ACEOF
13768 if ac_fn_cxx_try_link "$LINENO"; then :
13769
13770 lt_aix_libpath_sed='
13771 /Import File Strings/,/^$/ {
13772 /^0/ {
13773 s/^0 *\([^ ]*\) *$/\1/
13774 p
13775 }
13776 }'
13777 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13778 # Check for a 64-bit object if we didn't find anything.
13779 if test -z "$lt_cv_aix_libpath__CXX"; then
13780 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13781 fi
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 if test -z "$lt_cv_aix_libpath__CXX"; then
13786 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13787 fi
13788
13789 fi
13790
13791 aix_libpath=$lt_cv_aix_libpath__CXX
13792 fi
13793
13794 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13795
13796 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
13797 else
13798 if test ia64 = "$host_cpu"; then
13799 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13800 allow_undefined_flag_CXX="-z nodefs"
13801 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"
13802 else
13803 # Determine the default libpath from the value encoded in an
13804 # empty executable.
13805 if test set = "${lt_cv_aix_libpath+set}"; then
13806 aix_libpath=$lt_cv_aix_libpath
13807 else
13808 if ${lt_cv_aix_libpath__CXX+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813
13814 int
13815 main ()
13816 {
13817
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_cxx_try_link "$LINENO"; then :
13823
13824 lt_aix_libpath_sed='
13825 /Import File Strings/,/^$/ {
13826 /^0/ {
13827 s/^0 *\([^ ]*\) *$/\1/
13828 p
13829 }
13830 }'
13831 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13832 # Check for a 64-bit object if we didn't find anything.
13833 if test -z "$lt_cv_aix_libpath__CXX"; then
13834 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13835 fi
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 if test -z "$lt_cv_aix_libpath__CXX"; then
13840 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13841 fi
13842
13843 fi
13844
13845 aix_libpath=$lt_cv_aix_libpath__CXX
13846 fi
13847
13848 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13849 # Warning - without using the other run time loading flags,
13850 # -berok will link without error, but may produce a broken library.
13851 no_undefined_flag_CXX=' $wl-bernotok'
13852 allow_undefined_flag_CXX=' $wl-berok'
13853 if test yes = "$with_gnu_ld"; then
13854 # We only use this code for GNU lds that support --whole-archive.
13855 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13856 else
13857 # Exported symbols can be pulled into shared objects from archives
13858 whole_archive_flag_spec_CXX='$convenience'
13859 fi
13860 archive_cmds_need_lc_CXX=yes
13861 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13862 # -brtl affects multiple linker settings, -berok does not and is overridden later
13863 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13864 if test svr4 != "$with_aix_soname"; then
13865 # This is similar to how AIX traditionally builds its shared
13866 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13867 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'
13868 fi
13869 if test aix != "$with_aix_soname"; then
13870 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'
13871 else
13872 # used by -dlpreopen to get the symbols
13873 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13874 fi
13875 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13876 fi
13877 fi
13878 ;;
13879
13880 beos*)
13881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13882 allow_undefined_flag_CXX=unsupported
13883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13884 # support --undefined. This deserves some investigation. FIXME
13885 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13886 else
13887 ld_shlibs_CXX=no
13888 fi
13889 ;;
13890
13891 chorus*)
13892 case $cc_basename in
13893 *)
13894 # FIXME: insert proper C++ library support
13895 ld_shlibs_CXX=no
13896 ;;
13897 esac
13898 ;;
13899
13900 cygwin* | mingw* | pw32* | cegcc*)
13901 case $GXX,$cc_basename in
13902 ,cl* | no,cl*)
13903 # Native MSVC
13904 # hardcode_libdir_flag_spec is actually meaningless, as there is
13905 # no search path for DLLs.
13906 hardcode_libdir_flag_spec_CXX=' '
13907 allow_undefined_flag_CXX=unsupported
13908 always_export_symbols_CXX=yes
13909 file_list_spec_CXX='@'
13910 # Tell ltmain to make .lib files, not .a files.
13911 libext=lib
13912 # Tell ltmain to make .dll files, not .so files.
13913 shrext_cmds=.dll
13914 # FIXME: Setting linknames here is a bad hack.
13915 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13916 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13917 cp "$export_symbols" "$output_objdir/$soname.def";
13918 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13919 else
13920 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13921 fi~
13922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13923 linknames='
13924 # The linker will not automatically build a static lib if we build a DLL.
13925 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13926 enable_shared_with_static_runtimes_CXX=yes
13927 # Don't use ranlib
13928 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13929 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13930 lt_tool_outputfile="@TOOL_OUTPUT@"~
13931 case $lt_outputfile in
13932 *.exe|*.EXE) ;;
13933 *)
13934 lt_outputfile=$lt_outputfile.exe
13935 lt_tool_outputfile=$lt_tool_outputfile.exe
13936 ;;
13937 esac~
13938 func_to_tool_file "$lt_outputfile"~
13939 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13940 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13941 $RM "$lt_outputfile.manifest";
13942 fi'
13943 ;;
13944 *)
13945 # g++
13946 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13947 # as there is no search path for DLLs.
13948 hardcode_libdir_flag_spec_CXX='-L$libdir'
13949 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13950 allow_undefined_flag_CXX=unsupported
13951 always_export_symbols_CXX=no
13952 enable_shared_with_static_runtimes_CXX=yes
13953
13954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13955 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'
13956 # If the export-symbols file already is a .def file, use it as
13957 # is; otherwise, prepend EXPORTS...
13958 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13959 cp $export_symbols $output_objdir/$soname.def;
13960 else
13961 echo EXPORTS > $output_objdir/$soname.def;
13962 cat $export_symbols >> $output_objdir/$soname.def;
13963 fi~
13964 $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'
13965 else
13966 ld_shlibs_CXX=no
13967 fi
13968 ;;
13969 esac
13970 ;;
13971 darwin* | rhapsody*)
13972
13973
13974 archive_cmds_need_lc_CXX=no
13975 hardcode_direct_CXX=no
13976 hardcode_automatic_CXX=yes
13977 hardcode_shlibpath_var_CXX=unsupported
13978 if test yes = "$lt_cv_ld_force_load"; then
13979 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\"`'
13980
13981 else
13982 whole_archive_flag_spec_CXX=''
13983 fi
13984 link_all_deplibs_CXX=yes
13985 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13986 case $cc_basename in
13987 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13988 *) _lt_dar_can_shared=$GCC ;;
13989 esac
13990 if test yes = "$_lt_dar_can_shared"; then
13991 output_verbose_link_cmd=func_echo_all
13992 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"
13993 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13994 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"
13995 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"
13996 if test yes != "$lt_cv_apple_cc_single_mod"; then
13997 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"
13998 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"
13999 fi
14000
14001 else
14002 ld_shlibs_CXX=no
14003 fi
14004
14005 ;;
14006
14007 os2*)
14008 hardcode_libdir_flag_spec_CXX='-L$libdir'
14009 hardcode_minus_L_CXX=yes
14010 allow_undefined_flag_CXX=unsupported
14011 shrext_cmds=.dll
14012 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14015 $ECHO EXPORTS >> $output_objdir/$libname.def~
14016 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14018 emximp -o $lib $output_objdir/$libname.def'
14019 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14022 $ECHO EXPORTS >> $output_objdir/$libname.def~
14023 prefix_cmds="$SED"~
14024 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14025 prefix_cmds="$prefix_cmds -e 1d";
14026 fi~
14027 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14028 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14030 emximp -o $lib $output_objdir/$libname.def'
14031 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14032 enable_shared_with_static_runtimes_CXX=yes
14033 ;;
14034
14035 dgux*)
14036 case $cc_basename in
14037 ec++*)
14038 # FIXME: insert proper C++ library support
14039 ld_shlibs_CXX=no
14040 ;;
14041 ghcx*)
14042 # Green Hills C++ Compiler
14043 # FIXME: insert proper C++ library support
14044 ld_shlibs_CXX=no
14045 ;;
14046 *)
14047 # FIXME: insert proper C++ library support
14048 ld_shlibs_CXX=no
14049 ;;
14050 esac
14051 ;;
14052
14053 freebsd2.*)
14054 # C++ shared libraries reported to be fairly broken before
14055 # switch to ELF
14056 ld_shlibs_CXX=no
14057 ;;
14058
14059 freebsd-elf*)
14060 archive_cmds_need_lc_CXX=no
14061 ;;
14062
14063 freebsd* | dragonfly*)
14064 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14065 # conventions
14066 ld_shlibs_CXX=yes
14067 ;;
14068
14069 haiku*)
14070 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14071 link_all_deplibs_CXX=yes
14072 ;;
14073
14074 hpux9*)
14075 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14076 hardcode_libdir_separator_CXX=:
14077 export_dynamic_flag_spec_CXX='$wl-E'
14078 hardcode_direct_CXX=yes
14079 hardcode_minus_L_CXX=yes # Not in the search PATH,
14080 # but as the default
14081 # location of the library.
14082
14083 case $cc_basename in
14084 CC*)
14085 # FIXME: insert proper C++ library support
14086 ld_shlibs_CXX=no
14087 ;;
14088 aCC*)
14089 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'
14090 # Commands to make compiler produce verbose output that lists
14091 # what "hidden" libraries, object files and flags are used when
14092 # linking a shared library.
14093 #
14094 # There doesn't appear to be a way to prevent this compiler from
14095 # explicitly linking system object files so we need to strip them
14096 # from the output so that they don't get included in the library
14097 # dependencies.
14098 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"'
14099 ;;
14100 *)
14101 if test yes = "$GXX"; then
14102 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'
14103 else
14104 # FIXME: insert proper C++ library support
14105 ld_shlibs_CXX=no
14106 fi
14107 ;;
14108 esac
14109 ;;
14110
14111 hpux10*|hpux11*)
14112 if test no = "$with_gnu_ld"; then
14113 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14114 hardcode_libdir_separator_CXX=:
14115
14116 case $host_cpu in
14117 hppa*64*|ia64*)
14118 ;;
14119 *)
14120 export_dynamic_flag_spec_CXX='$wl-E'
14121 ;;
14122 esac
14123 fi
14124 case $host_cpu in
14125 hppa*64*|ia64*)
14126 hardcode_direct_CXX=no
14127 hardcode_shlibpath_var_CXX=no
14128 ;;
14129 *)
14130 hardcode_direct_CXX=yes
14131 hardcode_direct_absolute_CXX=yes
14132 hardcode_minus_L_CXX=yes # Not in the search PATH,
14133 # but as the default
14134 # location of the library.
14135 ;;
14136 esac
14137
14138 case $cc_basename in
14139 CC*)
14140 # FIXME: insert proper C++ library support
14141 ld_shlibs_CXX=no
14142 ;;
14143 aCC*)
14144 case $host_cpu in
14145 hppa*64*)
14146 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14147 ;;
14148 ia64*)
14149 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14150 ;;
14151 *)
14152 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14153 ;;
14154 esac
14155 # Commands to make compiler produce verbose output that lists
14156 # what "hidden" libraries, object files and flags are used when
14157 # linking a shared library.
14158 #
14159 # There doesn't appear to be a way to prevent this compiler from
14160 # explicitly linking system object files so we need to strip them
14161 # from the output so that they don't get included in the library
14162 # dependencies.
14163 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"'
14164 ;;
14165 *)
14166 if test yes = "$GXX"; then
14167 if test no = "$with_gnu_ld"; then
14168 case $host_cpu in
14169 hppa*64*)
14170 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14171 ;;
14172 ia64*)
14173 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174 ;;
14175 *)
14176 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'
14177 ;;
14178 esac
14179 fi
14180 else
14181 # FIXME: insert proper C++ library support
14182 ld_shlibs_CXX=no
14183 fi
14184 ;;
14185 esac
14186 ;;
14187
14188 interix[3-9]*)
14189 hardcode_direct_CXX=no
14190 hardcode_shlibpath_var_CXX=no
14191 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14192 export_dynamic_flag_spec_CXX='$wl-E'
14193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14194 # Instead, shared libraries are loaded at an image base (0x10000000 by
14195 # default) and relocated if they conflict, which is a slow very memory
14196 # consuming and fragmenting process. To avoid this, we pick a random,
14197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14198 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14199 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'
14200 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'
14201 ;;
14202 irix5* | irix6*)
14203 case $cc_basename in
14204 CC*)
14205 # SGI C++
14206 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'
14207
14208 # Archives containing C++ object files must be created using
14209 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14210 # necessary to make sure instantiated templates are included
14211 # in the archive.
14212 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14213 ;;
14214 *)
14215 if test yes = "$GXX"; then
14216 if test no = "$with_gnu_ld"; then
14217 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'
14218 else
14219 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'
14220 fi
14221 fi
14222 link_all_deplibs_CXX=yes
14223 ;;
14224 esac
14225 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14226 hardcode_libdir_separator_CXX=:
14227 inherit_rpath_CXX=yes
14228 ;;
14229
14230 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14231 case $cc_basename in
14232 KCC*)
14233 # Kuck and Associates, Inc. (KAI) C++ Compiler
14234
14235 # KCC will only create a shared library if the output file
14236 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14237 # to its proper name (with version) after linking.
14238 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'
14239 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'
14240 # Commands to make compiler produce verbose output that lists
14241 # what "hidden" libraries, object files and flags are used when
14242 # linking a shared library.
14243 #
14244 # There doesn't appear to be a way to prevent this compiler from
14245 # explicitly linking system object files so we need to strip them
14246 # from the output so that they don't get included in the library
14247 # dependencies.
14248 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"'
14249
14250 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14251 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14252
14253 # Archives containing C++ object files must be created using
14254 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14255 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14256 ;;
14257 icpc* | ecpc* )
14258 # Intel C++
14259 with_gnu_ld=yes
14260 # version 8.0 and above of icpc choke on multiply defined symbols
14261 # if we add $predep_objects and $postdep_objects, however 7.1 and
14262 # earlier do not add the objects themselves.
14263 case `$CC -V 2>&1` in
14264 *"Version 7."*)
14265 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14266 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'
14267 ;;
14268 *) # Version 8.0 or newer
14269 tmp_idyn=
14270 case $host_cpu in
14271 ia64*) tmp_idyn=' -i_dynamic';;
14272 esac
14273 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14274 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'
14275 ;;
14276 esac
14277 archive_cmds_need_lc_CXX=no
14278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14279 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14280 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14281 ;;
14282 pgCC* | pgcpp*)
14283 # Portland Group C++ compiler
14284 case `$CC -V` in
14285 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14286 prelink_cmds_CXX='tpldir=Template.dir~
14287 rm -rf $tpldir~
14288 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14289 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14290 old_archive_cmds_CXX='tpldir=Template.dir~
14291 rm -rf $tpldir~
14292 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14293 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14294 $RANLIB $oldlib'
14295 archive_cmds_CXX='tpldir=Template.dir~
14296 rm -rf $tpldir~
14297 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14298 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14299 archive_expsym_cmds_CXX='tpldir=Template.dir~
14300 rm -rf $tpldir~
14301 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14302 $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'
14303 ;;
14304 *) # Version 6 and above use weak symbols
14305 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14306 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'
14307 ;;
14308 esac
14309
14310 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14311 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14312 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'
14313 ;;
14314 cxx*)
14315 # Compaq C++
14316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14317 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'
14318
14319 runpath_var=LD_RUN_PATH
14320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14321 hardcode_libdir_separator_CXX=:
14322
14323 # Commands to make compiler produce verbose output that lists
14324 # what "hidden" libraries, object files and flags are used when
14325 # linking a shared library.
14326 #
14327 # There doesn't appear to be a way to prevent this compiler from
14328 # explicitly linking system object files so we need to strip them
14329 # from the output so that they don't get included in the library
14330 # dependencies.
14331 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'
14332 ;;
14333 xl* | mpixl* | bgxl*)
14334 # IBM XL 8.0 on PPC, with GNU ld
14335 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14336 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14337 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14338 if test yes = "$supports_anon_versioning"; then
14339 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14341 echo "local: *; };" >> $output_objdir/$libname.ver~
14342 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14343 fi
14344 ;;
14345 *)
14346 case `$CC -V 2>&1 | sed 5q` in
14347 *Sun\ C*)
14348 # Sun C++ 5.9
14349 no_undefined_flag_CXX=' -zdefs'
14350 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14351 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'
14352 hardcode_libdir_flag_spec_CXX='-R$libdir'
14353 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'
14354 compiler_needs_object_CXX=yes
14355
14356 # Not sure whether something based on
14357 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14358 # would be better.
14359 output_verbose_link_cmd='func_echo_all'
14360
14361 # Archives containing C++ object files must be created using
14362 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14363 # necessary to make sure instantiated templates are included
14364 # in the archive.
14365 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14366 ;;
14367 esac
14368 ;;
14369 esac
14370 ;;
14371
14372 lynxos*)
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14375 ;;
14376
14377 m88k*)
14378 # FIXME: insert proper C++ library support
14379 ld_shlibs_CXX=no
14380 ;;
14381
14382 mvs*)
14383 case $cc_basename in
14384 cxx*)
14385 # FIXME: insert proper C++ library support
14386 ld_shlibs_CXX=no
14387 ;;
14388 *)
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14391 ;;
14392 esac
14393 ;;
14394
14395 netbsd*)
14396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14397 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14398 wlarc=
14399 hardcode_libdir_flag_spec_CXX='-R$libdir'
14400 hardcode_direct_CXX=yes
14401 hardcode_shlibpath_var_CXX=no
14402 fi
14403 # Workaround some broken pre-1.5 toolchains
14404 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14405 ;;
14406
14407 *nto* | *qnx*)
14408 ld_shlibs_CXX=yes
14409 ;;
14410
14411 openbsd* | bitrig*)
14412 if test -f /usr/libexec/ld.so; then
14413 hardcode_direct_CXX=yes
14414 hardcode_shlibpath_var_CXX=no
14415 hardcode_direct_absolute_CXX=yes
14416 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14417 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14419 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14420 export_dynamic_flag_spec_CXX='$wl-E'
14421 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14422 fi
14423 output_verbose_link_cmd=func_echo_all
14424 else
14425 ld_shlibs_CXX=no
14426 fi
14427 ;;
14428
14429 osf3* | osf4* | osf5*)
14430 case $cc_basename in
14431 KCC*)
14432 # Kuck and Associates, Inc. (KAI) C++ Compiler
14433
14434 # KCC will only create a shared library if the output file
14435 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14436 # to its proper name (with version) after linking.
14437 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'
14438
14439 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14440 hardcode_libdir_separator_CXX=:
14441
14442 # Archives containing C++ object files must be created using
14443 # the KAI C++ compiler.
14444 case $host in
14445 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14446 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14447 esac
14448 ;;
14449 RCC*)
14450 # Rational C++ 2.4.1
14451 # FIXME: insert proper C++ library support
14452 ld_shlibs_CXX=no
14453 ;;
14454 cxx*)
14455 case $host in
14456 osf3*)
14457 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14458 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'
14459 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14460 ;;
14461 *)
14462 allow_undefined_flag_CXX=' -expect_unresolved \*'
14463 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'
14464 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14465 echo "-hidden">> $lib.exp~
14466 $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~
14467 $RM $lib.exp'
14468 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14469 ;;
14470 esac
14471
14472 hardcode_libdir_separator_CXX=:
14473
14474 # Commands to make compiler produce verbose output that lists
14475 # what "hidden" libraries, object files and flags are used when
14476 # linking a shared library.
14477 #
14478 # There doesn't appear to be a way to prevent this compiler from
14479 # explicitly linking system object files so we need to strip them
14480 # from the output so that they don't get included in the library
14481 # dependencies.
14482 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"'
14483 ;;
14484 *)
14485 if test yes,no = "$GXX,$with_gnu_ld"; then
14486 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14487 case $host in
14488 osf3*)
14489 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'
14490 ;;
14491 *)
14492 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'
14493 ;;
14494 esac
14495
14496 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14497 hardcode_libdir_separator_CXX=:
14498
14499 # Commands to make compiler produce verbose output that lists
14500 # what "hidden" libraries, object files and flags are used when
14501 # linking a shared library.
14502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14503
14504 else
14505 # FIXME: insert proper C++ library support
14506 ld_shlibs_CXX=no
14507 fi
14508 ;;
14509 esac
14510 ;;
14511
14512 psos*)
14513 # FIXME: insert proper C++ library support
14514 ld_shlibs_CXX=no
14515 ;;
14516
14517 sunos4*)
14518 case $cc_basename in
14519 CC*)
14520 # Sun C++ 4.x
14521 # FIXME: insert proper C++ library support
14522 ld_shlibs_CXX=no
14523 ;;
14524 lcc*)
14525 # Lucid
14526 # FIXME: insert proper C++ library support
14527 ld_shlibs_CXX=no
14528 ;;
14529 *)
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 ;;
14533 esac
14534 ;;
14535
14536 solaris*)
14537 case $cc_basename in
14538 CC* | sunCC*)
14539 # Sun C++ 4.2, 5.x and Centerline C++
14540 archive_cmds_need_lc_CXX=yes
14541 no_undefined_flag_CXX=' -zdefs'
14542 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14543 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14544 $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'
14545
14546 hardcode_libdir_flag_spec_CXX='-R$libdir'
14547 hardcode_shlibpath_var_CXX=no
14548 case $host_os in
14549 solaris2.[0-5] | solaris2.[0-5].*) ;;
14550 *)
14551 # The compiler driver will combine and reorder linker options,
14552 # but understands '-z linker_flag'.
14553 # Supported since Solaris 2.6 (maybe 2.5.1?)
14554 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14555 ;;
14556 esac
14557 link_all_deplibs_CXX=yes
14558
14559 output_verbose_link_cmd='func_echo_all'
14560
14561 # Archives containing C++ object files must be created using
14562 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14563 # necessary to make sure instantiated templates are included
14564 # in the archive.
14565 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14566 ;;
14567 gcx*)
14568 # Green Hills C++ Compiler
14569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14570
14571 # The C++ compiler must be used to create the archive.
14572 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14573 ;;
14574 *)
14575 # GNU C++ compiler with Solaris linker
14576 if test yes,no = "$GXX,$with_gnu_ld"; then
14577 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14578 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14579 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14580 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14581 $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'
14582
14583 # Commands to make compiler produce verbose output that lists
14584 # what "hidden" libraries, object files and flags are used when
14585 # linking a shared library.
14586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14587 else
14588 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14589 # platform.
14590 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14592 $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'
14593
14594 # Commands to make compiler produce verbose output that lists
14595 # what "hidden" libraries, object files and flags are used when
14596 # linking a shared library.
14597 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14598 fi
14599
14600 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14601 case $host_os in
14602 solaris2.[0-5] | solaris2.[0-5].*) ;;
14603 *)
14604 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14605 ;;
14606 esac
14607 fi
14608 ;;
14609 esac
14610 ;;
14611
14612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14613 no_undefined_flag_CXX='$wl-z,text'
14614 archive_cmds_need_lc_CXX=no
14615 hardcode_shlibpath_var_CXX=no
14616 runpath_var='LD_RUN_PATH'
14617
14618 case $cc_basename in
14619 CC*)
14620 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14621 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14622 ;;
14623 *)
14624 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 ;;
14627 esac
14628 ;;
14629
14630 sysv5* | sco3.2v5* | sco5v6*)
14631 # Note: We CANNOT use -z defs as we might desire, because we do not
14632 # link with -lc, and that would cause any symbols used from libc to
14633 # always be unresolved, which means just about no library would
14634 # ever link correctly. If we're not using GNU ld we use -z text
14635 # though, which does catch some bad symbols but isn't as heavy-handed
14636 # as -z defs.
14637 no_undefined_flag_CXX='$wl-z,text'
14638 allow_undefined_flag_CXX='$wl-z,nodefs'
14639 archive_cmds_need_lc_CXX=no
14640 hardcode_shlibpath_var_CXX=no
14641 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14642 hardcode_libdir_separator_CXX=':'
14643 link_all_deplibs_CXX=yes
14644 export_dynamic_flag_spec_CXX='$wl-Bexport'
14645 runpath_var='LD_RUN_PATH'
14646
14647 case $cc_basename in
14648 CC*)
14649 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14652 '"$old_archive_cmds_CXX"
14653 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14654 '"$reload_cmds_CXX"
14655 ;;
14656 *)
14657 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 ;;
14660 esac
14661 ;;
14662
14663 tandem*)
14664 case $cc_basename in
14665 NCC*)
14666 # NonStop-UX NCC 3.20
14667 # FIXME: insert proper C++ library support
14668 ld_shlibs_CXX=no
14669 ;;
14670 *)
14671 # FIXME: insert proper C++ library support
14672 ld_shlibs_CXX=no
14673 ;;
14674 esac
14675 ;;
14676
14677 vxworks*)
14678 # FIXME: insert proper C++ library support
14679 ld_shlibs_CXX=no
14680 ;;
14681
14682 *)
14683 # FIXME: insert proper C++ library support
14684 ld_shlibs_CXX=no
14685 ;;
14686 esac
14687
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14689 $as_echo "$ld_shlibs_CXX" >&6; }
14690 test no = "$ld_shlibs_CXX" && can_build_shared=no
14691
14692 GCC_CXX=$GXX
14693 LD_CXX=$LD
14694
14695 ## CAVEAT EMPTOR:
14696 ## There is no encapsulation within the following macros, do not change
14697 ## the running order or otherwise move them around unless you know exactly
14698 ## what you are doing...
14699 # Dependencies to place before and after the object being linked:
14700 predep_objects_CXX=
14701 postdep_objects_CXX=
14702 predeps_CXX=
14703 postdeps_CXX=
14704 compiler_lib_search_path_CXX=
14705
14706 cat > conftest.$ac_ext <<_LT_EOF
14707 class Foo
14708 {
14709 public:
14710 Foo (void) { a = 0; }
14711 private:
14712 int a;
14713 };
14714 _LT_EOF
14715
14716
14717 _lt_libdeps_save_CFLAGS=$CFLAGS
14718 case "$CC $CFLAGS " in #(
14719 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14720 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14721 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14722 esac
14723
14724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14725 (eval $ac_compile) 2>&5
14726 ac_status=$?
14727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14728 test $ac_status = 0; }; then
14729 # Parse the compiler output and extract the necessary
14730 # objects, libraries and library flags.
14731
14732 # Sentinel used to keep track of whether or not we are before
14733 # the conftest object file.
14734 pre_test_object_deps_done=no
14735
14736 for p in `eval "$output_verbose_link_cmd"`; do
14737 case $prev$p in
14738
14739 -L* | -R* | -l*)
14740 # Some compilers place space between "-{L,R}" and the path.
14741 # Remove the space.
14742 if test x-L = "$p" ||
14743 test x-R = "$p"; then
14744 prev=$p
14745 continue
14746 fi
14747
14748 # Expand the sysroot to ease extracting the directories later.
14749 if test -z "$prev"; then
14750 case $p in
14751 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14752 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14753 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14754 esac
14755 fi
14756 case $p in
14757 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14758 esac
14759 if test no = "$pre_test_object_deps_done"; then
14760 case $prev in
14761 -L | -R)
14762 # Internal compiler library paths should come after those
14763 # provided the user. The postdeps already come after the
14764 # user supplied libs so there is no need to process them.
14765 if test -z "$compiler_lib_search_path_CXX"; then
14766 compiler_lib_search_path_CXX=$prev$p
14767 else
14768 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14769 fi
14770 ;;
14771 # The "-l" case would never come before the object being
14772 # linked, so don't bother handling this case.
14773 esac
14774 else
14775 if test -z "$postdeps_CXX"; then
14776 postdeps_CXX=$prev$p
14777 else
14778 postdeps_CXX="${postdeps_CXX} $prev$p"
14779 fi
14780 fi
14781 prev=
14782 ;;
14783
14784 *.lto.$objext) ;; # Ignore GCC LTO objects
14785 *.$objext)
14786 # This assumes that the test object file only shows up
14787 # once in the compiler output.
14788 if test "$p" = "conftest.$objext"; then
14789 pre_test_object_deps_done=yes
14790 continue
14791 fi
14792
14793 if test no = "$pre_test_object_deps_done"; then
14794 if test -z "$predep_objects_CXX"; then
14795 predep_objects_CXX=$p
14796 else
14797 predep_objects_CXX="$predep_objects_CXX $p"
14798 fi
14799 else
14800 if test -z "$postdep_objects_CXX"; then
14801 postdep_objects_CXX=$p
14802 else
14803 postdep_objects_CXX="$postdep_objects_CXX $p"
14804 fi
14805 fi
14806 ;;
14807
14808 *) ;; # Ignore the rest.
14809
14810 esac
14811 done
14812
14813 # Clean up.
14814 rm -f a.out a.exe
14815 else
14816 echo "libtool.m4: error: problem compiling CXX test program"
14817 fi
14818
14819 $RM -f confest.$objext
14820 CFLAGS=$_lt_libdeps_save_CFLAGS
14821
14822 # PORTME: override above test on systems where it is broken
14823 case $host_os in
14824 interix[3-9]*)
14825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14826 # hack all around it, let's just trust "g++" to DTRT.
14827 predep_objects_CXX=
14828 postdep_objects_CXX=
14829 postdeps_CXX=
14830 ;;
14831 esac
14832
14833
14834 case " $postdeps_CXX " in
14835 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14836 esac
14837 compiler_lib_search_dirs_CXX=
14838 if test -n "${compiler_lib_search_path_CXX}"; then
14839 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14840 fi
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872 lt_prog_compiler_wl_CXX=
14873 lt_prog_compiler_pic_CXX=
14874 lt_prog_compiler_static_CXX=
14875
14876
14877 # C++ specific cases for pic, static, wl, etc.
14878 if test yes = "$GXX"; then
14879 lt_prog_compiler_wl_CXX='-Wl,'
14880 lt_prog_compiler_static_CXX='-static'
14881
14882 case $host_os in
14883 aix*)
14884 # All AIX code is PIC.
14885 if test ia64 = "$host_cpu"; then
14886 # AIX 5 now supports IA64 processor
14887 lt_prog_compiler_static_CXX='-Bstatic'
14888 fi
14889 lt_prog_compiler_pic_CXX='-fPIC'
14890 ;;
14891
14892 amigaos*)
14893 case $host_cpu in
14894 powerpc)
14895 # see comment about AmigaOS4 .so support
14896 lt_prog_compiler_pic_CXX='-fPIC'
14897 ;;
14898 m68k)
14899 # FIXME: we need at least 68020 code to build shared libraries, but
14900 # adding the '-m68020' flag to GCC prevents building anything better,
14901 # like '-m68040'.
14902 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14903 ;;
14904 esac
14905 ;;
14906
14907 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14908 # PIC is the default for these OSes.
14909 ;;
14910 mingw* | cygwin* | os2* | pw32* | cegcc*)
14911 # This hack is so that the source file can tell whether it is being
14912 # built for inclusion in a dll (and should export symbols for example).
14913 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14914 # (--disable-auto-import) libraries
14915 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14916 case $host_os in
14917 os2*)
14918 lt_prog_compiler_static_CXX='$wl-static'
14919 ;;
14920 esac
14921 ;;
14922 darwin* | rhapsody*)
14923 # PIC is the default on this platform
14924 # Common symbols not allowed in MH_DYLIB files
14925 lt_prog_compiler_pic_CXX='-fno-common'
14926 ;;
14927 *djgpp*)
14928 # DJGPP does not support shared libraries at all
14929 lt_prog_compiler_pic_CXX=
14930 ;;
14931 haiku*)
14932 # PIC is the default for Haiku.
14933 # The "-static" flag exists, but is broken.
14934 lt_prog_compiler_static_CXX=
14935 ;;
14936 interix[3-9]*)
14937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14938 # Instead, we relocate shared libraries at runtime.
14939 ;;
14940 sysv4*MP*)
14941 if test -d /usr/nec; then
14942 lt_prog_compiler_pic_CXX=-Kconform_pic
14943 fi
14944 ;;
14945 hpux*)
14946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14948 # sets the default TLS model and affects inlining.
14949 case $host_cpu in
14950 hppa*64*)
14951 ;;
14952 *)
14953 lt_prog_compiler_pic_CXX='-fPIC'
14954 ;;
14955 esac
14956 ;;
14957 *qnx* | *nto*)
14958 # QNX uses GNU C++, but need to define -shared option too, otherwise
14959 # it will coredump.
14960 lt_prog_compiler_pic_CXX='-fPIC -shared'
14961 ;;
14962 *)
14963 lt_prog_compiler_pic_CXX='-fPIC'
14964 ;;
14965 esac
14966 else
14967 case $host_os in
14968 aix[4-9]*)
14969 # All AIX code is PIC.
14970 if test ia64 = "$host_cpu"; then
14971 # AIX 5 now supports IA64 processor
14972 lt_prog_compiler_static_CXX='-Bstatic'
14973 else
14974 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14975 fi
14976 ;;
14977 chorus*)
14978 case $cc_basename in
14979 cxch68*)
14980 # Green Hills C++ Compiler
14981 # _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"
14982 ;;
14983 esac
14984 ;;
14985 mingw* | cygwin* | os2* | pw32* | cegcc*)
14986 # This hack is so that the source file can tell whether it is being
14987 # built for inclusion in a dll (and should export symbols for example).
14988 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14989 ;;
14990 dgux*)
14991 case $cc_basename in
14992 ec++*)
14993 lt_prog_compiler_pic_CXX='-KPIC'
14994 ;;
14995 ghcx*)
14996 # Green Hills C++ Compiler
14997 lt_prog_compiler_pic_CXX='-pic'
14998 ;;
14999 *)
15000 ;;
15001 esac
15002 ;;
15003 freebsd* | dragonfly*)
15004 # FreeBSD uses GNU C++
15005 ;;
15006 hpux9* | hpux10* | hpux11*)
15007 case $cc_basename in
15008 CC*)
15009 lt_prog_compiler_wl_CXX='-Wl,'
15010 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15011 if test ia64 != "$host_cpu"; then
15012 lt_prog_compiler_pic_CXX='+Z'
15013 fi
15014 ;;
15015 aCC*)
15016 lt_prog_compiler_wl_CXX='-Wl,'
15017 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15018 case $host_cpu in
15019 hppa*64*|ia64*)
15020 # +Z the default
15021 ;;
15022 *)
15023 lt_prog_compiler_pic_CXX='+Z'
15024 ;;
15025 esac
15026 ;;
15027 *)
15028 ;;
15029 esac
15030 ;;
15031 interix*)
15032 # This is c89, which is MS Visual C++ (no shared libs)
15033 # Anyone wants to do a port?
15034 ;;
15035 irix5* | irix6* | nonstopux*)
15036 case $cc_basename in
15037 CC*)
15038 lt_prog_compiler_wl_CXX='-Wl,'
15039 lt_prog_compiler_static_CXX='-non_shared'
15040 # CC pic flag -KPIC is the default.
15041 ;;
15042 *)
15043 ;;
15044 esac
15045 ;;
15046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15047 case $cc_basename in
15048 KCC*)
15049 # KAI C++ Compiler
15050 lt_prog_compiler_wl_CXX='--backend -Wl,'
15051 lt_prog_compiler_pic_CXX='-fPIC'
15052 ;;
15053 ecpc* )
15054 # old Intel C++ for x86_64, which still supported -KPIC.
15055 lt_prog_compiler_wl_CXX='-Wl,'
15056 lt_prog_compiler_pic_CXX='-KPIC'
15057 lt_prog_compiler_static_CXX='-static'
15058 ;;
15059 icpc* )
15060 # Intel C++, used to be incompatible with GCC.
15061 # ICC 10 doesn't accept -KPIC any more.
15062 lt_prog_compiler_wl_CXX='-Wl,'
15063 lt_prog_compiler_pic_CXX='-fPIC'
15064 lt_prog_compiler_static_CXX='-static'
15065 ;;
15066 pgCC* | pgcpp*)
15067 # Portland Group C++ compiler
15068 lt_prog_compiler_wl_CXX='-Wl,'
15069 lt_prog_compiler_pic_CXX='-fpic'
15070 lt_prog_compiler_static_CXX='-Bstatic'
15071 ;;
15072 cxx*)
15073 # Compaq C++
15074 # Make sure the PIC flag is empty. It appears that all Alpha
15075 # Linux and Compaq Tru64 Unix objects are PIC.
15076 lt_prog_compiler_pic_CXX=
15077 lt_prog_compiler_static_CXX='-non_shared'
15078 ;;
15079 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15080 # IBM XL 8.0, 9.0 on PPC and BlueGene
15081 lt_prog_compiler_wl_CXX='-Wl,'
15082 lt_prog_compiler_pic_CXX='-qpic'
15083 lt_prog_compiler_static_CXX='-qstaticlink'
15084 ;;
15085 *)
15086 case `$CC -V 2>&1 | sed 5q` in
15087 *Sun\ C*)
15088 # Sun C++ 5.9
15089 lt_prog_compiler_pic_CXX='-KPIC'
15090 lt_prog_compiler_static_CXX='-Bstatic'
15091 lt_prog_compiler_wl_CXX='-Qoption ld '
15092 ;;
15093 esac
15094 ;;
15095 esac
15096 ;;
15097 lynxos*)
15098 ;;
15099 m88k*)
15100 ;;
15101 mvs*)
15102 case $cc_basename in
15103 cxx*)
15104 lt_prog_compiler_pic_CXX='-W c,exportall'
15105 ;;
15106 *)
15107 ;;
15108 esac
15109 ;;
15110 netbsd*)
15111 ;;
15112 *qnx* | *nto*)
15113 # QNX uses GNU C++, but need to define -shared option too, otherwise
15114 # it will coredump.
15115 lt_prog_compiler_pic_CXX='-fPIC -shared'
15116 ;;
15117 osf3* | osf4* | osf5*)
15118 case $cc_basename in
15119 KCC*)
15120 lt_prog_compiler_wl_CXX='--backend -Wl,'
15121 ;;
15122 RCC*)
15123 # Rational C++ 2.4.1
15124 lt_prog_compiler_pic_CXX='-pic'
15125 ;;
15126 cxx*)
15127 # Digital/Compaq C++
15128 lt_prog_compiler_wl_CXX='-Wl,'
15129 # Make sure the PIC flag is empty. It appears that all Alpha
15130 # Linux and Compaq Tru64 Unix objects are PIC.
15131 lt_prog_compiler_pic_CXX=
15132 lt_prog_compiler_static_CXX='-non_shared'
15133 ;;
15134 *)
15135 ;;
15136 esac
15137 ;;
15138 psos*)
15139 ;;
15140 solaris*)
15141 case $cc_basename in
15142 CC* | sunCC*)
15143 # Sun C++ 4.2, 5.x and Centerline C++
15144 lt_prog_compiler_pic_CXX='-KPIC'
15145 lt_prog_compiler_static_CXX='-Bstatic'
15146 lt_prog_compiler_wl_CXX='-Qoption ld '
15147 ;;
15148 gcx*)
15149 # Green Hills C++ Compiler
15150 lt_prog_compiler_pic_CXX='-PIC'
15151 ;;
15152 *)
15153 ;;
15154 esac
15155 ;;
15156 sunos4*)
15157 case $cc_basename in
15158 CC*)
15159 # Sun C++ 4.x
15160 lt_prog_compiler_pic_CXX='-pic'
15161 lt_prog_compiler_static_CXX='-Bstatic'
15162 ;;
15163 lcc*)
15164 # Lucid
15165 lt_prog_compiler_pic_CXX='-pic'
15166 ;;
15167 *)
15168 ;;
15169 esac
15170 ;;
15171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15172 case $cc_basename in
15173 CC*)
15174 lt_prog_compiler_wl_CXX='-Wl,'
15175 lt_prog_compiler_pic_CXX='-KPIC'
15176 lt_prog_compiler_static_CXX='-Bstatic'
15177 ;;
15178 esac
15179 ;;
15180 tandem*)
15181 case $cc_basename in
15182 NCC*)
15183 # NonStop-UX NCC 3.20
15184 lt_prog_compiler_pic_CXX='-KPIC'
15185 ;;
15186 *)
15187 ;;
15188 esac
15189 ;;
15190 vxworks*)
15191 ;;
15192 *)
15193 lt_prog_compiler_can_build_shared_CXX=no
15194 ;;
15195 esac
15196 fi
15197
15198 case $host_os in
15199 # For platforms that do not support PIC, -DPIC is meaningless:
15200 *djgpp*)
15201 lt_prog_compiler_pic_CXX=
15202 ;;
15203 *)
15204 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15205 ;;
15206 esac
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15209 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15210 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15211 $as_echo_n "(cached) " >&6
15212 else
15213 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15214 fi
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15216 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15217 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15218
15219 #
15220 # Check to make sure the PIC flag actually works.
15221 #
15222 if test -n "$lt_prog_compiler_pic_CXX"; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15224 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15225 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 lt_cv_prog_compiler_pic_works_CXX=no
15229 ac_outfile=conftest.$ac_objext
15230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15231 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15232 # Insert the option either (1) after the last *FLAGS variable, or
15233 # (2) before a word containing "conftest.", or (3) at the end.
15234 # Note that $ac_compile itself does not contain backslashes and begins
15235 # with a dollar sign (not a hyphen), so the echo should work correctly.
15236 # The option is referenced via a variable to avoid confusing sed.
15237 lt_compile=`echo "$ac_compile" | $SED \
15238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15240 -e 's:$: $lt_compiler_flag:'`
15241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15242 (eval "$lt_compile" 2>conftest.err)
15243 ac_status=$?
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 if (exit $ac_status) && test -s "$ac_outfile"; then
15247 # The compiler can only warn and ignore the option if not recognized
15248 # So say no if there are warnings other than the usual output.
15249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15252 lt_cv_prog_compiler_pic_works_CXX=yes
15253 fi
15254 fi
15255 $RM -r conftest*
15256
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15259 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15260
15261 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15262 case $lt_prog_compiler_pic_CXX in
15263 "" | " "*) ;;
15264 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15265 esac
15266 else
15267 lt_prog_compiler_pic_CXX=
15268 lt_prog_compiler_can_build_shared_CXX=no
15269 fi
15270
15271 fi
15272
15273
15274
15275
15276
15277 #
15278 # Check to make sure the static flag actually works.
15279 #
15280 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15282 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15283 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 lt_cv_prog_compiler_static_works_CXX=no
15287 save_LDFLAGS=$LDFLAGS
15288 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15291 # The linker can only warn and ignore the option if not recognized
15292 # So say no if there are warnings
15293 if test -s conftest.err; then
15294 # Append any errors to the config.log.
15295 cat conftest.err 1>&5
15296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15298 if diff conftest.exp conftest.er2 >/dev/null; then
15299 lt_cv_prog_compiler_static_works_CXX=yes
15300 fi
15301 else
15302 lt_cv_prog_compiler_static_works_CXX=yes
15303 fi
15304 fi
15305 $RM -r conftest*
15306 LDFLAGS=$save_LDFLAGS
15307
15308 fi
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15310 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15311
15312 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15313 :
15314 else
15315 lt_prog_compiler_static_CXX=
15316 fi
15317
15318
15319
15320
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15323 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 lt_cv_prog_compiler_c_o_CXX=no
15327 $RM -r conftest 2>/dev/null
15328 mkdir conftest
15329 cd conftest
15330 mkdir out
15331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15332
15333 lt_compiler_flag="-o out/conftest2.$ac_objext"
15334 # Insert the option either (1) after the last *FLAGS variable, or
15335 # (2) before a word containing "conftest.", or (3) at the end.
15336 # Note that $ac_compile itself does not contain backslashes and begins
15337 # with a dollar sign (not a hyphen), so the echo should work correctly.
15338 lt_compile=`echo "$ac_compile" | $SED \
15339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341 -e 's:$: $lt_compiler_flag:'`
15342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15343 (eval "$lt_compile" 2>out/conftest.err)
15344 ac_status=$?
15345 cat out/conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15348 then
15349 # The compiler can only warn and ignore the option if not recognized
15350 # So say no if there are warnings
15351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15354 lt_cv_prog_compiler_c_o_CXX=yes
15355 fi
15356 fi
15357 chmod u+w . 2>&5
15358 $RM -r conftest*
15359 # SGI C++ compiler will create directory out/ii_files/ for
15360 # template instantiation
15361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15362 $RM out/* && rmdir out
15363 cd ..
15364 $RM -r conftest
15365 $RM -r conftest*
15366
15367 fi
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15369 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15370
15371
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15374 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15375 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 lt_cv_prog_compiler_c_o_CXX=no
15379 $RM -r conftest 2>/dev/null
15380 mkdir conftest
15381 cd conftest
15382 mkdir out
15383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15384
15385 lt_compiler_flag="-o out/conftest2.$ac_objext"
15386 # Insert the option either (1) after the last *FLAGS variable, or
15387 # (2) before a word containing "conftest.", or (3) at the end.
15388 # Note that $ac_compile itself does not contain backslashes and begins
15389 # with a dollar sign (not a hyphen), so the echo should work correctly.
15390 lt_compile=`echo "$ac_compile" | $SED \
15391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15393 -e 's:$: $lt_compiler_flag:'`
15394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15395 (eval "$lt_compile" 2>out/conftest.err)
15396 ac_status=$?
15397 cat out/conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15400 then
15401 # The compiler can only warn and ignore the option if not recognized
15402 # So say no if there are warnings
15403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15406 lt_cv_prog_compiler_c_o_CXX=yes
15407 fi
15408 fi
15409 chmod u+w . 2>&5
15410 $RM -r conftest*
15411 # SGI C++ compiler will create directory out/ii_files/ for
15412 # template instantiation
15413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15414 $RM out/* && rmdir out
15415 cd ..
15416 $RM -r conftest
15417 $RM -r conftest*
15418
15419 fi
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15421 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15422
15423
15424
15425
15426 hard_links=nottested
15427 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15428 # do not overwrite the value of need_locks provided by the user
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15430 $as_echo_n "checking if we can lock with hard links... " >&6; }
15431 hard_links=yes
15432 $RM -r conftest*
15433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15434 touch conftest.a
15435 ln conftest.a conftest.b 2>&5 || hard_links=no
15436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15438 $as_echo "$hard_links" >&6; }
15439 if test no = "$hard_links"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15441 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15442 need_locks=warn
15443 fi
15444 else
15445 need_locks=no
15446 fi
15447
15448
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15451 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15452
15453 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15454 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15455 case $host_os in
15456 aix[4-9]*)
15457 # If we're using GNU nm, then we don't want the "-C" option.
15458 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15459 # Without the "-l" option, or with the "-B" option, AIX nm treats
15460 # weak defined symbols like other global defined symbols, whereas
15461 # GNU nm marks them as "W".
15462 # While the 'weak' keyword is ignored in the Export File, we need
15463 # it in the Import File for the 'aix-soname' feature, so we have
15464 # to replace the "-B" option with "-P" for AIX nm.
15465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15466 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'
15467 else
15468 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'
15469 fi
15470 ;;
15471 pw32*)
15472 export_symbols_cmds_CXX=$ltdll_cmds
15473 ;;
15474 cygwin* | mingw* | cegcc*)
15475 case $cc_basename in
15476 cl*)
15477 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15478 ;;
15479 *)
15480 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'
15481 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15482 ;;
15483 esac
15484 ;;
15485 *)
15486 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15487 ;;
15488 esac
15489
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15491 $as_echo "$ld_shlibs_CXX" >&6; }
15492 test no = "$ld_shlibs_CXX" && can_build_shared=no
15493
15494 with_gnu_ld_CXX=$with_gnu_ld
15495
15496
15497
15498
15499
15500
15501 #
15502 # Do we need to explicitly link libc?
15503 #
15504 case "x$archive_cmds_need_lc_CXX" in
15505 x|xyes)
15506 # Assume -lc should be added
15507 archive_cmds_need_lc_CXX=yes
15508
15509 if test yes,yes = "$GCC,$enable_shared"; then
15510 case $archive_cmds_CXX in
15511 *'~'*)
15512 # FIXME: we may have to deal with multi-command sequences.
15513 ;;
15514 '$CC '*)
15515 # Test whether the compiler implicitly links with -lc since on some
15516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15517 # to ld, don't add -lc before -lgcc.
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15519 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15520 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 $RM -r conftest*
15524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15525
15526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15527 (eval $ac_compile) 2>&5
15528 ac_status=$?
15529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15530 test $ac_status = 0; } 2>conftest.err; then
15531 soname=conftest
15532 lib=conftest
15533 libobjs=conftest.$ac_objext
15534 deplibs=
15535 wl=$lt_prog_compiler_wl_CXX
15536 pic_flag=$lt_prog_compiler_pic_CXX
15537 compiler_flags=-v
15538 linker_flags=-v
15539 verstring=
15540 output_objdir=.
15541 libname=conftest
15542 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15543 allow_undefined_flag_CXX=
15544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15545 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15546 ac_status=$?
15547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15548 test $ac_status = 0; }
15549 then
15550 lt_cv_archive_cmds_need_lc_CXX=no
15551 else
15552 lt_cv_archive_cmds_need_lc_CXX=yes
15553 fi
15554 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15555 else
15556 cat conftest.err 1>&5
15557 fi
15558 $RM -r conftest*
15559
15560 fi
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15562 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15563 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15564 ;;
15565 esac
15566 fi
15567 ;;
15568 esac
15569
15570
15571
15572
15573
15574
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15632 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15633
15634 library_names_spec=
15635 libname_spec='lib$name'
15636 soname_spec=
15637 shrext_cmds=.so
15638 postinstall_cmds=
15639 postuninstall_cmds=
15640 finish_cmds=
15641 finish_eval=
15642 shlibpath_var=
15643 shlibpath_overrides_runpath=unknown
15644 version_type=none
15645 dynamic_linker="$host_os ld.so"
15646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15647 need_lib_prefix=unknown
15648 hardcode_into_libs=no
15649
15650 # when you set need_version to no, make sure it does not cause -set_version
15651 # flags to be left without arguments
15652 need_version=unknown
15653
15654
15655
15656 case $host_os in
15657 aix3*)
15658 version_type=linux # correct to gnu/linux during the next big refactor
15659 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15660 shlibpath_var=LIBPATH
15661
15662 # AIX 3 has no versioning support, so we append a major version to the name.
15663 soname_spec='$libname$release$shared_ext$major'
15664 ;;
15665
15666 aix[4-9]*)
15667 version_type=linux # correct to gnu/linux during the next big refactor
15668 need_lib_prefix=no
15669 need_version=no
15670 hardcode_into_libs=yes
15671 if test ia64 = "$host_cpu"; then
15672 # AIX 5 supports IA64
15673 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 else
15676 # With GCC up to 2.95.x, collect2 would create an import file
15677 # for dependence libraries. The import file would start with
15678 # the line '#! .'. This would cause the generated library to
15679 # depend on '.', always an invalid library. This was fixed in
15680 # development snapshots of GCC prior to 3.0.
15681 case $host_os in
15682 aix4 | aix4.[01] | aix4.[01].*)
15683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15684 echo ' yes '
15685 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15686 :
15687 else
15688 can_build_shared=no
15689 fi
15690 ;;
15691 esac
15692 # Using Import Files as archive members, it is possible to support
15693 # filename-based versioning of shared library archives on AIX. While
15694 # this would work for both with and without runtime linking, it will
15695 # prevent static linking of such archives. So we do filename-based
15696 # shared library versioning with .so extension only, which is used
15697 # when both runtime linking and shared linking is enabled.
15698 # Unfortunately, runtime linking may impact performance, so we do
15699 # not want this to be the default eventually. Also, we use the
15700 # versioned .so libs for executables only if there is the -brtl
15701 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15702 # To allow for filename-based versioning support, we need to create
15703 # libNAME.so.V as an archive file, containing:
15704 # *) an Import File, referring to the versioned filename of the
15705 # archive as well as the shared archive member, telling the
15706 # bitwidth (32 or 64) of that shared object, and providing the
15707 # list of exported symbols of that shared object, eventually
15708 # decorated with the 'weak' keyword
15709 # *) the shared object with the F_LOADONLY flag set, to really avoid
15710 # it being seen by the linker.
15711 # At run time we better use the real file rather than another symlink,
15712 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15713
15714 case $with_aix_soname,$aix_use_runtimelinking in
15715 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15716 # soname into executable. Probably we can add versioning support to
15717 # collect2, so additional links can be useful in future.
15718 aix,yes) # traditional libtool
15719 dynamic_linker='AIX unversionable lib.so'
15720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15721 # instead of lib<name>.a to let people know that these are not
15722 # typical AIX shared libraries.
15723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15724 ;;
15725 aix,no) # traditional AIX only
15726 dynamic_linker='AIX lib.a(lib.so.V)'
15727 # We preserve .a as extension for shared libraries through AIX4.2
15728 # and later when we are not doing run time linking.
15729 library_names_spec='$libname$release.a $libname.a'
15730 soname_spec='$libname$release$shared_ext$major'
15731 ;;
15732 svr4,*) # full svr4 only
15733 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15734 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15735 # We do not specify a path in Import Files, so LIBPATH fires.
15736 shlibpath_overrides_runpath=yes
15737 ;;
15738 *,yes) # both, prefer svr4
15739 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15741 # unpreferred sharedlib libNAME.a needs extra handling
15742 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"'
15743 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"'
15744 # We do not specify a path in Import Files, so LIBPATH fires.
15745 shlibpath_overrides_runpath=yes
15746 ;;
15747 *,no) # both, prefer aix
15748 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15749 library_names_spec='$libname$release.a $libname.a'
15750 soname_spec='$libname$release$shared_ext$major'
15751 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15752 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)'
15753 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"'
15754 ;;
15755 esac
15756 shlibpath_var=LIBPATH
15757 fi
15758 ;;
15759
15760 amigaos*)
15761 case $host_cpu in
15762 powerpc)
15763 # Since July 2007 AmigaOS4 officially supports .so libraries.
15764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15766 ;;
15767 m68k)
15768 library_names_spec='$libname.ixlibrary $libname.a'
15769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15770 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'
15771 ;;
15772 esac
15773 ;;
15774
15775 beos*)
15776 library_names_spec='$libname$shared_ext'
15777 dynamic_linker="$host_os ld.so"
15778 shlibpath_var=LIBRARY_PATH
15779 ;;
15780
15781 bsdi[45]*)
15782 version_type=linux # correct to gnu/linux during the next big refactor
15783 need_version=no
15784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15785 soname_spec='$libname$release$shared_ext$major'
15786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15790 # the default ld.so.conf also contains /usr/contrib/lib and
15791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15792 # libtool to hard-code these into programs
15793 ;;
15794
15795 cygwin* | mingw* | pw32* | cegcc*)
15796 version_type=windows
15797 shrext_cmds=.dll
15798 need_version=no
15799 need_lib_prefix=no
15800
15801 case $GCC,$cc_basename in
15802 yes,*)
15803 # gcc
15804 library_names_spec='$libname.dll.a'
15805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15806 postinstall_cmds='base_file=`basename \$file`~
15807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15808 dldir=$destdir/`dirname \$dlpath`~
15809 test -d \$dldir || mkdir -p \$dldir~
15810 $install_prog $dir/$dlname \$dldir/$dlname~
15811 chmod a+x \$dldir/$dlname~
15812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15814 fi'
15815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15816 dlpath=$dir/\$dldll~
15817 $RM \$dlpath'
15818 shlibpath_overrides_runpath=yes
15819
15820 case $host_os in
15821 cygwin*)
15822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15823 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15824
15825 ;;
15826 mingw* | cegcc*)
15827 # MinGW DLLs use traditional 'lib' prefix
15828 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15829 ;;
15830 pw32*)
15831 # pw32 DLLs use 'pw' prefix rather than 'lib'
15832 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15833 ;;
15834 esac
15835 dynamic_linker='Win32 ld.exe'
15836 ;;
15837
15838 *,cl*)
15839 # Native MSVC
15840 libname_spec='$name'
15841 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15842 library_names_spec='$libname.dll.lib'
15843
15844 case $build_os in
15845 mingw*)
15846 sys_lib_search_path_spec=
15847 lt_save_ifs=$IFS
15848 IFS=';'
15849 for lt_path in $LIB
15850 do
15851 IFS=$lt_save_ifs
15852 # Let DOS variable expansion print the short 8.3 style file name.
15853 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15854 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15855 done
15856 IFS=$lt_save_ifs
15857 # Convert to MSYS style.
15858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15859 ;;
15860 cygwin*)
15861 # Convert to unix form, then to dos form, then back to unix form
15862 # but this time dos style (no spaces!) so that the unix form looks
15863 # like /cygdrive/c/PROGRA~1:/cygdr...
15864 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15865 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15866 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15867 ;;
15868 *)
15869 sys_lib_search_path_spec=$LIB
15870 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15871 # It is most probably a Windows format PATH.
15872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15873 else
15874 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15875 fi
15876 # FIXME: find the short name or the path components, as spaces are
15877 # common. (e.g. "Program Files" -> "PROGRA~1")
15878 ;;
15879 esac
15880
15881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15882 postinstall_cmds='base_file=`basename \$file`~
15883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15884 dldir=$destdir/`dirname \$dlpath`~
15885 test -d \$dldir || mkdir -p \$dldir~
15886 $install_prog $dir/$dlname \$dldir/$dlname'
15887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15888 dlpath=$dir/\$dldll~
15889 $RM \$dlpath'
15890 shlibpath_overrides_runpath=yes
15891 dynamic_linker='Win32 link.exe'
15892 ;;
15893
15894 *)
15895 # Assume MSVC wrapper
15896 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15897 dynamic_linker='Win32 ld.exe'
15898 ;;
15899 esac
15900 # FIXME: first we should search . and the directory the executable is in
15901 shlibpath_var=PATH
15902 ;;
15903
15904 darwin* | rhapsody*)
15905 dynamic_linker="$host_os dyld"
15906 version_type=darwin
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15910 soname_spec='$libname$release$major$shared_ext'
15911 shlibpath_overrides_runpath=yes
15912 shlibpath_var=DYLD_LIBRARY_PATH
15913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15914
15915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15916 ;;
15917
15918 dgux*)
15919 version_type=linux # correct to gnu/linux during the next big refactor
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15923 soname_spec='$libname$release$shared_ext$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 ;;
15926
15927 freebsd* | dragonfly*)
15928 # DragonFly does not have aout. When/if they implement a new
15929 # versioning mechanism, adjust this.
15930 if test -x /usr/bin/objformat; then
15931 objformat=`/usr/bin/objformat`
15932 else
15933 case $host_os in
15934 freebsd[23].*) objformat=aout ;;
15935 *) objformat=elf ;;
15936 esac
15937 fi
15938 version_type=freebsd-$objformat
15939 case $version_type in
15940 freebsd-elf*)
15941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15942 soname_spec='$libname$release$shared_ext$major'
15943 need_version=no
15944 need_lib_prefix=no
15945 ;;
15946 freebsd-*)
15947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15948 need_version=yes
15949 ;;
15950 esac
15951 shlibpath_var=LD_LIBRARY_PATH
15952 case $host_os in
15953 freebsd2.*)
15954 shlibpath_overrides_runpath=yes
15955 ;;
15956 freebsd3.[01]* | freebsdelf3.[01]*)
15957 shlibpath_overrides_runpath=yes
15958 hardcode_into_libs=yes
15959 ;;
15960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15962 shlibpath_overrides_runpath=no
15963 hardcode_into_libs=yes
15964 ;;
15965 *) # from 4.6 on, and DragonFly
15966 shlibpath_overrides_runpath=yes
15967 hardcode_into_libs=yes
15968 ;;
15969 esac
15970 ;;
15971
15972 haiku*)
15973 version_type=linux # correct to gnu/linux during the next big refactor
15974 need_lib_prefix=no
15975 need_version=no
15976 dynamic_linker="$host_os runtime_loader"
15977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15978 soname_spec='$libname$release$shared_ext$major'
15979 shlibpath_var=LIBRARY_PATH
15980 shlibpath_overrides_runpath=no
15981 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15982 hardcode_into_libs=yes
15983 ;;
15984
15985 hpux9* | hpux10* | hpux11*)
15986 # Give a soname corresponding to the major version so that dld.sl refuses to
15987 # link against other versions.
15988 version_type=sunos
15989 need_lib_prefix=no
15990 need_version=no
15991 case $host_cpu in
15992 ia64*)
15993 shrext_cmds='.so'
15994 hardcode_into_libs=yes
15995 dynamic_linker="$host_os dld.so"
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15999 soname_spec='$libname$release$shared_ext$major'
16000 if test 32 = "$HPUX_IA64_MODE"; then
16001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16002 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16003 else
16004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16005 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16006 fi
16007 ;;
16008 hppa*64*)
16009 shrext_cmds='.sl'
16010 hardcode_into_libs=yes
16011 dynamic_linker="$host_os dld.sl"
16012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16015 soname_spec='$libname$release$shared_ext$major'
16016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018 ;;
16019 *)
16020 shrext_cmds='.sl'
16021 dynamic_linker="$host_os dld.sl"
16022 shlibpath_var=SHLIB_PATH
16023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16025 soname_spec='$libname$release$shared_ext$major'
16026 ;;
16027 esac
16028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16029 postinstall_cmds='chmod 555 $lib'
16030 # or fails outright, so override atomically:
16031 install_override_mode=555
16032 ;;
16033
16034 interix[3-9]*)
16035 version_type=linux # correct to gnu/linux during the next big refactor
16036 need_lib_prefix=no
16037 need_version=no
16038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16039 soname_spec='$libname$release$shared_ext$major'
16040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 shlibpath_overrides_runpath=no
16043 hardcode_into_libs=yes
16044 ;;
16045
16046 irix5* | irix6* | nonstopux*)
16047 case $host_os in
16048 nonstopux*) version_type=nonstopux ;;
16049 *)
16050 if test yes = "$lt_cv_prog_gnu_ld"; then
16051 version_type=linux # correct to gnu/linux during the next big refactor
16052 else
16053 version_type=irix
16054 fi ;;
16055 esac
16056 need_lib_prefix=no
16057 need_version=no
16058 soname_spec='$libname$release$shared_ext$major'
16059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16060 case $host_os in
16061 irix5* | nonstopux*)
16062 libsuff= shlibsuff=
16063 ;;
16064 *)
16065 case $LD in # libtool.m4 will add one of these switches to LD
16066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16067 libsuff= shlibsuff= libmagic=32-bit;;
16068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16069 libsuff=32 shlibsuff=N32 libmagic=N32;;
16070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16072 *) libsuff= shlibsuff= libmagic=never-match;;
16073 esac
16074 ;;
16075 esac
16076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16077 shlibpath_overrides_runpath=no
16078 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16079 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16080 hardcode_into_libs=yes
16081 ;;
16082
16083 # No shared lib support for Linux oldld, aout, or coff.
16084 linux*oldld* | linux*aout* | linux*coff*)
16085 dynamic_linker=no
16086 ;;
16087
16088 linux*android*)
16089 version_type=none # Android doesn't support versioned libraries.
16090 need_lib_prefix=no
16091 need_version=no
16092 library_names_spec='$libname$release$shared_ext'
16093 soname_spec='$libname$release$shared_ext'
16094 finish_cmds=
16095 shlibpath_var=LD_LIBRARY_PATH
16096 shlibpath_overrides_runpath=yes
16097
16098 # This implies no fast_install, which is unacceptable.
16099 # Some rework will be needed to allow for fast_install
16100 # before this can be enabled.
16101 hardcode_into_libs=yes
16102
16103 dynamic_linker='Android linker'
16104 # Don't embed -rpath directories since the linker doesn't support them.
16105 hardcode_libdir_flag_spec_CXX='-L$libdir'
16106 ;;
16107
16108 # This must be glibc/ELF.
16109 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16110 version_type=linux # correct to gnu/linux during the next big refactor
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16114 soname_spec='$libname$release$shared_ext$major'
16115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 shlibpath_overrides_runpath=no
16118
16119 # Some binutils ld are patched to set DT_RUNPATH
16120 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 lt_cv_shlibpath_overrides_runpath=no
16124 save_LDFLAGS=$LDFLAGS
16125 save_libdir=$libdir
16126 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16127 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16130
16131 int
16132 main ()
16133 {
16134
16135 ;
16136 return 0;
16137 }
16138 _ACEOF
16139 if ac_fn_cxx_try_link "$LINENO"; then :
16140 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16141 lt_cv_shlibpath_overrides_runpath=yes
16142 fi
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146 LDFLAGS=$save_LDFLAGS
16147 libdir=$save_libdir
16148
16149 fi
16150
16151 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16152
16153 # This implies no fast_install, which is unacceptable.
16154 # Some rework will be needed to allow for fast_install
16155 # before this can be enabled.
16156 hardcode_into_libs=yes
16157
16158 # Ideally, we could use ldconfig to report *all* directores which are
16159 # searched for libraries, however this is still not possible. Aside from not
16160 # being certain /sbin/ldconfig is available, command
16161 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16162 # even though it is searched at run-time. Try to do the best guess by
16163 # appending ld.so.conf contents (and includes) to the search path.
16164 if test -f /etc/ld.so.conf; then
16165 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' ' '`
16166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16167 fi
16168
16169 # We used to test for /lib/ld.so.1 and disable shared libraries on
16170 # powerpc, because MkLinux only supported shared libraries with the
16171 # GNU dynamic linker. Since this was broken with cross compilers,
16172 # most powerpc-linux boxes support dynamic linking these days and
16173 # people can always --disable-shared, the test was removed, and we
16174 # assume the GNU/Linux dynamic linker is in use.
16175 dynamic_linker='GNU/Linux ld.so'
16176 ;;
16177
16178 netbsd*)
16179 version_type=sunos
16180 need_lib_prefix=no
16181 need_version=no
16182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16183 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16185 dynamic_linker='NetBSD (a.out) ld.so'
16186 else
16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16188 soname_spec='$libname$release$shared_ext$major'
16189 dynamic_linker='NetBSD ld.elf_so'
16190 fi
16191 shlibpath_var=LD_LIBRARY_PATH
16192 shlibpath_overrides_runpath=yes
16193 hardcode_into_libs=yes
16194 ;;
16195
16196 newsos6)
16197 version_type=linux # correct to gnu/linux during the next big refactor
16198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 shlibpath_overrides_runpath=yes
16201 ;;
16202
16203 *nto* | *qnx*)
16204 version_type=qnx
16205 need_lib_prefix=no
16206 need_version=no
16207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16208 soname_spec='$libname$release$shared_ext$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=no
16211 hardcode_into_libs=yes
16212 dynamic_linker='ldqnx.so'
16213 ;;
16214
16215 openbsd* | bitrig*)
16216 version_type=sunos
16217 sys_lib_dlsearch_path_spec=/usr/lib
16218 need_lib_prefix=no
16219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16220 need_version=no
16221 else
16222 need_version=yes
16223 fi
16224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 ;;
16229
16230 os2*)
16231 libname_spec='$name'
16232 version_type=windows
16233 shrext_cmds=.dll
16234 need_version=no
16235 need_lib_prefix=no
16236 # OS/2 can only load a DLL with a base name of 8 characters or less.
16237 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16238 v=$($ECHO $release$versuffix | tr -d .-);
16239 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16240 $ECHO $n$v`$shared_ext'
16241 library_names_spec='${libname}_dll.$libext'
16242 dynamic_linker='OS/2 ld.exe'
16243 shlibpath_var=BEGINLIBPATH
16244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16246 postinstall_cmds='base_file=`basename \$file`~
16247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16248 dldir=$destdir/`dirname \$dlpath`~
16249 test -d \$dldir || mkdir -p \$dldir~
16250 $install_prog $dir/$dlname \$dldir/$dlname~
16251 chmod a+x \$dldir/$dlname~
16252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16254 fi'
16255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16256 dlpath=$dir/\$dldll~
16257 $RM \$dlpath'
16258 ;;
16259
16260 osf3* | osf4* | osf5*)
16261 version_type=osf
16262 need_lib_prefix=no
16263 need_version=no
16264 soname_spec='$libname$release$shared_ext$major'
16265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269 ;;
16270
16271 rdos*)
16272 dynamic_linker=no
16273 ;;
16274
16275 solaris*)
16276 version_type=linux # correct to gnu/linux during the next big refactor
16277 need_lib_prefix=no
16278 need_version=no
16279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16280 soname_spec='$libname$release$shared_ext$major'
16281 shlibpath_var=LD_LIBRARY_PATH
16282 shlibpath_overrides_runpath=yes
16283 hardcode_into_libs=yes
16284 # ldd complains unless libraries are executable
16285 postinstall_cmds='chmod +x $lib'
16286 ;;
16287
16288 sunos4*)
16289 version_type=sunos
16290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=yes
16294 if test yes = "$with_gnu_ld"; then
16295 need_lib_prefix=no
16296 fi
16297 need_version=yes
16298 ;;
16299
16300 sysv4 | sysv4.3*)
16301 version_type=linux # correct to gnu/linux during the next big refactor
16302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16303 soname_spec='$libname$release$shared_ext$major'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 case $host_vendor in
16306 sni)
16307 shlibpath_overrides_runpath=no
16308 need_lib_prefix=no
16309 runpath_var=LD_RUN_PATH
16310 ;;
16311 siemens)
16312 need_lib_prefix=no
16313 ;;
16314 motorola)
16315 need_lib_prefix=no
16316 need_version=no
16317 shlibpath_overrides_runpath=no
16318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16319 ;;
16320 esac
16321 ;;
16322
16323 sysv4*MP*)
16324 if test -d /usr/nec; then
16325 version_type=linux # correct to gnu/linux during the next big refactor
16326 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16327 soname_spec='$libname$shared_ext.$major'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 fi
16330 ;;
16331
16332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16333 version_type=sco
16334 need_lib_prefix=no
16335 need_version=no
16336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16337 soname_spec='$libname$release$shared_ext$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16340 hardcode_into_libs=yes
16341 if test yes = "$with_gnu_ld"; then
16342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16343 else
16344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16345 case $host_os in
16346 sco3.2v5*)
16347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16348 ;;
16349 esac
16350 fi
16351 sys_lib_dlsearch_path_spec='/usr/lib'
16352 ;;
16353
16354 tpf*)
16355 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16356 version_type=linux # correct to gnu/linux during the next big refactor
16357 need_lib_prefix=no
16358 need_version=no
16359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 hardcode_into_libs=yes
16363 ;;
16364
16365 uts4*)
16366 version_type=linux # correct to gnu/linux during the next big refactor
16367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16368 soname_spec='$libname$release$shared_ext$major'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 ;;
16371
16372 *)
16373 dynamic_linker=no
16374 ;;
16375 esac
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16377 $as_echo "$dynamic_linker" >&6; }
16378 test no = "$dynamic_linker" && can_build_shared=no
16379
16380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16381 if test yes = "$GCC"; then
16382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16383 fi
16384
16385 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16386 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16387 fi
16388
16389 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16390 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16391 fi
16392
16393 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16394 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16395
16396 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16397 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16398
16399 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16400 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16401
16402
16403
16404
16405
16406
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16442 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16443 hardcode_action_CXX=
16444 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16445 test -n "$runpath_var_CXX" ||
16446 test yes = "$hardcode_automatic_CXX"; then
16447
16448 # We can hardcode non-existent directories.
16449 if test no != "$hardcode_direct_CXX" &&
16450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16451 # have to relink, otherwise we might link with an installed library
16452 # when we should be linking with a yet-to-be-installed one
16453 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16454 test no != "$hardcode_minus_L_CXX"; then
16455 # Linking always hardcodes the temporary library directory.
16456 hardcode_action_CXX=relink
16457 else
16458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16459 hardcode_action_CXX=immediate
16460 fi
16461 else
16462 # We cannot hardcode anything, or else we can only hardcode existing
16463 # directories.
16464 hardcode_action_CXX=unsupported
16465 fi
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16467 $as_echo "$hardcode_action_CXX" >&6; }
16468
16469 if test relink = "$hardcode_action_CXX" ||
16470 test yes = "$inherit_rpath_CXX"; then
16471 # Fast installation is not supported
16472 enable_fast_install=no
16473 elif test yes = "$shlibpath_overrides_runpath" ||
16474 test no = "$enable_shared"; then
16475 # Fast installation is not necessary
16476 enable_fast_install=needless
16477 fi
16478
16479
16480
16481
16482
16483
16484
16485 fi # test -n "$compiler"
16486
16487 CC=$lt_save_CC
16488 CFLAGS=$lt_save_CFLAGS
16489 LDCXX=$LD
16490 LD=$lt_save_LD
16491 GCC=$lt_save_GCC
16492 with_gnu_ld=$lt_save_with_gnu_ld
16493 lt_cv_path_LDCXX=$lt_cv_path_LD
16494 lt_cv_path_LD=$lt_save_path_LD
16495 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16496 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16497 fi # test yes != "$_lt_caught_CXX_error"
16498
16499 ac_ext=c
16500 ac_cpp='$CPP $CPPFLAGS'
16501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519 ac_config_commands="$ac_config_commands libtool"
16520
16521
16522
16523
16524 # Only expand once:
16525
16526
16527
16528 ac_ext=cpp
16529 ac_cpp='$CXXCPP $CPPFLAGS'
16530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16533
16534
16535 ax_cxx_compile_cxx11_required=true
16536 ac_ext=cpp
16537 ac_cpp='$CXXCPP $CPPFLAGS'
16538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16541 ac_success=no
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16543 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16544 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549
16550 template <typename T>
16551 struct check
16552 {
16553 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16554 };
16555
16556 struct Base {
16557 virtual void f() {}
16558 };
16559 struct Child : public Base {
16560 virtual void f() override {}
16561 };
16562
16563 typedef check<check<bool>> right_angle_brackets;
16564
16565 int a;
16566 decltype(a) b;
16567
16568 typedef check<int> check_type;
16569 check_type c;
16570 check_type&& cr = static_cast<check_type&&>(c);
16571
16572 auto d = a;
16573 auto l = [](){};
16574
16575 _ACEOF
16576 if ac_fn_cxx_try_compile "$LINENO"; then :
16577 ax_cv_cxx_compile_cxx11=yes
16578 else
16579 ax_cv_cxx_compile_cxx11=no
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 fi
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16584 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16585 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16586 ac_success=yes
16587 fi
16588
16589 if test x$ac_success = xno; then
16590 for switch in -std=gnu++11 -std=gnu++0x; do
16591 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16593 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16594 if eval \${$cachevar+:} false; then :
16595 $as_echo_n "(cached) " >&6
16596 else
16597 ac_save_CXXFLAGS="$CXXFLAGS"
16598 CXXFLAGS="$CXXFLAGS $switch"
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h. */
16601
16602 template <typename T>
16603 struct check
16604 {
16605 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16606 };
16607
16608 struct Base {
16609 virtual void f() {}
16610 };
16611 struct Child : public Base {
16612 virtual void f() override {}
16613 };
16614
16615 typedef check<check<bool>> right_angle_brackets;
16616
16617 int a;
16618 decltype(a) b;
16619
16620 typedef check<int> check_type;
16621 check_type c;
16622 check_type&& cr = static_cast<check_type&&>(c);
16623
16624 auto d = a;
16625 auto l = [](){};
16626
16627 _ACEOF
16628 if ac_fn_cxx_try_compile "$LINENO"; then :
16629 eval $cachevar=yes
16630 else
16631 eval $cachevar=no
16632 fi
16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 CXXFLAGS="$ac_save_CXXFLAGS"
16635 fi
16636 eval ac_res=\$$cachevar
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16638 $as_echo "$ac_res" >&6; }
16639 if eval test x\$$cachevar = xyes; then
16640 CXXFLAGS="$CXXFLAGS $switch"
16641 ac_success=yes
16642 break
16643 fi
16644 done
16645 fi
16646
16647
16648 ac_ext=cpp
16649 ac_cpp='$CXXCPP $CPPFLAGS'
16650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16653
16654 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16655 if test x$ac_success = xno; then
16656 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16657 fi
16658 else
16659 if test x$ac_success = xno; then
16660 HAVE_CXX11=0
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16662 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16663 else
16664 HAVE_CXX11=1
16665
16666 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16667
16668 fi
16669
16670
16671 fi
16672
16673 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16674
16675
16676
16677
16678
16679
16680
16681
16682 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16683 if test -n "$ac_tool_prefix"; then
16684 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16685 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687 $as_echo_n "checking for $ac_word... " >&6; }
16688 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 case $PKG_CONFIG in
16692 [\\/]* | ?:[\\/]*)
16693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16694 ;;
16695 *)
16696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697 for as_dir in $PATH
16698 do
16699 IFS=$as_save_IFS
16700 test -z "$as_dir" && as_dir=.
16701 for ac_exec_ext in '' $ac_executable_extensions; do
16702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16705 break 2
16706 fi
16707 done
16708 done
16709 IFS=$as_save_IFS
16710
16711 ;;
16712 esac
16713 fi
16714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16715 if test -n "$PKG_CONFIG"; then
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16717 $as_echo "$PKG_CONFIG" >&6; }
16718 else
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720 $as_echo "no" >&6; }
16721 fi
16722
16723
16724 fi
16725 if test -z "$ac_cv_path_PKG_CONFIG"; then
16726 ac_pt_PKG_CONFIG=$PKG_CONFIG
16727 # Extract the first word of "pkg-config", so it can be a program name with args.
16728 set dummy pkg-config; ac_word=$2
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16730 $as_echo_n "checking for $ac_word... " >&6; }
16731 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16732 $as_echo_n "(cached) " >&6
16733 else
16734 case $ac_pt_PKG_CONFIG in
16735 [\\/]* | ?:[\\/]*)
16736 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16737 ;;
16738 *)
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16741 do
16742 IFS=$as_save_IFS
16743 test -z "$as_dir" && as_dir=.
16744 for ac_exec_ext in '' $ac_executable_extensions; do
16745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16746 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16748 break 2
16749 fi
16750 done
16751 done
16752 IFS=$as_save_IFS
16753
16754 ;;
16755 esac
16756 fi
16757 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16758 if test -n "$ac_pt_PKG_CONFIG"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16760 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16761 else
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16764 fi
16765
16766 if test "x$ac_pt_PKG_CONFIG" = x; then
16767 PKG_CONFIG=""
16768 else
16769 case $cross_compiling:$ac_tool_warned in
16770 yes:)
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16773 ac_tool_warned=yes ;;
16774 esac
16775 PKG_CONFIG=$ac_pt_PKG_CONFIG
16776 fi
16777 else
16778 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16779 fi
16780
16781 fi
16782 if test -n "$PKG_CONFIG"; then
16783 _pkg_min_version=0.22
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16785 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16786 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16788 $as_echo "yes" >&6; }
16789 else
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16791 $as_echo "no" >&6; }
16792 PKG_CONFIG=""
16793 fi
16794 fi
16795
16796 # Extract the first word of "git", so it can be a program name with args.
16797 set dummy git; ac_word=$2
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16799 $as_echo_n "checking for $ac_word... " >&6; }
16800 if ${ac_cv_path_GIT+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803 case $GIT in
16804 [\\/]* | ?:[\\/]*)
16805 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16806 ;;
16807 *)
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16810 do
16811 IFS=$as_save_IFS
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16817 break 2
16818 fi
16819 done
16820 done
16821 IFS=$as_save_IFS
16822
16823 ;;
16824 esac
16825 fi
16826 GIT=$ac_cv_path_GIT
16827 if test -n "$GIT"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16829 $as_echo "$GIT" >&6; }
16830 else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833 fi
16834
16835
16836 # Extract the first word of "time", so it can be a program name with args.
16837 set dummy time; ac_word=$2
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16839 $as_echo_n "checking for $ac_word... " >&6; }
16840 if ${ac_cv_path_TIME+:} false; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16843 case $TIME in
16844 [\\/]* | ?:[\\/]*)
16845 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16846 ;;
16847 *)
16848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16849 for as_dir in $PATH
16850 do
16851 IFS=$as_save_IFS
16852 test -z "$as_dir" && as_dir=.
16853 for ac_exec_ext in '' $ac_executable_extensions; do
16854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16855 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16857 break 2
16858 fi
16859 done
16860 done
16861 IFS=$as_save_IFS
16862
16863 ;;
16864 esac
16865 fi
16866 TIME=$ac_cv_path_TIME
16867 if test -n "$TIME"; then
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16869 $as_echo "$TIME" >&6; }
16870 else
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16872 $as_echo "no" >&6; }
16873 fi
16874
16875
16876
16877
16878
16879
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16882 $as_echo_n "checking for bison >= 3.0... " >&6; }
16883 if test -z "$BISON"; then
16884 ac_path_BISON_found=false
16885 # Loop through the user's path and test for each of PROGNAME-LIST
16886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887 for as_dir in $PATH
16888 do
16889 IFS=$as_save_IFS
16890 test -z "$as_dir" && as_dir=.
16891 for ac_prog in bison; do
16892 for ac_exec_ext in '' $ac_executable_extensions; do
16893 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16894 as_fn_executable_p "$ac_path_BISON" || continue
16895 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16896 if ${version:+false} :; then :
16897
16898 else
16899 as_awk_strverscmp='
16900 # Use only awk features that work with 7th edition Unix awk (1978).
16901 # My, what an old awk you have, Mr. Solaris!
16902 END {
16903 while (length(v1) && length(v2)) {
16904 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16905 # Normally this is a single character, but if v1 and v2 contain digits,
16906 # compare them as integers and fractions as strverscmp does.
16907 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16908 # Split v1 and v2 into their leading digit string components d1 and d2,
16909 # and advance v1 and v2 past the leading digit strings.
16910 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16911 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16912 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16913 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16914 if (d1 ~ /^0/) {
16915 if (d2 ~ /^0/) {
16916 # Compare two fractions.
16917 while (d1 ~ /^0/ && d2 ~ /^0/) {
16918 d1 = substr(d1, 2); len1--
16919 d2 = substr(d2, 2); len2--
16920 }
16921 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16922 # The two components differ in length, and the common prefix
16923 # contains only leading zeros. Consider the longer to be less.
16924 d1 = -len1
16925 d2 = -len2
16926 } else {
16927 # Otherwise, compare as strings.
16928 d1 = "x" d1
16929 d2 = "x" d2
16930 }
16931 } else {
16932 # A fraction is less than an integer.
16933 exit 1
16934 }
16935 } else {
16936 if (d2 ~ /^0/) {
16937 # An integer is greater than a fraction.
16938 exit 2
16939 } else {
16940 # Compare two integers.
16941 d1 += 0
16942 d2 += 0
16943 }
16944 }
16945 } else {
16946 # The normal case, without worrying about digits.
16947 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16948 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16949 }
16950 if (d1 < d2) exit 1
16951 if (d1 > d2) exit 2
16952 }
16953 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16954 # which mishandles some comparisons of empty strings to integers.
16955 if (length(v2)) exit 1
16956 if (length(v1)) exit 2
16957 }
16958 '
16959 as_arg_v1=$version
16960 as_arg_v2=3.0
16961 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16962 case $? in #(
16963 1) :
16964 ;; #(
16965 0) :
16966 ac_cv_path_BISON=$ac_path_BISON ;; #(
16967 2) :
16968 ac_cv_path_BISON=$ac_path_BISON ;; #(
16969 *) :
16970 ;;
16971 esac
16972 fi
16973
16974 $ac_path_BISON_found && break 3
16975 done
16976 done
16977 done
16978 IFS=$as_save_IFS
16979 if test -z "$ac_cv_path_BISON"; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16982 fi
16983 else
16984 ac_cv_path_BISON=$BISON
16985 fi
16986
16987
16988 if true; then :
16989
16990 BISON=$ac_cv_path_BISON
16991
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16993 $as_echo "$BISON" >&6; }
16994
16995 else
16996 if true; then :
16997
16998 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
16999
17000 else
17001
17002 BISON=:
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17006
17007 fi
17008 fi
17009
17010
17011
17012
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17014 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
17015 if test -z "$FLEX"; then
17016 ac_path_FLEX_found=false
17017 # Loop through the user's path and test for each of PROGNAME-LIST
17018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019 for as_dir in $PATH
17020 do
17021 IFS=$as_save_IFS
17022 test -z "$as_dir" && as_dir=.
17023 for ac_prog in flex; do
17024 for ac_exec_ext in '' $ac_executable_extensions; do
17025 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17026 as_fn_executable_p "$ac_path_FLEX" || continue
17027 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17028 if ${version:+false} :; then :
17029
17030 else
17031 as_arg_v1=$version
17032 as_arg_v2=2.5.33
17033 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17034 case $? in #(
17035 1) :
17036 ;; #(
17037 0) :
17038 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17039 2) :
17040 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17041 *) :
17042 ;;
17043 esac
17044 fi
17045
17046 $ac_path_FLEX_found && break 3
17047 done
17048 done
17049 done
17050 IFS=$as_save_IFS
17051 if test -z "$ac_cv_path_FLEX"; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17053 $as_echo "no" >&6; }
17054 fi
17055 else
17056 ac_cv_path_FLEX=$FLEX
17057 fi
17058
17059
17060 if true; then :
17061
17062 FLEX=$ac_cv_path_FLEX
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17065 $as_echo "$FLEX" >&6; }
17066
17067 else
17068 if true; then :
17069
17070 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
17071
17072 else
17073
17074 FLEX=:
17075
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17078
17079 fi
17080 fi
17081
17082
17083
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17086 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17087 if test -z "$GPERF"; then
17088 ac_path_GPERF_found=false
17089 # Loop through the user's path and test for each of PROGNAME-LIST
17090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091 for as_dir in $PATH
17092 do
17093 IFS=$as_save_IFS
17094 test -z "$as_dir" && as_dir=.
17095 for ac_prog in gperf; do
17096 for ac_exec_ext in '' $ac_executable_extensions; do
17097 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17098 as_fn_executable_p "$ac_path_GPERF" || continue
17099 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17100 if ${version:+false} :; then :
17101
17102 else
17103 as_arg_v1=$version
17104 as_arg_v2=3.0.3
17105 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17106 case $? in #(
17107 1) :
17108 ;; #(
17109 0) :
17110 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17111 2) :
17112 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17113 *) :
17114 ;;
17115 esac
17116 fi
17117
17118 $ac_path_GPERF_found && break 3
17119 done
17120 done
17121 done
17122 IFS=$as_save_IFS
17123 if test -z "$ac_cv_path_GPERF"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17126 fi
17127 else
17128 ac_cv_path_GPERF=$GPERF
17129 fi
17130
17131
17132 if true; then :
17133
17134 GPERF=$ac_cv_path_GPERF
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17137 $as_echo "$GPERF" >&6; }
17138
17139 else
17140 if true; then :
17141
17142 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17143
17144 else
17145
17146 GPERF=:
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17149 $as_echo "no" >&6; }
17150
17151 fi
17152 fi
17153
17154
17155
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17158 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17159 if test -z "$GNUTAR"; then
17160 ac_path_GNUTAR_found=false
17161 # Loop through the user's path and test for each of PROGNAME-LIST
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17164 do
17165 IFS=$as_save_IFS
17166 test -z "$as_dir" && as_dir=.
17167 for ac_prog in tar gtar gnutar; do
17168 for ac_exec_ext in '' $ac_executable_extensions; do
17169 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17170 as_fn_executable_p "$ac_path_GNUTAR" || continue
17171 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17172 if ${version:+false} :; then :
17173
17174 else
17175 as_arg_v1=$version
17176 as_arg_v2=1.19
17177 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17178 case $? in #(
17179 1) :
17180 ;; #(
17181 0) :
17182 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17183 2) :
17184 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17185 *) :
17186 ;;
17187 esac
17188 fi
17189
17190 $ac_path_GNUTAR_found && break 3
17191 done
17192 done
17193 done
17194 IFS=$as_save_IFS
17195 if test -z "$ac_cv_path_GNUTAR"; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197 $as_echo "no" >&6; }
17198 fi
17199 else
17200 ac_cv_path_GNUTAR=$GNUTAR
17201 fi
17202
17203
17204 if true; then :
17205
17206 GNUTAR=$ac_cv_path_GNUTAR
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17209 $as_echo "$GNUTAR" >&6; }
17210
17211 else
17212 if true; then :
17213
17214 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
17215
17216 else
17217
17218 GNUTAR=:
17219
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221 $as_echo "no" >&6; }
17222
17223 fi
17224 fi
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235 ac_ext=c
17236 ac_cpp='$CPP $CPPFLAGS'
17237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17240
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17242 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17243 if ${ac_cv_cflags_warn_all+:} false; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246 ac_cv_cflags_warn_all="no, unknown"
17247 ac_save_CFLAGS="$CFLAGS"
17248 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" #
17249 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17252
17253 int
17254 main ()
17255 {
17256
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_compile "$LINENO"; then :
17262 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17265 done
17266 CFLAGS="$ac_save_CFLAGS"
17267
17268 fi
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17270 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17271
17272
17273 case ".$ac_cv_cflags_warn_all" in
17274 .ok|.ok,*) ;;
17275 .|.no|.no,*) ;;
17276 *) if ${CFLAGS+:} false; then :
17277 case " $CFLAGS " in
17278 *" $ac_cv_cflags_warn_all "*)
17279 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17280 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17281 ac_status=$?
17282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17283 test $ac_status = 0; }
17284 ;;
17285 *)
17286 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17287 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17288 ac_status=$?
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290 test $ac_status = 0; }
17291 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17292 ;;
17293 esac
17294 else
17295 CFLAGS="$ac_cv_cflags_warn_all"
17296 fi
17297 ;;
17298 esac
17299
17300 ac_ext=cpp
17301 ac_cpp='$CXXCPP $CPPFLAGS'
17302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17305
17306
17307 ac_ext=cpp
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17312
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17314 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17315 if ${ac_cv_cxxflags_warn_all+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 ac_cv_cxxflags_warn_all="no, unknown"
17319 ac_save_CXXFLAGS="$CXXFLAGS"
17320 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" #
17321 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h. */
17324
17325 int
17326 main ()
17327 {
17328
17329 ;
17330 return 0;
17331 }
17332 _ACEOF
17333 if ac_fn_cxx_try_compile "$LINENO"; then :
17334 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 done
17338 CXXFLAGS="$ac_save_CXXFLAGS"
17339
17340 fi
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17342 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17343
17344
17345 case ".$ac_cv_cxxflags_warn_all" in
17346 .ok|.ok,*) ;;
17347 .|.no|.no,*) ;;
17348 *) if ${CXXFLAGS+:} false; then :
17349 case " $CXXFLAGS " in
17350 *" $ac_cv_cxxflags_warn_all "*)
17351 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17352 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17353 ac_status=$?
17354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355 test $ac_status = 0; }
17356 ;;
17357 *)
17358 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17359 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17360 ac_status=$?
17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; }
17363 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17364 ;;
17365 esac
17366 else
17367 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17368 fi
17369 ;;
17370 esac
17371
17372 ac_ext=cpp
17373 ac_cpp='$CXXCPP $CPPFLAGS'
17374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17377
17378
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17380 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17381 if ${ac_cv_cxxflags_warn_all+:} false; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 ac_cv_cxxflags_warn_all="no, unknown"
17385 ac_save_CXXFLAGS="$CXXFLAGS"
17386 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" #
17387 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390
17391 int
17392 main ()
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_cxx_try_compile "$LINENO"; then :
17400 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17401 fi
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403 done
17404 CXXFLAGS="$ac_save_CXXFLAGS"
17405
17406 fi
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17408 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17409
17410
17411 case ".$ac_cv_cxxflags_warn_all" in
17412 .ok|.ok,*) ;;
17413 .|.no|.no,*) ;;
17414 *) if ${CXXFLAGS+:} false; then :
17415 case " $CXXFLAGS " in
17416 *" $ac_cv_cxxflags_warn_all "*)
17417 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17418 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17419 ac_status=$?
17420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17421 test $ac_status = 0; }
17422 ;;
17423 *)
17424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17425 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17426 ac_status=$?
17427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17428 test $ac_status = 0; }
17429 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17430 ;;
17431 esac
17432 else
17433 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17434 fi
17435 ;;
17436 esac
17437
17438
17439
17440
17441
17442 ac_ext=c
17443 ac_cpp='$CPP $CPPFLAGS'
17444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17447
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17449 $as_echo_n "checking for cc -Werror... " >&6; }
17450
17451 cy_save=$CFLAGS
17452
17453 for element in -Werror; do
17454 haveit=
17455 for x in $CFLAGS; do
17456
17457 acl_save_prefix="$prefix"
17458 prefix="$acl_final_prefix"
17459 acl_save_exec_prefix="$exec_prefix"
17460 exec_prefix="$acl_final_exec_prefix"
17461 eval x=\"$x\"
17462 exec_prefix="$acl_save_exec_prefix"
17463 prefix="$acl_save_prefix"
17464
17465 if test "X$x" = "X$element"; then
17466 haveit=yes
17467 break
17468 fi
17469 done
17470 if test -z "$haveit"; then
17471 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17472 fi
17473 done
17474
17475
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478
17479 _ACEOF
17480 if ac_fn_c_try_compile "$LINENO"; then :
17481 cy_good=1
17482 else
17483 cy_good=0
17484 fi
17485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486
17487 CFLAGS=$cy_save
17488 if test "x$cy_good" = x1; then :
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17490 $as_echo "yes" >&6; }
17491
17492 for element in -Werror; do
17493 haveit=
17494 for x in $CFLAGS; do
17495
17496 acl_save_prefix="$prefix"
17497 prefix="$acl_final_prefix"
17498 acl_save_exec_prefix="$exec_prefix"
17499 exec_prefix="$acl_final_exec_prefix"
17500 eval x=\"$x\"
17501 exec_prefix="$acl_save_exec_prefix"
17502 prefix="$acl_save_prefix"
17503
17504 if test "X$x" = "X$element"; then
17505 haveit=yes
17506 break
17507 fi
17508 done
17509 if test -z "$haveit"; then
17510 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17511 fi
17512 done
17513
17514
17515 else
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517 $as_echo "no" >&6; }
17518 fi
17519
17520 ac_ext=cpp
17521 ac_cpp='$CXXCPP $CPPFLAGS'
17522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17525
17526
17527
17528 ac_ext=cpp
17529 ac_cpp='$CXXCPP $CPPFLAGS'
17530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17533
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17535 $as_echo_n "checking for c++ -Werror... " >&6; }
17536
17537 cy_save=$CXXFLAGS
17538
17539 for element in -Werror; do
17540 haveit=
17541 for x in $CXXFLAGS; do
17542
17543 acl_save_prefix="$prefix"
17544 prefix="$acl_final_prefix"
17545 acl_save_exec_prefix="$exec_prefix"
17546 exec_prefix="$acl_final_exec_prefix"
17547 eval x=\"$x\"
17548 exec_prefix="$acl_save_exec_prefix"
17549 prefix="$acl_save_prefix"
17550
17551 if test "X$x" = "X$element"; then
17552 haveit=yes
17553 break
17554 fi
17555 done
17556 if test -z "$haveit"; then
17557 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17558 fi
17559 done
17560
17561
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564
17565 _ACEOF
17566 if ac_fn_cxx_try_compile "$LINENO"; then :
17567 cy_good=1
17568 else
17569 cy_good=0
17570 fi
17571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572
17573 CXXFLAGS=$cy_save
17574 if test "x$cy_good" = x1; then :
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576 $as_echo "yes" >&6; }
17577
17578 for element in -Werror; do
17579 haveit=
17580 for x in $CXXFLAGS; do
17581
17582 acl_save_prefix="$prefix"
17583 prefix="$acl_final_prefix"
17584 acl_save_exec_prefix="$exec_prefix"
17585 exec_prefix="$acl_final_exec_prefix"
17586 eval x=\"$x\"
17587 exec_prefix="$acl_save_exec_prefix"
17588 prefix="$acl_save_prefix"
17589
17590 if test "X$x" = "X$element"; then
17591 haveit=yes
17592 break
17593 fi
17594 done
17595 if test -z "$haveit"; then
17596 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17597 fi
17598 done
17599
17600
17601 else
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17603 $as_echo "no" >&6; }
17604 fi
17605
17606 ac_ext=cpp
17607 ac_cpp='$CXXCPP $CPPFLAGS'
17608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17611
17612
17613
17614 ac_ext=mm
17615 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17616 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17617 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17618 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17619
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17621 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17622
17623 cy_save=$OBJCXXFLAGS
17624
17625 for element in -Werror; do
17626 haveit=
17627 for x in $OBJCXXFLAGS; do
17628
17629 acl_save_prefix="$prefix"
17630 prefix="$acl_final_prefix"
17631 acl_save_exec_prefix="$exec_prefix"
17632 exec_prefix="$acl_final_exec_prefix"
17633 eval x=\"$x\"
17634 exec_prefix="$acl_save_exec_prefix"
17635 prefix="$acl_save_prefix"
17636
17637 if test "X$x" = "X$element"; then
17638 haveit=yes
17639 break
17640 fi
17641 done
17642 if test -z "$haveit"; then
17643 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17644 fi
17645 done
17646
17647
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650
17651 _ACEOF
17652 if ac_fn_objcxx_try_compile "$LINENO"; then :
17653 cy_good=1
17654 else
17655 cy_good=0
17656 fi
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658
17659 OBJCXXFLAGS=$cy_save
17660 if test "x$cy_good" = x1; then :
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662 $as_echo "yes" >&6; }
17663
17664 for element in -Werror; do
17665 haveit=
17666 for x in $OBJCXXFLAGS; do
17667
17668 acl_save_prefix="$prefix"
17669 prefix="$acl_final_prefix"
17670 acl_save_exec_prefix="$exec_prefix"
17671 exec_prefix="$acl_final_exec_prefix"
17672 eval x=\"$x\"
17673 exec_prefix="$acl_save_exec_prefix"
17674 prefix="$acl_save_prefix"
17675
17676 if test "X$x" = "X$element"; then
17677 haveit=yes
17678 break
17679 fi
17680 done
17681 if test -z "$haveit"; then
17682 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17683 fi
17684 done
17685
17686
17687 else
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689 $as_echo "no" >&6; }
17690 fi
17691
17692 ac_ext=cpp
17693 ac_cpp='$CXXCPP $CPPFLAGS'
17694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17697
17698
17699
17700
17701
17702
17703 ac_ext=c
17704 ac_cpp='$CPP $CPPFLAGS'
17705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17710 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17711
17712 cy_save=$CFLAGS
17713
17714 for element in -Wno-deprecated-declarations; do
17715 haveit=
17716 for x in $CFLAGS; do
17717
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17722 eval x=\"$x\"
17723 exec_prefix="$acl_save_exec_prefix"
17724 prefix="$acl_save_prefix"
17725
17726 if test "X$x" = "X$element"; then
17727 haveit=yes
17728 break
17729 fi
17730 done
17731 if test -z "$haveit"; then
17732 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17733 fi
17734 done
17735
17736
17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17739
17740 _ACEOF
17741 if ac_fn_c_try_compile "$LINENO"; then :
17742 cy_good=1
17743 else
17744 cy_good=0
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747
17748 CFLAGS=$cy_save
17749 if test "x$cy_good" = x1; then :
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751 $as_echo "yes" >&6; }
17752
17753 for element in -Wno-deprecated-declarations; do
17754 haveit=
17755 for x in $CFLAGS; do
17756
17757 acl_save_prefix="$prefix"
17758 prefix="$acl_final_prefix"
17759 acl_save_exec_prefix="$exec_prefix"
17760 exec_prefix="$acl_final_exec_prefix"
17761 eval x=\"$x\"
17762 exec_prefix="$acl_save_exec_prefix"
17763 prefix="$acl_save_prefix"
17764
17765 if test "X$x" = "X$element"; then
17766 haveit=yes
17767 break
17768 fi
17769 done
17770 if test -z "$haveit"; then
17771 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17772 fi
17773 done
17774
17775
17776 else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778 $as_echo "no" >&6; }
17779 fi
17780
17781 ac_ext=cpp
17782 ac_cpp='$CXXCPP $CPPFLAGS'
17783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17786
17787
17788
17789 ac_ext=cpp
17790 ac_cpp='$CXXCPP $CPPFLAGS'
17791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17794
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17796 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17797
17798 cy_save=$CXXFLAGS
17799
17800 for element in -Wno-deprecated-declarations; do
17801 haveit=
17802 for x in $CXXFLAGS; do
17803
17804 acl_save_prefix="$prefix"
17805 prefix="$acl_final_prefix"
17806 acl_save_exec_prefix="$exec_prefix"
17807 exec_prefix="$acl_final_exec_prefix"
17808 eval x=\"$x\"
17809 exec_prefix="$acl_save_exec_prefix"
17810 prefix="$acl_save_prefix"
17811
17812 if test "X$x" = "X$element"; then
17813 haveit=yes
17814 break
17815 fi
17816 done
17817 if test -z "$haveit"; then
17818 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17819 fi
17820 done
17821
17822
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17825
17826 _ACEOF
17827 if ac_fn_cxx_try_compile "$LINENO"; then :
17828 cy_good=1
17829 else
17830 cy_good=0
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833
17834 CXXFLAGS=$cy_save
17835 if test "x$cy_good" = x1; then :
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17837 $as_echo "yes" >&6; }
17838
17839 for element in -Wno-deprecated-declarations; do
17840 haveit=
17841 for x in $CXXFLAGS; do
17842
17843 acl_save_prefix="$prefix"
17844 prefix="$acl_final_prefix"
17845 acl_save_exec_prefix="$exec_prefix"
17846 exec_prefix="$acl_final_exec_prefix"
17847 eval x=\"$x\"
17848 exec_prefix="$acl_save_exec_prefix"
17849 prefix="$acl_save_prefix"
17850
17851 if test "X$x" = "X$element"; then
17852 haveit=yes
17853 break
17854 fi
17855 done
17856 if test -z "$haveit"; then
17857 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17858 fi
17859 done
17860
17861
17862 else
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864 $as_echo "no" >&6; }
17865 fi
17866
17867 ac_ext=cpp
17868 ac_cpp='$CXXCPP $CPPFLAGS'
17869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17872
17873
17874
17875 ac_ext=mm
17876 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17877 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17882 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17883
17884 cy_save=$OBJCXXFLAGS
17885
17886 for element in -Wno-deprecated-declarations; do
17887 haveit=
17888 for x in $OBJCXXFLAGS; do
17889
17890 acl_save_prefix="$prefix"
17891 prefix="$acl_final_prefix"
17892 acl_save_exec_prefix="$exec_prefix"
17893 exec_prefix="$acl_final_exec_prefix"
17894 eval x=\"$x\"
17895 exec_prefix="$acl_save_exec_prefix"
17896 prefix="$acl_save_prefix"
17897
17898 if test "X$x" = "X$element"; then
17899 haveit=yes
17900 break
17901 fi
17902 done
17903 if test -z "$haveit"; then
17904 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17905 fi
17906 done
17907
17908
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17911
17912 _ACEOF
17913 if ac_fn_objcxx_try_compile "$LINENO"; then :
17914 cy_good=1
17915 else
17916 cy_good=0
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919
17920 OBJCXXFLAGS=$cy_save
17921 if test "x$cy_good" = x1; then :
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17923 $as_echo "yes" >&6; }
17924
17925 for element in -Wno-deprecated-declarations; do
17926 haveit=
17927 for x in $OBJCXXFLAGS; do
17928
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 acl_save_exec_prefix="$exec_prefix"
17932 exec_prefix="$acl_final_exec_prefix"
17933 eval x=\"$x\"
17934 exec_prefix="$acl_save_exec_prefix"
17935 prefix="$acl_save_prefix"
17936
17937 if test "X$x" = "X$element"; then
17938 haveit=yes
17939 break
17940 fi
17941 done
17942 if test -z "$haveit"; then
17943 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17944 fi
17945 done
17946
17947
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17950 $as_echo "no" >&6; }
17951 fi
17952
17953 ac_ext=cpp
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
17959
17960
17961
17962
17963
17964 ac_ext=c
17965 ac_cpp='$CPP $CPPFLAGS'
17966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17969
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17971 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17972
17973 cy_save=$CFLAGS
17974
17975 for element in -Wno-dangling-else; do
17976 haveit=
17977 for x in $CFLAGS; do
17978
17979 acl_save_prefix="$prefix"
17980 prefix="$acl_final_prefix"
17981 acl_save_exec_prefix="$exec_prefix"
17982 exec_prefix="$acl_final_exec_prefix"
17983 eval x=\"$x\"
17984 exec_prefix="$acl_save_exec_prefix"
17985 prefix="$acl_save_prefix"
17986
17987 if test "X$x" = "X$element"; then
17988 haveit=yes
17989 break
17990 fi
17991 done
17992 if test -z "$haveit"; then
17993 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17994 fi
17995 done
17996
17997
17998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17999 /* end confdefs.h. */
18000
18001 _ACEOF
18002 if ac_fn_c_try_compile "$LINENO"; then :
18003 cy_good=1
18004 else
18005 cy_good=0
18006 fi
18007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18008
18009 CFLAGS=$cy_save
18010 if test "x$cy_good" = x1; then :
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18012 $as_echo "yes" >&6; }
18013
18014 for element in -Wno-dangling-else; do
18015 haveit=
18016 for x in $CFLAGS; do
18017
18018 acl_save_prefix="$prefix"
18019 prefix="$acl_final_prefix"
18020 acl_save_exec_prefix="$exec_prefix"
18021 exec_prefix="$acl_final_exec_prefix"
18022 eval x=\"$x\"
18023 exec_prefix="$acl_save_exec_prefix"
18024 prefix="$acl_save_prefix"
18025
18026 if test "X$x" = "X$element"; then
18027 haveit=yes
18028 break
18029 fi
18030 done
18031 if test -z "$haveit"; then
18032 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18033 fi
18034 done
18035
18036
18037 else
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039 $as_echo "no" >&6; }
18040 fi
18041
18042 ac_ext=cpp
18043 ac_cpp='$CXXCPP $CPPFLAGS'
18044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18047
18048
18049
18050 ac_ext=cpp
18051 ac_cpp='$CXXCPP $CPPFLAGS'
18052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18055
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18057 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18058
18059 cy_save=$CXXFLAGS
18060
18061 for element in -Wno-dangling-else; do
18062 haveit=
18063 for x in $CXXFLAGS; do
18064
18065 acl_save_prefix="$prefix"
18066 prefix="$acl_final_prefix"
18067 acl_save_exec_prefix="$exec_prefix"
18068 exec_prefix="$acl_final_exec_prefix"
18069 eval x=\"$x\"
18070 exec_prefix="$acl_save_exec_prefix"
18071 prefix="$acl_save_prefix"
18072
18073 if test "X$x" = "X$element"; then
18074 haveit=yes
18075 break
18076 fi
18077 done
18078 if test -z "$haveit"; then
18079 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18080 fi
18081 done
18082
18083
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086
18087 _ACEOF
18088 if ac_fn_cxx_try_compile "$LINENO"; then :
18089 cy_good=1
18090 else
18091 cy_good=0
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094
18095 CXXFLAGS=$cy_save
18096 if test "x$cy_good" = x1; then :
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098 $as_echo "yes" >&6; }
18099
18100 for element in -Wno-dangling-else; do
18101 haveit=
18102 for x in $CXXFLAGS; do
18103
18104 acl_save_prefix="$prefix"
18105 prefix="$acl_final_prefix"
18106 acl_save_exec_prefix="$exec_prefix"
18107 exec_prefix="$acl_final_exec_prefix"
18108 eval x=\"$x\"
18109 exec_prefix="$acl_save_exec_prefix"
18110 prefix="$acl_save_prefix"
18111
18112 if test "X$x" = "X$element"; then
18113 haveit=yes
18114 break
18115 fi
18116 done
18117 if test -z "$haveit"; then
18118 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18119 fi
18120 done
18121
18122
18123 else
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18126 fi
18127
18128 ac_ext=cpp
18129 ac_cpp='$CXXCPP $CPPFLAGS'
18130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18133
18134
18135
18136 ac_ext=mm
18137 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18138 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18139 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18140 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18141
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18143 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18144
18145 cy_save=$OBJCXXFLAGS
18146
18147 for element in -Wno-dangling-else; do
18148 haveit=
18149 for x in $OBJCXXFLAGS; do
18150
18151 acl_save_prefix="$prefix"
18152 prefix="$acl_final_prefix"
18153 acl_save_exec_prefix="$exec_prefix"
18154 exec_prefix="$acl_final_exec_prefix"
18155 eval x=\"$x\"
18156 exec_prefix="$acl_save_exec_prefix"
18157 prefix="$acl_save_prefix"
18158
18159 if test "X$x" = "X$element"; then
18160 haveit=yes
18161 break
18162 fi
18163 done
18164 if test -z "$haveit"; then
18165 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18166 fi
18167 done
18168
18169
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18172
18173 _ACEOF
18174 if ac_fn_objcxx_try_compile "$LINENO"; then :
18175 cy_good=1
18176 else
18177 cy_good=0
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180
18181 OBJCXXFLAGS=$cy_save
18182 if test "x$cy_good" = x1; then :
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18184 $as_echo "yes" >&6; }
18185
18186 for element in -Wno-dangling-else; do
18187 haveit=
18188 for x in $OBJCXXFLAGS; do
18189
18190 acl_save_prefix="$prefix"
18191 prefix="$acl_final_prefix"
18192 acl_save_exec_prefix="$exec_prefix"
18193 exec_prefix="$acl_final_exec_prefix"
18194 eval x=\"$x\"
18195 exec_prefix="$acl_save_exec_prefix"
18196 prefix="$acl_save_prefix"
18197
18198 if test "X$x" = "X$element"; then
18199 haveit=yes
18200 break
18201 fi
18202 done
18203 if test -z "$haveit"; then
18204 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18205 fi
18206 done
18207
18208
18209 else
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211 $as_echo "no" >&6; }
18212 fi
18213
18214 ac_ext=cpp
18215 ac_cpp='$CXXCPP $CPPFLAGS'
18216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18219
18220
18221
18222
18223
18224 ac_ext=c
18225 ac_cpp='$CPP $CPPFLAGS'
18226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18229
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18231 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18232
18233 cy_save=$CFLAGS
18234
18235 for element in -Wno-overloaded-virtual; do
18236 haveit=
18237 for x in $CFLAGS; do
18238
18239 acl_save_prefix="$prefix"
18240 prefix="$acl_final_prefix"
18241 acl_save_exec_prefix="$exec_prefix"
18242 exec_prefix="$acl_final_exec_prefix"
18243 eval x=\"$x\"
18244 exec_prefix="$acl_save_exec_prefix"
18245 prefix="$acl_save_prefix"
18246
18247 if test "X$x" = "X$element"; then
18248 haveit=yes
18249 break
18250 fi
18251 done
18252 if test -z "$haveit"; then
18253 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18254 fi
18255 done
18256
18257
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260
18261 _ACEOF
18262 if ac_fn_c_try_compile "$LINENO"; then :
18263 cy_good=1
18264 else
18265 cy_good=0
18266 fi
18267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268
18269 CFLAGS=$cy_save
18270 if test "x$cy_good" = x1; then :
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18272 $as_echo "yes" >&6; }
18273
18274 for element in -Wno-overloaded-virtual; do
18275 haveit=
18276 for x in $CFLAGS; do
18277
18278 acl_save_prefix="$prefix"
18279 prefix="$acl_final_prefix"
18280 acl_save_exec_prefix="$exec_prefix"
18281 exec_prefix="$acl_final_exec_prefix"
18282 eval x=\"$x\"
18283 exec_prefix="$acl_save_exec_prefix"
18284 prefix="$acl_save_prefix"
18285
18286 if test "X$x" = "X$element"; then
18287 haveit=yes
18288 break
18289 fi
18290 done
18291 if test -z "$haveit"; then
18292 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18293 fi
18294 done
18295
18296
18297 else
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18299 $as_echo "no" >&6; }
18300 fi
18301
18302 ac_ext=cpp
18303 ac_cpp='$CXXCPP $CPPFLAGS'
18304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18307
18308
18309
18310 ac_ext=cpp
18311 ac_cpp='$CXXCPP $CPPFLAGS'
18312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18315
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18317 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18318
18319 cy_save=$CXXFLAGS
18320
18321 for element in -Wno-overloaded-virtual; do
18322 haveit=
18323 for x in $CXXFLAGS; do
18324
18325 acl_save_prefix="$prefix"
18326 prefix="$acl_final_prefix"
18327 acl_save_exec_prefix="$exec_prefix"
18328 exec_prefix="$acl_final_exec_prefix"
18329 eval x=\"$x\"
18330 exec_prefix="$acl_save_exec_prefix"
18331 prefix="$acl_save_prefix"
18332
18333 if test "X$x" = "X$element"; then
18334 haveit=yes
18335 break
18336 fi
18337 done
18338 if test -z "$haveit"; then
18339 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18340 fi
18341 done
18342
18343
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346
18347 _ACEOF
18348 if ac_fn_cxx_try_compile "$LINENO"; then :
18349 cy_good=1
18350 else
18351 cy_good=0
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18354
18355 CXXFLAGS=$cy_save
18356 if test "x$cy_good" = x1; then :
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358 $as_echo "yes" >&6; }
18359
18360 for element in -Wno-overloaded-virtual; do
18361 haveit=
18362 for x in $CXXFLAGS; do
18363
18364 acl_save_prefix="$prefix"
18365 prefix="$acl_final_prefix"
18366 acl_save_exec_prefix="$exec_prefix"
18367 exec_prefix="$acl_final_exec_prefix"
18368 eval x=\"$x\"
18369 exec_prefix="$acl_save_exec_prefix"
18370 prefix="$acl_save_prefix"
18371
18372 if test "X$x" = "X$element"; then
18373 haveit=yes
18374 break
18375 fi
18376 done
18377 if test -z "$haveit"; then
18378 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18379 fi
18380 done
18381
18382
18383 else
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18385 $as_echo "no" >&6; }
18386 fi
18387
18388 ac_ext=cpp
18389 ac_cpp='$CXXCPP $CPPFLAGS'
18390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18393
18394
18395
18396 ac_ext=mm
18397 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18398 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18403 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18404
18405 cy_save=$OBJCXXFLAGS
18406
18407 for element in -Wno-overloaded-virtual; do
18408 haveit=
18409 for x in $OBJCXXFLAGS; do
18410
18411 acl_save_prefix="$prefix"
18412 prefix="$acl_final_prefix"
18413 acl_save_exec_prefix="$exec_prefix"
18414 exec_prefix="$acl_final_exec_prefix"
18415 eval x=\"$x\"
18416 exec_prefix="$acl_save_exec_prefix"
18417 prefix="$acl_save_prefix"
18418
18419 if test "X$x" = "X$element"; then
18420 haveit=yes
18421 break
18422 fi
18423 done
18424 if test -z "$haveit"; then
18425 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18426 fi
18427 done
18428
18429
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432
18433 _ACEOF
18434 if ac_fn_objcxx_try_compile "$LINENO"; then :
18435 cy_good=1
18436 else
18437 cy_good=0
18438 fi
18439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440
18441 OBJCXXFLAGS=$cy_save
18442 if test "x$cy_good" = x1; then :
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18444 $as_echo "yes" >&6; }
18445
18446 for element in -Wno-overloaded-virtual; do
18447 haveit=
18448 for x in $OBJCXXFLAGS; do
18449
18450 acl_save_prefix="$prefix"
18451 prefix="$acl_final_prefix"
18452 acl_save_exec_prefix="$exec_prefix"
18453 exec_prefix="$acl_final_exec_prefix"
18454 eval x=\"$x\"
18455 exec_prefix="$acl_save_exec_prefix"
18456 prefix="$acl_save_prefix"
18457
18458 if test "X$x" = "X$element"; then
18459 haveit=yes
18460 break
18461 fi
18462 done
18463 if test -z "$haveit"; then
18464 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18465 fi
18466 done
18467
18468
18469 else
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471 $as_echo "no" >&6; }
18472 fi
18473
18474 ac_ext=cpp
18475 ac_cpp='$CXXCPP $CPPFLAGS'
18476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479
18480
18481
18482
18483
18484 ac_ext=c
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18491 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18492
18493 cy_save=$CFLAGS
18494
18495 for element in -Wno-parentheses; do
18496 haveit=
18497 for x in $CFLAGS; do
18498
18499 acl_save_prefix="$prefix"
18500 prefix="$acl_final_prefix"
18501 acl_save_exec_prefix="$exec_prefix"
18502 exec_prefix="$acl_final_exec_prefix"
18503 eval x=\"$x\"
18504 exec_prefix="$acl_save_exec_prefix"
18505 prefix="$acl_save_prefix"
18506
18507 if test "X$x" = "X$element"; then
18508 haveit=yes
18509 break
18510 fi
18511 done
18512 if test -z "$haveit"; then
18513 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18514 fi
18515 done
18516
18517
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18520
18521 _ACEOF
18522 if ac_fn_c_try_compile "$LINENO"; then :
18523 cy_good=1
18524 else
18525 cy_good=0
18526 fi
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528
18529 CFLAGS=$cy_save
18530 if test "x$cy_good" = x1; then :
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532 $as_echo "yes" >&6; }
18533
18534 for element in -Wno-parentheses; do
18535 haveit=
18536 for x in $CFLAGS; do
18537
18538 acl_save_prefix="$prefix"
18539 prefix="$acl_final_prefix"
18540 acl_save_exec_prefix="$exec_prefix"
18541 exec_prefix="$acl_final_exec_prefix"
18542 eval x=\"$x\"
18543 exec_prefix="$acl_save_exec_prefix"
18544 prefix="$acl_save_prefix"
18545
18546 if test "X$x" = "X$element"; then
18547 haveit=yes
18548 break
18549 fi
18550 done
18551 if test -z "$haveit"; then
18552 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18553 fi
18554 done
18555
18556
18557 else
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18559 $as_echo "no" >&6; }
18560 fi
18561
18562 ac_ext=cpp
18563 ac_cpp='$CXXCPP $CPPFLAGS'
18564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18567
18568
18569
18570 ac_ext=cpp
18571 ac_cpp='$CXXCPP $CPPFLAGS'
18572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18575
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18577 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18578
18579 cy_save=$CXXFLAGS
18580
18581 for element in -Wno-parentheses; do
18582 haveit=
18583 for x in $CXXFLAGS; do
18584
18585 acl_save_prefix="$prefix"
18586 prefix="$acl_final_prefix"
18587 acl_save_exec_prefix="$exec_prefix"
18588 exec_prefix="$acl_final_exec_prefix"
18589 eval x=\"$x\"
18590 exec_prefix="$acl_save_exec_prefix"
18591 prefix="$acl_save_prefix"
18592
18593 if test "X$x" = "X$element"; then
18594 haveit=yes
18595 break
18596 fi
18597 done
18598 if test -z "$haveit"; then
18599 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18600 fi
18601 done
18602
18603
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606
18607 _ACEOF
18608 if ac_fn_cxx_try_compile "$LINENO"; then :
18609 cy_good=1
18610 else
18611 cy_good=0
18612 fi
18613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614
18615 CXXFLAGS=$cy_save
18616 if test "x$cy_good" = x1; then :
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18618 $as_echo "yes" >&6; }
18619
18620 for element in -Wno-parentheses; do
18621 haveit=
18622 for x in $CXXFLAGS; do
18623
18624 acl_save_prefix="$prefix"
18625 prefix="$acl_final_prefix"
18626 acl_save_exec_prefix="$exec_prefix"
18627 exec_prefix="$acl_final_exec_prefix"
18628 eval x=\"$x\"
18629 exec_prefix="$acl_save_exec_prefix"
18630 prefix="$acl_save_prefix"
18631
18632 if test "X$x" = "X$element"; then
18633 haveit=yes
18634 break
18635 fi
18636 done
18637 if test -z "$haveit"; then
18638 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18639 fi
18640 done
18641
18642
18643 else
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18646 fi
18647
18648 ac_ext=cpp
18649 ac_cpp='$CXXCPP $CPPFLAGS'
18650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18653
18654
18655
18656 ac_ext=mm
18657 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18658 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18659 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18660 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18661
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18663 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18664
18665 cy_save=$OBJCXXFLAGS
18666
18667 for element in -Wno-parentheses; do
18668 haveit=
18669 for x in $OBJCXXFLAGS; do
18670
18671 acl_save_prefix="$prefix"
18672 prefix="$acl_final_prefix"
18673 acl_save_exec_prefix="$exec_prefix"
18674 exec_prefix="$acl_final_exec_prefix"
18675 eval x=\"$x\"
18676 exec_prefix="$acl_save_exec_prefix"
18677 prefix="$acl_save_prefix"
18678
18679 if test "X$x" = "X$element"; then
18680 haveit=yes
18681 break
18682 fi
18683 done
18684 if test -z "$haveit"; then
18685 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18686 fi
18687 done
18688
18689
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18692
18693 _ACEOF
18694 if ac_fn_objcxx_try_compile "$LINENO"; then :
18695 cy_good=1
18696 else
18697 cy_good=0
18698 fi
18699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700
18701 OBJCXXFLAGS=$cy_save
18702 if test "x$cy_good" = x1; then :
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704 $as_echo "yes" >&6; }
18705
18706 for element in -Wno-parentheses; do
18707 haveit=
18708 for x in $OBJCXXFLAGS; do
18709
18710 acl_save_prefix="$prefix"
18711 prefix="$acl_final_prefix"
18712 acl_save_exec_prefix="$exec_prefix"
18713 exec_prefix="$acl_final_exec_prefix"
18714 eval x=\"$x\"
18715 exec_prefix="$acl_save_exec_prefix"
18716 prefix="$acl_save_prefix"
18717
18718 if test "X$x" = "X$element"; then
18719 haveit=yes
18720 break
18721 fi
18722 done
18723 if test -z "$haveit"; then
18724 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18725 fi
18726 done
18727
18728
18729 else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18732 fi
18733
18734 ac_ext=cpp
18735 ac_cpp='$CXXCPP $CPPFLAGS'
18736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18739
18740
18741
18742
18743
18744 ac_ext=c
18745 ac_cpp='$CPP $CPPFLAGS'
18746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18749
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18751 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18752
18753 cy_save=$CFLAGS
18754
18755 for element in -Wno-unneeded-internal-declaration; do
18756 haveit=
18757 for x in $CFLAGS; do
18758
18759 acl_save_prefix="$prefix"
18760 prefix="$acl_final_prefix"
18761 acl_save_exec_prefix="$exec_prefix"
18762 exec_prefix="$acl_final_exec_prefix"
18763 eval x=\"$x\"
18764 exec_prefix="$acl_save_exec_prefix"
18765 prefix="$acl_save_prefix"
18766
18767 if test "X$x" = "X$element"; then
18768 haveit=yes
18769 break
18770 fi
18771 done
18772 if test -z "$haveit"; then
18773 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18774 fi
18775 done
18776
18777
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18780
18781 _ACEOF
18782 if ac_fn_c_try_compile "$LINENO"; then :
18783 cy_good=1
18784 else
18785 cy_good=0
18786 fi
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788
18789 CFLAGS=$cy_save
18790 if test "x$cy_good" = x1; then :
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18792 $as_echo "yes" >&6; }
18793
18794 for element in -Wno-unneeded-internal-declaration; do
18795 haveit=
18796 for x in $CFLAGS; do
18797
18798 acl_save_prefix="$prefix"
18799 prefix="$acl_final_prefix"
18800 acl_save_exec_prefix="$exec_prefix"
18801 exec_prefix="$acl_final_exec_prefix"
18802 eval x=\"$x\"
18803 exec_prefix="$acl_save_exec_prefix"
18804 prefix="$acl_save_prefix"
18805
18806 if test "X$x" = "X$element"; then
18807 haveit=yes
18808 break
18809 fi
18810 done
18811 if test -z "$haveit"; then
18812 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18813 fi
18814 done
18815
18816
18817 else
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18820 fi
18821
18822 ac_ext=cpp
18823 ac_cpp='$CXXCPP $CPPFLAGS'
18824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827
18828
18829
18830 ac_ext=cpp
18831 ac_cpp='$CXXCPP $CPPFLAGS'
18832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18835
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18837 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18838
18839 cy_save=$CXXFLAGS
18840
18841 for element in -Wno-unneeded-internal-declaration; do
18842 haveit=
18843 for x in $CXXFLAGS; do
18844
18845 acl_save_prefix="$prefix"
18846 prefix="$acl_final_prefix"
18847 acl_save_exec_prefix="$exec_prefix"
18848 exec_prefix="$acl_final_exec_prefix"
18849 eval x=\"$x\"
18850 exec_prefix="$acl_save_exec_prefix"
18851 prefix="$acl_save_prefix"
18852
18853 if test "X$x" = "X$element"; then
18854 haveit=yes
18855 break
18856 fi
18857 done
18858 if test -z "$haveit"; then
18859 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18860 fi
18861 done
18862
18863
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866
18867 _ACEOF
18868 if ac_fn_cxx_try_compile "$LINENO"; then :
18869 cy_good=1
18870 else
18871 cy_good=0
18872 fi
18873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874
18875 CXXFLAGS=$cy_save
18876 if test "x$cy_good" = x1; then :
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18878 $as_echo "yes" >&6; }
18879
18880 for element in -Wno-unneeded-internal-declaration; do
18881 haveit=
18882 for x in $CXXFLAGS; do
18883
18884 acl_save_prefix="$prefix"
18885 prefix="$acl_final_prefix"
18886 acl_save_exec_prefix="$exec_prefix"
18887 exec_prefix="$acl_final_exec_prefix"
18888 eval x=\"$x\"
18889 exec_prefix="$acl_save_exec_prefix"
18890 prefix="$acl_save_prefix"
18891
18892 if test "X$x" = "X$element"; then
18893 haveit=yes
18894 break
18895 fi
18896 done
18897 if test -z "$haveit"; then
18898 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18899 fi
18900 done
18901
18902
18903 else
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905 $as_echo "no" >&6; }
18906 fi
18907
18908 ac_ext=cpp
18909 ac_cpp='$CXXCPP $CPPFLAGS'
18910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18913
18914
18915
18916 ac_ext=mm
18917 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18918 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18921
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18923 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18924
18925 cy_save=$OBJCXXFLAGS
18926
18927 for element in -Wno-unneeded-internal-declaration; do
18928 haveit=
18929 for x in $OBJCXXFLAGS; do
18930
18931 acl_save_prefix="$prefix"
18932 prefix="$acl_final_prefix"
18933 acl_save_exec_prefix="$exec_prefix"
18934 exec_prefix="$acl_final_exec_prefix"
18935 eval x=\"$x\"
18936 exec_prefix="$acl_save_exec_prefix"
18937 prefix="$acl_save_prefix"
18938
18939 if test "X$x" = "X$element"; then
18940 haveit=yes
18941 break
18942 fi
18943 done
18944 if test -z "$haveit"; then
18945 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18946 fi
18947 done
18948
18949
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18952
18953 _ACEOF
18954 if ac_fn_objcxx_try_compile "$LINENO"; then :
18955 cy_good=1
18956 else
18957 cy_good=0
18958 fi
18959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960
18961 OBJCXXFLAGS=$cy_save
18962 if test "x$cy_good" = x1; then :
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18964 $as_echo "yes" >&6; }
18965
18966 for element in -Wno-unneeded-internal-declaration; do
18967 haveit=
18968 for x in $OBJCXXFLAGS; do
18969
18970 acl_save_prefix="$prefix"
18971 prefix="$acl_final_prefix"
18972 acl_save_exec_prefix="$exec_prefix"
18973 exec_prefix="$acl_final_exec_prefix"
18974 eval x=\"$x\"
18975 exec_prefix="$acl_save_exec_prefix"
18976 prefix="$acl_save_prefix"
18977
18978 if test "X$x" = "X$element"; then
18979 haveit=yes
18980 break
18981 fi
18982 done
18983 if test -z "$haveit"; then
18984 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18985 fi
18986 done
18987
18988
18989 else
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18991 $as_echo "no" >&6; }
18992 fi
18993
18994 ac_ext=cpp
18995 ac_cpp='$CXXCPP $CPPFLAGS'
18996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18999
19000
19001
19002
19003
19004
19005
19006 ac_ext=c
19007 ac_cpp='$CPP $CPPFLAGS'
19008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19011
19012 ax_pthread_ok=no
19013
19014 # We used to check for pthread.h first, but this fails if pthread.h
19015 # requires special compiler flags (e.g. on Tru64 or Sequent).
19016 # It gets checked for in the link test anyway.
19017
19018 # First of all, check if the user has set any of the PTHREAD_LIBS,
19019 # etcetera environment variables, and if threads linking works using
19020 # them:
19021 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19022 save_CFLAGS="$CFLAGS"
19023 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19024 save_LIBS="$LIBS"
19025 LIBS="$PTHREAD_LIBS $LIBS"
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19027 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19030
19031 /* Override any GCC internal prototype to avoid an error.
19032 Use char because int might match the return type of a GCC
19033 builtin and then its argument prototype would still apply. */
19034 #ifdef __cplusplus
19035 extern "C"
19036 #endif
19037 char pthread_join ();
19038 int
19039 main ()
19040 {
19041 return pthread_join ();
19042 ;
19043 return 0;
19044 }
19045 _ACEOF
19046 if ac_fn_c_try_link "$LINENO"; then :
19047 ax_pthread_ok=yes
19048 fi
19049 rm -f core conftest.err conftest.$ac_objext \
19050 conftest$ac_exeext conftest.$ac_ext
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19052 $as_echo "$ax_pthread_ok" >&6; }
19053 if test x"$ax_pthread_ok" = xno; then
19054 PTHREAD_LIBS=""
19055 PTHREAD_CFLAGS=""
19056 fi
19057 LIBS="$save_LIBS"
19058 CFLAGS="$save_CFLAGS"
19059 fi
19060
19061 # We must check for the threads library under a number of different
19062 # names; the ordering is very important because some systems
19063 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19064 # libraries is broken (non-POSIX).
19065
19066 # Create a list of thread flags to try. Items starting with a "-" are
19067 # C compiler flags, and other items are library names, except for "none"
19068 # which indicates that we try without any flags at all, and "pthread-config"
19069 # which is a program returning the flags for the Pth emulation library.
19070
19071 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
19072
19073 # The ordering *is* (sometimes) important. Some notes on the
19074 # individual items follow:
19075
19076 # pthreads: AIX (must check this before -lpthread)
19077 # none: in case threads are in libc; should be tried before -Kthread and
19078 # other compiler flags to prevent continual compiler warnings
19079 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19080 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19081 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19082 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19083 # -pthreads: Solaris/gcc
19084 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19085 # doesn't hurt to check since this sometimes defines pthreads and
19086 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19087 # is present but should not be used directly)
19088 # -mthreads: Mingw32/gcc, Lynx/gcc
19089 # pthread: Linux, etcetera
19090 # --thread-safe: KAI C++
19091 # pthread-config: use pthread-config program (for GNU Pth library)
19092
19093 case $host_os in
19094
19095 hpux*)
19096
19097 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19098 # multi-threading and also sets -lpthread."
19099
19100 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19101 ;;
19102
19103 openedition*)
19104
19105 # IBM z/OS requires a feature-test macro to be defined in order to
19106 # enable POSIX threads at all, so give the user a hint if this is
19107 # not set. (We don't define these ourselves, as they can affect
19108 # other portions of the system API in unpredictable ways.)
19109
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112
19113 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19114 AX_PTHREAD_ZOS_MISSING
19115 # endif
19116
19117 _ACEOF
19118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19119 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19121 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19122 fi
19123 rm -f conftest*
19124
19125 ;;
19126
19127 solaris*)
19128
19129 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19130 # check that first. On some older versions, libc contains stubbed
19131 # (non-functional) versions of the pthreads routines, so link-based
19132 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19133 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19134 # a function called by this macro, so we could check for that, but
19135 # who knows whether they'll stub that too in a future libc.) So
19136 # we'll look for -pthreads and -lpthread shortly thereafter.
19137
19138 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
19139 ;;
19140 esac
19141
19142 # Older versions of Clang only give a warning instead of an error for an
19143 # unrecognized option, unless we specify -Werror. (We throw in some extra
19144 # Clang warning flags for good measure.)
19145
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19147 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19148 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19149 $as_echo_n "(cached) " >&6
19150 else
19151 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19152 save_CFLAGS="$CFLAGS"
19153 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19154 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h. */
19157 int foo(void);
19158 int
19159 main ()
19160 {
19161 foo()
19162 ;
19163 return 0;
19164 }
19165 _ACEOF
19166 if ac_fn_c_try_compile "$LINENO"; then :
19167 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
19168 else
19169 ax_cv_PTHREAD_REJECT_UNKNOWN=no
19170 fi
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 CFLAGS="$save_CFLAGS"
19173
19174 fi
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19176 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19177 ax_pthread_extra_flags=
19178 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19179 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19180 fi
19181
19182 if test x"$ax_pthread_ok" = xno; then
19183 for flag in $ax_pthread_flags; do
19184
19185 case $flag in
19186 none)
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19188 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19189 ;;
19190
19191 -mt,pthread)
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19193 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19194 PTHREAD_CFLAGS="-mt"
19195 PTHREAD_LIBS="-lpthread"
19196 ;;
19197
19198 -*)
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19200 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19201 PTHREAD_CFLAGS="$flag"
19202 ;;
19203
19204 pthread-config)
19205 # Extract the first word of "pthread-config", so it can be a program name with args.
19206 set dummy pthread-config; ac_word=$2
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19208 $as_echo_n "checking for $ac_word... " >&6; }
19209 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 if test -n "$ax_pthread_config"; then
19213 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19214 else
19215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19216 for as_dir in $PATH
19217 do
19218 IFS=$as_save_IFS
19219 test -z "$as_dir" && as_dir=.
19220 for ac_exec_ext in '' $ac_executable_extensions; do
19221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19222 ac_cv_prog_ax_pthread_config="yes"
19223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19224 break 2
19225 fi
19226 done
19227 done
19228 IFS=$as_save_IFS
19229
19230 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19231 fi
19232 fi
19233 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19234 if test -n "$ax_pthread_config"; then
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19236 $as_echo "$ax_pthread_config" >&6; }
19237 else
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19239 $as_echo "no" >&6; }
19240 fi
19241
19242
19243 if test x"$ax_pthread_config" = xno; then continue; fi
19244 PTHREAD_CFLAGS="`pthread-config --cflags`"
19245 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19246 ;;
19247
19248 *)
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19250 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19251 PTHREAD_LIBS="-l$flag"
19252 ;;
19253 esac
19254
19255 save_LIBS="$LIBS"
19256 save_CFLAGS="$CFLAGS"
19257 LIBS="$PTHREAD_LIBS $LIBS"
19258 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19259
19260 # Check for various functions. We must include pthread.h,
19261 # since some functions may be macros. (On the Sequent, we
19262 # need a special flag -Kthread to make this header compile.)
19263 # We check for pthread_join because it is in -lpthread on IRIX
19264 # while pthread_create is in libc. We check for pthread_attr_init
19265 # due to DEC craziness with -lpthreads. We check for
19266 # pthread_cleanup_push because it is one of the few pthread
19267 # functions on Solaris that doesn't have a non-functional libc stub.
19268 # We try pthread_create on general principles.
19269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h. */
19271 #include <pthread.h>
19272 static void routine(void *a) { a = 0; }
19273 static void *start_routine(void *a) { return a; }
19274 int
19275 main ()
19276 {
19277 pthread_t th; pthread_attr_t attr;
19278 pthread_create(&th, 0, start_routine, 0);
19279 pthread_join(th, 0);
19280 pthread_attr_init(&attr);
19281 pthread_cleanup_push(routine, 0);
19282 pthread_cleanup_pop(0) /* ; */
19283 ;
19284 return 0;
19285 }
19286 _ACEOF
19287 if ac_fn_c_try_link "$LINENO"; then :
19288 ax_pthread_ok=yes
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext \
19291 conftest$ac_exeext conftest.$ac_ext
19292
19293 LIBS="$save_LIBS"
19294 CFLAGS="$save_CFLAGS"
19295
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19297 $as_echo "$ax_pthread_ok" >&6; }
19298 if test "x$ax_pthread_ok" = xyes; then
19299 break;
19300 fi
19301
19302 PTHREAD_LIBS=""
19303 PTHREAD_CFLAGS=""
19304 done
19305 fi
19306
19307 # Various other checks:
19308 if test "x$ax_pthread_ok" = xyes; then
19309 save_LIBS="$LIBS"
19310 LIBS="$PTHREAD_LIBS $LIBS"
19311 save_CFLAGS="$CFLAGS"
19312 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19313
19314 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19316 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19317 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19318 $as_echo_n "(cached) " >&6
19319 else
19320 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19321 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h. */
19324 #include <pthread.h>
19325 int
19326 main ()
19327 {
19328 int attr = $attr; return attr /* ; */
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 if ac_fn_c_try_link "$LINENO"; then :
19334 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext \
19337 conftest$ac_exeext conftest.$ac_ext
19338 done
19339
19340 fi
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19342 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19343 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19344 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
19345
19346 cat >>confdefs.h <<_ACEOF
19347 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19348 _ACEOF
19349
19350 fi
19351
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19353 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19354 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19355 $as_echo_n "(cached) " >&6
19356 else
19357 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19358 ax_pthread_special_flags_added=no
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361
19362 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19363 AX_PTHREAD_NEED_SPECIAL_FLAG
19364 # endif
19365
19366 _ACEOF
19367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19368 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19369 case $host_os in
19370 aix* | freebsd*)
19371 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19372 ;;
19373 darwin* | hpux* | osf* | solaris*)
19374 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19375 ;;
19376 esac
19377
19378 fi
19379 rm -f conftest*
19380
19381
19382 fi
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19384 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19385 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19386 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19387 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19388 ax_pthread_special_flags_added=yes
19389 fi
19390
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19392 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19393 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19394 $as_echo_n "(cached) " >&6
19395 else
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19398 #include <pthread.h>
19399 int
19400 main ()
19401 {
19402 int i = PTHREAD_PRIO_INHERIT;
19403 ;
19404 return 0;
19405 }
19406 _ACEOF
19407 if ac_fn_c_try_link "$LINENO"; then :
19408 ax_cv_PTHREAD_PRIO_INHERIT=yes
19409 else
19410 ax_cv_PTHREAD_PRIO_INHERIT=no
19411 fi
19412 rm -f core conftest.err conftest.$ac_objext \
19413 conftest$ac_exeext conftest.$ac_ext
19414
19415 fi
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19417 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19418 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19419
19420 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19421
19422 fi
19423
19424 LIBS="$save_LIBS"
19425 CFLAGS="$save_CFLAGS"
19426
19427 # More AIX lossage: compile with *_r variant
19428 if test "x$GCC" != xyes; then
19429 case $host_os in
19430 aix*)
19431 case "x/$CC" in #(
19432 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19433 #handle absolute path differently from PATH based program lookup
19434 case "x$CC" in #(
19435 x/*) :
19436 if as_fn_executable_p ${CC}_r; then :
19437 PTHREAD_CC="${CC}_r"
19438 fi ;; #(
19439 *) :
19440 for ac_prog in ${CC}_r
19441 do
19442 # Extract the first word of "$ac_prog", so it can be a program name with args.
19443 set dummy $ac_prog; ac_word=$2
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19445 $as_echo_n "checking for $ac_word... " >&6; }
19446 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19447 $as_echo_n "(cached) " >&6
19448 else
19449 if test -n "$PTHREAD_CC"; then
19450 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19451 else
19452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19453 for as_dir in $PATH
19454 do
19455 IFS=$as_save_IFS
19456 test -z "$as_dir" && as_dir=.
19457 for ac_exec_ext in '' $ac_executable_extensions; do
19458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19459 ac_cv_prog_PTHREAD_CC="$ac_prog"
19460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19461 break 2
19462 fi
19463 done
19464 done
19465 IFS=$as_save_IFS
19466
19467 fi
19468 fi
19469 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19470 if test -n "$PTHREAD_CC"; then
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19472 $as_echo "$PTHREAD_CC" >&6; }
19473 else
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475 $as_echo "no" >&6; }
19476 fi
19477
19478
19479 test -n "$PTHREAD_CC" && break
19480 done
19481 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19482 ;;
19483 esac ;; #(
19484 *) :
19485 ;;
19486 esac
19487 ;;
19488 esac
19489 fi
19490 fi
19491
19492 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19493
19494
19495
19496
19497
19498 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19499 if test x"$ax_pthread_ok" = xyes; then
19500
19501 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19502
19503 :
19504 else
19505 ax_pthread_ok=no
19506
19507 fi
19508 ac_ext=cpp
19509 ac_cpp='$CXXCPP $CPPFLAGS'
19510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513
19514
19515
19516
19517
19518 for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19520 $as_echo_n "checking for -arch $cy_arch... " >&6; }
19521
19522 cy_save=$CXXFLAGS
19523
19524 for element in "-arch $cy_arch"; do
19525 haveit=
19526 for x in $CXXFLAGS; do
19527
19528 acl_save_prefix="$prefix"
19529 prefix="$acl_final_prefix"
19530 acl_save_exec_prefix="$exec_prefix"
19531 exec_prefix="$acl_final_exec_prefix"
19532 eval x=\"$x\"
19533 exec_prefix="$acl_save_exec_prefix"
19534 prefix="$acl_save_prefix"
19535
19536 if test "X$x" = "X$element"; then
19537 haveit=yes
19538 break
19539 fi
19540 done
19541 if test -z "$haveit"; then
19542 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19543 fi
19544 done
19545
19546
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19549
19550 int
19551 main ()
19552 {
19553
19554 ;
19555 return 0;
19556 }
19557 _ACEOF
19558 if ac_fn_cxx_try_link "$LINENO"; then :
19559 cy_good=1
19560 else
19561 cy_good=0
19562 fi
19563 rm -f core conftest.err conftest.$ac_objext \
19564 conftest$ac_exeext conftest.$ac_ext
19565
19566 CXXFLAGS=$cy_save
19567 if test "x$cy_good" = x1; then :
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569 $as_echo "yes" >&6; }
19570
19571 for element in "-arch $cy_arch"; do
19572 haveit=
19573 for x in $CY_ARCH; do
19574
19575 acl_save_prefix="$prefix"
19576 prefix="$acl_final_prefix"
19577 acl_save_exec_prefix="$exec_prefix"
19578 exec_prefix="$acl_final_exec_prefix"
19579 eval x=\"$x\"
19580 exec_prefix="$acl_save_exec_prefix"
19581 prefix="$acl_save_prefix"
19582
19583 if test "X$x" = "X$element"; then
19584 haveit=yes
19585 break
19586 fi
19587 done
19588 if test -z "$haveit"; then
19589 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19590 fi
19591 done
19592
19593
19594 else
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596 $as_echo "no" >&6; }
19597 fi
19598
19599 done
19600
19601
19602
19603
19604
19605
19606 # Check whether --enable-javascript was given.
19607 if test "${enable_javascript+set}" = set; then :
19608 enableval=$enable_javascript;
19609 case $enableval in #(
19610 yes) :
19611
19612
19613
19614
19615 cy_save=$LIBS
19616 LIBS=
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19618 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19619 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19620 $as_echo_n "(cached) " >&6
19621 else
19622 ac_func_search_save_LIBS=$LIBS
19623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h. */
19625
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char JSEvaluateScript ();
19633 int
19634 main ()
19635 {
19636 return JSEvaluateScript ();
19637 ;
19638 return 0;
19639 }
19640 _ACEOF
19641 for ac_lib in '' JavaScriptCore; do
19642 if test -z "$ac_lib"; then
19643 ac_res="none required"
19644 else
19645 ac_res=-l$ac_lib
19646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19647 fi
19648 if ac_fn_cxx_try_link "$LINENO"; then :
19649 ac_cv_search_JSEvaluateScript=$ac_res
19650 fi
19651 rm -f core conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext
19653 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19654 break
19655 fi
19656 done
19657 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19658
19659 else
19660 ac_cv_search_JSEvaluateScript=no
19661 fi
19662 rm conftest.$ac_ext
19663 LIBS=$ac_func_search_save_LIBS
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19666 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19667 ac_res=$ac_cv_search_JSEvaluateScript
19668 if test "$ac_res" != no; then :
19669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19670
19671 CY_EXECUTE=1
19672
19673
19674 else
19675
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19677 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19678 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681
19682 ac_check_framework_save_LIBS=$LIBS
19683 LIBS="-framework JavaScriptCore $LIBS"
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686
19687 #include <JavaScriptCore/JSBase.h>
19688
19689 int
19690 main ()
19691 {
19692
19693 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19694
19695 ;
19696 return 0;
19697 }
19698 _ACEOF
19699 if ac_fn_cxx_try_link "$LINENO"; then :
19700
19701 ac_cv_framework_JavaScriptCore=yes
19702
19703 else
19704 ac_cv_framework_JavaScriptCore=no
19705 fi
19706 rm -f core conftest.err conftest.$ac_objext \
19707 conftest$ac_exeext conftest.$ac_ext
19708 LIBS=$ac_check_framework_save_LIBS
19709
19710 fi
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19712 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19713 if test $ac_cv_framework_JavaScriptCore = yes; then :
19714
19715
19716 for element in "-framework JavaScriptCore"; do
19717 haveit=
19718 for x in $LIBS; do
19719
19720 acl_save_prefix="$prefix"
19721 prefix="$acl_final_prefix"
19722 acl_save_exec_prefix="$exec_prefix"
19723 exec_prefix="$acl_final_exec_prefix"
19724 eval x=\"$x\"
19725 exec_prefix="$acl_save_exec_prefix"
19726 prefix="$acl_save_prefix"
19727
19728 if test "X$x" = "X$element"; then
19729 haveit=yes
19730 break
19731 fi
19732 done
19733 if test -z "$haveit"; then
19734 LIBS="${LIBS}${LIBS:+ }$element"
19735 fi
19736 done
19737
19738
19739 CY_EXECUTE=1
19740
19741
19742
19743 else
19744
19745 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19746
19747 pkg_failed=no
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19749 $as_echo_n "checking for WEBKIT... " >&6; }
19750
19751 if test -n "$WEBKIT_CFLAGS"; then
19752 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19753 elif test -n "$PKG_CONFIG"; then
19754 if test -n "$PKG_CONFIG" && \
19755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19756 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19757 ac_status=$?
19758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19759 test $ac_status = 0; }; then
19760 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19761 test "x$?" != "x0" && pkg_failed=yes
19762 else
19763 pkg_failed=yes
19764 fi
19765 else
19766 pkg_failed=untried
19767 fi
19768 if test -n "$WEBKIT_LIBS"; then
19769 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19770 elif test -n "$PKG_CONFIG"; then
19771 if test -n "$PKG_CONFIG" && \
19772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19773 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19774 ac_status=$?
19775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19776 test $ac_status = 0; }; then
19777 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19778 test "x$?" != "x0" && pkg_failed=yes
19779 else
19780 pkg_failed=yes
19781 fi
19782 else
19783 pkg_failed=untried
19784 fi
19785
19786
19787
19788 if test $pkg_failed = yes; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19790 $as_echo "no" >&6; }
19791
19792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19793 _pkg_short_errors_supported=yes
19794 else
19795 _pkg_short_errors_supported=no
19796 fi
19797 if test $_pkg_short_errors_supported = yes; then
19798 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19799 else
19800 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19801 fi
19802 # Put the nasty error message in config.log where it belongs
19803 echo "$WEBKIT_PKG_ERRORS" >&5
19804
19805 :
19806 elif test $pkg_failed = untried; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19809 :
19810 else
19811 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19812 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19815
19816 CY_EXECUTE=1
19817
19818
19819 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19820 haveit=
19821 for x in $CPPFLAGS; do
19822
19823 acl_save_prefix="$prefix"
19824 prefix="$acl_final_prefix"
19825 acl_save_exec_prefix="$exec_prefix"
19826 exec_prefix="$acl_final_exec_prefix"
19827 eval x=\"$x\"
19828 exec_prefix="$acl_save_exec_prefix"
19829 prefix="$acl_save_prefix"
19830
19831 if test "X$x" = "X$element"; then
19832 haveit=yes
19833 break
19834 fi
19835 done
19836 if test -z "$haveit"; then
19837 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19838 fi
19839 done
19840
19841
19842 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19843 haveit=
19844 for x in $LIBS; do
19845
19846 acl_save_prefix="$prefix"
19847 prefix="$acl_final_prefix"
19848 acl_save_exec_prefix="$exec_prefix"
19849 exec_prefix="$acl_final_exec_prefix"
19850 eval x=\"$x\"
19851 exec_prefix="$acl_save_exec_prefix"
19852 prefix="$acl_save_prefix"
19853
19854 if test "X$x" = "X$element"; then
19855 haveit=yes
19856 break
19857 fi
19858 done
19859 if test -z "$haveit"; then
19860 LIBS="${LIBS}${LIBS:+ }$element"
19861 fi
19862 done
19863
19864
19865 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19866 done
19867
19868 fi
19869 fi
19870
19871 LTJAVASCRIPTCORE=$LIBS
19872 LIBS=$cy_save
19873
19874
19875 ;; #(
19876 no) :
19877
19878 CY_EXECUTE=0
19879 ;; #(
19880 JavaScriptCore) :
19881
19882
19883
19884 cy_save=$LIBS
19885 LIBS=
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19887 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19888 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19889 $as_echo_n "(cached) " >&6
19890 else
19891 ac_func_search_save_LIBS=$LIBS
19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19894
19895 /* Override any GCC internal prototype to avoid an error.
19896 Use char because int might match the return type of a GCC
19897 builtin and then its argument prototype would still apply. */
19898 #ifdef __cplusplus
19899 extern "C"
19900 #endif
19901 char JSEvaluateScript ();
19902 int
19903 main ()
19904 {
19905 return JSEvaluateScript ();
19906 ;
19907 return 0;
19908 }
19909 _ACEOF
19910 for ac_lib in '' JavaScriptCore; do
19911 if test -z "$ac_lib"; then
19912 ac_res="none required"
19913 else
19914 ac_res=-l$ac_lib
19915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19916 fi
19917 if ac_fn_cxx_try_link "$LINENO"; then :
19918 ac_cv_search_JSEvaluateScript=$ac_res
19919 fi
19920 rm -f core conftest.err conftest.$ac_objext \
19921 conftest$ac_exeext
19922 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19923 break
19924 fi
19925 done
19926 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19927
19928 else
19929 ac_cv_search_JSEvaluateScript=no
19930 fi
19931 rm conftest.$ac_ext
19932 LIBS=$ac_func_search_save_LIBS
19933 fi
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19935 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19936 ac_res=$ac_cv_search_JSEvaluateScript
19937 if test "$ac_res" != no; then :
19938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19939
19940 CY_EXECUTE=1
19941
19942
19943 else
19944
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19946 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19947 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19948 $as_echo_n "(cached) " >&6
19949 else
19950
19951 ac_check_framework_save_LIBS=$LIBS
19952 LIBS="-framework JavaScriptCore $LIBS"
19953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954 /* end confdefs.h. */
19955
19956 #include <JavaScriptCore/JSBase.h>
19957
19958 int
19959 main ()
19960 {
19961
19962 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19963
19964 ;
19965 return 0;
19966 }
19967 _ACEOF
19968 if ac_fn_cxx_try_link "$LINENO"; then :
19969
19970 ac_cv_framework_JavaScriptCore=yes
19971
19972 else
19973 ac_cv_framework_JavaScriptCore=no
19974 fi
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_framework_save_LIBS
19978
19979 fi
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19981 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19982 if test $ac_cv_framework_JavaScriptCore = yes; then :
19983
19984
19985 for element in "-framework JavaScriptCore"; do
19986 haveit=
19987 for x in $LIBS; do
19988
19989 acl_save_prefix="$prefix"
19990 prefix="$acl_final_prefix"
19991 acl_save_exec_prefix="$exec_prefix"
19992 exec_prefix="$acl_final_exec_prefix"
19993 eval x=\"$x\"
19994 exec_prefix="$acl_save_exec_prefix"
19995 prefix="$acl_save_prefix"
19996
19997 if test "X$x" = "X$element"; then
19998 haveit=yes
19999 break
20000 fi
20001 done
20002 if test -z "$haveit"; then
20003 LIBS="${LIBS}${LIBS:+ }$element"
20004 fi
20005 done
20006
20007
20008 CY_EXECUTE=1
20009
20010
20011
20012 else
20013
20014 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20015
20016 pkg_failed=no
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20018 $as_echo_n "checking for WEBKIT... " >&6; }
20019
20020 if test -n "$WEBKIT_CFLAGS"; then
20021 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20022 elif test -n "$PKG_CONFIG"; then
20023 if test -n "$PKG_CONFIG" && \
20024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20025 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20026 ac_status=$?
20027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20028 test $ac_status = 0; }; then
20029 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20030 test "x$?" != "x0" && pkg_failed=yes
20031 else
20032 pkg_failed=yes
20033 fi
20034 else
20035 pkg_failed=untried
20036 fi
20037 if test -n "$WEBKIT_LIBS"; then
20038 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20039 elif test -n "$PKG_CONFIG"; then
20040 if test -n "$PKG_CONFIG" && \
20041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20042 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20043 ac_status=$?
20044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20045 test $ac_status = 0; }; then
20046 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20047 test "x$?" != "x0" && pkg_failed=yes
20048 else
20049 pkg_failed=yes
20050 fi
20051 else
20052 pkg_failed=untried
20053 fi
20054
20055
20056
20057 if test $pkg_failed = yes; then
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059 $as_echo "no" >&6; }
20060
20061 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20062 _pkg_short_errors_supported=yes
20063 else
20064 _pkg_short_errors_supported=no
20065 fi
20066 if test $_pkg_short_errors_supported = yes; then
20067 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20068 else
20069 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20070 fi
20071 # Put the nasty error message in config.log where it belongs
20072 echo "$WEBKIT_PKG_ERRORS" >&5
20073
20074 :
20075 elif test $pkg_failed = untried; then
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20077 $as_echo "no" >&6; }
20078 :
20079 else
20080 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20081 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20083 $as_echo "yes" >&6; }
20084
20085 CY_EXECUTE=1
20086
20087
20088 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20089 haveit=
20090 for x in $CPPFLAGS; do
20091
20092 acl_save_prefix="$prefix"
20093 prefix="$acl_final_prefix"
20094 acl_save_exec_prefix="$exec_prefix"
20095 exec_prefix="$acl_final_exec_prefix"
20096 eval x=\"$x\"
20097 exec_prefix="$acl_save_exec_prefix"
20098 prefix="$acl_save_prefix"
20099
20100 if test "X$x" = "X$element"; then
20101 haveit=yes
20102 break
20103 fi
20104 done
20105 if test -z "$haveit"; then
20106 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20107 fi
20108 done
20109
20110
20111 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20112 haveit=
20113 for x in $LIBS; do
20114
20115 acl_save_prefix="$prefix"
20116 prefix="$acl_final_prefix"
20117 acl_save_exec_prefix="$exec_prefix"
20118 exec_prefix="$acl_final_exec_prefix"
20119 eval x=\"$x\"
20120 exec_prefix="$acl_save_exec_prefix"
20121 prefix="$acl_save_prefix"
20122
20123 if test "X$x" = "X$element"; then
20124 haveit=yes
20125 break
20126 fi
20127 done
20128 if test -z "$haveit"; then
20129 LIBS="${LIBS}${LIBS:+ }$element"
20130 fi
20131 done
20132
20133
20134 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20135 done
20136
20137 fi
20138 fi
20139
20140 LTJAVASCRIPTCORE=$LIBS
20141 LIBS=$cy_save
20142
20143
20144 ;; #(
20145 *) :
20146 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20147 esac
20148
20149 else
20150
20151
20152
20153 cy_save=$LIBS
20154 LIBS=
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20156 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20157 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20158 $as_echo_n "(cached) " >&6
20159 else
20160 ac_func_search_save_LIBS=$LIBS
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20163
20164 /* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20167 #ifdef __cplusplus
20168 extern "C"
20169 #endif
20170 char JSEvaluateScript ();
20171 int
20172 main ()
20173 {
20174 return JSEvaluateScript ();
20175 ;
20176 return 0;
20177 }
20178 _ACEOF
20179 for ac_lib in '' JavaScriptCore; do
20180 if test -z "$ac_lib"; then
20181 ac_res="none required"
20182 else
20183 ac_res=-l$ac_lib
20184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20185 fi
20186 if ac_fn_cxx_try_link "$LINENO"; then :
20187 ac_cv_search_JSEvaluateScript=$ac_res
20188 fi
20189 rm -f core conftest.err conftest.$ac_objext \
20190 conftest$ac_exeext
20191 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20192 break
20193 fi
20194 done
20195 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20196
20197 else
20198 ac_cv_search_JSEvaluateScript=no
20199 fi
20200 rm conftest.$ac_ext
20201 LIBS=$ac_func_search_save_LIBS
20202 fi
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20204 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20205 ac_res=$ac_cv_search_JSEvaluateScript
20206 if test "$ac_res" != no; then :
20207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20208
20209 CY_EXECUTE=1
20210
20211
20212 else
20213
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20215 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20216 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20217 $as_echo_n "(cached) " >&6
20218 else
20219
20220 ac_check_framework_save_LIBS=$LIBS
20221 LIBS="-framework JavaScriptCore $LIBS"
20222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h. */
20224
20225 #include <JavaScriptCore/JSBase.h>
20226
20227 int
20228 main ()
20229 {
20230
20231 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20232
20233 ;
20234 return 0;
20235 }
20236 _ACEOF
20237 if ac_fn_cxx_try_link "$LINENO"; then :
20238
20239 ac_cv_framework_JavaScriptCore=yes
20240
20241 else
20242 ac_cv_framework_JavaScriptCore=no
20243 fi
20244 rm -f core conftest.err conftest.$ac_objext \
20245 conftest$ac_exeext conftest.$ac_ext
20246 LIBS=$ac_check_framework_save_LIBS
20247
20248 fi
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20250 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20251 if test $ac_cv_framework_JavaScriptCore = yes; then :
20252
20253
20254 for element in "-framework JavaScriptCore"; do
20255 haveit=
20256 for x in $LIBS; do
20257
20258 acl_save_prefix="$prefix"
20259 prefix="$acl_final_prefix"
20260 acl_save_exec_prefix="$exec_prefix"
20261 exec_prefix="$acl_final_exec_prefix"
20262 eval x=\"$x\"
20263 exec_prefix="$acl_save_exec_prefix"
20264 prefix="$acl_save_prefix"
20265
20266 if test "X$x" = "X$element"; then
20267 haveit=yes
20268 break
20269 fi
20270 done
20271 if test -z "$haveit"; then
20272 LIBS="${LIBS}${LIBS:+ }$element"
20273 fi
20274 done
20275
20276
20277 CY_EXECUTE=1
20278
20279
20280
20281 else
20282
20283 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20284
20285 pkg_failed=no
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20287 $as_echo_n "checking for WEBKIT... " >&6; }
20288
20289 if test -n "$WEBKIT_CFLAGS"; then
20290 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20291 elif test -n "$PKG_CONFIG"; then
20292 if test -n "$PKG_CONFIG" && \
20293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20294 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20295 ac_status=$?
20296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20297 test $ac_status = 0; }; then
20298 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20299 test "x$?" != "x0" && pkg_failed=yes
20300 else
20301 pkg_failed=yes
20302 fi
20303 else
20304 pkg_failed=untried
20305 fi
20306 if test -n "$WEBKIT_LIBS"; then
20307 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20308 elif test -n "$PKG_CONFIG"; then
20309 if test -n "$PKG_CONFIG" && \
20310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20311 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20312 ac_status=$?
20313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20314 test $ac_status = 0; }; then
20315 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20316 test "x$?" != "x0" && pkg_failed=yes
20317 else
20318 pkg_failed=yes
20319 fi
20320 else
20321 pkg_failed=untried
20322 fi
20323
20324
20325
20326 if test $pkg_failed = yes; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20328 $as_echo "no" >&6; }
20329
20330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20331 _pkg_short_errors_supported=yes
20332 else
20333 _pkg_short_errors_supported=no
20334 fi
20335 if test $_pkg_short_errors_supported = yes; then
20336 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20337 else
20338 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20339 fi
20340 # Put the nasty error message in config.log where it belongs
20341 echo "$WEBKIT_PKG_ERRORS" >&5
20342
20343 :
20344 elif test $pkg_failed = untried; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346 $as_echo "no" >&6; }
20347 :
20348 else
20349 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20350 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20352 $as_echo "yes" >&6; }
20353
20354 CY_EXECUTE=1
20355
20356
20357 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20358 haveit=
20359 for x in $CPPFLAGS; do
20360
20361 acl_save_prefix="$prefix"
20362 prefix="$acl_final_prefix"
20363 acl_save_exec_prefix="$exec_prefix"
20364 exec_prefix="$acl_final_exec_prefix"
20365 eval x=\"$x\"
20366 exec_prefix="$acl_save_exec_prefix"
20367 prefix="$acl_save_prefix"
20368
20369 if test "X$x" = "X$element"; then
20370 haveit=yes
20371 break
20372 fi
20373 done
20374 if test -z "$haveit"; then
20375 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20376 fi
20377 done
20378
20379
20380 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20381 haveit=
20382 for x in $LIBS; do
20383
20384 acl_save_prefix="$prefix"
20385 prefix="$acl_final_prefix"
20386 acl_save_exec_prefix="$exec_prefix"
20387 exec_prefix="$acl_final_exec_prefix"
20388 eval x=\"$x\"
20389 exec_prefix="$acl_save_exec_prefix"
20390 prefix="$acl_save_prefix"
20391
20392 if test "X$x" = "X$element"; then
20393 haveit=yes
20394 break
20395 fi
20396 done
20397 if test -z "$haveit"; then
20398 LIBS="${LIBS}${LIBS:+ }$element"
20399 fi
20400 done
20401
20402
20403 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20404 done
20405
20406 fi
20407 fi
20408
20409 LTJAVASCRIPTCORE=$LIBS
20410 LIBS=$cy_save
20411
20412
20413
20414 fi
20415
20416
20417 # Check whether --enable-console was given.
20418 if test "${enable_console+set}" = set; then :
20419 enableval=$enable_console;
20420 fi
20421
20422 if test "x$enable_console" != "xno"; then
20423 CY_CONSOLE_TRUE=
20424 CY_CONSOLE_FALSE='#'
20425 else
20426 CY_CONSOLE_TRUE='#'
20427 CY_CONSOLE_FALSE=
20428 fi
20429
20430
20431 # Check whether --enable-attach was given.
20432 if test "${enable_attach+set}" = set; then :
20433 enableval=$enable_attach;
20434 fi
20435
20436 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20437 CY_ATTACH_TRUE=
20438 CY_ATTACH_FALSE='#'
20439 else
20440 CY_ATTACH_TRUE='#'
20441 CY_ATTACH_FALSE=
20442 fi
20443
20444
20445
20446
20447 if test "x$CY_EXECUTE" = x1; then
20448 CY_EXECUTE_TRUE=
20449 CY_EXECUTE_FALSE='#'
20450 else
20451 CY_EXECUTE_TRUE='#'
20452 CY_EXECUTE_FALSE=
20453 fi
20454
20455
20456
20457 case $CY_EXECUTE in #(
20458 1) :
20459
20460 for ac_header in ffi.h ffi/ffi.h
20461 do :
20462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20463 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20465 cat >>confdefs.h <<_ACEOF
20466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20467 _ACEOF
20468 break
20469 fi
20470
20471 done
20472
20473
20474
20475 cy_save=$LIBS
20476 LIBS=
20477 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
20478
20479
20480 LIBFFI_CFLAGS
20481 C compiler flags for LIBFFI, overriding pkg-config
20482 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
20483
20484 pkg_failed=no
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20486 $as_echo_n "checking for LIBFFI... " >&6; }
20487
20488 if test -n "$LIBFFI_CFLAGS"; then
20489 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20490 elif test -n "$PKG_CONFIG"; then
20491 if test -n "$PKG_CONFIG" && \
20492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20493 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20494 ac_status=$?
20495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20496 test $ac_status = 0; }; then
20497 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20498 test "x$?" != "x0" && pkg_failed=yes
20499 else
20500 pkg_failed=yes
20501 fi
20502 else
20503 pkg_failed=untried
20504 fi
20505 if test -n "$LIBFFI_LIBS"; then
20506 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20507 elif test -n "$PKG_CONFIG"; then
20508 if test -n "$PKG_CONFIG" && \
20509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20510 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20511 ac_status=$?
20512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20513 test $ac_status = 0; }; then
20514 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20515 test "x$?" != "x0" && pkg_failed=yes
20516 else
20517 pkg_failed=yes
20518 fi
20519 else
20520 pkg_failed=untried
20521 fi
20522
20523
20524
20525 if test $pkg_failed = yes; then
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20527 $as_echo "no" >&6; }
20528
20529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20530 _pkg_short_errors_supported=yes
20531 else
20532 _pkg_short_errors_supported=no
20533 fi
20534 if test $_pkg_short_errors_supported = yes; then
20535 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20536 else
20537 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20538 fi
20539 # Put the nasty error message in config.log where it belongs
20540 echo "$LIBFFI_PKG_ERRORS" >&5
20541
20542 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20543 elif test $pkg_failed = untried; then
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545 $as_echo "no" >&6; }
20546 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20547 else
20548 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20549 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20551 $as_echo "yes" >&6; }
20552
20553
20554 for element in `$PKG_CONFIG --cflags libffi`; do
20555 haveit=
20556 for x in $CPPFLAGS; do
20557
20558 acl_save_prefix="$prefix"
20559 prefix="$acl_final_prefix"
20560 acl_save_exec_prefix="$exec_prefix"
20561 exec_prefix="$acl_final_exec_prefix"
20562 eval x=\"$x\"
20563 exec_prefix="$acl_save_exec_prefix"
20564 prefix="$acl_save_prefix"
20565
20566 if test "X$x" = "X$element"; then
20567 haveit=yes
20568 break
20569 fi
20570 done
20571 if test -z "$haveit"; then
20572 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20573 fi
20574 done
20575
20576
20577 for element in `$PKG_CONFIG --libs libffi`; do
20578 haveit=
20579 for x in $LIBS; do
20580
20581 acl_save_prefix="$prefix"
20582 prefix="$acl_final_prefix"
20583 acl_save_exec_prefix="$exec_prefix"
20584 exec_prefix="$acl_final_exec_prefix"
20585 eval x=\"$x\"
20586 exec_prefix="$acl_save_exec_prefix"
20587 prefix="$acl_save_prefix"
20588
20589 if test "X$x" = "X$element"; then
20590 haveit=yes
20591 break
20592 fi
20593 done
20594 if test -z "$haveit"; then
20595 LIBS="${LIBS}${LIBS:+ }$element"
20596 fi
20597 done
20598
20599
20600 fi
20601
20602 else
20603
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20605 $as_echo_n "checking for library containing ffi_call... " >&6; }
20606 if ${ac_cv_search_ffi_call+:} false; then :
20607 $as_echo_n "(cached) " >&6
20608 else
20609 ac_func_search_save_LIBS=$LIBS
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20612
20613 /* Override any GCC internal prototype to avoid an error.
20614 Use char because int might match the return type of a GCC
20615 builtin and then its argument prototype would still apply. */
20616 #ifdef __cplusplus
20617 extern "C"
20618 #endif
20619 char ffi_call ();
20620 int
20621 main ()
20622 {
20623 return ffi_call ();
20624 ;
20625 return 0;
20626 }
20627 _ACEOF
20628 for ac_lib in '' ffi; do
20629 if test -z "$ac_lib"; then
20630 ac_res="none required"
20631 else
20632 ac_res=-l$ac_lib
20633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20634 fi
20635 if ac_fn_cxx_try_link "$LINENO"; then :
20636 ac_cv_search_ffi_call=$ac_res
20637 fi
20638 rm -f core conftest.err conftest.$ac_objext \
20639 conftest$ac_exeext
20640 if ${ac_cv_search_ffi_call+:} false; then :
20641 break
20642 fi
20643 done
20644 if ${ac_cv_search_ffi_call+:} false; then :
20645
20646 else
20647 ac_cv_search_ffi_call=no
20648 fi
20649 rm conftest.$ac_ext
20650 LIBS=$ac_func_search_save_LIBS
20651 fi
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20653 $as_echo "$ac_cv_search_ffi_call" >&6; }
20654 ac_res=$ac_cv_search_ffi_call
20655 if test "$ac_res" != no; then :
20656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20657
20658 fi
20659
20660 case $ac_cv_search_ffi_call in #(
20661 no) :
20662
20663
20664 pkg_failed=no
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20666 $as_echo_n "checking for LIBFFI... " >&6; }
20667
20668 if test -n "$LIBFFI_CFLAGS"; then
20669 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20670 elif test -n "$PKG_CONFIG"; then
20671 if test -n "$PKG_CONFIG" && \
20672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20673 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20674 ac_status=$?
20675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20676 test $ac_status = 0; }; then
20677 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20678 test "x$?" != "x0" && pkg_failed=yes
20679 else
20680 pkg_failed=yes
20681 fi
20682 else
20683 pkg_failed=untried
20684 fi
20685 if test -n "$LIBFFI_LIBS"; then
20686 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20687 elif test -n "$PKG_CONFIG"; then
20688 if test -n "$PKG_CONFIG" && \
20689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20690 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20691 ac_status=$?
20692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693 test $ac_status = 0; }; then
20694 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20695 test "x$?" != "x0" && pkg_failed=yes
20696 else
20697 pkg_failed=yes
20698 fi
20699 else
20700 pkg_failed=untried
20701 fi
20702
20703
20704
20705 if test $pkg_failed = yes; then
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 $as_echo "no" >&6; }
20708
20709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20710 _pkg_short_errors_supported=yes
20711 else
20712 _pkg_short_errors_supported=no
20713 fi
20714 if test $_pkg_short_errors_supported = yes; then
20715 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20716 else
20717 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20718 fi
20719 # Put the nasty error message in config.log where it belongs
20720 echo "$LIBFFI_PKG_ERRORS" >&5
20721
20722 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20723 elif test $pkg_failed = untried; then
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20726 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20727 else
20728 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20729 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20731 $as_echo "yes" >&6; }
20732
20733
20734 for element in `$PKG_CONFIG --cflags libffi`; do
20735 haveit=
20736 for x in $CPPFLAGS; do
20737
20738 acl_save_prefix="$prefix"
20739 prefix="$acl_final_prefix"
20740 acl_save_exec_prefix="$exec_prefix"
20741 exec_prefix="$acl_final_exec_prefix"
20742 eval x=\"$x\"
20743 exec_prefix="$acl_save_exec_prefix"
20744 prefix="$acl_save_prefix"
20745
20746 if test "X$x" = "X$element"; then
20747 haveit=yes
20748 break
20749 fi
20750 done
20751 if test -z "$haveit"; then
20752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20753 fi
20754 done
20755
20756
20757 for element in `$PKG_CONFIG --libs libffi`; do
20758 haveit=
20759 for x in $LIBS; do
20760
20761 acl_save_prefix="$prefix"
20762 prefix="$acl_final_prefix"
20763 acl_save_exec_prefix="$exec_prefix"
20764 exec_prefix="$acl_final_exec_prefix"
20765 eval x=\"$x\"
20766 exec_prefix="$acl_save_exec_prefix"
20767 prefix="$acl_save_prefix"
20768
20769 if test "X$x" = "X$element"; then
20770 haveit=yes
20771 break
20772 fi
20773 done
20774 if test -z "$haveit"; then
20775 LIBS="${LIBS}${LIBS:+ }$element"
20776 fi
20777 done
20778
20779
20780 fi ;; #(
20781 *) :
20782 ;;
20783 esac
20784
20785 fi
20786 LTLIBFFI=$LIBS
20787 LIBS=$cy_save
20788
20789
20790
20791 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20792 if test "x$ac_cv_header_jni_h" = xyes; then :
20793
20794 CY_JAVA=1
20795
20796
20797 cy_save=$LIBS
20798 LIBS=
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20800 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20801 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20802 $as_echo_n "(cached) " >&6
20803 else
20804 ac_func_search_save_LIBS=$LIBS
20805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806 /* end confdefs.h. */
20807
20808 /* Override any GCC internal prototype to avoid an error.
20809 Use char because int might match the return type of a GCC
20810 builtin and then its argument prototype would still apply. */
20811 #ifdef __cplusplus
20812 extern "C"
20813 #endif
20814 char JNI_GetCreatedJavaVMs ();
20815 int
20816 main ()
20817 {
20818 return JNI_GetCreatedJavaVMs ();
20819 ;
20820 return 0;
20821 }
20822 _ACEOF
20823 for ac_lib in '' dvm; do
20824 if test -z "$ac_lib"; then
20825 ac_res="none required"
20826 else
20827 ac_res=-l$ac_lib
20828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20829 fi
20830 if ac_fn_cxx_try_link "$LINENO"; then :
20831 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20832 fi
20833 rm -f core conftest.err conftest.$ac_objext \
20834 conftest$ac_exeext
20835 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20836 break
20837 fi
20838 done
20839 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20840
20841 else
20842 ac_cv_search_JNI_GetCreatedJavaVMs=no
20843 fi
20844 rm conftest.$ac_ext
20845 LIBS=$ac_func_search_save_LIBS
20846 fi
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20848 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20849 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20850 if test "$ac_res" != no; then :
20851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20852
20853
20854 fi
20855
20856 LTJAVA=$LIBS
20857 LIBS=$cy_save
20858
20859
20860
20861 else
20862
20863 CY_JAVA=0
20864
20865
20866 fi
20867
20868
20869
20870 ac_ext=mm
20871 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20872 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20873 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20874 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20875
20876
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20878 $as_echo_n "checking if we really have Objective C++... " >&6; }
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20881
20882 _ACEOF
20883 if ac_fn_objcxx_try_compile "$LINENO"; then :
20884
20885 CY_OBJECTIVEC=1
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20887 $as_echo "yes" >&6; }
20888
20889 else
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20892 fi
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894
20895 if test "x$CY_OBJECTIVEC" = x1; then :
20896
20897
20898 cy_save=$LIBS
20899 LIBS=
20900
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20902 $as_echo_n "checking for framework CoreFoundation... " >&6; }
20903 if ${ac_cv_framework_CoreFoundation+:} false; then :
20904 $as_echo_n "(cached) " >&6
20905 else
20906
20907 ac_check_framework_save_LIBS=$LIBS
20908 LIBS="-framework CoreFoundation $LIBS"
20909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20911
20912 #include <CoreFoundation/CFBase.h>
20913
20914 int
20915 main ()
20916 {
20917 CFAllocatorGetDefault();
20918 ;
20919 return 0;
20920 }
20921 _ACEOF
20922 if ac_fn_objcxx_try_link "$LINENO"; then :
20923
20924 ac_cv_framework_CoreFoundation=yes
20925
20926 else
20927 ac_cv_framework_CoreFoundation=no
20928 fi
20929 rm -f core conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
20931 LIBS=$ac_check_framework_save_LIBS
20932
20933 fi
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20935 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20936 if test $ac_cv_framework_CoreFoundation = yes; then :
20937
20938
20939 for element in "-framework CoreFoundation"; do
20940 haveit=
20941 for x in $LIBS; do
20942
20943 acl_save_prefix="$prefix"
20944 prefix="$acl_final_prefix"
20945 acl_save_exec_prefix="$exec_prefix"
20946 exec_prefix="$acl_final_exec_prefix"
20947 eval x=\"$x\"
20948 exec_prefix="$acl_save_exec_prefix"
20949 prefix="$acl_save_prefix"
20950
20951 if test "X$x" = "X$element"; then
20952 haveit=yes
20953 break
20954 fi
20955 done
20956 if test -z "$haveit"; then
20957 LIBS="${LIBS}${LIBS:+ }$element"
20958 fi
20959 done
20960
20961
20962
20963
20964
20965
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20967 $as_echo_n "checking for framework Foundation... " >&6; }
20968 if ${ac_cv_framework_Foundation+:} false; then :
20969 $as_echo_n "(cached) " >&6
20970 else
20971
20972 ac_check_framework_save_LIBS=$LIBS
20973 LIBS="-framework Foundation $LIBS"
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20976
20977 #include <Foundation/NSObject.h>
20978
20979 int
20980 main ()
20981 {
20982 [[NSObject alloc] init];
20983 ;
20984 return 0;
20985 }
20986 _ACEOF
20987 if ac_fn_objcxx_try_link "$LINENO"; then :
20988
20989 ac_cv_framework_Foundation=yes
20990
20991 else
20992 ac_cv_framework_Foundation=no
20993 fi
20994 rm -f core conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext
20996 LIBS=$ac_check_framework_save_LIBS
20997
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21000 $as_echo "$ac_cv_framework_Foundation" >&6; }
21001 if test $ac_cv_framework_Foundation = yes; then :
21002
21003
21004 for element in "-framework Foundation"; do
21005 haveit=
21006 for x in $LIBS; do
21007
21008 acl_save_prefix="$prefix"
21009 prefix="$acl_final_prefix"
21010 acl_save_exec_prefix="$exec_prefix"
21011 exec_prefix="$acl_final_exec_prefix"
21012 eval x=\"$x\"
21013 exec_prefix="$acl_save_exec_prefix"
21014 prefix="$acl_save_prefix"
21015
21016 if test "X$x" = "X$element"; then
21017 haveit=yes
21018 break
21019 fi
21020 done
21021 if test -z "$haveit"; then
21022 LIBS="${LIBS}${LIBS:+ }$element"
21023 fi
21024 done
21025
21026 cat >>confdefs.h <<_ACEOF
21027 #define HAVE_FRAMEWORK_FOUNDATION 1
21028 _ACEOF
21029
21030
21031 fi
21032
21033
21034 else
21035
21036
21037 for ac_prog in gnustep-config
21038 do
21039 # Extract the first word of "$ac_prog", so it can be a program name with args.
21040 set dummy $ac_prog; ac_word=$2
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21042 $as_echo_n "checking for $ac_word... " >&6; }
21043 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21044 $as_echo_n "(cached) " >&6
21045 else
21046 if test -n "$GNUSTEP_CONFIG"; then
21047 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
21048 else
21049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21050 for as_dir in $PATH
21051 do
21052 IFS=$as_save_IFS
21053 test -z "$as_dir" && as_dir=.
21054 for ac_exec_ext in '' $ac_executable_extensions; do
21055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21056 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21058 break 2
21059 fi
21060 done
21061 done
21062 IFS=$as_save_IFS
21063
21064 fi
21065 fi
21066 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21067 if test -n "$GNUSTEP_CONFIG"; then
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21069 $as_echo "$GNUSTEP_CONFIG" >&6; }
21070 else
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21072 $as_echo "no" >&6; }
21073 fi
21074
21075
21076 test -n "$GNUSTEP_CONFIG" && break
21077 done
21078
21079
21080 if test "x$GNUSTEP_CONFIG" != x; then :
21081
21082
21083
21084 for element in `$GNUSTEP_CONFIG --objc-flags`; do
21085 haveit=
21086 for x in $OBJCXXFLAGS; do
21087
21088 acl_save_prefix="$prefix"
21089 prefix="$acl_final_prefix"
21090 acl_save_exec_prefix="$exec_prefix"
21091 exec_prefix="$acl_final_exec_prefix"
21092 eval x=\"$x\"
21093 exec_prefix="$acl_save_exec_prefix"
21094 prefix="$acl_save_prefix"
21095
21096 if test "X$x" = "X$element"; then
21097 haveit=yes
21098 break
21099 fi
21100 done
21101 if test -z "$haveit"; then
21102 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21103 fi
21104 done
21105
21106
21107 for element in `$GNUSTEP_CONFIG --base-libs`; do
21108 haveit=
21109 for x in $LIBS; do
21110
21111 acl_save_prefix="$prefix"
21112 prefix="$acl_final_prefix"
21113 acl_save_exec_prefix="$exec_prefix"
21114 exec_prefix="$acl_final_exec_prefix"
21115 eval x=\"$x\"
21116 exec_prefix="$acl_save_exec_prefix"
21117 prefix="$acl_save_prefix"
21118
21119 if test "X$x" = "X$element"; then
21120 haveit=yes
21121 break
21122 fi
21123 done
21124 if test -z "$haveit"; then
21125 LIBS="${LIBS}${LIBS:+ }$element"
21126 fi
21127 done
21128
21129
21130 else
21131 CY_OBJECTIVEC=0
21132
21133 fi
21134
21135 fi
21136 LTOBJECTIVEC=$LIBS
21137 LIBS=$cy_save
21138
21139
21140
21141 fi
21142
21143 ac_ext=cpp
21144 ac_cpp='$CXXCPP $CPPFLAGS'
21145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21148
21149 ;; #(
21150 *) :
21151 ;;
21152 esac
21153
21154 if test "x$CY_JAVA" = x1; then
21155 CY_JAVA_TRUE=
21156 CY_JAVA_FALSE='#'
21157 else
21158 CY_JAVA_TRUE='#'
21159 CY_JAVA_FALSE=
21160 fi
21161
21162 if test "x$CY_OBJECTIVEC" = x1; then
21163 CY_OBJECTIVEC_TRUE=
21164 CY_OBJECTIVEC_FALSE='#'
21165 else
21166 CY_OBJECTIVEC_TRUE='#'
21167 CY_OBJECTIVEC_FALSE=
21168 fi
21169
21170
21171
21172 cy_save=$LIBS
21173 LIBS=
21174
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21176 $as_echo_n "checking for a readline compatible library... " >&6; }
21177 if ${ax_cv_lib_readline+:} false; then :
21178 $as_echo_n "(cached) " >&6
21179 else
21180
21181 ORIG_LIBS="$LIBS"
21182 for readline_lib in readline edit editline; do
21183 for termcap_lib in "" termcap curses ncurses; do
21184 if test -z "$termcap_lib"; then
21185 TRY_LIB="-l$readline_lib"
21186 else
21187 TRY_LIB="-l$readline_lib -l$termcap_lib"
21188 fi
21189 LIBS="$ORIG_LIBS $TRY_LIB"
21190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h. */
21192
21193 /* Override any GCC internal prototype to avoid an error.
21194 Use char because int might match the return type of a GCC
21195 builtin and then its argument prototype would still apply. */
21196 #ifdef __cplusplus
21197 extern "C"
21198 #endif
21199 char readline ();
21200 int
21201 main ()
21202 {
21203 return readline ();
21204 ;
21205 return 0;
21206 }
21207 _ACEOF
21208 if ac_fn_cxx_try_link "$LINENO"; then :
21209 ax_cv_lib_readline="$TRY_LIB"
21210 fi
21211 rm -f core conftest.err conftest.$ac_objext \
21212 conftest$ac_exeext conftest.$ac_ext
21213 if test -n "$ax_cv_lib_readline"; then
21214 break
21215 fi
21216 done
21217 if test -n "$ax_cv_lib_readline"; then
21218 break
21219 fi
21220 done
21221 if test -z "$ax_cv_lib_readline"; then
21222 ax_cv_lib_readline="no"
21223 fi
21224 LIBS="$ORIG_LIBS"
21225
21226 fi
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21228 $as_echo "$ax_cv_lib_readline" >&6; }
21229
21230 if test "$ax_cv_lib_readline" != "no"; then
21231 LIBS="$LIBS $ax_cv_lib_readline"
21232
21233 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21234
21235 for ac_header in readline.h readline/readline.h
21236 do :
21237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21238 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21240 cat >>confdefs.h <<_ACEOF
21241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21242 _ACEOF
21243
21244 fi
21245
21246 done
21247
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21249 $as_echo_n "checking whether readline supports history... " >&6; }
21250 if ${ax_cv_lib_readline_history+:} false; then :
21251 $as_echo_n "(cached) " >&6
21252 else
21253
21254 ax_cv_lib_readline_history="no"
21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256 /* end confdefs.h. */
21257
21258 /* Override any GCC internal prototype to avoid an error.
21259 Use char because int might match the return type of a GCC
21260 builtin and then its argument prototype would still apply. */
21261 #ifdef __cplusplus
21262 extern "C"
21263 #endif
21264 char add_history ();
21265 int
21266 main ()
21267 {
21268 return add_history ();
21269 ;
21270 return 0;
21271 }
21272 _ACEOF
21273 if ac_fn_cxx_try_link "$LINENO"; then :
21274 ax_cv_lib_readline_history="yes"
21275 fi
21276 rm -f core conftest.err conftest.$ac_objext \
21277 conftest$ac_exeext conftest.$ac_ext
21278
21279 fi
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21281 $as_echo "$ax_cv_lib_readline_history" >&6; }
21282 if test "$ax_cv_lib_readline_history" = "yes"; then
21283
21284 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21285
21286 for ac_header in history.h readline/history.h
21287 do :
21288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21289 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21290 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21291 cat >>confdefs.h <<_ACEOF
21292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21293 _ACEOF
21294
21295 fi
21296
21297 done
21298
21299 fi
21300 fi
21301
21302 LTLIBREADLINE=$LIBS
21303 LIBS=$cy_save
21304
21305
21306 case $ax_cv_lib_readline in #(
21307 no) :
21308 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21309 *) :
21310 ;;
21311 esac
21312
21313
21314 cy_save=$LIBS
21315 LIBS=
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21317 $as_echo_n "checking for library containing cur_term... " >&6; }
21318 if ${ac_cv_search_cur_term+:} false; then :
21319 $as_echo_n "(cached) " >&6
21320 else
21321 ac_func_search_save_LIBS=$LIBS
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324
21325 /* Override any GCC internal prototype to avoid an error.
21326 Use char because int might match the return type of a GCC
21327 builtin and then its argument prototype would still apply. */
21328 #ifdef __cplusplus
21329 extern "C"
21330 #endif
21331 char cur_term ();
21332 int
21333 main ()
21334 {
21335 return cur_term ();
21336 ;
21337 return 0;
21338 }
21339 _ACEOF
21340 for ac_lib in '' termcap ncurses; do
21341 if test -z "$ac_lib"; then
21342 ac_res="none required"
21343 else
21344 ac_res=-l$ac_lib
21345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21346 fi
21347 if ac_fn_cxx_try_link "$LINENO"; then :
21348 ac_cv_search_cur_term=$ac_res
21349 fi
21350 rm -f core conftest.err conftest.$ac_objext \
21351 conftest$ac_exeext
21352 if ${ac_cv_search_cur_term+:} false; then :
21353 break
21354 fi
21355 done
21356 if ${ac_cv_search_cur_term+:} false; then :
21357
21358 else
21359 ac_cv_search_cur_term=no
21360 fi
21361 rm conftest.$ac_ext
21362 LIBS=$ac_func_search_save_LIBS
21363 fi
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21365 $as_echo "$ac_cv_search_cur_term" >&6; }
21366 ac_res=$ac_cv_search_cur_term
21367 if test "$ac_res" != no; then :
21368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21369
21370 fi
21371
21372 LTLIBTERMCAP=$LIBS
21373 LIBS=$cy_save
21374
21375
21376
21377
21378
21379
21380 SO=$acl_shlibext
21381
21382
21383 ac_config_files="$ac_config_files Makefile"
21384
21385 cat >confcache <<\_ACEOF
21386 # This file is a shell script that caches the results of configure
21387 # tests run on this system so they can be shared between configure
21388 # scripts and configure runs, see configure's option --config-cache.
21389 # It is not useful on other systems. If it contains results you don't
21390 # want to keep, you may remove or edit it.
21391 #
21392 # config.status only pays attention to the cache file if you give it
21393 # the --recheck option to rerun configure.
21394 #
21395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21397 # following values.
21398
21399 _ACEOF
21400
21401 # The following way of writing the cache mishandles newlines in values,
21402 # but we know of no workaround that is simple, portable, and efficient.
21403 # So, we kill variables containing newlines.
21404 # Ultrix sh set writes to stderr and can't be redirected directly,
21405 # and sets the high bit in the cache file unless we assign to the vars.
21406 (
21407 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21408 eval ac_val=\$$ac_var
21409 case $ac_val in #(
21410 *${as_nl}*)
21411 case $ac_var in #(
21412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21414 esac
21415 case $ac_var in #(
21416 _ | IFS | as_nl) ;; #(
21417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21418 *) { eval $ac_var=; unset $ac_var;} ;;
21419 esac ;;
21420 esac
21421 done
21422
21423 (set) 2>&1 |
21424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21425 *${as_nl}ac_space=\ *)
21426 # `set' does not quote correctly, so add quotes: double-quote
21427 # substitution turns \\\\ into \\, and sed turns \\ into \.
21428 sed -n \
21429 "s/'/'\\\\''/g;
21430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21431 ;; #(
21432 *)
21433 # `set' quotes correctly as required by POSIX, so do not add quotes.
21434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21435 ;;
21436 esac |
21437 sort
21438 ) |
21439 sed '
21440 /^ac_cv_env_/b end
21441 t clear
21442 :clear
21443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21444 t end
21445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21446 :end' >>confcache
21447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21448 if test -w "$cache_file"; then
21449 if test "x$cache_file" != "x/dev/null"; then
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21451 $as_echo "$as_me: updating cache $cache_file" >&6;}
21452 if test ! -f "$cache_file" || test -h "$cache_file"; then
21453 cat confcache >"$cache_file"
21454 else
21455 case $cache_file in #(
21456 */* | ?:*)
21457 mv -f confcache "$cache_file"$$ &&
21458 mv -f "$cache_file"$$ "$cache_file" ;; #(
21459 *)
21460 mv -f confcache "$cache_file" ;;
21461 esac
21462 fi
21463 fi
21464 else
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21466 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21467 fi
21468 fi
21469 rm -f confcache
21470
21471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21472 # Let make expand exec_prefix.
21473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21474
21475 DEFS=-DHAVE_CONFIG_H
21476
21477 ac_libobjs=
21478 ac_ltlibobjs=
21479 U=
21480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21481 # 1. Remove the extension, and $U if already installed.
21482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21485 # will be set to the directory where LIBOBJS objects are built.
21486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21488 done
21489 LIBOBJS=$ac_libobjs
21490
21491 LTLIBOBJS=$ac_ltlibobjs
21492
21493
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21495 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21496 if test -n "$am_sleep_pid"; then
21497 # Hide warnings about reused PIDs.
21498 wait $am_sleep_pid 2>/dev/null
21499 fi
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21501 $as_echo "done" >&6; }
21502 if test -n "$EXEEXT"; then
21503 am__EXEEXT_TRUE=
21504 am__EXEEXT_FALSE='#'
21505 else
21506 am__EXEEXT_TRUE='#'
21507 am__EXEEXT_FALSE=
21508 fi
21509
21510 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21511 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21513 fi
21514 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21515 as_fn_error $? "conditional \"AMDEP\" was never defined.
21516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21517 fi
21518 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21519 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21521 fi
21522 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21523 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21525 fi
21526 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21527 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21529 fi
21530 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21531 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
21532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21533 fi
21534 if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
21535 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
21536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21537 fi
21538 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21539 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21541 fi
21542 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21543 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21545 fi
21546 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21547 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21549 fi
21550
21551 : "${CONFIG_STATUS=./config.status}"
21552 ac_write_fail=0
21553 ac_clean_files_save=$ac_clean_files
21554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21556 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21557 as_write_fail=0
21558 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21559 #! $SHELL
21560 # Generated by $as_me.
21561 # Run this file to recreate the current configuration.
21562 # Compiler output produced by configure, useful for debugging
21563 # configure, is in config.log if it exists.
21564
21565 debug=false
21566 ac_cs_recheck=false
21567 ac_cs_silent=false
21568
21569 SHELL=\${CONFIG_SHELL-$SHELL}
21570 export SHELL
21571 _ASEOF
21572 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21573 ## -------------------- ##
21574 ## M4sh Initialization. ##
21575 ## -------------------- ##
21576
21577 # Be more Bourne compatible
21578 DUALCASE=1; export DUALCASE # for MKS sh
21579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21580 emulate sh
21581 NULLCMD=:
21582 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21583 # is contrary to our usage. Disable this feature.
21584 alias -g '${1+"$@"}'='"$@"'
21585 setopt NO_GLOB_SUBST
21586 else
21587 case `(set -o) 2>/dev/null` in #(
21588 *posix*) :
21589 set -o posix ;; #(
21590 *) :
21591 ;;
21592 esac
21593 fi
21594
21595
21596 as_nl='
21597 '
21598 export as_nl
21599 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21600 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21603 # Prefer a ksh shell builtin over an external printf program on Solaris,
21604 # but without wasting forks for bash or zsh.
21605 if test -z "$BASH_VERSION$ZSH_VERSION" \
21606 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21607 as_echo='print -r --'
21608 as_echo_n='print -rn --'
21609 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21610 as_echo='printf %s\n'
21611 as_echo_n='printf %s'
21612 else
21613 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21614 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21615 as_echo_n='/usr/ucb/echo -n'
21616 else
21617 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21618 as_echo_n_body='eval
21619 arg=$1;
21620 case $arg in #(
21621 *"$as_nl"*)
21622 expr "X$arg" : "X\\(.*\\)$as_nl";
21623 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21624 esac;
21625 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21626 '
21627 export as_echo_n_body
21628 as_echo_n='sh -c $as_echo_n_body as_echo'
21629 fi
21630 export as_echo_body
21631 as_echo='sh -c $as_echo_body as_echo'
21632 fi
21633
21634 # The user is always right.
21635 if test "${PATH_SEPARATOR+set}" != set; then
21636 PATH_SEPARATOR=:
21637 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21638 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21639 PATH_SEPARATOR=';'
21640 }
21641 fi
21642
21643
21644 # IFS
21645 # We need space, tab and new line, in precisely that order. Quoting is
21646 # there to prevent editors from complaining about space-tab.
21647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21648 # splitting by setting IFS to empty value.)
21649 IFS=" "" $as_nl"
21650
21651 # Find who we are. Look in the path if we contain no directory separator.
21652 as_myself=
21653 case $0 in #((
21654 *[\\/]* ) as_myself=$0 ;;
21655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21656 for as_dir in $PATH
21657 do
21658 IFS=$as_save_IFS
21659 test -z "$as_dir" && as_dir=.
21660 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21661 done
21662 IFS=$as_save_IFS
21663
21664 ;;
21665 esac
21666 # We did not find ourselves, most probably we were run as `sh COMMAND'
21667 # in which case we are not to be found in the path.
21668 if test "x$as_myself" = x; then
21669 as_myself=$0
21670 fi
21671 if test ! -f "$as_myself"; then
21672 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21673 exit 1
21674 fi
21675
21676 # Unset variables that we do not need and which cause bugs (e.g. in
21677 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21678 # suppresses any "Segmentation fault" message there. '((' could
21679 # trigger a bug in pdksh 5.2.14.
21680 for as_var in BASH_ENV ENV MAIL MAILPATH
21681 do eval test x\${$as_var+set} = xset \
21682 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21683 done
21684 PS1='$ '
21685 PS2='> '
21686 PS4='+ '
21687
21688 # NLS nuisances.
21689 LC_ALL=C
21690 export LC_ALL
21691 LANGUAGE=C
21692 export LANGUAGE
21693
21694 # CDPATH.
21695 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21696
21697
21698 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21699 # ----------------------------------------
21700 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21701 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21702 # script with STATUS, using 1 if that was 0.
21703 as_fn_error ()
21704 {
21705 as_status=$1; test $as_status -eq 0 && as_status=1
21706 if test "$4"; then
21707 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21708 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21709 fi
21710 $as_echo "$as_me: error: $2" >&2
21711 as_fn_exit $as_status
21712 } # as_fn_error
21713
21714
21715 # as_fn_set_status STATUS
21716 # -----------------------
21717 # Set $? to STATUS, without forking.
21718 as_fn_set_status ()
21719 {
21720 return $1
21721 } # as_fn_set_status
21722
21723 # as_fn_exit STATUS
21724 # -----------------
21725 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21726 as_fn_exit ()
21727 {
21728 set +e
21729 as_fn_set_status $1
21730 exit $1
21731 } # as_fn_exit
21732
21733 # as_fn_unset VAR
21734 # ---------------
21735 # Portably unset VAR.
21736 as_fn_unset ()
21737 {
21738 { eval $1=; unset $1;}
21739 }
21740 as_unset=as_fn_unset
21741 # as_fn_append VAR VALUE
21742 # ----------------------
21743 # Append the text in VALUE to the end of the definition contained in VAR. Take
21744 # advantage of any shell optimizations that allow amortized linear growth over
21745 # repeated appends, instead of the typical quadratic growth present in naive
21746 # implementations.
21747 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21748 eval 'as_fn_append ()
21749 {
21750 eval $1+=\$2
21751 }'
21752 else
21753 as_fn_append ()
21754 {
21755 eval $1=\$$1\$2
21756 }
21757 fi # as_fn_append
21758
21759 # as_fn_arith ARG...
21760 # ------------------
21761 # Perform arithmetic evaluation on the ARGs, and store the result in the
21762 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21763 # must be portable across $(()) and expr.
21764 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21765 eval 'as_fn_arith ()
21766 {
21767 as_val=$(( $* ))
21768 }'
21769 else
21770 as_fn_arith ()
21771 {
21772 as_val=`expr "$@" || test $? -eq 1`
21773 }
21774 fi # as_fn_arith
21775
21776
21777 if expr a : '\(a\)' >/dev/null 2>&1 &&
21778 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21779 as_expr=expr
21780 else
21781 as_expr=false
21782 fi
21783
21784 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21785 as_basename=basename
21786 else
21787 as_basename=false
21788 fi
21789
21790 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21791 as_dirname=dirname
21792 else
21793 as_dirname=false
21794 fi
21795
21796 as_me=`$as_basename -- "$0" ||
21797 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21798 X"$0" : 'X\(//\)$' \| \
21799 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21800 $as_echo X/"$0" |
21801 sed '/^.*\/\([^/][^/]*\)\/*$/{
21802 s//\1/
21803 q
21804 }
21805 /^X\/\(\/\/\)$/{
21806 s//\1/
21807 q
21808 }
21809 /^X\/\(\/\).*/{
21810 s//\1/
21811 q
21812 }
21813 s/.*/./; q'`
21814
21815 # Avoid depending upon Character Ranges.
21816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21819 as_cr_digits='0123456789'
21820 as_cr_alnum=$as_cr_Letters$as_cr_digits
21821
21822 ECHO_C= ECHO_N= ECHO_T=
21823 case `echo -n x` in #(((((
21824 -n*)
21825 case `echo 'xy\c'` in
21826 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21827 xy) ECHO_C='\c';;
21828 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21829 ECHO_T=' ';;
21830 esac;;
21831 *)
21832 ECHO_N='-n';;
21833 esac
21834
21835 rm -f conf$$ conf$$.exe conf$$.file
21836 if test -d conf$$.dir; then
21837 rm -f conf$$.dir/conf$$.file
21838 else
21839 rm -f conf$$.dir
21840 mkdir conf$$.dir 2>/dev/null
21841 fi
21842 if (echo >conf$$.file) 2>/dev/null; then
21843 if ln -s conf$$.file conf$$ 2>/dev/null; then
21844 as_ln_s='ln -s'
21845 # ... but there are two gotchas:
21846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21848 # In both cases, we have to default to `cp -pR'.
21849 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21850 as_ln_s='cp -pR'
21851 elif ln conf$$.file conf$$ 2>/dev/null; then
21852 as_ln_s=ln
21853 else
21854 as_ln_s='cp -pR'
21855 fi
21856 else
21857 as_ln_s='cp -pR'
21858 fi
21859 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21860 rmdir conf$$.dir 2>/dev/null
21861
21862
21863 # as_fn_mkdir_p
21864 # -------------
21865 # Create "$as_dir" as a directory, including parents if necessary.
21866 as_fn_mkdir_p ()
21867 {
21868
21869 case $as_dir in #(
21870 -*) as_dir=./$as_dir;;
21871 esac
21872 test -d "$as_dir" || eval $as_mkdir_p || {
21873 as_dirs=
21874 while :; do
21875 case $as_dir in #(
21876 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21877 *) as_qdir=$as_dir;;
21878 esac
21879 as_dirs="'$as_qdir' $as_dirs"
21880 as_dir=`$as_dirname -- "$as_dir" ||
21881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21882 X"$as_dir" : 'X\(//\)[^/]' \| \
21883 X"$as_dir" : 'X\(//\)$' \| \
21884 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21885 $as_echo X"$as_dir" |
21886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21887 s//\1/
21888 q
21889 }
21890 /^X\(\/\/\)[^/].*/{
21891 s//\1/
21892 q
21893 }
21894 /^X\(\/\/\)$/{
21895 s//\1/
21896 q
21897 }
21898 /^X\(\/\).*/{
21899 s//\1/
21900 q
21901 }
21902 s/.*/./; q'`
21903 test -d "$as_dir" && break
21904 done
21905 test -z "$as_dirs" || eval "mkdir $as_dirs"
21906 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21907
21908
21909 } # as_fn_mkdir_p
21910 if mkdir -p . 2>/dev/null; then
21911 as_mkdir_p='mkdir -p "$as_dir"'
21912 else
21913 test -d ./-p && rmdir ./-p
21914 as_mkdir_p=false
21915 fi
21916
21917
21918 # as_fn_executable_p FILE
21919 # -----------------------
21920 # Test if FILE is an executable regular file.
21921 as_fn_executable_p ()
21922 {
21923 test -f "$1" && test -x "$1"
21924 } # as_fn_executable_p
21925 as_test_x='test -x'
21926 as_executable_p=as_fn_executable_p
21927
21928 # Sed expression to map a string onto a valid CPP name.
21929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21930
21931 # Sed expression to map a string onto a valid variable name.
21932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21933
21934
21935 exec 6>&1
21936 ## ----------------------------------- ##
21937 ## Main body of $CONFIG_STATUS script. ##
21938 ## ----------------------------------- ##
21939 _ASEOF
21940 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21941
21942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21943 # Save the log message, to keep $0 and so on meaningful, and to
21944 # report actual input values of CONFIG_FILES etc. instead of their
21945 # values after options handling.
21946 ac_log="
21947 This file was extended by Cycript $as_me 0.9, which was
21948 generated by GNU Autoconf 2.69. Invocation command line was
21949
21950 CONFIG_FILES = $CONFIG_FILES
21951 CONFIG_HEADERS = $CONFIG_HEADERS
21952 CONFIG_LINKS = $CONFIG_LINKS
21953 CONFIG_COMMANDS = $CONFIG_COMMANDS
21954 $ $0 $@
21955
21956 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21957 "
21958
21959 _ACEOF
21960
21961 case $ac_config_files in *"
21962 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21963 esac
21964
21965 case $ac_config_headers in *"
21966 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21967 esac
21968
21969
21970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21971 # Files that config.status was made for.
21972 config_files="$ac_config_files"
21973 config_headers="$ac_config_headers"
21974 config_commands="$ac_config_commands"
21975
21976 _ACEOF
21977
21978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21979 ac_cs_usage="\
21980 \`$as_me' instantiates files and other configuration actions
21981 from templates according to the current configuration. Unless the files
21982 and actions are specified as TAGs, all are instantiated by default.
21983
21984 Usage: $0 [OPTION]... [TAG]...
21985
21986 -h, --help print this help, then exit
21987 -V, --version print version number and configuration settings, then exit
21988 --config print configuration, then exit
21989 -q, --quiet, --silent
21990 do not print progress messages
21991 -d, --debug don't remove temporary files
21992 --recheck update $as_me by reconfiguring in the same conditions
21993 --file=FILE[:TEMPLATE]
21994 instantiate the configuration file FILE
21995 --header=FILE[:TEMPLATE]
21996 instantiate the configuration header FILE
21997
21998 Configuration files:
21999 $config_files
22000
22001 Configuration headers:
22002 $config_headers
22003
22004 Configuration commands:
22005 $config_commands
22006
22007 Report bugs to <saurik@saurik.com>.
22008 Cycript home page: <http://www.cycript.org/>."
22009
22010 _ACEOF
22011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22012 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22013 ac_cs_version="\\
22014 Cycript config.status 0.9
22015 configured by $0, generated by GNU Autoconf 2.69,
22016 with options \\"\$ac_cs_config\\"
22017
22018 Copyright (C) 2012 Free Software Foundation, Inc.
22019 This config.status script is free software; the Free Software Foundation
22020 gives unlimited permission to copy, distribute and modify it."
22021
22022 ac_pwd='$ac_pwd'
22023 srcdir='$srcdir'
22024 INSTALL='$INSTALL'
22025 MKDIR_P='$MKDIR_P'
22026 AWK='$AWK'
22027 test -n "\$AWK" || AWK=awk
22028 _ACEOF
22029
22030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22031 # The default lists apply if the user does not specify any file.
22032 ac_need_defaults=:
22033 while test $# != 0
22034 do
22035 case $1 in
22036 --*=?*)
22037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22038 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22039 ac_shift=:
22040 ;;
22041 --*=)
22042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22043 ac_optarg=
22044 ac_shift=:
22045 ;;
22046 *)
22047 ac_option=$1
22048 ac_optarg=$2
22049 ac_shift=shift
22050 ;;
22051 esac
22052
22053 case $ac_option in
22054 # Handling of the options.
22055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22056 ac_cs_recheck=: ;;
22057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22058 $as_echo "$ac_cs_version"; exit ;;
22059 --config | --confi | --conf | --con | --co | --c )
22060 $as_echo "$ac_cs_config"; exit ;;
22061 --debug | --debu | --deb | --de | --d | -d )
22062 debug=: ;;
22063 --file | --fil | --fi | --f )
22064 $ac_shift
22065 case $ac_optarg in
22066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22067 '') as_fn_error $? "missing file argument" ;;
22068 esac
22069 as_fn_append CONFIG_FILES " '$ac_optarg'"
22070 ac_need_defaults=false;;
22071 --header | --heade | --head | --hea )
22072 $ac_shift
22073 case $ac_optarg in
22074 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22075 esac
22076 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22077 ac_need_defaults=false;;
22078 --he | --h)
22079 # Conflict between --help and --header
22080 as_fn_error $? "ambiguous option: \`$1'
22081 Try \`$0 --help' for more information.";;
22082 --help | --hel | -h )
22083 $as_echo "$ac_cs_usage"; exit ;;
22084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22085 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22086 ac_cs_silent=: ;;
22087
22088 # This is an error.
22089 -*) as_fn_error $? "unrecognized option: \`$1'
22090 Try \`$0 --help' for more information." ;;
22091
22092 *) as_fn_append ac_config_targets " $1"
22093 ac_need_defaults=false ;;
22094
22095 esac
22096 shift
22097 done
22098
22099 ac_configure_extra_args=
22100
22101 if $ac_cs_silent; then
22102 exec 6>/dev/null
22103 ac_configure_extra_args="$ac_configure_extra_args --silent"
22104 fi
22105
22106 _ACEOF
22107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22108 if \$ac_cs_recheck; then
22109 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22110 shift
22111 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22112 CONFIG_SHELL='$SHELL'
22113 export CONFIG_SHELL
22114 exec "\$@"
22115 fi
22116
22117 _ACEOF
22118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22119 exec 5>>config.log
22120 {
22121 echo
22122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22123 ## Running $as_me. ##
22124 _ASBOX
22125 $as_echo "$ac_log"
22126 } >&5
22127
22128 _ACEOF
22129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22130 #
22131 # INIT-COMMANDS
22132 #
22133 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22134
22135
22136 # The HP-UX ksh and POSIX shell print the target directory to stdout
22137 # if CDPATH is set.
22138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22139
22140 sed_quote_subst='$sed_quote_subst'
22141 double_quote_subst='$double_quote_subst'
22142 delay_variable_subst='$delay_variable_subst'
22143 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22144 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22145 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22146 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22147 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22148 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22149 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22150 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22151 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22152 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22153 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22154 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22155 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22156 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22157 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22158 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22159 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22160 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22161 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22162 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22163 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22164 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22165 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22166 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22167 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22168 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22169 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22170 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22171 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22172 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22173 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22174 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22175 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22176 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22177 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22178 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22179 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22180 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22181 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22182 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22183 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22184 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22185 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22186 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22187 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22188 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22189 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22190 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22191 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22192 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22193 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22194 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22195 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22196 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22197 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22198 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22199 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22200 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22201 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"`'
22202 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22203 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22204 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22205 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22206 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22207 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22208 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22209 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22210 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22211 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22212 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22213 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22214 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22215 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22216 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22217 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22218 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22219 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22220 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22221 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22222 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22223 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22224 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22225 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22226 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22227 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22228 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22229 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22230 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22231 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22232 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22233 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22234 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22235 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22236 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22237 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22238 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22239 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22240 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22241 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22242 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22243 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22244 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22245 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22246 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22247 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22248 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22249 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22250 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22251 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22252 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22253 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22254 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22255 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22256 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22257 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22258 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22259 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22260 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22261 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22262 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22263 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22264 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22265 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22266 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22267 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22268 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22269 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22270 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22271 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22272 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22273 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22274 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22275 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22276 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22277 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22278 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22279 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22280 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22281 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22282 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22283 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22284 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22285 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22286 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22287 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22288 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22289 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22290 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22291 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22292 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22293 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22294 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22295 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22296 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22297 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22298 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22299 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22300 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22301 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22302 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22303 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22304 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22305 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22306 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22307 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22308 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22309 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22310 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22311 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22312 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22313 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22314 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22315 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22316 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22317 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22318 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22319 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22320 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22321 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22322 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22323 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22324 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22325 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22326 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22327 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22328 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22329 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22330 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22331 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22332
22333 LTCC='$LTCC'
22334 LTCFLAGS='$LTCFLAGS'
22335 compiler='$compiler_DEFAULT'
22336
22337 # A function that is used when there is no print builtin or printf.
22338 func_fallback_echo ()
22339 {
22340 eval 'cat <<_LTECHO_EOF
22341 \$1
22342 _LTECHO_EOF'
22343 }
22344
22345 # Quote evaled strings.
22346 for var in SHELL \
22347 ECHO \
22348 PATH_SEPARATOR \
22349 SED \
22350 GREP \
22351 EGREP \
22352 FGREP \
22353 LD \
22354 NM \
22355 LN_S \
22356 lt_SP2NL \
22357 lt_NL2SP \
22358 reload_flag \
22359 OBJDUMP \
22360 deplibs_check_method \
22361 file_magic_cmd \
22362 file_magic_glob \
22363 want_nocaseglob \
22364 DLLTOOL \
22365 sharedlib_from_linklib_cmd \
22366 AR \
22367 AR_FLAGS \
22368 archiver_list_spec \
22369 STRIP \
22370 RANLIB \
22371 CC \
22372 CFLAGS \
22373 compiler \
22374 lt_cv_sys_global_symbol_pipe \
22375 lt_cv_sys_global_symbol_to_cdecl \
22376 lt_cv_sys_global_symbol_to_import \
22377 lt_cv_sys_global_symbol_to_c_name_address \
22378 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22379 lt_cv_nm_interface \
22380 nm_file_list_spec \
22381 lt_cv_truncate_bin \
22382 lt_prog_compiler_no_builtin_flag \
22383 lt_prog_compiler_pic \
22384 lt_prog_compiler_wl \
22385 lt_prog_compiler_static \
22386 lt_cv_prog_compiler_c_o \
22387 need_locks \
22388 MANIFEST_TOOL \
22389 DSYMUTIL \
22390 NMEDIT \
22391 LIPO \
22392 OTOOL \
22393 OTOOL64 \
22394 shrext_cmds \
22395 export_dynamic_flag_spec \
22396 whole_archive_flag_spec \
22397 compiler_needs_object \
22398 with_gnu_ld \
22399 allow_undefined_flag \
22400 no_undefined_flag \
22401 hardcode_libdir_flag_spec \
22402 hardcode_libdir_separator \
22403 exclude_expsyms \
22404 include_expsyms \
22405 file_list_spec \
22406 variables_saved_for_relink \
22407 libname_spec \
22408 library_names_spec \
22409 soname_spec \
22410 install_override_mode \
22411 finish_eval \
22412 old_striplib \
22413 striplib \
22414 compiler_lib_search_dirs \
22415 predep_objects \
22416 postdep_objects \
22417 predeps \
22418 postdeps \
22419 compiler_lib_search_path \
22420 LD_CXX \
22421 reload_flag_CXX \
22422 compiler_CXX \
22423 lt_prog_compiler_no_builtin_flag_CXX \
22424 lt_prog_compiler_pic_CXX \
22425 lt_prog_compiler_wl_CXX \
22426 lt_prog_compiler_static_CXX \
22427 lt_cv_prog_compiler_c_o_CXX \
22428 export_dynamic_flag_spec_CXX \
22429 whole_archive_flag_spec_CXX \
22430 compiler_needs_object_CXX \
22431 with_gnu_ld_CXX \
22432 allow_undefined_flag_CXX \
22433 no_undefined_flag_CXX \
22434 hardcode_libdir_flag_spec_CXX \
22435 hardcode_libdir_separator_CXX \
22436 exclude_expsyms_CXX \
22437 include_expsyms_CXX \
22438 file_list_spec_CXX \
22439 compiler_lib_search_dirs_CXX \
22440 predep_objects_CXX \
22441 postdep_objects_CXX \
22442 predeps_CXX \
22443 postdeps_CXX \
22444 compiler_lib_search_path_CXX; do
22445 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22446 *[\\\\\\\`\\"\\\$]*)
22447 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22448 ;;
22449 *)
22450 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22451 ;;
22452 esac
22453 done
22454
22455 # Double-quote double-evaled strings.
22456 for var in reload_cmds \
22457 old_postinstall_cmds \
22458 old_postuninstall_cmds \
22459 old_archive_cmds \
22460 extract_expsyms_cmds \
22461 old_archive_from_new_cmds \
22462 old_archive_from_expsyms_cmds \
22463 archive_cmds \
22464 archive_expsym_cmds \
22465 module_cmds \
22466 module_expsym_cmds \
22467 export_symbols_cmds \
22468 prelink_cmds \
22469 postlink_cmds \
22470 postinstall_cmds \
22471 postuninstall_cmds \
22472 finish_cmds \
22473 sys_lib_search_path_spec \
22474 configure_time_dlsearch_path \
22475 configure_time_lt_sys_library_path \
22476 reload_cmds_CXX \
22477 old_archive_cmds_CXX \
22478 old_archive_from_new_cmds_CXX \
22479 old_archive_from_expsyms_cmds_CXX \
22480 archive_cmds_CXX \
22481 archive_expsym_cmds_CXX \
22482 module_cmds_CXX \
22483 module_expsym_cmds_CXX \
22484 export_symbols_cmds_CXX \
22485 prelink_cmds_CXX \
22486 postlink_cmds_CXX; do
22487 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22488 *[\\\\\\\`\\"\\\$]*)
22489 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22490 ;;
22491 *)
22492 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22493 ;;
22494 esac
22495 done
22496
22497 ac_aux_dir='$ac_aux_dir'
22498
22499 # See if we are running on zsh, and set the options that allow our
22500 # commands through without removal of \ escapes INIT.
22501 if test -n "\${ZSH_VERSION+set}"; then
22502 setopt NO_GLOB_SUBST
22503 fi
22504
22505
22506 PACKAGE='$PACKAGE'
22507 VERSION='$VERSION'
22508 RM='$RM'
22509 ofile='$ofile'
22510
22511
22512
22513
22514
22515
22516 _ACEOF
22517
22518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22519
22520 # Handling of arguments.
22521 for ac_config_target in $ac_config_targets
22522 do
22523 case $ac_config_target in
22524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22526 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22527 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22528
22529 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22530 esac
22531 done
22532
22533
22534 # If the user did not use the arguments to specify the items to instantiate,
22535 # then the envvar interface is used. Set only those that are not.
22536 # We use the long form for the default assignment because of an extremely
22537 # bizarre bug on SunOS 4.1.3.
22538 if $ac_need_defaults; then
22539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22542 fi
22543
22544 # Have a temporary directory for convenience. Make it in the build tree
22545 # simply because there is no reason against having it here, and in addition,
22546 # creating and moving files from /tmp can sometimes cause problems.
22547 # Hook for its removal unless debugging.
22548 # Note that there is a small window in which the directory will not be cleaned:
22549 # after its creation but before its name has been assigned to `$tmp'.
22550 $debug ||
22551 {
22552 tmp= ac_tmp=
22553 trap 'exit_status=$?
22554 : "${ac_tmp:=$tmp}"
22555 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22556 ' 0
22557 trap 'as_fn_exit 1' 1 2 13 15
22558 }
22559 # Create a (secure) tmp directory for tmp files.
22560
22561 {
22562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22563 test -d "$tmp"
22564 } ||
22565 {
22566 tmp=./conf$$-$RANDOM
22567 (umask 077 && mkdir "$tmp")
22568 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22569 ac_tmp=$tmp
22570
22571 # Set up the scripts for CONFIG_FILES section.
22572 # No need to generate them if there are no CONFIG_FILES.
22573 # This happens for instance with `./config.status config.h'.
22574 if test -n "$CONFIG_FILES"; then
22575
22576
22577 ac_cr=`echo X | tr X '\015'`
22578 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22579 # But we know of no other shell where ac_cr would be empty at this
22580 # point, so we can use a bashism as a fallback.
22581 if test "x$ac_cr" = x; then
22582 eval ac_cr=\$\'\\r\'
22583 fi
22584 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22586 ac_cs_awk_cr='\\r'
22587 else
22588 ac_cs_awk_cr=$ac_cr
22589 fi
22590
22591 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22592 _ACEOF
22593
22594
22595 {
22596 echo "cat >conf$$subs.awk <<_ACEOF" &&
22597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22598 echo "_ACEOF"
22599 } >conf$$subs.sh ||
22600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22601 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22602 ac_delim='%!_!# '
22603 for ac_last_try in false false false false false :; do
22604 . ./conf$$subs.sh ||
22605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22606
22607 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22608 if test $ac_delim_n = $ac_delim_num; then
22609 break
22610 elif $ac_last_try; then
22611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22612 else
22613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22614 fi
22615 done
22616 rm -f conf$$subs.sh
22617
22618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22619 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22620 _ACEOF
22621 sed -n '
22622 h
22623 s/^/S["/; s/!.*/"]=/
22624 p
22625 g
22626 s/^[^!]*!//
22627 :repl
22628 t repl
22629 s/'"$ac_delim"'$//
22630 t delim
22631 :nl
22632 h
22633 s/\(.\{148\}\)..*/\1/
22634 t more1
22635 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22636 p
22637 n
22638 b repl
22639 :more1
22640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22641 p
22642 g
22643 s/.\{148\}//
22644 t nl
22645 :delim
22646 h
22647 s/\(.\{148\}\)..*/\1/
22648 t more2
22649 s/["\\]/\\&/g; s/^/"/; s/$/"/
22650 p
22651 b
22652 :more2
22653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22654 p
22655 g
22656 s/.\{148\}//
22657 t delim
22658 ' <conf$$subs.awk | sed '
22659 /^[^""]/{
22660 N
22661 s/\n//
22662 }
22663 ' >>$CONFIG_STATUS || ac_write_fail=1
22664 rm -f conf$$subs.awk
22665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22666 _ACAWK
22667 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22668 for (key in S) S_is_set[key] = 1
22669 FS = "\a"
22670
22671 }
22672 {
22673 line = $ 0
22674 nfields = split(line, field, "@")
22675 substed = 0
22676 len = length(field[1])
22677 for (i = 2; i < nfields; i++) {
22678 key = field[i]
22679 keylen = length(key)
22680 if (S_is_set[key]) {
22681 value = S[key]
22682 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22683 len += length(value) + length(field[++i])
22684 substed = 1
22685 } else
22686 len += 1 + keylen
22687 }
22688
22689 print line
22690 }
22691
22692 _ACAWK
22693 _ACEOF
22694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22695 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22696 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22697 else
22698 cat
22699 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22700 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22701 _ACEOF
22702
22703 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22704 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22705 # trailing colons and then remove the whole line if VPATH becomes empty
22706 # (actually we leave an empty line to preserve line numbers).
22707 if test "x$srcdir" = x.; then
22708 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22709 h
22710 s///
22711 s/^/:/
22712 s/[ ]*$/:/
22713 s/:\$(srcdir):/:/g
22714 s/:\${srcdir}:/:/g
22715 s/:@srcdir@:/:/g
22716 s/^:*//
22717 s/:*$//
22718 x
22719 s/\(=[ ]*\).*/\1/
22720 G
22721 s/\n//
22722 s/^[^=]*=[ ]*$//
22723 }'
22724 fi
22725
22726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22727 fi # test -n "$CONFIG_FILES"
22728
22729 # Set up the scripts for CONFIG_HEADERS section.
22730 # No need to generate them if there are no CONFIG_HEADERS.
22731 # This happens for instance with `./config.status Makefile'.
22732 if test -n "$CONFIG_HEADERS"; then
22733 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22734 BEGIN {
22735 _ACEOF
22736
22737 # Transform confdefs.h into an awk script `defines.awk', embedded as
22738 # here-document in config.status, that substitutes the proper values into
22739 # config.h.in to produce config.h.
22740
22741 # Create a delimiter string that does not exist in confdefs.h, to ease
22742 # handling of long lines.
22743 ac_delim='%!_!# '
22744 for ac_last_try in false false :; do
22745 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22746 if test -z "$ac_tt"; then
22747 break
22748 elif $ac_last_try; then
22749 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22750 else
22751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22752 fi
22753 done
22754
22755 # For the awk script, D is an array of macro values keyed by name,
22756 # likewise P contains macro parameters if any. Preserve backslash
22757 # newline sequences.
22758
22759 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22760 sed -n '
22761 s/.\{148\}/&'"$ac_delim"'/g
22762 t rset
22763 :rset
22764 s/^[ ]*#[ ]*define[ ][ ]*/ /
22765 t def
22766 d
22767 :def
22768 s/\\$//
22769 t bsnl
22770 s/["\\]/\\&/g
22771 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22772 D["\1"]=" \3"/p
22773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22774 d
22775 :bsnl
22776 s/["\\]/\\&/g
22777 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22778 D["\1"]=" \3\\\\\\n"\\/p
22779 t cont
22780 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22781 t cont
22782 d
22783 :cont
22784 n
22785 s/.\{148\}/&'"$ac_delim"'/g
22786 t clear
22787 :clear
22788 s/\\$//
22789 t bsnlc
22790 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22791 d
22792 :bsnlc
22793 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22794 b cont
22795 ' <confdefs.h | sed '
22796 s/'"$ac_delim"'/"\\\
22797 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22798
22799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22800 for (key in D) D_is_set[key] = 1
22801 FS = "\a"
22802 }
22803 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22804 line = \$ 0
22805 split(line, arg, " ")
22806 if (arg[1] == "#") {
22807 defundef = arg[2]
22808 mac1 = arg[3]
22809 } else {
22810 defundef = substr(arg[1], 2)
22811 mac1 = arg[2]
22812 }
22813 split(mac1, mac2, "(") #)
22814 macro = mac2[1]
22815 prefix = substr(line, 1, index(line, defundef) - 1)
22816 if (D_is_set[macro]) {
22817 # Preserve the white space surrounding the "#".
22818 print prefix "define", macro P[macro] D[macro]
22819 next
22820 } else {
22821 # Replace #undef with comments. This is necessary, for example,
22822 # in the case of _POSIX_SOURCE, which is predefined and required
22823 # on some systems where configure will not decide to define it.
22824 if (defundef == "undef") {
22825 print "/*", prefix defundef, macro, "*/"
22826 next
22827 }
22828 }
22829 }
22830 { print }
22831 _ACAWK
22832 _ACEOF
22833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22834 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22835 fi # test -n "$CONFIG_HEADERS"
22836
22837
22838 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22839 shift
22840 for ac_tag
22841 do
22842 case $ac_tag in
22843 :[FHLC]) ac_mode=$ac_tag; continue;;
22844 esac
22845 case $ac_mode$ac_tag in
22846 :[FHL]*:*);;
22847 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22848 :[FH]-) ac_tag=-:-;;
22849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22850 esac
22851 ac_save_IFS=$IFS
22852 IFS=:
22853 set x $ac_tag
22854 IFS=$ac_save_IFS
22855 shift
22856 ac_file=$1
22857 shift
22858
22859 case $ac_mode in
22860 :L) ac_source=$1;;
22861 :[FH])
22862 ac_file_inputs=
22863 for ac_f
22864 do
22865 case $ac_f in
22866 -) ac_f="$ac_tmp/stdin";;
22867 *) # Look for the file first in the build tree, then in the source tree
22868 # (if the path is not absolute). The absolute path cannot be DOS-style,
22869 # because $ac_f cannot contain `:'.
22870 test -f "$ac_f" ||
22871 case $ac_f in
22872 [\\/$]*) false;;
22873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22874 esac ||
22875 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22876 esac
22877 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22878 as_fn_append ac_file_inputs " '$ac_f'"
22879 done
22880
22881 # Let's still pretend it is `configure' which instantiates (i.e., don't
22882 # use $as_me), people would be surprised to read:
22883 # /* config.h. Generated by config.status. */
22884 configure_input='Generated from '`
22885 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22886 `' by configure.'
22887 if test x"$ac_file" != x-; then
22888 configure_input="$ac_file. $configure_input"
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22890 $as_echo "$as_me: creating $ac_file" >&6;}
22891 fi
22892 # Neutralize special characters interpreted by sed in replacement strings.
22893 case $configure_input in #(
22894 *\&* | *\|* | *\\* )
22895 ac_sed_conf_input=`$as_echo "$configure_input" |
22896 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22897 *) ac_sed_conf_input=$configure_input;;
22898 esac
22899
22900 case $ac_tag in
22901 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22903 esac
22904 ;;
22905 esac
22906
22907 ac_dir=`$as_dirname -- "$ac_file" ||
22908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22909 X"$ac_file" : 'X\(//\)[^/]' \| \
22910 X"$ac_file" : 'X\(//\)$' \| \
22911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22912 $as_echo X"$ac_file" |
22913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22914 s//\1/
22915 q
22916 }
22917 /^X\(\/\/\)[^/].*/{
22918 s//\1/
22919 q
22920 }
22921 /^X\(\/\/\)$/{
22922 s//\1/
22923 q
22924 }
22925 /^X\(\/\).*/{
22926 s//\1/
22927 q
22928 }
22929 s/.*/./; q'`
22930 as_dir="$ac_dir"; as_fn_mkdir_p
22931 ac_builddir=.
22932
22933 case "$ac_dir" in
22934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22935 *)
22936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22937 # A ".." for each directory in $ac_dir_suffix.
22938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22939 case $ac_top_builddir_sub in
22940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22942 esac ;;
22943 esac
22944 ac_abs_top_builddir=$ac_pwd
22945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22946 # for backward compatibility:
22947 ac_top_builddir=$ac_top_build_prefix
22948
22949 case $srcdir in
22950 .) # We are building in place.
22951 ac_srcdir=.
22952 ac_top_srcdir=$ac_top_builddir_sub
22953 ac_abs_top_srcdir=$ac_pwd ;;
22954 [\\/]* | ?:[\\/]* ) # Absolute name.
22955 ac_srcdir=$srcdir$ac_dir_suffix;
22956 ac_top_srcdir=$srcdir
22957 ac_abs_top_srcdir=$srcdir ;;
22958 *) # Relative name.
22959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22960 ac_top_srcdir=$ac_top_build_prefix$srcdir
22961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22962 esac
22963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22964
22965
22966 case $ac_mode in
22967 :F)
22968 #
22969 # CONFIG_FILE
22970 #
22971
22972 case $INSTALL in
22973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22975 esac
22976 ac_MKDIR_P=$MKDIR_P
22977 case $MKDIR_P in
22978 [\\/$]* | ?:[\\/]* ) ;;
22979 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22980 esac
22981 _ACEOF
22982
22983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22984 # If the template does not know about datarootdir, expand it.
22985 # FIXME: This hack should be removed a few years after 2.60.
22986 ac_datarootdir_hack=; ac_datarootdir_seen=
22987 ac_sed_dataroot='
22988 /datarootdir/ {
22989 p
22990 q
22991 }
22992 /@datadir@/p
22993 /@docdir@/p
22994 /@infodir@/p
22995 /@localedir@/p
22996 /@mandir@/p'
22997 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22998 *datarootdir*) ac_datarootdir_seen=yes;;
22999 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23001 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23002 _ACEOF
23003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23004 ac_datarootdir_hack='
23005 s&@datadir@&$datadir&g
23006 s&@docdir@&$docdir&g
23007 s&@infodir@&$infodir&g
23008 s&@localedir@&$localedir&g
23009 s&@mandir@&$mandir&g
23010 s&\\\${datarootdir}&$datarootdir&g' ;;
23011 esac
23012 _ACEOF
23013
23014 # Neutralize VPATH when `$srcdir' = `.'.
23015 # Shell code in configure.ac might set extrasub.
23016 # FIXME: do we really want to maintain this feature?
23017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23018 ac_sed_extra="$ac_vpsub
23019 $extrasub
23020 _ACEOF
23021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23022 :t
23023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23024 s|@configure_input@|$ac_sed_conf_input|;t t
23025 s&@top_builddir@&$ac_top_builddir_sub&;t t
23026 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23027 s&@srcdir@&$ac_srcdir&;t t
23028 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23029 s&@top_srcdir@&$ac_top_srcdir&;t t
23030 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23031 s&@builddir@&$ac_builddir&;t t
23032 s&@abs_builddir@&$ac_abs_builddir&;t t
23033 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23034 s&@INSTALL@&$ac_INSTALL&;t t
23035 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23036 $ac_datarootdir_hack
23037 "
23038 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23039 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23040
23041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23042 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23044 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23046 which seems to be undefined. Please make sure it is defined" >&5
23047 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23048 which seems to be undefined. Please make sure it is defined" >&2;}
23049
23050 rm -f "$ac_tmp/stdin"
23051 case $ac_file in
23052 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23053 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23054 esac \
23055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23056 ;;
23057 :H)
23058 #
23059 # CONFIG_HEADER
23060 #
23061 if test x"$ac_file" != x-; then
23062 {
23063 $as_echo "/* $configure_input */" \
23064 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23065 } >"$ac_tmp/config.h" \
23066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23067 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23069 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23070 else
23071 rm -f "$ac_file"
23072 mv "$ac_tmp/config.h" "$ac_file" \
23073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23074 fi
23075 else
23076 $as_echo "/* $configure_input */" \
23077 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23078 || as_fn_error $? "could not create -" "$LINENO" 5
23079 fi
23080 # Compute "$ac_file"'s index in $config_headers.
23081 _am_arg="$ac_file"
23082 _am_stamp_count=1
23083 for _am_header in $config_headers :; do
23084 case $_am_header in
23085 $_am_arg | $_am_arg:* )
23086 break ;;
23087 * )
23088 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23089 esac
23090 done
23091 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23092 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23093 X"$_am_arg" : 'X\(//\)[^/]' \| \
23094 X"$_am_arg" : 'X\(//\)$' \| \
23095 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23096 $as_echo X"$_am_arg" |
23097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23098 s//\1/
23099 q
23100 }
23101 /^X\(\/\/\)[^/].*/{
23102 s//\1/
23103 q
23104 }
23105 /^X\(\/\/\)$/{
23106 s//\1/
23107 q
23108 }
23109 /^X\(\/\).*/{
23110 s//\1/
23111 q
23112 }
23113 s/.*/./; q'`/stamp-h$_am_stamp_count
23114 ;;
23115
23116 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23117 $as_echo "$as_me: executing $ac_file commands" >&6;}
23118 ;;
23119 esac
23120
23121
23122 case $ac_file$ac_mode in
23123 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23124 # Older Autoconf quotes --file arguments for eval, but not when files
23125 # are listed without --file. Let's play safe and only enable the eval
23126 # if we detect the quoting.
23127 case $CONFIG_FILES in
23128 *\'*) eval set x "$CONFIG_FILES" ;;
23129 *) set x $CONFIG_FILES ;;
23130 esac
23131 shift
23132 for mf
23133 do
23134 # Strip MF so we end up with the name of the file.
23135 mf=`echo "$mf" | sed -e 's/:.*$//'`
23136 # Check whether this is an Automake generated Makefile or not.
23137 # We used to match only the files named 'Makefile.in', but
23138 # some people rename them; so instead we look at the file content.
23139 # Grep'ing the first line is not enough: some people post-process
23140 # each Makefile.in and add a new line on top of each file to say so.
23141 # Grep'ing the whole file is not good either: AIX grep has a line
23142 # limit of 2048, but all sed's we know have understand at least 4000.
23143 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23144 dirpart=`$as_dirname -- "$mf" ||
23145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23146 X"$mf" : 'X\(//\)[^/]' \| \
23147 X"$mf" : 'X\(//\)$' \| \
23148 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23149 $as_echo X"$mf" |
23150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23151 s//\1/
23152 q
23153 }
23154 /^X\(\/\/\)[^/].*/{
23155 s//\1/
23156 q
23157 }
23158 /^X\(\/\/\)$/{
23159 s//\1/
23160 q
23161 }
23162 /^X\(\/\).*/{
23163 s//\1/
23164 q
23165 }
23166 s/.*/./; q'`
23167 else
23168 continue
23169 fi
23170 # Extract the definition of DEPDIR, am__include, and am__quote
23171 # from the Makefile without running 'make'.
23172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23173 test -z "$DEPDIR" && continue
23174 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23175 test -z "$am__include" && continue
23176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23177 # Find all dependency output files, they are included files with
23178 # $(DEPDIR) in their names. We invoke sed twice because it is the
23179 # simplest approach to changing $(DEPDIR) to its actual value in the
23180 # expansion.
23181 for file in `sed -n "
23182 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23183 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23184 # Make sure the directory exists.
23185 test -f "$dirpart/$file" && continue
23186 fdir=`$as_dirname -- "$file" ||
23187 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23188 X"$file" : 'X\(//\)[^/]' \| \
23189 X"$file" : 'X\(//\)$' \| \
23190 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23191 $as_echo X"$file" |
23192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23193 s//\1/
23194 q
23195 }
23196 /^X\(\/\/\)[^/].*/{
23197 s//\1/
23198 q
23199 }
23200 /^X\(\/\/\)$/{
23201 s//\1/
23202 q
23203 }
23204 /^X\(\/\).*/{
23205 s//\1/
23206 q
23207 }
23208 s/.*/./; q'`
23209 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23210 # echo "creating $dirpart/$file"
23211 echo '# dummy' > "$dirpart/$file"
23212 done
23213 done
23214 }
23215 ;;
23216 "libtool":C)
23217
23218 # See if we are running on zsh, and set the options that allow our
23219 # commands through without removal of \ escapes.
23220 if test -n "${ZSH_VERSION+set}"; then
23221 setopt NO_GLOB_SUBST
23222 fi
23223
23224 cfgfile=${ofile}T
23225 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23226 $RM "$cfgfile"
23227
23228 cat <<_LT_EOF >> "$cfgfile"
23229 #! $SHELL
23230 # Generated automatically by $as_me ($PACKAGE) $VERSION
23231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23232 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23233
23234 # Provide generalized library-building support services.
23235 # Written by Gordon Matzigkeit, 1996
23236
23237 # Copyright (C) 2014 Free Software Foundation, Inc.
23238 # This is free software; see the source for copying conditions. There is NO
23239 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23240
23241 # GNU Libtool is free software; you can redistribute it and/or modify
23242 # it under the terms of the GNU General Public License as published by
23243 # the Free Software Foundation; either version 2 of of the License, or
23244 # (at your option) any later version.
23245 #
23246 # As a special exception to the GNU General Public License, if you
23247 # distribute this file as part of a program or library that is built
23248 # using GNU Libtool, you may include this file under the same
23249 # distribution terms that you use for the rest of that program.
23250 #
23251 # GNU Libtool is distributed in the hope that it will be useful, but
23252 # WITHOUT ANY WARRANTY; without even the implied warranty of
23253 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23254 # GNU General Public License for more details.
23255 #
23256 # You should have received a copy of the GNU General Public License
23257 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23258
23259
23260 # The names of the tagged configurations supported by this script.
23261 available_tags='CXX '
23262
23263 # Configured defaults for sys_lib_dlsearch_path munging.
23264 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23265
23266 # ### BEGIN LIBTOOL CONFIG
23267
23268 # Which release of libtool.m4 was used?
23269 macro_version=$macro_version
23270 macro_revision=$macro_revision
23271
23272 # Whether or not to build static libraries.
23273 build_old_libs=$enable_static
23274
23275 # Whether or not to build shared libraries.
23276 build_libtool_libs=$enable_shared
23277
23278 # What type of objects to build.
23279 pic_mode=$pic_mode
23280
23281 # Whether or not to optimize for fast installation.
23282 fast_install=$enable_fast_install
23283
23284 # Shared archive member basename,for filename based shared library versioning on AIX.
23285 shared_archive_member_spec=$shared_archive_member_spec
23286
23287 # Shell to use when invoking shell scripts.
23288 SHELL=$lt_SHELL
23289
23290 # An echo program that protects backslashes.
23291 ECHO=$lt_ECHO
23292
23293 # The PATH separator for the build system.
23294 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23295
23296 # The host system.
23297 host_alias=$host_alias
23298 host=$host
23299 host_os=$host_os
23300
23301 # The build system.
23302 build_alias=$build_alias
23303 build=$build
23304 build_os=$build_os
23305
23306 # A sed program that does not truncate output.
23307 SED=$lt_SED
23308
23309 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23310 Xsed="\$SED -e 1s/^X//"
23311
23312 # A grep program that handles long lines.
23313 GREP=$lt_GREP
23314
23315 # An ERE matcher.
23316 EGREP=$lt_EGREP
23317
23318 # A literal string matcher.
23319 FGREP=$lt_FGREP
23320
23321 # A BSD- or MS-compatible name lister.
23322 NM=$lt_NM
23323
23324 # Whether we need soft or hard links.
23325 LN_S=$lt_LN_S
23326
23327 # What is the maximum length of a command?
23328 max_cmd_len=$max_cmd_len
23329
23330 # Object file suffix (normally "o").
23331 objext=$ac_objext
23332
23333 # Executable file suffix (normally "").
23334 exeext=$exeext
23335
23336 # whether the shell understands "unset".
23337 lt_unset=$lt_unset
23338
23339 # turn spaces into newlines.
23340 SP2NL=$lt_lt_SP2NL
23341
23342 # turn newlines into spaces.
23343 NL2SP=$lt_lt_NL2SP
23344
23345 # convert \$build file names to \$host format.
23346 to_host_file_cmd=$lt_cv_to_host_file_cmd
23347
23348 # convert \$build files to toolchain format.
23349 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23350
23351 # An object symbol dumper.
23352 OBJDUMP=$lt_OBJDUMP
23353
23354 # Method to check whether dependent libraries are shared objects.
23355 deplibs_check_method=$lt_deplibs_check_method
23356
23357 # Command to use when deplibs_check_method = "file_magic".
23358 file_magic_cmd=$lt_file_magic_cmd
23359
23360 # How to find potential files when deplibs_check_method = "file_magic".
23361 file_magic_glob=$lt_file_magic_glob
23362
23363 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23364 want_nocaseglob=$lt_want_nocaseglob
23365
23366 # DLL creation program.
23367 DLLTOOL=$lt_DLLTOOL
23368
23369 # Command to associate shared and link libraries.
23370 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23371
23372 # The archiver.
23373 AR=$lt_AR
23374
23375 # Flags to create an archive.
23376 AR_FLAGS=$lt_AR_FLAGS
23377
23378 # How to feed a file listing to the archiver.
23379 archiver_list_spec=$lt_archiver_list_spec
23380
23381 # A symbol stripping program.
23382 STRIP=$lt_STRIP
23383
23384 # Commands used to install an old-style archive.
23385 RANLIB=$lt_RANLIB
23386 old_postinstall_cmds=$lt_old_postinstall_cmds
23387 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23388
23389 # Whether to use a lock for old archive extraction.
23390 lock_old_archive_extraction=$lock_old_archive_extraction
23391
23392 # A C compiler.
23393 LTCC=$lt_CC
23394
23395 # LTCC compiler flags.
23396 LTCFLAGS=$lt_CFLAGS
23397
23398 # Take the output of nm and produce a listing of raw symbols and C names.
23399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23400
23401 # Transform the output of nm in a proper C declaration.
23402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23403
23404 # Transform the output of nm into a list of symbols to manually relocate.
23405 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23406
23407 # Transform the output of nm in a C name address pair.
23408 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23409
23410 # Transform the output of nm in a C name address pair when lib prefix is needed.
23411 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23412
23413 # The name lister interface.
23414 nm_interface=$lt_lt_cv_nm_interface
23415
23416 # Specify filename containing input files for \$NM.
23417 nm_file_list_spec=$lt_nm_file_list_spec
23418
23419 # The root where to search for dependent libraries,and where our libraries should be installed.
23420 lt_sysroot=$lt_sysroot
23421
23422 # Command to truncate a binary pipe.
23423 lt_truncate_bin=$lt_lt_cv_truncate_bin
23424
23425 # The name of the directory that contains temporary libtool files.
23426 objdir=$objdir
23427
23428 # Used to examine libraries when file_magic_cmd begins with "file".
23429 MAGIC_CMD=$MAGIC_CMD
23430
23431 # Must we lock files when doing compilation?
23432 need_locks=$lt_need_locks
23433
23434 # Manifest tool.
23435 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23436
23437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23438 DSYMUTIL=$lt_DSYMUTIL
23439
23440 # Tool to change global to local symbols on Mac OS X.
23441 NMEDIT=$lt_NMEDIT
23442
23443 # Tool to manipulate fat objects and archives on Mac OS X.
23444 LIPO=$lt_LIPO
23445
23446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23447 OTOOL=$lt_OTOOL
23448
23449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23450 OTOOL64=$lt_OTOOL64
23451
23452 # Old archive suffix (normally "a").
23453 libext=$libext
23454
23455 # Shared library suffix (normally ".so").
23456 shrext_cmds=$lt_shrext_cmds
23457
23458 # The commands to extract the exported symbol list from a shared archive.
23459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23460
23461 # Variables whose values should be saved in libtool wrapper scripts and
23462 # restored at link time.
23463 variables_saved_for_relink=$lt_variables_saved_for_relink
23464
23465 # Do we need the "lib" prefix for modules?
23466 need_lib_prefix=$need_lib_prefix
23467
23468 # Do we need a version for libraries?
23469 need_version=$need_version
23470
23471 # Library versioning type.
23472 version_type=$version_type
23473
23474 # Shared library runtime path variable.
23475 runpath_var=$runpath_var
23476
23477 # Shared library path variable.
23478 shlibpath_var=$shlibpath_var
23479
23480 # Is shlibpath searched before the hard-coded library search path?
23481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23482
23483 # Format of library name prefix.
23484 libname_spec=$lt_libname_spec
23485
23486 # List of archive names. First name is the real one, the rest are links.
23487 # The last name is the one that the linker finds with -lNAME
23488 library_names_spec=$lt_library_names_spec
23489
23490 # The coded name of the library, if different from the real name.
23491 soname_spec=$lt_soname_spec
23492
23493 # Permission mode override for installation of shared libraries.
23494 install_override_mode=$lt_install_override_mode
23495
23496 # Command to use after installation of a shared archive.
23497 postinstall_cmds=$lt_postinstall_cmds
23498
23499 # Command to use after uninstallation of a shared archive.
23500 postuninstall_cmds=$lt_postuninstall_cmds
23501
23502 # Commands used to finish a libtool library installation in a directory.
23503 finish_cmds=$lt_finish_cmds
23504
23505 # As "finish_cmds", except a single script fragment to be evaled but
23506 # not shown.
23507 finish_eval=$lt_finish_eval
23508
23509 # Whether we should hardcode library paths into libraries.
23510 hardcode_into_libs=$hardcode_into_libs
23511
23512 # Compile-time system search path for libraries.
23513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23514
23515 # Detected run-time system search path for libraries.
23516 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23517
23518 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23519 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23520
23521 # Whether dlopen is supported.
23522 dlopen_support=$enable_dlopen
23523
23524 # Whether dlopen of programs is supported.
23525 dlopen_self=$enable_dlopen_self
23526
23527 # Whether dlopen of statically linked programs is supported.
23528 dlopen_self_static=$enable_dlopen_self_static
23529
23530 # Commands to strip libraries.
23531 old_striplib=$lt_old_striplib
23532 striplib=$lt_striplib
23533
23534
23535 # The linker used to build libraries.
23536 LD=$lt_LD
23537
23538 # How to create reloadable object files.
23539 reload_flag=$lt_reload_flag
23540 reload_cmds=$lt_reload_cmds
23541
23542 # Commands used to build an old-style archive.
23543 old_archive_cmds=$lt_old_archive_cmds
23544
23545 # A language specific compiler.
23546 CC=$lt_compiler
23547
23548 # Is the compiler the GNU compiler?
23549 with_gcc=$GCC
23550
23551 # Compiler flag to turn off builtin functions.
23552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23553
23554 # Additional compiler flags for building library objects.
23555 pic_flag=$lt_lt_prog_compiler_pic
23556
23557 # How to pass a linker flag through the compiler.
23558 wl=$lt_lt_prog_compiler_wl
23559
23560 # Compiler flag to prevent dynamic linking.
23561 link_static_flag=$lt_lt_prog_compiler_static
23562
23563 # Does compiler simultaneously support -c and -o options?
23564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23565
23566 # Whether or not to add -lc for building shared libraries.
23567 build_libtool_need_lc=$archive_cmds_need_lc
23568
23569 # Whether or not to disallow shared libs when runtime libs are static.
23570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23571
23572 # Compiler flag to allow reflexive dlopens.
23573 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23574
23575 # Compiler flag to generate shared objects directly from archives.
23576 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23577
23578 # Whether the compiler copes with passing no objects directly.
23579 compiler_needs_object=$lt_compiler_needs_object
23580
23581 # Create an old-style archive from a shared archive.
23582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23583
23584 # Create a temporary old-style archive to link instead of a shared archive.
23585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23586
23587 # Commands used to build a shared archive.
23588 archive_cmds=$lt_archive_cmds
23589 archive_expsym_cmds=$lt_archive_expsym_cmds
23590
23591 # Commands used to build a loadable module if different from building
23592 # a shared archive.
23593 module_cmds=$lt_module_cmds
23594 module_expsym_cmds=$lt_module_expsym_cmds
23595
23596 # Whether we are building with GNU ld or not.
23597 with_gnu_ld=$lt_with_gnu_ld
23598
23599 # Flag that allows shared libraries with undefined symbols to be built.
23600 allow_undefined_flag=$lt_allow_undefined_flag
23601
23602 # Flag that enforces no undefined symbols.
23603 no_undefined_flag=$lt_no_undefined_flag
23604
23605 # Flag to hardcode \$libdir into a binary during linking.
23606 # This must work even if \$libdir does not exist
23607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23608
23609 # Whether we need a single "-rpath" flag with a separated argument.
23610 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23611
23612 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23613 # DIR into the resulting binary.
23614 hardcode_direct=$hardcode_direct
23615
23616 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23617 # DIR into the resulting binary and the resulting library dependency is
23618 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23619 # library is relocated.
23620 hardcode_direct_absolute=$hardcode_direct_absolute
23621
23622 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23623 # into the resulting binary.
23624 hardcode_minus_L=$hardcode_minus_L
23625
23626 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23627 # into the resulting binary.
23628 hardcode_shlibpath_var=$hardcode_shlibpath_var
23629
23630 # Set to "yes" if building a shared library automatically hardcodes DIR
23631 # into the library and all subsequent libraries and executables linked
23632 # against it.
23633 hardcode_automatic=$hardcode_automatic
23634
23635 # Set to yes if linker adds runtime paths of dependent libraries
23636 # to runtime path list.
23637 inherit_rpath=$inherit_rpath
23638
23639 # Whether libtool must link a program against all its dependency libraries.
23640 link_all_deplibs=$link_all_deplibs
23641
23642 # Set to "yes" if exported symbols are required.
23643 always_export_symbols=$always_export_symbols
23644
23645 # The commands to list exported symbols.
23646 export_symbols_cmds=$lt_export_symbols_cmds
23647
23648 # Symbols that should not be listed in the preloaded symbols.
23649 exclude_expsyms=$lt_exclude_expsyms
23650
23651 # Symbols that must always be exported.
23652 include_expsyms=$lt_include_expsyms
23653
23654 # Commands necessary for linking programs (against libraries) with templates.
23655 prelink_cmds=$lt_prelink_cmds
23656
23657 # Commands necessary for finishing linking programs.
23658 postlink_cmds=$lt_postlink_cmds
23659
23660 # Specify filename containing input files.
23661 file_list_spec=$lt_file_list_spec
23662
23663 # How to hardcode a shared library path into an executable.
23664 hardcode_action=$hardcode_action
23665
23666 # The directories searched by this compiler when creating a shared library.
23667 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23668
23669 # Dependencies to place before and after the objects being linked to
23670 # create a shared library.
23671 predep_objects=$lt_predep_objects
23672 postdep_objects=$lt_postdep_objects
23673 predeps=$lt_predeps
23674 postdeps=$lt_postdeps
23675
23676 # The library search path used internally by the compiler when linking
23677 # a shared library.
23678 compiler_lib_search_path=$lt_compiler_lib_search_path
23679
23680 # ### END LIBTOOL CONFIG
23681
23682 _LT_EOF
23683
23684 cat <<'_LT_EOF' >> "$cfgfile"
23685
23686 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23687
23688 # func_munge_path_list VARIABLE PATH
23689 # -----------------------------------
23690 # VARIABLE is name of variable containing _space_ separated list of
23691 # directories to be munged by the contents of PATH, which is string
23692 # having a format:
23693 # "DIR[:DIR]:"
23694 # string "DIR[ DIR]" will be prepended to VARIABLE
23695 # ":DIR[:DIR]"
23696 # string "DIR[ DIR]" will be appended to VARIABLE
23697 # "DIRP[:DIRP]::[DIRA:]DIRA"
23698 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23699 # "DIRA[ DIRA]" will be appended to VARIABLE
23700 # "DIR[:DIR]"
23701 # VARIABLE will be replaced by "DIR[ DIR]"
23702 func_munge_path_list ()
23703 {
23704 case x$2 in
23705 x)
23706 ;;
23707 *:)
23708 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23709 ;;
23710 x:*)
23711 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23712 ;;
23713 *::*)
23714 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23715 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23716 ;;
23717 *)
23718 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23719 ;;
23720 esac
23721 }
23722
23723
23724 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23725 func_cc_basename ()
23726 {
23727 for cc_temp in $*""; do
23728 case $cc_temp in
23729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23731 \-*) ;;
23732 *) break;;
23733 esac
23734 done
23735 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23736 }
23737
23738
23739 # ### END FUNCTIONS SHARED WITH CONFIGURE
23740
23741 _LT_EOF
23742
23743 case $host_os in
23744 aix3*)
23745 cat <<\_LT_EOF >> "$cfgfile"
23746 # AIX sometimes has problems with the GCC collect2 program. For some
23747 # reason, if we set the COLLECT_NAMES environment variable, the problems
23748 # vanish in a puff of smoke.
23749 if test set != "${COLLECT_NAMES+set}"; then
23750 COLLECT_NAMES=
23751 export COLLECT_NAMES
23752 fi
23753 _LT_EOF
23754 ;;
23755 esac
23756
23757
23758 ltmain=$ac_aux_dir/ltmain.sh
23759
23760
23761 # We use sed instead of cat because bash on DJGPP gets confused if
23762 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23763 # text mode, it properly converts lines to CR/LF. This bash problem
23764 # is reportedly fixed, but why not run on old versions too?
23765 sed '$q' "$ltmain" >> "$cfgfile" \
23766 || (rm -f "$cfgfile"; exit 1)
23767
23768 mv -f "$cfgfile" "$ofile" ||
23769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23770 chmod +x "$ofile"
23771
23772
23773 cat <<_LT_EOF >> "$ofile"
23774
23775 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23776
23777 # The linker used to build libraries.
23778 LD=$lt_LD_CXX
23779
23780 # How to create reloadable object files.
23781 reload_flag=$lt_reload_flag_CXX
23782 reload_cmds=$lt_reload_cmds_CXX
23783
23784 # Commands used to build an old-style archive.
23785 old_archive_cmds=$lt_old_archive_cmds_CXX
23786
23787 # A language specific compiler.
23788 CC=$lt_compiler_CXX
23789
23790 # Is the compiler the GNU compiler?
23791 with_gcc=$GCC_CXX
23792
23793 # Compiler flag to turn off builtin functions.
23794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23795
23796 # Additional compiler flags for building library objects.
23797 pic_flag=$lt_lt_prog_compiler_pic_CXX
23798
23799 # How to pass a linker flag through the compiler.
23800 wl=$lt_lt_prog_compiler_wl_CXX
23801
23802 # Compiler flag to prevent dynamic linking.
23803 link_static_flag=$lt_lt_prog_compiler_static_CXX
23804
23805 # Does compiler simultaneously support -c and -o options?
23806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23807
23808 # Whether or not to add -lc for building shared libraries.
23809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23810
23811 # Whether or not to disallow shared libs when runtime libs are static.
23812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23813
23814 # Compiler flag to allow reflexive dlopens.
23815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23816
23817 # Compiler flag to generate shared objects directly from archives.
23818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23819
23820 # Whether the compiler copes with passing no objects directly.
23821 compiler_needs_object=$lt_compiler_needs_object_CXX
23822
23823 # Create an old-style archive from a shared archive.
23824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23825
23826 # Create a temporary old-style archive to link instead of a shared archive.
23827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23828
23829 # Commands used to build a shared archive.
23830 archive_cmds=$lt_archive_cmds_CXX
23831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23832
23833 # Commands used to build a loadable module if different from building
23834 # a shared archive.
23835 module_cmds=$lt_module_cmds_CXX
23836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23837
23838 # Whether we are building with GNU ld or not.
23839 with_gnu_ld=$lt_with_gnu_ld_CXX
23840
23841 # Flag that allows shared libraries with undefined symbols to be built.
23842 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23843
23844 # Flag that enforces no undefined symbols.
23845 no_undefined_flag=$lt_no_undefined_flag_CXX
23846
23847 # Flag to hardcode \$libdir into a binary during linking.
23848 # This must work even if \$libdir does not exist
23849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23850
23851 # Whether we need a single "-rpath" flag with a separated argument.
23852 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23853
23854 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23855 # DIR into the resulting binary.
23856 hardcode_direct=$hardcode_direct_CXX
23857
23858 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23859 # DIR into the resulting binary and the resulting library dependency is
23860 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23861 # library is relocated.
23862 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23863
23864 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23865 # into the resulting binary.
23866 hardcode_minus_L=$hardcode_minus_L_CXX
23867
23868 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23869 # into the resulting binary.
23870 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23871
23872 # Set to "yes" if building a shared library automatically hardcodes DIR
23873 # into the library and all subsequent libraries and executables linked
23874 # against it.
23875 hardcode_automatic=$hardcode_automatic_CXX
23876
23877 # Set to yes if linker adds runtime paths of dependent libraries
23878 # to runtime path list.
23879 inherit_rpath=$inherit_rpath_CXX
23880
23881 # Whether libtool must link a program against all its dependency libraries.
23882 link_all_deplibs=$link_all_deplibs_CXX
23883
23884 # Set to "yes" if exported symbols are required.
23885 always_export_symbols=$always_export_symbols_CXX
23886
23887 # The commands to list exported symbols.
23888 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23889
23890 # Symbols that should not be listed in the preloaded symbols.
23891 exclude_expsyms=$lt_exclude_expsyms_CXX
23892
23893 # Symbols that must always be exported.
23894 include_expsyms=$lt_include_expsyms_CXX
23895
23896 # Commands necessary for linking programs (against libraries) with templates.
23897 prelink_cmds=$lt_prelink_cmds_CXX
23898
23899 # Commands necessary for finishing linking programs.
23900 postlink_cmds=$lt_postlink_cmds_CXX
23901
23902 # Specify filename containing input files.
23903 file_list_spec=$lt_file_list_spec_CXX
23904
23905 # How to hardcode a shared library path into an executable.
23906 hardcode_action=$hardcode_action_CXX
23907
23908 # The directories searched by this compiler when creating a shared library.
23909 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23910
23911 # Dependencies to place before and after the objects being linked to
23912 # create a shared library.
23913 predep_objects=$lt_predep_objects_CXX
23914 postdep_objects=$lt_postdep_objects_CXX
23915 predeps=$lt_predeps_CXX
23916 postdeps=$lt_postdeps_CXX
23917
23918 # The library search path used internally by the compiler when linking
23919 # a shared library.
23920 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23921
23922 # ### END LIBTOOL TAG CONFIG: CXX
23923 _LT_EOF
23924
23925 ;;
23926
23927 esac
23928 done # for ac_tag
23929
23930
23931 as_fn_exit 0
23932 _ACEOF
23933 ac_clean_files=$ac_clean_files_save
23934
23935 test $ac_write_fail = 0 ||
23936 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23937
23938
23939 # configure is writing to config.log, and then calls config.status.
23940 # config.status does its own redirection, appending to config.log.
23941 # Unfortunately, on DOS this fails, as config.log is still kept open
23942 # by configure, so config.status won't be able to write to it; its
23943 # output is simply discarded. So we exec the FD to /dev/null,
23944 # effectively closing config.log, so it can be properly (re)opened and
23945 # appended to by config.status. When coming back to configure, we
23946 # need to make the FD available again.
23947 if test "$no_create" != yes; then
23948 ac_cs_success=:
23949 ac_config_status_args=
23950 test "$silent" = yes &&
23951 ac_config_status_args="$ac_config_status_args --quiet"
23952 exec 5>/dev/null
23953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23954 exec 5>>config.log
23955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23956 # would make configure fail if this is the last instruction.
23957 $ac_cs_success || as_fn_exit 1
23958 fi
23959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23962 fi
23963