]> git.saurik.com Git - cycript.git/blob - configure
fd56f77975f7baf2ad6c20aabb0ca4dc2f5b1111
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (C) 2009-2012 Jay Freeman (saurik)
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='Cycript'
594 PACKAGE_TARNAME='cycript'
595 PACKAGE_VERSION='0.9'
596 PACKAGE_STRING='Cycript 0.9'
597 PACKAGE_BUGREPORT='saurik@saurik.com'
598 PACKAGE_URL='http://www.cycript.org/'
599
600 ac_unique_file="Console.cpp"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 CY_MACH_FALSE
642 CY_MACH_TRUE
643 CY_MACH
644 CY_ATTACH_GROUP
645 ac_ct__OTOOL
646 _OTOOL
647 ac_ct__NM
648 _NM
649 ac_ct__LIPO
650 _LIPO
651 SO
652 LTFLAGS
653 LTLIBICONV
654 LIBICONV
655 LTLIBTERMCAP
656 LTLIBREADLINE
657 CY_OBJECTIVEC_FALSE
658 CY_OBJECTIVEC_TRUE
659 GNUSTEP_CONFIG
660 CY_OBJECTIVEC
661 LTLIBFFI
662 LIBFFI_LIBS
663 LIBFFI_CFLAGS
664 CY_EXECUTE_FALSE
665 CY_EXECUTE_TRUE
666 LTLIBAPR
667 WEBKIT_LIBS
668 WEBKIT_CFLAGS
669 CY_EXECUTE
670 CY_ARCH
671 CY_FILTERS
672 GNUTAR
673 GPERF
674 FLEX
675 BISON
676 TIME
677 GIT
678 _BASH
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 CXXCPP
683 CPP
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 DLLTOOL
692 OBJDUMP
693 LN_S
694 NM
695 ac_ct_DUMPBIN
696 DUMPBIN
697 LD
698 FGREP
699 EGREP
700 GREP
701 SED
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 LIBTOOL
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 ac_ct_CC
715 CFLAGS
716 CC
717 ac_ct_AR
718 AR
719 am__fastdepOBJCXX_FALSE
720 am__fastdepOBJCXX_TRUE
721 OBJCXXDEPMODE
722 ac_ct_OBJCXX
723 OBJCXXFLAGS
724 OBJCXX
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 am__nodep
729 AMDEPBACKSLASH
730 AMDEP_FALSE
731 AMDEP_TRUE
732 am__quote
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CXX
738 CPPFLAGS
739 LDFLAGS
740 CXXFLAGS
741 CXX
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_static
813 enable_shared
814 with_pic
815 enable_fast_install
816 with_gnu_ld
817 with_sysroot
818 enable_libtool_lock
819 enable_javascript
820 with_apr
821 enable_rpath
822 with_libiconv_prefix
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CXX
828 CXXFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CCC
833 OBJCXX
834 OBJCXXFLAGS
835 CC
836 CFLAGS
837 CPP
838 CXXCPP
839 PKG_CONFIG
840 PKG_CONFIG_PATH
841 PKG_CONFIG_LIBDIR
842 BISON
843 FLEX
844 GPERF
845 GNUTAR
846 WEBKIT_CFLAGS
847 WEBKIT_LIBS
848 LIBFFI_CFLAGS
849 LIBFFI_LIBS
850 GNUSTEP_CONFIG'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 # Accept the important Cygnus configure options, so we can diagnose typos.
919
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
923
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
928
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
933
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
940
941 --config-cache | -C)
942 cache_file=config.cache ;;
943
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
948
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
955
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
971
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
976
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
981
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
997
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1006
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1010
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1017
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1022
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1028
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1035
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1040
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1045
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1052
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1057
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1064
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1069
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1073
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1077
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1081
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1090
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1095
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1102
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1109
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1126
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1131
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1136
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1140
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1146
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1157
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1162
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1167
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1174
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1179
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1182
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1185
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1201
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1235
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1249
1250 *)
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256 ;;
1257
1258 esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1264 fi
1265
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1272 fi
1273
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1279 do
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of Cycript 0.9:";;
1462 esac
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-silent-rules less verbose build output (undo: "make V=1")
1470 --disable-silent-rules verbose build output (undo: "make V=0")
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
1475 --enable-static[=PKGS] build static libraries [default=no]
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --enable-javascript[=ENGINE]
1481 use a JavaScript runtime (currently the only
1482 available option for ENGINE is JavaScriptCore)
1483 [default=yes]
1484 --disable-rpath do not hardcode runtime library paths
1485
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot=DIR Search for dependent libraries within DIR
1493 (or the compiler's sysroot if not specified).
1494 --with-apr=PATH prefix for installed APR or the full path to
1495 apr-config
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1498 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1499
1500 Some influential environment variables:
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 OBJCXX Objective C++ compiler command
1509 OBJCXXFLAGS Objective C++ compiler flags
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 CPP C preprocessor
1513 CXXCPP C++ preprocessor
1514 PKG_CONFIG path to pkg-config utility
1515 PKG_CONFIG_PATH
1516 directories to add to pkg-config's search path
1517 PKG_CONFIG_LIBDIR
1518 path overriding pkg-config's built-in search path
1519 BISON GNU Project parser generator (yacc replacement)
1520 FLEX the fast lexical analyser generator
1521 GPERF perfect hash function generator
1522 GNUTAR a very sticky lump of files
1523 WEBKIT_CFLAGS
1524 C compiler flags for WEBKIT, overriding pkg-config
1525 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1526 GNUSTEP_CONFIG
1527 prints information about the current gnustep installation
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to <saurik@saurik.com>.
1533 Cycript home page: <http://www.cycript.org/>.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 Cycript configure 0.9
1597 generated by GNU Autoconf 2.69
1598
1599 Copyright (C) 2012 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602
1603 Copyright (C) 2009-2012 Jay Freeman (saurik)
1604 _ACEOF
1605 exit
1606 fi
1607
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1611
1612 # ac_fn_cxx_try_compile LINENO
1613 # ----------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_cxx_try_compile ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_cxx_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_cxx_try_compile
1649
1650 # ac_fn_objcxx_try_compile LINENO
1651 # -------------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_objcxx_try_compile ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_objcxx_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_objcxx_try_compile
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 test -x conftest$ac_exeext
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_header_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1844 ac_fn_c_try_run ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=$ac_status
1875 fi
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_run
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } > conftest.i && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_try_cpp
1985
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 test -x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021 fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2029
2030 } # ac_fn_cxx_try_link
2031
2032 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2033 # ---------------------------------------------------------
2034 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2035 # the include files in INCLUDES and setting the cache variable VAR
2036 # accordingly.
2037 ac_fn_cxx_check_header_mongrel ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if eval \${$3+:} false; then :
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 fi
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 else
2050 # Is the header compilable?
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2052 $as_echo_n "checking $2 usability... " >&6; }
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_cxx_try_compile "$LINENO"; then :
2059 ac_header_compiler=yes
2060 else
2061 ac_header_compiler=no
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2065 $as_echo "$ac_header_compiler" >&6; }
2066
2067 # Is the header present?
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2069 $as_echo_n "checking $2 presence... " >&6; }
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_cxx_try_cpp "$LINENO"; then :
2075 ac_header_preproc=yes
2076 else
2077 ac_header_preproc=no
2078 fi
2079 rm -f conftest.err conftest.i conftest.$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2081 $as_echo "$ac_header_preproc" >&6; }
2082
2083 # So? What about this header?
2084 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2085 yes:no: )
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2087 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2089 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2090 ;;
2091 no:yes:* )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2093 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2095 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2097 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2099 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2101 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2102 ( $as_echo "## -------------------------------- ##
2103 ## Report this to saurik@saurik.com ##
2104 ## -------------------------------- ##"
2105 ) | sed "s/^/$as_me: WARNING: /" >&2
2106 ;;
2107 esac
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111 $as_echo_n "(cached) " >&6
2112 else
2113 eval "$3=\$ac_header_compiler"
2114 fi
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 fi
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_cxx_check_header_mongrel
2122
2123 # ac_fn_objcxx_try_link LINENO
2124 # ----------------------------
2125 # Try to link conftest.$ac_ext, and return whether this succeeded.
2126 ac_fn_objcxx_try_link ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext conftest$ac_exeext
2130 if { { ac_try="$ac_link"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_link") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_objcxx_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest$ac_exeext && {
2149 test "$cross_compiling" = yes ||
2150 test -x conftest$ac_exeext
2151 }; then :
2152 ac_retval=0
2153 else
2154 $as_echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 ac_retval=1
2158 fi
2159 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2160 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2161 # interfere with the next link command; also delete a directory that is
2162 # left behind by Apple's compiler. We do this before executing the actions.
2163 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 as_fn_set_status $ac_retval
2166
2167 } # ac_fn_objcxx_try_link
2168 cat >config.log <<_ACEOF
2169 This file contains any messages produced by compilers while
2170 running configure, to aid debugging if configure makes a mistake.
2171
2172 It was created by Cycript $as_me 0.9, which was
2173 generated by GNU Autoconf 2.69. Invocation command line was
2174
2175 $ $0 $@
2176
2177 _ACEOF
2178 exec 5>>config.log
2179 {
2180 cat <<_ASUNAME
2181 ## --------- ##
2182 ## Platform. ##
2183 ## --------- ##
2184
2185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190
2191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193
2194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2197 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201
2202 _ASUNAME
2203
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2210 done
2211 IFS=$as_save_IFS
2212
2213 } >&5
2214
2215 cat >&5 <<_ACEOF
2216
2217
2218 ## ----------- ##
2219 ## Core tests. ##
2220 ## ----------- ##
2221
2222 _ACEOF
2223
2224
2225 # Keep a trace of the command line.
2226 # Strip out --no-create and --no-recursion so they do not pile up.
2227 # Strip out --silent because we don't want to record it for future runs.
2228 # Also quote any args containing shell meta-characters.
2229 # Make two passes to allow for proper duplicate-argument suppression.
2230 ac_configure_args=
2231 ac_configure_args0=
2232 ac_configure_args1=
2233 ac_must_keep_next=false
2234 for ac_pass in 1 2
2235 do
2236 for ac_arg
2237 do
2238 case $ac_arg in
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2242 continue ;;
2243 *\'*)
2244 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 esac
2246 case $ac_pass in
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 2)
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2252 else
2253 case $ac_arg in
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2260 esac
2261 ;;
2262 -* ) ac_must_keep_next=true ;;
2263 esac
2264 fi
2265 as_fn_append ac_configure_args " '$ac_arg'"
2266 ;;
2267 esac
2268 done
2269 done
2270 { ac_configure_args0=; unset ac_configure_args0;}
2271 { ac_configure_args1=; unset ac_configure_args1;}
2272
2273 # When interrupted or exit'd, cleanup temporary files, and complete
2274 # config.log. We remove comments because anyway the quotes in there
2275 # would cause problems or look ugly.
2276 # WARNING: Use '\'' to represent an apostrophe within the trap.
2277 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278 trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2280 {
2281 echo
2282
2283 $as_echo "## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##"
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288 (
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316 )
2317 echo
2318
2319 $as_echo "## ----------------- ##
2320 ## Output variables. ##
2321 ## ----------------- ##"
2322 echo
2323 for ac_var in $ac_subst_vars
2324 do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2332
2333 if test -n "$ac_subst_files"; then
2334 $as_echo "## ------------------- ##
2335 ## File substitutions. ##
2336 ## ------------------- ##"
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 $as_echo "## ----------- ##
2351 ## confdefs.h. ##
2352 ## ----------- ##"
2353 echo
2354 cat confdefs.h
2355 echo
2356 fi
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2364 ' 0
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 done
2368 ac_signal=0
2369
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2372
2373 $as_echo "/* confdefs.h */" > confdefs.h
2374
2375 # Predefined preprocessor variables.
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2399 _ACEOF
2400
2401
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 ac_site_file1=NONE
2405 ac_site_file2=NONE
2406 if test -n "$CONFIG_SITE"; then
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2412 esac
2413 elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2416 else
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2419 fi
2420 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421 do
2422 test "x$ac_site_file" = xNONE && continue
2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
2427 . "$ac_site_file" \
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $? "failed to load site script $ac_site_file
2431 See \`config.log' for more details" "$LINENO" 5; }
2432 fi
2433 done
2434
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450 fi
2451
2452 # Check that the precious variables saved in the cache have kept the same
2453 # value.
2454 ac_cache_corrupted=false
2455 for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2470 *)
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2500 fi
2501 done
2502 if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2508 fi
2509 ## -------------------- ##
2510 ## Main body of script. ##
2511 ## -------------------- ##
2512
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
2522
2523 ac_aux_dir=
2524 for ac_dir in . "$srcdir"/.; do
2525 if test -f "$ac_dir/install-sh"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/install-sh -c"
2528 break
2529 elif test -f "$ac_dir/install.sh"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/install.sh -c"
2532 break
2533 elif test -f "$ac_dir/shtool"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/shtool install -c"
2536 break
2537 fi
2538 done
2539 if test -z "$ac_aux_dir"; then
2540 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2541 fi
2542
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2549 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2550
2551
2552
2553 ac_config_headers="$ac_config_headers config.h"
2554
2555
2556 am__api_version='1.13'
2557
2558 # Find a good install program. We prefer a C program (faster),
2559 # so one script is as good as another. But avoid the broken or
2560 # incompatible versions:
2561 # SysV /etc/install, /usr/sbin/install
2562 # SunOS /usr/etc/install
2563 # IRIX /sbin/install
2564 # AIX /bin/install
2565 # AmigaOS /C/install, which installs bootblocks on floppy discs
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # OS/2's system install, which has a completely different semantic
2570 # ./install, which can be erroneously created by make from ./install.sh.
2571 # Reject install programs that cannot install multiple files.
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2574 if test -z "$INSTALL"; then
2575 if ${ac_cv_path_install+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 # Account for people who put trailing slashes in PATH elements.
2584 case $as_dir/ in #((
2585 ./ | .// | /[cC]/* | \
2586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2588 /usr/ucb/* ) ;;
2589 *)
2590 # OSF1 and SCO ODT 3.0 have their own names for install.
2591 # Don't use installbsd from OSF since it installs stuff as root
2592 # by default.
2593 for ac_prog in ginstall scoinst install; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2596 if test $ac_prog = install &&
2597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2599 :
2600 elif test $ac_prog = install &&
2601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # program-specific install script used by HP pwplus--don't use.
2603 :
2604 else
2605 rm -rf conftest.one conftest.two conftest.dir
2606 echo one > conftest.one
2607 echo two > conftest.two
2608 mkdir conftest.dir
2609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2610 test -s conftest.one && test -s conftest.two &&
2611 test -s conftest.dir/conftest.one &&
2612 test -s conftest.dir/conftest.two
2613 then
2614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2615 break 3
2616 fi
2617 fi
2618 fi
2619 done
2620 done
2621 ;;
2622 esac
2623
2624 done
2625 IFS=$as_save_IFS
2626
2627 rm -rf conftest.one conftest.two conftest.dir
2628
2629 fi
2630 if test "${ac_cv_path_install+set}" = set; then
2631 INSTALL=$ac_cv_path_install
2632 else
2633 # As a last resort, use the slow shell script. Don't cache a
2634 # value for INSTALL within a source directory, because that will
2635 # break other packages using the cache if that directory is
2636 # removed, or if the value is a relative name.
2637 INSTALL=$ac_install_sh
2638 fi
2639 fi
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2641 $as_echo "$INSTALL" >&6; }
2642
2643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2644 # It thinks the first close brace ends the variable substitution.
2645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2646
2647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2648
2649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2652 $as_echo_n "checking whether build environment is sane... " >&6; }
2653 # Reject unsafe characters in $srcdir or the absolute working directory
2654 # name. Accept space and tab only in the latter.
2655 am_lf='
2656 '
2657 case `pwd` in
2658 *[\\\"\#\$\&\'\`$am_lf]*)
2659 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2660 esac
2661 case $srcdir in
2662 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2663 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2664 esac
2665
2666 # Do 'set' in a subshell so we don't clobber the current shell's
2667 # arguments. Must try -L first in case configure is actually a
2668 # symlink; some systems play weird games with the mod time of symlinks
2669 # (eg FreeBSD returns the mod time of the symlink's containing
2670 # directory).
2671 if (
2672 am_has_slept=no
2673 for am_try in 1 2; do
2674 echo "timestamp, slept: $am_has_slept" > conftest.file
2675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2676 if test "$*" = "X"; then
2677 # -L didn't work.
2678 set X `ls -t "$srcdir/configure" conftest.file`
2679 fi
2680 if test "$*" != "X $srcdir/configure conftest.file" \
2681 && test "$*" != "X conftest.file $srcdir/configure"; then
2682
2683 # If neither matched, then we have a broken ls. This can happen
2684 # if, for instance, CONFIG_SHELL is bash and it inherits a
2685 # broken ls alias from the environment. This has actually
2686 # happened. Such a system could not be considered "sane".
2687 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2688 alias in your environment" "$LINENO" 5
2689 fi
2690 if test "$2" = conftest.file || test $am_try -eq 2; then
2691 break
2692 fi
2693 # Just in case.
2694 sleep 1
2695 am_has_slept=yes
2696 done
2697 test "$2" = conftest.file
2698 )
2699 then
2700 # Ok.
2701 :
2702 else
2703 as_fn_error $? "newly created file is older than distributed files!
2704 Check your system clock" "$LINENO" 5
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707 $as_echo "yes" >&6; }
2708 # If we didn't sleep, we still need to ensure time stamps of config.status and
2709 # generated files are strictly newer.
2710 am_sleep_pid=
2711 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2712 ( sleep 1 ) &
2713 am_sleep_pid=$!
2714 fi
2715
2716 rm -f conftest.file
2717
2718 test "$program_prefix" != NONE &&
2719 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2720 # Use a double $ so make ignores it.
2721 test "$program_suffix" != NONE &&
2722 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2723 # Double any \ or $.
2724 # By default was `s,x,x', remove it if useless.
2725 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2726 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2727
2728 # expand $ac_aux_dir to an absolute path
2729 am_aux_dir=`cd $ac_aux_dir && pwd`
2730
2731 if test x"${MISSING+set}" != xset; then
2732 case $am_aux_dir in
2733 *\ * | *\ *)
2734 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2735 *)
2736 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2737 esac
2738 fi
2739 # Use eval to expand $SHELL
2740 if eval "$MISSING --is-lightweight"; then
2741 am_missing_run="$MISSING "
2742 else
2743 am_missing_run=
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2745 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2746 fi
2747
2748 if test x"${install_sh}" != xset; then
2749 case $am_aux_dir in
2750 *\ * | *\ *)
2751 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2752 *)
2753 install_sh="\${SHELL} $am_aux_dir/install-sh"
2754 esac
2755 fi
2756
2757 # Installed binaries are usually stripped using 'strip' when the user
2758 # run "make install-strip". However 'strip' might not be the right
2759 # tool to use in cross-compilation environments, therefore Automake
2760 # will honor the 'STRIP' environment variable to overrule this program.
2761 if test "$cross_compiling" != no; then
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}strip; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_STRIP+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$STRIP"; then
2771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784 done
2785 done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 STRIP=$ac_cv_prog_STRIP
2791 if test -n "$STRIP"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2793 $as_echo "$STRIP" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800 fi
2801 if test -z "$ac_cv_prog_STRIP"; then
2802 ac_ct_STRIP=$STRIP
2803 # Extract the first word of "strip", so it can be a program name with args.
2804 set dummy strip; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_STRIP"; then
2811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_STRIP="strip"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829 fi
2830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2831 if test -n "$ac_ct_STRIP"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2833 $as_echo "$ac_ct_STRIP" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 fi
2838
2839 if test "x$ac_ct_STRIP" = x; then
2840 STRIP=":"
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 STRIP=$ac_ct_STRIP
2849 fi
2850 else
2851 STRIP="$ac_cv_prog_STRIP"
2852 fi
2853
2854 fi
2855 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2859 if test -z "$MKDIR_P"; then
2860 if ${ac_cv_path_mkdir+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_prog in mkdir gmkdir; do
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2872 'mkdir (GNU coreutils) '* | \
2873 'mkdir (coreutils) '* | \
2874 'mkdir (fileutils) '4.1*)
2875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2876 break 3;;
2877 esac
2878 done
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884
2885 test -d ./--version && rmdir ./--version
2886 if test "${ac_cv_path_mkdir+set}" = set; then
2887 MKDIR_P="$ac_cv_path_mkdir -p"
2888 else
2889 # As a last resort, use the slow shell script. Don't cache a
2890 # value for MKDIR_P within a source directory, because that will
2891 # break other packages using the cache if that directory is
2892 # removed, or if the value is a relative name.
2893 MKDIR_P="$ac_install_sh -d"
2894 fi
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2897 $as_echo "$MKDIR_P" >&6; }
2898
2899 for ac_prog in gawk mawk nawk awk
2900 do
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902 set dummy $ac_prog; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_AWK+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$AWK"; then
2909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_AWK="$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 AWK=$ac_cv_prog_AWK
2929 if test -n "$AWK"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2931 $as_echo "$AWK" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 test -n "$AWK" && break
2939 done
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2942 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2943 set x ${MAKE-make}
2944 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2945 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 cat >conftest.make <<\_ACEOF
2949 SHELL = /bin/sh
2950 all:
2951 @echo '@@@%%%=$(MAKE)=@@@%%%'
2952 _ACEOF
2953 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2954 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2955 *@@@%%%=?*=@@@%%%*)
2956 eval ac_cv_prog_make_${ac_make}_set=yes;;
2957 *)
2958 eval ac_cv_prog_make_${ac_make}_set=no;;
2959 esac
2960 rm -f conftest.make
2961 fi
2962 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2964 $as_echo "yes" >&6; }
2965 SET_MAKE=
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 SET_MAKE="MAKE=${MAKE-make}"
2970 fi
2971
2972 rm -rf .tst 2>/dev/null
2973 mkdir .tst 2>/dev/null
2974 if test -d .tst; then
2975 am__leading_dot=.
2976 else
2977 am__leading_dot=_
2978 fi
2979 rmdir .tst 2>/dev/null
2980
2981 # Check whether --enable-silent-rules was given.
2982 if test "${enable_silent_rules+set}" = set; then :
2983 enableval=$enable_silent_rules;
2984 fi
2985
2986 case $enable_silent_rules in # (((
2987 yes) AM_DEFAULT_VERBOSITY=0;;
2988 no) AM_DEFAULT_VERBOSITY=1;;
2989 *) AM_DEFAULT_VERBOSITY=1;;
2990 esac
2991 am_make=${MAKE-make}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2993 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2994 if ${am_cv_make_support_nested_variables+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if $as_echo 'TRUE=$(BAR$(V))
2998 BAR0=false
2999 BAR1=true
3000 V=1
3001 am__doit:
3002 @$(TRUE)
3003 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3004 am_cv_make_support_nested_variables=yes
3005 else
3006 am_cv_make_support_nested_variables=no
3007 fi
3008 fi
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3010 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3011 if test $am_cv_make_support_nested_variables = yes; then
3012 AM_V='$(V)'
3013 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3014 else
3015 AM_V=$AM_DEFAULT_VERBOSITY
3016 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3017 fi
3018 AM_BACKSLASH='\'
3019
3020 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3021 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3022 # is not polluted with repeated "-I."
3023 am__isrc=' -I$(srcdir)'
3024 # test to see if srcdir already configured
3025 if test -f $srcdir/config.status; then
3026 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3027 fi
3028 fi
3029
3030 # test whether we have cygpath
3031 if test -z "$CYGPATH_W"; then
3032 if (cygpath --version) >/dev/null 2>/dev/null; then
3033 CYGPATH_W='cygpath -w'
3034 else
3035 CYGPATH_W=echo
3036 fi
3037 fi
3038
3039
3040 # Define the identity of the package.
3041 PACKAGE='cycript'
3042 VERSION='0.9'
3043
3044
3045 cat >>confdefs.h <<_ACEOF
3046 #define PACKAGE "$PACKAGE"
3047 _ACEOF
3048
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define VERSION "$VERSION"
3052 _ACEOF
3053
3054 # Some tools Automake needs.
3055
3056 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057
3058
3059 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060
3061
3062 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063
3064
3065 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066
3067
3068 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3069
3070 # For better backward compatibility. To be removed once Automake 1.9.x
3071 # dies out for good. For more background, see:
3072 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3073 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3074 mkdir_p='$(MKDIR_P)'
3075
3076 # We need awk for the "check" target. The system "awk" is bad on
3077 # some platforms.
3078 # Always define AMTAR for backward compatibility. Yes, it's still used
3079 # in the wild :-( We should find a proper way to deprecate it ...
3080 AMTAR='$${TAR-tar}'
3081
3082 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3083
3084
3085
3086
3087
3088
3089 ac_ext=cpp
3090 ac_cpp='$CXXCPP $CPPFLAGS'
3091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3094 if test -z "$CXX"; then
3095 if test -n "$CCC"; then
3096 CXX=$CCC
3097 else
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3100 do
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CXX+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$CXX"; then
3109 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CXX=$ac_cv_prog_CXX
3129 if test -n "$CXX"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3131 $as_echo "$CXX" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137
3138 test -n "$CXX" && break
3139 done
3140 fi
3141 if test -z "$CXX"; then
3142 ac_ct_CXX=$CXX
3143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3144 do
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$ac_ct_CXX"; then
3153 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_ac_ct_CXX="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi
3171 fi
3172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3173 if test -n "$ac_ct_CXX"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3175 $as_echo "$ac_ct_CXX" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 fi
3180
3181
3182 test -n "$ac_ct_CXX" && break
3183 done
3184
3185 if test "x$ac_ct_CXX" = x; then
3186 CXX="g++"
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194 CXX=$ac_ct_CXX
3195 fi
3196 fi
3197
3198 fi
3199 fi
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3219 fi
3220 rm -f conftest.er1 conftest.err
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3224
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3242 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3250 do
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3257
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3275 do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279 ;;
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 fi
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3295 * )
3296 break;;
3297 esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301 else
3302 ac_file=''
3303 fi
3304 if test -z "$ac_file"; then :
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C++ compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3319 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3323
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351 done
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3361
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdio.h>
3368 int
3369 main ()
3370 {
3371 FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C++ compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 fi
3417 fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if ${ac_cv_objext+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431
3432 int
3433 main ()
3434 {
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3477 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_cxx_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3501
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3504 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GXX=yes
3507 else
3508 GXX=
3509 fi
3510 ac_test_CXXFLAGS=${CXXFLAGS+set}
3511 ac_save_CXXFLAGS=$CXXFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3513 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3514 if ${ac_cv_prog_cxx_g+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3518 ac_cxx_werror_flag=yes
3519 ac_cv_prog_cxx_g=no
3520 CXXFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523
3524 int
3525 main ()
3526 {
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_cxx_try_compile "$LINENO"; then :
3533 ac_cv_prog_cxx_g=yes
3534 else
3535 CXXFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_cxx_try_compile "$LINENO"; then :
3548
3549 else
3550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3551 CXXFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_cxx_try_compile "$LINENO"; then :
3564 ac_cv_prog_cxx_g=yes
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3574 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3575 if test "$ac_test_CXXFLAGS" = set; then
3576 CXXFLAGS=$ac_save_CXXFLAGS
3577 elif test $ac_cv_prog_cxx_g = yes; then
3578 if test "$GXX" = yes; then
3579 CXXFLAGS="-g -O2"
3580 else
3581 CXXFLAGS="-g"
3582 fi
3583 else
3584 if test "$GXX" = yes; then
3585 CXXFLAGS="-O2"
3586 else
3587 CXXFLAGS=
3588 fi
3589 fi
3590 ac_ext=c
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 DEPDIR="${am__leading_dot}deps"
3596
3597 ac_config_commands="$ac_config_commands depfiles"
3598
3599
3600 am_make=${MAKE-make}
3601 cat > confinc << 'END'
3602 am__doit:
3603 @echo this is the am__doit target
3604 .PHONY: am__doit
3605 END
3606 # If we don't find an include directive, just comment out the code.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3608 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3609 am__include="#"
3610 am__quote=
3611 _am_result=none
3612 # First try GNU make style include.
3613 echo "include confinc" > confmf
3614 # Ignore all kinds of additional output from 'make'.
3615 case `$am_make -s -f confmf 2> /dev/null` in #(
3616 *the\ am__doit\ target*)
3617 am__include=include
3618 am__quote=
3619 _am_result=GNU
3620 ;;
3621 esac
3622 # Now try BSD make style include.
3623 if test "$am__include" = "#"; then
3624 echo '.include "confinc"' > confmf
3625 case `$am_make -s -f confmf 2> /dev/null` in #(
3626 *the\ am__doit\ target*)
3627 am__include=.include
3628 am__quote="\""
3629 _am_result=BSD
3630 ;;
3631 esac
3632 fi
3633
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3636 $as_echo "$_am_result" >&6; }
3637 rm -f confinc confmf
3638
3639 # Check whether --enable-dependency-tracking was given.
3640 if test "${enable_dependency_tracking+set}" = set; then :
3641 enableval=$enable_dependency_tracking;
3642 fi
3643
3644 if test "x$enable_dependency_tracking" != xno; then
3645 am_depcomp="$ac_aux_dir/depcomp"
3646 AMDEPBACKSLASH='\'
3647 am__nodep='_no'
3648 fi
3649 if test "x$enable_dependency_tracking" != xno; then
3650 AMDEP_TRUE=
3651 AMDEP_FALSE='#'
3652 else
3653 AMDEP_TRUE='#'
3654 AMDEP_FALSE=
3655 fi
3656
3657
3658
3659 depcc="$CXX" am_compiler_list=
3660
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3662 $as_echo_n "checking dependency style of $depcc... " >&6; }
3663 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3667 # We make a subdir and do the tests there. Otherwise we can end up
3668 # making bogus files that we don't know about and never remove. For
3669 # instance it was reported that on HP-UX the gcc test will end up
3670 # making a dummy file named 'D' -- because '-MD' means "put the output
3671 # in D".
3672 rm -rf conftest.dir
3673 mkdir conftest.dir
3674 # Copy depcomp to subdir because otherwise we won't find it if we're
3675 # using a relative directory.
3676 cp "$am_depcomp" conftest.dir
3677 cd conftest.dir
3678 # We will build objects and dependencies in a subdirectory because
3679 # it helps to detect inapplicable dependency modes. For instance
3680 # both Tru64's cc and ICC support -MD to output dependencies as a
3681 # side effect of compilation, but ICC will put the dependencies in
3682 # the current directory while Tru64 will put them in the object
3683 # directory.
3684 mkdir sub
3685
3686 am_cv_CXX_dependencies_compiler_type=none
3687 if test "$am_compiler_list" = ""; then
3688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3689 fi
3690 am__universal=false
3691 case " $depcc " in #(
3692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3693 esac
3694
3695 for depmode in $am_compiler_list; do
3696 # Setup a source with many dependencies, because some compilers
3697 # like to wrap large dependency lists on column 80 (with \), and
3698 # we should not choose a depcomp mode which is confused by this.
3699 #
3700 # We need to recreate these files for each test, as the compiler may
3701 # overwrite some of them when testing with obscure command lines.
3702 # This happens at least with the AIX C compiler.
3703 : > sub/conftest.c
3704 for i in 1 2 3 4 5 6; do
3705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3707 # Solaris 10 /bin/sh.
3708 echo '/* dummy */' > sub/conftst$i.h
3709 done
3710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3711
3712 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3713 # mode. It turns out that the SunPro C++ compiler does not properly
3714 # handle '-M -o', and we need to detect this. Also, some Intel
3715 # versions had trouble with output in subdirs.
3716 am__obj=sub/conftest.${OBJEXT-o}
3717 am__minus_obj="-o $am__obj"
3718 case $depmode in
3719 gcc)
3720 # This depmode causes a compiler race in universal mode.
3721 test "$am__universal" = false || continue
3722 ;;
3723 nosideeffect)
3724 # After this tag, mechanisms are not by side-effect, so they'll
3725 # only be used when explicitly requested.
3726 if test "x$enable_dependency_tracking" = xyes; then
3727 continue
3728 else
3729 break
3730 fi
3731 ;;
3732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3733 # This compiler won't grok '-c -o', but also, the minuso test has
3734 # not run yet. These depmodes are late enough in the game, and
3735 # so weak that their functioning should not be impacted.
3736 am__obj=conftest.${OBJEXT-o}
3737 am__minus_obj=
3738 ;;
3739 none) break ;;
3740 esac
3741 if depmode=$depmode \
3742 source=sub/conftest.c object=$am__obj \
3743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3745 >/dev/null 2>conftest.err &&
3746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3750 # icc doesn't choke on unknown options, it will just issue warnings
3751 # or remarks (even with -Werror). So we grep stderr for any message
3752 # that says an option was ignored or not supported.
3753 # When given -MP, icc 7.0 and 7.1 complain thusly:
3754 # icc: Command line warning: ignoring option '-M'; no argument required
3755 # The diagnosis changed in icc 8.0:
3756 # icc: Command line remark: option '-MP' not supported
3757 if (grep 'ignoring option' conftest.err ||
3758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3759 am_cv_CXX_dependencies_compiler_type=$depmode
3760 break
3761 fi
3762 fi
3763 done
3764
3765 cd ..
3766 rm -rf conftest.dir
3767 else
3768 am_cv_CXX_dependencies_compiler_type=none
3769 fi
3770
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3773 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3774 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3775
3776 if
3777 test "x$enable_dependency_tracking" != xno \
3778 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3779 am__fastdepCXX_TRUE=
3780 am__fastdepCXX_FALSE='#'
3781 else
3782 am__fastdepCXX_TRUE='#'
3783 am__fastdepCXX_FALSE=
3784 fi
3785
3786
3787 ac_ext=mm
3788 ac_cpp='$OBJCXXCPP $CPPFLAGS'
3789 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3792 if test -n "$ac_tool_prefix"; then
3793 for ac_prog in g++ objc++ objcxx c++ CXX
3794 do
3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_OBJCXX+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$OBJCXX"; then
3803 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 OBJCXX=$ac_cv_prog_OBJCXX
3823 if test -n "$OBJCXX"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3825 $as_echo "$OBJCXX" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831
3832 test -n "$OBJCXX" && break
3833 done
3834 fi
3835 if test -z "$OBJCXX"; then
3836 ac_ct_OBJCXX=$OBJCXX
3837 for ac_prog in g++ objc++ objcxx c++ CXX
3838 do
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840 set dummy $ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 if test -n "$ac_ct_OBJCXX"; then
3847 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860 done
3861 done
3862 IFS=$as_save_IFS
3863
3864 fi
3865 fi
3866 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3867 if test -n "$ac_ct_OBJCXX"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3869 $as_echo "$ac_ct_OBJCXX" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 fi
3874
3875
3876 test -n "$ac_ct_OBJCXX" && break
3877 done
3878
3879 if test "x$ac_ct_OBJCXX" = x; then
3880 OBJCXX="g++"
3881 else
3882 case $cross_compiling:$ac_tool_warned in
3883 yes:)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886 ac_tool_warned=yes ;;
3887 esac
3888 OBJCXX=$ac_ct_OBJCXX
3889 fi
3890 fi
3891
3892 # Provide some information about the compiler.
3893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3894 set X $ac_compile
3895 ac_compiler=$2
3896 for ac_option in --version -v -V -qversion; do
3897 { { ac_try="$ac_compiler $ac_option >&5"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3905 ac_status=$?
3906 if test -s conftest.err; then
3907 sed '10a\
3908 ... rest of stderr output deleted ...
3909 10q' conftest.err >conftest.er1
3910 cat conftest.er1 >&5
3911 fi
3912 rm -f conftest.er1 conftest.err
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }
3915 done
3916
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3918 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3919 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924
3925 int
3926 main ()
3927 {
3928 #ifndef __GNUC__
3929 choke me
3930 #endif
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_objcxx_try_compile "$LINENO"; then :
3937 ac_compiler_gnu=yes
3938 else
3939 ac_compiler_gnu=no
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
3943
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3946 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3947 if test $ac_compiler_gnu = yes; then
3948 GOBJCXX=yes
3949 else
3950 GOBJCXX=
3951 fi
3952 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3953 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3955 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3956 if ${ac_cv_prog_objcxx_g+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3960 ac_objcxx_werror_flag=yes
3961 ac_cv_prog_objcxx_g=no
3962 OBJCXXFLAGS="-g"
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965
3966 int
3967 main ()
3968 {
3969
3970 ;
3971 return 0;
3972 }
3973 _ACEOF
3974 if ac_fn_objcxx_try_compile "$LINENO"; then :
3975 ac_cv_prog_objcxx_g=yes
3976 else
3977 OBJCXXFLAGS=""
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980
3981 int
3982 main ()
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 if ac_fn_objcxx_try_compile "$LINENO"; then :
3990
3991 else
3992 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3993 OBJCXXFLAGS="-g"
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_objcxx_try_compile "$LINENO"; then :
4006 ac_cv_prog_objcxx_g=yes
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4016 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4017 if test "$ac_test_OBJCXXFLAGS" = set; then
4018 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4019 elif test $ac_cv_prog_objcxx_g = yes; then
4020 if test "$GOBJCXX" = yes; then
4021 OBJCXXFLAGS="-g -O2"
4022 else
4023 OBJCXXFLAGS="-g"
4024 fi
4025 else
4026 if test "$GOBJCXX" = yes; then
4027 OBJCXXFLAGS="-O2"
4028 else
4029 OBJCXXFLAGS=
4030 fi
4031 fi
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named 'D' -- because '-MD' means "put the output
4050 # in D".
4051 rm -rf conftest.dir
4052 mkdir conftest.dir
4053 # Copy depcomp to subdir because otherwise we won't find it if we're
4054 # using a relative directory.
4055 cp "$am_depcomp" conftest.dir
4056 cd conftest.dir
4057 # We will build objects and dependencies in a subdirectory because
4058 # it helps to detect inapplicable dependency modes. For instance
4059 # both Tru64's cc and ICC support -MD to output dependencies as a
4060 # side effect of compilation, but ICC will put the dependencies in
4061 # the current directory while Tru64 will put them in the object
4062 # directory.
4063 mkdir sub
4064
4065 am_cv_OBJCXX_dependencies_compiler_type=none
4066 if test "$am_compiler_list" = ""; then
4067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 fi
4069 am__universal=false
4070
4071
4072 for depmode in $am_compiler_list; do
4073 # Setup a source with many dependencies, because some compilers
4074 # like to wrap large dependency lists on column 80 (with \), and
4075 # we should not choose a depcomp mode which is confused by this.
4076 #
4077 # We need to recreate these files for each test, as the compiler may
4078 # overwrite some of them when testing with obscure command lines.
4079 # This happens at least with the AIX C compiler.
4080 : > sub/conftest.c
4081 for i in 1 2 3 4 5 6; do
4082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4084 # Solaris 10 /bin/sh.
4085 echo '/* dummy */' > sub/conftst$i.h
4086 done
4087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4088
4089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4090 # mode. It turns out that the SunPro C++ compiler does not properly
4091 # handle '-M -o', and we need to detect this. Also, some Intel
4092 # versions had trouble with output in subdirs.
4093 am__obj=sub/conftest.${OBJEXT-o}
4094 am__minus_obj="-o $am__obj"
4095 case $depmode in
4096 gcc)
4097 # This depmode causes a compiler race in universal mode.
4098 test "$am__universal" = false || continue
4099 ;;
4100 nosideeffect)
4101 # After this tag, mechanisms are not by side-effect, so they'll
4102 # only be used when explicitly requested.
4103 if test "x$enable_dependency_tracking" = xyes; then
4104 continue
4105 else
4106 break
4107 fi
4108 ;;
4109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4110 # This compiler won't grok '-c -o', but also, the minuso test has
4111 # not run yet. These depmodes are late enough in the game, and
4112 # so weak that their functioning should not be impacted.
4113 am__obj=conftest.${OBJEXT-o}
4114 am__minus_obj=
4115 ;;
4116 none) break ;;
4117 esac
4118 if depmode=$depmode \
4119 source=sub/conftest.c object=$am__obj \
4120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4122 >/dev/null 2>conftest.err &&
4123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4127 # icc doesn't choke on unknown options, it will just issue warnings
4128 # or remarks (even with -Werror). So we grep stderr for any message
4129 # that says an option was ignored or not supported.
4130 # When given -MP, icc 7.0 and 7.1 complain thusly:
4131 # icc: Command line warning: ignoring option '-M'; no argument required
4132 # The diagnosis changed in icc 8.0:
4133 # icc: Command line remark: option '-MP' not supported
4134 if (grep 'ignoring option' conftest.err ||
4135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4136 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4137 break
4138 fi
4139 fi
4140 done
4141
4142 cd ..
4143 rm -rf conftest.dir
4144 else
4145 am_cv_OBJCXX_dependencies_compiler_type=none
4146 fi
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4150 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4151 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4152
4153 if
4154 test "x$enable_dependency_tracking" != xno \
4155 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4156 am__fastdepOBJCXX_TRUE=
4157 am__fastdepOBJCXX_FALSE='#'
4158 else
4159 am__fastdepOBJCXX_TRUE='#'
4160 am__fastdepOBJCXX_FALSE=
4161 fi
4162
4163
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CC+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC="$CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 CC=$ac_cv_prog_CC
4198 if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 $as_echo "$CC" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207 fi
4208 if test -z "$ac_cv_prog_CC"; then
4209 ac_ct_CC=$CC
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211 set dummy gcc; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_CC="gcc"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231 done
4232 done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4240 $as_echo "$ac_ct_CC" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246 if test "x$ac_ct_CC" = x; then
4247 CC=""
4248 else
4249 case $cross_compiling:$ac_tool_warned in
4250 yes:)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255 CC=$ac_ct_CC
4256 fi
4257 else
4258 CC="$ac_cv_prog_CC"
4259 fi
4260
4261 if test -z "$CC"; then
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}cc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC="${ac_tool_prefix}cc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300 fi
4301 fi
4302 if test -z "$CC"; then
4303 # Extract the first word of "cc", so it can be a program name with args.
4304 set dummy cc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_CC+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312 else
4313 ac_prog_rejected=no
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4322 ac_prog_rejected=yes
4323 continue
4324 fi
4325 ac_cv_prog_CC="cc"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 if test $ac_prog_rejected = yes; then
4334 # We found a bogon in the path, so make sure we never use it.
4335 set dummy $ac_cv_prog_CC
4336 shift
4337 if test $# != 0; then
4338 # We chose a different compiler from the bogus one.
4339 # However, it has the same basename, so the bogon will be chosen
4340 # first if we set CC to just the basename; use the full file name.
4341 shift
4342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4343 fi
4344 fi
4345 fi
4346 fi
4347 CC=$ac_cv_prog_CC
4348 if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356
4357 fi
4358 if test -z "$CC"; then
4359 if test -n "$ac_tool_prefix"; then
4360 for ac_prog in cl.exe
4361 do
4362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_CC+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399 test -n "$CC" && break
4400 done
4401 fi
4402 if test -z "$CC"; then
4403 ac_ct_CC=$CC
4404 for ac_prog in cl.exe
4405 do
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy $ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$ac_ct_CC"; then
4414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_ac_ct_CC="$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431 fi
4432 fi
4433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4434 if test -n "$ac_ct_CC"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4436 $as_echo "$ac_ct_CC" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4440 fi
4441
4442
4443 test -n "$ac_ct_CC" && break
4444 done
4445
4446 if test "x$ac_ct_CC" = x; then
4447 CC=""
4448 else
4449 case $cross_compiling:$ac_tool_warned in
4450 yes:)
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4453 ac_tool_warned=yes ;;
4454 esac
4455 CC=$ac_ct_CC
4456 fi
4457 fi
4458
4459 fi
4460
4461
4462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error $? "no acceptable C compiler found in \$PATH
4465 See \`config.log' for more details" "$LINENO" 5; }
4466
4467 # Provide some information about the compiler.
4468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4469 set X $ac_compile
4470 ac_compiler=$2
4471 for ac_option in --version -v -V -qversion; do
4472 { { ac_try="$ac_compiler $ac_option >&5"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4480 ac_status=$?
4481 if test -s conftest.err; then
4482 sed '10a\
4483 ... rest of stderr output deleted ...
4484 10q' conftest.err >conftest.er1
4485 cat conftest.er1 >&5
4486 fi
4487 rm -f conftest.er1 conftest.err
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4490 done
4491
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4494 if ${ac_cv_c_compiler_gnu+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499
4500 int
4501 main ()
4502 {
4503 #ifndef __GNUC__
4504 choke me
4505 #endif
4506
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 if ac_fn_c_try_compile "$LINENO"; then :
4512 ac_compiler_gnu=yes
4513 else
4514 ac_compiler_gnu=no
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4518
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4522 if test $ac_compiler_gnu = yes; then
4523 GCC=yes
4524 else
4525 GCC=
4526 fi
4527 ac_test_CFLAGS=${CFLAGS+set}
4528 ac_save_CFLAGS=$CFLAGS
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4531 if ${ac_cv_prog_cc_g+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 ac_save_c_werror_flag=$ac_c_werror_flag
4535 ac_c_werror_flag=yes
4536 ac_cv_prog_cc_g=no
4537 CFLAGS="-g"
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540
4541 int
4542 main ()
4543 {
4544
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_cv_prog_cc_g=yes
4551 else
4552 CFLAGS=""
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555
4556 int
4557 main ()
4558 {
4559
4560 ;
4561 return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565
4566 else
4567 ac_c_werror_flag=$ac_save_c_werror_flag
4568 CFLAGS="-g"
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571
4572 int
4573 main ()
4574 {
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_prog_cc_g=yes
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_c_werror_flag=$ac_save_c_werror_flag
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4591 $as_echo "$ac_cv_prog_cc_g" >&6; }
4592 if test "$ac_test_CFLAGS" = set; then
4593 CFLAGS=$ac_save_CFLAGS
4594 elif test $ac_cv_prog_cc_g = yes; then
4595 if test "$GCC" = yes; then
4596 CFLAGS="-g -O2"
4597 else
4598 CFLAGS="-g"
4599 fi
4600 else
4601 if test "$GCC" = yes; then
4602 CFLAGS="-O2"
4603 else
4604 CFLAGS=
4605 fi
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4609 if ${ac_cv_prog_cc_c89+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 ac_cv_prog_cc_c89=no
4613 ac_save_CC=$CC
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <stdarg.h>
4617 #include <stdio.h>
4618 struct stat;
4619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4620 struct buf { int x; };
4621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4622 static char *e (p, i)
4623 char **p;
4624 int i;
4625 {
4626 return p[i];
4627 }
4628 static char *f (char * (*g) (char **, int), char **p, ...)
4629 {
4630 char *s;
4631 va_list v;
4632 va_start (v,p);
4633 s = g (p, va_arg (v,int));
4634 va_end (v);
4635 return s;
4636 }
4637
4638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4639 function prototypes and stuff, but not '\xHH' hex character constants.
4640 These don't provoke an error unfortunately, instead are silently treated
4641 as 'x'. The following induces an error, until -std is added to get
4642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4643 array size at least. It's necessary to write '\x00'==0 to get something
4644 that's true only with -std. */
4645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4646
4647 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4648 inside strings and character constants. */
4649 #define FOO(x) 'x'
4650 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4651
4652 int test (int i, double x);
4653 struct s1 {int (*f) (int a);};
4654 struct s2 {int (*f) (double a);};
4655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4656 int argc;
4657 char **argv;
4658 int
4659 main ()
4660 {
4661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4668 do
4669 CC="$ac_save_CC $ac_arg"
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 ac_cv_prog_cc_c89=$ac_arg
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext
4674 test "x$ac_cv_prog_cc_c89" != "xno" && break
4675 done
4676 rm -f conftest.$ac_ext
4677 CC=$ac_save_CC
4678
4679 fi
4680 # AC_CACHE_VAL
4681 case "x$ac_cv_prog_cc_c89" in
4682 x)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4684 $as_echo "none needed" >&6; } ;;
4685 xno)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4687 $as_echo "unsupported" >&6; } ;;
4688 *)
4689 CC="$CC $ac_cv_prog_cc_c89"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4692 esac
4693 if test "x$ac_cv_prog_cc_c89" != xno; then :
4694
4695 fi
4696
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702
4703 depcc="$CC" am_compiler_list=
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4706 $as_echo_n "checking dependency style of $depcc... " >&6; }
4707 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4711 # We make a subdir and do the tests there. Otherwise we can end up
4712 # making bogus files that we don't know about and never remove. For
4713 # instance it was reported that on HP-UX the gcc test will end up
4714 # making a dummy file named 'D' -- because '-MD' means "put the output
4715 # in D".
4716 rm -rf conftest.dir
4717 mkdir conftest.dir
4718 # Copy depcomp to subdir because otherwise we won't find it if we're
4719 # using a relative directory.
4720 cp "$am_depcomp" conftest.dir
4721 cd conftest.dir
4722 # We will build objects and dependencies in a subdirectory because
4723 # it helps to detect inapplicable dependency modes. For instance
4724 # both Tru64's cc and ICC support -MD to output dependencies as a
4725 # side effect of compilation, but ICC will put the dependencies in
4726 # the current directory while Tru64 will put them in the object
4727 # directory.
4728 mkdir sub
4729
4730 am_cv_CC_dependencies_compiler_type=none
4731 if test "$am_compiler_list" = ""; then
4732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4733 fi
4734 am__universal=false
4735 case " $depcc " in #(
4736 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4737 esac
4738
4739 for depmode in $am_compiler_list; do
4740 # Setup a source with many dependencies, because some compilers
4741 # like to wrap large dependency lists on column 80 (with \), and
4742 # we should not choose a depcomp mode which is confused by this.
4743 #
4744 # We need to recreate these files for each test, as the compiler may
4745 # overwrite some of them when testing with obscure command lines.
4746 # This happens at least with the AIX C compiler.
4747 : > sub/conftest.c
4748 for i in 1 2 3 4 5 6; do
4749 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4750 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4751 # Solaris 10 /bin/sh.
4752 echo '/* dummy */' > sub/conftst$i.h
4753 done
4754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4755
4756 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4757 # mode. It turns out that the SunPro C++ compiler does not properly
4758 # handle '-M -o', and we need to detect this. Also, some Intel
4759 # versions had trouble with output in subdirs.
4760 am__obj=sub/conftest.${OBJEXT-o}
4761 am__minus_obj="-o $am__obj"
4762 case $depmode in
4763 gcc)
4764 # This depmode causes a compiler race in universal mode.
4765 test "$am__universal" = false || continue
4766 ;;
4767 nosideeffect)
4768 # After this tag, mechanisms are not by side-effect, so they'll
4769 # only be used when explicitly requested.
4770 if test "x$enable_dependency_tracking" = xyes; then
4771 continue
4772 else
4773 break
4774 fi
4775 ;;
4776 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4777 # This compiler won't grok '-c -o', but also, the minuso test has
4778 # not run yet. These depmodes are late enough in the game, and
4779 # so weak that their functioning should not be impacted.
4780 am__obj=conftest.${OBJEXT-o}
4781 am__minus_obj=
4782 ;;
4783 none) break ;;
4784 esac
4785 if depmode=$depmode \
4786 source=sub/conftest.c object=$am__obj \
4787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4789 >/dev/null 2>conftest.err &&
4790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4794 # icc doesn't choke on unknown options, it will just issue warnings
4795 # or remarks (even with -Werror). So we grep stderr for any message
4796 # that says an option was ignored or not supported.
4797 # When given -MP, icc 7.0 and 7.1 complain thusly:
4798 # icc: Command line warning: ignoring option '-M'; no argument required
4799 # The diagnosis changed in icc 8.0:
4800 # icc: Command line remark: option '-MP' not supported
4801 if (grep 'ignoring option' conftest.err ||
4802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4803 am_cv_CC_dependencies_compiler_type=$depmode
4804 break
4805 fi
4806 fi
4807 done
4808
4809 cd ..
4810 rm -rf conftest.dir
4811 else
4812 am_cv_CC_dependencies_compiler_type=none
4813 fi
4814
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4817 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4819
4820 if
4821 test "x$enable_dependency_tracking" != xno \
4822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4823 am__fastdepCC_TRUE=
4824 am__fastdepCC_FALSE='#'
4825 else
4826 am__fastdepCC_TRUE='#'
4827 am__fastdepCC_FALSE=
4828 fi
4829
4830
4831
4832 if test -n "$ac_tool_prefix"; then
4833 for ac_prog in ar lib "link -lib"
4834 do
4835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_AR+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$AR"; then
4843 ac_cv_prog_AR="$AR" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856 done
4857 done
4858 IFS=$as_save_IFS
4859
4860 fi
4861 fi
4862 AR=$ac_cv_prog_AR
4863 if test -n "$AR"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4865 $as_echo "$AR" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 fi
4870
4871
4872 test -n "$AR" && break
4873 done
4874 fi
4875 if test -z "$AR"; then
4876 ac_ct_AR=$AR
4877 for ac_prog in ar lib "link -lib"
4878 do
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880 set dummy $ac_prog; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$ac_ct_AR"; then
4887 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_ac_ct_AR="$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4899 fi
4900 done
4901 done
4902 IFS=$as_save_IFS
4903
4904 fi
4905 fi
4906 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4907 if test -n "$ac_ct_AR"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4909 $as_echo "$ac_ct_AR" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916 test -n "$ac_ct_AR" && break
4917 done
4918
4919 if test "x$ac_ct_AR" = x; then
4920 AR="false"
4921 else
4922 case $cross_compiling:$ac_tool_warned in
4923 yes:)
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926 ac_tool_warned=yes ;;
4927 esac
4928 AR=$ac_ct_AR
4929 fi
4930 fi
4931
4932 : ${AR=ar}
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4935 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4936 if ${am_cv_ar_interface+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 am_cv_ar_interface=ar
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 int some_variable = 0;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4947 (eval $am_ar_try) 2>&5
4948 ac_status=$?
4949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; }
4951 if test "$ac_status" -eq 0; then
4952 am_cv_ar_interface=ar
4953 else
4954 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4956 (eval $am_ar_try) 2>&5
4957 ac_status=$?
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }
4960 if test "$ac_status" -eq 0; then
4961 am_cv_ar_interface=lib
4962 else
4963 am_cv_ar_interface=unknown
4964 fi
4965 fi
4966 rm -f conftest.lib libconftest.a
4967
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4973 $as_echo "$am_cv_ar_interface" >&6; }
4974
4975 case $am_cv_ar_interface in
4976 ar)
4977 ;;
4978 lib)
4979 # Microsoft lib, so override with the ar-lib wrapper script.
4980 # FIXME: It is wrong to rewrite AR.
4981 # But if we don't then we get into trouble of one sort or another.
4982 # A longer-term fix would be to have automake use am__AR in this case,
4983 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4984 # similar.
4985 AR="$am_aux_dir/ar-lib $AR"
4986 ;;
4987 unknown)
4988 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4989 ;;
4990 esac
4991
4992
4993
4994 case `pwd` in
4995 *\ * | *\ *)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4997 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4998 esac
4999
5000
5001
5002 macro_version='2.4.2'
5003 macro_revision='1.3337'
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 ltmain="$ac_aux_dir/ltmain.sh"
5018
5019 # Make sure we can run config.sub.
5020 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5021 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5022
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5024 $as_echo_n "checking build system type... " >&6; }
5025 if ${ac_cv_build+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 ac_build_alias=$build_alias
5029 test "x$ac_build_alias" = x &&
5030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5031 test "x$ac_build_alias" = x &&
5032 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5034 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5035
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5038 $as_echo "$ac_cv_build" >&6; }
5039 case $ac_cv_build in
5040 *-*-*) ;;
5041 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5042 esac
5043 build=$ac_cv_build
5044 ac_save_IFS=$IFS; IFS='-'
5045 set x $ac_cv_build
5046 shift
5047 build_cpu=$1
5048 build_vendor=$2
5049 shift; shift
5050 # Remember, the first character of IFS is used to create $*,
5051 # except with old shells:
5052 build_os=$*
5053 IFS=$ac_save_IFS
5054 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5055
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5058 $as_echo_n "checking host system type... " >&6; }
5059 if ${ac_cv_host+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test "x$host_alias" = x; then
5063 ac_cv_host=$ac_cv_build
5064 else
5065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5066 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5067 fi
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5071 $as_echo "$ac_cv_host" >&6; }
5072 case $ac_cv_host in
5073 *-*-*) ;;
5074 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5075 esac
5076 host=$ac_cv_host
5077 ac_save_IFS=$IFS; IFS='-'
5078 set x $ac_cv_host
5079 shift
5080 host_cpu=$1
5081 host_vendor=$2
5082 shift; shift
5083 # Remember, the first character of IFS is used to create $*,
5084 # except with old shells:
5085 host_os=$*
5086 IFS=$ac_save_IFS
5087 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5088
5089
5090 # Backslashify metacharacters that are still active within
5091 # double-quoted strings.
5092 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5093
5094 # Same as above, but do not quote variable references.
5095 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5096
5097 # Sed substitution to delay expansion of an escaped shell variable in a
5098 # double_quote_subst'ed string.
5099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5100
5101 # Sed substitution to delay expansion of an escaped single quote.
5102 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5103
5104 # Sed substitution to avoid accidental globbing in evaled expressions
5105 no_glob_subst='s/\*/\\\*/g'
5106
5107 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5112 $as_echo_n "checking how to print strings... " >&6; }
5113 # Test print first, because it will be a builtin if present.
5114 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5115 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5116 ECHO='print -r --'
5117 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5118 ECHO='printf %s\n'
5119 else
5120 # Use this function as a fallback that always works.
5121 func_fallback_echo ()
5122 {
5123 eval 'cat <<_LTECHO_EOF
5124 $1
5125 _LTECHO_EOF'
5126 }
5127 ECHO='func_fallback_echo'
5128 fi
5129
5130 # func_echo_all arg...
5131 # Invoke $ECHO with all args, space-separated.
5132 func_echo_all ()
5133 {
5134 $ECHO ""
5135 }
5136
5137 case "$ECHO" in
5138 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5139 $as_echo "printf" >&6; } ;;
5140 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5141 $as_echo "print -r" >&6; } ;;
5142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5143 $as_echo "cat" >&6; } ;;
5144 esac
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5160 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5161 if ${ac_cv_path_SED+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5165 for ac_i in 1 2 3 4 5 6 7; do
5166 ac_script="$ac_script$as_nl$ac_script"
5167 done
5168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5169 { ac_script=; unset ac_script;}
5170 if test -z "$SED"; then
5171 ac_path_SED_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in sed gsed; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5181 as_fn_executable_p "$ac_path_SED" || continue
5182 # Check for GNU ac_path_SED and select it if it is found.
5183 # Check for GNU $ac_path_SED
5184 case `"$ac_path_SED" --version 2>&1` in
5185 *GNU*)
5186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5187 *)
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5191 do
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo '' >> "conftest.nl"
5196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_SED_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_SED="$ac_path_SED"
5202 ac_path_SED_max=$ac_count
5203 fi
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5209
5210 $ac_path_SED_found && break 3
5211 done
5212 done
5213 done
5214 IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_SED"; then
5216 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5217 fi
5218 else
5219 ac_cv_path_SED=$SED
5220 fi
5221
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5224 $as_echo "$ac_cv_path_SED" >&6; }
5225 SED="$ac_cv_path_SED"
5226 rm -f conftest.sed
5227
5228 test -z "$SED" && SED=sed
5229 Xsed="$SED -e 1s/^X//"
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5243 if ${ac_cv_path_GREP+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -z "$GREP"; then
5247 ac_path_GREP_found=false
5248 # Loop through the user's path and test for each of PROGNAME-LIST
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5251 do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_prog in grep ggrep; do
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5257 as_fn_executable_p "$ac_path_GREP" || continue
5258 # Check for GNU ac_path_GREP and select it if it is found.
5259 # Check for GNU $ac_path_GREP
5260 case `"$ac_path_GREP" --version 2>&1` in
5261 *GNU*)
5262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5263 *)
5264 ac_count=0
5265 $as_echo_n 0123456789 >"conftest.in"
5266 while :
5267 do
5268 cat "conftest.in" "conftest.in" >"conftest.tmp"
5269 mv "conftest.tmp" "conftest.in"
5270 cp "conftest.in" "conftest.nl"
5271 $as_echo 'GREP' >> "conftest.nl"
5272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5274 as_fn_arith $ac_count + 1 && ac_count=$as_val
5275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5276 # Best one so far, save it but keep looking for a better one
5277 ac_cv_path_GREP="$ac_path_GREP"
5278 ac_path_GREP_max=$ac_count
5279 fi
5280 # 10*(2^10) chars as input seems more than enough
5281 test $ac_count -gt 10 && break
5282 done
5283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5284 esac
5285
5286 $ac_path_GREP_found && break 3
5287 done
5288 done
5289 done
5290 IFS=$as_save_IFS
5291 if test -z "$ac_cv_path_GREP"; then
5292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5293 fi
5294 else
5295 ac_cv_path_GREP=$GREP
5296 fi
5297
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5300 $as_echo "$ac_cv_path_GREP" >&6; }
5301 GREP="$ac_cv_path_GREP"
5302
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5305 $as_echo_n "checking for egrep... " >&6; }
5306 if ${ac_cv_path_EGREP+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5310 then ac_cv_path_EGREP="$GREP -E"
5311 else
5312 if test -z "$EGREP"; then
5313 ac_path_EGREP_found=false
5314 # Loop through the user's path and test for each of PROGNAME-LIST
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_prog in egrep; do
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5323 as_fn_executable_p "$ac_path_EGREP" || continue
5324 # Check for GNU ac_path_EGREP and select it if it is found.
5325 # Check for GNU $ac_path_EGREP
5326 case `"$ac_path_EGREP" --version 2>&1` in
5327 *GNU*)
5328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5329 *)
5330 ac_count=0
5331 $as_echo_n 0123456789 >"conftest.in"
5332 while :
5333 do
5334 cat "conftest.in" "conftest.in" >"conftest.tmp"
5335 mv "conftest.tmp" "conftest.in"
5336 cp "conftest.in" "conftest.nl"
5337 $as_echo 'EGREP' >> "conftest.nl"
5338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5340 as_fn_arith $ac_count + 1 && ac_count=$as_val
5341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5342 # Best one so far, save it but keep looking for a better one
5343 ac_cv_path_EGREP="$ac_path_EGREP"
5344 ac_path_EGREP_max=$ac_count
5345 fi
5346 # 10*(2^10) chars as input seems more than enough
5347 test $ac_count -gt 10 && break
5348 done
5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5350 esac
5351
5352 $ac_path_EGREP_found && break 3
5353 done
5354 done
5355 done
5356 IFS=$as_save_IFS
5357 if test -z "$ac_cv_path_EGREP"; then
5358 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5359 fi
5360 else
5361 ac_cv_path_EGREP=$EGREP
5362 fi
5363
5364 fi
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5367 $as_echo "$ac_cv_path_EGREP" >&6; }
5368 EGREP="$ac_cv_path_EGREP"
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5372 $as_echo_n "checking for fgrep... " >&6; }
5373 if ${ac_cv_path_FGREP+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5377 then ac_cv_path_FGREP="$GREP -F"
5378 else
5379 if test -z "$FGREP"; then
5380 ac_path_FGREP_found=false
5381 # Loop through the user's path and test for each of PROGNAME-LIST
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5384 do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_prog in fgrep; do
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5390 as_fn_executable_p "$ac_path_FGREP" || continue
5391 # Check for GNU ac_path_FGREP and select it if it is found.
5392 # Check for GNU $ac_path_FGREP
5393 case `"$ac_path_FGREP" --version 2>&1` in
5394 *GNU*)
5395 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5396 *)
5397 ac_count=0
5398 $as_echo_n 0123456789 >"conftest.in"
5399 while :
5400 do
5401 cat "conftest.in" "conftest.in" >"conftest.tmp"
5402 mv "conftest.tmp" "conftest.in"
5403 cp "conftest.in" "conftest.nl"
5404 $as_echo 'FGREP' >> "conftest.nl"
5405 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5407 as_fn_arith $ac_count + 1 && ac_count=$as_val
5408 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5409 # Best one so far, save it but keep looking for a better one
5410 ac_cv_path_FGREP="$ac_path_FGREP"
5411 ac_path_FGREP_max=$ac_count
5412 fi
5413 # 10*(2^10) chars as input seems more than enough
5414 test $ac_count -gt 10 && break
5415 done
5416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5417 esac
5418
5419 $ac_path_FGREP_found && break 3
5420 done
5421 done
5422 done
5423 IFS=$as_save_IFS
5424 if test -z "$ac_cv_path_FGREP"; then
5425 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5426 fi
5427 else
5428 ac_cv_path_FGREP=$FGREP
5429 fi
5430
5431 fi
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5434 $as_echo "$ac_cv_path_FGREP" >&6; }
5435 FGREP="$ac_cv_path_FGREP"
5436
5437
5438 test -z "$GREP" && GREP=grep
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 # Check whether --with-gnu-ld was given.
5459 if test "${with_gnu_ld+set}" = set; then :
5460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5461 else
5462 with_gnu_ld=no
5463 fi
5464
5465 ac_prog=ld
5466 if test "$GCC" = yes; then
5467 # Check if gcc -print-prog-name=ld gives a path.
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5469 $as_echo_n "checking for ld used by $CC... " >&6; }
5470 case $host in
5471 *-*-mingw*)
5472 # gcc leaves a trailing carriage return which upsets mingw
5473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5474 *)
5475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5476 esac
5477 case $ac_prog in
5478 # Accept absolute paths.
5479 [\\/]* | ?:[\\/]*)
5480 re_direlt='/[^/][^/]*/\.\./'
5481 # Canonicalize the pathname of ld
5482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5485 done
5486 test -z "$LD" && LD="$ac_prog"
5487 ;;
5488 "")
5489 # If it fails, then pretend we aren't using GCC.
5490 ac_prog=ld
5491 ;;
5492 *)
5493 # If it is relative, then search for the first ld in PATH.
5494 with_gnu_ld=unknown
5495 ;;
5496 esac
5497 elif test "$with_gnu_ld" = yes; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5499 $as_echo_n "checking for GNU ld... " >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5502 $as_echo_n "checking for non-GNU ld... " >&6; }
5503 fi
5504 if ${lt_cv_path_LD+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -z "$LD"; then
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 for ac_dir in $PATH; do
5510 IFS="$lt_save_ifs"
5511 test -z "$ac_dir" && ac_dir=.
5512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5513 lt_cv_path_LD="$ac_dir/$ac_prog"
5514 # Check to see if the program is GNU ld. I'd rather use --version,
5515 # but apparently some variants of GNU ld only accept -v.
5516 # Break only if it was the GNU/non-GNU ld that we prefer.
5517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5518 *GNU* | *'with BFD'*)
5519 test "$with_gnu_ld" != no && break
5520 ;;
5521 *)
5522 test "$with_gnu_ld" != yes && break
5523 ;;
5524 esac
5525 fi
5526 done
5527 IFS="$lt_save_ifs"
5528 else
5529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5530 fi
5531 fi
5532
5533 LD="$lt_cv_path_LD"
5534 if test -n "$LD"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5536 $as_echo "$LD" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5543 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5544 if ${lt_cv_prog_gnu_ld+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5548 case `$LD -v 2>&1 </dev/null` in
5549 *GNU* | *'with BFD'*)
5550 lt_cv_prog_gnu_ld=yes
5551 ;;
5552 *)
5553 lt_cv_prog_gnu_ld=no
5554 ;;
5555 esac
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5558 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5559 with_gnu_ld=$lt_cv_prog_gnu_ld
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5570 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5571 if ${lt_cv_path_NM+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$NM"; then
5575 # Let the user override the test.
5576 lt_cv_path_NM="$NM"
5577 else
5578 lt_nm_to_check="${ac_tool_prefix}nm"
5579 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5580 lt_nm_to_check="$lt_nm_to_check nm"
5581 fi
5582 for lt_tmp_nm in $lt_nm_to_check; do
5583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5584 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5585 IFS="$lt_save_ifs"
5586 test -z "$ac_dir" && ac_dir=.
5587 tmp_nm="$ac_dir/$lt_tmp_nm"
5588 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5589 # Check to see if the nm accepts a BSD-compat flag.
5590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5591 # nm: unknown option "B" ignored
5592 # Tru64's nm complains that /dev/null is an invalid object file
5593 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5594 */dev/null* | *'Invalid file or object type'*)
5595 lt_cv_path_NM="$tmp_nm -B"
5596 break
5597 ;;
5598 *)
5599 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5600 */dev/null*)
5601 lt_cv_path_NM="$tmp_nm -p"
5602 break
5603 ;;
5604 *)
5605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5606 continue # so that we can try to find one that supports BSD flags
5607 ;;
5608 esac
5609 ;;
5610 esac
5611 fi
5612 done
5613 IFS="$lt_save_ifs"
5614 done
5615 : ${lt_cv_path_NM=no}
5616 fi
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5619 $as_echo "$lt_cv_path_NM" >&6; }
5620 if test "$lt_cv_path_NM" != "no"; then
5621 NM="$lt_cv_path_NM"
5622 else
5623 # Didn't find any BSD compatible name lister, look for dumpbin.
5624 if test -n "$DUMPBIN"; then :
5625 # Let the user override the test.
5626 else
5627 if test -n "$ac_tool_prefix"; then
5628 for ac_prog in dumpbin "link -dump"
5629 do
5630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_prog_DUMPBIN+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$DUMPBIN"; then
5638 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 DUMPBIN=$ac_cv_prog_DUMPBIN
5658 if test -n "$DUMPBIN"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5660 $as_echo "$DUMPBIN" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 test -n "$DUMPBIN" && break
5668 done
5669 fi
5670 if test -z "$DUMPBIN"; then
5671 ac_ct_DUMPBIN=$DUMPBIN
5672 for ac_prog in dumpbin "link -dump"
5673 do
5674 # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 set dummy $ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$ac_ct_DUMPBIN"; then
5682 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5702 if test -n "$ac_ct_DUMPBIN"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5704 $as_echo "$ac_ct_DUMPBIN" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 test -n "$ac_ct_DUMPBIN" && break
5712 done
5713
5714 if test "x$ac_ct_DUMPBIN" = x; then
5715 DUMPBIN=":"
5716 else
5717 case $cross_compiling:$ac_tool_warned in
5718 yes:)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721 ac_tool_warned=yes ;;
5722 esac
5723 DUMPBIN=$ac_ct_DUMPBIN
5724 fi
5725 fi
5726
5727 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5728 *COFF*)
5729 DUMPBIN="$DUMPBIN -symbols"
5730 ;;
5731 *)
5732 DUMPBIN=:
5733 ;;
5734 esac
5735 fi
5736
5737 if test "$DUMPBIN" != ":"; then
5738 NM="$DUMPBIN"
5739 fi
5740 fi
5741 test -z "$NM" && NM=nm
5742
5743
5744
5745
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5749 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5750 if ${lt_cv_nm_interface+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 lt_cv_nm_interface="BSD nm"
5754 echo "int some_variable = 0;" > conftest.$ac_ext
5755 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5756 (eval "$ac_compile" 2>conftest.err)
5757 cat conftest.err >&5
5758 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5759 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5760 cat conftest.err >&5
5761 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5762 cat conftest.out >&5
5763 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5764 lt_cv_nm_interface="MS dumpbin"
5765 fi
5766 rm -rf conftest*
5767 fi
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5769 $as_echo "$lt_cv_nm_interface" >&6; }
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5772 $as_echo_n "checking whether ln -s works... " >&6; }
5773 LN_S=$as_ln_s
5774 if test "$LN_S" = "ln -s"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776 $as_echo "yes" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5779 $as_echo "no, using $LN_S" >&6; }
5780 fi
5781
5782 # find the maximum length of command line arguments
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5784 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5785 if ${lt_cv_sys_max_cmd_len+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 i=0
5789 teststring="ABCD"
5790
5791 case $build_os in
5792 msdosdjgpp*)
5793 # On DJGPP, this test can blow up pretty badly due to problems in libc
5794 # (any single argument exceeding 2000 bytes causes a buffer overrun
5795 # during glob expansion). Even if it were fixed, the result of this
5796 # check would be larger than it should be.
5797 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5798 ;;
5799
5800 gnu*)
5801 # Under GNU Hurd, this test is not required because there is
5802 # no limit to the length of command line arguments.
5803 # Libtool will interpret -1 as no limit whatsoever
5804 lt_cv_sys_max_cmd_len=-1;
5805 ;;
5806
5807 cygwin* | mingw* | cegcc*)
5808 # On Win9x/ME, this test blows up -- it succeeds, but takes
5809 # about 5 minutes as the teststring grows exponentially.
5810 # Worse, since 9x/ME are not pre-emptively multitasking,
5811 # you end up with a "frozen" computer, even though with patience
5812 # the test eventually succeeds (with a max line length of 256k).
5813 # Instead, let's just punt: use the minimum linelength reported by
5814 # all of the supported platforms: 8192 (on NT/2K/XP).
5815 lt_cv_sys_max_cmd_len=8192;
5816 ;;
5817
5818 mint*)
5819 # On MiNT this can take a long time and run out of memory.
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
5822
5823 amigaos*)
5824 # On AmigaOS with pdksh, this test takes hours, literally.
5825 # So we just punt and use a minimum line length of 8192.
5826 lt_cv_sys_max_cmd_len=8192;
5827 ;;
5828
5829 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5830 # This has been around since 386BSD, at least. Likely further.
5831 if test -x /sbin/sysctl; then
5832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833 elif test -x /usr/sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5835 else
5836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5837 fi
5838 # And add a safety zone
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841 ;;
5842
5843 interix*)
5844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5845 lt_cv_sys_max_cmd_len=196608
5846 ;;
5847
5848 os2*)
5849 # The test takes a long time on OS/2.
5850 lt_cv_sys_max_cmd_len=8192
5851 ;;
5852
5853 osf*)
5854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5856 # nice to cause kernel panics so lets avoid the loop below.
5857 # First set a reasonable default.
5858 lt_cv_sys_max_cmd_len=16384
5859 #
5860 if test -x /sbin/sysconfig; then
5861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5863 esac
5864 fi
5865 ;;
5866 sco3.2v5*)
5867 lt_cv_sys_max_cmd_len=102400
5868 ;;
5869 sysv5* | sco5v6* | sysv4.2uw2*)
5870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5871 if test -n "$kargmax"; then
5872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5873 else
5874 lt_cv_sys_max_cmd_len=32768
5875 fi
5876 ;;
5877 *)
5878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5879 if test -n "$lt_cv_sys_max_cmd_len"; then
5880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5882 else
5883 # Make teststring a little bigger before we do anything with it.
5884 # a 1K string should be a reasonable start.
5885 for i in 1 2 3 4 5 6 7 8 ; do
5886 teststring=$teststring$teststring
5887 done
5888 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5889 # If test is not a shell built-in, we'll probably end up computing a
5890 # maximum length that is only half of the actual maximum length, but
5891 # we can't tell.
5892 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5893 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5894 test $i != 17 # 1/2 MB should be enough
5895 do
5896 i=`expr $i + 1`
5897 teststring=$teststring$teststring
5898 done
5899 # Only check the string length outside the loop.
5900 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5901 teststring=
5902 # Add a significant safety factor because C++ compilers can tack on
5903 # massive amounts of additional arguments before passing them to the
5904 # linker. It appears as though 1/2 is a usable value.
5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5906 fi
5907 ;;
5908 esac
5909
5910 fi
5911
5912 if test -n $lt_cv_sys_max_cmd_len ; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5914 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5917 $as_echo "none" >&6; }
5918 fi
5919 max_cmd_len=$lt_cv_sys_max_cmd_len
5920
5921
5922
5923
5924
5925
5926 : ${CP="cp -f"}
5927 : ${MV="mv -f"}
5928 : ${RM="rm -f"}
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5931 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5932 # Try some XSI features
5933 xsi_shell=no
5934 ( _lt_dummy="a/b/c"
5935 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5936 = c,a/b,b/c, \
5937 && eval 'test $(( 1 + 1 )) -eq 2 \
5938 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5939 && xsi_shell=yes
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5941 $as_echo "$xsi_shell" >&6; }
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5946 lt_shell_append=no
5947 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5948 >/dev/null 2>&1 \
5949 && lt_shell_append=yes
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5951 $as_echo "$lt_shell_append" >&6; }
5952
5953
5954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5955 lt_unset=unset
5956 else
5957 lt_unset=false
5958 fi
5959
5960
5961
5962
5963
5964 # test EBCDIC or ASCII
5965 case `echo X|tr X '\101'` in
5966 A) # ASCII based system
5967 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5968 lt_SP2NL='tr \040 \012'
5969 lt_NL2SP='tr \015\012 \040\040'
5970 ;;
5971 *) # EBCDIC based system
5972 lt_SP2NL='tr \100 \n'
5973 lt_NL2SP='tr \r\n \100\100'
5974 ;;
5975 esac
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5986 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5987 if ${lt_cv_to_host_file_cmd+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 case $host in
5991 *-*-mingw* )
5992 case $build in
5993 *-*-mingw* ) # actually msys
5994 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5995 ;;
5996 *-*-cygwin* )
5997 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5998 ;;
5999 * ) # otherwise, assume *nix
6000 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6001 ;;
6002 esac
6003 ;;
6004 *-*-cygwin* )
6005 case $build in
6006 *-*-mingw* ) # actually msys
6007 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6008 ;;
6009 *-*-cygwin* )
6010 lt_cv_to_host_file_cmd=func_convert_file_noop
6011 ;;
6012 * ) # otherwise, assume *nix
6013 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6014 ;;
6015 esac
6016 ;;
6017 * ) # unhandled hosts (and "normal" native builds)
6018 lt_cv_to_host_file_cmd=func_convert_file_noop
6019 ;;
6020 esac
6021
6022 fi
6023
6024 to_host_file_cmd=$lt_cv_to_host_file_cmd
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6026 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6027
6028
6029
6030
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6033 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6034 if ${lt_cv_to_tool_file_cmd+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 #assume ordinary cross tools, or native build.
6038 lt_cv_to_tool_file_cmd=func_convert_file_noop
6039 case $host in
6040 *-*-mingw* )
6041 case $build in
6042 *-*-mingw* ) # actually msys
6043 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6044 ;;
6045 esac
6046 ;;
6047 esac
6048
6049 fi
6050
6051 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6053 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6054
6055
6056
6057
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6060 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6061 if ${lt_cv_ld_reload_flag+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 lt_cv_ld_reload_flag='-r'
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6068 reload_flag=$lt_cv_ld_reload_flag
6069 case $reload_flag in
6070 "" | " "*) ;;
6071 *) reload_flag=" $reload_flag" ;;
6072 esac
6073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6074 case $host_os in
6075 cygwin* | mingw* | pw32* | cegcc*)
6076 if test "$GCC" != yes; then
6077 reload_cmds=false
6078 fi
6079 ;;
6080 darwin*)
6081 if test "$GCC" = yes; then
6082 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6083 else
6084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6085 fi
6086 ;;
6087 esac
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_OBJDUMP+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$OBJDUMP"; then
6106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 OBJDUMP=$ac_cv_prog_OBJDUMP
6126 if test -n "$OBJDUMP"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6128 $as_echo "$OBJDUMP" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_OBJDUMP"; then
6137 ac_ct_OBJDUMP=$OBJDUMP
6138 # Extract the first word of "objdump", so it can be a program name with args.
6139 set dummy objdump; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_OBJDUMP"; then
6146 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6166 if test -n "$ac_ct_OBJDUMP"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6168 $as_echo "$ac_ct_OBJDUMP" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174 if test "x$ac_ct_OBJDUMP" = x; then
6175 OBJDUMP="false"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 OBJDUMP=$ac_ct_OBJDUMP
6184 fi
6185 else
6186 OBJDUMP="$ac_cv_prog_OBJDUMP"
6187 fi
6188
6189 test -z "$OBJDUMP" && OBJDUMP=objdump
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6200 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6201 if ${lt_cv_deplibs_check_method+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 lt_cv_file_magic_cmd='$MAGIC_CMD'
6205 lt_cv_file_magic_test_file=
6206 lt_cv_deplibs_check_method='unknown'
6207 # Need to set the preceding variable on all platforms that support
6208 # interlibrary dependencies.
6209 # 'none' -- dependencies not supported.
6210 # `unknown' -- same as none, but documents that we really don't know.
6211 # 'pass_all' -- all dependencies passed with no checks.
6212 # 'test_compile' -- check by making test program.
6213 # 'file_magic [[regex]]' -- check by looking for files in library path
6214 # which responds to the $file_magic_cmd with a given extended regex.
6215 # If you have `file' or equivalent on your system and you're not sure
6216 # whether `pass_all' will *always* work, you probably want this one.
6217
6218 case $host_os in
6219 aix[4-9]*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 beos*)
6224 lt_cv_deplibs_check_method=pass_all
6225 ;;
6226
6227 bsdi[45]*)
6228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6229 lt_cv_file_magic_cmd='/usr/bin/file -L'
6230 lt_cv_file_magic_test_file=/shlib/libc.so
6231 ;;
6232
6233 cygwin*)
6234 # func_win32_libid is a shell function defined in ltmain.sh
6235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236 lt_cv_file_magic_cmd='func_win32_libid'
6237 ;;
6238
6239 mingw* | pw32*)
6240 # Base MSYS/MinGW do not provide the 'file' command needed by
6241 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6242 # unless we find 'file', for example because we are cross-compiling.
6243 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6244 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6246 lt_cv_file_magic_cmd='func_win32_libid'
6247 else
6248 # Keep this pattern in sync with the one in func_win32_libid.
6249 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6250 lt_cv_file_magic_cmd='$OBJDUMP -f'
6251 fi
6252 ;;
6253
6254 cegcc*)
6255 # use the weaker test based on 'objdump'. See mingw*.
6256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6257 lt_cv_file_magic_cmd='$OBJDUMP -f'
6258 ;;
6259
6260 darwin* | rhapsody*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263
6264 freebsd* | dragonfly*)
6265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6266 case $host_cpu in
6267 i*86 )
6268 # Not sure whether the presence of OpenBSD here was a mistake.
6269 # Let's accept both of them until this is cleared up.
6270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6271 lt_cv_file_magic_cmd=/usr/bin/file
6272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6273 ;;
6274 esac
6275 else
6276 lt_cv_deplibs_check_method=pass_all
6277 fi
6278 ;;
6279
6280 gnu*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 haiku*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287
6288 hpux10.20* | hpux11*)
6289 lt_cv_file_magic_cmd=/usr/bin/file
6290 case $host_cpu in
6291 ia64*)
6292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6293 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6294 ;;
6295 hppa*64*)
6296 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]'
6297 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6298 ;;
6299 *)
6300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6301 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6302 ;;
6303 esac
6304 ;;
6305
6306 interix[3-9]*)
6307 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6309 ;;
6310
6311 irix5* | irix6* | nonstopux*)
6312 case $LD in
6313 *-32|*"-32 ") libmagic=32-bit;;
6314 *-n32|*"-n32 ") libmagic=N32;;
6315 *-64|*"-64 ") libmagic=64-bit;;
6316 *) libmagic=never-match;;
6317 esac
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320
6321 # This must be glibc/ELF.
6322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326 netbsd*)
6327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6329 else
6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6331 fi
6332 ;;
6333
6334 newos6*)
6335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6336 lt_cv_file_magic_cmd=/usr/bin/file
6337 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6338 ;;
6339
6340 *nto* | *qnx*)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
6343
6344 openbsd*)
6345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6347 else
6348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6349 fi
6350 ;;
6351
6352 osf3* | osf4* | osf5*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356 rdos*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359
6360 solaris*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 sysv4 | sysv4.3*)
6369 case $host_vendor in
6370 motorola)
6371 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]'
6372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6373 ;;
6374 ncr)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377 sequent)
6378 lt_cv_file_magic_cmd='/bin/file'
6379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6380 ;;
6381 sni)
6382 lt_cv_file_magic_cmd='/bin/file'
6383 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6384 lt_cv_file_magic_test_file=/lib/libc.so
6385 ;;
6386 siemens)
6387 lt_cv_deplibs_check_method=pass_all
6388 ;;
6389 pc)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392 esac
6393 ;;
6394
6395 tpf*)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
6398 esac
6399
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6402 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6403
6404 file_magic_glob=
6405 want_nocaseglob=no
6406 if test "$build" = "$host"; then
6407 case $host_os in
6408 mingw* | pw32*)
6409 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6410 want_nocaseglob=yes
6411 else
6412 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6413 fi
6414 ;;
6415 esac
6416 fi
6417
6418 file_magic_cmd=$lt_cv_file_magic_cmd
6419 deplibs_check_method=$lt_cv_deplibs_check_method
6420 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_DLLTOOL+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$DLLTOOL"; then
6452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 DLLTOOL=$ac_cv_prog_DLLTOOL
6472 if test -n "$DLLTOOL"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6474 $as_echo "$DLLTOOL" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480
6481 fi
6482 if test -z "$ac_cv_prog_DLLTOOL"; then
6483 ac_ct_DLLTOOL=$DLLTOOL
6484 # Extract the first word of "dlltool", so it can be a program name with args.
6485 set dummy dlltool; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 if test -n "$ac_ct_DLLTOOL"; then
6492 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6512 if test -n "$ac_ct_DLLTOOL"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6514 $as_echo "$ac_ct_DLLTOOL" >&6; }
6515 else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520 if test "x$ac_ct_DLLTOOL" = x; then
6521 DLLTOOL="false"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529 DLLTOOL=$ac_ct_DLLTOOL
6530 fi
6531 else
6532 DLLTOOL="$ac_cv_prog_DLLTOOL"
6533 fi
6534
6535 test -z "$DLLTOOL" && DLLTOOL=dlltool
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6547 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6548 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 lt_cv_sharedlib_from_linklib_cmd='unknown'
6552
6553 case $host_os in
6554 cygwin* | mingw* | pw32* | cegcc*)
6555 # two different shell functions defined in ltmain.sh
6556 # decide which to use based on capabilities of $DLLTOOL
6557 case `$DLLTOOL --help 2>&1` in
6558 *--identify-strict*)
6559 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6560 ;;
6561 *)
6562 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6563 ;;
6564 esac
6565 ;;
6566 *)
6567 # fallback: assume linklib IS sharedlib
6568 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6569 ;;
6570 esac
6571
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6574 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6575 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6576 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6577
6578
6579
6580
6581
6582
6583
6584 if test -n "$ac_tool_prefix"; then
6585 for ac_prog in ar
6586 do
6587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_AR+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 AR=$ac_cv_prog_AR
6615 if test -n "$AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6617 $as_echo "$AR" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624 test -n "$AR" && break
6625 done
6626 fi
6627 if test -z "$AR"; then
6628 ac_ct_AR=$AR
6629 for ac_prog in ar
6630 do
6631 # Extract the first word of "$ac_prog", so it can be a program name with args.
6632 set dummy $ac_prog; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$ac_ct_AR"; then
6639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_ac_ct_AR="$ac_prog"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6659 if test -n "$ac_ct_AR"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6661 $as_echo "$ac_ct_AR" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668 test -n "$ac_ct_AR" && break
6669 done
6670
6671 if test "x$ac_ct_AR" = x; then
6672 AR="false"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 AR=$ac_ct_AR
6681 fi
6682 fi
6683
6684 : ${AR=ar}
6685 : ${AR_FLAGS=cru}
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6698 $as_echo_n "checking for archiver @FILE support... " >&6; }
6699 if ${lt_cv_ar_at_file+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 lt_cv_ar_at_file=no
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705
6706 int
6707 main ()
6708 {
6709
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 echo conftest.$ac_objext > conftest.lst
6716 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6718 (eval $lt_ar_try) 2>&5
6719 ac_status=$?
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }
6722 if test "$ac_status" -eq 0; then
6723 # Ensure the archiver fails upon bogus file names.
6724 rm -f conftest.$ac_objext libconftest.a
6725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6726 (eval $lt_ar_try) 2>&5
6727 ac_status=$?
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; }
6730 if test "$ac_status" -ne 0; then
6731 lt_cv_ar_at_file=@
6732 fi
6733 fi
6734 rm -f conftest.* libconftest.a
6735
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6741 $as_echo "$lt_cv_ar_at_file" >&6; }
6742
6743 if test "x$lt_cv_ar_at_file" = xno; then
6744 archiver_list_spec=
6745 else
6746 archiver_list_spec=$lt_cv_ar_at_file
6747 fi
6748
6749
6750
6751
6752
6753
6754
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}strip; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_STRIP+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$STRIP"; then
6764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 STRIP=$ac_cv_prog_STRIP
6784 if test -n "$STRIP"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6786 $as_echo "$STRIP" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_prog_STRIP"; then
6795 ac_ct_STRIP=$STRIP
6796 # Extract the first word of "strip", so it can be a program name with args.
6797 set dummy strip; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$ac_ct_STRIP"; then
6804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_STRIP="strip"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6824 if test -n "$ac_ct_STRIP"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6826 $as_echo "$ac_ct_STRIP" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832 if test "x$ac_ct_STRIP" = x; then
6833 STRIP=":"
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839 ac_tool_warned=yes ;;
6840 esac
6841 STRIP=$ac_ct_STRIP
6842 fi
6843 else
6844 STRIP="$ac_cv_prog_STRIP"
6845 fi
6846
6847 test -z "$STRIP" && STRIP=:
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_RANLIB+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$RANLIB"; then
6863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6885 $as_echo "$RANLIB" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894 ac_ct_RANLIB=$RANLIB
6895 # Extract the first word of "ranlib", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 if test -n "$ac_ct_RANLIB"; then
6903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_RANLIB="ranlib"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6925 $as_echo "$ac_ct_RANLIB" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931 if test "x$ac_ct_RANLIB" = x; then
6932 RANLIB=":"
6933 else
6934 case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940 RANLIB=$ac_ct_RANLIB
6941 fi
6942 else
6943 RANLIB="$ac_cv_prog_RANLIB"
6944 fi
6945
6946 test -z "$RANLIB" && RANLIB=:
6947
6948
6949
6950
6951
6952
6953 # Determine commands to create old-style static archives.
6954 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6955 old_postinstall_cmds='chmod 644 $oldlib'
6956 old_postuninstall_cmds=
6957
6958 if test -n "$RANLIB"; then
6959 case $host_os in
6960 openbsd*)
6961 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6962 ;;
6963 *)
6964 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6965 ;;
6966 esac
6967 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6968 fi
6969
6970 case $host_os in
6971 darwin*)
6972 lock_old_archive_extraction=yes ;;
6973 *)
6974 lock_old_archive_extraction=no ;;
6975 esac
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 # If no C compiler was specified, use CC.
7016 LTCC=${LTCC-"$CC"}
7017
7018 # If no C compiler flags were specified, use CFLAGS.
7019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7020
7021 # Allow CC to be a program name with arguments.
7022 compiler=$CC
7023
7024
7025 # Check for command to grab the raw symbol name followed by C symbol from nm.
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7027 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7028 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031
7032 # These are sane defaults that work on at least a few old systems.
7033 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7034
7035 # Character class describing NM global symbol codes.
7036 symcode='[BCDEGRST]'
7037
7038 # Regexp to match symbols that can be accessed directly from C.
7039 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7040
7041 # Define system-specific variables.
7042 case $host_os in
7043 aix*)
7044 symcode='[BCDT]'
7045 ;;
7046 cygwin* | mingw* | pw32* | cegcc*)
7047 symcode='[ABCDGISTW]'
7048 ;;
7049 hpux*)
7050 if test "$host_cpu" = ia64; then
7051 symcode='[ABCDEGRST]'
7052 fi
7053 ;;
7054 irix* | nonstopux*)
7055 symcode='[BCDEGRST]'
7056 ;;
7057 osf*)
7058 symcode='[BCDEGQRST]'
7059 ;;
7060 solaris*)
7061 symcode='[BDRT]'
7062 ;;
7063 sco3.2v5*)
7064 symcode='[DT]'
7065 ;;
7066 sysv4.2uw2*)
7067 symcode='[DT]'
7068 ;;
7069 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7070 symcode='[ABDT]'
7071 ;;
7072 sysv4)
7073 symcode='[DFNSTU]'
7074 ;;
7075 esac
7076
7077 # If we're using GNU nm, then use its standard symbol codes.
7078 case `$NM -V 2>&1` in
7079 *GNU* | *'with BFD'*)
7080 symcode='[ABCDGIRSTW]' ;;
7081 esac
7082
7083 # Transform an extracted symbol line into a proper C declaration.
7084 # Some systems (esp. on ia64) link data and code symbols differently,
7085 # so use this general approach.
7086 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7087
7088 # Transform an extracted symbol line into symbol name and symbol address
7089 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7091
7092 # Handle CRLF in mingw tool chain
7093 opt_cr=
7094 case $build_os in
7095 mingw*)
7096 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7097 ;;
7098 esac
7099
7100 # Try without a prefix underscore, then with it.
7101 for ac_symprfx in "" "_"; do
7102
7103 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7104 symxfrm="\\1 $ac_symprfx\\2 \\2"
7105
7106 # Write the raw and C identifiers.
7107 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7108 # Fake it for dumpbin and say T for any non-static function
7109 # and D for any global variable.
7110 # Also find C++ and __fastcall symbols from MSVC++,
7111 # which start with @ or ?.
7112 lt_cv_sys_global_symbol_pipe="$AWK '"\
7113 " {last_section=section; section=\$ 3};"\
7114 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7115 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7116 " \$ 0!~/External *\|/{next};"\
7117 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7118 " {if(hide[section]) next};"\
7119 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7120 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7121 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7122 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7123 " ' prfx=^$ac_symprfx"
7124 else
7125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7126 fi
7127 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7128
7129 # Check to see that the pipe works correctly.
7130 pipe_works=no
7131
7132 rm -rf conftest*
7133 cat > conftest.$ac_ext <<_LT_EOF
7134 #ifdef __cplusplus
7135 extern "C" {
7136 #endif
7137 char nm_test_var;
7138 void nm_test_func(void);
7139 void nm_test_func(void){}
7140 #ifdef __cplusplus
7141 }
7142 #endif
7143 int main(){nm_test_var='a';nm_test_func();return(0);}
7144 _LT_EOF
7145
7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }; then
7151 # Now try to grab the symbols.
7152 nlist=conftest.nm
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7154 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7155 ac_status=$?
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; } && test -s "$nlist"; then
7158 # Try sorting and uniquifying the output.
7159 if sort "$nlist" | uniq > "$nlist"T; then
7160 mv -f "$nlist"T "$nlist"
7161 else
7162 rm -f "$nlist"T
7163 fi
7164
7165 # Make sure that we snagged all the symbols we need.
7166 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7167 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7168 cat <<_LT_EOF > conftest.$ac_ext
7169 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7170 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7171 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7172 relocations are performed -- see ld's documentation on pseudo-relocs. */
7173 # define LT_DLSYM_CONST
7174 #elif defined(__osf__)
7175 /* This system does not cope well with relocations in const data. */
7176 # define LT_DLSYM_CONST
7177 #else
7178 # define LT_DLSYM_CONST const
7179 #endif
7180
7181 #ifdef __cplusplus
7182 extern "C" {
7183 #endif
7184
7185 _LT_EOF
7186 # Now generate the symbol file.
7187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7188
7189 cat <<_LT_EOF >> conftest.$ac_ext
7190
7191 /* The mapping between symbol names and symbols. */
7192 LT_DLSYM_CONST struct {
7193 const char *name;
7194 void *address;
7195 }
7196 lt__PROGRAM__LTX_preloaded_symbols[] =
7197 {
7198 { "@PROGRAM@", (void *) 0 },
7199 _LT_EOF
7200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7201 cat <<\_LT_EOF >> conftest.$ac_ext
7202 {0, (void *) 0}
7203 };
7204
7205 /* This works around a problem in FreeBSD linker */
7206 #ifdef FREEBSD_WORKAROUND
7207 static const void *lt_preloaded_setup() {
7208 return lt__PROGRAM__LTX_preloaded_symbols;
7209 }
7210 #endif
7211
7212 #ifdef __cplusplus
7213 }
7214 #endif
7215 _LT_EOF
7216 # Now try linking the two files.
7217 mv conftest.$ac_objext conftstm.$ac_objext
7218 lt_globsym_save_LIBS=$LIBS
7219 lt_globsym_save_CFLAGS=$CFLAGS
7220 LIBS="conftstm.$ac_objext"
7221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7223 (eval $ac_link) 2>&5
7224 ac_status=$?
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7227 pipe_works=yes
7228 fi
7229 LIBS=$lt_globsym_save_LIBS
7230 CFLAGS=$lt_globsym_save_CFLAGS
7231 else
7232 echo "cannot find nm_test_func in $nlist" >&5
7233 fi
7234 else
7235 echo "cannot find nm_test_var in $nlist" >&5
7236 fi
7237 else
7238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7239 fi
7240 else
7241 echo "$progname: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 fi
7244 rm -rf conftest* conftst*
7245
7246 # Do not use the global_symbol_pipe unless it works.
7247 if test "$pipe_works" = yes; then
7248 break
7249 else
7250 lt_cv_sys_global_symbol_pipe=
7251 fi
7252 done
7253
7254 fi
7255
7256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7257 lt_cv_sys_global_symbol_to_cdecl=
7258 fi
7259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7261 $as_echo "failed" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7264 $as_echo "ok" >&6; }
7265 fi
7266
7267 # Response file support.
7268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7269 nm_file_list_spec='@'
7270 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7271 nm_file_list_spec='@'
7272 fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7301 $as_echo_n "checking for sysroot... " >&6; }
7302
7303 # Check whether --with-sysroot was given.
7304 if test "${with_sysroot+set}" = set; then :
7305 withval=$with_sysroot;
7306 else
7307 with_sysroot=no
7308 fi
7309
7310
7311 lt_sysroot=
7312 case ${with_sysroot} in #(
7313 yes)
7314 if test "$GCC" = yes; then
7315 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7316 fi
7317 ;; #(
7318 /*)
7319 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7320 ;; #(
7321 no|'')
7322 ;; #(
7323 *)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7325 $as_echo "${with_sysroot}" >&6; }
7326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7327 ;;
7328 esac
7329
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7331 $as_echo "${lt_sysroot:-no}" >&6; }
7332
7333
7334
7335
7336
7337 # Check whether --enable-libtool-lock was given.
7338 if test "${enable_libtool_lock+set}" = set; then :
7339 enableval=$enable_libtool_lock;
7340 fi
7341
7342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7343
7344 # Some flags need to be propagated to the compiler or linker for good
7345 # libtool support.
7346 case $host in
7347 ia64-*-hpux*)
7348 # Find out which ABI we are using.
7349 echo 'int i;' > conftest.$ac_ext
7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 case `/usr/bin/file conftest.$ac_objext` in
7356 *ELF-32*)
7357 HPUX_IA64_MODE="32"
7358 ;;
7359 *ELF-64*)
7360 HPUX_IA64_MODE="64"
7361 ;;
7362 esac
7363 fi
7364 rm -rf conftest*
7365 ;;
7366 *-*-irix6*)
7367 # Find out which ABI we are using.
7368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; then
7374 if test "$lt_cv_prog_gnu_ld" = yes; then
7375 case `/usr/bin/file conftest.$ac_objext` in
7376 *32-bit*)
7377 LD="${LD-ld} -melf32bsmip"
7378 ;;
7379 *N32*)
7380 LD="${LD-ld} -melf32bmipn32"
7381 ;;
7382 *64-bit*)
7383 LD="${LD-ld} -melf64bmip"
7384 ;;
7385 esac
7386 else
7387 case `/usr/bin/file conftest.$ac_objext` in
7388 *32-bit*)
7389 LD="${LD-ld} -32"
7390 ;;
7391 *N32*)
7392 LD="${LD-ld} -n32"
7393 ;;
7394 *64-bit*)
7395 LD="${LD-ld} -64"
7396 ;;
7397 esac
7398 fi
7399 fi
7400 rm -rf conftest*
7401 ;;
7402
7403 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7404 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7405 # Find out which ABI we are using.
7406 echo 'int i;' > conftest.$ac_ext
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408 (eval $ac_compile) 2>&5
7409 ac_status=$?
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7412 case `/usr/bin/file conftest.o` in
7413 *32-bit*)
7414 case $host in
7415 x86_64-*kfreebsd*-gnu)
7416 LD="${LD-ld} -m elf_i386_fbsd"
7417 ;;
7418 x86_64-*linux*)
7419 LD="${LD-ld} -m elf_i386"
7420 ;;
7421 ppc64-*linux*|powerpc64-*linux*)
7422 LD="${LD-ld} -m elf32ppclinux"
7423 ;;
7424 s390x-*linux*)
7425 LD="${LD-ld} -m elf_s390"
7426 ;;
7427 sparc64-*linux*)
7428 LD="${LD-ld} -m elf32_sparc"
7429 ;;
7430 esac
7431 ;;
7432 *64-bit*)
7433 case $host in
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_x86_64_fbsd"
7436 ;;
7437 x86_64-*linux*)
7438 LD="${LD-ld} -m elf_x86_64"
7439 ;;
7440 ppc*-*linux*|powerpc*-*linux*)
7441 LD="${LD-ld} -m elf64ppc"
7442 ;;
7443 s390*-*linux*|s390*-*tpf*)
7444 LD="${LD-ld} -m elf64_s390"
7445 ;;
7446 sparc*-*linux*)
7447 LD="${LD-ld} -m elf64_sparc"
7448 ;;
7449 esac
7450 ;;
7451 esac
7452 fi
7453 rm -rf conftest*
7454 ;;
7455
7456 *-*-sco3.2v5*)
7457 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7458 SAVE_CFLAGS="$CFLAGS"
7459 CFLAGS="$CFLAGS -belf"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7461 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7462 if ${lt_cv_cc_needs_belf+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 ac_ext=c
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473
7474 int
7475 main ()
7476 {
7477
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 lt_cv_cc_needs_belf=yes
7484 else
7485 lt_cv_cc_needs_belf=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 ac_ext=c
7490 ac_cpp='$CPP $CPPFLAGS'
7491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7497 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7498 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7499 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7500 CFLAGS="$SAVE_CFLAGS"
7501 fi
7502 ;;
7503 *-*solaris*)
7504 # Find out which ABI we are using.
7505 echo 'int i;' > conftest.$ac_ext
7506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7507 (eval $ac_compile) 2>&5
7508 ac_status=$?
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510 test $ac_status = 0; }; then
7511 case `/usr/bin/file conftest.o` in
7512 *64-bit*)
7513 case $lt_cv_prog_gnu_ld in
7514 yes*)
7515 case $host in
7516 i?86-*-solaris*)
7517 LD="${LD-ld} -m elf_x86_64"
7518 ;;
7519 sparc*-*-solaris*)
7520 LD="${LD-ld} -m elf64_sparc"
7521 ;;
7522 esac
7523 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7524 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7525 LD="${LD-ld}_sol2"
7526 fi
7527 ;;
7528 *)
7529 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7530 LD="${LD-ld} -64"
7531 fi
7532 ;;
7533 esac
7534 ;;
7535 esac
7536 fi
7537 rm -rf conftest*
7538 ;;
7539 esac
7540
7541 need_locks="$enable_libtool_lock"
7542
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}mt; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 if test -n "$MANIFEST_TOOL"; then
7552 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7572 if test -n "$MANIFEST_TOOL"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7574 $as_echo "$MANIFEST_TOOL" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580
7581 fi
7582 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7583 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7584 # Extract the first word of "mt", so it can be a program name with args.
7585 set dummy mt; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 if test -n "$ac_ct_MANIFEST_TOOL"; then
7592 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7612 if test -n "$ac_ct_MANIFEST_TOOL"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7614 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7621 MANIFEST_TOOL=":"
7622 else
7623 case $cross_compiling:$ac_tool_warned in
7624 yes:)
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned=yes ;;
7628 esac
7629 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7630 fi
7631 else
7632 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7633 fi
7634
7635 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7637 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7638 if ${lt_cv_path_mainfest_tool+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 lt_cv_path_mainfest_tool=no
7642 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7643 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7644 cat conftest.err >&5
7645 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7646 lt_cv_path_mainfest_tool=yes
7647 fi
7648 rm -rf conftest*
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7651 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7652 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7653 MANIFEST_TOOL=:
7654 fi
7655
7656
7657
7658
7659
7660
7661 case $host_os in
7662 rhapsody* | darwin*)
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7665 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 if test -n "$DSYMUTIL"; then
7672 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689 fi
7690 fi
7691 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7692 if test -n "$DSYMUTIL"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7694 $as_echo "$DSYMUTIL" >&6; }
7695 else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701 fi
7702 if test -z "$ac_cv_prog_DSYMUTIL"; then
7703 ac_ct_DSYMUTIL=$DSYMUTIL
7704 # Extract the first word of "dsymutil", so it can be a program name with args.
7705 set dummy dsymutil; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$ac_ct_DSYMUTIL"; then
7712 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7732 if test -n "$ac_ct_DSYMUTIL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7734 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740 if test "x$ac_ct_DSYMUTIL" = x; then
7741 DSYMUTIL=":"
7742 else
7743 case $cross_compiling:$ac_tool_warned in
7744 yes:)
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747 ac_tool_warned=yes ;;
7748 esac
7749 DSYMUTIL=$ac_ct_DSYMUTIL
7750 fi
7751 else
7752 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7753 fi
7754
7755 if test -n "$ac_tool_prefix"; then
7756 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7757 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_NMEDIT+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$NMEDIT"; then
7764 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 NMEDIT=$ac_cv_prog_NMEDIT
7784 if test -n "$NMEDIT"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7786 $as_echo "$NMEDIT" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792
7793 fi
7794 if test -z "$ac_cv_prog_NMEDIT"; then
7795 ac_ct_NMEDIT=$NMEDIT
7796 # Extract the first word of "nmedit", so it can be a program name with args.
7797 set dummy nmedit; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$ac_ct_NMEDIT"; then
7804 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7824 if test -n "$ac_ct_NMEDIT"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7826 $as_echo "$ac_ct_NMEDIT" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832 if test "x$ac_ct_NMEDIT" = x; then
7833 NMEDIT=":"
7834 else
7835 case $cross_compiling:$ac_tool_warned in
7836 yes:)
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7840 esac
7841 NMEDIT=$ac_ct_NMEDIT
7842 fi
7843 else
7844 NMEDIT="$ac_cv_prog_NMEDIT"
7845 fi
7846
7847 if test -n "$ac_tool_prefix"; then
7848 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7849 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_LIPO+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$LIPO"; then
7856 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 LIPO=$ac_cv_prog_LIPO
7876 if test -n "$LIPO"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7878 $as_echo "$LIPO" >&6; }
7879 else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7882 fi
7883
7884
7885 fi
7886 if test -z "$ac_cv_prog_LIPO"; then
7887 ac_ct_LIPO=$LIPO
7888 # Extract the first word of "lipo", so it can be a program name with args.
7889 set dummy lipo; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$ac_ct_LIPO"; then
7896 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_ac_ct_LIPO="lipo"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7916 if test -n "$ac_ct_LIPO"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7918 $as_echo "$ac_ct_LIPO" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924 if test "x$ac_ct_LIPO" = x; then
7925 LIPO=":"
7926 else
7927 case $cross_compiling:$ac_tool_warned in
7928 yes:)
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931 ac_tool_warned=yes ;;
7932 esac
7933 LIPO=$ac_ct_LIPO
7934 fi
7935 else
7936 LIPO="$ac_cv_prog_LIPO"
7937 fi
7938
7939 if test -n "$ac_tool_prefix"; then
7940 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}otool; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_OTOOL+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$OTOOL"; then
7948 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 OTOOL=$ac_cv_prog_OTOOL
7968 if test -n "$OTOOL"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7970 $as_echo "$OTOOL" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976
7977 fi
7978 if test -z "$ac_cv_prog_OTOOL"; then
7979 ac_ct_OTOOL=$OTOOL
7980 # Extract the first word of "otool", so it can be a program name with args.
7981 set dummy otool; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test -n "$ac_ct_OTOOL"; then
7988 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_ac_ct_OTOOL="otool"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8008 if test -n "$ac_ct_OTOOL"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8010 $as_echo "$ac_ct_OTOOL" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016 if test "x$ac_ct_OTOOL" = x; then
8017 OTOOL=":"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025 OTOOL=$ac_ct_OTOOL
8026 fi
8027 else
8028 OTOOL="$ac_cv_prog_OTOOL"
8029 fi
8030
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8033 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_OTOOL64+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$OTOOL64"; then
8040 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 OTOOL64=$ac_cv_prog_OTOOL64
8060 if test -n "$OTOOL64"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8062 $as_echo "$OTOOL64" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069 fi
8070 if test -z "$ac_cv_prog_OTOOL64"; then
8071 ac_ct_OTOOL64=$OTOOL64
8072 # Extract the first word of "otool64", so it can be a program name with args.
8073 set dummy otool64; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$ac_ct_OTOOL64"; then
8080 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_ac_ct_OTOOL64="otool64"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8100 if test -n "$ac_ct_OTOOL64"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8102 $as_echo "$ac_ct_OTOOL64" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108 if test "x$ac_ct_OTOOL64" = x; then
8109 OTOOL64=":"
8110 else
8111 case $cross_compiling:$ac_tool_warned in
8112 yes:)
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115 ac_tool_warned=yes ;;
8116 esac
8117 OTOOL64=$ac_ct_OTOOL64
8118 fi
8119 else
8120 OTOOL64="$ac_cv_prog_OTOOL64"
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8150 $as_echo_n "checking for -single_module linker flag... " >&6; }
8151 if ${lt_cv_apple_cc_single_mod+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 lt_cv_apple_cc_single_mod=no
8155 if test -z "${LT_MULTI_MODULE}"; then
8156 # By default we will add the -single_module flag. You can override
8157 # by either setting the environment variable LT_MULTI_MODULE
8158 # non-empty at configure time, or by adding -multi_module to the
8159 # link flags.
8160 rm -rf libconftest.dylib*
8161 echo "int foo(void){return 1;}" > conftest.c
8162 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8163 -dynamiclib -Wl,-single_module conftest.c" >&5
8164 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8165 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8166 _lt_result=$?
8167 # If there is a non-empty error log, and "single_module"
8168 # appears in it, assume the flag caused a linker warning
8169 if test -s conftest.err && $GREP single_module conftest.err; then
8170 cat conftest.err >&5
8171 # Otherwise, if the output was created with a 0 exit code from
8172 # the compiler, it worked.
8173 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8174 lt_cv_apple_cc_single_mod=yes
8175 else
8176 cat conftest.err >&5
8177 fi
8178 rm -rf libconftest.dylib*
8179 rm -f conftest.*
8180 fi
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8183 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8184
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8186 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8187 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 lt_cv_ld_exported_symbols_list=no
8191 save_LDFLAGS=$LDFLAGS
8192 echo "_main" > conftest.sym
8193 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196
8197 int
8198 main ()
8199 {
8200
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 lt_cv_ld_exported_symbols_list=yes
8207 else
8208 lt_cv_ld_exported_symbols_list=no
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
8212 LDFLAGS="$save_LDFLAGS"
8213
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8216 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8219 $as_echo_n "checking for -force_load linker flag... " >&6; }
8220 if ${lt_cv_ld_force_load+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_ld_force_load=no
8224 cat > conftest.c << _LT_EOF
8225 int forced_loaded() { return 2;}
8226 _LT_EOF
8227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8229 echo "$AR cru libconftest.a conftest.o" >&5
8230 $AR cru libconftest.a conftest.o 2>&5
8231 echo "$RANLIB libconftest.a" >&5
8232 $RANLIB libconftest.a 2>&5
8233 cat > conftest.c << _LT_EOF
8234 int main() { return 0;}
8235 _LT_EOF
8236 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8237 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8238 _lt_result=$?
8239 if test -s conftest.err && $GREP force_load conftest.err; then
8240 cat conftest.err >&5
8241 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8242 lt_cv_ld_force_load=yes
8243 else
8244 cat conftest.err >&5
8245 fi
8246 rm -f conftest.err libconftest.a conftest conftest.c
8247 rm -rf conftest.dSYM
8248
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8251 $as_echo "$lt_cv_ld_force_load" >&6; }
8252 case $host_os in
8253 rhapsody* | darwin1.[012])
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8255 darwin1.*)
8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257 darwin*) # darwin 5.x on
8258 # if running on 10.5 or later, the deployment target defaults
8259 # to the OS version, if on x86, and 10.4, the deployment
8260 # target defaults to 10.4. Don't you love it?
8261 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8262 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8264 10.[012]*)
8265 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8266 10.*)
8267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8268 esac
8269 ;;
8270 esac
8271 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8272 _lt_dar_single_mod='$single_module'
8273 fi
8274 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8275 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8276 else
8277 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8278 fi
8279 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8280 _lt_dsymutil='~$DSYMUTIL $lib || :'
8281 else
8282 _lt_dsymutil=
8283 fi
8284 ;;
8285 esac
8286
8287 ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8293 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8294 # On Suns, sometimes $CPP names a directory.
8295 if test -n "$CPP" && test -d "$CPP"; then
8296 CPP=
8297 fi
8298 if test -z "$CPP"; then
8299 if ${ac_cv_prog_CPP+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 # Double quotes because CPP needs to be expanded
8303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8304 do
8305 ac_preproc_ok=false
8306 for ac_c_preproc_warn_flag in '' yes
8307 do
8308 # Use a header file that comes with gcc, so configuring glibc
8309 # with a fresh cross-compiler works.
8310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311 # <limits.h> exists even on freestanding compilers.
8312 # On the NeXT, cc -E runs the code through the compiler's parser,
8313 # not just through cpp. "Syntax error" is here to catch this case.
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8321 Syntax error
8322 _ACEOF
8323 if ac_fn_c_try_cpp "$LINENO"; then :
8324
8325 else
8326 # Broken: fails on valid input.
8327 continue
8328 fi
8329 rm -f conftest.err conftest.i conftest.$ac_ext
8330
8331 # OK, works on sane cases. Now check whether nonexistent headers
8332 # can be detected and how.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 #include <ac_nonexistent.h>
8336 _ACEOF
8337 if ac_fn_c_try_cpp "$LINENO"; then :
8338 # Broken: success on invalid input.
8339 continue
8340 else
8341 # Passes both tests.
8342 ac_preproc_ok=:
8343 break
8344 fi
8345 rm -f conftest.err conftest.i conftest.$ac_ext
8346
8347 done
8348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8349 rm -f conftest.i conftest.err conftest.$ac_ext
8350 if $ac_preproc_ok; then :
8351 break
8352 fi
8353
8354 done
8355 ac_cv_prog_CPP=$CPP
8356
8357 fi
8358 CPP=$ac_cv_prog_CPP
8359 else
8360 ac_cv_prog_CPP=$CPP
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8363 $as_echo "$CPP" >&6; }
8364 ac_preproc_ok=false
8365 for ac_c_preproc_warn_flag in '' yes
8366 do
8367 # Use a header file that comes with gcc, so configuring glibc
8368 # with a fresh cross-compiler works.
8369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8370 # <limits.h> exists even on freestanding compilers.
8371 # On the NeXT, cc -E runs the code through the compiler's parser,
8372 # not just through cpp. "Syntax error" is here to catch this case.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #ifdef __STDC__
8376 # include <limits.h>
8377 #else
8378 # include <assert.h>
8379 #endif
8380 Syntax error
8381 _ACEOF
8382 if ac_fn_c_try_cpp "$LINENO"; then :
8383
8384 else
8385 # Broken: fails on valid input.
8386 continue
8387 fi
8388 rm -f conftest.err conftest.i conftest.$ac_ext
8389
8390 # OK, works on sane cases. Now check whether nonexistent headers
8391 # can be detected and how.
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 #include <ac_nonexistent.h>
8395 _ACEOF
8396 if ac_fn_c_try_cpp "$LINENO"; then :
8397 # Broken: success on invalid input.
8398 continue
8399 else
8400 # Passes both tests.
8401 ac_preproc_ok=:
8402 break
8403 fi
8404 rm -f conftest.err conftest.i conftest.$ac_ext
8405
8406 done
8407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8408 rm -f conftest.i conftest.err conftest.$ac_ext
8409 if $ac_preproc_ok; then :
8410
8411 else
8412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8414 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8415 See \`config.log' for more details" "$LINENO" 5; }
8416 fi
8417
8418 ac_ext=c
8419 ac_cpp='$CPP $CPPFLAGS'
8420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8423
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8426 $as_echo_n "checking for ANSI C header files... " >&6; }
8427 if ${ac_cv_header_stdc+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <stdlib.h>
8433 #include <stdarg.h>
8434 #include <string.h>
8435 #include <float.h>
8436
8437 int
8438 main ()
8439 {
8440
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_header_stdc=yes
8447 else
8448 ac_cv_header_stdc=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451
8452 if test $ac_cv_header_stdc = yes; then
8453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 #include <string.h>
8457
8458 _ACEOF
8459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8460 $EGREP "memchr" >/dev/null 2>&1; then :
8461
8462 else
8463 ac_cv_header_stdc=no
8464 fi
8465 rm -f conftest*
8466
8467 fi
8468
8469 if test $ac_cv_header_stdc = yes; then
8470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 #include <stdlib.h>
8474
8475 _ACEOF
8476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8477 $EGREP "free" >/dev/null 2>&1; then :
8478
8479 else
8480 ac_cv_header_stdc=no
8481 fi
8482 rm -f conftest*
8483
8484 fi
8485
8486 if test $ac_cv_header_stdc = yes; then
8487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8488 if test "$cross_compiling" = yes; then :
8489 :
8490 else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #include <ctype.h>
8494 #include <stdlib.h>
8495 #if ((' ' & 0x0FF) == 0x020)
8496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8498 #else
8499 # define ISLOWER(c) \
8500 (('a' <= (c) && (c) <= 'i') \
8501 || ('j' <= (c) && (c) <= 'r') \
8502 || ('s' <= (c) && (c) <= 'z'))
8503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8504 #endif
8505
8506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8507 int
8508 main ()
8509 {
8510 int i;
8511 for (i = 0; i < 256; i++)
8512 if (XOR (islower (i), ISLOWER (i))
8513 || toupper (i) != TOUPPER (i))
8514 return 2;
8515 return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_run "$LINENO"; then :
8519
8520 else
8521 ac_cv_header_stdc=no
8522 fi
8523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8524 conftest.$ac_objext conftest.beam conftest.$ac_ext
8525 fi
8526
8527 fi
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8530 $as_echo "$ac_cv_header_stdc" >&6; }
8531 if test $ac_cv_header_stdc = yes; then
8532
8533 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8534
8535 fi
8536
8537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8538 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8539 inttypes.h stdint.h unistd.h
8540 do :
8541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8543 "
8544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8545 cat >>confdefs.h <<_ACEOF
8546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8547 _ACEOF
8548
8549 fi
8550
8551 done
8552
8553
8554 for ac_header in dlfcn.h
8555 do :
8556 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8557 "
8558 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8559 cat >>confdefs.h <<_ACEOF
8560 #define HAVE_DLFCN_H 1
8561 _ACEOF
8562
8563 fi
8564
8565 done
8566
8567
8568
8569
8570 func_stripname_cnf ()
8571 {
8572 case ${2} in
8573 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8574 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8575 esac
8576 } # func_stripname_cnf
8577
8578
8579
8580
8581
8582 # Set options
8583 # Check whether --enable-static was given.
8584 if test "${enable_static+set}" = set; then :
8585 enableval=$enable_static; p=${PACKAGE-default}
8586 case $enableval in
8587 yes) enable_static=yes ;;
8588 no) enable_static=no ;;
8589 *)
8590 enable_static=no
8591 # Look at the argument we got. We use all the common list separators.
8592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8593 for pkg in $enableval; do
8594 IFS="$lt_save_ifs"
8595 if test "X$pkg" = "X$p"; then
8596 enable_static=yes
8597 fi
8598 done
8599 IFS="$lt_save_ifs"
8600 ;;
8601 esac
8602 else
8603 enable_static=no
8604 fi
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615 enable_dlopen=no
8616
8617
8618 enable_win32_dll=no
8619
8620
8621 # Check whether --enable-shared was given.
8622 if test "${enable_shared+set}" = set; then :
8623 enableval=$enable_shared; p=${PACKAGE-default}
8624 case $enableval in
8625 yes) enable_shared=yes ;;
8626 no) enable_shared=no ;;
8627 *)
8628 enable_shared=no
8629 # Look at the argument we got. We use all the common list separators.
8630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8631 for pkg in $enableval; do
8632 IFS="$lt_save_ifs"
8633 if test "X$pkg" = "X$p"; then
8634 enable_shared=yes
8635 fi
8636 done
8637 IFS="$lt_save_ifs"
8638 ;;
8639 esac
8640 else
8641 enable_shared=yes
8642 fi
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 # Check whether --with-pic was given.
8655 if test "${with_pic+set}" = set; then :
8656 withval=$with_pic; lt_p=${PACKAGE-default}
8657 case $withval in
8658 yes|no) pic_mode=$withval ;;
8659 *)
8660 pic_mode=default
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8663 for lt_pkg in $withval; do
8664 IFS="$lt_save_ifs"
8665 if test "X$lt_pkg" = "X$lt_p"; then
8666 pic_mode=yes
8667 fi
8668 done
8669 IFS="$lt_save_ifs"
8670 ;;
8671 esac
8672 else
8673 pic_mode=default
8674 fi
8675
8676
8677 test -z "$pic_mode" && pic_mode=default
8678
8679
8680
8681
8682
8683
8684
8685 # Check whether --enable-fast-install was given.
8686 if test "${enable_fast_install+set}" = set; then :
8687 enableval=$enable_fast_install; p=${PACKAGE-default}
8688 case $enableval in
8689 yes) enable_fast_install=yes ;;
8690 no) enable_fast_install=no ;;
8691 *)
8692 enable_fast_install=no
8693 # Look at the argument we got. We use all the common list separators.
8694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8695 for pkg in $enableval; do
8696 IFS="$lt_save_ifs"
8697 if test "X$pkg" = "X$p"; then
8698 enable_fast_install=yes
8699 fi
8700 done
8701 IFS="$lt_save_ifs"
8702 ;;
8703 esac
8704 else
8705 enable_fast_install=yes
8706 fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 # This can be used to rebuild libtool when needed
8719 LIBTOOL_DEPS="$ltmain"
8720
8721 # Always use our own libtool.
8722 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753 test -z "$LN_S" && LN_S="ln -s"
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768 if test -n "${ZSH_VERSION+set}" ; then
8769 setopt NO_GLOB_SUBST
8770 fi
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8773 $as_echo_n "checking for objdir... " >&6; }
8774 if ${lt_cv_objdir+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 rm -f .libs 2>/dev/null
8778 mkdir .libs 2>/dev/null
8779 if test -d .libs; then
8780 lt_cv_objdir=.libs
8781 else
8782 # MS-DOS does not allow filenames that begin with a dot.
8783 lt_cv_objdir=_libs
8784 fi
8785 rmdir .libs 2>/dev/null
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8788 $as_echo "$lt_cv_objdir" >&6; }
8789 objdir=$lt_cv_objdir
8790
8791
8792
8793
8794
8795 cat >>confdefs.h <<_ACEOF
8796 #define LT_OBJDIR "$lt_cv_objdir/"
8797 _ACEOF
8798
8799
8800
8801
8802 case $host_os in
8803 aix3*)
8804 # AIX sometimes has problems with the GCC collect2 program. For some
8805 # reason, if we set the COLLECT_NAMES environment variable, the problems
8806 # vanish in a puff of smoke.
8807 if test "X${COLLECT_NAMES+set}" != Xset; then
8808 COLLECT_NAMES=
8809 export COLLECT_NAMES
8810 fi
8811 ;;
8812 esac
8813
8814 # Global variables:
8815 ofile=libtool
8816 can_build_shared=yes
8817
8818 # All known linkers require a `.a' archive for static linking (except MSVC,
8819 # which needs '.lib').
8820 libext=a
8821
8822 with_gnu_ld="$lt_cv_prog_gnu_ld"
8823
8824 old_CC="$CC"
8825 old_CFLAGS="$CFLAGS"
8826
8827 # Set sane defaults for various variables
8828 test -z "$CC" && CC=cc
8829 test -z "$LTCC" && LTCC=$CC
8830 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8831 test -z "$LD" && LD=ld
8832 test -z "$ac_objext" && ac_objext=o
8833
8834 for cc_temp in $compiler""; do
8835 case $cc_temp in
8836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8838 \-*) ;;
8839 *) break;;
8840 esac
8841 done
8842 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8843
8844
8845 # Only perform the check for file, if the check method requires it
8846 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8847 case $deplibs_check_method in
8848 file_magic*)
8849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8851 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8852 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 case $MAGIC_CMD in
8856 [\\/*] | ?:[\\/]*)
8857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8858 ;;
8859 *)
8860 lt_save_MAGIC_CMD="$MAGIC_CMD"
8861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8863 for ac_dir in $ac_dummy; do
8864 IFS="$lt_save_ifs"
8865 test -z "$ac_dir" && ac_dir=.
8866 if test -f $ac_dir/${ac_tool_prefix}file; then
8867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8868 if test -n "$file_magic_test_file"; then
8869 case $deplibs_check_method in
8870 "file_magic "*)
8871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8874 $EGREP "$file_magic_regex" > /dev/null; then
8875 :
8876 else
8877 cat <<_LT_EOF 1>&2
8878
8879 *** Warning: the command libtool uses to detect shared libraries,
8880 *** $file_magic_cmd, produces output that libtool cannot recognize.
8881 *** The result is that libtool may fail to recognize shared libraries
8882 *** as such. This will affect the creation of libtool libraries that
8883 *** depend on shared libraries, but programs linked with such libtool
8884 *** libraries will work regardless of this problem. Nevertheless, you
8885 *** may want to report the problem to your system manager and/or to
8886 *** bug-libtool@gnu.org
8887
8888 _LT_EOF
8889 fi ;;
8890 esac
8891 fi
8892 break
8893 fi
8894 done
8895 IFS="$lt_save_ifs"
8896 MAGIC_CMD="$lt_save_MAGIC_CMD"
8897 ;;
8898 esac
8899 fi
8900
8901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8902 if test -n "$MAGIC_CMD"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8904 $as_echo "$MAGIC_CMD" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 fi
8909
8910
8911
8912
8913
8914 if test -z "$lt_cv_path_MAGIC_CMD"; then
8915 if test -n "$ac_tool_prefix"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8917 $as_echo_n "checking for file... " >&6; }
8918 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 case $MAGIC_CMD in
8922 [\\/*] | ?:[\\/]*)
8923 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8924 ;;
8925 *)
8926 lt_save_MAGIC_CMD="$MAGIC_CMD"
8927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8928 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8929 for ac_dir in $ac_dummy; do
8930 IFS="$lt_save_ifs"
8931 test -z "$ac_dir" && ac_dir=.
8932 if test -f $ac_dir/file; then
8933 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8934 if test -n "$file_magic_test_file"; then
8935 case $deplibs_check_method in
8936 "file_magic "*)
8937 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8940 $EGREP "$file_magic_regex" > /dev/null; then
8941 :
8942 else
8943 cat <<_LT_EOF 1>&2
8944
8945 *** Warning: the command libtool uses to detect shared libraries,
8946 *** $file_magic_cmd, produces output that libtool cannot recognize.
8947 *** The result is that libtool may fail to recognize shared libraries
8948 *** as such. This will affect the creation of libtool libraries that
8949 *** depend on shared libraries, but programs linked with such libtool
8950 *** libraries will work regardless of this problem. Nevertheless, you
8951 *** may want to report the problem to your system manager and/or to
8952 *** bug-libtool@gnu.org
8953
8954 _LT_EOF
8955 fi ;;
8956 esac
8957 fi
8958 break
8959 fi
8960 done
8961 IFS="$lt_save_ifs"
8962 MAGIC_CMD="$lt_save_MAGIC_CMD"
8963 ;;
8964 esac
8965 fi
8966
8967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8968 if test -n "$MAGIC_CMD"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8970 $as_echo "$MAGIC_CMD" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975
8976
8977 else
8978 MAGIC_CMD=:
8979 fi
8980 fi
8981
8982 fi
8983 ;;
8984 esac
8985
8986 # Use C for the default configuration in the libtool script
8987
8988 lt_save_CC="$CC"
8989 ac_ext=c
8990 ac_cpp='$CPP $CPPFLAGS'
8991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8994
8995
8996 # Source file extension for C test sources.
8997 ac_ext=c
8998
8999 # Object file extension for compiled C test sources.
9000 objext=o
9001 objext=$objext
9002
9003 # Code to be used in simple compile tests
9004 lt_simple_compile_test_code="int some_variable = 0;"
9005
9006 # Code to be used in simple link tests
9007 lt_simple_link_test_code='int main(){return(0);}'
9008
9009
9010
9011
9012
9013
9014
9015 # If no C compiler was specified, use CC.
9016 LTCC=${LTCC-"$CC"}
9017
9018 # If no C compiler flags were specified, use CFLAGS.
9019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9020
9021 # Allow CC to be a program name with arguments.
9022 compiler=$CC
9023
9024 # Save the default compiler, since it gets overwritten when the other
9025 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9026 compiler_DEFAULT=$CC
9027
9028 # save warnings/boilerplate of simple test code
9029 ac_outfile=conftest.$ac_objext
9030 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9032 _lt_compiler_boilerplate=`cat conftest.err`
9033 $RM -r conftest*
9034
9035 ac_outfile=conftest.$ac_objext
9036 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9038 _lt_linker_boilerplate=`cat conftest.err`
9039 $RM -r conftest*
9040
9041
9042 ## CAVEAT EMPTOR:
9043 ## There is no encapsulation within the following macros, do not change
9044 ## the running order or otherwise move them around unless you know exactly
9045 ## what you are doing...
9046 if test -n "$compiler"; then
9047
9048 lt_prog_compiler_no_builtin_flag=
9049
9050 if test "$GCC" = yes; then
9051 case $cc_basename in
9052 nvcc*)
9053 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9054 *)
9055 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9056 esac
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9059 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9060 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 lt_cv_prog_compiler_rtti_exceptions=no
9064 ac_outfile=conftest.$ac_objext
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9066 lt_compiler_flag="-fno-rtti -fno-exceptions"
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 # The option is referenced via a variable to avoid confusing sed.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>conftest.err)
9078 ac_status=$?
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s "$ac_outfile"; then
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings other than the usual output.
9084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler_rtti_exceptions=yes
9088 fi
9089 fi
9090 $RM -r conftest*
9091
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9094 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9095
9096 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9097 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9098 else
9099 :
9100 fi
9101
9102 fi
9103
9104
9105
9106
9107
9108
9109 lt_prog_compiler_wl=
9110 lt_prog_compiler_pic=
9111 lt_prog_compiler_static=
9112
9113
9114 if test "$GCC" = yes; then
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_static='-static'
9117
9118 case $host_os in
9119 aix*)
9120 # All AIX code is PIC.
9121 if test "$host_cpu" = ia64; then
9122 # AIX 5 now supports IA64 processor
9123 lt_prog_compiler_static='-Bstatic'
9124 fi
9125 ;;
9126
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 lt_prog_compiler_pic='-fPIC'
9132 ;;
9133 m68k)
9134 # FIXME: we need at least 68020 code to build shared libraries, but
9135 # adding the `-m68020' flag to GCC prevents building anything better,
9136 # like `-m68040'.
9137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9138 ;;
9139 esac
9140 ;;
9141
9142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9143 # PIC is the default for these OSes.
9144 ;;
9145
9146 mingw* | cygwin* | pw32* | os2* | cegcc*)
9147 # This hack is so that the source file can tell whether it is being
9148 # built for inclusion in a dll (and should export symbols for example).
9149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9150 # (--disable-auto-import) libraries
9151 lt_prog_compiler_pic='-DDLL_EXPORT'
9152 ;;
9153
9154 darwin* | rhapsody*)
9155 # PIC is the default on this platform
9156 # Common symbols not allowed in MH_DYLIB files
9157 lt_prog_compiler_pic='-fno-common'
9158 ;;
9159
9160 haiku*)
9161 # PIC is the default for Haiku.
9162 # The "-static" flag exists, but is broken.
9163 lt_prog_compiler_static=
9164 ;;
9165
9166 hpux*)
9167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9169 # sets the default TLS model and affects inlining.
9170 case $host_cpu in
9171 hppa*64*)
9172 # +Z the default
9173 ;;
9174 *)
9175 lt_prog_compiler_pic='-fPIC'
9176 ;;
9177 esac
9178 ;;
9179
9180 interix[3-9]*)
9181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9182 # Instead, we relocate shared libraries at runtime.
9183 ;;
9184
9185 msdosdjgpp*)
9186 # Just because we use GCC doesn't mean we suddenly get shared libraries
9187 # on systems that don't support them.
9188 lt_prog_compiler_can_build_shared=no
9189 enable_shared=no
9190 ;;
9191
9192 *nto* | *qnx*)
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9194 # it will coredump.
9195 lt_prog_compiler_pic='-fPIC -shared'
9196 ;;
9197
9198 sysv4*MP*)
9199 if test -d /usr/nec; then
9200 lt_prog_compiler_pic=-Kconform_pic
9201 fi
9202 ;;
9203
9204 *)
9205 lt_prog_compiler_pic='-fPIC'
9206 ;;
9207 esac
9208
9209 case $cc_basename in
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 lt_prog_compiler_wl='-Xlinker '
9212 if test -n "$lt_prog_compiler_pic"; then
9213 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9214 fi
9215 ;;
9216 esac
9217 else
9218 # PORTME Check for flag to pass linker flags through the system compiler.
9219 case $host_os in
9220 aix*)
9221 lt_prog_compiler_wl='-Wl,'
9222 if test "$host_cpu" = ia64; then
9223 # AIX 5 now supports IA64 processor
9224 lt_prog_compiler_static='-Bstatic'
9225 else
9226 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9227 fi
9228 ;;
9229
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 lt_prog_compiler_pic='-DDLL_EXPORT'
9234 ;;
9235
9236 hpux9* | hpux10* | hpux11*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9239 # not for PA HP-UX.
9240 case $host_cpu in
9241 hppa*64*|ia64*)
9242 # +Z the default
9243 ;;
9244 *)
9245 lt_prog_compiler_pic='+Z'
9246 ;;
9247 esac
9248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9249 lt_prog_compiler_static='${wl}-a ${wl}archive'
9250 ;;
9251
9252 irix5* | irix6* | nonstopux*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC (with -KPIC) is the default.
9255 lt_prog_compiler_static='-non_shared'
9256 ;;
9257
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9259 case $cc_basename in
9260 # old Intel for x86_64 which still supported -KPIC.
9261 ecc*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-static'
9265 ;;
9266 # icc used to be incompatible with GCC.
9267 # ICC 10 doesn't accept -KPIC any more.
9268 icc* | ifort*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-fPIC'
9271 lt_prog_compiler_static='-static'
9272 ;;
9273 # Lahey Fortran 8.1.
9274 lf95*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='--shared'
9277 lt_prog_compiler_static='--static'
9278 ;;
9279 nagfor*)
9280 # NAG Fortran compiler
9281 lt_prog_compiler_wl='-Wl,-Wl,,'
9282 lt_prog_compiler_pic='-PIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
9285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9286 # Portland Group compilers (*not* the Pentium gcc compiler,
9287 # which looks to be a dead project)
9288 lt_prog_compiler_wl='-Wl,'
9289 lt_prog_compiler_pic='-fpic'
9290 lt_prog_compiler_static='-Bstatic'
9291 ;;
9292 ccc*)
9293 lt_prog_compiler_wl='-Wl,'
9294 # All Alpha code is PIC.
9295 lt_prog_compiler_static='-non_shared'
9296 ;;
9297 xl* | bgxl* | bgf* | mpixl*)
9298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-qpic'
9301 lt_prog_compiler_static='-qstaticlink'
9302 ;;
9303 *)
9304 case `$CC -V 2>&1 | sed 5q` in
9305 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9306 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_wl=''
9310 ;;
9311 *Sun\ F* | *Sun*Fortran*)
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_wl='-Qoption ld '
9315 ;;
9316 *Sun\ C*)
9317 # Sun C 5.9
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9320 lt_prog_compiler_wl='-Wl,'
9321 ;;
9322 *Intel*\ [CF]*Compiler*)
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_pic='-fPIC'
9325 lt_prog_compiler_static='-static'
9326 ;;
9327 *Portland\ Group*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-fpic'
9330 lt_prog_compiler_static='-Bstatic'
9331 ;;
9332 esac
9333 ;;
9334 esac
9335 ;;
9336
9337 newsos6)
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 ;;
9341
9342 *nto* | *qnx*)
9343 # QNX uses GNU C++, but need to define -shared option too, otherwise
9344 # it will coredump.
9345 lt_prog_compiler_pic='-fPIC -shared'
9346 ;;
9347
9348 osf3* | osf4* | osf5*)
9349 lt_prog_compiler_wl='-Wl,'
9350 # All OSF/1 code is PIC.
9351 lt_prog_compiler_static='-non_shared'
9352 ;;
9353
9354 rdos*)
9355 lt_prog_compiler_static='-non_shared'
9356 ;;
9357
9358 solaris*)
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 case $cc_basename in
9362 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9363 lt_prog_compiler_wl='-Qoption ld ';;
9364 *)
9365 lt_prog_compiler_wl='-Wl,';;
9366 esac
9367 ;;
9368
9369 sunos4*)
9370 lt_prog_compiler_wl='-Qoption ld '
9371 lt_prog_compiler_pic='-PIC'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9374
9375 sysv4 | sysv4.2uw2* | sysv4.3*)
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 ;;
9380
9381 sysv4*MP*)
9382 if test -d /usr/nec ;then
9383 lt_prog_compiler_pic='-Kconform_pic'
9384 lt_prog_compiler_static='-Bstatic'
9385 fi
9386 ;;
9387
9388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-KPIC'
9391 lt_prog_compiler_static='-Bstatic'
9392 ;;
9393
9394 unicos*)
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_can_build_shared=no
9397 ;;
9398
9399 uts4*)
9400 lt_prog_compiler_pic='-pic'
9401 lt_prog_compiler_static='-Bstatic'
9402 ;;
9403
9404 *)
9405 lt_prog_compiler_can_build_shared=no
9406 ;;
9407 esac
9408 fi
9409
9410 case $host_os in
9411 # For platforms which do not support PIC, -DPIC is meaningless:
9412 *djgpp*)
9413 lt_prog_compiler_pic=
9414 ;;
9415 *)
9416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9417 ;;
9418 esac
9419
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9421 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9422 if ${lt_cv_prog_compiler_pic+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9428 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9429 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9430
9431 #
9432 # Check to make sure the PIC flag actually works.
9433 #
9434 if test -n "$lt_prog_compiler_pic"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9436 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9437 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 lt_cv_prog_compiler_pic_works=no
9441 ac_outfile=conftest.$ac_objext
9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9444 # Insert the option either (1) after the last *FLAGS variable, or
9445 # (2) before a word containing "conftest.", or (3) at the end.
9446 # Note that $ac_compile itself does not contain backslashes and begins
9447 # with a dollar sign (not a hyphen), so the echo should work correctly.
9448 # The option is referenced via a variable to avoid confusing sed.
9449 lt_compile=`echo "$ac_compile" | $SED \
9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9452 -e 's:$: $lt_compiler_flag:'`
9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9454 (eval "$lt_compile" 2>conftest.err)
9455 ac_status=$?
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 if (exit $ac_status) && test -s "$ac_outfile"; then
9459 # The compiler can only warn and ignore the option if not recognized
9460 # So say no if there are warnings other than the usual output.
9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9464 lt_cv_prog_compiler_pic_works=yes
9465 fi
9466 fi
9467 $RM -r conftest*
9468
9469 fi
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9471 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9472
9473 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9474 case $lt_prog_compiler_pic in
9475 "" | " "*) ;;
9476 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9477 esac
9478 else
9479 lt_prog_compiler_pic=
9480 lt_prog_compiler_can_build_shared=no
9481 fi
9482
9483 fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495 #
9496 # Check to make sure the static flag actually works.
9497 #
9498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9500 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9501 if ${lt_cv_prog_compiler_static_works+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 lt_cv_prog_compiler_static_works=no
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9509 # The linker can only warn and ignore the option if not recognized
9510 # So say no if there are warnings
9511 if test -s conftest.err; then
9512 # Append any errors to the config.log.
9513 cat conftest.err 1>&5
9514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9516 if diff conftest.exp conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_static_works=yes
9518 fi
9519 else
9520 lt_cv_prog_compiler_static_works=yes
9521 fi
9522 fi
9523 $RM -r conftest*
9524 LDFLAGS="$save_LDFLAGS"
9525
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9528 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9529
9530 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9531 :
9532 else
9533 lt_prog_compiler_static=
9534 fi
9535
9536
9537
9538
9539
9540
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9544 if ${lt_cv_prog_compiler_c_o+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 lt_cv_prog_compiler_c_o=no
9548 $RM -r conftest 2>/dev/null
9549 mkdir conftest
9550 cd conftest
9551 mkdir out
9552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9553
9554 lt_compiler_flag="-o out/conftest2.$ac_objext"
9555 # Insert the option either (1) after the last *FLAGS variable, or
9556 # (2) before a word containing "conftest.", or (3) at the end.
9557 # Note that $ac_compile itself does not contain backslashes and begins
9558 # with a dollar sign (not a hyphen), so the echo should work correctly.
9559 lt_compile=`echo "$ac_compile" | $SED \
9560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9562 -e 's:$: $lt_compiler_flag:'`
9563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9564 (eval "$lt_compile" 2>out/conftest.err)
9565 ac_status=$?
9566 cat out/conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9569 then
9570 # The compiler can only warn and ignore the option if not recognized
9571 # So say no if there are warnings
9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9575 lt_cv_prog_compiler_c_o=yes
9576 fi
9577 fi
9578 chmod u+w . 2>&5
9579 $RM -r conftest*
9580 # SGI C++ compiler will create directory out/ii_files/ for
9581 # template instantiation
9582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9583 $RM out/* && rmdir out
9584 cd ..
9585 $RM -r conftest
9586 $RM -r conftest*
9587
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9591
9592
9593
9594
9595
9596
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9598 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9599 if ${lt_cv_prog_compiler_c_o+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 lt_cv_prog_compiler_c_o=no
9603 $RM -r conftest 2>/dev/null
9604 mkdir conftest
9605 cd conftest
9606 mkdir out
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
9609 lt_compiler_flag="-o out/conftest2.$ac_objext"
9610 # Insert the option either (1) after the last *FLAGS variable, or
9611 # (2) before a word containing "conftest.", or (3) at the end.
9612 # Note that $ac_compile itself does not contain backslashes and begins
9613 # with a dollar sign (not a hyphen), so the echo should work correctly.
9614 lt_compile=`echo "$ac_compile" | $SED \
9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617 -e 's:$: $lt_compiler_flag:'`
9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9619 (eval "$lt_compile" 2>out/conftest.err)
9620 ac_status=$?
9621 cat out/conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9624 then
9625 # The compiler can only warn and ignore the option if not recognized
9626 # So say no if there are warnings
9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9630 lt_cv_prog_compiler_c_o=yes
9631 fi
9632 fi
9633 chmod u+w . 2>&5
9634 $RM -r conftest*
9635 # SGI C++ compiler will create directory out/ii_files/ for
9636 # template instantiation
9637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9638 $RM out/* && rmdir out
9639 cd ..
9640 $RM -r conftest
9641 $RM -r conftest*
9642
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9646
9647
9648
9649
9650 hard_links="nottested"
9651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9652 # do not overwrite the value of need_locks provided by the user
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9654 $as_echo_n "checking if we can lock with hard links... " >&6; }
9655 hard_links=yes
9656 $RM -r conftest*
9657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9658 touch conftest.a
9659 ln conftest.a conftest.b 2>&5 || hard_links=no
9660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9662 $as_echo "$hard_links" >&6; }
9663 if test "$hard_links" = no; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9665 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9666 need_locks=warn
9667 fi
9668 else
9669 need_locks=no
9670 fi
9671
9672
9673
9674
9675
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9678 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9679
9680 runpath_var=
9681 allow_undefined_flag=
9682 always_export_symbols=no
9683 archive_cmds=
9684 archive_expsym_cmds=
9685 compiler_needs_object=no
9686 enable_shared_with_static_runtimes=no
9687 export_dynamic_flag_spec=
9688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9689 hardcode_automatic=no
9690 hardcode_direct=no
9691 hardcode_direct_absolute=no
9692 hardcode_libdir_flag_spec=
9693 hardcode_libdir_separator=
9694 hardcode_minus_L=no
9695 hardcode_shlibpath_var=unsupported
9696 inherit_rpath=no
9697 link_all_deplibs=unknown
9698 module_cmds=
9699 module_expsym_cmds=
9700 old_archive_from_new_cmds=
9701 old_archive_from_expsyms_cmds=
9702 thread_safe_flag_spec=
9703 whole_archive_flag_spec=
9704 # include_expsyms should be a list of space-separated symbols to be *always*
9705 # included in the symbol list
9706 include_expsyms=
9707 # exclude_expsyms can be an extended regexp of symbols to exclude
9708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9710 # as well as any symbol that contains `d'.
9711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9713 # platforms (ab)use it in PIC code, but their linkers get confused if
9714 # the symbol is explicitly referenced. Since portable code cannot
9715 # rely on this symbol name, it's probably fine to never include it in
9716 # preloaded symbol tables.
9717 # Exclude shared library initialization/finalization symbols.
9718 extract_expsyms_cmds=
9719
9720 case $host_os in
9721 cygwin* | mingw* | pw32* | cegcc*)
9722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9723 # When not using gcc, we currently assume that we are using
9724 # Microsoft Visual C++.
9725 if test "$GCC" != yes; then
9726 with_gnu_ld=no
9727 fi
9728 ;;
9729 interix*)
9730 # we just hope/assume this is gcc and not c89 (= MSVC++)
9731 with_gnu_ld=yes
9732 ;;
9733 openbsd*)
9734 with_gnu_ld=no
9735 ;;
9736 esac
9737
9738 ld_shlibs=yes
9739
9740 # On some targets, GNU ld is compatible enough with the native linker
9741 # that we're better off using the native interface for both.
9742 lt_use_gnu_ld_interface=no
9743 if test "$with_gnu_ld" = yes; then
9744 case $host_os in
9745 aix*)
9746 # The AIX port of GNU ld has always aspired to compatibility
9747 # with the native linker. However, as the warning in the GNU ld
9748 # block says, versions before 2.19.5* couldn't really create working
9749 # shared libraries, regardless of the interface used.
9750 case `$LD -v 2>&1` in
9751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9754 *)
9755 lt_use_gnu_ld_interface=yes
9756 ;;
9757 esac
9758 ;;
9759 *)
9760 lt_use_gnu_ld_interface=yes
9761 ;;
9762 esac
9763 fi
9764
9765 if test "$lt_use_gnu_ld_interface" = yes; then
9766 # If archive_cmds runs LD, not CC, wlarc should be empty
9767 wlarc='${wl}'
9768
9769 # Set some defaults for GNU ld with shared library support. These
9770 # are reset later if shared libraries are not supported. Putting them
9771 # here allows them to be overridden if necessary.
9772 runpath_var=LD_RUN_PATH
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 export_dynamic_flag_spec='${wl}--export-dynamic'
9775 # ancient GNU ld didn't support --whole-archive et. al.
9776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9778 else
9779 whole_archive_flag_spec=
9780 fi
9781 supports_anon_versioning=no
9782 case `$LD -v 2>&1` in
9783 *GNU\ gold*) supports_anon_versioning=yes ;;
9784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9787 *\ 2.11.*) ;; # other 2.11 versions
9788 *) supports_anon_versioning=yes ;;
9789 esac
9790
9791 # See if GNU ld supports shared libraries.
9792 case $host_os in
9793 aix[3-9]*)
9794 # On AIX/PPC, the GNU linker is very broken
9795 if test "$host_cpu" != ia64; then
9796 ld_shlibs=no
9797 cat <<_LT_EOF 1>&2
9798
9799 *** Warning: the GNU linker, at least up to release 2.19, is reported
9800 *** to be unable to reliably create shared libraries on AIX.
9801 *** Therefore, libtool is disabling shared libraries support. If you
9802 *** really care for shared libraries, you may want to install binutils
9803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9804 *** You will then need to restart the configuration process.
9805
9806 _LT_EOF
9807 fi
9808 ;;
9809
9810 amigaos*)
9811 case $host_cpu in
9812 powerpc)
9813 # see comment about AmigaOS4 .so support
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 archive_expsym_cmds=''
9816 ;;
9817 m68k)
9818 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)'
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9821 ;;
9822 esac
9823 ;;
9824
9825 beos*)
9826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827 allow_undefined_flag=unsupported
9828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9829 # support --undefined. This deserves some investigation. FIXME
9830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 else
9832 ld_shlibs=no
9833 fi
9834 ;;
9835
9836 cygwin* | mingw* | pw32* | cegcc*)
9837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9838 # as there is no search path for DLLs.
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 export_dynamic_flag_spec='${wl}--export-all-symbols'
9841 allow_undefined_flag=unsupported
9842 always_export_symbols=no
9843 enable_shared_with_static_runtimes=yes
9844 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'
9845 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9846
9847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9849 # If the export-symbols file already is a .def file (1st line
9850 # is EXPORTS), use it as is; otherwise, prepend...
9851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9852 cp $export_symbols $output_objdir/$soname.def;
9853 else
9854 echo EXPORTS > $output_objdir/$soname.def;
9855 cat $export_symbols >> $output_objdir/$soname.def;
9856 fi~
9857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9858 else
9859 ld_shlibs=no
9860 fi
9861 ;;
9862
9863 haiku*)
9864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9865 link_all_deplibs=yes
9866 ;;
9867
9868 interix[3-9]*)
9869 hardcode_direct=no
9870 hardcode_shlibpath_var=no
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9874 # Instead, shared libraries are loaded at an image base (0x10000000 by
9875 # default) and relocated if they conflict, which is a slow very memory
9876 # consuming and fragmenting process. To avoid this, we pick a random,
9877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9880 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'
9881 ;;
9882
9883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9884 tmp_diet=no
9885 if test "$host_os" = linux-dietlibc; then
9886 case $cc_basename in
9887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9888 esac
9889 fi
9890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9891 && test "$tmp_diet" = no
9892 then
9893 tmp_addflag=' $pic_flag'
9894 tmp_sharedflag='-shared'
9895 case $cc_basename,$host_cpu in
9896 pgcc*) # Portland Group C compiler
9897 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'
9898 tmp_addflag=' $pic_flag'
9899 ;;
9900 pgf77* | pgf90* | pgf95* | pgfortran*)
9901 # Portland Group f77 and f90 compilers
9902 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'
9903 tmp_addflag=' $pic_flag -Mnomain' ;;
9904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9905 tmp_addflag=' -i_dynamic' ;;
9906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9907 tmp_addflag=' -i_dynamic -nofor_main' ;;
9908 ifc* | ifort*) # Intel Fortran compiler
9909 tmp_addflag=' -nofor_main' ;;
9910 lf95*) # Lahey Fortran 8.1
9911 whole_archive_flag_spec=
9912 tmp_sharedflag='--shared' ;;
9913 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9914 tmp_sharedflag='-qmkshrobj'
9915 tmp_addflag= ;;
9916 nvcc*) # Cuda Compiler Driver 2.2
9917 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'
9918 compiler_needs_object=yes
9919 ;;
9920 esac
9921 case `$CC -V 2>&1 | sed 5q` in
9922 *Sun\ C*) # Sun C 5.9
9923 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'
9924 compiler_needs_object=yes
9925 tmp_sharedflag='-G' ;;
9926 *Sun\ F*) # Sun Fortran 8.3
9927 tmp_sharedflag='-G' ;;
9928 esac
9929 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930
9931 if test "x$supports_anon_versioning" = xyes; then
9932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934 echo "local: *; };" >> $output_objdir/$libname.ver~
9935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9936 fi
9937
9938 case $cc_basename in
9939 xlf* | bgf* | bgxlf* | mpixlf*)
9940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9941 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9944 if test "x$supports_anon_versioning" = xyes; then
9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9947 echo "local: *; };" >> $output_objdir/$libname.ver~
9948 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9949 fi
9950 ;;
9951 esac
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9956
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9960 wlarc=
9961 else
9962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964 fi
9965 ;;
9966
9967 solaris*)
9968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9969 ld_shlibs=no
9970 cat <<_LT_EOF 1>&2
9971
9972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9973 *** create shared libraries on Solaris systems. Therefore, libtool
9974 *** is disabling shared libraries support. We urge you to upgrade GNU
9975 *** binutils to release 2.9.1 or newer. Another option is to modify
9976 *** your PATH or compiler configuration so that the native linker is
9977 *** used, and then restart.
9978
9979 _LT_EOF
9980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987
9988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9989 case `$LD -v 2>&1` in
9990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9993
9994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9995 *** reliably create shared libraries on SCO systems. Therefore, libtool
9996 *** is disabling shared libraries support. We urge you to upgrade GNU
9997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9998 *** your PATH or compiler configuration so that the native linker is
9999 *** used, and then restart.
10000
10001 _LT_EOF
10002 ;;
10003 *)
10004 # For security reasons, it is highly recommended that you always
10005 # use absolute paths for naming shared libraries, and exclude the
10006 # DT_RUNPATH tag from executables and libraries. But doing so
10007 # requires that you compile everything twice, which is a pain.
10008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10012 else
10013 ld_shlibs=no
10014 fi
10015 ;;
10016 esac
10017 ;;
10018
10019 sunos4*)
10020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10021 wlarc=
10022 hardcode_direct=yes
10023 hardcode_shlibpath_var=no
10024 ;;
10025
10026 *)
10027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10032 fi
10033 ;;
10034 esac
10035
10036 if test "$ld_shlibs" = no; then
10037 runpath_var=
10038 hardcode_libdir_flag_spec=
10039 export_dynamic_flag_spec=
10040 whole_archive_flag_spec=
10041 fi
10042 else
10043 # PORTME fill in a description of your system's linker (not GNU ld)
10044 case $host_os in
10045 aix3*)
10046 allow_undefined_flag=unsupported
10047 always_export_symbols=yes
10048 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'
10049 # Note: this linker hardcodes the directories in LIBPATH if there
10050 # are no directories specified by -L.
10051 hardcode_minus_L=yes
10052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10053 # Neither direct hardcoding nor static linking is supported with a
10054 # broken collect2.
10055 hardcode_direct=unsupported
10056 fi
10057 ;;
10058
10059 aix[4-9]*)
10060 if test "$host_cpu" = ia64; then
10061 # On IA64, the linker does run time linking by default, so we don't
10062 # have to do anything special.
10063 aix_use_runtimelinking=no
10064 exp_sym_flag='-Bexport'
10065 no_entry_flag=""
10066 else
10067 # If we're using GNU nm, then we don't want the "-C" option.
10068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10069 # Also, AIX nm treats weak defined symbols like other global
10070 # defined symbols, whereas GNU nm marks them as "W".
10071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10072 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10073 else
10074 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10075 fi
10076 aix_use_runtimelinking=no
10077
10078 # Test if we are trying to use run time linking or normal
10079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10080 # need to do runtime linking.
10081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10082 for ld_flag in $LDFLAGS; do
10083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10084 aix_use_runtimelinking=yes
10085 break
10086 fi
10087 done
10088 ;;
10089 esac
10090
10091 exp_sym_flag='-bexport'
10092 no_entry_flag='-bnoentry'
10093 fi
10094
10095 # When large executables or shared objects are built, AIX ld can
10096 # have problems creating the table of contents. If linking a library
10097 # or program results in "error TOC overflow" add -mminimal-toc to
10098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10100
10101 archive_cmds=''
10102 hardcode_direct=yes
10103 hardcode_direct_absolute=yes
10104 hardcode_libdir_separator=':'
10105 link_all_deplibs=yes
10106 file_list_spec='${wl}-f,'
10107
10108 if test "$GCC" = yes; then
10109 case $host_os in aix4.[012]|aix4.[012].*)
10110 # We only want to do this on AIX 4.2 and lower, the check
10111 # below for broken collect2 doesn't work under 4.3+
10112 collect2name=`${CC} -print-prog-name=collect2`
10113 if test -f "$collect2name" &&
10114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10115 then
10116 # We have reworked collect2
10117 :
10118 else
10119 # We have old collect2
10120 hardcode_direct=unsupported
10121 # It fails to find uninstalled libraries when the uninstalled
10122 # path is not listed in the libpath. Setting hardcode_minus_L
10123 # to unsupported forces relinking
10124 hardcode_minus_L=yes
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_libdir_separator=
10127 fi
10128 ;;
10129 esac
10130 shared_flag='-shared'
10131 if test "$aix_use_runtimelinking" = yes; then
10132 shared_flag="$shared_flag "'${wl}-G'
10133 fi
10134 else
10135 # not using gcc
10136 if test "$host_cpu" = ia64; then
10137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10138 # chokes on -Wl,-G. The following line is correct:
10139 shared_flag='-G'
10140 else
10141 if test "$aix_use_runtimelinking" = yes; then
10142 shared_flag='${wl}-G'
10143 else
10144 shared_flag='${wl}-bM:SRE'
10145 fi
10146 fi
10147 fi
10148
10149 export_dynamic_flag_spec='${wl}-bexpall'
10150 # It seems that -bexpall does not export symbols beginning with
10151 # underscore (_), so it is better to generate a list of symbols to export.
10152 always_export_symbols=yes
10153 if test "$aix_use_runtimelinking" = yes; then
10154 # Warning - without using the other runtime loading flags (-brtl),
10155 # -berok will link without error, but may produce a broken library.
10156 allow_undefined_flag='-berok'
10157 # Determine the default libpath from the value encoded in an
10158 # empty executable.
10159 if test "${lt_cv_aix_libpath+set}" = set; then
10160 aix_libpath=$lt_cv_aix_libpath
10161 else
10162 if ${lt_cv_aix_libpath_+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167
10168 int
10169 main ()
10170 {
10171
10172 ;
10173 return 0;
10174 }
10175 _ACEOF
10176 if ac_fn_c_try_link "$LINENO"; then :
10177
10178 lt_aix_libpath_sed='
10179 /Import File Strings/,/^$/ {
10180 /^0/ {
10181 s/^0 *\([^ ]*\) *$/\1/
10182 p
10183 }
10184 }'
10185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186 # Check for a 64-bit object if we didn't find anything.
10187 if test -z "$lt_cv_aix_libpath_"; then
10188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 fi
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 if test -z "$lt_cv_aix_libpath_"; then
10194 lt_cv_aix_libpath_="/usr/lib:/lib"
10195 fi
10196
10197 fi
10198
10199 aix_libpath=$lt_cv_aix_libpath_
10200 fi
10201
10202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10203 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10204 else
10205 if test "$host_cpu" = ia64; then
10206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10207 allow_undefined_flag="-z nodefs"
10208 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"
10209 else
10210 # Determine the default libpath from the value encoded in an
10211 # empty executable.
10212 if test "${lt_cv_aix_libpath+set}" = set; then
10213 aix_libpath=$lt_cv_aix_libpath
10214 else
10215 if ${lt_cv_aix_libpath_+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220
10221 int
10222 main ()
10223 {
10224
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10230
10231 lt_aix_libpath_sed='
10232 /Import File Strings/,/^$/ {
10233 /^0/ {
10234 s/^0 *\([^ ]*\) *$/\1/
10235 p
10236 }
10237 }'
10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10239 # Check for a 64-bit object if we didn't find anything.
10240 if test -z "$lt_cv_aix_libpath_"; then
10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 fi
10243 fi
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 if test -z "$lt_cv_aix_libpath_"; then
10247 lt_cv_aix_libpath_="/usr/lib:/lib"
10248 fi
10249
10250 fi
10251
10252 aix_libpath=$lt_cv_aix_libpath_
10253 fi
10254
10255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10256 # Warning - without using the other run time loading flags,
10257 # -berok will link without error, but may produce a broken library.
10258 no_undefined_flag=' ${wl}-bernotok'
10259 allow_undefined_flag=' ${wl}-berok'
10260 if test "$with_gnu_ld" = yes; then
10261 # We only use this code for GNU lds that support --whole-archive.
10262 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10263 else
10264 # Exported symbols can be pulled into shared objects from archives
10265 whole_archive_flag_spec='$convenience'
10266 fi
10267 archive_cmds_need_lc=yes
10268 # This is similar to how AIX traditionally builds its shared libraries.
10269 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10270 fi
10271 fi
10272 ;;
10273
10274 amigaos*)
10275 case $host_cpu in
10276 powerpc)
10277 # see comment about AmigaOS4 .so support
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds=''
10280 ;;
10281 m68k)
10282 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)'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_minus_L=yes
10285 ;;
10286 esac
10287 ;;
10288
10289 bsdi[45]*)
10290 export_dynamic_flag_spec=-rdynamic
10291 ;;
10292
10293 cygwin* | mingw* | pw32* | cegcc*)
10294 # When not using gcc, we currently assume that we are using
10295 # Microsoft Visual C++.
10296 # hardcode_libdir_flag_spec is actually meaningless, as there is
10297 # no search path for DLLs.
10298 case $cc_basename in
10299 cl*)
10300 # Native MSVC
10301 hardcode_libdir_flag_spec=' '
10302 allow_undefined_flag=unsupported
10303 always_export_symbols=yes
10304 file_list_spec='@'
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=".dll"
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10312 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10313 else
10314 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10315 fi~
10316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10317 linknames='
10318 # The linker will not automatically build a static lib if we build a DLL.
10319 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10320 enable_shared_with_static_runtimes=yes
10321 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10323 # Don't use ranlib
10324 old_postinstall_cmds='chmod 644 $oldlib'
10325 postlink_cmds='lt_outputfile="@OUTPUT@"~
10326 lt_tool_outputfile="@TOOL_OUTPUT@"~
10327 case $lt_outputfile in
10328 *.exe|*.EXE) ;;
10329 *)
10330 lt_outputfile="$lt_outputfile.exe"
10331 lt_tool_outputfile="$lt_tool_outputfile.exe"
10332 ;;
10333 esac~
10334 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10335 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10336 $RM "$lt_outputfile.manifest";
10337 fi'
10338 ;;
10339 *)
10340 # Assume MSVC wrapper
10341 hardcode_libdir_flag_spec=' '
10342 allow_undefined_flag=unsupported
10343 # Tell ltmain to make .lib files, not .a files.
10344 libext=lib
10345 # Tell ltmain to make .dll files, not .so files.
10346 shrext_cmds=".dll"
10347 # FIXME: Setting linknames here is a bad hack.
10348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10349 # The linker will automatically build a .lib file if we build a DLL.
10350 old_archive_from_new_cmds='true'
10351 # FIXME: Should let the user specify the lib program.
10352 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10353 enable_shared_with_static_runtimes=yes
10354 ;;
10355 esac
10356 ;;
10357
10358 darwin* | rhapsody*)
10359
10360
10361 archive_cmds_need_lc=no
10362 hardcode_direct=no
10363 hardcode_automatic=yes
10364 hardcode_shlibpath_var=unsupported
10365 if test "$lt_cv_ld_force_load" = "yes"; then
10366 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\"`'
10367
10368 else
10369 whole_archive_flag_spec=''
10370 fi
10371 link_all_deplibs=yes
10372 allow_undefined_flag="$_lt_dar_allow_undefined"
10373 case $cc_basename in
10374 ifort*) _lt_dar_can_shared=yes ;;
10375 *) _lt_dar_can_shared=$GCC ;;
10376 esac
10377 if test "$_lt_dar_can_shared" = "yes"; then
10378 output_verbose_link_cmd=func_echo_all
10379 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10380 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10381 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}"
10382 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}"
10383
10384 else
10385 ld_shlibs=no
10386 fi
10387
10388 ;;
10389
10390 dgux*)
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10397 # support. Future versions do this automatically, but an explicit c++rt0.o
10398 # does not break anything, and helps significantly (at the cost of a little
10399 # extra space).
10400 freebsd2.2*)
10401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_direct=yes
10404 hardcode_shlibpath_var=no
10405 ;;
10406
10407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10408 freebsd2.*)
10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_direct=yes
10411 hardcode_minus_L=yes
10412 hardcode_shlibpath_var=no
10413 ;;
10414
10415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10416 freebsd* | dragonfly*)
10417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418 hardcode_libdir_flag_spec='-R$libdir'
10419 hardcode_direct=yes
10420 hardcode_shlibpath_var=no
10421 ;;
10422
10423 hpux9*)
10424 if test "$GCC" = yes; then
10425 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10426 else
10427 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10428 fi
10429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_direct=yes
10432
10433 # hardcode_minus_L: Not really in the search PATH,
10434 # but as the default location of the library.
10435 hardcode_minus_L=yes
10436 export_dynamic_flag_spec='${wl}-E'
10437 ;;
10438
10439 hpux10*)
10440 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 else
10443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10444 fi
10445 if test "$with_gnu_ld" = no; then
10446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10447 hardcode_libdir_separator=:
10448 hardcode_direct=yes
10449 hardcode_direct_absolute=yes
10450 export_dynamic_flag_spec='${wl}-E'
10451 # hardcode_minus_L: Not really in the search PATH,
10452 # but as the default location of the library.
10453 hardcode_minus_L=yes
10454 fi
10455 ;;
10456
10457 hpux11*)
10458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10459 case $host_cpu in
10460 hppa*64*)
10461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 ;;
10463 ia64*)
10464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465 ;;
10466 *)
10467 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10468 ;;
10469 esac
10470 else
10471 case $host_cpu in
10472 hppa*64*)
10473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 ;;
10475 ia64*)
10476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10477 ;;
10478 *)
10479
10480 # Older versions of the 11.00 compiler do not understand -b yet
10481 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10483 $as_echo_n "checking if $CC understands -b... " >&6; }
10484 if ${lt_cv_prog_compiler__b+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 lt_cv_prog_compiler__b=no
10488 save_LDFLAGS="$LDFLAGS"
10489 LDFLAGS="$LDFLAGS -b"
10490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10492 # The linker can only warn and ignore the option if not recognized
10493 # So say no if there are warnings
10494 if test -s conftest.err; then
10495 # Append any errors to the config.log.
10496 cat conftest.err 1>&5
10497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10499 if diff conftest.exp conftest.er2 >/dev/null; then
10500 lt_cv_prog_compiler__b=yes
10501 fi
10502 else
10503 lt_cv_prog_compiler__b=yes
10504 fi
10505 fi
10506 $RM -r conftest*
10507 LDFLAGS="$save_LDFLAGS"
10508
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10511 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10512
10513 if test x"$lt_cv_prog_compiler__b" = xyes; then
10514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515 else
10516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10517 fi
10518
10519 ;;
10520 esac
10521 fi
10522 if test "$with_gnu_ld" = no; then
10523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10524 hardcode_libdir_separator=:
10525
10526 case $host_cpu in
10527 hppa*64*|ia64*)
10528 hardcode_direct=no
10529 hardcode_shlibpath_var=no
10530 ;;
10531 *)
10532 hardcode_direct=yes
10533 hardcode_direct_absolute=yes
10534 export_dynamic_flag_spec='${wl}-E'
10535
10536 # hardcode_minus_L: Not really in the search PATH,
10537 # but as the default location of the library.
10538 hardcode_minus_L=yes
10539 ;;
10540 esac
10541 fi
10542 ;;
10543
10544 irix5* | irix6* | nonstopux*)
10545 if test "$GCC" = yes; then
10546 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'
10547 # Try to use the -exported_symbol ld option, if it does not
10548 # work, assume that -exports_file does not work either and
10549 # implicitly export all symbols.
10550 # This should be the same for all languages, so no per-tag cache variable.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10552 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10553 if ${lt_cv_irix_exported_symbol+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 save_LDFLAGS="$LDFLAGS"
10557 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 int foo (void) { return 0; }
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"; then :
10563 lt_cv_irix_exported_symbol=yes
10564 else
10565 lt_cv_irix_exported_symbol=no
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LDFLAGS="$save_LDFLAGS"
10570 fi
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10572 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10573 if test "$lt_cv_irix_exported_symbol" = yes; then
10574 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'
10575 fi
10576 else
10577 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'
10578 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'
10579 fi
10580 archive_cmds_need_lc='no'
10581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10582 hardcode_libdir_separator=:
10583 inherit_rpath=yes
10584 link_all_deplibs=yes
10585 ;;
10586
10587 netbsd*)
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10590 else
10591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10592 fi
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10596 ;;
10597
10598 newsos6)
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_direct=yes
10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_shlibpath_var=no
10604 ;;
10605
10606 *nto* | *qnx*)
10607 ;;
10608
10609 openbsd*)
10610 if test -f /usr/libexec/ld.so; then
10611 hardcode_direct=yes
10612 hardcode_shlibpath_var=no
10613 hardcode_direct_absolute=yes
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10618 export_dynamic_flag_spec='${wl}-E'
10619 else
10620 case $host_os in
10621 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_libdir_flag_spec='-R$libdir'
10624 ;;
10625 *)
10626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10628 ;;
10629 esac
10630 fi
10631 else
10632 ld_shlibs=no
10633 fi
10634 ;;
10635
10636 os2*)
10637 hardcode_libdir_flag_spec='-L$libdir'
10638 hardcode_minus_L=yes
10639 allow_undefined_flag=unsupported
10640 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10641 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10642 ;;
10643
10644 osf3*)
10645 if test "$GCC" = yes; then
10646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10647 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'
10648 else
10649 allow_undefined_flag=' -expect_unresolved \*'
10650 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'
10651 fi
10652 archive_cmds_need_lc='no'
10653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10654 hardcode_libdir_separator=:
10655 ;;
10656
10657 osf4* | osf5*) # as osf3* with the addition of -msym flag
10658 if test "$GCC" = yes; then
10659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10660 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'
10661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662 else
10663 allow_undefined_flag=' -expect_unresolved \*'
10664 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'
10665 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~
10666 $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'
10667
10668 # Both c and cxx compiler support -rpath directly
10669 hardcode_libdir_flag_spec='-rpath $libdir'
10670 fi
10671 archive_cmds_need_lc='no'
10672 hardcode_libdir_separator=:
10673 ;;
10674
10675 solaris*)
10676 no_undefined_flag=' -z defs'
10677 if test "$GCC" = yes; then
10678 wlarc='${wl}'
10679 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10681 $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'
10682 else
10683 case `$CC -V 2>&1` in
10684 *"Compilers 5.0"*)
10685 wlarc=''
10686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10689 ;;
10690 *)
10691 wlarc='${wl}'
10692 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10694 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10695 ;;
10696 esac
10697 fi
10698 hardcode_libdir_flag_spec='-R$libdir'
10699 hardcode_shlibpath_var=no
10700 case $host_os in
10701 solaris2.[0-5] | solaris2.[0-5].*) ;;
10702 *)
10703 # The compiler driver will combine and reorder linker options,
10704 # but understands `-z linker_flag'. GCC discards it without `$wl',
10705 # but is careful enough not to reorder.
10706 # Supported since Solaris 2.6 (maybe 2.5.1?)
10707 if test "$GCC" = yes; then
10708 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10709 else
10710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10711 fi
10712 ;;
10713 esac
10714 link_all_deplibs=yes
10715 ;;
10716
10717 sunos4*)
10718 if test "x$host_vendor" = xsequent; then
10719 # Use $CC to link under sequent, because it throws in some extra .o
10720 # files that make .init and .fini sections work.
10721 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10722 else
10723 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10724 fi
10725 hardcode_libdir_flag_spec='-L$libdir'
10726 hardcode_direct=yes
10727 hardcode_minus_L=yes
10728 hardcode_shlibpath_var=no
10729 ;;
10730
10731 sysv4)
10732 case $host_vendor in
10733 sni)
10734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_direct=yes # is this really true???
10736 ;;
10737 siemens)
10738 ## LD is ld it makes a PLAMLIB
10739 ## CC just makes a GrossModule.
10740 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10741 reload_cmds='$CC -r -o $output$reload_objs'
10742 hardcode_direct=no
10743 ;;
10744 motorola)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10747 ;;
10748 esac
10749 runpath_var='LD_RUN_PATH'
10750 hardcode_shlibpath_var=no
10751 ;;
10752
10753 sysv4.3*)
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_shlibpath_var=no
10756 export_dynamic_flag_spec='-Bexport'
10757 ;;
10758
10759 sysv4*MP*)
10760 if test -d /usr/nec; then
10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_shlibpath_var=no
10763 runpath_var=LD_RUN_PATH
10764 hardcode_runpath_var=yes
10765 ld_shlibs=yes
10766 fi
10767 ;;
10768
10769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10770 no_undefined_flag='${wl}-z,text'
10771 archive_cmds_need_lc=no
10772 hardcode_shlibpath_var=no
10773 runpath_var='LD_RUN_PATH'
10774
10775 if test "$GCC" = yes; then
10776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 else
10779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 fi
10782 ;;
10783
10784 sysv5* | sco3.2v5* | sco5v6*)
10785 # Note: We can NOT use -z defs as we might desire, because we do not
10786 # link with -lc, and that would cause any symbols used from libc to
10787 # always be unresolved, which means just about no library would
10788 # ever link correctly. If we're not using GNU ld we use -z text
10789 # though, which does catch some bad symbols but isn't as heavy-handed
10790 # as -z defs.
10791 no_undefined_flag='${wl}-z,text'
10792 allow_undefined_flag='${wl}-z,nodefs'
10793 archive_cmds_need_lc=no
10794 hardcode_shlibpath_var=no
10795 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10796 hardcode_libdir_separator=':'
10797 link_all_deplibs=yes
10798 export_dynamic_flag_spec='${wl}-Bexport'
10799 runpath_var='LD_RUN_PATH'
10800
10801 if test "$GCC" = yes; then
10802 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 else
10805 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 fi
10808 ;;
10809
10810 uts4*)
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_libdir_flag_spec='-L$libdir'
10813 hardcode_shlibpath_var=no
10814 ;;
10815
10816 *)
10817 ld_shlibs=no
10818 ;;
10819 esac
10820
10821 if test x$host_vendor = xsni; then
10822 case $host in
10823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10824 export_dynamic_flag_spec='${wl}-Blargedynsym'
10825 ;;
10826 esac
10827 fi
10828 fi
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10831 $as_echo "$ld_shlibs" >&6; }
10832 test "$ld_shlibs" = no && can_build_shared=no
10833
10834 with_gnu_ld=$with_gnu_ld
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850 #
10851 # Do we need to explicitly link libc?
10852 #
10853 case "x$archive_cmds_need_lc" in
10854 x|xyes)
10855 # Assume -lc should be added
10856 archive_cmds_need_lc=yes
10857
10858 if test "$enable_shared" = yes && test "$GCC" = yes; then
10859 case $archive_cmds in
10860 *'~'*)
10861 # FIXME: we may have to deal with multi-command sequences.
10862 ;;
10863 '$CC '*)
10864 # Test whether the compiler implicitly links with -lc since on some
10865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10866 # to ld, don't add -lc before -lgcc.
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10869 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 $RM -r conftest*
10873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10874
10875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10876 (eval $ac_compile) 2>&5
10877 ac_status=$?
10878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10879 test $ac_status = 0; } 2>conftest.err; then
10880 soname=conftest
10881 lib=conftest
10882 libobjs=conftest.$ac_objext
10883 deplibs=
10884 wl=$lt_prog_compiler_wl
10885 pic_flag=$lt_prog_compiler_pic
10886 compiler_flags=-v
10887 linker_flags=-v
10888 verstring=
10889 output_objdir=.
10890 libname=conftest
10891 lt_save_allow_undefined_flag=$allow_undefined_flag
10892 allow_undefined_flag=
10893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10894 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10895 ac_status=$?
10896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10897 test $ac_status = 0; }
10898 then
10899 lt_cv_archive_cmds_need_lc=no
10900 else
10901 lt_cv_archive_cmds_need_lc=yes
10902 fi
10903 allow_undefined_flag=$lt_save_allow_undefined_flag
10904 else
10905 cat conftest.err 1>&5
10906 fi
10907 $RM -r conftest*
10908
10909 fi
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10911 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10912 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10913 ;;
10914 esac
10915 fi
10916 ;;
10917 esac
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11072
11073 if test "$GCC" = yes; then
11074 case $host_os in
11075 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11076 *) lt_awk_arg="/^libraries:/" ;;
11077 esac
11078 case $host_os in
11079 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11080 *) lt_sed_strip_eq="s,=/,/,g" ;;
11081 esac
11082 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11083 case $lt_search_path_spec in
11084 *\;*)
11085 # if the path contains ";" then we assume it to be the separator
11086 # otherwise default to the standard path separator (i.e. ":") - it is
11087 # assumed that no part of a normal pathname contains ";" but that should
11088 # okay in the real world where ";" in dirpaths is itself problematic.
11089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11090 ;;
11091 *)
11092 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11093 ;;
11094 esac
11095 # Ok, now we have the path, separated by spaces, we can step through it
11096 # and add multilib dir if necessary.
11097 lt_tmp_lt_search_path_spec=
11098 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11099 for lt_sys_path in $lt_search_path_spec; do
11100 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11102 else
11103 test -d "$lt_sys_path" && \
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11105 fi
11106 done
11107 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11108 BEGIN {RS=" "; FS="/|\n";} {
11109 lt_foo="";
11110 lt_count=0;
11111 for (lt_i = NF; lt_i > 0; lt_i--) {
11112 if ($lt_i != "" && $lt_i != ".") {
11113 if ($lt_i == "..") {
11114 lt_count++;
11115 } else {
11116 if (lt_count == 0) {
11117 lt_foo="/" $lt_i lt_foo;
11118 } else {
11119 lt_count--;
11120 }
11121 }
11122 }
11123 }
11124 if (lt_foo != "") { lt_freq[lt_foo]++; }
11125 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11126 }'`
11127 # AWK program above erroneously prepends '/' to C:/dos/paths
11128 # for these hosts.
11129 case $host_os in
11130 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11131 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11132 esac
11133 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11134 else
11135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11136 fi
11137 library_names_spec=
11138 libname_spec='lib$name'
11139 soname_spec=
11140 shrext_cmds=".so"
11141 postinstall_cmds=
11142 postuninstall_cmds=
11143 finish_cmds=
11144 finish_eval=
11145 shlibpath_var=
11146 shlibpath_overrides_runpath=unknown
11147 version_type=none
11148 dynamic_linker="$host_os ld.so"
11149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11150 need_lib_prefix=unknown
11151 hardcode_into_libs=no
11152
11153 # when you set need_version to no, make sure it does not cause -set_version
11154 # flags to be left without arguments
11155 need_version=unknown
11156
11157 case $host_os in
11158 aix3*)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11161 shlibpath_var=LIBPATH
11162
11163 # AIX 3 has no versioning support, so we append a major version to the name.
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 ;;
11166
11167 aix[4-9]*)
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 need_lib_prefix=no
11170 need_version=no
11171 hardcode_into_libs=yes
11172 if test "$host_cpu" = ia64; then
11173 # AIX 5 supports IA64
11174 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 else
11177 # With GCC up to 2.95.x, collect2 would create an import file
11178 # for dependence libraries. The import file would start with
11179 # the line `#! .'. This would cause the generated library to
11180 # depend on `.', always an invalid library. This was fixed in
11181 # development snapshots of GCC prior to 3.0.
11182 case $host_os in
11183 aix4 | aix4.[01] | aix4.[01].*)
11184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11185 echo ' yes '
11186 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11187 :
11188 else
11189 can_build_shared=no
11190 fi
11191 ;;
11192 esac
11193 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11194 # soname into executable. Probably we can add versioning support to
11195 # collect2, so additional links can be useful in future.
11196 if test "$aix_use_runtimelinking" = yes; then
11197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11198 # instead of lib<name>.a to let people know that these are not
11199 # typical AIX shared libraries.
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 else
11202 # We preserve .a as extension for shared libraries through AIX4.2
11203 # and later when we are not doing run time linking.
11204 library_names_spec='${libname}${release}.a $libname.a'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 fi
11207 shlibpath_var=LIBPATH
11208 fi
11209 ;;
11210
11211 amigaos*)
11212 case $host_cpu in
11213 powerpc)
11214 # Since July 2007 AmigaOS4 officially supports .so libraries.
11215 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 ;;
11218 m68k)
11219 library_names_spec='$libname.ixlibrary $libname.a'
11220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11221 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11222 ;;
11223 esac
11224 ;;
11225
11226 beos*)
11227 library_names_spec='${libname}${shared_ext}'
11228 dynamic_linker="$host_os ld.so"
11229 shlibpath_var=LIBRARY_PATH
11230 ;;
11231
11232 bsdi[45]*)
11233 version_type=linux # correct to gnu/linux during the next big refactor
11234 need_version=no
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11241 # the default ld.so.conf also contains /usr/contrib/lib and
11242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11243 # libtool to hard-code these into programs
11244 ;;
11245
11246 cygwin* | mingw* | pw32* | cegcc*)
11247 version_type=windows
11248 shrext_cmds=".dll"
11249 need_version=no
11250 need_lib_prefix=no
11251
11252 case $GCC,$cc_basename in
11253 yes,*)
11254 # gcc
11255 library_names_spec='$libname.dll.a'
11256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11257 postinstall_cmds='base_file=`basename \${file}`~
11258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11259 dldir=$destdir/`dirname \$dlpath`~
11260 test -d \$dldir || mkdir -p \$dldir~
11261 $install_prog $dir/$dlname \$dldir/$dlname~
11262 chmod a+x \$dldir/$dlname~
11263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11265 fi'
11266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11267 dlpath=$dir/\$dldll~
11268 $RM \$dlpath'
11269 shlibpath_overrides_runpath=yes
11270
11271 case $host_os in
11272 cygwin*)
11273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11274 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11275
11276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11277 ;;
11278 mingw* | cegcc*)
11279 # MinGW DLLs use traditional 'lib' prefix
11280 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11281 ;;
11282 pw32*)
11283 # pw32 DLLs use 'pw' prefix rather than 'lib'
11284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11285 ;;
11286 esac
11287 dynamic_linker='Win32 ld.exe'
11288 ;;
11289
11290 *,cl*)
11291 # Native MSVC
11292 libname_spec='$name'
11293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11294 library_names_spec='${libname}.dll.lib'
11295
11296 case $build_os in
11297 mingw*)
11298 sys_lib_search_path_spec=
11299 lt_save_ifs=$IFS
11300 IFS=';'
11301 for lt_path in $LIB
11302 do
11303 IFS=$lt_save_ifs
11304 # Let DOS variable expansion print the short 8.3 style file name.
11305 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11306 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11307 done
11308 IFS=$lt_save_ifs
11309 # Convert to MSYS style.
11310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11311 ;;
11312 cygwin*)
11313 # Convert to unix form, then to dos form, then back to unix form
11314 # but this time dos style (no spaces!) so that the unix form looks
11315 # like /cygdrive/c/PROGRA~1:/cygdr...
11316 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11317 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11318 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11319 ;;
11320 *)
11321 sys_lib_search_path_spec="$LIB"
11322 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11323 # It is most probably a Windows format PATH.
11324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11325 else
11326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11327 fi
11328 # FIXME: find the short name or the path components, as spaces are
11329 # common. (e.g. "Program Files" -> "PROGRA~1")
11330 ;;
11331 esac
11332
11333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11334 postinstall_cmds='base_file=`basename \${file}`~
11335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11336 dldir=$destdir/`dirname \$dlpath`~
11337 test -d \$dldir || mkdir -p \$dldir~
11338 $install_prog $dir/$dlname \$dldir/$dlname'
11339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11340 dlpath=$dir/\$dldll~
11341 $RM \$dlpath'
11342 shlibpath_overrides_runpath=yes
11343 dynamic_linker='Win32 link.exe'
11344 ;;
11345
11346 *)
11347 # Assume MSVC wrapper
11348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11349 dynamic_linker='Win32 ld.exe'
11350 ;;
11351 esac
11352 # FIXME: first we should search . and the directory the executable is in
11353 shlibpath_var=PATH
11354 ;;
11355
11356 darwin* | rhapsody*)
11357 dynamic_linker="$host_os dyld"
11358 version_type=darwin
11359 need_lib_prefix=no
11360 need_version=no
11361 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11362 soname_spec='${libname}${release}${major}$shared_ext'
11363 shlibpath_overrides_runpath=yes
11364 shlibpath_var=DYLD_LIBRARY_PATH
11365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11366
11367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11369 ;;
11370
11371 dgux*)
11372 version_type=linux # correct to gnu/linux during the next big refactor
11373 need_lib_prefix=no
11374 need_version=no
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 ;;
11379
11380 freebsd* | dragonfly*)
11381 # DragonFly does not have aout. When/if they implement a new
11382 # versioning mechanism, adjust this.
11383 if test -x /usr/bin/objformat; then
11384 objformat=`/usr/bin/objformat`
11385 else
11386 case $host_os in
11387 freebsd[23].*) objformat=aout ;;
11388 *) objformat=elf ;;
11389 esac
11390 fi
11391 version_type=freebsd-$objformat
11392 case $version_type in
11393 freebsd-elf*)
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 need_version=no
11396 need_lib_prefix=no
11397 ;;
11398 freebsd-*)
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11400 need_version=yes
11401 ;;
11402 esac
11403 shlibpath_var=LD_LIBRARY_PATH
11404 case $host_os in
11405 freebsd2.*)
11406 shlibpath_overrides_runpath=yes
11407 ;;
11408 freebsd3.[01]* | freebsdelf3.[01]*)
11409 shlibpath_overrides_runpath=yes
11410 hardcode_into_libs=yes
11411 ;;
11412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11414 shlibpath_overrides_runpath=no
11415 hardcode_into_libs=yes
11416 ;;
11417 *) # from 4.6 on, and DragonFly
11418 shlibpath_overrides_runpath=yes
11419 hardcode_into_libs=yes
11420 ;;
11421 esac
11422 ;;
11423
11424 gnu*)
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11433 ;;
11434
11435 haiku*)
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 need_lib_prefix=no
11438 need_version=no
11439 dynamic_linker="$host_os runtime_loader"
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 shlibpath_var=LIBRARY_PATH
11443 shlibpath_overrides_runpath=yes
11444 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11445 hardcode_into_libs=yes
11446 ;;
11447
11448 hpux9* | hpux10* | hpux11*)
11449 # Give a soname corresponding to the major version so that dld.sl refuses to
11450 # link against other versions.
11451 version_type=sunos
11452 need_lib_prefix=no
11453 need_version=no
11454 case $host_cpu in
11455 ia64*)
11456 shrext_cmds='.so'
11457 hardcode_into_libs=yes
11458 dynamic_linker="$host_os dld.so"
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 if test "X$HPUX_IA64_MODE" = X32; then
11464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11465 else
11466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11467 fi
11468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11469 ;;
11470 hppa*64*)
11471 shrext_cmds='.sl'
11472 hardcode_into_libs=yes
11473 dynamic_linker="$host_os dld.sl"
11474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11480 ;;
11481 *)
11482 shrext_cmds='.sl'
11483 dynamic_linker="$host_os dld.sl"
11484 shlibpath_var=SHLIB_PATH
11485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11488 ;;
11489 esac
11490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11491 postinstall_cmds='chmod 555 $lib'
11492 # or fails outright, so override atomically:
11493 install_override_mode=555
11494 ;;
11495
11496 interix[3-9]*)
11497 version_type=linux # correct to gnu/linux during the next big refactor
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=no
11505 hardcode_into_libs=yes
11506 ;;
11507
11508 irix5* | irix6* | nonstopux*)
11509 case $host_os in
11510 nonstopux*) version_type=nonstopux ;;
11511 *)
11512 if test "$lt_cv_prog_gnu_ld" = yes; then
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 else
11515 version_type=irix
11516 fi ;;
11517 esac
11518 need_lib_prefix=no
11519 need_version=no
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11522 case $host_os in
11523 irix5* | nonstopux*)
11524 libsuff= shlibsuff=
11525 ;;
11526 *)
11527 case $LD in # libtool.m4 will add one of these switches to LD
11528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11529 libsuff= shlibsuff= libmagic=32-bit;;
11530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11531 libsuff=32 shlibsuff=N32 libmagic=N32;;
11532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11534 *) libsuff= shlibsuff= libmagic=never-match;;
11535 esac
11536 ;;
11537 esac
11538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11542 hardcode_into_libs=yes
11543 ;;
11544
11545 # No shared lib support for Linux oldld, aout, or coff.
11546 linux*oldld* | linux*aout* | linux*coff*)
11547 dynamic_linker=no
11548 ;;
11549
11550 # This must be glibc/ELF.
11551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11552 version_type=linux # correct to gnu/linux during the next big refactor
11553 need_lib_prefix=no
11554 need_version=no
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=no
11560
11561 # Some binutils ld are patched to set DT_RUNPATH
11562 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 lt_cv_shlibpath_overrides_runpath=no
11566 save_LDFLAGS=$LDFLAGS
11567 save_libdir=$libdir
11568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 int
11574 main ()
11575 {
11576
11577 ;
11578 return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11583 lt_cv_shlibpath_overrides_runpath=yes
11584 fi
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LDFLAGS=$save_LDFLAGS
11589 libdir=$save_libdir
11590
11591 fi
11592
11593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11594
11595 # This implies no fast_install, which is unacceptable.
11596 # Some rework will be needed to allow for fast_install
11597 # before this can be enabled.
11598 hardcode_into_libs=yes
11599
11600 # Append ld.so.conf contents to the search path
11601 if test -f /etc/ld.so.conf; then
11602 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' ' '`
11603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11604 fi
11605
11606 # We used to test for /lib/ld.so.1 and disable shared libraries on
11607 # powerpc, because MkLinux only supported shared libraries with the
11608 # GNU dynamic linker. Since this was broken with cross compilers,
11609 # most powerpc-linux boxes support dynamic linking these days and
11610 # people can always --disable-shared, the test was removed, and we
11611 # assume the GNU/Linux dynamic linker is in use.
11612 dynamic_linker='GNU/Linux ld.so'
11613 ;;
11614
11615 netbsd*)
11616 version_type=sunos
11617 need_lib_prefix=no
11618 need_version=no
11619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 dynamic_linker='NetBSD (a.out) ld.so'
11623 else
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 dynamic_linker='NetBSD ld.elf_so'
11627 fi
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 hardcode_into_libs=yes
11631 ;;
11632
11633 newsos6)
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11638 ;;
11639
11640 *nto* | *qnx*)
11641 version_type=qnx
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='ldqnx.so'
11650 ;;
11651
11652 openbsd*)
11653 version_type=sunos
11654 sys_lib_dlsearch_path_spec="/usr/lib"
11655 need_lib_prefix=no
11656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11657 case $host_os in
11658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11659 *) need_version=no ;;
11660 esac
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11665 case $host_os in
11666 openbsd2.[89] | openbsd2.[89].*)
11667 shlibpath_overrides_runpath=no
11668 ;;
11669 *)
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672 esac
11673 else
11674 shlibpath_overrides_runpath=yes
11675 fi
11676 ;;
11677
11678 os2*)
11679 libname_spec='$name'
11680 shrext_cmds=".dll"
11681 need_lib_prefix=no
11682 library_names_spec='$libname${shared_ext} $libname.a'
11683 dynamic_linker='OS/2 ld.exe'
11684 shlibpath_var=LIBPATH
11685 ;;
11686
11687 osf3* | osf4* | osf5*)
11688 version_type=osf
11689 need_lib_prefix=no
11690 need_version=no
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11696 ;;
11697
11698 rdos*)
11699 dynamic_linker=no
11700 ;;
11701
11702 solaris*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11711 # ldd complains unless libraries are executable
11712 postinstall_cmds='chmod +x $lib'
11713 ;;
11714
11715 sunos4*)
11716 version_type=sunos
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11721 if test "$with_gnu_ld" = yes; then
11722 need_lib_prefix=no
11723 fi
11724 need_version=yes
11725 ;;
11726
11727 sysv4 | sysv4.3*)
11728 version_type=linux # correct to gnu/linux during the next big refactor
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 case $host_vendor in
11733 sni)
11734 shlibpath_overrides_runpath=no
11735 need_lib_prefix=no
11736 runpath_var=LD_RUN_PATH
11737 ;;
11738 siemens)
11739 need_lib_prefix=no
11740 ;;
11741 motorola)
11742 need_lib_prefix=no
11743 need_version=no
11744 shlibpath_overrides_runpath=no
11745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11746 ;;
11747 esac
11748 ;;
11749
11750 sysv4*MP*)
11751 if test -d /usr/nec ;then
11752 version_type=linux # correct to gnu/linux during the next big refactor
11753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11754 soname_spec='$libname${shared_ext}.$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 fi
11757 ;;
11758
11759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11760 version_type=freebsd-elf
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11768 if test "$with_gnu_ld" = yes; then
11769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11770 else
11771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11772 case $host_os in
11773 sco3.2v5*)
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11775 ;;
11776 esac
11777 fi
11778 sys_lib_dlsearch_path_spec='/usr/lib'
11779 ;;
11780
11781 tpf*)
11782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11783 version_type=linux # correct to gnu/linux during the next big refactor
11784 need_lib_prefix=no
11785 need_version=no
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11790 ;;
11791
11792 uts4*)
11793 version_type=linux # correct to gnu/linux during the next big refactor
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 ;;
11798
11799 *)
11800 dynamic_linker=no
11801 ;;
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11804 $as_echo "$dynamic_linker" >&6; }
11805 test "$dynamic_linker" = no && can_build_shared=no
11806
11807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11808 if test "$GCC" = yes; then
11809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11810 fi
11811
11812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11814 fi
11815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11817 fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11911 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11912 hardcode_action=
11913 if test -n "$hardcode_libdir_flag_spec" ||
11914 test -n "$runpath_var" ||
11915 test "X$hardcode_automatic" = "Xyes" ; then
11916
11917 # We can hardcode non-existent directories.
11918 if test "$hardcode_direct" != no &&
11919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11920 # have to relink, otherwise we might link with an installed library
11921 # when we should be linking with a yet-to-be-installed one
11922 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11923 test "$hardcode_minus_L" != no; then
11924 # Linking always hardcodes the temporary library directory.
11925 hardcode_action=relink
11926 else
11927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11928 hardcode_action=immediate
11929 fi
11930 else
11931 # We cannot hardcode anything, or else we can only hardcode existing
11932 # directories.
11933 hardcode_action=unsupported
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11936 $as_echo "$hardcode_action" >&6; }
11937
11938 if test "$hardcode_action" = relink ||
11939 test "$inherit_rpath" = yes; then
11940 # Fast installation is not supported
11941 enable_fast_install=no
11942 elif test "$shlibpath_overrides_runpath" = yes ||
11943 test "$enable_shared" = no; then
11944 # Fast installation is not necessary
11945 enable_fast_install=needless
11946 fi
11947
11948
11949
11950
11951
11952
11953 if test "x$enable_dlopen" != xyes; then
11954 enable_dlopen=unknown
11955 enable_dlopen_self=unknown
11956 enable_dlopen_self_static=unknown
11957 else
11958 lt_cv_dlopen=no
11959 lt_cv_dlopen_libs=
11960
11961 case $host_os in
11962 beos*)
11963 lt_cv_dlopen="load_add_on"
11964 lt_cv_dlopen_libs=
11965 lt_cv_dlopen_self=yes
11966 ;;
11967
11968 mingw* | pw32* | cegcc*)
11969 lt_cv_dlopen="LoadLibrary"
11970 lt_cv_dlopen_libs=
11971 ;;
11972
11973 cygwin*)
11974 lt_cv_dlopen="dlopen"
11975 lt_cv_dlopen_libs=
11976 ;;
11977
11978 darwin*)
11979 # if libdl is installed we need to link against it
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11982 if ${ac_cv_lib_dl_dlopen+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-ldl $LIBS"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11993 #ifdef __cplusplus
11994 extern "C"
11995 #endif
11996 char dlopen ();
11997 int
11998 main ()
11999 {
12000 return dlopen ();
12001 ;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_lib_dl_dlopen=yes
12007 else
12008 ac_cv_lib_dl_dlopen=no
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 LIBS=$ac_check_lib_save_LIBS
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12016 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12018 else
12019
12020 lt_cv_dlopen="dyld"
12021 lt_cv_dlopen_libs=
12022 lt_cv_dlopen_self=yes
12023
12024 fi
12025
12026 ;;
12027
12028 *)
12029 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12030 if test "x$ac_cv_func_shl_load" = xyes; then :
12031 lt_cv_dlopen="shl_load"
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12035 if ${ac_cv_lib_dld_shl_load+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldld $LIBS"
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char shl_load ();
12050 int
12051 main ()
12052 {
12053 return shl_load ();
12054 ;
12055 return 0;
12056 }
12057 _ACEOF
12058 if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_lib_dld_shl_load=yes
12060 else
12061 ac_cv_lib_dld_shl_load=no
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12068 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12069 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12070 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12071 else
12072 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12073 if test "x$ac_cv_func_dlopen" = xyes; then :
12074 lt_cv_dlopen="dlopen"
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12077 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12078 if ${ac_cv_lib_dl_dlopen+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 ac_check_lib_save_LIBS=$LIBS
12082 LIBS="-ldl $LIBS"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085
12086 /* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 char dlopen ();
12093 int
12094 main ()
12095 {
12096 return dlopen ();
12097 ;
12098 return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_lib_dl_dlopen=yes
12103 else
12104 ac_cv_lib_dl_dlopen=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12111 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12112 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12116 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12117 if ${ac_cv_lib_svld_dlopen+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lsvld $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char dlopen ();
12132 int
12133 main ()
12134 {
12135 return dlopen ();
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_svld_dlopen=yes
12142 else
12143 ac_cv_lib_svld_dlopen=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12150 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12151 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12156 if ${ac_cv_lib_dld_dld_link+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-ldld $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dld_link ();
12171 int
12172 main ()
12173 {
12174 return dld_link ();
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_dld_dld_link=yes
12181 else
12182 ac_cv_lib_dld_dld_link=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12190 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12192 fi
12193
12194
12195 fi
12196
12197
12198 fi
12199
12200
12201 fi
12202
12203
12204 fi
12205
12206
12207 fi
12208
12209 ;;
12210 esac
12211
12212 if test "x$lt_cv_dlopen" != xno; then
12213 enable_dlopen=yes
12214 else
12215 enable_dlopen=no
12216 fi
12217
12218 case $lt_cv_dlopen in
12219 dlopen)
12220 save_CPPFLAGS="$CPPFLAGS"
12221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12222
12223 save_LDFLAGS="$LDFLAGS"
12224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12225
12226 save_LIBS="$LIBS"
12227 LIBS="$lt_cv_dlopen_libs $LIBS"
12228
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12231 if ${lt_cv_dlopen_self+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 if test "$cross_compiling" = yes; then :
12235 lt_cv_dlopen_self=cross
12236 else
12237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12238 lt_status=$lt_dlunknown
12239 cat > conftest.$ac_ext <<_LT_EOF
12240 #line $LINENO "configure"
12241 #include "confdefs.h"
12242
12243 #if HAVE_DLFCN_H
12244 #include <dlfcn.h>
12245 #endif
12246
12247 #include <stdio.h>
12248
12249 #ifdef RTLD_GLOBAL
12250 # define LT_DLGLOBAL RTLD_GLOBAL
12251 #else
12252 # ifdef DL_GLOBAL
12253 # define LT_DLGLOBAL DL_GLOBAL
12254 # else
12255 # define LT_DLGLOBAL 0
12256 # endif
12257 #endif
12258
12259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12260 find out it does not work in some platform. */
12261 #ifndef LT_DLLAZY_OR_NOW
12262 # ifdef RTLD_LAZY
12263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12264 # else
12265 # ifdef DL_LAZY
12266 # define LT_DLLAZY_OR_NOW DL_LAZY
12267 # else
12268 # ifdef RTLD_NOW
12269 # define LT_DLLAZY_OR_NOW RTLD_NOW
12270 # else
12271 # ifdef DL_NOW
12272 # define LT_DLLAZY_OR_NOW DL_NOW
12273 # else
12274 # define LT_DLLAZY_OR_NOW 0
12275 # endif
12276 # endif
12277 # endif
12278 # endif
12279 #endif
12280
12281 /* When -fvisbility=hidden is used, assume the code has been annotated
12282 correspondingly for the symbols needed. */
12283 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12284 int fnord () __attribute__((visibility("default")));
12285 #endif
12286
12287 int fnord () { return 42; }
12288 int main ()
12289 {
12290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12291 int status = $lt_dlunknown;
12292
12293 if (self)
12294 {
12295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12296 else
12297 {
12298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12299 else puts (dlerror ());
12300 }
12301 /* dlclose (self); */
12302 }
12303 else
12304 puts (dlerror ());
12305
12306 return status;
12307 }
12308 _LT_EOF
12309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12314 (./conftest; exit; ) >&5 2>/dev/null
12315 lt_status=$?
12316 case x$lt_status in
12317 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12318 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12319 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12320 esac
12321 else :
12322 # compilation failed
12323 lt_cv_dlopen_self=no
12324 fi
12325 fi
12326 rm -fr conftest*
12327
12328
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12331 $as_echo "$lt_cv_dlopen_self" >&6; }
12332
12333 if test "x$lt_cv_dlopen_self" = xyes; then
12334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12336 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12337 if ${lt_cv_dlopen_self_static+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test "$cross_compiling" = yes; then :
12341 lt_cv_dlopen_self_static=cross
12342 else
12343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12344 lt_status=$lt_dlunknown
12345 cat > conftest.$ac_ext <<_LT_EOF
12346 #line $LINENO "configure"
12347 #include "confdefs.h"
12348
12349 #if HAVE_DLFCN_H
12350 #include <dlfcn.h>
12351 #endif
12352
12353 #include <stdio.h>
12354
12355 #ifdef RTLD_GLOBAL
12356 # define LT_DLGLOBAL RTLD_GLOBAL
12357 #else
12358 # ifdef DL_GLOBAL
12359 # define LT_DLGLOBAL DL_GLOBAL
12360 # else
12361 # define LT_DLGLOBAL 0
12362 # endif
12363 #endif
12364
12365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12366 find out it does not work in some platform. */
12367 #ifndef LT_DLLAZY_OR_NOW
12368 # ifdef RTLD_LAZY
12369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12370 # else
12371 # ifdef DL_LAZY
12372 # define LT_DLLAZY_OR_NOW DL_LAZY
12373 # else
12374 # ifdef RTLD_NOW
12375 # define LT_DLLAZY_OR_NOW RTLD_NOW
12376 # else
12377 # ifdef DL_NOW
12378 # define LT_DLLAZY_OR_NOW DL_NOW
12379 # else
12380 # define LT_DLLAZY_OR_NOW 0
12381 # endif
12382 # endif
12383 # endif
12384 # endif
12385 #endif
12386
12387 /* When -fvisbility=hidden is used, assume the code has been annotated
12388 correspondingly for the symbols needed. */
12389 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12390 int fnord () __attribute__((visibility("default")));
12391 #endif
12392
12393 int fnord () { return 42; }
12394 int main ()
12395 {
12396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12397 int status = $lt_dlunknown;
12398
12399 if (self)
12400 {
12401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12402 else
12403 {
12404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12405 else puts (dlerror ());
12406 }
12407 /* dlclose (self); */
12408 }
12409 else
12410 puts (dlerror ());
12411
12412 return status;
12413 }
12414 _LT_EOF
12415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12420 (./conftest; exit; ) >&5 2>/dev/null
12421 lt_status=$?
12422 case x$lt_status in
12423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12425 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12426 esac
12427 else :
12428 # compilation failed
12429 lt_cv_dlopen_self_static=no
12430 fi
12431 fi
12432 rm -fr conftest*
12433
12434
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12437 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12438 fi
12439
12440 CPPFLAGS="$save_CPPFLAGS"
12441 LDFLAGS="$save_LDFLAGS"
12442 LIBS="$save_LIBS"
12443 ;;
12444 esac
12445
12446 case $lt_cv_dlopen_self in
12447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12448 *) enable_dlopen_self=unknown ;;
12449 esac
12450
12451 case $lt_cv_dlopen_self_static in
12452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12453 *) enable_dlopen_self_static=unknown ;;
12454 esac
12455 fi
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473 striplib=
12474 old_striplib=
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12476 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12477 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481 $as_echo "yes" >&6; }
12482 else
12483 # FIXME - insert some real tests, host_os isn't really good enough
12484 case $host_os in
12485 darwin*)
12486 if test -n "$STRIP" ; then
12487 striplib="$STRIP -x"
12488 old_striplib="$STRIP -S"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494 fi
12495 ;;
12496 *)
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499 ;;
12500 esac
12501 fi
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514 # Report which library types will actually be built
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12516 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12518 $as_echo "$can_build_shared" >&6; }
12519
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12521 $as_echo_n "checking whether to build shared libraries... " >&6; }
12522 test "$can_build_shared" = "no" && enable_shared=no
12523
12524 # On AIX, shared libraries and static libraries use the same namespace, and
12525 # are all built from PIC.
12526 case $host_os in
12527 aix3*)
12528 test "$enable_shared" = yes && enable_static=no
12529 if test -n "$RANLIB"; then
12530 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12531 postinstall_cmds='$RANLIB $lib'
12532 fi
12533 ;;
12534
12535 aix[4-9]*)
12536 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12537 test "$enable_shared" = yes && enable_static=no
12538 fi
12539 ;;
12540 esac
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12542 $as_echo "$enable_shared" >&6; }
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12545 $as_echo_n "checking whether to build static libraries... " >&6; }
12546 # Make sure either enable_shared or enable_static is yes.
12547 test "$enable_shared" = yes || enable_static=yes
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12549 $as_echo "$enable_static" >&6; }
12550
12551
12552
12553
12554 fi
12555 ac_ext=c
12556 ac_cpp='$CPP $CPPFLAGS'
12557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12560
12561 CC="$lt_save_CC"
12562
12563 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12564 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12565 (test "X$CXX" != "Xg++"))) ; then
12566 ac_ext=cpp
12567 ac_cpp='$CXXCPP $CPPFLAGS'
12568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12572 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12573 if test -z "$CXXCPP"; then
12574 if ${ac_cv_prog_CXXCPP+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 # Double quotes because CXXCPP needs to be expanded
12578 for CXXCPP in "$CXX -E" "/lib/cpp"
12579 do
12580 ac_preproc_ok=false
12581 for ac_cxx_preproc_warn_flag in '' yes
12582 do
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591 #ifdef __STDC__
12592 # include <limits.h>
12593 #else
12594 # include <assert.h>
12595 #endif
12596 Syntax error
12597 _ACEOF
12598 if ac_fn_cxx_try_cpp "$LINENO"; then :
12599
12600 else
12601 # Broken: fails on valid input.
12602 continue
12603 fi
12604 rm -f conftest.err conftest.i conftest.$ac_ext
12605
12606 # OK, works on sane cases. Now check whether nonexistent headers
12607 # can be detected and how.
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610 #include <ac_nonexistent.h>
12611 _ACEOF
12612 if ac_fn_cxx_try_cpp "$LINENO"; then :
12613 # Broken: success on invalid input.
12614 continue
12615 else
12616 # Passes both tests.
12617 ac_preproc_ok=:
12618 break
12619 fi
12620 rm -f conftest.err conftest.i conftest.$ac_ext
12621
12622 done
12623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12624 rm -f conftest.i conftest.err conftest.$ac_ext
12625 if $ac_preproc_ok; then :
12626 break
12627 fi
12628
12629 done
12630 ac_cv_prog_CXXCPP=$CXXCPP
12631
12632 fi
12633 CXXCPP=$ac_cv_prog_CXXCPP
12634 else
12635 ac_cv_prog_CXXCPP=$CXXCPP
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12638 $as_echo "$CXXCPP" >&6; }
12639 ac_preproc_ok=false
12640 for ac_cxx_preproc_warn_flag in '' yes
12641 do
12642 # Use a header file that comes with gcc, so configuring glibc
12643 # with a fresh cross-compiler works.
12644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12645 # <limits.h> exists even on freestanding compilers.
12646 # On the NeXT, cc -E runs the code through the compiler's parser,
12647 # not just through cpp. "Syntax error" is here to catch this case.
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 #ifdef __STDC__
12651 # include <limits.h>
12652 #else
12653 # include <assert.h>
12654 #endif
12655 Syntax error
12656 _ACEOF
12657 if ac_fn_cxx_try_cpp "$LINENO"; then :
12658
12659 else
12660 # Broken: fails on valid input.
12661 continue
12662 fi
12663 rm -f conftest.err conftest.i conftest.$ac_ext
12664
12665 # OK, works on sane cases. Now check whether nonexistent headers
12666 # can be detected and how.
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #include <ac_nonexistent.h>
12670 _ACEOF
12671 if ac_fn_cxx_try_cpp "$LINENO"; then :
12672 # Broken: success on invalid input.
12673 continue
12674 else
12675 # Passes both tests.
12676 ac_preproc_ok=:
12677 break
12678 fi
12679 rm -f conftest.err conftest.i conftest.$ac_ext
12680
12681 done
12682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12683 rm -f conftest.i conftest.err conftest.$ac_ext
12684 if $ac_preproc_ok; then :
12685
12686 else
12687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12689 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12690 See \`config.log' for more details" "$LINENO" 5; }
12691 fi
12692
12693 ac_ext=c
12694 ac_cpp='$CPP $CPPFLAGS'
12695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12698
12699 else
12700 _lt_caught_CXX_error=yes
12701 fi
12702
12703 ac_ext=cpp
12704 ac_cpp='$CXXCPP $CPPFLAGS'
12705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12708
12709 archive_cmds_need_lc_CXX=no
12710 allow_undefined_flag_CXX=
12711 always_export_symbols_CXX=no
12712 archive_expsym_cmds_CXX=
12713 compiler_needs_object_CXX=no
12714 export_dynamic_flag_spec_CXX=
12715 hardcode_direct_CXX=no
12716 hardcode_direct_absolute_CXX=no
12717 hardcode_libdir_flag_spec_CXX=
12718 hardcode_libdir_separator_CXX=
12719 hardcode_minus_L_CXX=no
12720 hardcode_shlibpath_var_CXX=unsupported
12721 hardcode_automatic_CXX=no
12722 inherit_rpath_CXX=no
12723 module_cmds_CXX=
12724 module_expsym_cmds_CXX=
12725 link_all_deplibs_CXX=unknown
12726 old_archive_cmds_CXX=$old_archive_cmds
12727 reload_flag_CXX=$reload_flag
12728 reload_cmds_CXX=$reload_cmds
12729 no_undefined_flag_CXX=
12730 whole_archive_flag_spec_CXX=
12731 enable_shared_with_static_runtimes_CXX=no
12732
12733 # Source file extension for C++ test sources.
12734 ac_ext=cpp
12735
12736 # Object file extension for compiled C++ test sources.
12737 objext=o
12738 objext_CXX=$objext
12739
12740 # No sense in running all these tests if we already determined that
12741 # the CXX compiler isn't working. Some variables (like enable_shared)
12742 # are currently assumed to apply to all compilers on this platform,
12743 # and will be corrupted by setting them based on a non-working compiler.
12744 if test "$_lt_caught_CXX_error" != yes; then
12745 # Code to be used in simple compile tests
12746 lt_simple_compile_test_code="int some_variable = 0;"
12747
12748 # Code to be used in simple link tests
12749 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12750
12751 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12752
12753
12754
12755
12756
12757
12758 # If no C compiler was specified, use CC.
12759 LTCC=${LTCC-"$CC"}
12760
12761 # If no C compiler flags were specified, use CFLAGS.
12762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12763
12764 # Allow CC to be a program name with arguments.
12765 compiler=$CC
12766
12767
12768 # save warnings/boilerplate of simple test code
12769 ac_outfile=conftest.$ac_objext
12770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12772 _lt_compiler_boilerplate=`cat conftest.err`
12773 $RM -r conftest*
12774
12775 ac_outfile=conftest.$ac_objext
12776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12778 _lt_linker_boilerplate=`cat conftest.err`
12779 $RM -r conftest*
12780
12781
12782 # Allow CC to be a program name with arguments.
12783 lt_save_CC=$CC
12784 lt_save_CFLAGS=$CFLAGS
12785 lt_save_LD=$LD
12786 lt_save_GCC=$GCC
12787 GCC=$GXX
12788 lt_save_with_gnu_ld=$with_gnu_ld
12789 lt_save_path_LD=$lt_cv_path_LD
12790 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12791 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12792 else
12793 $as_unset lt_cv_prog_gnu_ld
12794 fi
12795 if test -n "${lt_cv_path_LDCXX+set}"; then
12796 lt_cv_path_LD=$lt_cv_path_LDCXX
12797 else
12798 $as_unset lt_cv_path_LD
12799 fi
12800 test -z "${LDCXX+set}" || LD=$LDCXX
12801 CC=${CXX-"c++"}
12802 CFLAGS=$CXXFLAGS
12803 compiler=$CC
12804 compiler_CXX=$CC
12805 for cc_temp in $compiler""; do
12806 case $cc_temp in
12807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12809 \-*) ;;
12810 *) break;;
12811 esac
12812 done
12813 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12814
12815
12816 if test -n "$compiler"; then
12817 # We don't want -fno-exception when compiling C++ code, so set the
12818 # no_builtin_flag separately
12819 if test "$GXX" = yes; then
12820 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12821 else
12822 lt_prog_compiler_no_builtin_flag_CXX=
12823 fi
12824
12825 if test "$GXX" = yes; then
12826 # Set up default GNU C++ configuration
12827
12828
12829
12830 # Check whether --with-gnu-ld was given.
12831 if test "${with_gnu_ld+set}" = set; then :
12832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12833 else
12834 with_gnu_ld=no
12835 fi
12836
12837 ac_prog=ld
12838 if test "$GCC" = yes; then
12839 # Check if gcc -print-prog-name=ld gives a path.
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12841 $as_echo_n "checking for ld used by $CC... " >&6; }
12842 case $host in
12843 *-*-mingw*)
12844 # gcc leaves a trailing carriage return which upsets mingw
12845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12846 *)
12847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12848 esac
12849 case $ac_prog in
12850 # Accept absolute paths.
12851 [\\/]* | ?:[\\/]*)
12852 re_direlt='/[^/][^/]*/\.\./'
12853 # Canonicalize the pathname of ld
12854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12857 done
12858 test -z "$LD" && LD="$ac_prog"
12859 ;;
12860 "")
12861 # If it fails, then pretend we aren't using GCC.
12862 ac_prog=ld
12863 ;;
12864 *)
12865 # If it is relative, then search for the first ld in PATH.
12866 with_gnu_ld=unknown
12867 ;;
12868 esac
12869 elif test "$with_gnu_ld" = yes; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12871 $as_echo_n "checking for GNU ld... " >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12874 $as_echo_n "checking for non-GNU ld... " >&6; }
12875 fi
12876 if ${lt_cv_path_LD+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -z "$LD"; then
12880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12881 for ac_dir in $PATH; do
12882 IFS="$lt_save_ifs"
12883 test -z "$ac_dir" && ac_dir=.
12884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12885 lt_cv_path_LD="$ac_dir/$ac_prog"
12886 # Check to see if the program is GNU ld. I'd rather use --version,
12887 # but apparently some variants of GNU ld only accept -v.
12888 # Break only if it was the GNU/non-GNU ld that we prefer.
12889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12890 *GNU* | *'with BFD'*)
12891 test "$with_gnu_ld" != no && break
12892 ;;
12893 *)
12894 test "$with_gnu_ld" != yes && break
12895 ;;
12896 esac
12897 fi
12898 done
12899 IFS="$lt_save_ifs"
12900 else
12901 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12902 fi
12903 fi
12904
12905 LD="$lt_cv_path_LD"
12906 if test -n "$LD"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12908 $as_echo "$LD" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12916 if ${lt_cv_prog_gnu_ld+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12920 case `$LD -v 2>&1 </dev/null` in
12921 *GNU* | *'with BFD'*)
12922 lt_cv_prog_gnu_ld=yes
12923 ;;
12924 *)
12925 lt_cv_prog_gnu_ld=no
12926 ;;
12927 esac
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12931 with_gnu_ld=$lt_cv_prog_gnu_ld
12932
12933
12934
12935
12936
12937
12938
12939 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12940 # archiving commands below assume that GNU ld is being used.
12941 if test "$with_gnu_ld" = yes; then
12942 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 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'
12944
12945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12947
12948 # If archive_cmds runs LD, not CC, wlarc should be empty
12949 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12950 # investigate it a little bit more. (MM)
12951 wlarc='${wl}'
12952
12953 # ancient GNU ld didn't support --whole-archive et. al.
12954 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12955 $GREP 'no-whole-archive' > /dev/null; then
12956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957 else
12958 whole_archive_flag_spec_CXX=
12959 fi
12960 else
12961 with_gnu_ld=no
12962 wlarc=
12963
12964 # A generic and very simple default shared library creation
12965 # command for GNU C++ for the case where it uses the native
12966 # linker, instead of GNU ld. If possible, this setting should
12967 # overridden to take advantage of the native linker features on
12968 # the platform it is being used on.
12969 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12970 fi
12971
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12976
12977 else
12978 GXX=no
12979 with_gnu_ld=no
12980 wlarc=
12981 fi
12982
12983 # PORTME: fill in a description of your system's C++ link characteristics
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12986 ld_shlibs_CXX=yes
12987 case $host_os in
12988 aix3*)
12989 # FIXME: insert proper C++ library support
12990 ld_shlibs_CXX=no
12991 ;;
12992 aix[4-9]*)
12993 if test "$host_cpu" = ia64; then
12994 # On IA64, the linker does run time linking by default, so we don't
12995 # have to do anything special.
12996 aix_use_runtimelinking=no
12997 exp_sym_flag='-Bexport'
12998 no_entry_flag=""
12999 else
13000 aix_use_runtimelinking=no
13001
13002 # Test if we are trying to use run time linking or normal
13003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13004 # need to do runtime linking.
13005 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13006 for ld_flag in $LDFLAGS; do
13007 case $ld_flag in
13008 *-brtl*)
13009 aix_use_runtimelinking=yes
13010 break
13011 ;;
13012 esac
13013 done
13014 ;;
13015 esac
13016
13017 exp_sym_flag='-bexport'
13018 no_entry_flag='-bnoentry'
13019 fi
13020
13021 # When large executables or shared objects are built, AIX ld can
13022 # have problems creating the table of contents. If linking a library
13023 # or program results in "error TOC overflow" add -mminimal-toc to
13024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13026
13027 archive_cmds_CXX=''
13028 hardcode_direct_CXX=yes
13029 hardcode_direct_absolute_CXX=yes
13030 hardcode_libdir_separator_CXX=':'
13031 link_all_deplibs_CXX=yes
13032 file_list_spec_CXX='${wl}-f,'
13033
13034 if test "$GXX" = yes; then
13035 case $host_os in aix4.[012]|aix4.[012].*)
13036 # We only want to do this on AIX 4.2 and lower, the check
13037 # below for broken collect2 doesn't work under 4.3+
13038 collect2name=`${CC} -print-prog-name=collect2`
13039 if test -f "$collect2name" &&
13040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13041 then
13042 # We have reworked collect2
13043 :
13044 else
13045 # We have old collect2
13046 hardcode_direct_CXX=unsupported
13047 # It fails to find uninstalled libraries when the uninstalled
13048 # path is not listed in the libpath. Setting hardcode_minus_L
13049 # to unsupported forces relinking
13050 hardcode_minus_L_CXX=yes
13051 hardcode_libdir_flag_spec_CXX='-L$libdir'
13052 hardcode_libdir_separator_CXX=
13053 fi
13054 esac
13055 shared_flag='-shared'
13056 if test "$aix_use_runtimelinking" = yes; then
13057 shared_flag="$shared_flag "'${wl}-G'
13058 fi
13059 else
13060 # not using gcc
13061 if test "$host_cpu" = ia64; then
13062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13063 # chokes on -Wl,-G. The following line is correct:
13064 shared_flag='-G'
13065 else
13066 if test "$aix_use_runtimelinking" = yes; then
13067 shared_flag='${wl}-G'
13068 else
13069 shared_flag='${wl}-bM:SRE'
13070 fi
13071 fi
13072 fi
13073
13074 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13075 # It seems that -bexpall does not export symbols beginning with
13076 # underscore (_), so it is better to generate a list of symbols to
13077 # export.
13078 always_export_symbols_CXX=yes
13079 if test "$aix_use_runtimelinking" = yes; then
13080 # Warning - without using the other runtime loading flags (-brtl),
13081 # -berok will link without error, but may produce a broken library.
13082 allow_undefined_flag_CXX='-berok'
13083 # Determine the default libpath from the value encoded in an empty
13084 # executable.
13085 if test "${lt_cv_aix_libpath+set}" = set; then
13086 aix_libpath=$lt_cv_aix_libpath
13087 else
13088 if ${lt_cv_aix_libpath__CXX+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093
13094 int
13095 main ()
13096 {
13097
13098 ;
13099 return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_cxx_try_link "$LINENO"; then :
13103
13104 lt_aix_libpath_sed='
13105 /Import File Strings/,/^$/ {
13106 /^0/ {
13107 s/^0 *\([^ ]*\) *$/\1/
13108 p
13109 }
13110 }'
13111 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13112 # Check for a 64-bit object if we didn't find anything.
13113 if test -z "$lt_cv_aix_libpath__CXX"; then
13114 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13115 fi
13116 fi
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 if test -z "$lt_cv_aix_libpath__CXX"; then
13120 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13121 fi
13122
13123 fi
13124
13125 aix_libpath=$lt_cv_aix_libpath__CXX
13126 fi
13127
13128 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13129
13130 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13131 else
13132 if test "$host_cpu" = ia64; then
13133 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13134 allow_undefined_flag_CXX="-z nodefs"
13135 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"
13136 else
13137 # Determine the default libpath from the value encoded in an
13138 # empty executable.
13139 if test "${lt_cv_aix_libpath+set}" = set; then
13140 aix_libpath=$lt_cv_aix_libpath
13141 else
13142 if ${lt_cv_aix_libpath__CXX+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147
13148 int
13149 main ()
13150 {
13151
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_cxx_try_link "$LINENO"; then :
13157
13158 lt_aix_libpath_sed='
13159 /Import File Strings/,/^$/ {
13160 /^0/ {
13161 s/^0 *\([^ ]*\) *$/\1/
13162 p
13163 }
13164 }'
13165 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13166 # Check for a 64-bit object if we didn't find anything.
13167 if test -z "$lt_cv_aix_libpath__CXX"; then
13168 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169 fi
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173 if test -z "$lt_cv_aix_libpath__CXX"; then
13174 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13175 fi
13176
13177 fi
13178
13179 aix_libpath=$lt_cv_aix_libpath__CXX
13180 fi
13181
13182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13183 # Warning - without using the other run time loading flags,
13184 # -berok will link without error, but may produce a broken library.
13185 no_undefined_flag_CXX=' ${wl}-bernotok'
13186 allow_undefined_flag_CXX=' ${wl}-berok'
13187 if test "$with_gnu_ld" = yes; then
13188 # We only use this code for GNU lds that support --whole-archive.
13189 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13190 else
13191 # Exported symbols can be pulled into shared objects from archives
13192 whole_archive_flag_spec_CXX='$convenience'
13193 fi
13194 archive_cmds_need_lc_CXX=yes
13195 # This is similar to how AIX traditionally builds its shared
13196 # libraries.
13197 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13198 fi
13199 fi
13200 ;;
13201
13202 beos*)
13203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13204 allow_undefined_flag_CXX=unsupported
13205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13206 # support --undefined. This deserves some investigation. FIXME
13207 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 else
13209 ld_shlibs_CXX=no
13210 fi
13211 ;;
13212
13213 chorus*)
13214 case $cc_basename in
13215 *)
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 ;;
13219 esac
13220 ;;
13221
13222 cygwin* | mingw* | pw32* | cegcc*)
13223 case $GXX,$cc_basename in
13224 ,cl* | no,cl*)
13225 # Native MSVC
13226 # hardcode_libdir_flag_spec is actually meaningless, as there is
13227 # no search path for DLLs.
13228 hardcode_libdir_flag_spec_CXX=' '
13229 allow_undefined_flag_CXX=unsupported
13230 always_export_symbols_CXX=yes
13231 file_list_spec_CXX='@'
13232 # Tell ltmain to make .lib files, not .a files.
13233 libext=lib
13234 # Tell ltmain to make .dll files, not .so files.
13235 shrext_cmds=".dll"
13236 # FIXME: Setting linknames here is a bad hack.
13237 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13238 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13239 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13240 else
13241 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13242 fi~
13243 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13244 linknames='
13245 # The linker will not automatically build a static lib if we build a DLL.
13246 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13247 enable_shared_with_static_runtimes_CXX=yes
13248 # Don't use ranlib
13249 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13250 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13251 lt_tool_outputfile="@TOOL_OUTPUT@"~
13252 case $lt_outputfile in
13253 *.exe|*.EXE) ;;
13254 *)
13255 lt_outputfile="$lt_outputfile.exe"
13256 lt_tool_outputfile="$lt_tool_outputfile.exe"
13257 ;;
13258 esac~
13259 func_to_tool_file "$lt_outputfile"~
13260 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13261 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13262 $RM "$lt_outputfile.manifest";
13263 fi'
13264 ;;
13265 *)
13266 # g++
13267 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13268 # as there is no search path for DLLs.
13269 hardcode_libdir_flag_spec_CXX='-L$libdir'
13270 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13271 allow_undefined_flag_CXX=unsupported
13272 always_export_symbols_CXX=no
13273 enable_shared_with_static_runtimes_CXX=yes
13274
13275 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13276 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'
13277 # If the export-symbols file already is a .def file (1st line
13278 # is EXPORTS), use it as is; otherwise, prepend...
13279 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13280 cp $export_symbols $output_objdir/$soname.def;
13281 else
13282 echo EXPORTS > $output_objdir/$soname.def;
13283 cat $export_symbols >> $output_objdir/$soname.def;
13284 fi~
13285 $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'
13286 else
13287 ld_shlibs_CXX=no
13288 fi
13289 ;;
13290 esac
13291 ;;
13292 darwin* | rhapsody*)
13293
13294
13295 archive_cmds_need_lc_CXX=no
13296 hardcode_direct_CXX=no
13297 hardcode_automatic_CXX=yes
13298 hardcode_shlibpath_var_CXX=unsupported
13299 if test "$lt_cv_ld_force_load" = "yes"; then
13300 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\"`'
13301
13302 else
13303 whole_archive_flag_spec_CXX=''
13304 fi
13305 link_all_deplibs_CXX=yes
13306 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13307 case $cc_basename in
13308 ifort*) _lt_dar_can_shared=yes ;;
13309 *) _lt_dar_can_shared=$GCC ;;
13310 esac
13311 if test "$_lt_dar_can_shared" = "yes"; then
13312 output_verbose_link_cmd=func_echo_all
13313 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}"
13314 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13315 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}"
13316 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}"
13317 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13318 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}"
13319 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}"
13320 fi
13321
13322 else
13323 ld_shlibs_CXX=no
13324 fi
13325
13326 ;;
13327
13328 dgux*)
13329 case $cc_basename in
13330 ec++*)
13331 # FIXME: insert proper C++ library support
13332 ld_shlibs_CXX=no
13333 ;;
13334 ghcx*)
13335 # Green Hills C++ Compiler
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13338 ;;
13339 *)
13340 # FIXME: insert proper C++ library support
13341 ld_shlibs_CXX=no
13342 ;;
13343 esac
13344 ;;
13345
13346 freebsd2.*)
13347 # C++ shared libraries reported to be fairly broken before
13348 # switch to ELF
13349 ld_shlibs_CXX=no
13350 ;;
13351
13352 freebsd-elf*)
13353 archive_cmds_need_lc_CXX=no
13354 ;;
13355
13356 freebsd* | dragonfly*)
13357 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13358 # conventions
13359 ld_shlibs_CXX=yes
13360 ;;
13361
13362 gnu*)
13363 ;;
13364
13365 haiku*)
13366 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367 link_all_deplibs_CXX=yes
13368 ;;
13369
13370 hpux9*)
13371 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13372 hardcode_libdir_separator_CXX=:
13373 export_dynamic_flag_spec_CXX='${wl}-E'
13374 hardcode_direct_CXX=yes
13375 hardcode_minus_L_CXX=yes # Not in the search PATH,
13376 # but as the default
13377 # location of the library.
13378
13379 case $cc_basename in
13380 CC*)
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 ;;
13384 aCC*)
13385 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13386 # Commands to make compiler produce verbose output that lists
13387 # what "hidden" libraries, object files and flags are used when
13388 # linking a shared library.
13389 #
13390 # There doesn't appear to be a way to prevent this compiler from
13391 # explicitly linking system object files so we need to strip them
13392 # from the output so that they don't get included in the library
13393 # dependencies.
13394 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"'
13395 ;;
13396 *)
13397 if test "$GXX" = yes; then
13398 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13399 else
13400 # FIXME: insert proper C++ library support
13401 ld_shlibs_CXX=no
13402 fi
13403 ;;
13404 esac
13405 ;;
13406
13407 hpux10*|hpux11*)
13408 if test $with_gnu_ld = no; then
13409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13410 hardcode_libdir_separator_CXX=:
13411
13412 case $host_cpu in
13413 hppa*64*|ia64*)
13414 ;;
13415 *)
13416 export_dynamic_flag_spec_CXX='${wl}-E'
13417 ;;
13418 esac
13419 fi
13420 case $host_cpu in
13421 hppa*64*|ia64*)
13422 hardcode_direct_CXX=no
13423 hardcode_shlibpath_var_CXX=no
13424 ;;
13425 *)
13426 hardcode_direct_CXX=yes
13427 hardcode_direct_absolute_CXX=yes
13428 hardcode_minus_L_CXX=yes # Not in the search PATH,
13429 # but as the default
13430 # location of the library.
13431 ;;
13432 esac
13433
13434 case $cc_basename in
13435 CC*)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13438 ;;
13439 aCC*)
13440 case $host_cpu in
13441 hppa*64*)
13442 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13443 ;;
13444 ia64*)
13445 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13446 ;;
13447 *)
13448 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13449 ;;
13450 esac
13451 # Commands to make compiler produce verbose output that lists
13452 # what "hidden" libraries, object files and flags are used when
13453 # linking a shared library.
13454 #
13455 # There doesn't appear to be a way to prevent this compiler from
13456 # explicitly linking system object files so we need to strip them
13457 # from the output so that they don't get included in the library
13458 # dependencies.
13459 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"'
13460 ;;
13461 *)
13462 if test "$GXX" = yes; then
13463 if test $with_gnu_ld = no; then
13464 case $host_cpu in
13465 hppa*64*)
13466 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13467 ;;
13468 ia64*)
13469 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 ;;
13471 *)
13472 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'
13473 ;;
13474 esac
13475 fi
13476 else
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 fi
13480 ;;
13481 esac
13482 ;;
13483
13484 interix[3-9]*)
13485 hardcode_direct_CXX=no
13486 hardcode_shlibpath_var_CXX=no
13487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}-E'
13489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13490 # Instead, shared libraries are loaded at an image base (0x10000000 by
13491 # default) and relocated if they conflict, which is a slow very memory
13492 # consuming and fragmenting process. To avoid this, we pick a random,
13493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13495 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'
13496 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'
13497 ;;
13498 irix5* | irix6*)
13499 case $cc_basename in
13500 CC*)
13501 # SGI C++
13502 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'
13503
13504 # Archives containing C++ object files must be created using
13505 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13506 # necessary to make sure instantiated templates are included
13507 # in the archive.
13508 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13509 ;;
13510 *)
13511 if test "$GXX" = yes; then
13512 if test "$with_gnu_ld" = no; then
13513 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'
13514 else
13515 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'
13516 fi
13517 fi
13518 link_all_deplibs_CXX=yes
13519 ;;
13520 esac
13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522 hardcode_libdir_separator_CXX=:
13523 inherit_rpath_CXX=yes
13524 ;;
13525
13526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13527 case $cc_basename in
13528 KCC*)
13529 # Kuck and Associates, Inc. (KAI) C++ Compiler
13530
13531 # KCC will only create a shared library if the output file
13532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13533 # to its proper name (with version) after linking.
13534 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'
13535 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'
13536 # Commands to make compiler produce verbose output that lists
13537 # what "hidden" libraries, object files and flags are used when
13538 # linking a shared library.
13539 #
13540 # There doesn't appear to be a way to prevent this compiler from
13541 # explicitly linking system object files so we need to strip them
13542 # from the output so that they don't get included in the library
13543 # dependencies.
13544 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"'
13545
13546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13547 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13548
13549 # Archives containing C++ object files must be created using
13550 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13551 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13552 ;;
13553 icpc* | ecpc* )
13554 # Intel C++
13555 with_gnu_ld=yes
13556 # version 8.0 and above of icpc choke on multiply defined symbols
13557 # if we add $predep_objects and $postdep_objects, however 7.1 and
13558 # earlier do not add the objects themselves.
13559 case `$CC -V 2>&1` in
13560 *"Version 7."*)
13561 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 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'
13563 ;;
13564 *) # Version 8.0 or newer
13565 tmp_idyn=
13566 case $host_cpu in
13567 ia64*) tmp_idyn=' -i_dynamic';;
13568 esac
13569 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13570 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'
13571 ;;
13572 esac
13573 archive_cmds_need_lc_CXX=no
13574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13576 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13577 ;;
13578 pgCC* | pgcpp*)
13579 # Portland Group C++ compiler
13580 case `$CC -V` in
13581 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13582 prelink_cmds_CXX='tpldir=Template.dir~
13583 rm -rf $tpldir~
13584 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13585 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13586 old_archive_cmds_CXX='tpldir=Template.dir~
13587 rm -rf $tpldir~
13588 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13589 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13590 $RANLIB $oldlib'
13591 archive_cmds_CXX='tpldir=Template.dir~
13592 rm -rf $tpldir~
13593 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13594 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13595 archive_expsym_cmds_CXX='tpldir=Template.dir~
13596 rm -rf $tpldir~
13597 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13598 $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'
13599 ;;
13600 *) # Version 6 and above use weak symbols
13601 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13602 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'
13603 ;;
13604 esac
13605
13606 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13608 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'
13609 ;;
13610 cxx*)
13611 # Compaq C++
13612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13613 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'
13614
13615 runpath_var=LD_RUN_PATH
13616 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13617 hardcode_libdir_separator_CXX=:
13618
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13622 #
13623 # There doesn't appear to be a way to prevent this compiler from
13624 # explicitly linking system object files so we need to strip them
13625 # from the output so that they don't get included in the library
13626 # dependencies.
13627 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'
13628 ;;
13629 xl* | mpixl* | bgxl*)
13630 # IBM XL 8.0 on PPC, with GNU ld
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13633 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13634 if test "x$supports_anon_versioning" = xyes; then
13635 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13637 echo "local: *; };" >> $output_objdir/$libname.ver~
13638 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13639 fi
13640 ;;
13641 *)
13642 case `$CC -V 2>&1 | sed 5q` in
13643 *Sun\ C*)
13644 # Sun C++ 5.9
13645 no_undefined_flag_CXX=' -zdefs'
13646 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 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'
13648 hardcode_libdir_flag_spec_CXX='-R$libdir'
13649 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'
13650 compiler_needs_object_CXX=yes
13651
13652 # Not sure whether something based on
13653 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13654 # would be better.
13655 output_verbose_link_cmd='func_echo_all'
13656
13657 # Archives containing C++ object files must be created using
13658 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13659 # necessary to make sure instantiated templates are included
13660 # in the archive.
13661 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13662 ;;
13663 esac
13664 ;;
13665 esac
13666 ;;
13667
13668 lynxos*)
13669 # FIXME: insert proper C++ library support
13670 ld_shlibs_CXX=no
13671 ;;
13672
13673 m88k*)
13674 # FIXME: insert proper C++ library support
13675 ld_shlibs_CXX=no
13676 ;;
13677
13678 mvs*)
13679 case $cc_basename in
13680 cxx*)
13681 # FIXME: insert proper C++ library support
13682 ld_shlibs_CXX=no
13683 ;;
13684 *)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688 esac
13689 ;;
13690
13691 netbsd*)
13692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13693 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13694 wlarc=
13695 hardcode_libdir_flag_spec_CXX='-R$libdir'
13696 hardcode_direct_CXX=yes
13697 hardcode_shlibpath_var_CXX=no
13698 fi
13699 # Workaround some broken pre-1.5 toolchains
13700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13701 ;;
13702
13703 *nto* | *qnx*)
13704 ld_shlibs_CXX=yes
13705 ;;
13706
13707 openbsd2*)
13708 # C++ shared libraries are fairly broken
13709 ld_shlibs_CXX=no
13710 ;;
13711
13712 openbsd*)
13713 if test -f /usr/libexec/ld.so; then
13714 hardcode_direct_CXX=yes
13715 hardcode_shlibpath_var_CXX=no
13716 hardcode_direct_absolute_CXX=yes
13717 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13720 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13721 export_dynamic_flag_spec_CXX='${wl}-E'
13722 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13723 fi
13724 output_verbose_link_cmd=func_echo_all
13725 else
13726 ld_shlibs_CXX=no
13727 fi
13728 ;;
13729
13730 osf3* | osf4* | osf5*)
13731 case $cc_basename in
13732 KCC*)
13733 # Kuck and Associates, Inc. (KAI) C++ Compiler
13734
13735 # KCC will only create a shared library if the output file
13736 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13737 # to its proper name (with version) after linking.
13738 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'
13739
13740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13741 hardcode_libdir_separator_CXX=:
13742
13743 # Archives containing C++ object files must be created using
13744 # the KAI C++ compiler.
13745 case $host in
13746 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13747 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13748 esac
13749 ;;
13750 RCC*)
13751 # Rational C++ 2.4.1
13752 # FIXME: insert proper C++ library support
13753 ld_shlibs_CXX=no
13754 ;;
13755 cxx*)
13756 case $host in
13757 osf3*)
13758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13759 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'
13760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13761 ;;
13762 *)
13763 allow_undefined_flag_CXX=' -expect_unresolved \*'
13764 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'
13765 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13766 echo "-hidden">> $lib.exp~
13767 $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~
13768 $RM $lib.exp'
13769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13770 ;;
13771 esac
13772
13773 hardcode_libdir_separator_CXX=:
13774
13775 # Commands to make compiler produce verbose output that lists
13776 # what "hidden" libraries, object files and flags are used when
13777 # linking a shared library.
13778 #
13779 # There doesn't appear to be a way to prevent this compiler from
13780 # explicitly linking system object files so we need to strip them
13781 # from the output so that they don't get included in the library
13782 # dependencies.
13783 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"'
13784 ;;
13785 *)
13786 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13787 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13788 case $host in
13789 osf3*)
13790 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'
13791 ;;
13792 *)
13793 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'
13794 ;;
13795 esac
13796
13797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13798 hardcode_libdir_separator_CXX=:
13799
13800 # Commands to make compiler produce verbose output that lists
13801 # what "hidden" libraries, object files and flags are used when
13802 # linking a shared library.
13803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13804
13805 else
13806 # FIXME: insert proper C++ library support
13807 ld_shlibs_CXX=no
13808 fi
13809 ;;
13810 esac
13811 ;;
13812
13813 psos*)
13814 # FIXME: insert proper C++ library support
13815 ld_shlibs_CXX=no
13816 ;;
13817
13818 sunos4*)
13819 case $cc_basename in
13820 CC*)
13821 # Sun C++ 4.x
13822 # FIXME: insert proper C++ library support
13823 ld_shlibs_CXX=no
13824 ;;
13825 lcc*)
13826 # Lucid
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
13829 ;;
13830 *)
13831 # FIXME: insert proper C++ library support
13832 ld_shlibs_CXX=no
13833 ;;
13834 esac
13835 ;;
13836
13837 solaris*)
13838 case $cc_basename in
13839 CC* | sunCC*)
13840 # Sun C++ 4.2, 5.x and Centerline C++
13841 archive_cmds_need_lc_CXX=yes
13842 no_undefined_flag_CXX=' -zdefs'
13843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13845 $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'
13846
13847 hardcode_libdir_flag_spec_CXX='-R$libdir'
13848 hardcode_shlibpath_var_CXX=no
13849 case $host_os in
13850 solaris2.[0-5] | solaris2.[0-5].*) ;;
13851 *)
13852 # The compiler driver will combine and reorder linker options,
13853 # but understands `-z linker_flag'.
13854 # Supported since Solaris 2.6 (maybe 2.5.1?)
13855 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13856 ;;
13857 esac
13858 link_all_deplibs_CXX=yes
13859
13860 output_verbose_link_cmd='func_echo_all'
13861
13862 # Archives containing C++ object files must be created using
13863 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13864 # necessary to make sure instantiated templates are included
13865 # in the archive.
13866 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13867 ;;
13868 gcx*)
13869 # Green Hills C++ Compiler
13870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13871
13872 # The C++ compiler must be used to create the archive.
13873 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13874 ;;
13875 *)
13876 # GNU C++ compiler with Solaris linker
13877 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13878 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13879 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13880 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13881 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13882 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13883
13884 # Commands to make compiler produce verbose output that lists
13885 # what "hidden" libraries, object files and flags are used when
13886 # linking a shared library.
13887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13888 else
13889 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13890 # platform.
13891 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13892 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13893 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13894
13895 # Commands to make compiler produce verbose output that lists
13896 # what "hidden" libraries, object files and flags are used when
13897 # linking a shared library.
13898 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13899 fi
13900
13901 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13902 case $host_os in
13903 solaris2.[0-5] | solaris2.[0-5].*) ;;
13904 *)
13905 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13906 ;;
13907 esac
13908 fi
13909 ;;
13910 esac
13911 ;;
13912
13913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13914 no_undefined_flag_CXX='${wl}-z,text'
13915 archive_cmds_need_lc_CXX=no
13916 hardcode_shlibpath_var_CXX=no
13917 runpath_var='LD_RUN_PATH'
13918
13919 case $cc_basename in
13920 CC*)
13921 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 ;;
13924 *)
13925 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 ;;
13928 esac
13929 ;;
13930
13931 sysv5* | sco3.2v5* | sco5v6*)
13932 # Note: We can NOT use -z defs as we might desire, because we do not
13933 # link with -lc, and that would cause any symbols used from libc to
13934 # always be unresolved, which means just about no library would
13935 # ever link correctly. If we're not using GNU ld we use -z text
13936 # though, which does catch some bad symbols but isn't as heavy-handed
13937 # as -z defs.
13938 no_undefined_flag_CXX='${wl}-z,text'
13939 allow_undefined_flag_CXX='${wl}-z,nodefs'
13940 archive_cmds_need_lc_CXX=no
13941 hardcode_shlibpath_var_CXX=no
13942 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13943 hardcode_libdir_separator_CXX=':'
13944 link_all_deplibs_CXX=yes
13945 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13946 runpath_var='LD_RUN_PATH'
13947
13948 case $cc_basename in
13949 CC*)
13950 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13953 '"$old_archive_cmds_CXX"
13954 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13955 '"$reload_cmds_CXX"
13956 ;;
13957 *)
13958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 ;;
13961 esac
13962 ;;
13963
13964 tandem*)
13965 case $cc_basename in
13966 NCC*)
13967 # NonStop-UX NCC 3.20
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
13970 ;;
13971 *)
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 ;;
13975 esac
13976 ;;
13977
13978 vxworks*)
13979 # FIXME: insert proper C++ library support
13980 ld_shlibs_CXX=no
13981 ;;
13982
13983 *)
13984 # FIXME: insert proper C++ library support
13985 ld_shlibs_CXX=no
13986 ;;
13987 esac
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13990 $as_echo "$ld_shlibs_CXX" >&6; }
13991 test "$ld_shlibs_CXX" = no && can_build_shared=no
13992
13993 GCC_CXX="$GXX"
13994 LD_CXX="$LD"
13995
13996 ## CAVEAT EMPTOR:
13997 ## There is no encapsulation within the following macros, do not change
13998 ## the running order or otherwise move them around unless you know exactly
13999 ## what you are doing...
14000 # Dependencies to place before and after the object being linked:
14001 predep_objects_CXX=
14002 postdep_objects_CXX=
14003 predeps_CXX=
14004 postdeps_CXX=
14005 compiler_lib_search_path_CXX=
14006
14007 cat > conftest.$ac_ext <<_LT_EOF
14008 class Foo
14009 {
14010 public:
14011 Foo (void) { a = 0; }
14012 private:
14013 int a;
14014 };
14015 _LT_EOF
14016
14017
14018 _lt_libdeps_save_CFLAGS=$CFLAGS
14019 case "$CC $CFLAGS " in #(
14020 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14021 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14022 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14023 esac
14024
14025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14026 (eval $ac_compile) 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; then
14030 # Parse the compiler output and extract the necessary
14031 # objects, libraries and library flags.
14032
14033 # Sentinel used to keep track of whether or not we are before
14034 # the conftest object file.
14035 pre_test_object_deps_done=no
14036
14037 for p in `eval "$output_verbose_link_cmd"`; do
14038 case ${prev}${p} in
14039
14040 -L* | -R* | -l*)
14041 # Some compilers place space between "-{L,R}" and the path.
14042 # Remove the space.
14043 if test $p = "-L" ||
14044 test $p = "-R"; then
14045 prev=$p
14046 continue
14047 fi
14048
14049 # Expand the sysroot to ease extracting the directories later.
14050 if test -z "$prev"; then
14051 case $p in
14052 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14053 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14054 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14055 esac
14056 fi
14057 case $p in
14058 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14059 esac
14060 if test "$pre_test_object_deps_done" = no; then
14061 case ${prev} in
14062 -L | -R)
14063 # Internal compiler library paths should come after those
14064 # provided the user. The postdeps already come after the
14065 # user supplied libs so there is no need to process them.
14066 if test -z "$compiler_lib_search_path_CXX"; then
14067 compiler_lib_search_path_CXX="${prev}${p}"
14068 else
14069 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14070 fi
14071 ;;
14072 # The "-l" case would never come before the object being
14073 # linked, so don't bother handling this case.
14074 esac
14075 else
14076 if test -z "$postdeps_CXX"; then
14077 postdeps_CXX="${prev}${p}"
14078 else
14079 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14080 fi
14081 fi
14082 prev=
14083 ;;
14084
14085 *.lto.$objext) ;; # Ignore GCC LTO objects
14086 *.$objext)
14087 # This assumes that the test object file only shows up
14088 # once in the compiler output.
14089 if test "$p" = "conftest.$objext"; then
14090 pre_test_object_deps_done=yes
14091 continue
14092 fi
14093
14094 if test "$pre_test_object_deps_done" = no; then
14095 if test -z "$predep_objects_CXX"; then
14096 predep_objects_CXX="$p"
14097 else
14098 predep_objects_CXX="$predep_objects_CXX $p"
14099 fi
14100 else
14101 if test -z "$postdep_objects_CXX"; then
14102 postdep_objects_CXX="$p"
14103 else
14104 postdep_objects_CXX="$postdep_objects_CXX $p"
14105 fi
14106 fi
14107 ;;
14108
14109 *) ;; # Ignore the rest.
14110
14111 esac
14112 done
14113
14114 # Clean up.
14115 rm -f a.out a.exe
14116 else
14117 echo "libtool.m4: error: problem compiling CXX test program"
14118 fi
14119
14120 $RM -f confest.$objext
14121 CFLAGS=$_lt_libdeps_save_CFLAGS
14122
14123 # PORTME: override above test on systems where it is broken
14124 case $host_os in
14125 interix[3-9]*)
14126 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14127 # hack all around it, let's just trust "g++" to DTRT.
14128 predep_objects_CXX=
14129 postdep_objects_CXX=
14130 postdeps_CXX=
14131 ;;
14132
14133 linux*)
14134 case `$CC -V 2>&1 | sed 5q` in
14135 *Sun\ C*)
14136 # Sun C++ 5.9
14137
14138 # The more standards-conforming stlport4 library is
14139 # incompatible with the Cstd library. Avoid specifying
14140 # it if it's in CXXFLAGS. Ignore libCrun as
14141 # -library=stlport4 depends on it.
14142 case " $CXX $CXXFLAGS " in
14143 *" -library=stlport4 "*)
14144 solaris_use_stlport4=yes
14145 ;;
14146 esac
14147
14148 if test "$solaris_use_stlport4" != yes; then
14149 postdeps_CXX='-library=Cstd -library=Crun'
14150 fi
14151 ;;
14152 esac
14153 ;;
14154
14155 solaris*)
14156 case $cc_basename in
14157 CC* | sunCC*)
14158 # The more standards-conforming stlport4 library is
14159 # incompatible with the Cstd library. Avoid specifying
14160 # it if it's in CXXFLAGS. Ignore libCrun as
14161 # -library=stlport4 depends on it.
14162 case " $CXX $CXXFLAGS " in
14163 *" -library=stlport4 "*)
14164 solaris_use_stlport4=yes
14165 ;;
14166 esac
14167
14168 # Adding this requires a known-good setup of shared libraries for
14169 # Sun compiler versions before 5.6, else PIC objects from an old
14170 # archive will be linked into the output, leading to subtle bugs.
14171 if test "$solaris_use_stlport4" != yes; then
14172 postdeps_CXX='-library=Cstd -library=Crun'
14173 fi
14174 ;;
14175 esac
14176 ;;
14177 esac
14178
14179
14180 case " $postdeps_CXX " in
14181 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14182 esac
14183 compiler_lib_search_dirs_CXX=
14184 if test -n "${compiler_lib_search_path_CXX}"; then
14185 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14186 fi
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 lt_prog_compiler_wl_CXX=
14219 lt_prog_compiler_pic_CXX=
14220 lt_prog_compiler_static_CXX=
14221
14222
14223 # C++ specific cases for pic, static, wl, etc.
14224 if test "$GXX" = yes; then
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_static_CXX='-static'
14227
14228 case $host_os in
14229 aix*)
14230 # All AIX code is PIC.
14231 if test "$host_cpu" = ia64; then
14232 # AIX 5 now supports IA64 processor
14233 lt_prog_compiler_static_CXX='-Bstatic'
14234 fi
14235 ;;
14236
14237 amigaos*)
14238 case $host_cpu in
14239 powerpc)
14240 # see comment about AmigaOS4 .so support
14241 lt_prog_compiler_pic_CXX='-fPIC'
14242 ;;
14243 m68k)
14244 # FIXME: we need at least 68020 code to build shared libraries, but
14245 # adding the `-m68020' flag to GCC prevents building anything better,
14246 # like `-m68040'.
14247 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14248 ;;
14249 esac
14250 ;;
14251
14252 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14253 # PIC is the default for these OSes.
14254 ;;
14255 mingw* | cygwin* | os2* | pw32* | cegcc*)
14256 # This hack is so that the source file can tell whether it is being
14257 # built for inclusion in a dll (and should export symbols for example).
14258 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14259 # (--disable-auto-import) libraries
14260 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14261 ;;
14262 darwin* | rhapsody*)
14263 # PIC is the default on this platform
14264 # Common symbols not allowed in MH_DYLIB files
14265 lt_prog_compiler_pic_CXX='-fno-common'
14266 ;;
14267 *djgpp*)
14268 # DJGPP does not support shared libraries at all
14269 lt_prog_compiler_pic_CXX=
14270 ;;
14271 haiku*)
14272 # PIC is the default for Haiku.
14273 # The "-static" flag exists, but is broken.
14274 lt_prog_compiler_static_CXX=
14275 ;;
14276 interix[3-9]*)
14277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278 # Instead, we relocate shared libraries at runtime.
14279 ;;
14280 sysv4*MP*)
14281 if test -d /usr/nec; then
14282 lt_prog_compiler_pic_CXX=-Kconform_pic
14283 fi
14284 ;;
14285 hpux*)
14286 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14287 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14288 # sets the default TLS model and affects inlining.
14289 case $host_cpu in
14290 hppa*64*)
14291 ;;
14292 *)
14293 lt_prog_compiler_pic_CXX='-fPIC'
14294 ;;
14295 esac
14296 ;;
14297 *qnx* | *nto*)
14298 # QNX uses GNU C++, but need to define -shared option too, otherwise
14299 # it will coredump.
14300 lt_prog_compiler_pic_CXX='-fPIC -shared'
14301 ;;
14302 *)
14303 lt_prog_compiler_pic_CXX='-fPIC'
14304 ;;
14305 esac
14306 else
14307 case $host_os in
14308 aix[4-9]*)
14309 # All AIX code is PIC.
14310 if test "$host_cpu" = ia64; then
14311 # AIX 5 now supports IA64 processor
14312 lt_prog_compiler_static_CXX='-Bstatic'
14313 else
14314 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14315 fi
14316 ;;
14317 chorus*)
14318 case $cc_basename in
14319 cxch68*)
14320 # Green Hills C++ Compiler
14321 # _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"
14322 ;;
14323 esac
14324 ;;
14325 mingw* | cygwin* | os2* | pw32* | cegcc*)
14326 # This hack is so that the source file can tell whether it is being
14327 # built for inclusion in a dll (and should export symbols for example).
14328 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14329 ;;
14330 dgux*)
14331 case $cc_basename in
14332 ec++*)
14333 lt_prog_compiler_pic_CXX='-KPIC'
14334 ;;
14335 ghcx*)
14336 # Green Hills C++ Compiler
14337 lt_prog_compiler_pic_CXX='-pic'
14338 ;;
14339 *)
14340 ;;
14341 esac
14342 ;;
14343 freebsd* | dragonfly*)
14344 # FreeBSD uses GNU C++
14345 ;;
14346 hpux9* | hpux10* | hpux11*)
14347 case $cc_basename in
14348 CC*)
14349 lt_prog_compiler_wl_CXX='-Wl,'
14350 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14351 if test "$host_cpu" != ia64; then
14352 lt_prog_compiler_pic_CXX='+Z'
14353 fi
14354 ;;
14355 aCC*)
14356 lt_prog_compiler_wl_CXX='-Wl,'
14357 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14358 case $host_cpu in
14359 hppa*64*|ia64*)
14360 # +Z the default
14361 ;;
14362 *)
14363 lt_prog_compiler_pic_CXX='+Z'
14364 ;;
14365 esac
14366 ;;
14367 *)
14368 ;;
14369 esac
14370 ;;
14371 interix*)
14372 # This is c89, which is MS Visual C++ (no shared libs)
14373 # Anyone wants to do a port?
14374 ;;
14375 irix5* | irix6* | nonstopux*)
14376 case $cc_basename in
14377 CC*)
14378 lt_prog_compiler_wl_CXX='-Wl,'
14379 lt_prog_compiler_static_CXX='-non_shared'
14380 # CC pic flag -KPIC is the default.
14381 ;;
14382 *)
14383 ;;
14384 esac
14385 ;;
14386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14387 case $cc_basename in
14388 KCC*)
14389 # KAI C++ Compiler
14390 lt_prog_compiler_wl_CXX='--backend -Wl,'
14391 lt_prog_compiler_pic_CXX='-fPIC'
14392 ;;
14393 ecpc* )
14394 # old Intel C++ for x86_64 which still supported -KPIC.
14395 lt_prog_compiler_wl_CXX='-Wl,'
14396 lt_prog_compiler_pic_CXX='-KPIC'
14397 lt_prog_compiler_static_CXX='-static'
14398 ;;
14399 icpc* )
14400 # Intel C++, used to be incompatible with GCC.
14401 # ICC 10 doesn't accept -KPIC any more.
14402 lt_prog_compiler_wl_CXX='-Wl,'
14403 lt_prog_compiler_pic_CXX='-fPIC'
14404 lt_prog_compiler_static_CXX='-static'
14405 ;;
14406 pgCC* | pgcpp*)
14407 # Portland Group C++ compiler
14408 lt_prog_compiler_wl_CXX='-Wl,'
14409 lt_prog_compiler_pic_CXX='-fpic'
14410 lt_prog_compiler_static_CXX='-Bstatic'
14411 ;;
14412 cxx*)
14413 # Compaq C++
14414 # Make sure the PIC flag is empty. It appears that all Alpha
14415 # Linux and Compaq Tru64 Unix objects are PIC.
14416 lt_prog_compiler_pic_CXX=
14417 lt_prog_compiler_static_CXX='-non_shared'
14418 ;;
14419 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14420 # IBM XL 8.0, 9.0 on PPC and BlueGene
14421 lt_prog_compiler_wl_CXX='-Wl,'
14422 lt_prog_compiler_pic_CXX='-qpic'
14423 lt_prog_compiler_static_CXX='-qstaticlink'
14424 ;;
14425 *)
14426 case `$CC -V 2>&1 | sed 5q` in
14427 *Sun\ C*)
14428 # Sun C++ 5.9
14429 lt_prog_compiler_pic_CXX='-KPIC'
14430 lt_prog_compiler_static_CXX='-Bstatic'
14431 lt_prog_compiler_wl_CXX='-Qoption ld '
14432 ;;
14433 esac
14434 ;;
14435 esac
14436 ;;
14437 lynxos*)
14438 ;;
14439 m88k*)
14440 ;;
14441 mvs*)
14442 case $cc_basename in
14443 cxx*)
14444 lt_prog_compiler_pic_CXX='-W c,exportall'
14445 ;;
14446 *)
14447 ;;
14448 esac
14449 ;;
14450 netbsd*)
14451 ;;
14452 *qnx* | *nto*)
14453 # QNX uses GNU C++, but need to define -shared option too, otherwise
14454 # it will coredump.
14455 lt_prog_compiler_pic_CXX='-fPIC -shared'
14456 ;;
14457 osf3* | osf4* | osf5*)
14458 case $cc_basename in
14459 KCC*)
14460 lt_prog_compiler_wl_CXX='--backend -Wl,'
14461 ;;
14462 RCC*)
14463 # Rational C++ 2.4.1
14464 lt_prog_compiler_pic_CXX='-pic'
14465 ;;
14466 cxx*)
14467 # Digital/Compaq C++
14468 lt_prog_compiler_wl_CXX='-Wl,'
14469 # Make sure the PIC flag is empty. It appears that all Alpha
14470 # Linux and Compaq Tru64 Unix objects are PIC.
14471 lt_prog_compiler_pic_CXX=
14472 lt_prog_compiler_static_CXX='-non_shared'
14473 ;;
14474 *)
14475 ;;
14476 esac
14477 ;;
14478 psos*)
14479 ;;
14480 solaris*)
14481 case $cc_basename in
14482 CC* | sunCC*)
14483 # Sun C++ 4.2, 5.x and Centerline C++
14484 lt_prog_compiler_pic_CXX='-KPIC'
14485 lt_prog_compiler_static_CXX='-Bstatic'
14486 lt_prog_compiler_wl_CXX='-Qoption ld '
14487 ;;
14488 gcx*)
14489 # Green Hills C++ Compiler
14490 lt_prog_compiler_pic_CXX='-PIC'
14491 ;;
14492 *)
14493 ;;
14494 esac
14495 ;;
14496 sunos4*)
14497 case $cc_basename in
14498 CC*)
14499 # Sun C++ 4.x
14500 lt_prog_compiler_pic_CXX='-pic'
14501 lt_prog_compiler_static_CXX='-Bstatic'
14502 ;;
14503 lcc*)
14504 # Lucid
14505 lt_prog_compiler_pic_CXX='-pic'
14506 ;;
14507 *)
14508 ;;
14509 esac
14510 ;;
14511 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14512 case $cc_basename in
14513 CC*)
14514 lt_prog_compiler_wl_CXX='-Wl,'
14515 lt_prog_compiler_pic_CXX='-KPIC'
14516 lt_prog_compiler_static_CXX='-Bstatic'
14517 ;;
14518 esac
14519 ;;
14520 tandem*)
14521 case $cc_basename in
14522 NCC*)
14523 # NonStop-UX NCC 3.20
14524 lt_prog_compiler_pic_CXX='-KPIC'
14525 ;;
14526 *)
14527 ;;
14528 esac
14529 ;;
14530 vxworks*)
14531 ;;
14532 *)
14533 lt_prog_compiler_can_build_shared_CXX=no
14534 ;;
14535 esac
14536 fi
14537
14538 case $host_os in
14539 # For platforms which do not support PIC, -DPIC is meaningless:
14540 *djgpp*)
14541 lt_prog_compiler_pic_CXX=
14542 ;;
14543 *)
14544 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14545 ;;
14546 esac
14547
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14549 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14550 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14554 fi
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14556 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14557 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14558
14559 #
14560 # Check to make sure the PIC flag actually works.
14561 #
14562 if test -n "$lt_prog_compiler_pic_CXX"; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14564 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14565 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 lt_cv_prog_compiler_pic_works_CXX=no
14569 ac_outfile=conftest.$ac_objext
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 # The option is referenced via a variable to avoid confusing sed.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>conftest.err)
14583 ac_status=$?
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s "$ac_outfile"; then
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings other than the usual output.
14589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_pic_works_CXX=yes
14593 fi
14594 fi
14595 $RM -r conftest*
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14599 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14600
14601 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14602 case $lt_prog_compiler_pic_CXX in
14603 "" | " "*) ;;
14604 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14605 esac
14606 else
14607 lt_prog_compiler_pic_CXX=
14608 lt_prog_compiler_can_build_shared_CXX=no
14609 fi
14610
14611 fi
14612
14613
14614
14615
14616
14617 #
14618 # Check to make sure the static flag actually works.
14619 #
14620 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14622 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14623 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 lt_cv_prog_compiler_static_works_CXX=no
14627 save_LDFLAGS="$LDFLAGS"
14628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14631 # The linker can only warn and ignore the option if not recognized
14632 # So say no if there are warnings
14633 if test -s conftest.err; then
14634 # Append any errors to the config.log.
14635 cat conftest.err 1>&5
14636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14638 if diff conftest.exp conftest.er2 >/dev/null; then
14639 lt_cv_prog_compiler_static_works_CXX=yes
14640 fi
14641 else
14642 lt_cv_prog_compiler_static_works_CXX=yes
14643 fi
14644 fi
14645 $RM -r conftest*
14646 LDFLAGS="$save_LDFLAGS"
14647
14648 fi
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14650 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14651
14652 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14653 :
14654 else
14655 lt_prog_compiler_static_CXX=
14656 fi
14657
14658
14659
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14662 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14663 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 lt_cv_prog_compiler_c_o_CXX=no
14667 $RM -r conftest 2>/dev/null
14668 mkdir conftest
14669 cd conftest
14670 mkdir out
14671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14672
14673 lt_compiler_flag="-o out/conftest2.$ac_objext"
14674 # Insert the option either (1) after the last *FLAGS variable, or
14675 # (2) before a word containing "conftest.", or (3) at the end.
14676 # Note that $ac_compile itself does not contain backslashes and begins
14677 # with a dollar sign (not a hyphen), so the echo should work correctly.
14678 lt_compile=`echo "$ac_compile" | $SED \
14679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14681 -e 's:$: $lt_compiler_flag:'`
14682 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14683 (eval "$lt_compile" 2>out/conftest.err)
14684 ac_status=$?
14685 cat out/conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14688 then
14689 # The compiler can only warn and ignore the option if not recognized
14690 # So say no if there are warnings
14691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14694 lt_cv_prog_compiler_c_o_CXX=yes
14695 fi
14696 fi
14697 chmod u+w . 2>&5
14698 $RM -r conftest*
14699 # SGI C++ compiler will create directory out/ii_files/ for
14700 # template instantiation
14701 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14702 $RM out/* && rmdir out
14703 cd ..
14704 $RM -r conftest
14705 $RM -r conftest*
14706
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14709 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14710
14711
14712
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14714 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14715 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14716 $as_echo_n "(cached) " >&6
14717 else
14718 lt_cv_prog_compiler_c_o_CXX=no
14719 $RM -r conftest 2>/dev/null
14720 mkdir conftest
14721 cd conftest
14722 mkdir out
14723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14724
14725 lt_compiler_flag="-o out/conftest2.$ac_objext"
14726 # Insert the option either (1) after the last *FLAGS variable, or
14727 # (2) before a word containing "conftest.", or (3) at the end.
14728 # Note that $ac_compile itself does not contain backslashes and begins
14729 # with a dollar sign (not a hyphen), so the echo should work correctly.
14730 lt_compile=`echo "$ac_compile" | $SED \
14731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14733 -e 's:$: $lt_compiler_flag:'`
14734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14735 (eval "$lt_compile" 2>out/conftest.err)
14736 ac_status=$?
14737 cat out/conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14740 then
14741 # The compiler can only warn and ignore the option if not recognized
14742 # So say no if there are warnings
14743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14746 lt_cv_prog_compiler_c_o_CXX=yes
14747 fi
14748 fi
14749 chmod u+w . 2>&5
14750 $RM -r conftest*
14751 # SGI C++ compiler will create directory out/ii_files/ for
14752 # template instantiation
14753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14754 $RM out/* && rmdir out
14755 cd ..
14756 $RM -r conftest
14757 $RM -r conftest*
14758
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14761 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14762
14763
14764
14765
14766 hard_links="nottested"
14767 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14768 # do not overwrite the value of need_locks provided by the user
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14770 $as_echo_n "checking if we can lock with hard links... " >&6; }
14771 hard_links=yes
14772 $RM -r conftest*
14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14774 touch conftest.a
14775 ln conftest.a conftest.b 2>&5 || hard_links=no
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14778 $as_echo "$hard_links" >&6; }
14779 if test "$hard_links" = no; then
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14782 need_locks=warn
14783 fi
14784 else
14785 need_locks=no
14786 fi
14787
14788
14789
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14792
14793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14794 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14795 case $host_os in
14796 aix[4-9]*)
14797 # If we're using GNU nm, then we don't want the "-C" option.
14798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14799 # Also, AIX nm treats weak defined symbols like other global defined
14800 # symbols, whereas GNU nm marks them as "W".
14801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14802 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14803 else
14804 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14805 fi
14806 ;;
14807 pw32*)
14808 export_symbols_cmds_CXX="$ltdll_cmds"
14809 ;;
14810 cygwin* | mingw* | cegcc*)
14811 case $cc_basename in
14812 cl*)
14813 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14814 ;;
14815 *)
14816 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'
14817 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14818 ;;
14819 esac
14820 ;;
14821 *)
14822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14823 ;;
14824 esac
14825
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14827 $as_echo "$ld_shlibs_CXX" >&6; }
14828 test "$ld_shlibs_CXX" = no && can_build_shared=no
14829
14830 with_gnu_ld_CXX=$with_gnu_ld
14831
14832
14833
14834
14835
14836
14837 #
14838 # Do we need to explicitly link libc?
14839 #
14840 case "x$archive_cmds_need_lc_CXX" in
14841 x|xyes)
14842 # Assume -lc should be added
14843 archive_cmds_need_lc_CXX=yes
14844
14845 if test "$enable_shared" = yes && test "$GCC" = yes; then
14846 case $archive_cmds_CXX in
14847 *'~'*)
14848 # FIXME: we may have to deal with multi-command sequences.
14849 ;;
14850 '$CC '*)
14851 # Test whether the compiler implicitly links with -lc since on some
14852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14853 # to ld, don't add -lc before -lgcc.
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14855 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14856 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 $RM -r conftest*
14860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14861
14862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14863 (eval $ac_compile) 2>&5
14864 ac_status=$?
14865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14866 test $ac_status = 0; } 2>conftest.err; then
14867 soname=conftest
14868 lib=conftest
14869 libobjs=conftest.$ac_objext
14870 deplibs=
14871 wl=$lt_prog_compiler_wl_CXX
14872 pic_flag=$lt_prog_compiler_pic_CXX
14873 compiler_flags=-v
14874 linker_flags=-v
14875 verstring=
14876 output_objdir=.
14877 libname=conftest
14878 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14879 allow_undefined_flag_CXX=
14880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14881 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14882 ac_status=$?
14883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14884 test $ac_status = 0; }
14885 then
14886 lt_cv_archive_cmds_need_lc_CXX=no
14887 else
14888 lt_cv_archive_cmds_need_lc_CXX=yes
14889 fi
14890 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14891 else
14892 cat conftest.err 1>&5
14893 fi
14894 $RM -r conftest*
14895
14896 fi
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14898 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14899 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14900 ;;
14901 esac
14902 fi
14903 ;;
14904 esac
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14969
14970 library_names_spec=
14971 libname_spec='lib$name'
14972 soname_spec=
14973 shrext_cmds=".so"
14974 postinstall_cmds=
14975 postuninstall_cmds=
14976 finish_cmds=
14977 finish_eval=
14978 shlibpath_var=
14979 shlibpath_overrides_runpath=unknown
14980 version_type=none
14981 dynamic_linker="$host_os ld.so"
14982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14983 need_lib_prefix=unknown
14984 hardcode_into_libs=no
14985
14986 # when you set need_version to no, make sure it does not cause -set_version
14987 # flags to be left without arguments
14988 need_version=unknown
14989
14990 case $host_os in
14991 aix3*)
14992 version_type=linux # correct to gnu/linux during the next big refactor
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14994 shlibpath_var=LIBPATH
14995
14996 # AIX 3 has no versioning support, so we append a major version to the name.
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 ;;
14999
15000 aix[4-9]*)
15001 version_type=linux # correct to gnu/linux during the next big refactor
15002 need_lib_prefix=no
15003 need_version=no
15004 hardcode_into_libs=yes
15005 if test "$host_cpu" = ia64; then
15006 # AIX 5 supports IA64
15007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 else
15010 # With GCC up to 2.95.x, collect2 would create an import file
15011 # for dependence libraries. The import file would start with
15012 # the line `#! .'. This would cause the generated library to
15013 # depend on `.', always an invalid library. This was fixed in
15014 # development snapshots of GCC prior to 3.0.
15015 case $host_os in
15016 aix4 | aix4.[01] | aix4.[01].*)
15017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15018 echo ' yes '
15019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15020 :
15021 else
15022 can_build_shared=no
15023 fi
15024 ;;
15025 esac
15026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15027 # soname into executable. Probably we can add versioning support to
15028 # collect2, so additional links can be useful in future.
15029 if test "$aix_use_runtimelinking" = yes; then
15030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15031 # instead of lib<name>.a to let people know that these are not
15032 # typical AIX shared libraries.
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 else
15035 # We preserve .a as extension for shared libraries through AIX4.2
15036 # and later when we are not doing run time linking.
15037 library_names_spec='${libname}${release}.a $libname.a'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 fi
15040 shlibpath_var=LIBPATH
15041 fi
15042 ;;
15043
15044 amigaos*)
15045 case $host_cpu in
15046 powerpc)
15047 # Since July 2007 AmigaOS4 officially supports .so libraries.
15048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 ;;
15051 m68k)
15052 library_names_spec='$libname.ixlibrary $libname.a'
15053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15054 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15055 ;;
15056 esac
15057 ;;
15058
15059 beos*)
15060 library_names_spec='${libname}${shared_ext}'
15061 dynamic_linker="$host_os ld.so"
15062 shlibpath_var=LIBRARY_PATH
15063 ;;
15064
15065 bsdi[45]*)
15066 version_type=linux # correct to gnu/linux during the next big refactor
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15074 # the default ld.so.conf also contains /usr/contrib/lib and
15075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15076 # libtool to hard-code these into programs
15077 ;;
15078
15079 cygwin* | mingw* | pw32* | cegcc*)
15080 version_type=windows
15081 shrext_cmds=".dll"
15082 need_version=no
15083 need_lib_prefix=no
15084
15085 case $GCC,$cc_basename in
15086 yes,*)
15087 # gcc
15088 library_names_spec='$libname.dll.a'
15089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15090 postinstall_cmds='base_file=`basename \${file}`~
15091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15092 dldir=$destdir/`dirname \$dlpath`~
15093 test -d \$dldir || mkdir -p \$dldir~
15094 $install_prog $dir/$dlname \$dldir/$dlname~
15095 chmod a+x \$dldir/$dlname~
15096 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15097 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15098 fi'
15099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15100 dlpath=$dir/\$dldll~
15101 $RM \$dlpath'
15102 shlibpath_overrides_runpath=yes
15103
15104 case $host_os in
15105 cygwin*)
15106 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15108
15109 ;;
15110 mingw* | cegcc*)
15111 # MinGW DLLs use traditional 'lib' prefix
15112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113 ;;
15114 pw32*)
15115 # pw32 DLLs use 'pw' prefix rather than 'lib'
15116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15117 ;;
15118 esac
15119 dynamic_linker='Win32 ld.exe'
15120 ;;
15121
15122 *,cl*)
15123 # Native MSVC
15124 libname_spec='$name'
15125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15126 library_names_spec='${libname}.dll.lib'
15127
15128 case $build_os in
15129 mingw*)
15130 sys_lib_search_path_spec=
15131 lt_save_ifs=$IFS
15132 IFS=';'
15133 for lt_path in $LIB
15134 do
15135 IFS=$lt_save_ifs
15136 # Let DOS variable expansion print the short 8.3 style file name.
15137 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15138 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15139 done
15140 IFS=$lt_save_ifs
15141 # Convert to MSYS style.
15142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15143 ;;
15144 cygwin*)
15145 # Convert to unix form, then to dos form, then back to unix form
15146 # but this time dos style (no spaces!) so that the unix form looks
15147 # like /cygdrive/c/PROGRA~1:/cygdr...
15148 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15149 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15150 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15151 ;;
15152 *)
15153 sys_lib_search_path_spec="$LIB"
15154 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15155 # It is most probably a Windows format PATH.
15156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15157 else
15158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15159 fi
15160 # FIXME: find the short name or the path components, as spaces are
15161 # common. (e.g. "Program Files" -> "PROGRA~1")
15162 ;;
15163 esac
15164
15165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15166 postinstall_cmds='base_file=`basename \${file}`~
15167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15168 dldir=$destdir/`dirname \$dlpath`~
15169 test -d \$dldir || mkdir -p \$dldir~
15170 $install_prog $dir/$dlname \$dldir/$dlname'
15171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15172 dlpath=$dir/\$dldll~
15173 $RM \$dlpath'
15174 shlibpath_overrides_runpath=yes
15175 dynamic_linker='Win32 link.exe'
15176 ;;
15177
15178 *)
15179 # Assume MSVC wrapper
15180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15181 dynamic_linker='Win32 ld.exe'
15182 ;;
15183 esac
15184 # FIXME: first we should search . and the directory the executable is in
15185 shlibpath_var=PATH
15186 ;;
15187
15188 darwin* | rhapsody*)
15189 dynamic_linker="$host_os dyld"
15190 version_type=darwin
15191 need_lib_prefix=no
15192 need_version=no
15193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15194 soname_spec='${libname}${release}${major}$shared_ext'
15195 shlibpath_overrides_runpath=yes
15196 shlibpath_var=DYLD_LIBRARY_PATH
15197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15198
15199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15200 ;;
15201
15202 dgux*)
15203 version_type=linux # correct to gnu/linux during the next big refactor
15204 need_lib_prefix=no
15205 need_version=no
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 ;;
15210
15211 freebsd* | dragonfly*)
15212 # DragonFly does not have aout. When/if they implement a new
15213 # versioning mechanism, adjust this.
15214 if test -x /usr/bin/objformat; then
15215 objformat=`/usr/bin/objformat`
15216 else
15217 case $host_os in
15218 freebsd[23].*) objformat=aout ;;
15219 *) objformat=elf ;;
15220 esac
15221 fi
15222 version_type=freebsd-$objformat
15223 case $version_type in
15224 freebsd-elf*)
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15226 need_version=no
15227 need_lib_prefix=no
15228 ;;
15229 freebsd-*)
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15231 need_version=yes
15232 ;;
15233 esac
15234 shlibpath_var=LD_LIBRARY_PATH
15235 case $host_os in
15236 freebsd2.*)
15237 shlibpath_overrides_runpath=yes
15238 ;;
15239 freebsd3.[01]* | freebsdelf3.[01]*)
15240 shlibpath_overrides_runpath=yes
15241 hardcode_into_libs=yes
15242 ;;
15243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15245 shlibpath_overrides_runpath=no
15246 hardcode_into_libs=yes
15247 ;;
15248 *) # from 4.6 on, and DragonFly
15249 shlibpath_overrides_runpath=yes
15250 hardcode_into_libs=yes
15251 ;;
15252 esac
15253 ;;
15254
15255 gnu*)
15256 version_type=linux # correct to gnu/linux during the next big refactor
15257 need_lib_prefix=no
15258 need_version=no
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=no
15263 hardcode_into_libs=yes
15264 ;;
15265
15266 haiku*)
15267 version_type=linux # correct to gnu/linux during the next big refactor
15268 need_lib_prefix=no
15269 need_version=no
15270 dynamic_linker="$host_os runtime_loader"
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LIBRARY_PATH
15274 shlibpath_overrides_runpath=yes
15275 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15276 hardcode_into_libs=yes
15277 ;;
15278
15279 hpux9* | hpux10* | hpux11*)
15280 # Give a soname corresponding to the major version so that dld.sl refuses to
15281 # link against other versions.
15282 version_type=sunos
15283 need_lib_prefix=no
15284 need_version=no
15285 case $host_cpu in
15286 ia64*)
15287 shrext_cmds='.so'
15288 hardcode_into_libs=yes
15289 dynamic_linker="$host_os dld.so"
15290 shlibpath_var=LD_LIBRARY_PATH
15291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 if test "X$HPUX_IA64_MODE" = X32; then
15295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15296 else
15297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15298 fi
15299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15300 ;;
15301 hppa*64*)
15302 shrext_cmds='.sl'
15303 hardcode_into_libs=yes
15304 dynamic_linker="$host_os dld.sl"
15305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15311 ;;
15312 *)
15313 shrext_cmds='.sl'
15314 dynamic_linker="$host_os dld.sl"
15315 shlibpath_var=SHLIB_PATH
15316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 ;;
15320 esac
15321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15322 postinstall_cmds='chmod 555 $lib'
15323 # or fails outright, so override atomically:
15324 install_override_mode=555
15325 ;;
15326
15327 interix[3-9]*)
15328 version_type=linux # correct to gnu/linux during the next big refactor
15329 need_lib_prefix=no
15330 need_version=no
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=no
15336 hardcode_into_libs=yes
15337 ;;
15338
15339 irix5* | irix6* | nonstopux*)
15340 case $host_os in
15341 nonstopux*) version_type=nonstopux ;;
15342 *)
15343 if test "$lt_cv_prog_gnu_ld" = yes; then
15344 version_type=linux # correct to gnu/linux during the next big refactor
15345 else
15346 version_type=irix
15347 fi ;;
15348 esac
15349 need_lib_prefix=no
15350 need_version=no
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15353 case $host_os in
15354 irix5* | nonstopux*)
15355 libsuff= shlibsuff=
15356 ;;
15357 *)
15358 case $LD in # libtool.m4 will add one of these switches to LD
15359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15360 libsuff= shlibsuff= libmagic=32-bit;;
15361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15362 libsuff=32 shlibsuff=N32 libmagic=N32;;
15363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15365 *) libsuff= shlibsuff= libmagic=never-match;;
15366 esac
15367 ;;
15368 esac
15369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15370 shlibpath_overrides_runpath=no
15371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15373 hardcode_into_libs=yes
15374 ;;
15375
15376 # No shared lib support for Linux oldld, aout, or coff.
15377 linux*oldld* | linux*aout* | linux*coff*)
15378 dynamic_linker=no
15379 ;;
15380
15381 # This must be glibc/ELF.
15382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15383 version_type=linux # correct to gnu/linux during the next big refactor
15384 need_lib_prefix=no
15385 need_version=no
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 shlibpath_overrides_runpath=no
15391
15392 # Some binutils ld are patched to set DT_RUNPATH
15393 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 lt_cv_shlibpath_overrides_runpath=no
15397 save_LDFLAGS=$LDFLAGS
15398 save_libdir=$libdir
15399 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15400 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15403
15404 int
15405 main ()
15406 {
15407
15408 ;
15409 return 0;
15410 }
15411 _ACEOF
15412 if ac_fn_cxx_try_link "$LINENO"; then :
15413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15414 lt_cv_shlibpath_overrides_runpath=yes
15415 fi
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LDFLAGS=$save_LDFLAGS
15420 libdir=$save_libdir
15421
15422 fi
15423
15424 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15425
15426 # This implies no fast_install, which is unacceptable.
15427 # Some rework will be needed to allow for fast_install
15428 # before this can be enabled.
15429 hardcode_into_libs=yes
15430
15431 # Append ld.so.conf contents to the search path
15432 if test -f /etc/ld.so.conf; then
15433 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' ' '`
15434 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15435 fi
15436
15437 # We used to test for /lib/ld.so.1 and disable shared libraries on
15438 # powerpc, because MkLinux only supported shared libraries with the
15439 # GNU dynamic linker. Since this was broken with cross compilers,
15440 # most powerpc-linux boxes support dynamic linking these days and
15441 # people can always --disable-shared, the test was removed, and we
15442 # assume the GNU/Linux dynamic linker is in use.
15443 dynamic_linker='GNU/Linux ld.so'
15444 ;;
15445
15446 netbsd*)
15447 version_type=sunos
15448 need_lib_prefix=no
15449 need_version=no
15450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15453 dynamic_linker='NetBSD (a.out) ld.so'
15454 else
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 dynamic_linker='NetBSD ld.elf_so'
15458 fi
15459 shlibpath_var=LD_LIBRARY_PATH
15460 shlibpath_overrides_runpath=yes
15461 hardcode_into_libs=yes
15462 ;;
15463
15464 newsos6)
15465 version_type=linux # correct to gnu/linux during the next big refactor
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=yes
15469 ;;
15470
15471 *nto* | *qnx*)
15472 version_type=qnx
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15480 dynamic_linker='ldqnx.so'
15481 ;;
15482
15483 openbsd*)
15484 version_type=sunos
15485 sys_lib_dlsearch_path_spec="/usr/lib"
15486 need_lib_prefix=no
15487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15488 case $host_os in
15489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15490 *) need_version=no ;;
15491 esac
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15496 case $host_os in
15497 openbsd2.[89] | openbsd2.[89].*)
15498 shlibpath_overrides_runpath=no
15499 ;;
15500 *)
15501 shlibpath_overrides_runpath=yes
15502 ;;
15503 esac
15504 else
15505 shlibpath_overrides_runpath=yes
15506 fi
15507 ;;
15508
15509 os2*)
15510 libname_spec='$name'
15511 shrext_cmds=".dll"
15512 need_lib_prefix=no
15513 library_names_spec='$libname${shared_ext} $libname.a'
15514 dynamic_linker='OS/2 ld.exe'
15515 shlibpath_var=LIBPATH
15516 ;;
15517
15518 osf3* | osf4* | osf5*)
15519 version_type=osf
15520 need_lib_prefix=no
15521 need_version=no
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15527 ;;
15528
15529 rdos*)
15530 dynamic_linker=no
15531 ;;
15532
15533 solaris*)
15534 version_type=linux # correct to gnu/linux during the next big refactor
15535 need_lib_prefix=no
15536 need_version=no
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes
15541 hardcode_into_libs=yes
15542 # ldd complains unless libraries are executable
15543 postinstall_cmds='chmod +x $lib'
15544 ;;
15545
15546 sunos4*)
15547 version_type=sunos
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15552 if test "$with_gnu_ld" = yes; then
15553 need_lib_prefix=no
15554 fi
15555 need_version=yes
15556 ;;
15557
15558 sysv4 | sysv4.3*)
15559 version_type=linux # correct to gnu/linux during the next big refactor
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 case $host_vendor in
15564 sni)
15565 shlibpath_overrides_runpath=no
15566 need_lib_prefix=no
15567 runpath_var=LD_RUN_PATH
15568 ;;
15569 siemens)
15570 need_lib_prefix=no
15571 ;;
15572 motorola)
15573 need_lib_prefix=no
15574 need_version=no
15575 shlibpath_overrides_runpath=no
15576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15577 ;;
15578 esac
15579 ;;
15580
15581 sysv4*MP*)
15582 if test -d /usr/nec ;then
15583 version_type=linux # correct to gnu/linux during the next big refactor
15584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15585 soname_spec='$libname${shared_ext}.$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 fi
15588 ;;
15589
15590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15591 version_type=freebsd-elf
15592 need_lib_prefix=no
15593 need_version=no
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 hardcode_into_libs=yes
15599 if test "$with_gnu_ld" = yes; then
15600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15601 else
15602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15603 case $host_os in
15604 sco3.2v5*)
15605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15606 ;;
15607 esac
15608 fi
15609 sys_lib_dlsearch_path_spec='/usr/lib'
15610 ;;
15611
15612 tpf*)
15613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15614 version_type=linux # correct to gnu/linux during the next big refactor
15615 need_lib_prefix=no
15616 need_version=no
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=no
15620 hardcode_into_libs=yes
15621 ;;
15622
15623 uts4*)
15624 version_type=linux # correct to gnu/linux during the next big refactor
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 ;;
15629
15630 *)
15631 dynamic_linker=no
15632 ;;
15633 esac
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15635 $as_echo "$dynamic_linker" >&6; }
15636 test "$dynamic_linker" = no && can_build_shared=no
15637
15638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15639 if test "$GCC" = yes; then
15640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15641 fi
15642
15643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15645 fi
15646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15648 fi
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15688 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15689 hardcode_action_CXX=
15690 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15691 test -n "$runpath_var_CXX" ||
15692 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15693
15694 # We can hardcode non-existent directories.
15695 if test "$hardcode_direct_CXX" != no &&
15696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15697 # have to relink, otherwise we might link with an installed library
15698 # when we should be linking with a yet-to-be-installed one
15699 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15700 test "$hardcode_minus_L_CXX" != no; then
15701 # Linking always hardcodes the temporary library directory.
15702 hardcode_action_CXX=relink
15703 else
15704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15705 hardcode_action_CXX=immediate
15706 fi
15707 else
15708 # We cannot hardcode anything, or else we can only hardcode existing
15709 # directories.
15710 hardcode_action_CXX=unsupported
15711 fi
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15713 $as_echo "$hardcode_action_CXX" >&6; }
15714
15715 if test "$hardcode_action_CXX" = relink ||
15716 test "$inherit_rpath_CXX" = yes; then
15717 # Fast installation is not supported
15718 enable_fast_install=no
15719 elif test "$shlibpath_overrides_runpath" = yes ||
15720 test "$enable_shared" = no; then
15721 # Fast installation is not necessary
15722 enable_fast_install=needless
15723 fi
15724
15725
15726
15727
15728
15729
15730
15731 fi # test -n "$compiler"
15732
15733 CC=$lt_save_CC
15734 CFLAGS=$lt_save_CFLAGS
15735 LDCXX=$LD
15736 LD=$lt_save_LD
15737 GCC=$lt_save_GCC
15738 with_gnu_ld=$lt_save_with_gnu_ld
15739 lt_cv_path_LDCXX=$lt_cv_path_LD
15740 lt_cv_path_LD=$lt_save_path_LD
15741 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15742 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15743 fi # test "$_lt_caught_CXX_error" != yes
15744
15745 ac_ext=c
15746 ac_cpp='$CPP $CPPFLAGS'
15747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765 ac_config_commands="$ac_config_commands libtool"
15766
15767
15768
15769
15770 # Only expand once:
15771
15772
15773
15774 ac_ext=cpp
15775 ac_cpp='$CXXCPP $CPPFLAGS'
15776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15779
15780
15781
15782
15783
15784
15785
15786
15787 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15788 if test -n "$ac_tool_prefix"; then
15789 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15790 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15792 $as_echo_n "checking for $ac_word... " >&6; }
15793 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 case $PKG_CONFIG in
15797 [\\/]* | ?:[\\/]*)
15798 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15799 ;;
15800 *)
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802 for as_dir in $PATH
15803 do
15804 IFS=$as_save_IFS
15805 test -z "$as_dir" && as_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810 break 2
15811 fi
15812 done
15813 done
15814 IFS=$as_save_IFS
15815
15816 ;;
15817 esac
15818 fi
15819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15820 if test -n "$PKG_CONFIG"; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15822 $as_echo "$PKG_CONFIG" >&6; }
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 $as_echo "no" >&6; }
15826 fi
15827
15828
15829 fi
15830 if test -z "$ac_cv_path_PKG_CONFIG"; then
15831 ac_pt_PKG_CONFIG=$PKG_CONFIG
15832 # Extract the first word of "pkg-config", so it can be a program name with args.
15833 set dummy pkg-config; ac_word=$2
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15835 $as_echo_n "checking for $ac_word... " >&6; }
15836 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15837 $as_echo_n "(cached) " >&6
15838 else
15839 case $ac_pt_PKG_CONFIG in
15840 [\\/]* | ?:[\\/]*)
15841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15842 ;;
15843 *)
15844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15846 do
15847 IFS=$as_save_IFS
15848 test -z "$as_dir" && as_dir=.
15849 for ac_exec_ext in '' $ac_executable_extensions; do
15850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15853 break 2
15854 fi
15855 done
15856 done
15857 IFS=$as_save_IFS
15858
15859 ;;
15860 esac
15861 fi
15862 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15863 if test -n "$ac_pt_PKG_CONFIG"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15865 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15866 else
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15869 fi
15870
15871 if test "x$ac_pt_PKG_CONFIG" = x; then
15872 PKG_CONFIG=""
15873 else
15874 case $cross_compiling:$ac_tool_warned in
15875 yes:)
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15878 ac_tool_warned=yes ;;
15879 esac
15880 PKG_CONFIG=$ac_pt_PKG_CONFIG
15881 fi
15882 else
15883 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15884 fi
15885
15886 fi
15887 if test -n "$PKG_CONFIG"; then
15888 _pkg_min_version=0.22
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15890 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15891 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15893 $as_echo "yes" >&6; }
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15897 PKG_CONFIG=""
15898 fi
15899 fi
15900
15901 # Extract the first word of "bash", so it can be a program name with args.
15902 set dummy bash; ac_word=$2
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15904 $as_echo_n "checking for $ac_word... " >&6; }
15905 if ${ac_cv_path__BASH+:} false; then :
15906 $as_echo_n "(cached) " >&6
15907 else
15908 case $_BASH in
15909 [\\/]* | ?:[\\/]*)
15910 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15911 ;;
15912 *)
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916 IFS=$as_save_IFS
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922 break 2
15923 fi
15924 done
15925 done
15926 IFS=$as_save_IFS
15927
15928 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15929 ;;
15930 esac
15931 fi
15932 _BASH=$ac_cv_path__BASH
15933 if test -n "$_BASH"; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15935 $as_echo "$_BASH" >&6; }
15936 else
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938 $as_echo "no" >&6; }
15939 fi
15940
15941
15942 # Extract the first word of "git", so it can be a program name with args.
15943 set dummy git; ac_word=$2
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15945 $as_echo_n "checking for $ac_word... " >&6; }
15946 if ${ac_cv_path_GIT+:} false; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15949 case $GIT in
15950 [\\/]* | ?:[\\/]*)
15951 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15952 ;;
15953 *)
15954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15955 for as_dir in $PATH
15956 do
15957 IFS=$as_save_IFS
15958 test -z "$as_dir" && as_dir=.
15959 for ac_exec_ext in '' $ac_executable_extensions; do
15960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15961 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15963 break 2
15964 fi
15965 done
15966 done
15967 IFS=$as_save_IFS
15968
15969 ;;
15970 esac
15971 fi
15972 GIT=$ac_cv_path_GIT
15973 if test -n "$GIT"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
15975 $as_echo "$GIT" >&6; }
15976 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15979 fi
15980
15981
15982 # Extract the first word of "time", so it can be a program name with args.
15983 set dummy time; ac_word=$2
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15985 $as_echo_n "checking for $ac_word... " >&6; }
15986 if ${ac_cv_path_TIME+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989 case $TIME in
15990 [\\/]* | ?:[\\/]*)
15991 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
15992 ;;
15993 *)
15994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995 for as_dir in $PATH
15996 do
15997 IFS=$as_save_IFS
15998 test -z "$as_dir" && as_dir=.
15999 for ac_exec_ext in '' $ac_executable_extensions; do
16000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16001 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003 break 2
16004 fi
16005 done
16006 done
16007 IFS=$as_save_IFS
16008
16009 ;;
16010 esac
16011 fi
16012 TIME=$ac_cv_path_TIME
16013 if test -n "$TIME"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16015 $as_echo "$TIME" >&6; }
16016 else
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018 $as_echo "no" >&6; }
16019 fi
16020
16021
16022
16023
16024
16025
16026
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16028 $as_echo_n "checking for bison >= 2.3... " >&6; }
16029 if test -z "$BISON"; then
16030 ac_path_BISON_found=false
16031 # Loop through the user's path and test for each of PROGNAME-LIST
16032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16033 for as_dir in $PATH
16034 do
16035 IFS=$as_save_IFS
16036 test -z "$as_dir" && as_dir=.
16037 for ac_prog in bison; do
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16040 as_fn_executable_p "$ac_path_BISON" || continue
16041 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16042 if ${version:+false} :; then :
16043
16044 else
16045 as_awk_strverscmp='
16046 # Use only awk features that work with 7th edition Unix awk (1978).
16047 # My, what an old awk you have, Mr. Solaris!
16048 END {
16049 while (length(v1) && length(v2)) {
16050 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16051 # Normally this is a single character, but if v1 and v2 contain digits,
16052 # compare them as integers and fractions as strverscmp does.
16053 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16054 # Split v1 and v2 into their leading digit string components d1 and d2,
16055 # and advance v1 and v2 past the leading digit strings.
16056 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16057 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16058 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16059 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16060 if (d1 ~ /^0/) {
16061 if (d2 ~ /^0/) {
16062 # Compare two fractions.
16063 while (d1 ~ /^0/ && d2 ~ /^0/) {
16064 d1 = substr(d1, 2); len1--
16065 d2 = substr(d2, 2); len2--
16066 }
16067 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16068 # The two components differ in length, and the common prefix
16069 # contains only leading zeros. Consider the longer to be less.
16070 d1 = -len1
16071 d2 = -len2
16072 } else {
16073 # Otherwise, compare as strings.
16074 d1 = "x" d1
16075 d2 = "x" d2
16076 }
16077 } else {
16078 # A fraction is less than an integer.
16079 exit 1
16080 }
16081 } else {
16082 if (d2 ~ /^0/) {
16083 # An integer is greater than a fraction.
16084 exit 2
16085 } else {
16086 # Compare two integers.
16087 d1 += 0
16088 d2 += 0
16089 }
16090 }
16091 } else {
16092 # The normal case, without worrying about digits.
16093 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16094 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16095 }
16096 if (d1 < d2) exit 1
16097 if (d1 > d2) exit 2
16098 }
16099 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16100 # which mishandles some comparisons of empty strings to integers.
16101 if (length(v2)) exit 1
16102 if (length(v1)) exit 2
16103 }
16104 '
16105 as_arg_v1=$version
16106 as_arg_v2=2.3
16107 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16108 case $? in #(
16109 1) :
16110 ;; #(
16111 0) :
16112 ac_cv_path_BISON=$ac_path_BISON ;; #(
16113 2) :
16114 ac_cv_path_BISON=$ac_path_BISON ;; #(
16115 *) :
16116 ;;
16117 esac
16118 fi
16119
16120 $ac_path_BISON_found && break 3
16121 done
16122 done
16123 done
16124 IFS=$as_save_IFS
16125 if test -z "$ac_cv_path_BISON"; then
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16128 fi
16129 else
16130 ac_cv_path_BISON=$BISON
16131 fi
16132
16133
16134 if true; then :
16135
16136 BISON=$ac_cv_path_BISON
16137
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16139 $as_echo "$BISON" >&6; }
16140
16141 else
16142 if true; then :
16143
16144 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16145
16146 else
16147
16148 BISON=:
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16152
16153 fi
16154 fi
16155
16156
16157
16158
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16160 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16161 if test -z "$FLEX"; then
16162 ac_path_FLEX_found=false
16163 # Loop through the user's path and test for each of PROGNAME-LIST
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16166 do
16167 IFS=$as_save_IFS
16168 test -z "$as_dir" && as_dir=.
16169 for ac_prog in flex; do
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16172 as_fn_executable_p "$ac_path_FLEX" || continue
16173 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16174 if ${version:+false} :; then :
16175
16176 else
16177 as_arg_v1=$version
16178 as_arg_v2=2.5.33
16179 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16180 case $? in #(
16181 1) :
16182 ;; #(
16183 0) :
16184 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16185 2) :
16186 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16187 *) :
16188 ;;
16189 esac
16190 fi
16191
16192 $ac_path_FLEX_found && break 3
16193 done
16194 done
16195 done
16196 IFS=$as_save_IFS
16197 if test -z "$ac_cv_path_FLEX"; then
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16200 fi
16201 else
16202 ac_cv_path_FLEX=$FLEX
16203 fi
16204
16205
16206 if true; then :
16207
16208 FLEX=$ac_cv_path_FLEX
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16211 $as_echo "$FLEX" >&6; }
16212
16213 else
16214 if true; then :
16215
16216 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16217
16218 else
16219
16220 FLEX=:
16221
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223 $as_echo "no" >&6; }
16224
16225 fi
16226 fi
16227
16228
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16232 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16233 if test -z "$GPERF"; then
16234 ac_path_GPERF_found=false
16235 # Loop through the user's path and test for each of PROGNAME-LIST
16236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16237 for as_dir in $PATH
16238 do
16239 IFS=$as_save_IFS
16240 test -z "$as_dir" && as_dir=.
16241 for ac_prog in gperf; do
16242 for ac_exec_ext in '' $ac_executable_extensions; do
16243 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16244 as_fn_executable_p "$ac_path_GPERF" || continue
16245 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16246 if ${version:+false} :; then :
16247
16248 else
16249 as_arg_v1=$version
16250 as_arg_v2=3.0.3
16251 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16252 case $? in #(
16253 1) :
16254 ;; #(
16255 0) :
16256 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16257 2) :
16258 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16259 *) :
16260 ;;
16261 esac
16262 fi
16263
16264 $ac_path_GPERF_found && break 3
16265 done
16266 done
16267 done
16268 IFS=$as_save_IFS
16269 if test -z "$ac_cv_path_GPERF"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271 $as_echo "no" >&6; }
16272 fi
16273 else
16274 ac_cv_path_GPERF=$GPERF
16275 fi
16276
16277
16278 if true; then :
16279
16280 GPERF=$ac_cv_path_GPERF
16281
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16283 $as_echo "$GPERF" >&6; }
16284
16285 else
16286 if true; then :
16287
16288 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16289
16290 else
16291
16292 GPERF=:
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295 $as_echo "no" >&6; }
16296
16297 fi
16298 fi
16299
16300
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16304 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16305 if test -z "$GNUTAR"; then
16306 ac_path_GNUTAR_found=false
16307 # Loop through the user's path and test for each of PROGNAME-LIST
16308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16309 for as_dir in $PATH
16310 do
16311 IFS=$as_save_IFS
16312 test -z "$as_dir" && as_dir=.
16313 for ac_prog in tar gtar gnutar; do
16314 for ac_exec_ext in '' $ac_executable_extensions; do
16315 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16316 as_fn_executable_p "$ac_path_GNUTAR" || continue
16317 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16318 if ${version:+false} :; then :
16319
16320 else
16321 as_arg_v1=$version
16322 as_arg_v2=1.19
16323 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16324 case $? in #(
16325 1) :
16326 ;; #(
16327 0) :
16328 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16329 2) :
16330 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16331 *) :
16332 ;;
16333 esac
16334 fi
16335
16336 $ac_path_GNUTAR_found && break 3
16337 done
16338 done
16339 done
16340 IFS=$as_save_IFS
16341 if test -z "$ac_cv_path_GNUTAR"; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16344 fi
16345 else
16346 ac_cv_path_GNUTAR=$GNUTAR
16347 fi
16348
16349
16350 if true; then :
16351
16352 GNUTAR=$ac_cv_path_GNUTAR
16353
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16355 $as_echo "$GNUTAR" >&6; }
16356
16357 else
16358 if true; then :
16359
16360 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16361
16362 else
16363
16364 GNUTAR=:
16365
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367 $as_echo "no" >&6; }
16368
16369 fi
16370 fi
16371
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16374 $as_echo_n "checking bison for %code{}... " >&6; }
16375 echo '%code{}%%_:' >conftest.y
16376 if $BISON conftest.y -o/dev/null 2>/dev/null; then
16377
16378 for element in Bison24; do
16379 haveit=
16380 for x in $CY_FILTERS; do
16381
16382 acl_save_prefix="$prefix"
16383 prefix="$acl_final_prefix"
16384 acl_save_exec_prefix="$exec_prefix"
16385 exec_prefix="$acl_final_exec_prefix"
16386 eval x=\"$x\"
16387 exec_prefix="$acl_save_exec_prefix"
16388 prefix="$acl_save_prefix"
16389
16390 if test "X$x" = "X$element"; then
16391 haveit=yes
16392 break
16393 fi
16394 done
16395 if test -z "$haveit"; then
16396 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16397 fi
16398 done
16399
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16401 $as_echo "yes" >&6; }
16402 else
16403
16404 for element in Bison23; do
16405 haveit=
16406 for x in $CY_FILTERS; do
16407
16408 acl_save_prefix="$prefix"
16409 prefix="$acl_final_prefix"
16410 acl_save_exec_prefix="$exec_prefix"
16411 exec_prefix="$acl_final_exec_prefix"
16412 eval x=\"$x\"
16413 exec_prefix="$acl_save_exec_prefix"
16414 prefix="$acl_save_prefix"
16415
16416 if test "X$x" = "X$element"; then
16417 haveit=yes
16418 break
16419 fi
16420 done
16421 if test -z "$haveit"; then
16422 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16423 fi
16424 done
16425
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16428 fi
16429
16430 rm -f conftest.y
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443 if ${CFLAGS+:} false; then :
16444 case " $CFLAGS " in
16445 *" "*)
16446 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16447 (: CFLAGS already contains ) 2>&5
16448 ac_status=$?
16449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16450 test $ac_status = 0; }
16451 ;;
16452 *)
16453 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16454 (: CFLAGS="$CFLAGS ") 2>&5
16455 ac_status=$?
16456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16457 test $ac_status = 0; }
16458 CFLAGS="$CFLAGS "
16459 ;;
16460 esac
16461 else
16462 CFLAGS=""
16463 fi
16464
16465 ac_ext=c
16466 ac_cpp='$CPP $CPPFLAGS'
16467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16470
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16472 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16473 if ${ac_cv_cflags_warn_all+:} false; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 ac_cv_cflags_warn_all="no, unknown"
16477 ac_save_CFLAGS="$CFLAGS"
16478 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" #
16479 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16482
16483 int
16484 main ()
16485 {
16486
16487 ;
16488 return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_c_try_compile "$LINENO"; then :
16492 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16493 fi
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 done
16496 CFLAGS="$ac_save_CFLAGS"
16497
16498 fi
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16500 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16501
16502 case ".$ac_cv_cflags_warn_all" in
16503 .ok|.ok,*) ;;
16504 .|.no|.no,*) ;;
16505 *) if ${CFLAGS+:} false; then :
16506 case " $CFLAGS " in
16507 *" $ac_cv_cflags_warn_all "*)
16508 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16509 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16510 ac_status=$?
16511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16512 test $ac_status = 0; }
16513 ;;
16514 *)
16515 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16516 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16517 ac_status=$?
16518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16519 test $ac_status = 0; }
16520 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16521 ;;
16522 esac
16523 else
16524 CFLAGS="$ac_cv_cflags_warn_all"
16525 fi
16526 ;;
16527 esac
16528
16529 ac_ext=cpp
16530 ac_cpp='$CXXCPP $CPPFLAGS'
16531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16534
16535
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
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16543 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16544 if ${ac_cv_cxxflags_warn_all+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 ac_cv_cxxflags_warn_all="no, unknown"
16548 ac_save_CXXFLAGS="$CXXFLAGS"
16549 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" #
16550 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16553
16554 int
16555 main ()
16556 {
16557
16558 ;
16559 return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_cxx_try_compile "$LINENO"; then :
16563 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16564 fi
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 done
16567 CXXFLAGS="$ac_save_CXXFLAGS"
16568
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16571 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16572
16573 case ".$ac_cv_cxxflags_warn_all" in
16574 .ok|.ok,*) ;;
16575 .|.no|.no,*) ;;
16576 *) if ${CXXFLAGS+:} false; then :
16577 case " $CXXFLAGS " in
16578 *" $ac_cv_cxxflags_warn_all "*)
16579 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16580 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16581 ac_status=$?
16582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16583 test $ac_status = 0; }
16584 ;;
16585 *)
16586 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16587 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16588 ac_status=$?
16589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16590 test $ac_status = 0; }
16591 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16592 ;;
16593 esac
16594 else
16595 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16596 fi
16597 ;;
16598 esac
16599
16600 ac_ext=cpp
16601 ac_cpp='$CXXCPP $CPPFLAGS'
16602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16605
16606
16607
16608
16609
16610
16611 ac_ext=c
16612 ac_cpp='$CPP $CPPFLAGS'
16613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16616
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
16618 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
16619
16620 cy_save=$CFLAGS
16621
16622 for element in -Wno-deprecated-declarations; do
16623 haveit=
16624 for x in $CFLAGS; do
16625
16626 acl_save_prefix="$prefix"
16627 prefix="$acl_final_prefix"
16628 acl_save_exec_prefix="$exec_prefix"
16629 exec_prefix="$acl_final_exec_prefix"
16630 eval x=\"$x\"
16631 exec_prefix="$acl_save_exec_prefix"
16632 prefix="$acl_save_prefix"
16633
16634 if test "X$x" = "X$element"; then
16635 haveit=yes
16636 break
16637 fi
16638 done
16639 if test -z "$haveit"; then
16640 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16641 fi
16642 done
16643
16644
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647
16648 _ACEOF
16649 if ac_fn_c_try_compile "$LINENO"; then :
16650 cy_good=1
16651 else
16652 cy_good=0
16653 fi
16654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16655
16656 CFLAGS=$cy_save
16657 if test "x$cy_good" = x1; then :
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16659 $as_echo "yes" >&6; }
16660
16661 for element in -Wno-deprecated-declarations; do
16662 haveit=
16663 for x in $CFLAGS; do
16664
16665 acl_save_prefix="$prefix"
16666 prefix="$acl_final_prefix"
16667 acl_save_exec_prefix="$exec_prefix"
16668 exec_prefix="$acl_final_exec_prefix"
16669 eval x=\"$x\"
16670 exec_prefix="$acl_save_exec_prefix"
16671 prefix="$acl_save_prefix"
16672
16673 if test "X$x" = "X$element"; then
16674 haveit=yes
16675 break
16676 fi
16677 done
16678 if test -z "$haveit"; then
16679 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16680 fi
16681 done
16682
16683
16684 else
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16687 fi
16688
16689 ac_ext=cpp
16690 ac_cpp='$CXXCPP $CPPFLAGS'
16691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16694
16695
16696
16697 ac_ext=cpp
16698 ac_cpp='$CXXCPP $CPPFLAGS'
16699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16702
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
16704 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
16705
16706 cy_save=$CXXFLAGS
16707
16708 for element in -Wno-deprecated-declarations; do
16709 haveit=
16710 for x in $CXXFLAGS; do
16711
16712 acl_save_prefix="$prefix"
16713 prefix="$acl_final_prefix"
16714 acl_save_exec_prefix="$exec_prefix"
16715 exec_prefix="$acl_final_exec_prefix"
16716 eval x=\"$x\"
16717 exec_prefix="$acl_save_exec_prefix"
16718 prefix="$acl_save_prefix"
16719
16720 if test "X$x" = "X$element"; then
16721 haveit=yes
16722 break
16723 fi
16724 done
16725 if test -z "$haveit"; then
16726 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16727 fi
16728 done
16729
16730
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733
16734 _ACEOF
16735 if ac_fn_cxx_try_compile "$LINENO"; then :
16736 cy_good=1
16737 else
16738 cy_good=0
16739 fi
16740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741
16742 CXXFLAGS=$cy_save
16743 if test "x$cy_good" = x1; then :
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16745 $as_echo "yes" >&6; }
16746
16747 for element in -Wno-deprecated-declarations; do
16748 haveit=
16749 for x in $CXXFLAGS; do
16750
16751 acl_save_prefix="$prefix"
16752 prefix="$acl_final_prefix"
16753 acl_save_exec_prefix="$exec_prefix"
16754 exec_prefix="$acl_final_exec_prefix"
16755 eval x=\"$x\"
16756 exec_prefix="$acl_save_exec_prefix"
16757 prefix="$acl_save_prefix"
16758
16759 if test "X$x" = "X$element"; then
16760 haveit=yes
16761 break
16762 fi
16763 done
16764 if test -z "$haveit"; then
16765 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16766 fi
16767 done
16768
16769
16770 else
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772 $as_echo "no" >&6; }
16773 fi
16774
16775 ac_ext=cpp
16776 ac_cpp='$CXXCPP $CPPFLAGS'
16777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16780
16781
16782
16783 ac_ext=mm
16784 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16785 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16788
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
16790 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
16791
16792 cy_save=$OBJCXXFLAGS
16793
16794 for element in -Wno-deprecated-declarations; do
16795 haveit=
16796 for x in $OBJCXXFLAGS; do
16797
16798 acl_save_prefix="$prefix"
16799 prefix="$acl_final_prefix"
16800 acl_save_exec_prefix="$exec_prefix"
16801 exec_prefix="$acl_final_exec_prefix"
16802 eval x=\"$x\"
16803 exec_prefix="$acl_save_exec_prefix"
16804 prefix="$acl_save_prefix"
16805
16806 if test "X$x" = "X$element"; then
16807 haveit=yes
16808 break
16809 fi
16810 done
16811 if test -z "$haveit"; then
16812 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16813 fi
16814 done
16815
16816
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819
16820 _ACEOF
16821 if ac_fn_objcxx_try_compile "$LINENO"; then :
16822 cy_good=1
16823 else
16824 cy_good=0
16825 fi
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16827
16828 OBJCXXFLAGS=$cy_save
16829 if test "x$cy_good" = x1; then :
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16832
16833 for element in -Wno-deprecated-declarations; do
16834 haveit=
16835 for x in $OBJCXXFLAGS; do
16836
16837 acl_save_prefix="$prefix"
16838 prefix="$acl_final_prefix"
16839 acl_save_exec_prefix="$exec_prefix"
16840 exec_prefix="$acl_final_exec_prefix"
16841 eval x=\"$x\"
16842 exec_prefix="$acl_save_exec_prefix"
16843 prefix="$acl_save_prefix"
16844
16845 if test "X$x" = "X$element"; then
16846 haveit=yes
16847 break
16848 fi
16849 done
16850 if test -z "$haveit"; then
16851 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16852 fi
16853 done
16854
16855
16856 else
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16858 $as_echo "no" >&6; }
16859 fi
16860
16861 ac_ext=cpp
16862 ac_cpp='$CXXCPP $CPPFLAGS'
16863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16866
16867
16868
16869
16870
16871
16872 ac_ext=c
16873 ac_cpp='$CPP $CPPFLAGS'
16874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16877
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
16879 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
16880
16881 cy_save=$CFLAGS
16882
16883 for element in -Wno-dangling-else; do
16884 haveit=
16885 for x in $CFLAGS; do
16886
16887 acl_save_prefix="$prefix"
16888 prefix="$acl_final_prefix"
16889 acl_save_exec_prefix="$exec_prefix"
16890 exec_prefix="$acl_final_exec_prefix"
16891 eval x=\"$x\"
16892 exec_prefix="$acl_save_exec_prefix"
16893 prefix="$acl_save_prefix"
16894
16895 if test "X$x" = "X$element"; then
16896 haveit=yes
16897 break
16898 fi
16899 done
16900 if test -z "$haveit"; then
16901 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16902 fi
16903 done
16904
16905
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908
16909 _ACEOF
16910 if ac_fn_c_try_compile "$LINENO"; then :
16911 cy_good=1
16912 else
16913 cy_good=0
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916
16917 CFLAGS=$cy_save
16918 if test "x$cy_good" = x1; then :
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16920 $as_echo "yes" >&6; }
16921
16922 for element in -Wno-dangling-else; do
16923 haveit=
16924 for x in $CFLAGS; do
16925
16926 acl_save_prefix="$prefix"
16927 prefix="$acl_final_prefix"
16928 acl_save_exec_prefix="$exec_prefix"
16929 exec_prefix="$acl_final_exec_prefix"
16930 eval x=\"$x\"
16931 exec_prefix="$acl_save_exec_prefix"
16932 prefix="$acl_save_prefix"
16933
16934 if test "X$x" = "X$element"; then
16935 haveit=yes
16936 break
16937 fi
16938 done
16939 if test -z "$haveit"; then
16940 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16941 fi
16942 done
16943
16944
16945 else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949
16950 ac_ext=cpp
16951 ac_cpp='$CXXCPP $CPPFLAGS'
16952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16955
16956
16957
16958 ac_ext=cpp
16959 ac_cpp='$CXXCPP $CPPFLAGS'
16960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16963
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
16965 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
16966
16967 cy_save=$CXXFLAGS
16968
16969 for element in -Wno-dangling-else; do
16970 haveit=
16971 for x in $CXXFLAGS; do
16972
16973 acl_save_prefix="$prefix"
16974 prefix="$acl_final_prefix"
16975 acl_save_exec_prefix="$exec_prefix"
16976 exec_prefix="$acl_final_exec_prefix"
16977 eval x=\"$x\"
16978 exec_prefix="$acl_save_exec_prefix"
16979 prefix="$acl_save_prefix"
16980
16981 if test "X$x" = "X$element"; then
16982 haveit=yes
16983 break
16984 fi
16985 done
16986 if test -z "$haveit"; then
16987 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16988 fi
16989 done
16990
16991
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16994
16995 _ACEOF
16996 if ac_fn_cxx_try_compile "$LINENO"; then :
16997 cy_good=1
16998 else
16999 cy_good=0
17000 fi
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002
17003 CXXFLAGS=$cy_save
17004 if test "x$cy_good" = x1; then :
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17006 $as_echo "yes" >&6; }
17007
17008 for element in -Wno-dangling-else; do
17009 haveit=
17010 for x in $CXXFLAGS; do
17011
17012 acl_save_prefix="$prefix"
17013 prefix="$acl_final_prefix"
17014 acl_save_exec_prefix="$exec_prefix"
17015 exec_prefix="$acl_final_exec_prefix"
17016 eval x=\"$x\"
17017 exec_prefix="$acl_save_exec_prefix"
17018 prefix="$acl_save_prefix"
17019
17020 if test "X$x" = "X$element"; then
17021 haveit=yes
17022 break
17023 fi
17024 done
17025 if test -z "$haveit"; then
17026 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17027 fi
17028 done
17029
17030
17031 else
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17034 fi
17035
17036 ac_ext=cpp
17037 ac_cpp='$CXXCPP $CPPFLAGS'
17038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17041
17042
17043
17044 ac_ext=mm
17045 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17046 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17047 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17048 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17051 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17052
17053 cy_save=$OBJCXXFLAGS
17054
17055 for element in -Wno-dangling-else; do
17056 haveit=
17057 for x in $OBJCXXFLAGS; do
17058
17059 acl_save_prefix="$prefix"
17060 prefix="$acl_final_prefix"
17061 acl_save_exec_prefix="$exec_prefix"
17062 exec_prefix="$acl_final_exec_prefix"
17063 eval x=\"$x\"
17064 exec_prefix="$acl_save_exec_prefix"
17065 prefix="$acl_save_prefix"
17066
17067 if test "X$x" = "X$element"; then
17068 haveit=yes
17069 break
17070 fi
17071 done
17072 if test -z "$haveit"; then
17073 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17074 fi
17075 done
17076
17077
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17080
17081 _ACEOF
17082 if ac_fn_objcxx_try_compile "$LINENO"; then :
17083 cy_good=1
17084 else
17085 cy_good=0
17086 fi
17087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17088
17089 OBJCXXFLAGS=$cy_save
17090 if test "x$cy_good" = x1; then :
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17092 $as_echo "yes" >&6; }
17093
17094 for element in -Wno-dangling-else; do
17095 haveit=
17096 for x in $OBJCXXFLAGS; do
17097
17098 acl_save_prefix="$prefix"
17099 prefix="$acl_final_prefix"
17100 acl_save_exec_prefix="$exec_prefix"
17101 exec_prefix="$acl_final_exec_prefix"
17102 eval x=\"$x\"
17103 exec_prefix="$acl_save_exec_prefix"
17104 prefix="$acl_save_prefix"
17105
17106 if test "X$x" = "X$element"; then
17107 haveit=yes
17108 break
17109 fi
17110 done
17111 if test -z "$haveit"; then
17112 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17113 fi
17114 done
17115
17116
17117 else
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119 $as_echo "no" >&6; }
17120 fi
17121
17122 ac_ext=cpp
17123 ac_cpp='$CXXCPP $CPPFLAGS'
17124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17127
17128
17129
17130
17131
17132 ac_ext=c
17133 ac_cpp='$CPP $CPPFLAGS'
17134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17137
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17139 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17140
17141 cy_save=$CFLAGS
17142
17143 for element in -Wno-overloaded-virtual; do
17144 haveit=
17145 for x in $CFLAGS; do
17146
17147 acl_save_prefix="$prefix"
17148 prefix="$acl_final_prefix"
17149 acl_save_exec_prefix="$exec_prefix"
17150 exec_prefix="$acl_final_exec_prefix"
17151 eval x=\"$x\"
17152 exec_prefix="$acl_save_exec_prefix"
17153 prefix="$acl_save_prefix"
17154
17155 if test "X$x" = "X$element"; then
17156 haveit=yes
17157 break
17158 fi
17159 done
17160 if test -z "$haveit"; then
17161 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17162 fi
17163 done
17164
17165
17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17168
17169 _ACEOF
17170 if ac_fn_c_try_compile "$LINENO"; then :
17171 cy_good=1
17172 else
17173 cy_good=0
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176
17177 CFLAGS=$cy_save
17178 if test "x$cy_good" = x1; then :
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17180 $as_echo "yes" >&6; }
17181
17182 for element in -Wno-overloaded-virtual; do
17183 haveit=
17184 for x in $CFLAGS; do
17185
17186 acl_save_prefix="$prefix"
17187 prefix="$acl_final_prefix"
17188 acl_save_exec_prefix="$exec_prefix"
17189 exec_prefix="$acl_final_exec_prefix"
17190 eval x=\"$x\"
17191 exec_prefix="$acl_save_exec_prefix"
17192 prefix="$acl_save_prefix"
17193
17194 if test "X$x" = "X$element"; then
17195 haveit=yes
17196 break
17197 fi
17198 done
17199 if test -z "$haveit"; then
17200 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17201 fi
17202 done
17203
17204
17205 else
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207 $as_echo "no" >&6; }
17208 fi
17209
17210 ac_ext=cpp
17211 ac_cpp='$CXXCPP $CPPFLAGS'
17212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17215
17216
17217
17218 ac_ext=cpp
17219 ac_cpp='$CXXCPP $CPPFLAGS'
17220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17223
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17225 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17226
17227 cy_save=$CXXFLAGS
17228
17229 for element in -Wno-overloaded-virtual; do
17230 haveit=
17231 for x in $CXXFLAGS; do
17232
17233 acl_save_prefix="$prefix"
17234 prefix="$acl_final_prefix"
17235 acl_save_exec_prefix="$exec_prefix"
17236 exec_prefix="$acl_final_exec_prefix"
17237 eval x=\"$x\"
17238 exec_prefix="$acl_save_exec_prefix"
17239 prefix="$acl_save_prefix"
17240
17241 if test "X$x" = "X$element"; then
17242 haveit=yes
17243 break
17244 fi
17245 done
17246 if test -z "$haveit"; then
17247 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17248 fi
17249 done
17250
17251
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254
17255 _ACEOF
17256 if ac_fn_cxx_try_compile "$LINENO"; then :
17257 cy_good=1
17258 else
17259 cy_good=0
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262
17263 CXXFLAGS=$cy_save
17264 if test "x$cy_good" = x1; then :
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17266 $as_echo "yes" >&6; }
17267
17268 for element in -Wno-overloaded-virtual; do
17269 haveit=
17270 for x in $CXXFLAGS; do
17271
17272 acl_save_prefix="$prefix"
17273 prefix="$acl_final_prefix"
17274 acl_save_exec_prefix="$exec_prefix"
17275 exec_prefix="$acl_final_exec_prefix"
17276 eval x=\"$x\"
17277 exec_prefix="$acl_save_exec_prefix"
17278 prefix="$acl_save_prefix"
17279
17280 if test "X$x" = "X$element"; then
17281 haveit=yes
17282 break
17283 fi
17284 done
17285 if test -z "$haveit"; then
17286 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17287 fi
17288 done
17289
17290
17291 else
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17293 $as_echo "no" >&6; }
17294 fi
17295
17296 ac_ext=cpp
17297 ac_cpp='$CXXCPP $CPPFLAGS'
17298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17301
17302
17303
17304 ac_ext=mm
17305 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17306 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17307 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17308 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17311 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17312
17313 cy_save=$OBJCXXFLAGS
17314
17315 for element in -Wno-overloaded-virtual; do
17316 haveit=
17317 for x in $OBJCXXFLAGS; do
17318
17319 acl_save_prefix="$prefix"
17320 prefix="$acl_final_prefix"
17321 acl_save_exec_prefix="$exec_prefix"
17322 exec_prefix="$acl_final_exec_prefix"
17323 eval x=\"$x\"
17324 exec_prefix="$acl_save_exec_prefix"
17325 prefix="$acl_save_prefix"
17326
17327 if test "X$x" = "X$element"; then
17328 haveit=yes
17329 break
17330 fi
17331 done
17332 if test -z "$haveit"; then
17333 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17334 fi
17335 done
17336
17337
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17340
17341 _ACEOF
17342 if ac_fn_objcxx_try_compile "$LINENO"; then :
17343 cy_good=1
17344 else
17345 cy_good=0
17346 fi
17347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348
17349 OBJCXXFLAGS=$cy_save
17350 if test "x$cy_good" = x1; then :
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17352 $as_echo "yes" >&6; }
17353
17354 for element in -Wno-overloaded-virtual; do
17355 haveit=
17356 for x in $OBJCXXFLAGS; do
17357
17358 acl_save_prefix="$prefix"
17359 prefix="$acl_final_prefix"
17360 acl_save_exec_prefix="$exec_prefix"
17361 exec_prefix="$acl_final_exec_prefix"
17362 eval x=\"$x\"
17363 exec_prefix="$acl_save_exec_prefix"
17364 prefix="$acl_save_prefix"
17365
17366 if test "X$x" = "X$element"; then
17367 haveit=yes
17368 break
17369 fi
17370 done
17371 if test -z "$haveit"; then
17372 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17373 fi
17374 done
17375
17376
17377 else
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 $as_echo "no" >&6; }
17380 fi
17381
17382 ac_ext=cpp
17383 ac_cpp='$CXXCPP $CPPFLAGS'
17384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17387
17388
17389
17390
17391
17392 ac_ext=c
17393 ac_cpp='$CPP $CPPFLAGS'
17394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17397
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17399 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17400
17401 cy_save=$CFLAGS
17402
17403 for element in -Wno-parentheses; do
17404 haveit=
17405 for x in $CFLAGS; do
17406
17407 acl_save_prefix="$prefix"
17408 prefix="$acl_final_prefix"
17409 acl_save_exec_prefix="$exec_prefix"
17410 exec_prefix="$acl_final_exec_prefix"
17411 eval x=\"$x\"
17412 exec_prefix="$acl_save_exec_prefix"
17413 prefix="$acl_save_prefix"
17414
17415 if test "X$x" = "X$element"; then
17416 haveit=yes
17417 break
17418 fi
17419 done
17420 if test -z "$haveit"; then
17421 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17422 fi
17423 done
17424
17425
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 cy_good=1
17432 else
17433 cy_good=0
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436
17437 CFLAGS=$cy_save
17438 if test "x$cy_good" = x1; then :
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17440 $as_echo "yes" >&6; }
17441
17442 for element in -Wno-parentheses; do
17443 haveit=
17444 for x in $CFLAGS; do
17445
17446 acl_save_prefix="$prefix"
17447 prefix="$acl_final_prefix"
17448 acl_save_exec_prefix="$exec_prefix"
17449 exec_prefix="$acl_final_exec_prefix"
17450 eval x=\"$x\"
17451 exec_prefix="$acl_save_exec_prefix"
17452 prefix="$acl_save_prefix"
17453
17454 if test "X$x" = "X$element"; then
17455 haveit=yes
17456 break
17457 fi
17458 done
17459 if test -z "$haveit"; then
17460 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17461 fi
17462 done
17463
17464
17465 else
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17467 $as_echo "no" >&6; }
17468 fi
17469
17470 ac_ext=cpp
17471 ac_cpp='$CXXCPP $CPPFLAGS'
17472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17475
17476
17477
17478 ac_ext=cpp
17479 ac_cpp='$CXXCPP $CPPFLAGS'
17480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17483
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17485 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17486
17487 cy_save=$CXXFLAGS
17488
17489 for element in -Wno-parentheses; do
17490 haveit=
17491 for x in $CXXFLAGS; do
17492
17493 acl_save_prefix="$prefix"
17494 prefix="$acl_final_prefix"
17495 acl_save_exec_prefix="$exec_prefix"
17496 exec_prefix="$acl_final_exec_prefix"
17497 eval x=\"$x\"
17498 exec_prefix="$acl_save_exec_prefix"
17499 prefix="$acl_save_prefix"
17500
17501 if test "X$x" = "X$element"; then
17502 haveit=yes
17503 break
17504 fi
17505 done
17506 if test -z "$haveit"; then
17507 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17508 fi
17509 done
17510
17511
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514
17515 _ACEOF
17516 if ac_fn_cxx_try_compile "$LINENO"; then :
17517 cy_good=1
17518 else
17519 cy_good=0
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522
17523 CXXFLAGS=$cy_save
17524 if test "x$cy_good" = x1; then :
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526 $as_echo "yes" >&6; }
17527
17528 for element in -Wno-parentheses; do
17529 haveit=
17530 for x in $CXXFLAGS; do
17531
17532 acl_save_prefix="$prefix"
17533 prefix="$acl_final_prefix"
17534 acl_save_exec_prefix="$exec_prefix"
17535 exec_prefix="$acl_final_exec_prefix"
17536 eval x=\"$x\"
17537 exec_prefix="$acl_save_exec_prefix"
17538 prefix="$acl_save_prefix"
17539
17540 if test "X$x" = "X$element"; then
17541 haveit=yes
17542 break
17543 fi
17544 done
17545 if test -z "$haveit"; then
17546 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17547 fi
17548 done
17549
17550
17551 else
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17554 fi
17555
17556 ac_ext=cpp
17557 ac_cpp='$CXXCPP $CPPFLAGS'
17558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17561
17562
17563
17564 ac_ext=mm
17565 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17566 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17567 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17568 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17569
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17571 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
17572
17573 cy_save=$OBJCXXFLAGS
17574
17575 for element in -Wno-parentheses; do
17576 haveit=
17577 for x in $OBJCXXFLAGS; do
17578
17579 acl_save_prefix="$prefix"
17580 prefix="$acl_final_prefix"
17581 acl_save_exec_prefix="$exec_prefix"
17582 exec_prefix="$acl_final_exec_prefix"
17583 eval x=\"$x\"
17584 exec_prefix="$acl_save_exec_prefix"
17585 prefix="$acl_save_prefix"
17586
17587 if test "X$x" = "X$element"; then
17588 haveit=yes
17589 break
17590 fi
17591 done
17592 if test -z "$haveit"; then
17593 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17594 fi
17595 done
17596
17597
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600
17601 _ACEOF
17602 if ac_fn_objcxx_try_compile "$LINENO"; then :
17603 cy_good=1
17604 else
17605 cy_good=0
17606 fi
17607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17608
17609 OBJCXXFLAGS=$cy_save
17610 if test "x$cy_good" = x1; then :
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17612 $as_echo "yes" >&6; }
17613
17614 for element in -Wno-parentheses; do
17615 haveit=
17616 for x in $OBJCXXFLAGS; do
17617
17618 acl_save_prefix="$prefix"
17619 prefix="$acl_final_prefix"
17620 acl_save_exec_prefix="$exec_prefix"
17621 exec_prefix="$acl_final_exec_prefix"
17622 eval x=\"$x\"
17623 exec_prefix="$acl_save_exec_prefix"
17624 prefix="$acl_save_prefix"
17625
17626 if test "X$x" = "X$element"; then
17627 haveit=yes
17628 break
17629 fi
17630 done
17631 if test -z "$haveit"; then
17632 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17633 fi
17634 done
17635
17636
17637 else
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17639 $as_echo "no" >&6; }
17640 fi
17641
17642 ac_ext=cpp
17643 ac_cpp='$CXXCPP $CPPFLAGS'
17644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17647
17648
17649
17650
17651
17652 ac_ext=c
17653 ac_cpp='$CPP $CPPFLAGS'
17654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17657
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
17659 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
17660
17661 cy_save=$CFLAGS
17662
17663 for element in -Wno-unneeded-internal-declaration; do
17664 haveit=
17665 for x in $CFLAGS; do
17666
17667 acl_save_prefix="$prefix"
17668 prefix="$acl_final_prefix"
17669 acl_save_exec_prefix="$exec_prefix"
17670 exec_prefix="$acl_final_exec_prefix"
17671 eval x=\"$x\"
17672 exec_prefix="$acl_save_exec_prefix"
17673 prefix="$acl_save_prefix"
17674
17675 if test "X$x" = "X$element"; then
17676 haveit=yes
17677 break
17678 fi
17679 done
17680 if test -z "$haveit"; then
17681 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17682 fi
17683 done
17684
17685
17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h. */
17688
17689 _ACEOF
17690 if ac_fn_c_try_compile "$LINENO"; then :
17691 cy_good=1
17692 else
17693 cy_good=0
17694 fi
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696
17697 CFLAGS=$cy_save
17698 if test "x$cy_good" = x1; then :
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17700 $as_echo "yes" >&6; }
17701
17702 for element in -Wno-unneeded-internal-declaration; do
17703 haveit=
17704 for x in $CFLAGS; do
17705
17706 acl_save_prefix="$prefix"
17707 prefix="$acl_final_prefix"
17708 acl_save_exec_prefix="$exec_prefix"
17709 exec_prefix="$acl_final_exec_prefix"
17710 eval x=\"$x\"
17711 exec_prefix="$acl_save_exec_prefix"
17712 prefix="$acl_save_prefix"
17713
17714 if test "X$x" = "X$element"; then
17715 haveit=yes
17716 break
17717 fi
17718 done
17719 if test -z "$haveit"; then
17720 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17721 fi
17722 done
17723
17724
17725 else
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17727 $as_echo "no" >&6; }
17728 fi
17729
17730 ac_ext=cpp
17731 ac_cpp='$CXXCPP $CPPFLAGS'
17732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17735
17736
17737
17738 ac_ext=cpp
17739 ac_cpp='$CXXCPP $CPPFLAGS'
17740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17743
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
17745 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
17746
17747 cy_save=$CXXFLAGS
17748
17749 for element in -Wno-unneeded-internal-declaration; do
17750 haveit=
17751 for x in $CXXFLAGS; do
17752
17753 acl_save_prefix="$prefix"
17754 prefix="$acl_final_prefix"
17755 acl_save_exec_prefix="$exec_prefix"
17756 exec_prefix="$acl_final_exec_prefix"
17757 eval x=\"$x\"
17758 exec_prefix="$acl_save_exec_prefix"
17759 prefix="$acl_save_prefix"
17760
17761 if test "X$x" = "X$element"; then
17762 haveit=yes
17763 break
17764 fi
17765 done
17766 if test -z "$haveit"; then
17767 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17768 fi
17769 done
17770
17771
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774
17775 _ACEOF
17776 if ac_fn_cxx_try_compile "$LINENO"; then :
17777 cy_good=1
17778 else
17779 cy_good=0
17780 fi
17781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782
17783 CXXFLAGS=$cy_save
17784 if test "x$cy_good" = x1; then :
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17786 $as_echo "yes" >&6; }
17787
17788 for element in -Wno-unneeded-internal-declaration; do
17789 haveit=
17790 for x in $CXXFLAGS; do
17791
17792 acl_save_prefix="$prefix"
17793 prefix="$acl_final_prefix"
17794 acl_save_exec_prefix="$exec_prefix"
17795 exec_prefix="$acl_final_exec_prefix"
17796 eval x=\"$x\"
17797 exec_prefix="$acl_save_exec_prefix"
17798 prefix="$acl_save_prefix"
17799
17800 if test "X$x" = "X$element"; then
17801 haveit=yes
17802 break
17803 fi
17804 done
17805 if test -z "$haveit"; then
17806 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17807 fi
17808 done
17809
17810
17811 else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813 $as_echo "no" >&6; }
17814 fi
17815
17816 ac_ext=cpp
17817 ac_cpp='$CXXCPP $CPPFLAGS'
17818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17821
17822
17823
17824 ac_ext=mm
17825 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17826 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17827 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17828 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17829
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
17831 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
17832
17833 cy_save=$OBJCXXFLAGS
17834
17835 for element in -Wno-unneeded-internal-declaration; do
17836 haveit=
17837 for x in $OBJCXXFLAGS; do
17838
17839 acl_save_prefix="$prefix"
17840 prefix="$acl_final_prefix"
17841 acl_save_exec_prefix="$exec_prefix"
17842 exec_prefix="$acl_final_exec_prefix"
17843 eval x=\"$x\"
17844 exec_prefix="$acl_save_exec_prefix"
17845 prefix="$acl_save_prefix"
17846
17847 if test "X$x" = "X$element"; then
17848 haveit=yes
17849 break
17850 fi
17851 done
17852 if test -z "$haveit"; then
17853 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17854 fi
17855 done
17856
17857
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860
17861 _ACEOF
17862 if ac_fn_objcxx_try_compile "$LINENO"; then :
17863 cy_good=1
17864 else
17865 cy_good=0
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868
17869 OBJCXXFLAGS=$cy_save
17870 if test "x$cy_good" = x1; then :
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873
17874 for element in -Wno-unneeded-internal-declaration; do
17875 haveit=
17876 for x in $OBJCXXFLAGS; do
17877
17878 acl_save_prefix="$prefix"
17879 prefix="$acl_final_prefix"
17880 acl_save_exec_prefix="$exec_prefix"
17881 exec_prefix="$acl_final_exec_prefix"
17882 eval x=\"$x\"
17883 exec_prefix="$acl_save_exec_prefix"
17884 prefix="$acl_save_prefix"
17885
17886 if test "X$x" = "X$element"; then
17887 haveit=yes
17888 break
17889 fi
17890 done
17891 if test -z "$haveit"; then
17892 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17893 fi
17894 done
17895
17896
17897 else
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17899 $as_echo "no" >&6; }
17900 fi
17901
17902 ac_ext=cpp
17903 ac_cpp='$CXXCPP $CPPFLAGS'
17904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17907
17908
17909
17910
17911 for cy_arch in ppc ppc64 i386 x86_64 armv6; do
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
17913 $as_echo_n "checking for -arch $cy_arch... " >&6; }
17914
17915 cy_save=$CXXFLAGS
17916
17917 for element in "-arch $cy_arch"; do
17918 haveit=
17919 for x in $CXXFLAGS; do
17920
17921 acl_save_prefix="$prefix"
17922 prefix="$acl_final_prefix"
17923 acl_save_exec_prefix="$exec_prefix"
17924 exec_prefix="$acl_final_exec_prefix"
17925 eval x=\"$x\"
17926 exec_prefix="$acl_save_exec_prefix"
17927 prefix="$acl_save_prefix"
17928
17929 if test "X$x" = "X$element"; then
17930 haveit=yes
17931 break
17932 fi
17933 done
17934 if test -z "$haveit"; then
17935 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17936 fi
17937 done
17938
17939
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17942
17943 int
17944 main ()
17945 {
17946
17947 ;
17948 return 0;
17949 }
17950 _ACEOF
17951 if ac_fn_cxx_try_link "$LINENO"; then :
17952 cy_good=1
17953 else
17954 cy_good=0
17955 fi
17956 rm -f core conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958
17959 CXXFLAGS=$cy_save
17960 if test "x$cy_good" = x1; then :
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17962 $as_echo "yes" >&6; }
17963
17964 for element in "-arch $cy_arch"; do
17965 haveit=
17966 for x in $CY_ARCH; do
17967
17968 acl_save_prefix="$prefix"
17969 prefix="$acl_final_prefix"
17970 acl_save_exec_prefix="$exec_prefix"
17971 exec_prefix="$acl_final_exec_prefix"
17972 eval x=\"$x\"
17973 exec_prefix="$acl_save_exec_prefix"
17974 prefix="$acl_save_prefix"
17975
17976 if test "X$x" = "X$element"; then
17977 haveit=yes
17978 break
17979 fi
17980 done
17981 if test -z "$haveit"; then
17982 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
17983 fi
17984 done
17985
17986
17987 else
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17989 $as_echo "no" >&6; }
17990 fi
17991
17992 done
17993
17994
17995
17996
17997
17998
17999
18000
18001 # Check whether --enable-javascript was given.
18002 if test "${enable_javascript+set}" = set; then :
18003 enableval=$enable_javascript;
18004 case $enableval in #(
18005 yes) :
18006
18007
18008
18009
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18011 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18012 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015
18016 ac_check_framework_save_LIBS=$LIBS
18017 LIBS="-framework JavaScriptCore $LIBS"
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020
18021 #include <JavaScriptCore/JSBase.h>
18022
18023 int
18024 main ()
18025 {
18026
18027 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18028
18029 ;
18030 return 0;
18031 }
18032 _ACEOF
18033 if ac_fn_cxx_try_link "$LINENO"; then :
18034
18035 ac_cv_framework_JavaScriptCore=yes
18036
18037 else
18038 ac_cv_framework_JavaScriptCore=no
18039 fi
18040 rm -f core conftest.err conftest.$ac_objext \
18041 conftest$ac_exeext conftest.$ac_ext
18042 LIBS=$ac_check_framework_save_LIBS
18043
18044 fi
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18046 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18047 if test $ac_cv_framework_JavaScriptCore = yes; then :
18048
18049
18050 for element in "-framework JavaScriptCore"; do
18051 haveit=
18052 for x in $LIBS; do
18053
18054 acl_save_prefix="$prefix"
18055 prefix="$acl_final_prefix"
18056 acl_save_exec_prefix="$exec_prefix"
18057 exec_prefix="$acl_final_exec_prefix"
18058 eval x=\"$x\"
18059 exec_prefix="$acl_save_exec_prefix"
18060 prefix="$acl_save_prefix"
18061
18062 if test "X$x" = "X$element"; then
18063 haveit=yes
18064 break
18065 fi
18066 done
18067 if test -z "$haveit"; then
18068 LIBS="${LIBS}${LIBS:+ }$element"
18069 fi
18070 done
18071
18072
18073 CY_EXECUTE=1
18074
18075
18076
18077 else
18078
18079 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18080
18081 pkg_failed=no
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18083 $as_echo_n "checking for WEBKIT... " >&6; }
18084
18085 if test -n "$WEBKIT_CFLAGS"; then
18086 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18087 elif test -n "$PKG_CONFIG"; then
18088 if test -n "$PKG_CONFIG" && \
18089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18090 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18091 ac_status=$?
18092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18093 test $ac_status = 0; }; then
18094 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18095 else
18096 pkg_failed=yes
18097 fi
18098 else
18099 pkg_failed=untried
18100 fi
18101 if test -n "$WEBKIT_LIBS"; then
18102 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18103 elif test -n "$PKG_CONFIG"; then
18104 if test -n "$PKG_CONFIG" && \
18105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18106 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18107 ac_status=$?
18108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18109 test $ac_status = 0; }; then
18110 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18111 else
18112 pkg_failed=yes
18113 fi
18114 else
18115 pkg_failed=untried
18116 fi
18117
18118
18119
18120 if test $pkg_failed = yes; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18122 $as_echo "no" >&6; }
18123
18124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18125 _pkg_short_errors_supported=yes
18126 else
18127 _pkg_short_errors_supported=no
18128 fi
18129 if test $_pkg_short_errors_supported = yes; then
18130 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18131 else
18132 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18133 fi
18134 # Put the nasty error message in config.log where it belongs
18135 echo "$WEBKIT_PKG_ERRORS" >&5
18136
18137 :
18138 elif test $pkg_failed = untried; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140 $as_echo "no" >&6; }
18141 :
18142 else
18143 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18144 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18146 $as_echo "yes" >&6; }
18147
18148 CY_EXECUTE=1
18149
18150
18151
18152 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18153 haveit=
18154 for x in $CFLAGS; do
18155
18156 acl_save_prefix="$prefix"
18157 prefix="$acl_final_prefix"
18158 acl_save_exec_prefix="$exec_prefix"
18159 exec_prefix="$acl_final_exec_prefix"
18160 eval x=\"$x\"
18161 exec_prefix="$acl_save_exec_prefix"
18162 prefix="$acl_save_prefix"
18163
18164 if test "X$x" = "X$element"; then
18165 haveit=yes
18166 break
18167 fi
18168 done
18169 if test -z "$haveit"; then
18170 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18171 fi
18172 done
18173
18174
18175 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18176 haveit=
18177 for x in $CXXFLAGS; do
18178
18179 acl_save_prefix="$prefix"
18180 prefix="$acl_final_prefix"
18181 acl_save_exec_prefix="$exec_prefix"
18182 exec_prefix="$acl_final_exec_prefix"
18183 eval x=\"$x\"
18184 exec_prefix="$acl_save_exec_prefix"
18185 prefix="$acl_save_prefix"
18186
18187 if test "X$x" = "X$element"; then
18188 haveit=yes
18189 break
18190 fi
18191 done
18192 if test -z "$haveit"; then
18193 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18194 fi
18195 done
18196
18197
18198 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18199 haveit=
18200 for x in $OBJCXXFLAGS; do
18201
18202 acl_save_prefix="$prefix"
18203 prefix="$acl_final_prefix"
18204 acl_save_exec_prefix="$exec_prefix"
18205 exec_prefix="$acl_final_exec_prefix"
18206 eval x=\"$x\"
18207 exec_prefix="$acl_save_exec_prefix"
18208 prefix="$acl_save_prefix"
18209
18210 if test "X$x" = "X$element"; then
18211 haveit=yes
18212 break
18213 fi
18214 done
18215 if test -z "$haveit"; then
18216 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18217 fi
18218 done
18219
18220
18221
18222 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18223 haveit=
18224 for x in $LIBS; do
18225
18226 acl_save_prefix="$prefix"
18227 prefix="$acl_final_prefix"
18228 acl_save_exec_prefix="$exec_prefix"
18229 exec_prefix="$acl_final_exec_prefix"
18230 eval x=\"$x\"
18231 exec_prefix="$acl_save_exec_prefix"
18232 prefix="$acl_save_prefix"
18233
18234 if test "X$x" = "X$element"; then
18235 haveit=yes
18236 break
18237 fi
18238 done
18239 if test -z "$haveit"; then
18240 LIBS="${LIBS}${LIBS:+ }$element"
18241 fi
18242 done
18243
18244
18245 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18246 done
18247
18248 fi
18249 ;; #(
18250 no) :
18251
18252 CY_EXECUTE=0
18253 ;; #(
18254 JavaScriptCore) :
18255
18256
18257
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18259 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18260 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18261 $as_echo_n "(cached) " >&6
18262 else
18263
18264 ac_check_framework_save_LIBS=$LIBS
18265 LIBS="-framework JavaScriptCore $LIBS"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18268
18269 #include <JavaScriptCore/JSBase.h>
18270
18271 int
18272 main ()
18273 {
18274
18275 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18276
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 if ac_fn_cxx_try_link "$LINENO"; then :
18282
18283 ac_cv_framework_JavaScriptCore=yes
18284
18285 else
18286 ac_cv_framework_JavaScriptCore=no
18287 fi
18288 rm -f core conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_framework_save_LIBS
18291
18292 fi
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18294 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18295 if test $ac_cv_framework_JavaScriptCore = yes; then :
18296
18297
18298 for element in "-framework JavaScriptCore"; do
18299 haveit=
18300 for x in $LIBS; do
18301
18302 acl_save_prefix="$prefix"
18303 prefix="$acl_final_prefix"
18304 acl_save_exec_prefix="$exec_prefix"
18305 exec_prefix="$acl_final_exec_prefix"
18306 eval x=\"$x\"
18307 exec_prefix="$acl_save_exec_prefix"
18308 prefix="$acl_save_prefix"
18309
18310 if test "X$x" = "X$element"; then
18311 haveit=yes
18312 break
18313 fi
18314 done
18315 if test -z "$haveit"; then
18316 LIBS="${LIBS}${LIBS:+ }$element"
18317 fi
18318 done
18319
18320
18321 CY_EXECUTE=1
18322
18323
18324
18325 else
18326
18327 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18328
18329 pkg_failed=no
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18331 $as_echo_n "checking for WEBKIT... " >&6; }
18332
18333 if test -n "$WEBKIT_CFLAGS"; then
18334 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18335 elif test -n "$PKG_CONFIG"; then
18336 if test -n "$PKG_CONFIG" && \
18337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18338 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18339 ac_status=$?
18340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18341 test $ac_status = 0; }; then
18342 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18343 else
18344 pkg_failed=yes
18345 fi
18346 else
18347 pkg_failed=untried
18348 fi
18349 if test -n "$WEBKIT_LIBS"; then
18350 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18351 elif test -n "$PKG_CONFIG"; then
18352 if test -n "$PKG_CONFIG" && \
18353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18354 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18355 ac_status=$?
18356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18357 test $ac_status = 0; }; then
18358 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18359 else
18360 pkg_failed=yes
18361 fi
18362 else
18363 pkg_failed=untried
18364 fi
18365
18366
18367
18368 if test $pkg_failed = yes; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18370 $as_echo "no" >&6; }
18371
18372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18373 _pkg_short_errors_supported=yes
18374 else
18375 _pkg_short_errors_supported=no
18376 fi
18377 if test $_pkg_short_errors_supported = yes; then
18378 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18379 else
18380 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18381 fi
18382 # Put the nasty error message in config.log where it belongs
18383 echo "$WEBKIT_PKG_ERRORS" >&5
18384
18385 :
18386 elif test $pkg_failed = untried; then
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388 $as_echo "no" >&6; }
18389 :
18390 else
18391 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18392 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18394 $as_echo "yes" >&6; }
18395
18396 CY_EXECUTE=1
18397
18398
18399
18400 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18401 haveit=
18402 for x in $CFLAGS; do
18403
18404 acl_save_prefix="$prefix"
18405 prefix="$acl_final_prefix"
18406 acl_save_exec_prefix="$exec_prefix"
18407 exec_prefix="$acl_final_exec_prefix"
18408 eval x=\"$x\"
18409 exec_prefix="$acl_save_exec_prefix"
18410 prefix="$acl_save_prefix"
18411
18412 if test "X$x" = "X$element"; then
18413 haveit=yes
18414 break
18415 fi
18416 done
18417 if test -z "$haveit"; then
18418 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18419 fi
18420 done
18421
18422
18423 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18424 haveit=
18425 for x in $CXXFLAGS; do
18426
18427 acl_save_prefix="$prefix"
18428 prefix="$acl_final_prefix"
18429 acl_save_exec_prefix="$exec_prefix"
18430 exec_prefix="$acl_final_exec_prefix"
18431 eval x=\"$x\"
18432 exec_prefix="$acl_save_exec_prefix"
18433 prefix="$acl_save_prefix"
18434
18435 if test "X$x" = "X$element"; then
18436 haveit=yes
18437 break
18438 fi
18439 done
18440 if test -z "$haveit"; then
18441 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18442 fi
18443 done
18444
18445
18446 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; 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
18470 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18471 haveit=
18472 for x in $LIBS; do
18473
18474 acl_save_prefix="$prefix"
18475 prefix="$acl_final_prefix"
18476 acl_save_exec_prefix="$exec_prefix"
18477 exec_prefix="$acl_final_exec_prefix"
18478 eval x=\"$x\"
18479 exec_prefix="$acl_save_exec_prefix"
18480 prefix="$acl_save_prefix"
18481
18482 if test "X$x" = "X$element"; then
18483 haveit=yes
18484 break
18485 fi
18486 done
18487 if test -z "$haveit"; then
18488 LIBS="${LIBS}${LIBS:+ }$element"
18489 fi
18490 done
18491
18492
18493 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18494 done
18495
18496 fi
18497 ;; #(
18498 *) :
18499 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18500 esac
18501
18502 else
18503
18504
18505
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18507 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18508 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18509 $as_echo_n "(cached) " >&6
18510 else
18511
18512 ac_check_framework_save_LIBS=$LIBS
18513 LIBS="-framework JavaScriptCore $LIBS"
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18516
18517 #include <JavaScriptCore/JSBase.h>
18518
18519 int
18520 main ()
18521 {
18522
18523 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18524
18525 ;
18526 return 0;
18527 }
18528 _ACEOF
18529 if ac_fn_cxx_try_link "$LINENO"; then :
18530
18531 ac_cv_framework_JavaScriptCore=yes
18532
18533 else
18534 ac_cv_framework_JavaScriptCore=no
18535 fi
18536 rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538 LIBS=$ac_check_framework_save_LIBS
18539
18540 fi
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18542 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18543 if test $ac_cv_framework_JavaScriptCore = yes; then :
18544
18545
18546 for element in "-framework JavaScriptCore"; do
18547 haveit=
18548 for x in $LIBS; do
18549
18550 acl_save_prefix="$prefix"
18551 prefix="$acl_final_prefix"
18552 acl_save_exec_prefix="$exec_prefix"
18553 exec_prefix="$acl_final_exec_prefix"
18554 eval x=\"$x\"
18555 exec_prefix="$acl_save_exec_prefix"
18556 prefix="$acl_save_prefix"
18557
18558 if test "X$x" = "X$element"; then
18559 haveit=yes
18560 break
18561 fi
18562 done
18563 if test -z "$haveit"; then
18564 LIBS="${LIBS}${LIBS:+ }$element"
18565 fi
18566 done
18567
18568
18569 CY_EXECUTE=1
18570
18571
18572
18573 else
18574
18575 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18576
18577 pkg_failed=no
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18579 $as_echo_n "checking for WEBKIT... " >&6; }
18580
18581 if test -n "$WEBKIT_CFLAGS"; then
18582 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18583 elif test -n "$PKG_CONFIG"; then
18584 if test -n "$PKG_CONFIG" && \
18585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18586 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18587 ac_status=$?
18588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18589 test $ac_status = 0; }; then
18590 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18591 else
18592 pkg_failed=yes
18593 fi
18594 else
18595 pkg_failed=untried
18596 fi
18597 if test -n "$WEBKIT_LIBS"; then
18598 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18599 elif test -n "$PKG_CONFIG"; then
18600 if test -n "$PKG_CONFIG" && \
18601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18602 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18603 ac_status=$?
18604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18605 test $ac_status = 0; }; then
18606 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18607 else
18608 pkg_failed=yes
18609 fi
18610 else
18611 pkg_failed=untried
18612 fi
18613
18614
18615
18616 if test $pkg_failed = yes; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618 $as_echo "no" >&6; }
18619
18620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18621 _pkg_short_errors_supported=yes
18622 else
18623 _pkg_short_errors_supported=no
18624 fi
18625 if test $_pkg_short_errors_supported = yes; then
18626 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18627 else
18628 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18629 fi
18630 # Put the nasty error message in config.log where it belongs
18631 echo "$WEBKIT_PKG_ERRORS" >&5
18632
18633 :
18634 elif test $pkg_failed = untried; then
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18636 $as_echo "no" >&6; }
18637 :
18638 else
18639 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18640 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642 $as_echo "yes" >&6; }
18643
18644 CY_EXECUTE=1
18645
18646
18647
18648 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18649 haveit=
18650 for x in $CFLAGS; do
18651
18652 acl_save_prefix="$prefix"
18653 prefix="$acl_final_prefix"
18654 acl_save_exec_prefix="$exec_prefix"
18655 exec_prefix="$acl_final_exec_prefix"
18656 eval x=\"$x\"
18657 exec_prefix="$acl_save_exec_prefix"
18658 prefix="$acl_save_prefix"
18659
18660 if test "X$x" = "X$element"; then
18661 haveit=yes
18662 break
18663 fi
18664 done
18665 if test -z "$haveit"; then
18666 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18667 fi
18668 done
18669
18670
18671 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18672 haveit=
18673 for x in $CXXFLAGS; do
18674
18675 acl_save_prefix="$prefix"
18676 prefix="$acl_final_prefix"
18677 acl_save_exec_prefix="$exec_prefix"
18678 exec_prefix="$acl_final_exec_prefix"
18679 eval x=\"$x\"
18680 exec_prefix="$acl_save_exec_prefix"
18681 prefix="$acl_save_prefix"
18682
18683 if test "X$x" = "X$element"; then
18684 haveit=yes
18685 break
18686 fi
18687 done
18688 if test -z "$haveit"; then
18689 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18690 fi
18691 done
18692
18693
18694 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18695 haveit=
18696 for x in $OBJCXXFLAGS; do
18697
18698 acl_save_prefix="$prefix"
18699 prefix="$acl_final_prefix"
18700 acl_save_exec_prefix="$exec_prefix"
18701 exec_prefix="$acl_final_exec_prefix"
18702 eval x=\"$x\"
18703 exec_prefix="$acl_save_exec_prefix"
18704 prefix="$acl_save_prefix"
18705
18706 if test "X$x" = "X$element"; then
18707 haveit=yes
18708 break
18709 fi
18710 done
18711 if test -z "$haveit"; then
18712 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18713 fi
18714 done
18715
18716
18717
18718 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18719 haveit=
18720 for x in $LIBS; do
18721
18722 acl_save_prefix="$prefix"
18723 prefix="$acl_final_prefix"
18724 acl_save_exec_prefix="$exec_prefix"
18725 exec_prefix="$acl_final_exec_prefix"
18726 eval x=\"$x\"
18727 exec_prefix="$acl_save_exec_prefix"
18728 prefix="$acl_save_prefix"
18729
18730 if test "X$x" = "X$element"; then
18731 haveit=yes
18732 break
18733 fi
18734 done
18735 if test -z "$haveit"; then
18736 LIBS="${LIBS}${LIBS:+ }$element"
18737 fi
18738 done
18739
18740
18741 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18742 done
18743
18744 fi
18745
18746 fi
18747
18748
18749
18750 apr_found="no"
18751
18752 if test "$target_os" = "os2-emx"; then
18753 # Scripts don't pass test -x on OS/2
18754 TEST_X="test -f"
18755 else
18756 TEST_X="test -x"
18757 fi
18758
18759 acceptable_majors="1"
18760
18761 apr_temp_acceptable_apr_config=""
18762 for apr_temp_major in $acceptable_majors
18763 do
18764 case $apr_temp_major in
18765 0)
18766 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
18767 ;;
18768 *)
18769 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
18770 ;;
18771 esac
18772 done
18773
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
18775 $as_echo_n "checking for APR... " >&6; }
18776
18777 # Check whether --with-apr was given.
18778 if test "${with_apr+set}" = set; then :
18779 withval=$with_apr;
18780 if test "$withval" = "no" || test "$withval" = "yes"; then
18781 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
18782 fi
18783
18784 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18785 do
18786 for lookdir in "$withval/bin" "$withval"
18787 do
18788 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
18789 apr_config="$lookdir/$apr_temp_apr_config_file"
18790
18791 apr_found="yes"
18792 break 2
18793 fi
18794 done
18795 done
18796
18797 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
18798 apr_config="$withval"
18799 apr_found="yes"
18800 fi
18801
18802 if test "$apr_found" != "yes"; then
18803 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
18804 fi
18805
18806 else
18807
18808 if test -n "1" && test "1" = "1"; then
18809 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18810 do
18811 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
18812 apr_config="$apr_temp_apr_config_file"
18813
18814 apr_found="yes"
18815 break
18816 else
18817 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
18818 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
18819 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
18820
18821 apr_found="yes"
18822 break 2
18823 fi
18824 done
18825 fi
18826 done
18827 fi
18828 if test "$apr_found" = "no" && test -d ""; then
18829 apr_temp_abs_srcdir="`cd && pwd`"
18830 apr_found="reconfig"
18831 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
18832 case $apr_bundled_major in
18833 "")
18834 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
18835 ;;
18836 0)
18837 apr_temp_apr_config_file="apr-config"
18838 ;;
18839 *)
18840 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
18841 ;;
18842 esac
18843 if test -n ""; then
18844 apr_config="/$apr_temp_apr_config_file"
18845 else
18846 apr_config="/$apr_temp_apr_config_file"
18847 fi
18848 fi
18849
18850 fi
18851
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
18854 $as_echo "$apr_found" >&6; }
18855
18856 case $apr_found in #(
18857 yes) :
18858
18859
18860 for element in `$apr_config --includes`; do
18861 haveit=
18862 for x in $CPPFLAGS; do
18863
18864 acl_save_prefix="$prefix"
18865 prefix="$acl_final_prefix"
18866 acl_save_exec_prefix="$exec_prefix"
18867 exec_prefix="$acl_final_exec_prefix"
18868 eval x=\"$x\"
18869 exec_prefix="$acl_save_exec_prefix"
18870 prefix="$acl_save_prefix"
18871
18872 if test "X$x" = "X$element"; then
18873 haveit=yes
18874 break
18875 fi
18876 done
18877 if test -z "$haveit"; then
18878 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18879 fi
18880 done
18881
18882
18883 for element in `$apr_config --link-libtool`; do
18884 haveit=
18885 for x in $LTLIBAPR; do
18886
18887 acl_save_prefix="$prefix"
18888 prefix="$acl_final_prefix"
18889 acl_save_exec_prefix="$exec_prefix"
18890 exec_prefix="$acl_final_exec_prefix"
18891 eval x=\"$x\"
18892 exec_prefix="$acl_save_exec_prefix"
18893 prefix="$acl_save_prefix"
18894
18895 if test "X$x" = "X$element"; then
18896 haveit=yes
18897 break
18898 fi
18899 done
18900 if test -z "$haveit"; then
18901 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
18902 fi
18903 done
18904
18905
18906 ;; #(
18907 *) :
18908 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
18909 esac
18910
18911
18912
18913 if test "x$CY_EXECUTE" = x1; then
18914 CY_EXECUTE_TRUE=
18915 CY_EXECUTE_FALSE='#'
18916 else
18917 CY_EXECUTE_TRUE='#'
18918 CY_EXECUTE_FALSE=
18919 fi
18920
18921
18922
18923 case $CY_EXECUTE in #(
18924 1) :
18925
18926 for ac_header in ffi.h ffi/ffi.h
18927 do :
18928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18929 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18931 cat >>confdefs.h <<_ACEOF
18932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18933 _ACEOF
18934 break
18935 fi
18936
18937 done
18938
18939
18940
18941 cy_save=$LIBS
18942 LIBS=
18943 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
18944
18945
18946 LIBFFI_CFLAGS
18947 C compiler flags for LIBFFI, overriding pkg-config
18948 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
18949
18950 pkg_failed=no
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18952 $as_echo_n "checking for LIBFFI... " >&6; }
18953
18954 if test -n "$LIBFFI_CFLAGS"; then
18955 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
18956 elif test -n "$PKG_CONFIG"; then
18957 if test -n "$PKG_CONFIG" && \
18958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18959 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
18960 ac_status=$?
18961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962 test $ac_status = 0; }; then
18963 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
18964 else
18965 pkg_failed=yes
18966 fi
18967 else
18968 pkg_failed=untried
18969 fi
18970 if test -n "$LIBFFI_LIBS"; then
18971 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
18972 elif test -n "$PKG_CONFIG"; then
18973 if test -n "$PKG_CONFIG" && \
18974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18975 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
18976 ac_status=$?
18977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18978 test $ac_status = 0; }; then
18979 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
18980 else
18981 pkg_failed=yes
18982 fi
18983 else
18984 pkg_failed=untried
18985 fi
18986
18987
18988
18989 if test $pkg_failed = yes; then
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18991 $as_echo "no" >&6; }
18992
18993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18994 _pkg_short_errors_supported=yes
18995 else
18996 _pkg_short_errors_supported=no
18997 fi
18998 if test $_pkg_short_errors_supported = yes; then
18999 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19000 else
19001 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19002 fi
19003 # Put the nasty error message in config.log where it belongs
19004 echo "$LIBFFI_PKG_ERRORS" >&5
19005
19006 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19007 elif test $pkg_failed = untried; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19009 $as_echo "no" >&6; }
19010 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19011 else
19012 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19013 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19015 $as_echo "yes" >&6; }
19016
19017
19018
19019 for element in `$PKG_CONFIG --cflags libffi`; do
19020 haveit=
19021 for x in $CFLAGS; do
19022
19023 acl_save_prefix="$prefix"
19024 prefix="$acl_final_prefix"
19025 acl_save_exec_prefix="$exec_prefix"
19026 exec_prefix="$acl_final_exec_prefix"
19027 eval x=\"$x\"
19028 exec_prefix="$acl_save_exec_prefix"
19029 prefix="$acl_save_prefix"
19030
19031 if test "X$x" = "X$element"; then
19032 haveit=yes
19033 break
19034 fi
19035 done
19036 if test -z "$haveit"; then
19037 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19038 fi
19039 done
19040
19041
19042 for element in `$PKG_CONFIG --cflags libffi`; do
19043 haveit=
19044 for x in $CXXFLAGS; do
19045
19046 acl_save_prefix="$prefix"
19047 prefix="$acl_final_prefix"
19048 acl_save_exec_prefix="$exec_prefix"
19049 exec_prefix="$acl_final_exec_prefix"
19050 eval x=\"$x\"
19051 exec_prefix="$acl_save_exec_prefix"
19052 prefix="$acl_save_prefix"
19053
19054 if test "X$x" = "X$element"; then
19055 haveit=yes
19056 break
19057 fi
19058 done
19059 if test -z "$haveit"; then
19060 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19061 fi
19062 done
19063
19064
19065 for element in `$PKG_CONFIG --cflags libffi`; do
19066 haveit=
19067 for x in $OBJCXXFLAGS; do
19068
19069 acl_save_prefix="$prefix"
19070 prefix="$acl_final_prefix"
19071 acl_save_exec_prefix="$exec_prefix"
19072 exec_prefix="$acl_final_exec_prefix"
19073 eval x=\"$x\"
19074 exec_prefix="$acl_save_exec_prefix"
19075 prefix="$acl_save_prefix"
19076
19077 if test "X$x" = "X$element"; then
19078 haveit=yes
19079 break
19080 fi
19081 done
19082 if test -z "$haveit"; then
19083 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19084 fi
19085 done
19086
19087
19088
19089 for element in `$PKG_CONFIG --libs libffi`; do
19090 haveit=
19091 for x in $LIBS; do
19092
19093 acl_save_prefix="$prefix"
19094 prefix="$acl_final_prefix"
19095 acl_save_exec_prefix="$exec_prefix"
19096 exec_prefix="$acl_final_exec_prefix"
19097 eval x=\"$x\"
19098 exec_prefix="$acl_save_exec_prefix"
19099 prefix="$acl_save_prefix"
19100
19101 if test "X$x" = "X$element"; then
19102 haveit=yes
19103 break
19104 fi
19105 done
19106 if test -z "$haveit"; then
19107 LIBS="${LIBS}${LIBS:+ }$element"
19108 fi
19109 done
19110
19111
19112 fi
19113
19114 else
19115
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19117 $as_echo_n "checking for library containing ffi_call... " >&6; }
19118 if ${ac_cv_search_ffi_call+:} false; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 ac_func_search_save_LIBS=$LIBS
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19124
19125 /* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19128 #ifdef __cplusplus
19129 extern "C"
19130 #endif
19131 char ffi_call ();
19132 int
19133 main ()
19134 {
19135 return ffi_call ();
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 for ac_lib in '' ffi; do
19141 if test -z "$ac_lib"; then
19142 ac_res="none required"
19143 else
19144 ac_res=-l$ac_lib
19145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19146 fi
19147 if ac_fn_cxx_try_link "$LINENO"; then :
19148 ac_cv_search_ffi_call=$ac_res
19149 fi
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext
19152 if ${ac_cv_search_ffi_call+:} false; then :
19153 break
19154 fi
19155 done
19156 if ${ac_cv_search_ffi_call+:} false; then :
19157
19158 else
19159 ac_cv_search_ffi_call=no
19160 fi
19161 rm conftest.$ac_ext
19162 LIBS=$ac_func_search_save_LIBS
19163 fi
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19165 $as_echo "$ac_cv_search_ffi_call" >&6; }
19166 ac_res=$ac_cv_search_ffi_call
19167 if test "$ac_res" != no; then :
19168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19169
19170 fi
19171
19172 case $ac_cv_search_ffi_call in #(
19173 no) :
19174
19175
19176 pkg_failed=no
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19178 $as_echo_n "checking for LIBFFI... " >&6; }
19179
19180 if test -n "$LIBFFI_CFLAGS"; then
19181 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19182 elif test -n "$PKG_CONFIG"; then
19183 if test -n "$PKG_CONFIG" && \
19184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19185 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19186 ac_status=$?
19187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19188 test $ac_status = 0; }; then
19189 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19190 else
19191 pkg_failed=yes
19192 fi
19193 else
19194 pkg_failed=untried
19195 fi
19196 if test -n "$LIBFFI_LIBS"; then
19197 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19198 elif test -n "$PKG_CONFIG"; then
19199 if test -n "$PKG_CONFIG" && \
19200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19201 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19202 ac_status=$?
19203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19204 test $ac_status = 0; }; then
19205 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19206 else
19207 pkg_failed=yes
19208 fi
19209 else
19210 pkg_failed=untried
19211 fi
19212
19213
19214
19215 if test $pkg_failed = yes; then
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 $as_echo "no" >&6; }
19218
19219 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19220 _pkg_short_errors_supported=yes
19221 else
19222 _pkg_short_errors_supported=no
19223 fi
19224 if test $_pkg_short_errors_supported = yes; then
19225 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19226 else
19227 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19228 fi
19229 # Put the nasty error message in config.log where it belongs
19230 echo "$LIBFFI_PKG_ERRORS" >&5
19231
19232 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19233 elif test $pkg_failed = untried; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235 $as_echo "no" >&6; }
19236 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19237 else
19238 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19239 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241 $as_echo "yes" >&6; }
19242
19243
19244
19245 for element in `$PKG_CONFIG --cflags libffi`; do
19246 haveit=
19247 for x in $CFLAGS; do
19248
19249 acl_save_prefix="$prefix"
19250 prefix="$acl_final_prefix"
19251 acl_save_exec_prefix="$exec_prefix"
19252 exec_prefix="$acl_final_exec_prefix"
19253 eval x=\"$x\"
19254 exec_prefix="$acl_save_exec_prefix"
19255 prefix="$acl_save_prefix"
19256
19257 if test "X$x" = "X$element"; then
19258 haveit=yes
19259 break
19260 fi
19261 done
19262 if test -z "$haveit"; then
19263 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19264 fi
19265 done
19266
19267
19268 for element in `$PKG_CONFIG --cflags libffi`; do
19269 haveit=
19270 for x in $CXXFLAGS; do
19271
19272 acl_save_prefix="$prefix"
19273 prefix="$acl_final_prefix"
19274 acl_save_exec_prefix="$exec_prefix"
19275 exec_prefix="$acl_final_exec_prefix"
19276 eval x=\"$x\"
19277 exec_prefix="$acl_save_exec_prefix"
19278 prefix="$acl_save_prefix"
19279
19280 if test "X$x" = "X$element"; then
19281 haveit=yes
19282 break
19283 fi
19284 done
19285 if test -z "$haveit"; then
19286 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19287 fi
19288 done
19289
19290
19291 for element in `$PKG_CONFIG --cflags libffi`; do
19292 haveit=
19293 for x in $OBJCXXFLAGS; do
19294
19295 acl_save_prefix="$prefix"
19296 prefix="$acl_final_prefix"
19297 acl_save_exec_prefix="$exec_prefix"
19298 exec_prefix="$acl_final_exec_prefix"
19299 eval x=\"$x\"
19300 exec_prefix="$acl_save_exec_prefix"
19301 prefix="$acl_save_prefix"
19302
19303 if test "X$x" = "X$element"; then
19304 haveit=yes
19305 break
19306 fi
19307 done
19308 if test -z "$haveit"; then
19309 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19310 fi
19311 done
19312
19313
19314
19315 for element in `$PKG_CONFIG --libs libffi`; do
19316 haveit=
19317 for x in $LIBS; do
19318
19319 acl_save_prefix="$prefix"
19320 prefix="$acl_final_prefix"
19321 acl_save_exec_prefix="$exec_prefix"
19322 exec_prefix="$acl_final_exec_prefix"
19323 eval x=\"$x\"
19324 exec_prefix="$acl_save_exec_prefix"
19325 prefix="$acl_save_prefix"
19326
19327 if test "X$x" = "X$element"; then
19328 haveit=yes
19329 break
19330 fi
19331 done
19332 if test -z "$haveit"; then
19333 LIBS="${LIBS}${LIBS:+ }$element"
19334 fi
19335 done
19336
19337
19338 fi ;; #(
19339 *) :
19340 ;;
19341 esac
19342
19343 fi
19344 LTLIBFFI=$LIBS
19345 LIBS=$cy_save
19346
19347
19348
19349 ac_ext=mm
19350 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19351 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19352 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19353 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19354
19355
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19357 $as_echo_n "checking if we really have Objective C++... " >&6; }
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19360
19361 _ACEOF
19362 if ac_fn_objcxx_try_compile "$LINENO"; then :
19363
19364 CY_OBJECTIVEC=1
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19366 $as_echo "yes" >&6; }
19367
19368 else
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19370 $as_echo "no" >&6; }
19371 fi
19372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373
19374 if test "x$CY_OBJECTIVEC" = x1; then :
19375
19376
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19378 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19379 if ${ac_cv_framework_CoreFoundation+:} false; then :
19380 $as_echo_n "(cached) " >&6
19381 else
19382
19383 ac_check_framework_save_LIBS=$LIBS
19384 LIBS="-framework CoreFoundation $LIBS"
19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h. */
19387
19388 #include <CoreFoundation/CFBase.h>
19389
19390 int
19391 main ()
19392 {
19393 CFAllocatorGetDefault();
19394 ;
19395 return 0;
19396 }
19397 _ACEOF
19398 if ac_fn_objcxx_try_link "$LINENO"; then :
19399
19400 ac_cv_framework_CoreFoundation=yes
19401
19402 else
19403 ac_cv_framework_CoreFoundation=no
19404 fi
19405 rm -f core conftest.err conftest.$ac_objext \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_framework_save_LIBS
19408
19409 fi
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19411 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19412 if test $ac_cv_framework_CoreFoundation = yes; then :
19413
19414
19415 for element in "-framework CoreFoundation"; do
19416 haveit=
19417 for x in $LIBS; do
19418
19419 acl_save_prefix="$prefix"
19420 prefix="$acl_final_prefix"
19421 acl_save_exec_prefix="$exec_prefix"
19422 exec_prefix="$acl_final_exec_prefix"
19423 eval x=\"$x\"
19424 exec_prefix="$acl_save_exec_prefix"
19425 prefix="$acl_save_prefix"
19426
19427 if test "X$x" = "X$element"; then
19428 haveit=yes
19429 break
19430 fi
19431 done
19432 if test -z "$haveit"; then
19433 LIBS="${LIBS}${LIBS:+ }$element"
19434 fi
19435 done
19436
19437
19438
19439
19440
19441
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19443 $as_echo_n "checking for framework Foundation... " >&6; }
19444 if ${ac_cv_framework_Foundation+:} false; then :
19445 $as_echo_n "(cached) " >&6
19446 else
19447
19448 ac_check_framework_save_LIBS=$LIBS
19449 LIBS="-framework Foundation $LIBS"
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452
19453 #include <Foundation/NSObject.h>
19454
19455 int
19456 main ()
19457 {
19458 [[NSObject alloc] init];
19459 ;
19460 return 0;
19461 }
19462 _ACEOF
19463 if ac_fn_objcxx_try_link "$LINENO"; then :
19464
19465 ac_cv_framework_Foundation=yes
19466
19467 else
19468 ac_cv_framework_Foundation=no
19469 fi
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19472 LIBS=$ac_check_framework_save_LIBS
19473
19474 fi
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19476 $as_echo "$ac_cv_framework_Foundation" >&6; }
19477 if test $ac_cv_framework_Foundation = yes; then :
19478
19479
19480 for element in "-framework Foundation"; do
19481 haveit=
19482 for x in $LIBS; do
19483
19484 acl_save_prefix="$prefix"
19485 prefix="$acl_final_prefix"
19486 acl_save_exec_prefix="$exec_prefix"
19487 exec_prefix="$acl_final_exec_prefix"
19488 eval x=\"$x\"
19489 exec_prefix="$acl_save_exec_prefix"
19490 prefix="$acl_save_prefix"
19491
19492 if test "X$x" = "X$element"; then
19493 haveit=yes
19494 break
19495 fi
19496 done
19497 if test -z "$haveit"; then
19498 LIBS="${LIBS}${LIBS:+ }$element"
19499 fi
19500 done
19501
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_FRAMEWORK_FOUNDATION 1
19504 _ACEOF
19505
19506
19507 fi
19508
19509
19510
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19512 $as_echo_n "checking for framework WebKit... " >&6; }
19513 if ${ac_cv_framework_WebKit+:} false; then :
19514 $as_echo_n "(cached) " >&6
19515 else
19516
19517 ac_check_framework_save_LIBS=$LIBS
19518 LIBS="-framework WebKit $LIBS"
19519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h. */
19521
19522 #include <WebKit/WebScriptObject.h>
19523
19524 int
19525 main ()
19526 {
19527 [[WebScriptObject alloc] init];
19528 ;
19529 return 0;
19530 }
19531 _ACEOF
19532 if ac_fn_objcxx_try_link "$LINENO"; then :
19533
19534 ac_cv_framework_WebKit=yes
19535
19536 else
19537 ac_cv_framework_WebKit=no
19538 fi
19539 rm -f core conftest.err conftest.$ac_objext \
19540 conftest$ac_exeext conftest.$ac_ext
19541 LIBS=$ac_check_framework_save_LIBS
19542
19543 fi
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19545 $as_echo "$ac_cv_framework_WebKit" >&6; }
19546 if test $ac_cv_framework_WebKit = yes; then :
19547
19548
19549 for element in "-framework WebKit"; do
19550 haveit=
19551 for x in $LIBS; do
19552
19553 acl_save_prefix="$prefix"
19554 prefix="$acl_final_prefix"
19555 acl_save_exec_prefix="$exec_prefix"
19556 exec_prefix="$acl_final_exec_prefix"
19557 eval x=\"$x\"
19558 exec_prefix="$acl_save_exec_prefix"
19559 prefix="$acl_save_prefix"
19560
19561 if test "X$x" = "X$element"; then
19562 haveit=yes
19563 break
19564 fi
19565 done
19566 if test -z "$haveit"; then
19567 LIBS="${LIBS}${LIBS:+ }$element"
19568 fi
19569 done
19570
19571 cat >>confdefs.h <<_ACEOF
19572 #define HAVE_FRAMEWORK_WEBKIT 1
19573 _ACEOF
19574
19575
19576 fi
19577
19578
19579 else
19580
19581
19582 for ac_prog in gnustep-config
19583 do
19584 # Extract the first word of "$ac_prog", so it can be a program name with args.
19585 set dummy $ac_prog; ac_word=$2
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19587 $as_echo_n "checking for $ac_word... " >&6; }
19588 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19589 $as_echo_n "(cached) " >&6
19590 else
19591 if test -n "$GNUSTEP_CONFIG"; then
19592 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19593 else
19594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595 for as_dir in $PATH
19596 do
19597 IFS=$as_save_IFS
19598 test -z "$as_dir" && as_dir=.
19599 for ac_exec_ext in '' $ac_executable_extensions; do
19600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19601 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19603 break 2
19604 fi
19605 done
19606 done
19607 IFS=$as_save_IFS
19608
19609 fi
19610 fi
19611 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19612 if test -n "$GNUSTEP_CONFIG"; then
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19614 $as_echo "$GNUSTEP_CONFIG" >&6; }
19615 else
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19618 fi
19619
19620
19621 test -n "$GNUSTEP_CONFIG" && break
19622 done
19623
19624
19625 if test "x$GNUSTEP_CONFIG" != x; then :
19626
19627
19628
19629 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19630 haveit=
19631 for x in $OBJCXXFLAGS; do
19632
19633 acl_save_prefix="$prefix"
19634 prefix="$acl_final_prefix"
19635 acl_save_exec_prefix="$exec_prefix"
19636 exec_prefix="$acl_final_exec_prefix"
19637 eval x=\"$x\"
19638 exec_prefix="$acl_save_exec_prefix"
19639 prefix="$acl_save_prefix"
19640
19641 if test "X$x" = "X$element"; then
19642 haveit=yes
19643 break
19644 fi
19645 done
19646 if test -z "$haveit"; then
19647 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19648 fi
19649 done
19650
19651
19652 for element in `$GNUSTEP_CONFIG --base-libs`; do
19653 haveit=
19654 for x in $LIBS; do
19655
19656 acl_save_prefix="$prefix"
19657 prefix="$acl_final_prefix"
19658 acl_save_exec_prefix="$exec_prefix"
19659 exec_prefix="$acl_final_exec_prefix"
19660 eval x=\"$x\"
19661 exec_prefix="$acl_save_exec_prefix"
19662 prefix="$acl_save_prefix"
19663
19664 if test "X$x" = "X$element"; then
19665 haveit=yes
19666 break
19667 fi
19668 done
19669 if test -z "$haveit"; then
19670 LIBS="${LIBS}${LIBS:+ }$element"
19671 fi
19672 done
19673
19674
19675 else
19676 CY_OBJECTIVEC=0
19677
19678 fi
19679
19680 fi
19681
19682 fi
19683
19684 ac_ext=cpp
19685 ac_cpp='$CXXCPP $CPPFLAGS'
19686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19689
19690 ;; #(
19691 *) :
19692 ;;
19693 esac
19694
19695 if test "x$CY_OBJECTIVEC" = x1; then
19696 CY_OBJECTIVEC_TRUE=
19697 CY_OBJECTIVEC_FALSE='#'
19698 else
19699 CY_OBJECTIVEC_TRUE='#'
19700 CY_OBJECTIVEC_FALSE=
19701 fi
19702
19703
19704
19705 cy_save=$LIBS
19706 LIBS=
19707
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19709 $as_echo_n "checking for a readline compatible library... " >&6; }
19710 if ${ax_cv_lib_readline+:} false; then :
19711 $as_echo_n "(cached) " >&6
19712 else
19713
19714 ORIG_LIBS="$LIBS"
19715 for readline_lib in readline edit editline; do
19716 for termcap_lib in "" termcap curses ncurses; do
19717 if test -z "$termcap_lib"; then
19718 TRY_LIB="-l$readline_lib"
19719 else
19720 TRY_LIB="-l$readline_lib -l$termcap_lib"
19721 fi
19722 LIBS="$ORIG_LIBS $TRY_LIB"
19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19725
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char readline ();
19733 int
19734 main ()
19735 {
19736 return readline ();
19737 ;
19738 return 0;
19739 }
19740 _ACEOF
19741 if ac_fn_cxx_try_link "$LINENO"; then :
19742 ax_cv_lib_readline="$TRY_LIB"
19743 fi
19744 rm -f core conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19746 if test -n "$ax_cv_lib_readline"; then
19747 break
19748 fi
19749 done
19750 if test -n "$ax_cv_lib_readline"; then
19751 break
19752 fi
19753 done
19754 if test -z "$ax_cv_lib_readline"; then
19755 ax_cv_lib_readline="no"
19756 fi
19757 LIBS="$ORIG_LIBS"
19758
19759 fi
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19761 $as_echo "$ax_cv_lib_readline" >&6; }
19762
19763 if test "$ax_cv_lib_readline" != "no"; then
19764 LIBS="$LIBS $ax_cv_lib_readline"
19765
19766 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19767
19768 for ac_header in readline.h readline/readline.h
19769 do :
19770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19771 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19773 cat >>confdefs.h <<_ACEOF
19774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 _ACEOF
19776
19777 fi
19778
19779 done
19780
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19782 $as_echo_n "checking whether readline supports history... " >&6; }
19783 if ${ax_cv_lib_readline_history+:} false; then :
19784 $as_echo_n "(cached) " >&6
19785 else
19786
19787 ax_cv_lib_readline_history="no"
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19790
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794 #ifdef __cplusplus
19795 extern "C"
19796 #endif
19797 char add_history ();
19798 int
19799 main ()
19800 {
19801 return add_history ();
19802 ;
19803 return 0;
19804 }
19805 _ACEOF
19806 if ac_fn_cxx_try_link "$LINENO"; then :
19807 ax_cv_lib_readline_history="yes"
19808 fi
19809 rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811
19812 fi
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19814 $as_echo "$ax_cv_lib_readline_history" >&6; }
19815 if test "$ax_cv_lib_readline_history" = "yes"; then
19816
19817 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
19818
19819 for ac_header in history.h readline/history.h
19820 do :
19821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19822 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19823 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19824 cat >>confdefs.h <<_ACEOF
19825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19826 _ACEOF
19827
19828 fi
19829
19830 done
19831
19832 fi
19833 fi
19834
19835 LTLIBREADLINE=$LIBS
19836 LIBS=$cy_save
19837
19838
19839 case $ax_cv_lib_readline in #(
19840 no) :
19841 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19842 *) :
19843 ;;
19844 esac
19845
19846
19847 cy_save=$LIBS
19848 LIBS=
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
19850 $as_echo_n "checking for library containing cur_term... " >&6; }
19851 if ${ac_cv_search_cur_term+:} false; then :
19852 $as_echo_n "(cached) " >&6
19853 else
19854 ac_func_search_save_LIBS=$LIBS
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19857
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char cur_term ();
19865 int
19866 main ()
19867 {
19868 return cur_term ();
19869 ;
19870 return 0;
19871 }
19872 _ACEOF
19873 for ac_lib in '' termcap; do
19874 if test -z "$ac_lib"; then
19875 ac_res="none required"
19876 else
19877 ac_res=-l$ac_lib
19878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19879 fi
19880 if ac_fn_cxx_try_link "$LINENO"; then :
19881 ac_cv_search_cur_term=$ac_res
19882 fi
19883 rm -f core conftest.err conftest.$ac_objext \
19884 conftest$ac_exeext
19885 if ${ac_cv_search_cur_term+:} false; then :
19886 break
19887 fi
19888 done
19889 if ${ac_cv_search_cur_term+:} false; then :
19890
19891 else
19892 ac_cv_search_cur_term=no
19893 fi
19894 rm conftest.$ac_ext
19895 LIBS=$ac_func_search_save_LIBS
19896 fi
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19898 $as_echo "$ac_cv_search_cur_term" >&6; }
19899 ac_res=$ac_cv_search_cur_term
19900 if test "$ac_res" != no; then :
19901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19902
19903 fi
19904
19905 LTLIBTERMCAP=$LIBS
19906 LIBS=$cy_save
19907
19908
19909
19910 ac_ext=c
19911 ac_cpp='$CPP $CPPFLAGS'
19912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19915
19916
19917 if test "X$prefix" = "XNONE"; then
19918 acl_final_prefix="$ac_default_prefix"
19919 else
19920 acl_final_prefix="$prefix"
19921 fi
19922 if test "X$exec_prefix" = "XNONE"; then
19923 acl_final_exec_prefix='${prefix}'
19924 else
19925 acl_final_exec_prefix="$exec_prefix"
19926 fi
19927 acl_save_prefix="$prefix"
19928 prefix="$acl_final_prefix"
19929 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19930 prefix="$acl_save_prefix"
19931
19932
19933
19934 # Check whether --with-gnu-ld was given.
19935 if test "${with_gnu_ld+set}" = set; then :
19936 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19937 else
19938 with_gnu_ld=no
19939 fi
19940
19941 # Prepare PATH_SEPARATOR.
19942 # The user is always right.
19943 if test "${PATH_SEPARATOR+set}" != set; then
19944 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19945 # contains only /bin. Note that ksh looks also at the FPATH variable,
19946 # so we have to set that as well for the test.
19947 PATH_SEPARATOR=:
19948 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19949 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19950 || PATH_SEPARATOR=';'
19951 }
19952 fi
19953
19954 ac_prog=ld
19955 if test "$GCC" = yes; then
19956 # Check if gcc -print-prog-name=ld gives a path.
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19958 $as_echo_n "checking for ld used by $CC... " >&6; }
19959 case $host in
19960 *-*-mingw*)
19961 # gcc leaves a trailing carriage return which upsets mingw
19962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19963 *)
19964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19965 esac
19966 case $ac_prog in
19967 # Accept absolute paths.
19968 [\\/]* | ?:[\\/]*)
19969 re_direlt='/[^/][^/]*/\.\./'
19970 # Canonicalize the pathname of ld
19971 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
19972 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
19973 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19974 done
19975 test -z "$LD" && LD="$ac_prog"
19976 ;;
19977 "")
19978 # If it fails, then pretend we aren't using GCC.
19979 ac_prog=ld
19980 ;;
19981 *)
19982 # If it is relative, then search for the first ld in PATH.
19983 with_gnu_ld=unknown
19984 ;;
19985 esac
19986 elif test "$with_gnu_ld" = yes; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19988 $as_echo_n "checking for GNU ld... " >&6; }
19989 else
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19991 $as_echo_n "checking for non-GNU ld... " >&6; }
19992 fi
19993 if ${acl_cv_path_LD+:} false; then :
19994 $as_echo_n "(cached) " >&6
19995 else
19996 if test -z "$LD"; then
19997 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19998 for ac_dir in $PATH; do
19999 IFS="$acl_save_ifs"
20000 test -z "$ac_dir" && ac_dir=.
20001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20002 acl_cv_path_LD="$ac_dir/$ac_prog"
20003 # Check to see if the program is GNU ld. I'd rather use --version,
20004 # but apparently some variants of GNU ld only accept -v.
20005 # Break only if it was the GNU/non-GNU ld that we prefer.
20006 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
20007 *GNU* | *'with BFD'*)
20008 test "$with_gnu_ld" != no && break
20009 ;;
20010 *)
20011 test "$with_gnu_ld" != yes && break
20012 ;;
20013 esac
20014 fi
20015 done
20016 IFS="$acl_save_ifs"
20017 else
20018 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20019 fi
20020 fi
20021
20022 LD="$acl_cv_path_LD"
20023 if test -n "$LD"; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20025 $as_echo "$LD" >&6; }
20026 else
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029 fi
20030 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20033 if ${acl_cv_prog_gnu_ld+:} false; then :
20034 $as_echo_n "(cached) " >&6
20035 else
20036 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20037 case `$LD -v 2>&1 </dev/null` in
20038 *GNU* | *'with BFD'*)
20039 acl_cv_prog_gnu_ld=yes
20040 ;;
20041 *)
20042 acl_cv_prog_gnu_ld=no
20043 ;;
20044 esac
20045 fi
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20047 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20048 with_gnu_ld=$acl_cv_prog_gnu_ld
20049
20050
20051
20052
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20054 $as_echo_n "checking for shared library run path origin... " >&6; }
20055 if ${acl_cv_rpath+:} false; then :
20056 $as_echo_n "(cached) " >&6
20057 else
20058
20059 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20060 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20061 . ./conftest.sh
20062 rm -f ./conftest.sh
20063 acl_cv_rpath=done
20064
20065 fi
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20067 $as_echo "$acl_cv_rpath" >&6; }
20068 wl="$acl_cv_wl"
20069 acl_libext="$acl_cv_libext"
20070 acl_shlibext="$acl_cv_shlibext"
20071 acl_libname_spec="$acl_cv_libname_spec"
20072 acl_library_names_spec="$acl_cv_library_names_spec"
20073 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20074 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20075 acl_hardcode_direct="$acl_cv_hardcode_direct"
20076 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20077 # Check whether --enable-rpath was given.
20078 if test "${enable_rpath+set}" = set; then :
20079 enableval=$enable_rpath; :
20080 else
20081 enable_rpath=yes
20082 fi
20083
20084
20085
20086
20087 acl_libdirstem=lib
20088 acl_libdirstem2=
20089 case "$host_os" in
20090 solaris*)
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20092 $as_echo_n "checking for 64-bit host... " >&6; }
20093 if ${gl_cv_solaris_64bit+:} false; then :
20094 $as_echo_n "(cached) " >&6
20095 else
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098
20099 #ifdef _LP64
20100 sixtyfour bits
20101 #endif
20102
20103 _ACEOF
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
20106 gl_cv_solaris_64bit=yes
20107 else
20108 gl_cv_solaris_64bit=no
20109 fi
20110 rm -f conftest*
20111
20112
20113 fi
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20115 $as_echo "$gl_cv_solaris_64bit" >&6; }
20116 if test $gl_cv_solaris_64bit = yes; then
20117 acl_libdirstem=lib/64
20118 case "$host_cpu" in
20119 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20120 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
20121 esac
20122 fi
20123 ;;
20124 *)
20125 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20126 if test -n "$searchpath"; then
20127 acl_save_IFS="${IFS= }"; IFS=":"
20128 for searchdir in $searchpath; do
20129 if test -d "$searchdir"; then
20130 case "$searchdir" in
20131 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20132 */../ | */.. )
20133 # Better ignore directories of this form. They are misleading.
20134 ;;
20135 *) searchdir=`cd "$searchdir" && pwd`
20136 case "$searchdir" in
20137 */lib64 ) acl_libdirstem=lib64 ;;
20138 esac ;;
20139 esac
20140 fi
20141 done
20142 IFS="$acl_save_IFS"
20143 fi
20144 ;;
20145 esac
20146 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159 use_additional=yes
20160
20161 acl_save_prefix="$prefix"
20162 prefix="$acl_final_prefix"
20163 acl_save_exec_prefix="$exec_prefix"
20164 exec_prefix="$acl_final_exec_prefix"
20165
20166 eval additional_includedir=\"$includedir\"
20167 eval additional_libdir=\"$libdir\"
20168
20169 exec_prefix="$acl_save_exec_prefix"
20170 prefix="$acl_save_prefix"
20171
20172
20173 # Check whether --with-libiconv-prefix was given.
20174 if test "${with_libiconv_prefix+set}" = set; then :
20175 withval=$with_libiconv_prefix;
20176 if test "X$withval" = "Xno"; then
20177 use_additional=no
20178 else
20179 if test "X$withval" = "X"; then
20180
20181 acl_save_prefix="$prefix"
20182 prefix="$acl_final_prefix"
20183 acl_save_exec_prefix="$exec_prefix"
20184 exec_prefix="$acl_final_exec_prefix"
20185
20186 eval additional_includedir=\"$includedir\"
20187 eval additional_libdir=\"$libdir\"
20188
20189 exec_prefix="$acl_save_exec_prefix"
20190 prefix="$acl_save_prefix"
20191
20192 else
20193 additional_includedir="$withval/include"
20194 additional_libdir="$withval/$acl_libdirstem"
20195 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20196 && ! test -d "$withval/$acl_libdirstem"; then
20197 additional_libdir="$withval/$acl_libdirstem2"
20198 fi
20199 fi
20200 fi
20201
20202 fi
20203
20204 LIBICONV=
20205 LTLIBICONV=
20206 INCICONV=
20207 LIBICONV_PREFIX=
20208 HAVE_LIBICONV=
20209 rpathdirs=
20210 ltrpathdirs=
20211 names_already_handled=
20212 names_next_round='iconv '
20213 while test -n "$names_next_round"; do
20214 names_this_round="$names_next_round"
20215 names_next_round=
20216 for name in $names_this_round; do
20217 already_handled=
20218 for n in $names_already_handled; do
20219 if test "$n" = "$name"; then
20220 already_handled=yes
20221 break
20222 fi
20223 done
20224 if test -z "$already_handled"; then
20225 names_already_handled="$names_already_handled $name"
20226 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20227 eval value=\"\$HAVE_LIB$uppername\"
20228 if test -n "$value"; then
20229 if test "$value" = yes; then
20230 eval value=\"\$LIB$uppername\"
20231 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20232 eval value=\"\$LTLIB$uppername\"
20233 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20234 else
20235 :
20236 fi
20237 else
20238 found_dir=
20239 found_la=
20240 found_so=
20241 found_a=
20242 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20243 if test -n "$acl_shlibext"; then
20244 shrext=".$acl_shlibext" # typically: shrext=.so
20245 else
20246 shrext=
20247 fi
20248 if test $use_additional = yes; then
20249 dir="$additional_libdir"
20250 if test -n "$acl_shlibext"; then
20251 if test -f "$dir/$libname$shrext"; then
20252 found_dir="$dir"
20253 found_so="$dir/$libname$shrext"
20254 else
20255 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20256 ver=`(cd "$dir" && \
20257 for f in "$libname$shrext".*; do echo "$f"; done \
20258 | sed -e "s,^$libname$shrext\\\\.,," \
20259 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20260 | sed 1q ) 2>/dev/null`
20261 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20262 found_dir="$dir"
20263 found_so="$dir/$libname$shrext.$ver"
20264 fi
20265 else
20266 eval library_names=\"$acl_library_names_spec\"
20267 for f in $library_names; do
20268 if test -f "$dir/$f"; then
20269 found_dir="$dir"
20270 found_so="$dir/$f"
20271 break
20272 fi
20273 done
20274 fi
20275 fi
20276 fi
20277 if test "X$found_dir" = "X"; then
20278 if test -f "$dir/$libname.$acl_libext"; then
20279 found_dir="$dir"
20280 found_a="$dir/$libname.$acl_libext"
20281 fi
20282 fi
20283 if test "X$found_dir" != "X"; then
20284 if test -f "$dir/$libname.la"; then
20285 found_la="$dir/$libname.la"
20286 fi
20287 fi
20288 fi
20289 if test "X$found_dir" = "X"; then
20290 for x in $LDFLAGS $LTLIBICONV; do
20291
20292 acl_save_prefix="$prefix"
20293 prefix="$acl_final_prefix"
20294 acl_save_exec_prefix="$exec_prefix"
20295 exec_prefix="$acl_final_exec_prefix"
20296 eval x=\"$x\"
20297 exec_prefix="$acl_save_exec_prefix"
20298 prefix="$acl_save_prefix"
20299
20300 case "$x" in
20301 -L*)
20302 dir=`echo "X$x" | sed -e 's/^X-L//'`
20303 if test -n "$acl_shlibext"; then
20304 if test -f "$dir/$libname$shrext"; then
20305 found_dir="$dir"
20306 found_so="$dir/$libname$shrext"
20307 else
20308 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20309 ver=`(cd "$dir" && \
20310 for f in "$libname$shrext".*; do echo "$f"; done \
20311 | sed -e "s,^$libname$shrext\\\\.,," \
20312 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20313 | sed 1q ) 2>/dev/null`
20314 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20315 found_dir="$dir"
20316 found_so="$dir/$libname$shrext.$ver"
20317 fi
20318 else
20319 eval library_names=\"$acl_library_names_spec\"
20320 for f in $library_names; do
20321 if test -f "$dir/$f"; then
20322 found_dir="$dir"
20323 found_so="$dir/$f"
20324 break
20325 fi
20326 done
20327 fi
20328 fi
20329 fi
20330 if test "X$found_dir" = "X"; then
20331 if test -f "$dir/$libname.$acl_libext"; then
20332 found_dir="$dir"
20333 found_a="$dir/$libname.$acl_libext"
20334 fi
20335 fi
20336 if test "X$found_dir" != "X"; then
20337 if test -f "$dir/$libname.la"; then
20338 found_la="$dir/$libname.la"
20339 fi
20340 fi
20341 ;;
20342 esac
20343 if test "X$found_dir" != "X"; then
20344 break
20345 fi
20346 done
20347 fi
20348 if test "X$found_dir" != "X"; then
20349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20350 if test "X$found_so" != "X"; then
20351 if test "$enable_rpath" = no \
20352 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20353 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20354 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20355 else
20356 haveit=
20357 for x in $ltrpathdirs; do
20358 if test "X$x" = "X$found_dir"; then
20359 haveit=yes
20360 break
20361 fi
20362 done
20363 if test -z "$haveit"; then
20364 ltrpathdirs="$ltrpathdirs $found_dir"
20365 fi
20366 if test "$acl_hardcode_direct" = yes; then
20367 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20368 else
20369 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20371 haveit=
20372 for x in $rpathdirs; do
20373 if test "X$x" = "X$found_dir"; then
20374 haveit=yes
20375 break
20376 fi
20377 done
20378 if test -z "$haveit"; then
20379 rpathdirs="$rpathdirs $found_dir"
20380 fi
20381 else
20382 haveit=
20383 for x in $LDFLAGS $LIBICONV; do
20384
20385 acl_save_prefix="$prefix"
20386 prefix="$acl_final_prefix"
20387 acl_save_exec_prefix="$exec_prefix"
20388 exec_prefix="$acl_final_exec_prefix"
20389 eval x=\"$x\"
20390 exec_prefix="$acl_save_exec_prefix"
20391 prefix="$acl_save_prefix"
20392
20393 if test "X$x" = "X-L$found_dir"; then
20394 haveit=yes
20395 break
20396 fi
20397 done
20398 if test -z "$haveit"; then
20399 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20400 fi
20401 if test "$acl_hardcode_minus_L" != no; then
20402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20403 else
20404 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20405 fi
20406 fi
20407 fi
20408 fi
20409 else
20410 if test "X$found_a" != "X"; then
20411 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20412 else
20413 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20414 fi
20415 fi
20416 additional_includedir=
20417 case "$found_dir" in
20418 */$acl_libdirstem | */$acl_libdirstem/)
20419 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20420 if test "$name" = 'iconv'; then
20421 LIBICONV_PREFIX="$basedir"
20422 fi
20423 additional_includedir="$basedir/include"
20424 ;;
20425 */$acl_libdirstem2 | */$acl_libdirstem2/)
20426 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20427 if test "$name" = 'iconv'; then
20428 LIBICONV_PREFIX="$basedir"
20429 fi
20430 additional_includedir="$basedir/include"
20431 ;;
20432 esac
20433 if test "X$additional_includedir" != "X"; then
20434 if test "X$additional_includedir" != "X/usr/include"; then
20435 haveit=
20436 if test "X$additional_includedir" = "X/usr/local/include"; then
20437 if test -n "$GCC"; then
20438 case $host_os in
20439 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20440 esac
20441 fi
20442 fi
20443 if test -z "$haveit"; then
20444 for x in $CPPFLAGS $INCICONV; do
20445
20446 acl_save_prefix="$prefix"
20447 prefix="$acl_final_prefix"
20448 acl_save_exec_prefix="$exec_prefix"
20449 exec_prefix="$acl_final_exec_prefix"
20450 eval x=\"$x\"
20451 exec_prefix="$acl_save_exec_prefix"
20452 prefix="$acl_save_prefix"
20453
20454 if test "X$x" = "X-I$additional_includedir"; then
20455 haveit=yes
20456 break
20457 fi
20458 done
20459 if test -z "$haveit"; then
20460 if test -d "$additional_includedir"; then
20461 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20462 fi
20463 fi
20464 fi
20465 fi
20466 fi
20467 if test -n "$found_la"; then
20468 save_libdir="$libdir"
20469 case "$found_la" in
20470 */* | *\\*) . "$found_la" ;;
20471 *) . "./$found_la" ;;
20472 esac
20473 libdir="$save_libdir"
20474 for dep in $dependency_libs; do
20475 case "$dep" in
20476 -L*)
20477 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20478 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20479 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20480 haveit=
20481 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20482 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20483 if test -n "$GCC"; then
20484 case $host_os in
20485 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20486 esac
20487 fi
20488 fi
20489 if test -z "$haveit"; then
20490 haveit=
20491 for x in $LDFLAGS $LIBICONV; do
20492
20493 acl_save_prefix="$prefix"
20494 prefix="$acl_final_prefix"
20495 acl_save_exec_prefix="$exec_prefix"
20496 exec_prefix="$acl_final_exec_prefix"
20497 eval x=\"$x\"
20498 exec_prefix="$acl_save_exec_prefix"
20499 prefix="$acl_save_prefix"
20500
20501 if test "X$x" = "X-L$additional_libdir"; then
20502 haveit=yes
20503 break
20504 fi
20505 done
20506 if test -z "$haveit"; then
20507 if test -d "$additional_libdir"; then
20508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20509 fi
20510 fi
20511 haveit=
20512 for x in $LDFLAGS $LTLIBICONV; do
20513
20514 acl_save_prefix="$prefix"
20515 prefix="$acl_final_prefix"
20516 acl_save_exec_prefix="$exec_prefix"
20517 exec_prefix="$acl_final_exec_prefix"
20518 eval x=\"$x\"
20519 exec_prefix="$acl_save_exec_prefix"
20520 prefix="$acl_save_prefix"
20521
20522 if test "X$x" = "X-L$additional_libdir"; then
20523 haveit=yes
20524 break
20525 fi
20526 done
20527 if test -z "$haveit"; then
20528 if test -d "$additional_libdir"; then
20529 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20530 fi
20531 fi
20532 fi
20533 fi
20534 ;;
20535 -R*)
20536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20537 if test "$enable_rpath" != no; then
20538 haveit=
20539 for x in $rpathdirs; do
20540 if test "X$x" = "X$dir"; then
20541 haveit=yes
20542 break
20543 fi
20544 done
20545 if test -z "$haveit"; then
20546 rpathdirs="$rpathdirs $dir"
20547 fi
20548 haveit=
20549 for x in $ltrpathdirs; do
20550 if test "X$x" = "X$dir"; then
20551 haveit=yes
20552 break
20553 fi
20554 done
20555 if test -z "$haveit"; then
20556 ltrpathdirs="$ltrpathdirs $dir"
20557 fi
20558 fi
20559 ;;
20560 -l*)
20561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20562 ;;
20563 *.la)
20564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20565 ;;
20566 *)
20567 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20569 ;;
20570 esac
20571 done
20572 fi
20573 else
20574 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20576 fi
20577 fi
20578 fi
20579 done
20580 done
20581 if test "X$rpathdirs" != "X"; then
20582 if test -n "$acl_hardcode_libdir_separator"; then
20583 alldirs=
20584 for found_dir in $rpathdirs; do
20585 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20586 done
20587 acl_save_libdir="$libdir"
20588 libdir="$alldirs"
20589 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20590 libdir="$acl_save_libdir"
20591 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20592 else
20593 for found_dir in $rpathdirs; do
20594 acl_save_libdir="$libdir"
20595 libdir="$found_dir"
20596 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20597 libdir="$acl_save_libdir"
20598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20599 done
20600 fi
20601 fi
20602 if test "X$ltrpathdirs" != "X"; then
20603 for found_dir in $ltrpathdirs; do
20604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20605 done
20606 fi
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619 am_save_CPPFLAGS="$CPPFLAGS"
20620
20621 for element in $INCICONV; do
20622 haveit=
20623 for x in $CPPFLAGS; do
20624
20625 acl_save_prefix="$prefix"
20626 prefix="$acl_final_prefix"
20627 acl_save_exec_prefix="$exec_prefix"
20628 exec_prefix="$acl_final_exec_prefix"
20629 eval x=\"$x\"
20630 exec_prefix="$acl_save_exec_prefix"
20631 prefix="$acl_save_prefix"
20632
20633 if test "X$x" = "X$element"; then
20634 haveit=yes
20635 break
20636 fi
20637 done
20638 if test -z "$haveit"; then
20639 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20640 fi
20641 done
20642
20643
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20645 $as_echo_n "checking for iconv... " >&6; }
20646 if ${am_cv_func_iconv+:} false; then :
20647 $as_echo_n "(cached) " >&6
20648 else
20649
20650 am_cv_func_iconv="no, consider installing GNU libiconv"
20651 am_cv_lib_iconv=no
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20654
20655 #include <stdlib.h>
20656 #include <iconv.h>
20657
20658 int
20659 main ()
20660 {
20661 iconv_t cd = iconv_open("","");
20662 iconv(cd,NULL,NULL,NULL,NULL);
20663 iconv_close(cd);
20664 ;
20665 return 0;
20666 }
20667 _ACEOF
20668 if ac_fn_c_try_link "$LINENO"; then :
20669 am_cv_func_iconv=yes
20670 fi
20671 rm -f core conftest.err conftest.$ac_objext \
20672 conftest$ac_exeext conftest.$ac_ext
20673 if test "$am_cv_func_iconv" != yes; then
20674 am_save_LIBS="$LIBS"
20675 LIBS="$LIBS $LIBICONV"
20676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h. */
20678
20679 #include <stdlib.h>
20680 #include <iconv.h>
20681
20682 int
20683 main ()
20684 {
20685 iconv_t cd = iconv_open("","");
20686 iconv(cd,NULL,NULL,NULL,NULL);
20687 iconv_close(cd);
20688 ;
20689 return 0;
20690 }
20691 _ACEOF
20692 if ac_fn_c_try_link "$LINENO"; then :
20693 am_cv_lib_iconv=yes
20694 am_cv_func_iconv=yes
20695 fi
20696 rm -f core conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext conftest.$ac_ext
20698 LIBS="$am_save_LIBS"
20699 fi
20700
20701 fi
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20703 $as_echo "$am_cv_func_iconv" >&6; }
20704 if test "$am_cv_func_iconv" = yes; then
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20706 $as_echo_n "checking for working iconv... " >&6; }
20707 if ${am_cv_func_iconv_works+:} false; then :
20708 $as_echo_n "(cached) " >&6
20709 else
20710
20711 am_save_LIBS="$LIBS"
20712 if test $am_cv_lib_iconv = yes; then
20713 LIBS="$LIBS $LIBICONV"
20714 fi
20715 if test "$cross_compiling" = yes; then :
20716
20717 case "$host_os" in
20718 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20719 *) am_cv_func_iconv_works="guessing yes" ;;
20720 esac
20721
20722 else
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h. */
20725
20726 #include <iconv.h>
20727 #include <string.h>
20728 int main ()
20729 {
20730 int result = 0;
20731 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20732 returns. */
20733 {
20734 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20735 if (cd_utf8_to_88591 != (iconv_t)(-1))
20736 {
20737 static const char input[] = "\342\202\254"; /* EURO SIGN */
20738 char buf[10];
20739 const char *inptr = input;
20740 size_t inbytesleft = strlen (input);
20741 char *outptr = buf;
20742 size_t outbytesleft = sizeof (buf);
20743 size_t res = iconv (cd_utf8_to_88591,
20744 (char **) &inptr, &inbytesleft,
20745 &outptr, &outbytesleft);
20746 if (res == 0)
20747 result |= 1;
20748 iconv_close (cd_utf8_to_88591);
20749 }
20750 }
20751 /* Test against Solaris 10 bug: Failures are not distinguishable from
20752 successful returns. */
20753 {
20754 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20755 if (cd_ascii_to_88591 != (iconv_t)(-1))
20756 {
20757 static const char input[] = "\263";
20758 char buf[10];
20759 const char *inptr = input;
20760 size_t inbytesleft = strlen (input);
20761 char *outptr = buf;
20762 size_t outbytesleft = sizeof (buf);
20763 size_t res = iconv (cd_ascii_to_88591,
20764 (char **) &inptr, &inbytesleft,
20765 &outptr, &outbytesleft);
20766 if (res == 0)
20767 result |= 2;
20768 iconv_close (cd_ascii_to_88591);
20769 }
20770 }
20771 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20772 {
20773 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20774 if (cd_88591_to_utf8 != (iconv_t)(-1))
20775 {
20776 static const char input[] = "\304";
20777 static char buf[2] = { (char)0xDE, (char)0xAD };
20778 const char *inptr = input;
20779 size_t inbytesleft = 1;
20780 char *outptr = buf;
20781 size_t outbytesleft = 1;
20782 size_t res = iconv (cd_88591_to_utf8,
20783 (char **) &inptr, &inbytesleft,
20784 &outptr, &outbytesleft);
20785 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20786 result |= 4;
20787 iconv_close (cd_88591_to_utf8);
20788 }
20789 }
20790 #if 0 /* This bug could be worked around by the caller. */
20791 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20792 {
20793 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20794 if (cd_88591_to_utf8 != (iconv_t)(-1))
20795 {
20796 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20797 char buf[50];
20798 const char *inptr = input;
20799 size_t inbytesleft = strlen (input);
20800 char *outptr = buf;
20801 size_t outbytesleft = sizeof (buf);
20802 size_t res = iconv (cd_88591_to_utf8,
20803 (char **) &inptr, &inbytesleft,
20804 &outptr, &outbytesleft);
20805 if ((int)res > 0)
20806 result |= 8;
20807 iconv_close (cd_88591_to_utf8);
20808 }
20809 }
20810 #endif
20811 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20812 provided. */
20813 if (/* Try standardized names. */
20814 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20815 /* Try IRIX, OSF/1 names. */
20816 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20817 /* Try AIX names. */
20818 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20819 /* Try HP-UX names. */
20820 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20821 result |= 16;
20822 return result;
20823 }
20824 _ACEOF
20825 if ac_fn_c_try_run "$LINENO"; then :
20826 am_cv_func_iconv_works=yes
20827 else
20828 am_cv_func_iconv_works=no
20829 fi
20830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20831 conftest.$ac_objext conftest.beam conftest.$ac_ext
20832 fi
20833
20834 LIBS="$am_save_LIBS"
20835
20836 fi
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20838 $as_echo "$am_cv_func_iconv_works" >&6; }
20839 case "$am_cv_func_iconv_works" in
20840 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20841 *) am_func_iconv=yes ;;
20842 esac
20843 else
20844 am_func_iconv=no am_cv_lib_iconv=no
20845 fi
20846 if test "$am_func_iconv" = yes; then
20847
20848 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20849
20850 fi
20851 if test "$am_cv_lib_iconv" = yes; then
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20853 $as_echo_n "checking how to link with libiconv... " >&6; }
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20855 $as_echo "$LIBICONV" >&6; }
20856 else
20857 CPPFLAGS="$am_save_CPPFLAGS"
20858 LIBICONV=
20859 LTLIBICONV=
20860 fi
20861
20862
20863
20864 if test "$am_cv_func_iconv" = yes; then
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20866 $as_echo_n "checking for iconv declaration... " >&6; }
20867 if ${am_cv_proto_iconv+:} false; then :
20868 $as_echo_n "(cached) " >&6
20869 else
20870
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20873
20874 #include <stdlib.h>
20875 #include <iconv.h>
20876 extern
20877 #ifdef __cplusplus
20878 "C"
20879 #endif
20880 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20881 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20882 #else
20883 size_t iconv();
20884 #endif
20885
20886 int
20887 main ()
20888 {
20889
20890 ;
20891 return 0;
20892 }
20893 _ACEOF
20894 if ac_fn_c_try_compile "$LINENO"; then :
20895 am_cv_proto_iconv_arg1=""
20896 else
20897 am_cv_proto_iconv_arg1="const"
20898 fi
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20901 fi
20902
20903 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20905 $am_cv_proto_iconv" >&5
20906 $as_echo "
20907 $am_cv_proto_iconv" >&6; }
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define ICONV_CONST $am_cv_proto_iconv_arg1
20911 _ACEOF
20912
20913
20914 fi
20915
20916 case $am_cv_func_iconv in #(
20917 yes) :
20918 ;; #(
20919 *) :
20920 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
20921 esac
20922 ac_ext=cpp
20923 ac_cpp='$CXXCPP $CPPFLAGS'
20924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20927
20928
20929
20930 SO=$acl_shlibext
20931
20932
20933 if test "x$CY_EXECUTE" = x1; then :
20934
20935 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20936 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20937
20938 if test -n "$ac_tool_prefix"; then
20939 for ac_prog in lipo
20940 do
20941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20944 $as_echo_n "checking for $ac_word... " >&6; }
20945 if ${ac_cv_prog__LIPO+:} false; then :
20946 $as_echo_n "(cached) " >&6
20947 else
20948 if test -n "$_LIPO"; then
20949 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20950 else
20951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20952 for as_dir in $PATH
20953 do
20954 IFS=$as_save_IFS
20955 test -z "$as_dir" && as_dir=.
20956 for ac_exec_ext in '' $ac_executable_extensions; do
20957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20958 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20960 break 2
20961 fi
20962 done
20963 done
20964 IFS=$as_save_IFS
20965
20966 fi
20967 fi
20968 _LIPO=$ac_cv_prog__LIPO
20969 if test -n "$_LIPO"; then
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20971 $as_echo "$_LIPO" >&6; }
20972 else
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20974 $as_echo "no" >&6; }
20975 fi
20976
20977
20978 test -n "$_LIPO" && break
20979 done
20980 fi
20981 if test -z "$_LIPO"; then
20982 ac_ct__LIPO=$_LIPO
20983 for ac_prog in lipo
20984 do
20985 # Extract the first word of "$ac_prog", so it can be a program name with args.
20986 set dummy $ac_prog; ac_word=$2
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20988 $as_echo_n "checking for $ac_word... " >&6; }
20989 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20990 $as_echo_n "(cached) " >&6
20991 else
20992 if test -n "$ac_ct__LIPO"; then
20993 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20994 else
20995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20996 for as_dir in $PATH
20997 do
20998 IFS=$as_save_IFS
20999 test -z "$as_dir" && as_dir=.
21000 for ac_exec_ext in '' $ac_executable_extensions; do
21001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21002 ac_cv_prog_ac_ct__LIPO="$ac_prog"
21003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21004 break 2
21005 fi
21006 done
21007 done
21008 IFS=$as_save_IFS
21009
21010 fi
21011 fi
21012 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21013 if test -n "$ac_ct__LIPO"; then
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21015 $as_echo "$ac_ct__LIPO" >&6; }
21016 else
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21018 $as_echo "no" >&6; }
21019 fi
21020
21021
21022 test -n "$ac_ct__LIPO" && break
21023 done
21024
21025 if test "x$ac_ct__LIPO" = x; then
21026 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
21027 else
21028 case $cross_compiling:$ac_tool_warned in
21029 yes:)
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21032 ac_tool_warned=yes ;;
21033 esac
21034 _LIPO=$ac_ct__LIPO
21035 fi
21036 fi
21037
21038 if test -n "$ac_tool_prefix"; then
21039 for ac_prog in nm
21040 do
21041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21044 $as_echo_n "checking for $ac_word... " >&6; }
21045 if ${ac_cv_prog__NM+:} false; then :
21046 $as_echo_n "(cached) " >&6
21047 else
21048 if test -n "$_NM"; then
21049 ac_cv_prog__NM="$_NM" # Let the user override the test.
21050 else
21051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21052 for as_dir in $PATH
21053 do
21054 IFS=$as_save_IFS
21055 test -z "$as_dir" && as_dir=.
21056 for ac_exec_ext in '' $ac_executable_extensions; do
21057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21058 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
21059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21060 break 2
21061 fi
21062 done
21063 done
21064 IFS=$as_save_IFS
21065
21066 fi
21067 fi
21068 _NM=$ac_cv_prog__NM
21069 if test -n "$_NM"; then
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21071 $as_echo "$_NM" >&6; }
21072 else
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21074 $as_echo "no" >&6; }
21075 fi
21076
21077
21078 test -n "$_NM" && break
21079 done
21080 fi
21081 if test -z "$_NM"; then
21082 ac_ct__NM=$_NM
21083 for ac_prog in nm
21084 do
21085 # Extract the first word of "$ac_prog", so it can be a program name with args.
21086 set dummy $ac_prog; ac_word=$2
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21088 $as_echo_n "checking for $ac_word... " >&6; }
21089 if ${ac_cv_prog_ac_ct__NM+:} false; then :
21090 $as_echo_n "(cached) " >&6
21091 else
21092 if test -n "$ac_ct__NM"; then
21093 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
21094 else
21095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21096 for as_dir in $PATH
21097 do
21098 IFS=$as_save_IFS
21099 test -z "$as_dir" && as_dir=.
21100 for ac_exec_ext in '' $ac_executable_extensions; do
21101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21102 ac_cv_prog_ac_ct__NM="$ac_prog"
21103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21104 break 2
21105 fi
21106 done
21107 done
21108 IFS=$as_save_IFS
21109
21110 fi
21111 fi
21112 ac_ct__NM=$ac_cv_prog_ac_ct__NM
21113 if test -n "$ac_ct__NM"; then
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21115 $as_echo "$ac_ct__NM" >&6; }
21116 else
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118 $as_echo "no" >&6; }
21119 fi
21120
21121
21122 test -n "$ac_ct__NM" && break
21123 done
21124
21125 if test "x$ac_ct__NM" = x; then
21126 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
21127 else
21128 case $cross_compiling:$ac_tool_warned in
21129 yes:)
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21132 ac_tool_warned=yes ;;
21133 esac
21134 _NM=$ac_ct__NM
21135 fi
21136 fi
21137
21138 if test -n "$ac_tool_prefix"; then
21139 for ac_prog in otool
21140 do
21141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21144 $as_echo_n "checking for $ac_word... " >&6; }
21145 if ${ac_cv_prog__OTOOL+:} false; then :
21146 $as_echo_n "(cached) " >&6
21147 else
21148 if test -n "$_OTOOL"; then
21149 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
21150 else
21151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21152 for as_dir in $PATH
21153 do
21154 IFS=$as_save_IFS
21155 test -z "$as_dir" && as_dir=.
21156 for ac_exec_ext in '' $ac_executable_extensions; do
21157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21158 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
21159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21160 break 2
21161 fi
21162 done
21163 done
21164 IFS=$as_save_IFS
21165
21166 fi
21167 fi
21168 _OTOOL=$ac_cv_prog__OTOOL
21169 if test -n "$_OTOOL"; then
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21171 $as_echo "$_OTOOL" >&6; }
21172 else
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21174 $as_echo "no" >&6; }
21175 fi
21176
21177
21178 test -n "$_OTOOL" && break
21179 done
21180 fi
21181 if test -z "$_OTOOL"; then
21182 ac_ct__OTOOL=$_OTOOL
21183 for ac_prog in otool
21184 do
21185 # Extract the first word of "$ac_prog", so it can be a program name with args.
21186 set dummy $ac_prog; ac_word=$2
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21188 $as_echo_n "checking for $ac_word... " >&6; }
21189 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
21190 $as_echo_n "(cached) " >&6
21191 else
21192 if test -n "$ac_ct__OTOOL"; then
21193 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
21194 else
21195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21196 for as_dir in $PATH
21197 do
21198 IFS=$as_save_IFS
21199 test -z "$as_dir" && as_dir=.
21200 for ac_exec_ext in '' $ac_executable_extensions; do
21201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21202 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
21203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21204 break 2
21205 fi
21206 done
21207 done
21208 IFS=$as_save_IFS
21209
21210 fi
21211 fi
21212 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21213 if test -n "$ac_ct__OTOOL"; then
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21215 $as_echo "$ac_ct__OTOOL" >&6; }
21216 else
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21218 $as_echo "no" >&6; }
21219 fi
21220
21221
21222 test -n "$ac_ct__OTOOL" && break
21223 done
21224
21225 if test "x$ac_ct__OTOOL" = x; then
21226 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
21227 else
21228 case $cross_compiling:$ac_tool_warned in
21229 yes:)
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21232 ac_tool_warned=yes ;;
21233 esac
21234 _OTOOL=$ac_ct__OTOOL
21235 fi
21236 fi
21237
21238 CY_ATTACH_GROUP=procmod
21239
21240 CY_MACH=1
21241
21242 fi
21243
21244
21245 fi
21246 if test "x$CY_MACH" = x1; then
21247 CY_MACH_TRUE=
21248 CY_MACH_FALSE='#'
21249 else
21250 CY_MACH_TRUE='#'
21251 CY_MACH_FALSE=
21252 fi
21253
21254
21255 ac_config_files="$ac_config_files Makefile"
21256
21257 cat >confcache <<\_ACEOF
21258 # This file is a shell script that caches the results of configure
21259 # tests run on this system so they can be shared between configure
21260 # scripts and configure runs, see configure's option --config-cache.
21261 # It is not useful on other systems. If it contains results you don't
21262 # want to keep, you may remove or edit it.
21263 #
21264 # config.status only pays attention to the cache file if you give it
21265 # the --recheck option to rerun configure.
21266 #
21267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21269 # following values.
21270
21271 _ACEOF
21272
21273 # The following way of writing the cache mishandles newlines in values,
21274 # but we know of no workaround that is simple, portable, and efficient.
21275 # So, we kill variables containing newlines.
21276 # Ultrix sh set writes to stderr and can't be redirected directly,
21277 # and sets the high bit in the cache file unless we assign to the vars.
21278 (
21279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21280 eval ac_val=\$$ac_var
21281 case $ac_val in #(
21282 *${as_nl}*)
21283 case $ac_var in #(
21284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21286 esac
21287 case $ac_var in #(
21288 _ | IFS | as_nl) ;; #(
21289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21290 *) { eval $ac_var=; unset $ac_var;} ;;
21291 esac ;;
21292 esac
21293 done
21294
21295 (set) 2>&1 |
21296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21297 *${as_nl}ac_space=\ *)
21298 # `set' does not quote correctly, so add quotes: double-quote
21299 # substitution turns \\\\ into \\, and sed turns \\ into \.
21300 sed -n \
21301 "s/'/'\\\\''/g;
21302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21303 ;; #(
21304 *)
21305 # `set' quotes correctly as required by POSIX, so do not add quotes.
21306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21307 ;;
21308 esac |
21309 sort
21310 ) |
21311 sed '
21312 /^ac_cv_env_/b end
21313 t clear
21314 :clear
21315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21316 t end
21317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21318 :end' >>confcache
21319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21320 if test -w "$cache_file"; then
21321 if test "x$cache_file" != "x/dev/null"; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21323 $as_echo "$as_me: updating cache $cache_file" >&6;}
21324 if test ! -f "$cache_file" || test -h "$cache_file"; then
21325 cat confcache >"$cache_file"
21326 else
21327 case $cache_file in #(
21328 */* | ?:*)
21329 mv -f confcache "$cache_file"$$ &&
21330 mv -f "$cache_file"$$ "$cache_file" ;; #(
21331 *)
21332 mv -f confcache "$cache_file" ;;
21333 esac
21334 fi
21335 fi
21336 else
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21339 fi
21340 fi
21341 rm -f confcache
21342
21343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21344 # Let make expand exec_prefix.
21345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21346
21347 DEFS=-DHAVE_CONFIG_H
21348
21349 ac_libobjs=
21350 ac_ltlibobjs=
21351 U=
21352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21353 # 1. Remove the extension, and $U if already installed.
21354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21355 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21357 # will be set to the directory where LIBOBJS objects are built.
21358 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21359 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21360 done
21361 LIBOBJS=$ac_libobjs
21362
21363 LTLIBOBJS=$ac_ltlibobjs
21364
21365
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21367 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21368 if test -n "$am_sleep_pid"; then
21369 # Hide warnings about reused PIDs.
21370 wait $am_sleep_pid 2>/dev/null
21371 fi
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21373 $as_echo "done" >&6; }
21374 if test -n "$EXEEXT"; then
21375 am__EXEEXT_TRUE=
21376 am__EXEEXT_FALSE='#'
21377 else
21378 am__EXEEXT_TRUE='#'
21379 am__EXEEXT_FALSE=
21380 fi
21381
21382 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21383 as_fn_error $? "conditional \"AMDEP\" was never defined.
21384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21385 fi
21386 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21387 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21389 fi
21390 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21391 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21393 fi
21394 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21395 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21397 fi
21398 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21399 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21401 fi
21402 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21403 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21405 fi
21406 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21407 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21409 fi
21410
21411 : "${CONFIG_STATUS=./config.status}"
21412 ac_write_fail=0
21413 ac_clean_files_save=$ac_clean_files
21414 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21416 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21417 as_write_fail=0
21418 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21419 #! $SHELL
21420 # Generated by $as_me.
21421 # Run this file to recreate the current configuration.
21422 # Compiler output produced by configure, useful for debugging
21423 # configure, is in config.log if it exists.
21424
21425 debug=false
21426 ac_cs_recheck=false
21427 ac_cs_silent=false
21428
21429 SHELL=\${CONFIG_SHELL-$SHELL}
21430 export SHELL
21431 _ASEOF
21432 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21433 ## -------------------- ##
21434 ## M4sh Initialization. ##
21435 ## -------------------- ##
21436
21437 # Be more Bourne compatible
21438 DUALCASE=1; export DUALCASE # for MKS sh
21439 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21440 emulate sh
21441 NULLCMD=:
21442 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21443 # is contrary to our usage. Disable this feature.
21444 alias -g '${1+"$@"}'='"$@"'
21445 setopt NO_GLOB_SUBST
21446 else
21447 case `(set -o) 2>/dev/null` in #(
21448 *posix*) :
21449 set -o posix ;; #(
21450 *) :
21451 ;;
21452 esac
21453 fi
21454
21455
21456 as_nl='
21457 '
21458 export as_nl
21459 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21460 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21463 # Prefer a ksh shell builtin over an external printf program on Solaris,
21464 # but without wasting forks for bash or zsh.
21465 if test -z "$BASH_VERSION$ZSH_VERSION" \
21466 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21467 as_echo='print -r --'
21468 as_echo_n='print -rn --'
21469 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21470 as_echo='printf %s\n'
21471 as_echo_n='printf %s'
21472 else
21473 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21474 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21475 as_echo_n='/usr/ucb/echo -n'
21476 else
21477 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21478 as_echo_n_body='eval
21479 arg=$1;
21480 case $arg in #(
21481 *"$as_nl"*)
21482 expr "X$arg" : "X\\(.*\\)$as_nl";
21483 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21484 esac;
21485 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21486 '
21487 export as_echo_n_body
21488 as_echo_n='sh -c $as_echo_n_body as_echo'
21489 fi
21490 export as_echo_body
21491 as_echo='sh -c $as_echo_body as_echo'
21492 fi
21493
21494 # The user is always right.
21495 if test "${PATH_SEPARATOR+set}" != set; then
21496 PATH_SEPARATOR=:
21497 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21498 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21499 PATH_SEPARATOR=';'
21500 }
21501 fi
21502
21503
21504 # IFS
21505 # We need space, tab and new line, in precisely that order. Quoting is
21506 # there to prevent editors from complaining about space-tab.
21507 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21508 # splitting by setting IFS to empty value.)
21509 IFS=" "" $as_nl"
21510
21511 # Find who we are. Look in the path if we contain no directory separator.
21512 as_myself=
21513 case $0 in #((
21514 *[\\/]* ) as_myself=$0 ;;
21515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21516 for as_dir in $PATH
21517 do
21518 IFS=$as_save_IFS
21519 test -z "$as_dir" && as_dir=.
21520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21521 done
21522 IFS=$as_save_IFS
21523
21524 ;;
21525 esac
21526 # We did not find ourselves, most probably we were run as `sh COMMAND'
21527 # in which case we are not to be found in the path.
21528 if test "x$as_myself" = x; then
21529 as_myself=$0
21530 fi
21531 if test ! -f "$as_myself"; then
21532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21533 exit 1
21534 fi
21535
21536 # Unset variables that we do not need and which cause bugs (e.g. in
21537 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21538 # suppresses any "Segmentation fault" message there. '((' could
21539 # trigger a bug in pdksh 5.2.14.
21540 for as_var in BASH_ENV ENV MAIL MAILPATH
21541 do eval test x\${$as_var+set} = xset \
21542 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21543 done
21544 PS1='$ '
21545 PS2='> '
21546 PS4='+ '
21547
21548 # NLS nuisances.
21549 LC_ALL=C
21550 export LC_ALL
21551 LANGUAGE=C
21552 export LANGUAGE
21553
21554 # CDPATH.
21555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21556
21557
21558 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21559 # ----------------------------------------
21560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21562 # script with STATUS, using 1 if that was 0.
21563 as_fn_error ()
21564 {
21565 as_status=$1; test $as_status -eq 0 && as_status=1
21566 if test "$4"; then
21567 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21569 fi
21570 $as_echo "$as_me: error: $2" >&2
21571 as_fn_exit $as_status
21572 } # as_fn_error
21573
21574
21575 # as_fn_set_status STATUS
21576 # -----------------------
21577 # Set $? to STATUS, without forking.
21578 as_fn_set_status ()
21579 {
21580 return $1
21581 } # as_fn_set_status
21582
21583 # as_fn_exit STATUS
21584 # -----------------
21585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21586 as_fn_exit ()
21587 {
21588 set +e
21589 as_fn_set_status $1
21590 exit $1
21591 } # as_fn_exit
21592
21593 # as_fn_unset VAR
21594 # ---------------
21595 # Portably unset VAR.
21596 as_fn_unset ()
21597 {
21598 { eval $1=; unset $1;}
21599 }
21600 as_unset=as_fn_unset
21601 # as_fn_append VAR VALUE
21602 # ----------------------
21603 # Append the text in VALUE to the end of the definition contained in VAR. Take
21604 # advantage of any shell optimizations that allow amortized linear growth over
21605 # repeated appends, instead of the typical quadratic growth present in naive
21606 # implementations.
21607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21608 eval 'as_fn_append ()
21609 {
21610 eval $1+=\$2
21611 }'
21612 else
21613 as_fn_append ()
21614 {
21615 eval $1=\$$1\$2
21616 }
21617 fi # as_fn_append
21618
21619 # as_fn_arith ARG...
21620 # ------------------
21621 # Perform arithmetic evaluation on the ARGs, and store the result in the
21622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21623 # must be portable across $(()) and expr.
21624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21625 eval 'as_fn_arith ()
21626 {
21627 as_val=$(( $* ))
21628 }'
21629 else
21630 as_fn_arith ()
21631 {
21632 as_val=`expr "$@" || test $? -eq 1`
21633 }
21634 fi # as_fn_arith
21635
21636
21637 if expr a : '\(a\)' >/dev/null 2>&1 &&
21638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21639 as_expr=expr
21640 else
21641 as_expr=false
21642 fi
21643
21644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21645 as_basename=basename
21646 else
21647 as_basename=false
21648 fi
21649
21650 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21651 as_dirname=dirname
21652 else
21653 as_dirname=false
21654 fi
21655
21656 as_me=`$as_basename -- "$0" ||
21657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21658 X"$0" : 'X\(//\)$' \| \
21659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21660 $as_echo X/"$0" |
21661 sed '/^.*\/\([^/][^/]*\)\/*$/{
21662 s//\1/
21663 q
21664 }
21665 /^X\/\(\/\/\)$/{
21666 s//\1/
21667 q
21668 }
21669 /^X\/\(\/\).*/{
21670 s//\1/
21671 q
21672 }
21673 s/.*/./; q'`
21674
21675 # Avoid depending upon Character Ranges.
21676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21679 as_cr_digits='0123456789'
21680 as_cr_alnum=$as_cr_Letters$as_cr_digits
21681
21682 ECHO_C= ECHO_N= ECHO_T=
21683 case `echo -n x` in #(((((
21684 -n*)
21685 case `echo 'xy\c'` in
21686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21687 xy) ECHO_C='\c';;
21688 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21689 ECHO_T=' ';;
21690 esac;;
21691 *)
21692 ECHO_N='-n';;
21693 esac
21694
21695 rm -f conf$$ conf$$.exe conf$$.file
21696 if test -d conf$$.dir; then
21697 rm -f conf$$.dir/conf$$.file
21698 else
21699 rm -f conf$$.dir
21700 mkdir conf$$.dir 2>/dev/null
21701 fi
21702 if (echo >conf$$.file) 2>/dev/null; then
21703 if ln -s conf$$.file conf$$ 2>/dev/null; then
21704 as_ln_s='ln -s'
21705 # ... but there are two gotchas:
21706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21708 # In both cases, we have to default to `cp -pR'.
21709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21710 as_ln_s='cp -pR'
21711 elif ln conf$$.file conf$$ 2>/dev/null; then
21712 as_ln_s=ln
21713 else
21714 as_ln_s='cp -pR'
21715 fi
21716 else
21717 as_ln_s='cp -pR'
21718 fi
21719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21720 rmdir conf$$.dir 2>/dev/null
21721
21722
21723 # as_fn_mkdir_p
21724 # -------------
21725 # Create "$as_dir" as a directory, including parents if necessary.
21726 as_fn_mkdir_p ()
21727 {
21728
21729 case $as_dir in #(
21730 -*) as_dir=./$as_dir;;
21731 esac
21732 test -d "$as_dir" || eval $as_mkdir_p || {
21733 as_dirs=
21734 while :; do
21735 case $as_dir in #(
21736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21737 *) as_qdir=$as_dir;;
21738 esac
21739 as_dirs="'$as_qdir' $as_dirs"
21740 as_dir=`$as_dirname -- "$as_dir" ||
21741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21742 X"$as_dir" : 'X\(//\)[^/]' \| \
21743 X"$as_dir" : 'X\(//\)$' \| \
21744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21745 $as_echo X"$as_dir" |
21746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21747 s//\1/
21748 q
21749 }
21750 /^X\(\/\/\)[^/].*/{
21751 s//\1/
21752 q
21753 }
21754 /^X\(\/\/\)$/{
21755 s//\1/
21756 q
21757 }
21758 /^X\(\/\).*/{
21759 s//\1/
21760 q
21761 }
21762 s/.*/./; q'`
21763 test -d "$as_dir" && break
21764 done
21765 test -z "$as_dirs" || eval "mkdir $as_dirs"
21766 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21767
21768
21769 } # as_fn_mkdir_p
21770 if mkdir -p . 2>/dev/null; then
21771 as_mkdir_p='mkdir -p "$as_dir"'
21772 else
21773 test -d ./-p && rmdir ./-p
21774 as_mkdir_p=false
21775 fi
21776
21777
21778 # as_fn_executable_p FILE
21779 # -----------------------
21780 # Test if FILE is an executable regular file.
21781 as_fn_executable_p ()
21782 {
21783 test -f "$1" && test -x "$1"
21784 } # as_fn_executable_p
21785 as_test_x='test -x'
21786 as_executable_p=as_fn_executable_p
21787
21788 # Sed expression to map a string onto a valid CPP name.
21789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21790
21791 # Sed expression to map a string onto a valid variable name.
21792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21793
21794
21795 exec 6>&1
21796 ## ----------------------------------- ##
21797 ## Main body of $CONFIG_STATUS script. ##
21798 ## ----------------------------------- ##
21799 _ASEOF
21800 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21801
21802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21803 # Save the log message, to keep $0 and so on meaningful, and to
21804 # report actual input values of CONFIG_FILES etc. instead of their
21805 # values after options handling.
21806 ac_log="
21807 This file was extended by Cycript $as_me 0.9, which was
21808 generated by GNU Autoconf 2.69. Invocation command line was
21809
21810 CONFIG_FILES = $CONFIG_FILES
21811 CONFIG_HEADERS = $CONFIG_HEADERS
21812 CONFIG_LINKS = $CONFIG_LINKS
21813 CONFIG_COMMANDS = $CONFIG_COMMANDS
21814 $ $0 $@
21815
21816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21817 "
21818
21819 _ACEOF
21820
21821 case $ac_config_files in *"
21822 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21823 esac
21824
21825 case $ac_config_headers in *"
21826 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21827 esac
21828
21829
21830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21831 # Files that config.status was made for.
21832 config_files="$ac_config_files"
21833 config_headers="$ac_config_headers"
21834 config_commands="$ac_config_commands"
21835
21836 _ACEOF
21837
21838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21839 ac_cs_usage="\
21840 \`$as_me' instantiates files and other configuration actions
21841 from templates according to the current configuration. Unless the files
21842 and actions are specified as TAGs, all are instantiated by default.
21843
21844 Usage: $0 [OPTION]... [TAG]...
21845
21846 -h, --help print this help, then exit
21847 -V, --version print version number and configuration settings, then exit
21848 --config print configuration, then exit
21849 -q, --quiet, --silent
21850 do not print progress messages
21851 -d, --debug don't remove temporary files
21852 --recheck update $as_me by reconfiguring in the same conditions
21853 --file=FILE[:TEMPLATE]
21854 instantiate the configuration file FILE
21855 --header=FILE[:TEMPLATE]
21856 instantiate the configuration header FILE
21857
21858 Configuration files:
21859 $config_files
21860
21861 Configuration headers:
21862 $config_headers
21863
21864 Configuration commands:
21865 $config_commands
21866
21867 Report bugs to <saurik@saurik.com>.
21868 Cycript home page: <http://www.cycript.org/>."
21869
21870 _ACEOF
21871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21873 ac_cs_version="\\
21874 Cycript config.status 0.9
21875 configured by $0, generated by GNU Autoconf 2.69,
21876 with options \\"\$ac_cs_config\\"
21877
21878 Copyright (C) 2012 Free Software Foundation, Inc.
21879 This config.status script is free software; the Free Software Foundation
21880 gives unlimited permission to copy, distribute and modify it."
21881
21882 ac_pwd='$ac_pwd'
21883 srcdir='$srcdir'
21884 INSTALL='$INSTALL'
21885 MKDIR_P='$MKDIR_P'
21886 AWK='$AWK'
21887 test -n "\$AWK" || AWK=awk
21888 _ACEOF
21889
21890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21891 # The default lists apply if the user does not specify any file.
21892 ac_need_defaults=:
21893 while test $# != 0
21894 do
21895 case $1 in
21896 --*=?*)
21897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21899 ac_shift=:
21900 ;;
21901 --*=)
21902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21903 ac_optarg=
21904 ac_shift=:
21905 ;;
21906 *)
21907 ac_option=$1
21908 ac_optarg=$2
21909 ac_shift=shift
21910 ;;
21911 esac
21912
21913 case $ac_option in
21914 # Handling of the options.
21915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21916 ac_cs_recheck=: ;;
21917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21918 $as_echo "$ac_cs_version"; exit ;;
21919 --config | --confi | --conf | --con | --co | --c )
21920 $as_echo "$ac_cs_config"; exit ;;
21921 --debug | --debu | --deb | --de | --d | -d )
21922 debug=: ;;
21923 --file | --fil | --fi | --f )
21924 $ac_shift
21925 case $ac_optarg in
21926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21927 '') as_fn_error $? "missing file argument" ;;
21928 esac
21929 as_fn_append CONFIG_FILES " '$ac_optarg'"
21930 ac_need_defaults=false;;
21931 --header | --heade | --head | --hea )
21932 $ac_shift
21933 case $ac_optarg in
21934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21935 esac
21936 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21937 ac_need_defaults=false;;
21938 --he | --h)
21939 # Conflict between --help and --header
21940 as_fn_error $? "ambiguous option: \`$1'
21941 Try \`$0 --help' for more information.";;
21942 --help | --hel | -h )
21943 $as_echo "$ac_cs_usage"; exit ;;
21944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21946 ac_cs_silent=: ;;
21947
21948 # This is an error.
21949 -*) as_fn_error $? "unrecognized option: \`$1'
21950 Try \`$0 --help' for more information." ;;
21951
21952 *) as_fn_append ac_config_targets " $1"
21953 ac_need_defaults=false ;;
21954
21955 esac
21956 shift
21957 done
21958
21959 ac_configure_extra_args=
21960
21961 if $ac_cs_silent; then
21962 exec 6>/dev/null
21963 ac_configure_extra_args="$ac_configure_extra_args --silent"
21964 fi
21965
21966 _ACEOF
21967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21968 if \$ac_cs_recheck; then
21969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21970 shift
21971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21972 CONFIG_SHELL='$SHELL'
21973 export CONFIG_SHELL
21974 exec "\$@"
21975 fi
21976
21977 _ACEOF
21978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21979 exec 5>>config.log
21980 {
21981 echo
21982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21983 ## Running $as_me. ##
21984 _ASBOX
21985 $as_echo "$ac_log"
21986 } >&5
21987
21988 _ACEOF
21989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21990 #
21991 # INIT-COMMANDS
21992 #
21993 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21994
21995
21996 # The HP-UX ksh and POSIX shell print the target directory to stdout
21997 # if CDPATH is set.
21998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21999
22000 sed_quote_subst='$sed_quote_subst'
22001 double_quote_subst='$double_quote_subst'
22002 delay_variable_subst='$delay_variable_subst'
22003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22005 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22006 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22007 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22008 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22009 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22010 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22011 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22012 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22013 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22014 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22015 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22016 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22017 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22018 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22019 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22020 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22021 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22022 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22023 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22024 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22025 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22026 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22027 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22028 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22029 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22030 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22031 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22032 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22033 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22034 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22035 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22036 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22037 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22038 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22039 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22040 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22041 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22042 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22043 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22044 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22045 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22046 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22047 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22048 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22049 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22050 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22051 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22052 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22053 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22054 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22055 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22056 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22057 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22059 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"`'
22060 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22061 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22062 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22063 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22064 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22065 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22066 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22067 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22068 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22069 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22070 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22071 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22072 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22073 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22074 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22075 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22076 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22077 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22078 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22079 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22080 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22081 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22082 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22083 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22084 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22085 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22086 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22087 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22088 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22089 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22090 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22091 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22092 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22093 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22094 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22095 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22096 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22097 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22098 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22099 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22100 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22101 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22102 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22103 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22104 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22105 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22106 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22107 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22108 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22109 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22110 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22111 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22112 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22113 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22114 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22115 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22116 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22117 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22118 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22119 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22120 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22121 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22122 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22123 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22124 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22125 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22126 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22127 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22128 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22129 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22130 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22131 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22132 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22133 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22134 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22135 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22136 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22137 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22138 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22139 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22140 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22141 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22142 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22143 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22144 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22145 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22146 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22147 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22148 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22149 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22150 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22151 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22152 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22153 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22154 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22155 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22156 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22157 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22158 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22159 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22160 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22161 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22162 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22163 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22164 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22165 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22166 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22167 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22168 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22169 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22170 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22171 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22172 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22173 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22174 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22175 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22176 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22177 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22178 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22179 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22180 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22181 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22182 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22183 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22184 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22185 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22186 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22187
22188 LTCC='$LTCC'
22189 LTCFLAGS='$LTCFLAGS'
22190 compiler='$compiler_DEFAULT'
22191
22192 # A function that is used when there is no print builtin or printf.
22193 func_fallback_echo ()
22194 {
22195 eval 'cat <<_LTECHO_EOF
22196 \$1
22197 _LTECHO_EOF'
22198 }
22199
22200 # Quote evaled strings.
22201 for var in SHELL \
22202 ECHO \
22203 PATH_SEPARATOR \
22204 SED \
22205 GREP \
22206 EGREP \
22207 FGREP \
22208 LD \
22209 NM \
22210 LN_S \
22211 lt_SP2NL \
22212 lt_NL2SP \
22213 reload_flag \
22214 OBJDUMP \
22215 deplibs_check_method \
22216 file_magic_cmd \
22217 file_magic_glob \
22218 want_nocaseglob \
22219 DLLTOOL \
22220 sharedlib_from_linklib_cmd \
22221 AR \
22222 AR_FLAGS \
22223 archiver_list_spec \
22224 STRIP \
22225 RANLIB \
22226 CC \
22227 CFLAGS \
22228 compiler \
22229 lt_cv_sys_global_symbol_pipe \
22230 lt_cv_sys_global_symbol_to_cdecl \
22231 lt_cv_sys_global_symbol_to_c_name_address \
22232 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22233 nm_file_list_spec \
22234 lt_prog_compiler_no_builtin_flag \
22235 lt_prog_compiler_pic \
22236 lt_prog_compiler_wl \
22237 lt_prog_compiler_static \
22238 lt_cv_prog_compiler_c_o \
22239 need_locks \
22240 MANIFEST_TOOL \
22241 DSYMUTIL \
22242 NMEDIT \
22243 LIPO \
22244 OTOOL \
22245 OTOOL64 \
22246 shrext_cmds \
22247 export_dynamic_flag_spec \
22248 whole_archive_flag_spec \
22249 compiler_needs_object \
22250 with_gnu_ld \
22251 allow_undefined_flag \
22252 no_undefined_flag \
22253 hardcode_libdir_flag_spec \
22254 hardcode_libdir_separator \
22255 exclude_expsyms \
22256 include_expsyms \
22257 file_list_spec \
22258 variables_saved_for_relink \
22259 libname_spec \
22260 library_names_spec \
22261 soname_spec \
22262 install_override_mode \
22263 finish_eval \
22264 old_striplib \
22265 striplib \
22266 compiler_lib_search_dirs \
22267 predep_objects \
22268 postdep_objects \
22269 predeps \
22270 postdeps \
22271 compiler_lib_search_path \
22272 LD_CXX \
22273 reload_flag_CXX \
22274 compiler_CXX \
22275 lt_prog_compiler_no_builtin_flag_CXX \
22276 lt_prog_compiler_pic_CXX \
22277 lt_prog_compiler_wl_CXX \
22278 lt_prog_compiler_static_CXX \
22279 lt_cv_prog_compiler_c_o_CXX \
22280 export_dynamic_flag_spec_CXX \
22281 whole_archive_flag_spec_CXX \
22282 compiler_needs_object_CXX \
22283 with_gnu_ld_CXX \
22284 allow_undefined_flag_CXX \
22285 no_undefined_flag_CXX \
22286 hardcode_libdir_flag_spec_CXX \
22287 hardcode_libdir_separator_CXX \
22288 exclude_expsyms_CXX \
22289 include_expsyms_CXX \
22290 file_list_spec_CXX \
22291 compiler_lib_search_dirs_CXX \
22292 predep_objects_CXX \
22293 postdep_objects_CXX \
22294 predeps_CXX \
22295 postdeps_CXX \
22296 compiler_lib_search_path_CXX; do
22297 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22298 *[\\\\\\\`\\"\\\$]*)
22299 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22300 ;;
22301 *)
22302 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22303 ;;
22304 esac
22305 done
22306
22307 # Double-quote double-evaled strings.
22308 for var in reload_cmds \
22309 old_postinstall_cmds \
22310 old_postuninstall_cmds \
22311 old_archive_cmds \
22312 extract_expsyms_cmds \
22313 old_archive_from_new_cmds \
22314 old_archive_from_expsyms_cmds \
22315 archive_cmds \
22316 archive_expsym_cmds \
22317 module_cmds \
22318 module_expsym_cmds \
22319 export_symbols_cmds \
22320 prelink_cmds \
22321 postlink_cmds \
22322 postinstall_cmds \
22323 postuninstall_cmds \
22324 finish_cmds \
22325 sys_lib_search_path_spec \
22326 sys_lib_dlsearch_path_spec \
22327 reload_cmds_CXX \
22328 old_archive_cmds_CXX \
22329 old_archive_from_new_cmds_CXX \
22330 old_archive_from_expsyms_cmds_CXX \
22331 archive_cmds_CXX \
22332 archive_expsym_cmds_CXX \
22333 module_cmds_CXX \
22334 module_expsym_cmds_CXX \
22335 export_symbols_cmds_CXX \
22336 prelink_cmds_CXX \
22337 postlink_cmds_CXX; do
22338 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22339 *[\\\\\\\`\\"\\\$]*)
22340 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22341 ;;
22342 *)
22343 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22344 ;;
22345 esac
22346 done
22347
22348 ac_aux_dir='$ac_aux_dir'
22349 xsi_shell='$xsi_shell'
22350 lt_shell_append='$lt_shell_append'
22351
22352 # See if we are running on zsh, and set the options which allow our
22353 # commands through without removal of \ escapes INIT.
22354 if test -n "\${ZSH_VERSION+set}" ; then
22355 setopt NO_GLOB_SUBST
22356 fi
22357
22358
22359 PACKAGE='$PACKAGE'
22360 VERSION='$VERSION'
22361 TIMESTAMP='$TIMESTAMP'
22362 RM='$RM'
22363 ofile='$ofile'
22364
22365
22366
22367
22368
22369
22370 _ACEOF
22371
22372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22373
22374 # Handling of arguments.
22375 for ac_config_target in $ac_config_targets
22376 do
22377 case $ac_config_target in
22378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22379 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22380 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22381 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22382
22383 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22384 esac
22385 done
22386
22387
22388 # If the user did not use the arguments to specify the items to instantiate,
22389 # then the envvar interface is used. Set only those that are not.
22390 # We use the long form for the default assignment because of an extremely
22391 # bizarre bug on SunOS 4.1.3.
22392 if $ac_need_defaults; then
22393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22395 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22396 fi
22397
22398 # Have a temporary directory for convenience. Make it in the build tree
22399 # simply because there is no reason against having it here, and in addition,
22400 # creating and moving files from /tmp can sometimes cause problems.
22401 # Hook for its removal unless debugging.
22402 # Note that there is a small window in which the directory will not be cleaned:
22403 # after its creation but before its name has been assigned to `$tmp'.
22404 $debug ||
22405 {
22406 tmp= ac_tmp=
22407 trap 'exit_status=$?
22408 : "${ac_tmp:=$tmp}"
22409 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22410 ' 0
22411 trap 'as_fn_exit 1' 1 2 13 15
22412 }
22413 # Create a (secure) tmp directory for tmp files.
22414
22415 {
22416 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22417 test -d "$tmp"
22418 } ||
22419 {
22420 tmp=./conf$$-$RANDOM
22421 (umask 077 && mkdir "$tmp")
22422 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22423 ac_tmp=$tmp
22424
22425 # Set up the scripts for CONFIG_FILES section.
22426 # No need to generate them if there are no CONFIG_FILES.
22427 # This happens for instance with `./config.status config.h'.
22428 if test -n "$CONFIG_FILES"; then
22429
22430
22431 ac_cr=`echo X | tr X '\015'`
22432 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22433 # But we know of no other shell where ac_cr would be empty at this
22434 # point, so we can use a bashism as a fallback.
22435 if test "x$ac_cr" = x; then
22436 eval ac_cr=\$\'\\r\'
22437 fi
22438 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22439 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22440 ac_cs_awk_cr='\\r'
22441 else
22442 ac_cs_awk_cr=$ac_cr
22443 fi
22444
22445 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22446 _ACEOF
22447
22448
22449 {
22450 echo "cat >conf$$subs.awk <<_ACEOF" &&
22451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22452 echo "_ACEOF"
22453 } >conf$$subs.sh ||
22454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22455 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22456 ac_delim='%!_!# '
22457 for ac_last_try in false false false false false :; do
22458 . ./conf$$subs.sh ||
22459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22460
22461 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22462 if test $ac_delim_n = $ac_delim_num; then
22463 break
22464 elif $ac_last_try; then
22465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22466 else
22467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22468 fi
22469 done
22470 rm -f conf$$subs.sh
22471
22472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22473 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22474 _ACEOF
22475 sed -n '
22476 h
22477 s/^/S["/; s/!.*/"]=/
22478 p
22479 g
22480 s/^[^!]*!//
22481 :repl
22482 t repl
22483 s/'"$ac_delim"'$//
22484 t delim
22485 :nl
22486 h
22487 s/\(.\{148\}\)..*/\1/
22488 t more1
22489 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22490 p
22491 n
22492 b repl
22493 :more1
22494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22495 p
22496 g
22497 s/.\{148\}//
22498 t nl
22499 :delim
22500 h
22501 s/\(.\{148\}\)..*/\1/
22502 t more2
22503 s/["\\]/\\&/g; s/^/"/; s/$/"/
22504 p
22505 b
22506 :more2
22507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22508 p
22509 g
22510 s/.\{148\}//
22511 t delim
22512 ' <conf$$subs.awk | sed '
22513 /^[^""]/{
22514 N
22515 s/\n//
22516 }
22517 ' >>$CONFIG_STATUS || ac_write_fail=1
22518 rm -f conf$$subs.awk
22519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22520 _ACAWK
22521 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22522 for (key in S) S_is_set[key] = 1
22523 FS = "\a"
22524
22525 }
22526 {
22527 line = $ 0
22528 nfields = split(line, field, "@")
22529 substed = 0
22530 len = length(field[1])
22531 for (i = 2; i < nfields; i++) {
22532 key = field[i]
22533 keylen = length(key)
22534 if (S_is_set[key]) {
22535 value = S[key]
22536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22537 len += length(value) + length(field[++i])
22538 substed = 1
22539 } else
22540 len += 1 + keylen
22541 }
22542
22543 print line
22544 }
22545
22546 _ACAWK
22547 _ACEOF
22548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22549 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22550 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22551 else
22552 cat
22553 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22554 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22555 _ACEOF
22556
22557 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22558 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22559 # trailing colons and then remove the whole line if VPATH becomes empty
22560 # (actually we leave an empty line to preserve line numbers).
22561 if test "x$srcdir" = x.; then
22562 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22563 h
22564 s///
22565 s/^/:/
22566 s/[ ]*$/:/
22567 s/:\$(srcdir):/:/g
22568 s/:\${srcdir}:/:/g
22569 s/:@srcdir@:/:/g
22570 s/^:*//
22571 s/:*$//
22572 x
22573 s/\(=[ ]*\).*/\1/
22574 G
22575 s/\n//
22576 s/^[^=]*=[ ]*$//
22577 }'
22578 fi
22579
22580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22581 fi # test -n "$CONFIG_FILES"
22582
22583 # Set up the scripts for CONFIG_HEADERS section.
22584 # No need to generate them if there are no CONFIG_HEADERS.
22585 # This happens for instance with `./config.status Makefile'.
22586 if test -n "$CONFIG_HEADERS"; then
22587 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22588 BEGIN {
22589 _ACEOF
22590
22591 # Transform confdefs.h into an awk script `defines.awk', embedded as
22592 # here-document in config.status, that substitutes the proper values into
22593 # config.h.in to produce config.h.
22594
22595 # Create a delimiter string that does not exist in confdefs.h, to ease
22596 # handling of long lines.
22597 ac_delim='%!_!# '
22598 for ac_last_try in false false :; do
22599 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22600 if test -z "$ac_tt"; then
22601 break
22602 elif $ac_last_try; then
22603 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22604 else
22605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22606 fi
22607 done
22608
22609 # For the awk script, D is an array of macro values keyed by name,
22610 # likewise P contains macro parameters if any. Preserve backslash
22611 # newline sequences.
22612
22613 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22614 sed -n '
22615 s/.\{148\}/&'"$ac_delim"'/g
22616 t rset
22617 :rset
22618 s/^[ ]*#[ ]*define[ ][ ]*/ /
22619 t def
22620 d
22621 :def
22622 s/\\$//
22623 t bsnl
22624 s/["\\]/\\&/g
22625 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22626 D["\1"]=" \3"/p
22627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22628 d
22629 :bsnl
22630 s/["\\]/\\&/g
22631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22632 D["\1"]=" \3\\\\\\n"\\/p
22633 t cont
22634 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22635 t cont
22636 d
22637 :cont
22638 n
22639 s/.\{148\}/&'"$ac_delim"'/g
22640 t clear
22641 :clear
22642 s/\\$//
22643 t bsnlc
22644 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22645 d
22646 :bsnlc
22647 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22648 b cont
22649 ' <confdefs.h | sed '
22650 s/'"$ac_delim"'/"\\\
22651 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22652
22653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22654 for (key in D) D_is_set[key] = 1
22655 FS = "\a"
22656 }
22657 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22658 line = \$ 0
22659 split(line, arg, " ")
22660 if (arg[1] == "#") {
22661 defundef = arg[2]
22662 mac1 = arg[3]
22663 } else {
22664 defundef = substr(arg[1], 2)
22665 mac1 = arg[2]
22666 }
22667 split(mac1, mac2, "(") #)
22668 macro = mac2[1]
22669 prefix = substr(line, 1, index(line, defundef) - 1)
22670 if (D_is_set[macro]) {
22671 # Preserve the white space surrounding the "#".
22672 print prefix "define", macro P[macro] D[macro]
22673 next
22674 } else {
22675 # Replace #undef with comments. This is necessary, for example,
22676 # in the case of _POSIX_SOURCE, which is predefined and required
22677 # on some systems where configure will not decide to define it.
22678 if (defundef == "undef") {
22679 print "/*", prefix defundef, macro, "*/"
22680 next
22681 }
22682 }
22683 }
22684 { print }
22685 _ACAWK
22686 _ACEOF
22687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22688 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22689 fi # test -n "$CONFIG_HEADERS"
22690
22691
22692 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22693 shift
22694 for ac_tag
22695 do
22696 case $ac_tag in
22697 :[FHLC]) ac_mode=$ac_tag; continue;;
22698 esac
22699 case $ac_mode$ac_tag in
22700 :[FHL]*:*);;
22701 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22702 :[FH]-) ac_tag=-:-;;
22703 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22704 esac
22705 ac_save_IFS=$IFS
22706 IFS=:
22707 set x $ac_tag
22708 IFS=$ac_save_IFS
22709 shift
22710 ac_file=$1
22711 shift
22712
22713 case $ac_mode in
22714 :L) ac_source=$1;;
22715 :[FH])
22716 ac_file_inputs=
22717 for ac_f
22718 do
22719 case $ac_f in
22720 -) ac_f="$ac_tmp/stdin";;
22721 *) # Look for the file first in the build tree, then in the source tree
22722 # (if the path is not absolute). The absolute path cannot be DOS-style,
22723 # because $ac_f cannot contain `:'.
22724 test -f "$ac_f" ||
22725 case $ac_f in
22726 [\\/$]*) false;;
22727 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22728 esac ||
22729 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22730 esac
22731 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22732 as_fn_append ac_file_inputs " '$ac_f'"
22733 done
22734
22735 # Let's still pretend it is `configure' which instantiates (i.e., don't
22736 # use $as_me), people would be surprised to read:
22737 # /* config.h. Generated by config.status. */
22738 configure_input='Generated from '`
22739 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22740 `' by configure.'
22741 if test x"$ac_file" != x-; then
22742 configure_input="$ac_file. $configure_input"
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22744 $as_echo "$as_me: creating $ac_file" >&6;}
22745 fi
22746 # Neutralize special characters interpreted by sed in replacement strings.
22747 case $configure_input in #(
22748 *\&* | *\|* | *\\* )
22749 ac_sed_conf_input=`$as_echo "$configure_input" |
22750 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22751 *) ac_sed_conf_input=$configure_input;;
22752 esac
22753
22754 case $ac_tag in
22755 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22757 esac
22758 ;;
22759 esac
22760
22761 ac_dir=`$as_dirname -- "$ac_file" ||
22762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22763 X"$ac_file" : 'X\(//\)[^/]' \| \
22764 X"$ac_file" : 'X\(//\)$' \| \
22765 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22766 $as_echo X"$ac_file" |
22767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22768 s//\1/
22769 q
22770 }
22771 /^X\(\/\/\)[^/].*/{
22772 s//\1/
22773 q
22774 }
22775 /^X\(\/\/\)$/{
22776 s//\1/
22777 q
22778 }
22779 /^X\(\/\).*/{
22780 s//\1/
22781 q
22782 }
22783 s/.*/./; q'`
22784 as_dir="$ac_dir"; as_fn_mkdir_p
22785 ac_builddir=.
22786
22787 case "$ac_dir" in
22788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789 *)
22790 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22791 # A ".." for each directory in $ac_dir_suffix.
22792 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22793 case $ac_top_builddir_sub in
22794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22796 esac ;;
22797 esac
22798 ac_abs_top_builddir=$ac_pwd
22799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22800 # for backward compatibility:
22801 ac_top_builddir=$ac_top_build_prefix
22802
22803 case $srcdir in
22804 .) # We are building in place.
22805 ac_srcdir=.
22806 ac_top_srcdir=$ac_top_builddir_sub
22807 ac_abs_top_srcdir=$ac_pwd ;;
22808 [\\/]* | ?:[\\/]* ) # Absolute name.
22809 ac_srcdir=$srcdir$ac_dir_suffix;
22810 ac_top_srcdir=$srcdir
22811 ac_abs_top_srcdir=$srcdir ;;
22812 *) # Relative name.
22813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22814 ac_top_srcdir=$ac_top_build_prefix$srcdir
22815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22816 esac
22817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22818
22819
22820 case $ac_mode in
22821 :F)
22822 #
22823 # CONFIG_FILE
22824 #
22825
22826 case $INSTALL in
22827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22829 esac
22830 ac_MKDIR_P=$MKDIR_P
22831 case $MKDIR_P in
22832 [\\/$]* | ?:[\\/]* ) ;;
22833 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22834 esac
22835 _ACEOF
22836
22837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22838 # If the template does not know about datarootdir, expand it.
22839 # FIXME: This hack should be removed a few years after 2.60.
22840 ac_datarootdir_hack=; ac_datarootdir_seen=
22841 ac_sed_dataroot='
22842 /datarootdir/ {
22843 p
22844 q
22845 }
22846 /@datadir@/p
22847 /@docdir@/p
22848 /@infodir@/p
22849 /@localedir@/p
22850 /@mandir@/p'
22851 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22852 *datarootdir*) ac_datarootdir_seen=yes;;
22853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22855 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22856 _ACEOF
22857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22858 ac_datarootdir_hack='
22859 s&@datadir@&$datadir&g
22860 s&@docdir@&$docdir&g
22861 s&@infodir@&$infodir&g
22862 s&@localedir@&$localedir&g
22863 s&@mandir@&$mandir&g
22864 s&\\\${datarootdir}&$datarootdir&g' ;;
22865 esac
22866 _ACEOF
22867
22868 # Neutralize VPATH when `$srcdir' = `.'.
22869 # Shell code in configure.ac might set extrasub.
22870 # FIXME: do we really want to maintain this feature?
22871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22872 ac_sed_extra="$ac_vpsub
22873 $extrasub
22874 _ACEOF
22875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22876 :t
22877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22878 s|@configure_input@|$ac_sed_conf_input|;t t
22879 s&@top_builddir@&$ac_top_builddir_sub&;t t
22880 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22881 s&@srcdir@&$ac_srcdir&;t t
22882 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22883 s&@top_srcdir@&$ac_top_srcdir&;t t
22884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22885 s&@builddir@&$ac_builddir&;t t
22886 s&@abs_builddir@&$ac_abs_builddir&;t t
22887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22888 s&@INSTALL@&$ac_INSTALL&;t t
22889 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22890 $ac_datarootdir_hack
22891 "
22892 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22893 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22894
22895 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22896 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22897 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22898 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22900 which seems to be undefined. Please make sure it is defined" >&5
22901 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22902 which seems to be undefined. Please make sure it is defined" >&2;}
22903
22904 rm -f "$ac_tmp/stdin"
22905 case $ac_file in
22906 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22907 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22908 esac \
22909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22910 ;;
22911 :H)
22912 #
22913 # CONFIG_HEADER
22914 #
22915 if test x"$ac_file" != x-; then
22916 {
22917 $as_echo "/* $configure_input */" \
22918 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22919 } >"$ac_tmp/config.h" \
22920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22921 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22923 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22924 else
22925 rm -f "$ac_file"
22926 mv "$ac_tmp/config.h" "$ac_file" \
22927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22928 fi
22929 else
22930 $as_echo "/* $configure_input */" \
22931 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22932 || as_fn_error $? "could not create -" "$LINENO" 5
22933 fi
22934 # Compute "$ac_file"'s index in $config_headers.
22935 _am_arg="$ac_file"
22936 _am_stamp_count=1
22937 for _am_header in $config_headers :; do
22938 case $_am_header in
22939 $_am_arg | $_am_arg:* )
22940 break ;;
22941 * )
22942 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22943 esac
22944 done
22945 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22946 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22947 X"$_am_arg" : 'X\(//\)[^/]' \| \
22948 X"$_am_arg" : 'X\(//\)$' \| \
22949 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22950 $as_echo X"$_am_arg" |
22951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22952 s//\1/
22953 q
22954 }
22955 /^X\(\/\/\)[^/].*/{
22956 s//\1/
22957 q
22958 }
22959 /^X\(\/\/\)$/{
22960 s//\1/
22961 q
22962 }
22963 /^X\(\/\).*/{
22964 s//\1/
22965 q
22966 }
22967 s/.*/./; q'`/stamp-h$_am_stamp_count
22968 ;;
22969
22970 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22971 $as_echo "$as_me: executing $ac_file commands" >&6;}
22972 ;;
22973 esac
22974
22975
22976 case $ac_file$ac_mode in
22977 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22978 # Older Autoconf quotes --file arguments for eval, but not when files
22979 # are listed without --file. Let's play safe and only enable the eval
22980 # if we detect the quoting.
22981 case $CONFIG_FILES in
22982 *\'*) eval set x "$CONFIG_FILES" ;;
22983 *) set x $CONFIG_FILES ;;
22984 esac
22985 shift
22986 for mf
22987 do
22988 # Strip MF so we end up with the name of the file.
22989 mf=`echo "$mf" | sed -e 's/:.*$//'`
22990 # Check whether this is an Automake generated Makefile or not.
22991 # We used to match only the files named 'Makefile.in', but
22992 # some people rename them; so instead we look at the file content.
22993 # Grep'ing the first line is not enough: some people post-process
22994 # each Makefile.in and add a new line on top of each file to say so.
22995 # Grep'ing the whole file is not good either: AIX grep has a line
22996 # limit of 2048, but all sed's we know have understand at least 4000.
22997 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22998 dirpart=`$as_dirname -- "$mf" ||
22999 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000 X"$mf" : 'X\(//\)[^/]' \| \
23001 X"$mf" : 'X\(//\)$' \| \
23002 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23003 $as_echo X"$mf" |
23004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23005 s//\1/
23006 q
23007 }
23008 /^X\(\/\/\)[^/].*/{
23009 s//\1/
23010 q
23011 }
23012 /^X\(\/\/\)$/{
23013 s//\1/
23014 q
23015 }
23016 /^X\(\/\).*/{
23017 s//\1/
23018 q
23019 }
23020 s/.*/./; q'`
23021 else
23022 continue
23023 fi
23024 # Extract the definition of DEPDIR, am__include, and am__quote
23025 # from the Makefile without running 'make'.
23026 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23027 test -z "$DEPDIR" && continue
23028 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23029 test -z "am__include" && continue
23030 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23031 # Find all dependency output files, they are included files with
23032 # $(DEPDIR) in their names. We invoke sed twice because it is the
23033 # simplest approach to changing $(DEPDIR) to its actual value in the
23034 # expansion.
23035 for file in `sed -n "
23036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23038 # Make sure the directory exists.
23039 test -f "$dirpart/$file" && continue
23040 fdir=`$as_dirname -- "$file" ||
23041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23042 X"$file" : 'X\(//\)[^/]' \| \
23043 X"$file" : 'X\(//\)$' \| \
23044 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23045 $as_echo X"$file" |
23046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23047 s//\1/
23048 q
23049 }
23050 /^X\(\/\/\)[^/].*/{
23051 s//\1/
23052 q
23053 }
23054 /^X\(\/\/\)$/{
23055 s//\1/
23056 q
23057 }
23058 /^X\(\/\).*/{
23059 s//\1/
23060 q
23061 }
23062 s/.*/./; q'`
23063 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23064 # echo "creating $dirpart/$file"
23065 echo '# dummy' > "$dirpart/$file"
23066 done
23067 done
23068 }
23069 ;;
23070 "libtool":C)
23071
23072 # See if we are running on zsh, and set the options which allow our
23073 # commands through without removal of \ escapes.
23074 if test -n "${ZSH_VERSION+set}" ; then
23075 setopt NO_GLOB_SUBST
23076 fi
23077
23078 cfgfile="${ofile}T"
23079 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23080 $RM "$cfgfile"
23081
23082 cat <<_LT_EOF >> "$cfgfile"
23083 #! $SHELL
23084
23085 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23086 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23089 #
23090 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23091 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23092 # Foundation, Inc.
23093 # Written by Gordon Matzigkeit, 1996
23094 #
23095 # This file is part of GNU Libtool.
23096 #
23097 # GNU Libtool is free software; you can redistribute it and/or
23098 # modify it under the terms of the GNU General Public License as
23099 # published by the Free Software Foundation; either version 2 of
23100 # the License, or (at your option) any later version.
23101 #
23102 # As a special exception to the GNU General Public License,
23103 # if you distribute this file as part of a program or library that
23104 # is built using GNU Libtool, you may include this file under the
23105 # same distribution terms that you use for the rest of that program.
23106 #
23107 # GNU Libtool is distributed in the hope that it will be useful,
23108 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23109 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23110 # GNU General Public License for more details.
23111 #
23112 # You should have received a copy of the GNU General Public License
23113 # along with GNU Libtool; see the file COPYING. If not, a copy
23114 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23115 # obtained by writing to the Free Software Foundation, Inc.,
23116 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23117
23118
23119 # The names of the tagged configurations supported by this script.
23120 available_tags="CXX "
23121
23122 # ### BEGIN LIBTOOL CONFIG
23123
23124 # Which release of libtool.m4 was used?
23125 macro_version=$macro_version
23126 macro_revision=$macro_revision
23127
23128 # Whether or not to build static libraries.
23129 build_old_libs=$enable_static
23130
23131 # Whether or not to build shared libraries.
23132 build_libtool_libs=$enable_shared
23133
23134 # What type of objects to build.
23135 pic_mode=$pic_mode
23136
23137 # Whether or not to optimize for fast installation.
23138 fast_install=$enable_fast_install
23139
23140 # Shell to use when invoking shell scripts.
23141 SHELL=$lt_SHELL
23142
23143 # An echo program that protects backslashes.
23144 ECHO=$lt_ECHO
23145
23146 # The PATH separator for the build system.
23147 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23148
23149 # The host system.
23150 host_alias=$host_alias
23151 host=$host
23152 host_os=$host_os
23153
23154 # The build system.
23155 build_alias=$build_alias
23156 build=$build
23157 build_os=$build_os
23158
23159 # A sed program that does not truncate output.
23160 SED=$lt_SED
23161
23162 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23163 Xsed="\$SED -e 1s/^X//"
23164
23165 # A grep program that handles long lines.
23166 GREP=$lt_GREP
23167
23168 # An ERE matcher.
23169 EGREP=$lt_EGREP
23170
23171 # A literal string matcher.
23172 FGREP=$lt_FGREP
23173
23174 # A BSD- or MS-compatible name lister.
23175 NM=$lt_NM
23176
23177 # Whether we need soft or hard links.
23178 LN_S=$lt_LN_S
23179
23180 # What is the maximum length of a command?
23181 max_cmd_len=$max_cmd_len
23182
23183 # Object file suffix (normally "o").
23184 objext=$ac_objext
23185
23186 # Executable file suffix (normally "").
23187 exeext=$exeext
23188
23189 # whether the shell understands "unset".
23190 lt_unset=$lt_unset
23191
23192 # turn spaces into newlines.
23193 SP2NL=$lt_lt_SP2NL
23194
23195 # turn newlines into spaces.
23196 NL2SP=$lt_lt_NL2SP
23197
23198 # convert \$build file names to \$host format.
23199 to_host_file_cmd=$lt_cv_to_host_file_cmd
23200
23201 # convert \$build files to toolchain format.
23202 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23203
23204 # An object symbol dumper.
23205 OBJDUMP=$lt_OBJDUMP
23206
23207 # Method to check whether dependent libraries are shared objects.
23208 deplibs_check_method=$lt_deplibs_check_method
23209
23210 # Command to use when deplibs_check_method = "file_magic".
23211 file_magic_cmd=$lt_file_magic_cmd
23212
23213 # How to find potential files when deplibs_check_method = "file_magic".
23214 file_magic_glob=$lt_file_magic_glob
23215
23216 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23217 want_nocaseglob=$lt_want_nocaseglob
23218
23219 # DLL creation program.
23220 DLLTOOL=$lt_DLLTOOL
23221
23222 # Command to associate shared and link libraries.
23223 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23224
23225 # The archiver.
23226 AR=$lt_AR
23227
23228 # Flags to create an archive.
23229 AR_FLAGS=$lt_AR_FLAGS
23230
23231 # How to feed a file listing to the archiver.
23232 archiver_list_spec=$lt_archiver_list_spec
23233
23234 # A symbol stripping program.
23235 STRIP=$lt_STRIP
23236
23237 # Commands used to install an old-style archive.
23238 RANLIB=$lt_RANLIB
23239 old_postinstall_cmds=$lt_old_postinstall_cmds
23240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23241
23242 # Whether to use a lock for old archive extraction.
23243 lock_old_archive_extraction=$lock_old_archive_extraction
23244
23245 # A C compiler.
23246 LTCC=$lt_CC
23247
23248 # LTCC compiler flags.
23249 LTCFLAGS=$lt_CFLAGS
23250
23251 # Take the output of nm and produce a listing of raw symbols and C names.
23252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23253
23254 # Transform the output of nm in a proper C declaration.
23255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23256
23257 # Transform the output of nm in a C name address pair.
23258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23259
23260 # Transform the output of nm in a C name address pair when lib prefix is needed.
23261 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23262
23263 # Specify filename containing input files for \$NM.
23264 nm_file_list_spec=$lt_nm_file_list_spec
23265
23266 # The root where to search for dependent libraries,and in which our libraries should be installed.
23267 lt_sysroot=$lt_sysroot
23268
23269 # The name of the directory that contains temporary libtool files.
23270 objdir=$objdir
23271
23272 # Used to examine libraries when file_magic_cmd begins with "file".
23273 MAGIC_CMD=$MAGIC_CMD
23274
23275 # Must we lock files when doing compilation?
23276 need_locks=$lt_need_locks
23277
23278 # Manifest tool.
23279 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23280
23281 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23282 DSYMUTIL=$lt_DSYMUTIL
23283
23284 # Tool to change global to local symbols on Mac OS X.
23285 NMEDIT=$lt_NMEDIT
23286
23287 # Tool to manipulate fat objects and archives on Mac OS X.
23288 LIPO=$lt_LIPO
23289
23290 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23291 OTOOL=$lt_OTOOL
23292
23293 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23294 OTOOL64=$lt_OTOOL64
23295
23296 # Old archive suffix (normally "a").
23297 libext=$libext
23298
23299 # Shared library suffix (normally ".so").
23300 shrext_cmds=$lt_shrext_cmds
23301
23302 # The commands to extract the exported symbol list from a shared archive.
23303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23304
23305 # Variables whose values should be saved in libtool wrapper scripts and
23306 # restored at link time.
23307 variables_saved_for_relink=$lt_variables_saved_for_relink
23308
23309 # Do we need the "lib" prefix for modules?
23310 need_lib_prefix=$need_lib_prefix
23311
23312 # Do we need a version for libraries?
23313 need_version=$need_version
23314
23315 # Library versioning type.
23316 version_type=$version_type
23317
23318 # Shared library runtime path variable.
23319 runpath_var=$runpath_var
23320
23321 # Shared library path variable.
23322 shlibpath_var=$shlibpath_var
23323
23324 # Is shlibpath searched before the hard-coded library search path?
23325 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23326
23327 # Format of library name prefix.
23328 libname_spec=$lt_libname_spec
23329
23330 # List of archive names. First name is the real one, the rest are links.
23331 # The last name is the one that the linker finds with -lNAME
23332 library_names_spec=$lt_library_names_spec
23333
23334 # The coded name of the library, if different from the real name.
23335 soname_spec=$lt_soname_spec
23336
23337 # Permission mode override for installation of shared libraries.
23338 install_override_mode=$lt_install_override_mode
23339
23340 # Command to use after installation of a shared archive.
23341 postinstall_cmds=$lt_postinstall_cmds
23342
23343 # Command to use after uninstallation of a shared archive.
23344 postuninstall_cmds=$lt_postuninstall_cmds
23345
23346 # Commands used to finish a libtool library installation in a directory.
23347 finish_cmds=$lt_finish_cmds
23348
23349 # As "finish_cmds", except a single script fragment to be evaled but
23350 # not shown.
23351 finish_eval=$lt_finish_eval
23352
23353 # Whether we should hardcode library paths into libraries.
23354 hardcode_into_libs=$hardcode_into_libs
23355
23356 # Compile-time system search path for libraries.
23357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23358
23359 # Run-time system search path for libraries.
23360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23361
23362 # Whether dlopen is supported.
23363 dlopen_support=$enable_dlopen
23364
23365 # Whether dlopen of programs is supported.
23366 dlopen_self=$enable_dlopen_self
23367
23368 # Whether dlopen of statically linked programs is supported.
23369 dlopen_self_static=$enable_dlopen_self_static
23370
23371 # Commands to strip libraries.
23372 old_striplib=$lt_old_striplib
23373 striplib=$lt_striplib
23374
23375
23376 # The linker used to build libraries.
23377 LD=$lt_LD
23378
23379 # How to create reloadable object files.
23380 reload_flag=$lt_reload_flag
23381 reload_cmds=$lt_reload_cmds
23382
23383 # Commands used to build an old-style archive.
23384 old_archive_cmds=$lt_old_archive_cmds
23385
23386 # A language specific compiler.
23387 CC=$lt_compiler
23388
23389 # Is the compiler the GNU compiler?
23390 with_gcc=$GCC
23391
23392 # Compiler flag to turn off builtin functions.
23393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23394
23395 # Additional compiler flags for building library objects.
23396 pic_flag=$lt_lt_prog_compiler_pic
23397
23398 # How to pass a linker flag through the compiler.
23399 wl=$lt_lt_prog_compiler_wl
23400
23401 # Compiler flag to prevent dynamic linking.
23402 link_static_flag=$lt_lt_prog_compiler_static
23403
23404 # Does compiler simultaneously support -c and -o options?
23405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23406
23407 # Whether or not to add -lc for building shared libraries.
23408 build_libtool_need_lc=$archive_cmds_need_lc
23409
23410 # Whether or not to disallow shared libs when runtime libs are static.
23411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23412
23413 # Compiler flag to allow reflexive dlopens.
23414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23415
23416 # Compiler flag to generate shared objects directly from archives.
23417 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23418
23419 # Whether the compiler copes with passing no objects directly.
23420 compiler_needs_object=$lt_compiler_needs_object
23421
23422 # Create an old-style archive from a shared archive.
23423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23424
23425 # Create a temporary old-style archive to link instead of a shared archive.
23426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23427
23428 # Commands used to build a shared archive.
23429 archive_cmds=$lt_archive_cmds
23430 archive_expsym_cmds=$lt_archive_expsym_cmds
23431
23432 # Commands used to build a loadable module if different from building
23433 # a shared archive.
23434 module_cmds=$lt_module_cmds
23435 module_expsym_cmds=$lt_module_expsym_cmds
23436
23437 # Whether we are building with GNU ld or not.
23438 with_gnu_ld=$lt_with_gnu_ld
23439
23440 # Flag that allows shared libraries with undefined symbols to be built.
23441 allow_undefined_flag=$lt_allow_undefined_flag
23442
23443 # Flag that enforces no undefined symbols.
23444 no_undefined_flag=$lt_no_undefined_flag
23445
23446 # Flag to hardcode \$libdir into a binary during linking.
23447 # This must work even if \$libdir does not exist
23448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23449
23450 # Whether we need a single "-rpath" flag with a separated argument.
23451 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23452
23453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23454 # DIR into the resulting binary.
23455 hardcode_direct=$hardcode_direct
23456
23457 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23458 # DIR into the resulting binary and the resulting library dependency is
23459 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23460 # library is relocated.
23461 hardcode_direct_absolute=$hardcode_direct_absolute
23462
23463 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23464 # into the resulting binary.
23465 hardcode_minus_L=$hardcode_minus_L
23466
23467 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23468 # into the resulting binary.
23469 hardcode_shlibpath_var=$hardcode_shlibpath_var
23470
23471 # Set to "yes" if building a shared library automatically hardcodes DIR
23472 # into the library and all subsequent libraries and executables linked
23473 # against it.
23474 hardcode_automatic=$hardcode_automatic
23475
23476 # Set to yes if linker adds runtime paths of dependent libraries
23477 # to runtime path list.
23478 inherit_rpath=$inherit_rpath
23479
23480 # Whether libtool must link a program against all its dependency libraries.
23481 link_all_deplibs=$link_all_deplibs
23482
23483 # Set to "yes" if exported symbols are required.
23484 always_export_symbols=$always_export_symbols
23485
23486 # The commands to list exported symbols.
23487 export_symbols_cmds=$lt_export_symbols_cmds
23488
23489 # Symbols that should not be listed in the preloaded symbols.
23490 exclude_expsyms=$lt_exclude_expsyms
23491
23492 # Symbols that must always be exported.
23493 include_expsyms=$lt_include_expsyms
23494
23495 # Commands necessary for linking programs (against libraries) with templates.
23496 prelink_cmds=$lt_prelink_cmds
23497
23498 # Commands necessary for finishing linking programs.
23499 postlink_cmds=$lt_postlink_cmds
23500
23501 # Specify filename containing input files.
23502 file_list_spec=$lt_file_list_spec
23503
23504 # How to hardcode a shared library path into an executable.
23505 hardcode_action=$hardcode_action
23506
23507 # The directories searched by this compiler when creating a shared library.
23508 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23509
23510 # Dependencies to place before and after the objects being linked to
23511 # create a shared library.
23512 predep_objects=$lt_predep_objects
23513 postdep_objects=$lt_postdep_objects
23514 predeps=$lt_predeps
23515 postdeps=$lt_postdeps
23516
23517 # The library search path used internally by the compiler when linking
23518 # a shared library.
23519 compiler_lib_search_path=$lt_compiler_lib_search_path
23520
23521 # ### END LIBTOOL CONFIG
23522
23523 _LT_EOF
23524
23525 case $host_os in
23526 aix3*)
23527 cat <<\_LT_EOF >> "$cfgfile"
23528 # AIX sometimes has problems with the GCC collect2 program. For some
23529 # reason, if we set the COLLECT_NAMES environment variable, the problems
23530 # vanish in a puff of smoke.
23531 if test "X${COLLECT_NAMES+set}" != Xset; then
23532 COLLECT_NAMES=
23533 export COLLECT_NAMES
23534 fi
23535 _LT_EOF
23536 ;;
23537 esac
23538
23539
23540 ltmain="$ac_aux_dir/ltmain.sh"
23541
23542
23543 # We use sed instead of cat because bash on DJGPP gets confused if
23544 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23545 # text mode, it properly converts lines to CR/LF. This bash problem
23546 # is reportedly fixed, but why not run on old versions too?
23547 sed '$q' "$ltmain" >> "$cfgfile" \
23548 || (rm -f "$cfgfile"; exit 1)
23549
23550 if test x"$xsi_shell" = xyes; then
23551 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23552 func_dirname ()\
23553 {\
23554 \ case ${1} in\
23555 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23556 \ * ) func_dirname_result="${3}" ;;\
23557 \ esac\
23558 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23559 && mv -f "$cfgfile.tmp" "$cfgfile" \
23560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23561 test 0 -eq $? || _lt_function_replace_fail=:
23562
23563
23564 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23565 func_basename ()\
23566 {\
23567 \ func_basename_result="${1##*/}"\
23568 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23569 && mv -f "$cfgfile.tmp" "$cfgfile" \
23570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23571 test 0 -eq $? || _lt_function_replace_fail=:
23572
23573
23574 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23575 func_dirname_and_basename ()\
23576 {\
23577 \ case ${1} in\
23578 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23579 \ * ) func_dirname_result="${3}" ;;\
23580 \ esac\
23581 \ func_basename_result="${1##*/}"\
23582 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23583 && mv -f "$cfgfile.tmp" "$cfgfile" \
23584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23585 test 0 -eq $? || _lt_function_replace_fail=:
23586
23587
23588 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23589 func_stripname ()\
23590 {\
23591 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23592 \ # positional parameters, so assign one to ordinary parameter first.\
23593 \ func_stripname_result=${3}\
23594 \ func_stripname_result=${func_stripname_result#"${1}"}\
23595 \ func_stripname_result=${func_stripname_result%"${2}"}\
23596 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23597 && mv -f "$cfgfile.tmp" "$cfgfile" \
23598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23599 test 0 -eq $? || _lt_function_replace_fail=:
23600
23601
23602 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23603 func_split_long_opt ()\
23604 {\
23605 \ func_split_long_opt_name=${1%%=*}\
23606 \ func_split_long_opt_arg=${1#*=}\
23607 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23608 && mv -f "$cfgfile.tmp" "$cfgfile" \
23609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23610 test 0 -eq $? || _lt_function_replace_fail=:
23611
23612
23613 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23614 func_split_short_opt ()\
23615 {\
23616 \ func_split_short_opt_arg=${1#??}\
23617 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23618 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23619 && mv -f "$cfgfile.tmp" "$cfgfile" \
23620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23621 test 0 -eq $? || _lt_function_replace_fail=:
23622
23623
23624 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23625 func_lo2o ()\
23626 {\
23627 \ case ${1} in\
23628 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23629 \ *) func_lo2o_result=${1} ;;\
23630 \ esac\
23631 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23632 && mv -f "$cfgfile.tmp" "$cfgfile" \
23633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23634 test 0 -eq $? || _lt_function_replace_fail=:
23635
23636
23637 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23638 func_xform ()\
23639 {\
23640 func_xform_result=${1%.*}.lo\
23641 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23642 && mv -f "$cfgfile.tmp" "$cfgfile" \
23643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23644 test 0 -eq $? || _lt_function_replace_fail=:
23645
23646
23647 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23648 func_arith ()\
23649 {\
23650 func_arith_result=$(( $* ))\
23651 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23652 && mv -f "$cfgfile.tmp" "$cfgfile" \
23653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23654 test 0 -eq $? || _lt_function_replace_fail=:
23655
23656
23657 sed -e '/^func_len ()$/,/^} # func_len /c\
23658 func_len ()\
23659 {\
23660 func_len_result=${#1}\
23661 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23662 && mv -f "$cfgfile.tmp" "$cfgfile" \
23663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23664 test 0 -eq $? || _lt_function_replace_fail=:
23665
23666 fi
23667
23668 if test x"$lt_shell_append" = xyes; then
23669 sed -e '/^func_append ()$/,/^} # func_append /c\
23670 func_append ()\
23671 {\
23672 eval "${1}+=\\${2}"\
23673 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23674 && mv -f "$cfgfile.tmp" "$cfgfile" \
23675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23676 test 0 -eq $? || _lt_function_replace_fail=:
23677
23678
23679 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23680 func_append_quoted ()\
23681 {\
23682 \ func_quote_for_eval "${2}"\
23683 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23684 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23685 && mv -f "$cfgfile.tmp" "$cfgfile" \
23686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23687 test 0 -eq $? || _lt_function_replace_fail=:
23688
23689
23690 # Save a `func_append' function call where possible by direct use of '+='
23691 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23692 && mv -f "$cfgfile.tmp" "$cfgfile" \
23693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23694 test 0 -eq $? || _lt_function_replace_fail=:
23695 else
23696 # Save a `func_append' function call even when '+=' is not available
23697 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23698 && mv -f "$cfgfile.tmp" "$cfgfile" \
23699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23700 test 0 -eq $? || _lt_function_replace_fail=:
23701 fi
23702
23703 if test x"$_lt_function_replace_fail" = x":"; then
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23705 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23706 fi
23707
23708
23709 mv -f "$cfgfile" "$ofile" ||
23710 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23711 chmod +x "$ofile"
23712
23713
23714 cat <<_LT_EOF >> "$ofile"
23715
23716 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23717
23718 # The linker used to build libraries.
23719 LD=$lt_LD_CXX
23720
23721 # How to create reloadable object files.
23722 reload_flag=$lt_reload_flag_CXX
23723 reload_cmds=$lt_reload_cmds_CXX
23724
23725 # Commands used to build an old-style archive.
23726 old_archive_cmds=$lt_old_archive_cmds_CXX
23727
23728 # A language specific compiler.
23729 CC=$lt_compiler_CXX
23730
23731 # Is the compiler the GNU compiler?
23732 with_gcc=$GCC_CXX
23733
23734 # Compiler flag to turn off builtin functions.
23735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23736
23737 # Additional compiler flags for building library objects.
23738 pic_flag=$lt_lt_prog_compiler_pic_CXX
23739
23740 # How to pass a linker flag through the compiler.
23741 wl=$lt_lt_prog_compiler_wl_CXX
23742
23743 # Compiler flag to prevent dynamic linking.
23744 link_static_flag=$lt_lt_prog_compiler_static_CXX
23745
23746 # Does compiler simultaneously support -c and -o options?
23747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23748
23749 # Whether or not to add -lc for building shared libraries.
23750 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23751
23752 # Whether or not to disallow shared libs when runtime libs are static.
23753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23754
23755 # Compiler flag to allow reflexive dlopens.
23756 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23757
23758 # Compiler flag to generate shared objects directly from archives.
23759 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23760
23761 # Whether the compiler copes with passing no objects directly.
23762 compiler_needs_object=$lt_compiler_needs_object_CXX
23763
23764 # Create an old-style archive from a shared archive.
23765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23766
23767 # Create a temporary old-style archive to link instead of a shared archive.
23768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23769
23770 # Commands used to build a shared archive.
23771 archive_cmds=$lt_archive_cmds_CXX
23772 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23773
23774 # Commands used to build a loadable module if different from building
23775 # a shared archive.
23776 module_cmds=$lt_module_cmds_CXX
23777 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23778
23779 # Whether we are building with GNU ld or not.
23780 with_gnu_ld=$lt_with_gnu_ld_CXX
23781
23782 # Flag that allows shared libraries with undefined symbols to be built.
23783 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23784
23785 # Flag that enforces no undefined symbols.
23786 no_undefined_flag=$lt_no_undefined_flag_CXX
23787
23788 # Flag to hardcode \$libdir into a binary during linking.
23789 # This must work even if \$libdir does not exist
23790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23791
23792 # Whether we need a single "-rpath" flag with a separated argument.
23793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23794
23795 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23796 # DIR into the resulting binary.
23797 hardcode_direct=$hardcode_direct_CXX
23798
23799 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23800 # DIR into the resulting binary and the resulting library dependency is
23801 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23802 # library is relocated.
23803 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23804
23805 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23806 # into the resulting binary.
23807 hardcode_minus_L=$hardcode_minus_L_CXX
23808
23809 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23810 # into the resulting binary.
23811 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23812
23813 # Set to "yes" if building a shared library automatically hardcodes DIR
23814 # into the library and all subsequent libraries and executables linked
23815 # against it.
23816 hardcode_automatic=$hardcode_automatic_CXX
23817
23818 # Set to yes if linker adds runtime paths of dependent libraries
23819 # to runtime path list.
23820 inherit_rpath=$inherit_rpath_CXX
23821
23822 # Whether libtool must link a program against all its dependency libraries.
23823 link_all_deplibs=$link_all_deplibs_CXX
23824
23825 # Set to "yes" if exported symbols are required.
23826 always_export_symbols=$always_export_symbols_CXX
23827
23828 # The commands to list exported symbols.
23829 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23830
23831 # Symbols that should not be listed in the preloaded symbols.
23832 exclude_expsyms=$lt_exclude_expsyms_CXX
23833
23834 # Symbols that must always be exported.
23835 include_expsyms=$lt_include_expsyms_CXX
23836
23837 # Commands necessary for linking programs (against libraries) with templates.
23838 prelink_cmds=$lt_prelink_cmds_CXX
23839
23840 # Commands necessary for finishing linking programs.
23841 postlink_cmds=$lt_postlink_cmds_CXX
23842
23843 # Specify filename containing input files.
23844 file_list_spec=$lt_file_list_spec_CXX
23845
23846 # How to hardcode a shared library path into an executable.
23847 hardcode_action=$hardcode_action_CXX
23848
23849 # The directories searched by this compiler when creating a shared library.
23850 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23851
23852 # Dependencies to place before and after the objects being linked to
23853 # create a shared library.
23854 predep_objects=$lt_predep_objects_CXX
23855 postdep_objects=$lt_postdep_objects_CXX
23856 predeps=$lt_predeps_CXX
23857 postdeps=$lt_postdeps_CXX
23858
23859 # The library search path used internally by the compiler when linking
23860 # a shared library.
23861 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23862
23863 # ### END LIBTOOL TAG CONFIG: CXX
23864 _LT_EOF
23865
23866 ;;
23867
23868 esac
23869 done # for ac_tag
23870
23871
23872 as_fn_exit 0
23873 _ACEOF
23874 ac_clean_files=$ac_clean_files_save
23875
23876 test $ac_write_fail = 0 ||
23877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23878
23879
23880 # configure is writing to config.log, and then calls config.status.
23881 # config.status does its own redirection, appending to config.log.
23882 # Unfortunately, on DOS this fails, as config.log is still kept open
23883 # by configure, so config.status won't be able to write to it; its
23884 # output is simply discarded. So we exec the FD to /dev/null,
23885 # effectively closing config.log, so it can be properly (re)opened and
23886 # appended to by config.status. When coming back to configure, we
23887 # need to make the FD available again.
23888 if test "$no_create" != yes; then
23889 ac_cs_success=:
23890 ac_config_status_args=
23891 test "$silent" = yes &&
23892 ac_config_status_args="$ac_config_status_args --quiet"
23893 exec 5>/dev/null
23894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23895 exec 5>>config.log
23896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23897 # would make configure fail if this is the last instruction.
23898 $ac_cs_success || as_fn_exit 1
23899 fi
23900 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23902 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23903 fi
23904