]> git.saurik.com Git - cycript.git/blob - configure
Remove APR dependency: getopt_long actually works.
[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 LTLIBGCC
654 LTLIBTERMCAP
655 LTLIBREADLINE
656 CY_OBJECTIVEC_FALSE
657 CY_OBJECTIVEC_TRUE
658 LTOBJECTIVEC
659 GNUSTEP_CONFIG
660 CY_OBJECTIVEC
661 LTLIBFFI
662 LIBFFI_LIBS
663 LIBFFI_CFLAGS
664 CY_EXECUTE_FALSE
665 CY_EXECUTE_TRUE
666 CY_CONSOLE_FALSE
667 CY_CONSOLE_TRUE
668 LTJAVASCRIPTCORE
669 WEBKIT_LIBS
670 WEBKIT_CFLAGS
671 CY_EXECUTE
672 CY_ARCH
673 CY_FILTERS
674 GNUTAR
675 GPERF
676 FLEX
677 BISON
678 TIME
679 GIT
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CXXCPP
684 CPP
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 DLLTOOL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 ac_ct_AR
713 AR
714 am__fastdepOBJCXX_FALSE
715 am__fastdepOBJCXX_TRUE
716 OBJCXXDEPMODE
717 ac_ct_OBJCXX
718 OBJCXXFLAGS
719 OBJCXX
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 MAINT
744 MAINTAINER_MODE_FALSE
745 MAINTAINER_MODE_TRUE
746 AM_BACKSLASH
747 AM_DEFAULT_VERBOSITY
748 AM_DEFAULT_V
749 AM_V
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_maintainer_mode
816 enable_dependency_tracking
817 enable_static
818 enable_shared
819 with_pic
820 enable_fast_install
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 enable_javascript
825 enable_console
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CXX
836 CXXFLAGS
837 CCC
838 OBJCXX
839 OBJCXXFLAGS
840 CPP
841 CXXCPP
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR
845 BISON
846 FLEX
847 GPERF
848 GNUTAR
849 WEBKIT_CFLAGS
850 WEBKIT_LIBS
851 LIBFFI_CFLAGS
852 LIBFFI_LIBS
853 GNUSTEP_CONFIG'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259 ;;
1260
1261 esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1282 do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of Cycript 0.9:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-static[=PKGS] build static libraries [default=no]
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-javascript[=ENGINE]
1487 use a JavaScript runtime (currently the only
1488 available option for ENGINE is JavaScriptCore)
1489 [default=yes]
1490 --disable-console disable console
1491
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-sysroot=DIR Search for dependent libraries within DIR
1499 (or the compiler's sysroot if not specified).
1500
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
1511 OBJCXX Objective C++ compiler command
1512 OBJCXXFLAGS Objective C++ compiler flags
1513 CPP C preprocessor
1514 CXXCPP C++ preprocessor
1515 PKG_CONFIG path to pkg-config utility
1516 PKG_CONFIG_PATH
1517 directories to add to pkg-config's search path
1518 PKG_CONFIG_LIBDIR
1519 path overriding pkg-config's built-in search path
1520 BISON GNU Project parser generator (yacc replacement)
1521 FLEX the fast lexical analyser generator
1522 GPERF perfect hash function generator
1523 GNUTAR a very sticky lump of files
1524 WEBKIT_CFLAGS
1525 C compiler flags for WEBKIT, overriding pkg-config
1526 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1527 GNUSTEP_CONFIG
1528 prints information about the current gnustep installation
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 Report bugs to <saurik@saurik.com>.
1534 Cycript home page: <http://www.cycript.org/>.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 Cycript configure 0.9
1598 generated by GNU Autoconf 2.69
1599
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603
1604 Copyright (C) 2009-2012 Jay Freeman (saurik)
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_cxx_try_compile LINENO
1652 # ----------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_cxx_try_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_cxx_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_cxx_try_compile
1688
1689 # ac_fn_objcxx_try_compile LINENO
1690 # -------------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_objcxx_try_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_objcxx_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_objcxx_try_compile
1726
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_link ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 test -x conftest$ac_exeext
1755 }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762 fi
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_link
1772
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_header_compile
1803
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_cpp
1840
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1845 ac_fn_c_try_run ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=$ac_status
1876 fi
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_run
1882
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1898 #define $2 innocuous_$2
1899
1900 /* System header to define __stub macros and hopefully few prototypes,
1901 which can conflict with char $2 (); below.
1902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903 <limits.h> exists even on freestanding compilers. */
1904
1905 #ifdef __STDC__
1906 # include <limits.h>
1907 #else
1908 # include <assert.h>
1909 #endif
1910
1911 #undef $2
1912
1913 /* Override any GCC internal prototype to avoid an error.
1914 Use char because int might match the return type of a GCC
1915 builtin and then its argument prototype would still apply. */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 ();
1920 /* The GNU C library defines this for functions which it implements
1921 to always fail with ENOSYS. Some functions are actually named
1922 something starting with __ and the normal name is an alias. */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1926
1927 int
1928 main ()
1929 {
1930 return $2 ();
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext \
1941 conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_cxx_try_cpp LINENO
1951 # ------------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_cpp ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 }; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 ac_retval=1
1981 fi
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_cxx_try_cpp
1986
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021 ac_retval=1
2022 fi
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2030
2031 } # ac_fn_cxx_try_link
2032
2033 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2034 # ---------------------------------------------------------
2035 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036 # the include files in INCLUDES and setting the cache variable VAR
2037 # accordingly.
2038 ac_fn_cxx_check_header_mongrel ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if eval \${$3+:} false; then :
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 else
2051 # Is the header compilable?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053 $as_echo_n "checking $2 usability... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_cxx_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2061 else
2062 ac_header_compiler=no
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066 $as_echo "$ac_header_compiler" >&6; }
2067
2068 # Is the header present?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070 $as_echo_n "checking $2 presence... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 #include <$2>
2074 _ACEOF
2075 if ac_fn_cxx_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2077 else
2078 ac_header_preproc=no
2079 fi
2080 rm -f conftest.err conftest.i conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082 $as_echo "$ac_header_preproc" >&6; }
2083
2084 # So? What about this header?
2085 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2086 yes:no: )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ;;
2092 no:yes:* )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ( $as_echo "## -------------------------------- ##
2104 ## Report this to saurik@saurik.com ##
2105 ## -------------------------------- ##"
2106 ) | sed "s/^/$as_me: WARNING: /" >&2
2107 ;;
2108 esac
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if eval \${$3+:} false; then :
2112 $as_echo_n "(cached) " >&6
2113 else
2114 eval "$3=\$ac_header_compiler"
2115 fi
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 fi
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122 } # ac_fn_cxx_check_header_mongrel
2123
2124 # ac_fn_objcxx_try_link LINENO
2125 # ----------------------------
2126 # Try to link conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_objcxx_try_link ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext conftest$ac_exeext
2131 if { { ac_try="$ac_link"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_link") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_objcxx_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest$ac_exeext && {
2150 test "$cross_compiling" = yes ||
2151 test -x conftest$ac_exeext
2152 }; then :
2153 ac_retval=0
2154 else
2155 $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=1
2159 fi
2160 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2161 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2162 # interfere with the next link command; also delete a directory that is
2163 # left behind by Apple's compiler. We do this before executing the actions.
2164 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_objcxx_try_link
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2172
2173 It was created by Cycript $as_me 0.9, which was
2174 generated by GNU Autoconf 2.69. Invocation command line was
2175
2176 $ $0 $@
2177
2178 _ACEOF
2179 exec 5>>config.log
2180 {
2181 cat <<_ASUNAME
2182 ## --------- ##
2183 ## Platform. ##
2184 ## --------- ##
2185
2186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2191
2192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2194
2195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2202
2203 _ASUNAME
2204
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2211 done
2212 IFS=$as_save_IFS
2213
2214 } >&5
2215
2216 cat >&5 <<_ACEOF
2217
2218
2219 ## ----------- ##
2220 ## Core tests. ##
2221 ## ----------- ##
2222
2223 _ACEOF
2224
2225
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2231 ac_configure_args=
2232 ac_configure_args0=
2233 ac_configure_args1=
2234 ac_must_keep_next=false
2235 for ac_pass in 1 2
2236 do
2237 for ac_arg
2238 do
2239 case $ac_arg in
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2243 continue ;;
2244 *\'*)
2245 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 case $ac_pass in
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249 2)
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2253 else
2254 case $ac_arg in
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 esac
2262 ;;
2263 -* ) ac_must_keep_next=true ;;
2264 esac
2265 fi
2266 as_fn_append ac_configure_args " '$ac_arg'"
2267 ;;
2268 esac
2269 done
2270 done
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2273
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log. We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2281 {
2282 echo
2283
2284 $as_echo "## ---------------- ##
2285 ## Cache variables. ##
2286 ## ---------------- ##"
2287 echo
2288 # The following way of writing the cache mishandles newlines in values,
2289 (
2290 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in #(
2293 *${as_nl}*)
2294 case $ac_var in #(
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297 esac
2298 case $ac_var in #(
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2302 esac ;;
2303 esac
2304 done
2305 (set) 2>&1 |
2306 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2308 sed -n \
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311 ;; #(
2312 *)
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2314 ;;
2315 esac |
2316 sort
2317 )
2318 echo
2319
2320 $as_echo "## ----------------- ##
2321 ## Output variables. ##
2322 ## ----------------- ##"
2323 echo
2324 for ac_var in $ac_subst_vars
2325 do
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 $as_echo "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2333
2334 if test -n "$ac_subst_files"; then
2335 $as_echo "## ------------------- ##
2336 ## File substitutions. ##
2337 ## ------------------- ##"
2338 echo
2339 for ac_var in $ac_subst_files
2340 do
2341 eval ac_val=\$$ac_var
2342 case $ac_val in
2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344 esac
2345 $as_echo "$ac_var='\''$ac_val'\''"
2346 done | sort
2347 echo
2348 fi
2349
2350 if test -s confdefs.h; then
2351 $as_echo "## ----------- ##
2352 ## confdefs.h. ##
2353 ## ----------- ##"
2354 echo
2355 cat confdefs.h
2356 echo
2357 fi
2358 test "$ac_signal" != 0 &&
2359 $as_echo "$as_me: caught signal $ac_signal"
2360 $as_echo "$as_me: exit $exit_status"
2361 } >&5
2362 rm -f core *.core core.conftest.* &&
2363 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 exit $exit_status
2365 ' 0
2366 for ac_signal in 1 2 13 15; do
2367 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2368 done
2369 ac_signal=0
2370
2371 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2372 rm -f -r conftest* confdefs.h
2373
2374 $as_echo "/* confdefs.h */" > confdefs.h
2375
2376 # Predefined preprocessor variables.
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_NAME "$PACKAGE_NAME"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_URL "$PACKAGE_URL"
2400 _ACEOF
2401
2402
2403 # Let the site file select an alternate cache file if it wants to.
2404 # Prefer an explicitly selected file to automatically selected ones.
2405 ac_site_file1=NONE
2406 ac_site_file2=NONE
2407 if test -n "$CONFIG_SITE"; then
2408 # We do not want a PATH search for config.site.
2409 case $CONFIG_SITE in #((
2410 -*) ac_site_file1=./$CONFIG_SITE;;
2411 */*) ac_site_file1=$CONFIG_SITE;;
2412 *) ac_site_file1=./$CONFIG_SITE;;
2413 esac
2414 elif test "x$prefix" != xNONE; then
2415 ac_site_file1=$prefix/share/config.site
2416 ac_site_file2=$prefix/etc/config.site
2417 else
2418 ac_site_file1=$ac_default_prefix/share/config.site
2419 ac_site_file2=$ac_default_prefix/etc/config.site
2420 fi
2421 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422 do
2423 test "x$ac_site_file" = xNONE && continue
2424 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2426 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2427 sed 's/^/| /' "$ac_site_file" >&5
2428 . "$ac_site_file" \
2429 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 as_fn_error $? "failed to load site script $ac_site_file
2432 See \`config.log' for more details" "$LINENO" 5; }
2433 fi
2434 done
2435
2436 if test -r "$cache_file"; then
2437 # Some versions of bash will fail to source /dev/null (special files
2438 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2439 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442 case $cache_file in
2443 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444 *) . "./$cache_file";;
2445 esac
2446 fi
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449 $as_echo "$as_me: creating cache $cache_file" >&6;}
2450 >$cache_file
2451 fi
2452
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2462 set,)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,set)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,);;
2471 *)
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2489 fi;;
2490 esac
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2493 case $ac_new_val in
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2496 esac
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500 esac
2501 fi
2502 done
2503 if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509 fi
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520
2521
2522
2523
2524 ac_aux_dir=
2525 for ac_dir in . "$srcdir"/.; do
2526 if test -f "$ac_dir/install-sh"; then
2527 ac_aux_dir=$ac_dir
2528 ac_install_sh="$ac_aux_dir/install-sh -c"
2529 break
2530 elif test -f "$ac_dir/install.sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install.sh -c"
2533 break
2534 elif test -f "$ac_dir/shtool"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/shtool install -c"
2537 break
2538 fi
2539 done
2540 if test -z "$ac_aux_dir"; then
2541 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2542 fi
2543
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2549 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2550 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551
2552
2553
2554 ac_config_headers="$ac_config_headers config.h"
2555
2556
2557 am__api_version='1.14'
2558
2559 # Find a good install program. We prefer a C program (faster),
2560 # so one script is as good as another. But avoid the broken or
2561 # incompatible versions:
2562 # SysV /etc/install, /usr/sbin/install
2563 # SunOS /usr/etc/install
2564 # IRIX /sbin/install
2565 # AIX /bin/install
2566 # AmigaOS /C/install, which installs bootblocks on floppy discs
2567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570 # OS/2's system install, which has a completely different semantic
2571 # ./install, which can be erroneously created by make from ./install.sh.
2572 # Reject install programs that cannot install multiple files.
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2575 if test -z "$INSTALL"; then
2576 if ${ac_cv_path_install+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585 case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623 esac
2624
2625 done
2626 IFS=$as_save_IFS
2627
2628 rm -rf conftest.one conftest.two conftest.dir
2629
2630 fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642 $as_echo "$INSTALL" >&6; }
2643
2644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645 # It thinks the first close brace ends the variable substitution.
2646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
2648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649
2650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653 $as_echo_n "checking whether build environment is sane... " >&6; }
2654 # Reject unsafe characters in $srcdir or the absolute working directory
2655 # name. Accept space and tab only in the latter.
2656 am_lf='
2657 '
2658 case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661 esac
2662 case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665 esac
2666
2667 # Do 'set' in a subshell so we don't clobber the current shell's
2668 # arguments. Must try -L first in case configure is actually a
2669 # symlink; some systems play weird games with the mod time of symlinks
2670 # (eg FreeBSD returns the mod time of the symlink's containing
2671 # directory).
2672 if (
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
2698 test "$2" = conftest.file
2699 )
2700 then
2701 # Ok.
2702 :
2703 else
2704 as_fn_error $? "newly created file is older than distributed files!
2705 Check your system clock" "$LINENO" 5
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708 $as_echo "yes" >&6; }
2709 # If we didn't sleep, we still need to ensure time stamps of config.status and
2710 # generated files are strictly newer.
2711 am_sleep_pid=
2712 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715 fi
2716
2717 rm -f conftest.file
2718
2719 test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721 # Use a double $ so make ignores it.
2722 test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724 # Double any \ or $.
2725 # By default was `s,x,x', remove it if useless.
2726 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729 # expand $ac_aux_dir to an absolute path
2730 am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732 if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739 fi
2740 # Use eval to expand $SHELL
2741 if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
2743 else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2747 fi
2748
2749 if test x"${install_sh}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756 fi
2757
2758 # Installed binaries are usually stripped using 'strip' when the user
2759 # run "make install-strip". However 'strip' might not be the right
2760 # tool to use in cross-compilation environments, therefore Automake
2761 # will honor the 'STRIP' environment variable to overrule this program.
2762 if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 STRIP=$ac_cv_prog_STRIP
2792 if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794 $as_echo "$STRIP" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805 set dummy strip; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832 if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834 $as_echo "$ac_ct_STRIP" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 STRIP=$ac_ct_STRIP
2850 fi
2851 else
2852 STRIP="$ac_cv_prog_STRIP"
2853 fi
2854
2855 fi
2856 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860 if test -z "$MKDIR_P"; then
2861 if ${ac_cv_path_mkdir+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885
2886 test -d ./--version && rmdir ./--version
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898 $as_echo "$MKDIR_P" >&6; }
2899
2900 for ac_prog in gawk mawk nawk awk
2901 do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_AWK+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 AWK=$ac_cv_prog_AWK
2930 if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932 $as_echo "$AWK" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939 test -n "$AWK" && break
2940 done
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944 set x ${MAKE-make}
2945 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat >conftest.make <<\_ACEOF
2950 SHELL = /bin/sh
2951 all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953 _ACEOF
2954 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960 esac
2961 rm -f conftest.make
2962 fi
2963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2966 SET_MAKE=
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971 fi
2972
2973 rm -rf .tst 2>/dev/null
2974 mkdir .tst 2>/dev/null
2975 if test -d .tst; then
2976 am__leading_dot=.
2977 else
2978 am__leading_dot=_
2979 fi
2980 rmdir .tst 2>/dev/null
2981
2982 # Check whether --enable-silent-rules was given.
2983 if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985 fi
2986
2987 case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991 esac
2992 am_make=${MAKE-make}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995 if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999 BAR0=false
3000 BAR1=true
3001 V=1
3002 am__doit:
3003 @$(TRUE)
3004 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006 else
3007 am_cv_make_support_nested_variables=no
3008 fi
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3012 if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015 else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018 fi
3019 AM_BACKSLASH='\'
3020
3021 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 fi
3029 fi
3030
3031 # test whether we have cygpath
3032 if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038 fi
3039
3040
3041 # Define the identity of the package.
3042 PACKAGE='cycript'
3043 VERSION='0.9'
3044
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE "$PACKAGE"
3048 _ACEOF
3049
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define VERSION "$VERSION"
3053 _ACEOF
3054
3055 # Some tools Automake needs.
3056
3057 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
3071 # For better backward compatibility. To be removed once Automake 1.9.x
3072 # dies out for good. For more background, see:
3073 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075 mkdir_p='$(MKDIR_P)'
3076
3077 # We need awk for the "check" target. The system "awk" is bad on
3078 # some platforms.
3079 # Always define AMTAR for backward compatibility. Yes, it's still used
3080 # in the wild :-( We should find a proper way to deprecate it ...
3081 AMTAR='$${TAR-tar}'
3082
3083
3084 # We'll loop over all known methods to create a tar archive until one works.
3085 _am_tools='gnutar pax cpio none'
3086
3087 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088
3089
3090
3091
3092
3093
3094 # POSIX will say in a future version that running "rm -f" with no argument
3095 # is OK; and we want to be able to make that assumption in our Makefile
3096 # recipes. So use an aggressive probe to check that the usage we want is
3097 # actually supported "in the wild" to an acceptable degree.
3098 # See automake bug#10828.
3099 # To make any issue more visible, cause the running configure to be aborted
3100 # by default if the 'rm' program in use doesn't match our expectations; the
3101 # user can still override this though.
3102 if rm -f && rm -fr && rm -rf; then : OK; else
3103 cat >&2 <<'END'
3104 Oops!
3105
3106 Your 'rm' program seems unable to run without file operands specified
3107 on the command line, even when the '-f' option is present. This is contrary
3108 to the behaviour of most rm programs out there, and not conforming with
3109 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3110
3111 Please tell bug-automake@gnu.org about your system, including the value
3112 of your $PATH and any error possibly output before this message. This
3113 can help us improve future automake versions.
3114
3115 END
3116 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117 echo 'Configuration will proceed anyway, since you have set the' >&2
3118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119 echo >&2
3120 else
3121 cat >&2 <<'END'
3122 Aborting the configuration process, to ensure you take notice of the issue.
3123
3124 You can download and install GNU coreutils to get an 'rm' implementation
3125 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3126
3127 If you want to complete the configuration process using your problematic
3128 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129 to "yes", and re-run configure.
3130
3131 END
3132 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3133 fi
3134 fi
3135
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3137 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3138 # Check whether --enable-maintainer-mode was given.
3139 if test "${enable_maintainer_mode+set}" = set; then :
3140 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3141 else
3142 USE_MAINTAINER_MODE=no
3143 fi
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3146 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3147 if test $USE_MAINTAINER_MODE = yes; then
3148 MAINTAINER_MODE_TRUE=
3149 MAINTAINER_MODE_FALSE='#'
3150 else
3151 MAINTAINER_MODE_TRUE='#'
3152 MAINTAINER_MODE_FALSE=
3153 fi
3154
3155 MAINT=$MAINTAINER_MODE_TRUE
3156
3157
3158
3159 ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 CC=$ac_cv_prog_CC
3193 if test -n "$CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 $as_echo "$CC" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202 fi
3203 if test -z "$ac_cv_prog_CC"; then
3204 ac_ct_CC=$CC
3205 # Extract the first word of "gcc", so it can be a program name with args.
3206 set dummy gcc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_ac_ct_CC="gcc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233 if test -n "$ac_ct_CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235 $as_echo "$ac_ct_CC" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241 if test "x$ac_ct_CC" = x; then
3242 CC=""
3243 else
3244 case $cross_compiling:$ac_tool_warned in
3245 yes:)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248 ac_tool_warned=yes ;;
3249 esac
3250 CC=$ac_ct_CC
3251 fi
3252 else
3253 CC="$ac_cv_prog_CC"
3254 fi
3255
3256 if test -z "$CC"; then
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}cc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_CC+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CC="${ac_tool_prefix}cc"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 fi
3297 if test -z "$CC"; then
3298 # Extract the first word of "cc", so it can be a program name with args.
3299 set dummy cc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 ac_prog_rejected=no
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3317 ac_prog_rejected=yes
3318 continue
3319 fi
3320 ac_cv_prog_CC="cc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324 done
3325 done
3326 IFS=$as_save_IFS
3327
3328 if test $ac_prog_rejected = yes; then
3329 # We found a bogon in the path, so make sure we never use it.
3330 set dummy $ac_cv_prog_CC
3331 shift
3332 if test $# != 0; then
3333 # We chose a different compiler from the bogus one.
3334 # However, it has the same basename, so the bogon will be chosen
3335 # first if we set CC to just the basename; use the full file name.
3336 shift
3337 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3338 fi
3339 fi
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352 fi
3353 if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 for ac_prog in cl.exe
3356 do
3357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 test -n "$CC" && break
3395 done
3396 fi
3397 if test -z "$CC"; then
3398 ac_ct_CC=$CC
3399 for ac_prog in cl.exe
3400 do
3401 # Extract the first word of "$ac_prog", so it can be a program name with args.
3402 set dummy $ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -n "$ac_ct_CC"; then
3409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3413 do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ac_ct_CC="$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422 done
3423 done
3424 IFS=$as_save_IFS
3425
3426 fi
3427 fi
3428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3429 if test -n "$ac_ct_CC"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3431 $as_echo "$ac_ct_CC" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437
3438 test -n "$ac_ct_CC" && break
3439 done
3440
3441 if test "x$ac_ct_CC" = x; then
3442 CC=""
3443 else
3444 case $cross_compiling:$ac_tool_warned in
3445 yes:)
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3448 ac_tool_warned=yes ;;
3449 esac
3450 CC=$ac_ct_CC
3451 fi
3452 fi
3453
3454 fi
3455
3456
3457 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "no acceptable C compiler found in \$PATH
3460 See \`config.log' for more details" "$LINENO" 5; }
3461
3462 # Provide some information about the compiler.
3463 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464 set X $ac_compile
3465 ac_compiler=$2
3466 for ac_option in --version -v -V -qversion; do
3467 { { ac_try="$ac_compiler $ac_option >&5"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3475 ac_status=$?
3476 if test -s conftest.err; then
3477 sed '10a\
3478 ... rest of stderr output deleted ...
3479 10q' conftest.err >conftest.er1
3480 cat conftest.er1 >&5
3481 fi
3482 rm -f conftest.er1 conftest.err
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }
3485 done
3486
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 ac_clean_files_save=$ac_clean_files
3499 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3500 # Try to create an executable without -o first, disregard a.out.
3501 # It will help us diagnose broken compilers, and finding out an intuition
3502 # of exeext.
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3504 $as_echo_n "checking whether the C compiler works... " >&6; }
3505 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3506
3507 # The possible output files:
3508 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509
3510 ac_rmfiles=
3511 for ac_file in $ac_files
3512 do
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516 esac
3517 done
3518 rm -f $ac_rmfiles
3519
3520 if { { ac_try="$ac_link_default"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_link_default") 2>&5
3528 ac_status=$?
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; then :
3531 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3532 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3533 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3534 # so that the user can short-circuit this test for compilers unknown to
3535 # Autoconf.
3536 for ac_file in $ac_files ''
3537 do
3538 test -f "$ac_file" || continue
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541 ;;
3542 [ab].out )
3543 # We found the default executable, but exeext='' is most
3544 # certainly right.
3545 break;;
3546 *.* )
3547 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3548 then :; else
3549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 fi
3551 # We set ac_cv_exeext here because the later test for it is not
3552 # safe: cross compilers may not add the suffix if given an `-o'
3553 # argument, so we may need to know it at that point already.
3554 # Even if this section looks crufty: it has the advantage of
3555 # actually working.
3556 break;;
3557 * )
3558 break;;
3559 esac
3560 done
3561 test "$ac_cv_exeext" = no && ac_cv_exeext=
3562
3563 else
3564 ac_file=''
3565 fi
3566 if test -z "$ac_file"; then :
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error 77 "C compiler cannot create executables
3575 See \`config.log' for more details" "$LINENO" 5; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578 $as_echo "yes" >&6; }
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3581 $as_echo_n "checking for C compiler default output file name... " >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3583 $as_echo "$ac_file" >&6; }
3584 ac_exeext=$ac_cv_exeext
3585
3586 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3587 ac_clean_files=$ac_clean_files_save
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3589 $as_echo_n "checking for suffix of executables... " >&6; }
3590 if { { ac_try="$ac_link"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; then :
3601 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3602 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3603 # work properly (i.e., refer to `conftest.exe'), while it won't with
3604 # `rm'.
3605 for ac_file in conftest.exe conftest conftest.*; do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 break;;
3611 * ) break;;
3612 esac
3613 done
3614 else
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3618 See \`config.log' for more details" "$LINENO" 5; }
3619 fi
3620 rm -f conftest conftest$ac_cv_exeext
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3622 $as_echo "$ac_cv_exeext" >&6; }
3623
3624 rm -f conftest.$ac_ext
3625 EXEEXT=$ac_cv_exeext
3626 ac_exeext=$EXEEXT
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <stdio.h>
3630 int
3631 main ()
3632 {
3633 FILE *f = fopen ("conftest.out", "w");
3634 return ferror (f) || fclose (f) != 0;
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 ac_clean_files="$ac_clean_files conftest.out"
3641 # Check that the compiler produces executables we can run. If not, either
3642 # the compiler is broken, or we cross compile.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3644 $as_echo_n "checking whether we are cross compiling... " >&6; }
3645 if test "$cross_compiling" != yes; then
3646 { { ac_try="$ac_link"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_link") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }
3657 if { ac_try='./conftest$ac_cv_exeext'
3658 { { case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_try") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; }; then
3668 cross_compiling=no
3669 else
3670 if test "$cross_compiling" = maybe; then
3671 cross_compiling=yes
3672 else
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error $? "cannot run C compiled programs.
3676 If you meant to cross compile, use \`--host'.
3677 See \`config.log' for more details" "$LINENO" 5; }
3678 fi
3679 fi
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3682 $as_echo "$cross_compiling" >&6; }
3683
3684 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3685 ac_clean_files=$ac_clean_files_save
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3687 $as_echo_n "checking for suffix of object files... " >&6; }
3688 if ${ac_cv_objext+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.o conftest.obj
3703 if { { ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_compile") 2>&5
3711 ac_status=$?
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 for ac_file in conftest.o conftest.obj conftest.*; do
3715 test -f "$ac_file" || continue;
3716 case $ac_file in
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3718 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3719 break;;
3720 esac
3721 done
3722 else
3723 $as_echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728 as_fn_error $? "cannot compute suffix of object files: cannot compile
3729 See \`config.log' for more details" "$LINENO" 5; }
3730 fi
3731 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3734 $as_echo "$ac_cv_objext" >&6; }
3735 OBJEXT=$ac_cv_objext
3736 ac_objext=$OBJEXT
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3738 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3739 if ${ac_cv_c_compiler_gnu+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748 #ifndef __GNUC__
3749 choke me
3750 #endif
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_compiler_gnu=yes
3758 else
3759 ac_compiler_gnu=no
3760 fi
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3763
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3766 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3767 if test $ac_compiler_gnu = yes; then
3768 GCC=yes
3769 else
3770 GCC=
3771 fi
3772 ac_test_CFLAGS=${CFLAGS+set}
3773 ac_save_CFLAGS=$CFLAGS
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3775 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3776 if ${ac_cv_prog_cc_g+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 ac_save_c_werror_flag=$ac_c_werror_flag
3780 ac_c_werror_flag=yes
3781 ac_cv_prog_cc_g=no
3782 CFLAGS="-g"
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 int
3787 main ()
3788 {
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_g=yes
3796 else
3797 CFLAGS=""
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810
3811 else
3812 ac_c_werror_flag=$ac_save_c_werror_flag
3813 CFLAGS="-g"
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 int
3818 main ()
3819 {
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_g=yes
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3836 $as_echo "$ac_cv_prog_cc_g" >&6; }
3837 if test "$ac_test_CFLAGS" = set; then
3838 CFLAGS=$ac_save_CFLAGS
3839 elif test $ac_cv_prog_cc_g = yes; then
3840 if test "$GCC" = yes; then
3841 CFLAGS="-g -O2"
3842 else
3843 CFLAGS="-g"
3844 fi
3845 else
3846 if test "$GCC" = yes; then
3847 CFLAGS="-O2"
3848 else
3849 CFLAGS=
3850 fi
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3853 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3854 if ${ac_cv_prog_cc_c89+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 ac_cv_prog_cc_c89=no
3858 ac_save_CC=$CC
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <stdarg.h>
3862 #include <stdio.h>
3863 struct stat;
3864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3865 struct buf { int x; };
3866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867 static char *e (p, i)
3868 char **p;
3869 int i;
3870 {
3871 return p[i];
3872 }
3873 static char *f (char * (*g) (char **, int), char **p, ...)
3874 {
3875 char *s;
3876 va_list v;
3877 va_start (v,p);
3878 s = g (p, va_arg (v,int));
3879 va_end (v);
3880 return s;
3881 }
3882
3883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3884 function prototypes and stuff, but not '\xHH' hex character constants.
3885 These don't provoke an error unfortunately, instead are silently treated
3886 as 'x'. The following induces an error, until -std is added to get
3887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3888 array size at least. It's necessary to write '\x00'==0 to get something
3889 that's true only with -std. */
3890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891
3892 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3893 inside strings and character constants. */
3894 #define FOO(x) 'x'
3895 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3896
3897 int test (int i, double x);
3898 struct s1 {int (*f) (int a);};
3899 struct s2 {int (*f) (double a);};
3900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901 int argc;
3902 char **argv;
3903 int
3904 main ()
3905 {
3906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3912 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3913 do
3914 CC="$ac_save_CC $ac_arg"
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_prog_cc_c89=$ac_arg
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext
3919 test "x$ac_cv_prog_cc_c89" != "xno" && break
3920 done
3921 rm -f conftest.$ac_ext
3922 CC=$ac_save_CC
3923
3924 fi
3925 # AC_CACHE_VAL
3926 case "x$ac_cv_prog_cc_c89" in
3927 x)
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3929 $as_echo "none needed" >&6; } ;;
3930 xno)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3932 $as_echo "unsupported" >&6; } ;;
3933 *)
3934 CC="$CC $ac_cv_prog_cc_c89"
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3936 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3937 esac
3938 if test "x$ac_cv_prog_cc_c89" != xno; then :
3939
3940 fi
3941
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947
3948 ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3954 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3955 if ${am_cv_prog_cc_c_o+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960
3961 int
3962 main ()
3963 {
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 # Make sure it works both with $CC and with simple cc.
3970 # Following AC_PROG_CC_C_O, we do the test twice because some
3971 # compilers refuse to overwrite an existing .o file with -o,
3972 # though they will create one.
3973 am_cv_prog_cc_c_o=yes
3974 for am_i in 1 2; do
3975 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3976 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } \
3980 && test -f conftest2.$ac_objext; then
3981 : OK
3982 else
3983 am_cv_prog_cc_c_o=no
3984 break
3985 fi
3986 done
3987 rm -f core conftest*
3988 unset am_i
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3991 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3992 if test "$am_cv_prog_cc_c_o" != yes; then
3993 # Losing compiler, so override with the script.
3994 # FIXME: It is wrong to rewrite CC.
3995 # But if we don't then we get into trouble of one sort or another.
3996 # A longer-term fix would be to have automake use am__CC in this case,
3997 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3998 CC="$am_aux_dir/compile $CC"
3999 fi
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005
4006 DEPDIR="${am__leading_dot}deps"
4007
4008 ac_config_commands="$ac_config_commands depfiles"
4009
4010
4011 am_make=${MAKE-make}
4012 cat > confinc << 'END'
4013 am__doit:
4014 @echo this is the am__doit target
4015 .PHONY: am__doit
4016 END
4017 # If we don't find an include directive, just comment out the code.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4020 am__include="#"
4021 am__quote=
4022 _am_result=none
4023 # First try GNU make style include.
4024 echo "include confinc" > confmf
4025 # Ignore all kinds of additional output from 'make'.
4026 case `$am_make -s -f confmf 2> /dev/null` in #(
4027 *the\ am__doit\ target*)
4028 am__include=include
4029 am__quote=
4030 _am_result=GNU
4031 ;;
4032 esac
4033 # Now try BSD make style include.
4034 if test "$am__include" = "#"; then
4035 echo '.include "confinc"' > confmf
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038 am__include=.include
4039 am__quote="\""
4040 _am_result=BSD
4041 ;;
4042 esac
4043 fi
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4047 $as_echo "$_am_result" >&6; }
4048 rm -f confinc confmf
4049
4050 # Check whether --enable-dependency-tracking was given.
4051 if test "${enable_dependency_tracking+set}" = set; then :
4052 enableval=$enable_dependency_tracking;
4053 fi
4054
4055 if test "x$enable_dependency_tracking" != xno; then
4056 am_depcomp="$ac_aux_dir/depcomp"
4057 AMDEPBACKSLASH='\'
4058 am__nodep='_no'
4059 fi
4060 if test "x$enable_dependency_tracking" != xno; then
4061 AMDEP_TRUE=
4062 AMDEP_FALSE='#'
4063 else
4064 AMDEP_TRUE='#'
4065 AMDEP_FALSE=
4066 fi
4067
4068
4069
4070 depcc="$CC" am_compiler_list=
4071
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4073 $as_echo_n "checking dependency style of $depcc... " >&6; }
4074 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4078 # We make a subdir and do the tests there. Otherwise we can end up
4079 # making bogus files that we don't know about and never remove. For
4080 # instance it was reported that on HP-UX the gcc test will end up
4081 # making a dummy file named 'D' -- because '-MD' means "put the output
4082 # in D".
4083 rm -rf conftest.dir
4084 mkdir conftest.dir
4085 # Copy depcomp to subdir because otherwise we won't find it if we're
4086 # using a relative directory.
4087 cp "$am_depcomp" conftest.dir
4088 cd conftest.dir
4089 # We will build objects and dependencies in a subdirectory because
4090 # it helps to detect inapplicable dependency modes. For instance
4091 # both Tru64's cc and ICC support -MD to output dependencies as a
4092 # side effect of compilation, but ICC will put the dependencies in
4093 # the current directory while Tru64 will put them in the object
4094 # directory.
4095 mkdir sub
4096
4097 am_cv_CC_dependencies_compiler_type=none
4098 if test "$am_compiler_list" = ""; then
4099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4100 fi
4101 am__universal=false
4102 case " $depcc " in #(
4103 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4104 esac
4105
4106 for depmode in $am_compiler_list; do
4107 # Setup a source with many dependencies, because some compilers
4108 # like to wrap large dependency lists on column 80 (with \), and
4109 # we should not choose a depcomp mode which is confused by this.
4110 #
4111 # We need to recreate these files for each test, as the compiler may
4112 # overwrite some of them when testing with obscure command lines.
4113 # This happens at least with the AIX C compiler.
4114 : > sub/conftest.c
4115 for i in 1 2 3 4 5 6; do
4116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4117 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4118 # Solaris 10 /bin/sh.
4119 echo '/* dummy */' > sub/conftst$i.h
4120 done
4121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4122
4123 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4124 # mode. It turns out that the SunPro C++ compiler does not properly
4125 # handle '-M -o', and we need to detect this. Also, some Intel
4126 # versions had trouble with output in subdirs.
4127 am__obj=sub/conftest.${OBJEXT-o}
4128 am__minus_obj="-o $am__obj"
4129 case $depmode in
4130 gcc)
4131 # This depmode causes a compiler race in universal mode.
4132 test "$am__universal" = false || continue
4133 ;;
4134 nosideeffect)
4135 # After this tag, mechanisms are not by side-effect, so they'll
4136 # only be used when explicitly requested.
4137 if test "x$enable_dependency_tracking" = xyes; then
4138 continue
4139 else
4140 break
4141 fi
4142 ;;
4143 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4144 # This compiler won't grok '-c -o', but also, the minuso test has
4145 # not run yet. These depmodes are late enough in the game, and
4146 # so weak that their functioning should not be impacted.
4147 am__obj=conftest.${OBJEXT-o}
4148 am__minus_obj=
4149 ;;
4150 none) break ;;
4151 esac
4152 if depmode=$depmode \
4153 source=sub/conftest.c object=$am__obj \
4154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4155 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4156 >/dev/null 2>conftest.err &&
4157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4159 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4161 # icc doesn't choke on unknown options, it will just issue warnings
4162 # or remarks (even with -Werror). So we grep stderr for any message
4163 # that says an option was ignored or not supported.
4164 # When given -MP, icc 7.0 and 7.1 complain thusly:
4165 # icc: Command line warning: ignoring option '-M'; no argument required
4166 # The diagnosis changed in icc 8.0:
4167 # icc: Command line remark: option '-MP' not supported
4168 if (grep 'ignoring option' conftest.err ||
4169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4170 am_cv_CC_dependencies_compiler_type=$depmode
4171 break
4172 fi
4173 fi
4174 done
4175
4176 cd ..
4177 rm -rf conftest.dir
4178 else
4179 am_cv_CC_dependencies_compiler_type=none
4180 fi
4181
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4184 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4186
4187 if
4188 test "x$enable_dependency_tracking" != xno \
4189 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4190 am__fastdepCC_TRUE=
4191 am__fastdepCC_FALSE='#'
4192 else
4193 am__fastdepCC_TRUE='#'
4194 am__fastdepCC_FALSE=
4195 fi
4196
4197
4198 ac_ext=cpp
4199 ac_cpp='$CXXCPP $CPPFLAGS'
4200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4203 if test -z "$CXX"; then
4204 if test -n "$CCC"; then
4205 CXX=$CCC
4206 else
4207 if test -n "$ac_tool_prefix"; then
4208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4209 do
4210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4211 set dummy $ac_tool_prefix$ac_prog; 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_CXX+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$CXX"; then
4218 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
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 CXX=$ac_cv_prog_CXX
4238 if test -n "$CXX"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4240 $as_echo "$CXX" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246
4247 test -n "$CXX" && break
4248 done
4249 fi
4250 if test -z "$CXX"; then
4251 ac_ct_CXX=$CXX
4252 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4253 do
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy $ac_prog; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$ac_ct_CXX"; then
4262 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_ac_ct_CXX="$ac_prog"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276 done
4277 IFS=$as_save_IFS
4278
4279 fi
4280 fi
4281 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4282 if test -n "$ac_ct_CXX"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4284 $as_echo "$ac_ct_CXX" >&6; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4288 fi
4289
4290
4291 test -n "$ac_ct_CXX" && break
4292 done
4293
4294 if test "x$ac_ct_CXX" = x; then
4295 CXX="g++"
4296 else
4297 case $cross_compiling:$ac_tool_warned in
4298 yes:)
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4301 ac_tool_warned=yes ;;
4302 esac
4303 CXX=$ac_ct_CXX
4304 fi
4305 fi
4306
4307 fi
4308 fi
4309 # Provide some information about the compiler.
4310 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4311 set X $ac_compile
4312 ac_compiler=$2
4313 for ac_option in --version -v -V -qversion; do
4314 { { ac_try="$ac_compiler $ac_option >&5"
4315 case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4322 ac_status=$?
4323 if test -s conftest.err; then
4324 sed '10a\
4325 ... rest of stderr output deleted ...
4326 10q' conftest.err >conftest.er1
4327 cat conftest.er1 >&5
4328 fi
4329 rm -f conftest.er1 conftest.err
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4332 done
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4335 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4336 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341
4342 int
4343 main ()
4344 {
4345 #ifndef __GNUC__
4346 choke me
4347 #endif
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_cxx_try_compile "$LINENO"; then :
4354 ac_compiler_gnu=yes
4355 else
4356 ac_compiler_gnu=no
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4360
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4363 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4364 if test $ac_compiler_gnu = yes; then
4365 GXX=yes
4366 else
4367 GXX=
4368 fi
4369 ac_test_CXXFLAGS=${CXXFLAGS+set}
4370 ac_save_CXXFLAGS=$CXXFLAGS
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4372 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4373 if ${ac_cv_prog_cxx_g+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4377 ac_cxx_werror_flag=yes
4378 ac_cv_prog_cxx_g=no
4379 CXXFLAGS="-g"
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_cxx_try_compile "$LINENO"; then :
4392 ac_cv_prog_cxx_g=yes
4393 else
4394 CXXFLAGS=""
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397
4398 int
4399 main ()
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_cxx_try_compile "$LINENO"; then :
4407
4408 else
4409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4410 CXXFLAGS="-g"
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_cxx_try_compile "$LINENO"; then :
4423 ac_cv_prog_cxx_g=yes
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 fi
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4433 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4434 if test "$ac_test_CXXFLAGS" = set; then
4435 CXXFLAGS=$ac_save_CXXFLAGS
4436 elif test $ac_cv_prog_cxx_g = yes; then
4437 if test "$GXX" = yes; then
4438 CXXFLAGS="-g -O2"
4439 else
4440 CXXFLAGS="-g"
4441 fi
4442 else
4443 if test "$GXX" = yes; then
4444 CXXFLAGS="-O2"
4445 else
4446 CXXFLAGS=
4447 fi
4448 fi
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455 depcc="$CXX" am_compiler_list=
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4458 $as_echo_n "checking dependency style of $depcc... " >&6; }
4459 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4463 # We make a subdir and do the tests there. Otherwise we can end up
4464 # making bogus files that we don't know about and never remove. For
4465 # instance it was reported that on HP-UX the gcc test will end up
4466 # making a dummy file named 'D' -- because '-MD' means "put the output
4467 # in D".
4468 rm -rf conftest.dir
4469 mkdir conftest.dir
4470 # Copy depcomp to subdir because otherwise we won't find it if we're
4471 # using a relative directory.
4472 cp "$am_depcomp" conftest.dir
4473 cd conftest.dir
4474 # We will build objects and dependencies in a subdirectory because
4475 # it helps to detect inapplicable dependency modes. For instance
4476 # both Tru64's cc and ICC support -MD to output dependencies as a
4477 # side effect of compilation, but ICC will put the dependencies in
4478 # the current directory while Tru64 will put them in the object
4479 # directory.
4480 mkdir sub
4481
4482 am_cv_CXX_dependencies_compiler_type=none
4483 if test "$am_compiler_list" = ""; then
4484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4485 fi
4486 am__universal=false
4487 case " $depcc " in #(
4488 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 esac
4490
4491 for depmode in $am_compiler_list; do
4492 # Setup a source with many dependencies, because some compilers
4493 # like to wrap large dependency lists on column 80 (with \), and
4494 # we should not choose a depcomp mode which is confused by this.
4495 #
4496 # We need to recreate these files for each test, as the compiler may
4497 # overwrite some of them when testing with obscure command lines.
4498 # This happens at least with the AIX C compiler.
4499 : > sub/conftest.c
4500 for i in 1 2 3 4 5 6; do
4501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4502 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4503 # Solaris 10 /bin/sh.
4504 echo '/* dummy */' > sub/conftst$i.h
4505 done
4506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4507
4508 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4509 # mode. It turns out that the SunPro C++ compiler does not properly
4510 # handle '-M -o', and we need to detect this. Also, some Intel
4511 # versions had trouble with output in subdirs.
4512 am__obj=sub/conftest.${OBJEXT-o}
4513 am__minus_obj="-o $am__obj"
4514 case $depmode in
4515 gcc)
4516 # This depmode causes a compiler race in universal mode.
4517 test "$am__universal" = false || continue
4518 ;;
4519 nosideeffect)
4520 # After this tag, mechanisms are not by side-effect, so they'll
4521 # only be used when explicitly requested.
4522 if test "x$enable_dependency_tracking" = xyes; then
4523 continue
4524 else
4525 break
4526 fi
4527 ;;
4528 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4529 # This compiler won't grok '-c -o', but also, the minuso test has
4530 # not run yet. These depmodes are late enough in the game, and
4531 # so weak that their functioning should not be impacted.
4532 am__obj=conftest.${OBJEXT-o}
4533 am__minus_obj=
4534 ;;
4535 none) break ;;
4536 esac
4537 if depmode=$depmode \
4538 source=sub/conftest.c object=$am__obj \
4539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4540 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4541 >/dev/null 2>conftest.err &&
4542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4544 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4546 # icc doesn't choke on unknown options, it will just issue warnings
4547 # or remarks (even with -Werror). So we grep stderr for any message
4548 # that says an option was ignored or not supported.
4549 # When given -MP, icc 7.0 and 7.1 complain thusly:
4550 # icc: Command line warning: ignoring option '-M'; no argument required
4551 # The diagnosis changed in icc 8.0:
4552 # icc: Command line remark: option '-MP' not supported
4553 if (grep 'ignoring option' conftest.err ||
4554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4555 am_cv_CXX_dependencies_compiler_type=$depmode
4556 break
4557 fi
4558 fi
4559 done
4560
4561 cd ..
4562 rm -rf conftest.dir
4563 else
4564 am_cv_CXX_dependencies_compiler_type=none
4565 fi
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4569 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4570 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4571
4572 if
4573 test "x$enable_dependency_tracking" != xno \
4574 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4575 am__fastdepCXX_TRUE=
4576 am__fastdepCXX_FALSE='#'
4577 else
4578 am__fastdepCXX_TRUE='#'
4579 am__fastdepCXX_FALSE=
4580 fi
4581
4582
4583 ac_ext=mm
4584 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4585 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4588 if test -n "$ac_tool_prefix"; then
4589 for ac_prog in g++ objc++ objcxx c++ CXX
4590 do
4591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_OBJCXX+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$OBJCXX"; then
4599 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 OBJCXX=$ac_cv_prog_OBJCXX
4619 if test -n "$OBJCXX"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4621 $as_echo "$OBJCXX" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627
4628 test -n "$OBJCXX" && break
4629 done
4630 fi
4631 if test -z "$OBJCXX"; then
4632 ac_ct_OBJCXX=$OBJCXX
4633 for ac_prog in g++ objc++ objcxx c++ CXX
4634 do
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636 set dummy $ac_prog; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$ac_ct_OBJCXX"; then
4643 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4663 if test -n "$ac_ct_OBJCXX"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4665 $as_echo "$ac_ct_OBJCXX" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672 test -n "$ac_ct_OBJCXX" && break
4673 done
4674
4675 if test "x$ac_ct_OBJCXX" = x; then
4676 OBJCXX="g++"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 OBJCXX=$ac_ct_OBJCXX
4685 fi
4686 fi
4687
4688 # Provide some information about the compiler.
4689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4690 set X $ac_compile
4691 ac_compiler=$2
4692 for ac_option in --version -v -V -qversion; do
4693 { { ac_try="$ac_compiler $ac_option >&5"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 $as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4701 ac_status=$?
4702 if test -s conftest.err; then
4703 sed '10a\
4704 ... rest of stderr output deleted ...
4705 10q' conftest.err >conftest.er1
4706 cat conftest.er1 >&5
4707 fi
4708 rm -f conftest.er1 conftest.err
4709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710 test $ac_status = 0; }
4711 done
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4715 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724 #ifndef __GNUC__
4725 choke me
4726 #endif
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_objcxx_try_compile "$LINENO"; then :
4733 ac_compiler_gnu=yes
4734 else
4735 ac_compiler_gnu=no
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4742 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4744 GOBJCXX=yes
4745 else
4746 GOBJCXX=
4747 fi
4748 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4749 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4751 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4752 if ${ac_cv_prog_objcxx_g+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4756 ac_objcxx_werror_flag=yes
4757 ac_cv_prog_objcxx_g=no
4758 OBJCXXFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_objcxx_try_compile "$LINENO"; then :
4771 ac_cv_prog_objcxx_g=yes
4772 else
4773 OBJCXXFLAGS=""
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_objcxx_try_compile "$LINENO"; then :
4786
4787 else
4788 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4789 OBJCXXFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_objcxx_try_compile "$LINENO"; then :
4802 ac_cv_prog_objcxx_g=yes
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4812 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4813 if test "$ac_test_OBJCXXFLAGS" = set; then
4814 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4815 elif test $ac_cv_prog_objcxx_g = yes; then
4816 if test "$GOBJCXX" = yes; then
4817 OBJCXXFLAGS="-g -O2"
4818 else
4819 OBJCXXFLAGS="-g"
4820 fi
4821 else
4822 if test "$GOBJCXX" = yes; then
4823 OBJCXXFLAGS="-O2"
4824 else
4825 OBJCXXFLAGS=
4826 fi
4827 fi
4828 ac_ext=c
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
4834 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4837 $as_echo_n "checking dependency style of $depcc... " >&6; }
4838 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4842 # We make a subdir and do the tests there. Otherwise we can end up
4843 # making bogus files that we don't know about and never remove. For
4844 # instance it was reported that on HP-UX the gcc test will end up
4845 # making a dummy file named 'D' -- because '-MD' means "put the output
4846 # in D".
4847 rm -rf conftest.dir
4848 mkdir conftest.dir
4849 # Copy depcomp to subdir because otherwise we won't find it if we're
4850 # using a relative directory.
4851 cp "$am_depcomp" conftest.dir
4852 cd conftest.dir
4853 # We will build objects and dependencies in a subdirectory because
4854 # it helps to detect inapplicable dependency modes. For instance
4855 # both Tru64's cc and ICC support -MD to output dependencies as a
4856 # side effect of compilation, but ICC will put the dependencies in
4857 # the current directory while Tru64 will put them in the object
4858 # directory.
4859 mkdir sub
4860
4861 am_cv_OBJCXX_dependencies_compiler_type=none
4862 if test "$am_compiler_list" = ""; then
4863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4864 fi
4865 am__universal=false
4866
4867
4868 for depmode in $am_compiler_list; do
4869 # Setup a source with many dependencies, because some compilers
4870 # like to wrap large dependency lists on column 80 (with \), and
4871 # we should not choose a depcomp mode which is confused by this.
4872 #
4873 # We need to recreate these files for each test, as the compiler may
4874 # overwrite some of them when testing with obscure command lines.
4875 # This happens at least with the AIX C compiler.
4876 : > sub/conftest.c
4877 for i in 1 2 3 4 5 6; do
4878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4879 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4880 # Solaris 10 /bin/sh.
4881 echo '/* dummy */' > sub/conftst$i.h
4882 done
4883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4884
4885 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4886 # mode. It turns out that the SunPro C++ compiler does not properly
4887 # handle '-M -o', and we need to detect this. Also, some Intel
4888 # versions had trouble with output in subdirs.
4889 am__obj=sub/conftest.${OBJEXT-o}
4890 am__minus_obj="-o $am__obj"
4891 case $depmode in
4892 gcc)
4893 # This depmode causes a compiler race in universal mode.
4894 test "$am__universal" = false || continue
4895 ;;
4896 nosideeffect)
4897 # After this tag, mechanisms are not by side-effect, so they'll
4898 # only be used when explicitly requested.
4899 if test "x$enable_dependency_tracking" = xyes; then
4900 continue
4901 else
4902 break
4903 fi
4904 ;;
4905 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4906 # This compiler won't grok '-c -o', but also, the minuso test has
4907 # not run yet. These depmodes are late enough in the game, and
4908 # so weak that their functioning should not be impacted.
4909 am__obj=conftest.${OBJEXT-o}
4910 am__minus_obj=
4911 ;;
4912 none) break ;;
4913 esac
4914 if depmode=$depmode \
4915 source=sub/conftest.c object=$am__obj \
4916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4917 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4918 >/dev/null 2>conftest.err &&
4919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # or remarks (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored or not supported.
4926 # When given -MP, icc 7.0 and 7.1 complain thusly:
4927 # icc: Command line warning: ignoring option '-M'; no argument required
4928 # The diagnosis changed in icc 8.0:
4929 # icc: Command line remark: option '-MP' not supported
4930 if (grep 'ignoring option' conftest.err ||
4931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4933 break
4934 fi
4935 fi
4936 done
4937
4938 cd ..
4939 rm -rf conftest.dir
4940 else
4941 am_cv_OBJCXX_dependencies_compiler_type=none
4942 fi
4943
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4946 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4947 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4948
4949 if
4950 test "x$enable_dependency_tracking" != xno \
4951 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4952 am__fastdepOBJCXX_TRUE=
4953 am__fastdepOBJCXX_FALSE='#'
4954 else
4955 am__fastdepOBJCXX_TRUE='#'
4956 am__fastdepOBJCXX_FALSE=
4957 fi
4958
4959
4960
4961
4962 if test -n "$ac_tool_prefix"; then
4963 for ac_prog in ar lib "link -lib"
4964 do
4965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_AR+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$AR"; then
4973 ac_cv_prog_AR="$AR" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 AR=$ac_cv_prog_AR
4993 if test -n "$AR"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4995 $as_echo "$AR" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000
5001
5002 test -n "$AR" && break
5003 done
5004 fi
5005 if test -z "$AR"; then
5006 ac_ct_AR=$AR
5007 for ac_prog in ar lib "link -lib"
5008 do
5009 # Extract the first word of "$ac_prog", so it can be a program name with args.
5010 set dummy $ac_prog; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$ac_ct_AR"; then
5017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_ac_ct_AR="$ac_prog"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5037 if test -n "$ac_ct_AR"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5039 $as_echo "$ac_ct_AR" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046 test -n "$ac_ct_AR" && break
5047 done
5048
5049 if test "x$ac_ct_AR" = x; then
5050 AR="false"
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053 yes:)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056 ac_tool_warned=yes ;;
5057 esac
5058 AR=$ac_ct_AR
5059 fi
5060 fi
5061
5062 : ${AR=ar}
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5065 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5066 if ${am_cv_ar_interface+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 am_cv_ar_interface=ar
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 int some_variable = 0;
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5083 (eval $am_ar_try) 2>&5
5084 ac_status=$?
5085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5086 test $ac_status = 0; }
5087 if test "$ac_status" -eq 0; then
5088 am_cv_ar_interface=ar
5089 else
5090 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5092 (eval $am_ar_try) 2>&5
5093 ac_status=$?
5094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095 test $ac_status = 0; }
5096 if test "$ac_status" -eq 0; then
5097 am_cv_ar_interface=lib
5098 else
5099 am_cv_ar_interface=unknown
5100 fi
5101 fi
5102 rm -f conftest.lib libconftest.a
5103
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 ac_ext=c
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5114 $as_echo "$am_cv_ar_interface" >&6; }
5115
5116 case $am_cv_ar_interface in
5117 ar)
5118 ;;
5119 lib)
5120 # Microsoft lib, so override with the ar-lib wrapper script.
5121 # FIXME: It is wrong to rewrite AR.
5122 # But if we don't then we get into trouble of one sort or another.
5123 # A longer-term fix would be to have automake use am__AR in this case,
5124 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5125 # similar.
5126 AR="$am_aux_dir/ar-lib $AR"
5127 ;;
5128 unknown)
5129 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5130 ;;
5131 esac
5132
5133
5134
5135 case `pwd` in
5136 *\ * | *\ *)
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5138 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5139 esac
5140
5141
5142
5143 macro_version='2.4.2'
5144 macro_revision='1.3337'
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 ltmain="$ac_aux_dir/ltmain.sh"
5159
5160 # Make sure we can run config.sub.
5161 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5162 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5165 $as_echo_n "checking build system type... " >&6; }
5166 if ${ac_cv_build+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 ac_build_alias=$build_alias
5170 test "x$ac_build_alias" = x &&
5171 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5172 test "x$ac_build_alias" = x &&
5173 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5174 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5175 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5179 $as_echo "$ac_cv_build" >&6; }
5180 case $ac_cv_build in
5181 *-*-*) ;;
5182 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5183 esac
5184 build=$ac_cv_build
5185 ac_save_IFS=$IFS; IFS='-'
5186 set x $ac_cv_build
5187 shift
5188 build_cpu=$1
5189 build_vendor=$2
5190 shift; shift
5191 # Remember, the first character of IFS is used to create $*,
5192 # except with old shells:
5193 build_os=$*
5194 IFS=$ac_save_IFS
5195 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5199 $as_echo_n "checking host system type... " >&6; }
5200 if ${ac_cv_host+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test "x$host_alias" = x; then
5204 ac_cv_host=$ac_cv_build
5205 else
5206 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5207 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5208 fi
5209
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5212 $as_echo "$ac_cv_host" >&6; }
5213 case $ac_cv_host in
5214 *-*-*) ;;
5215 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5216 esac
5217 host=$ac_cv_host
5218 ac_save_IFS=$IFS; IFS='-'
5219 set x $ac_cv_host
5220 shift
5221 host_cpu=$1
5222 host_vendor=$2
5223 shift; shift
5224 # Remember, the first character of IFS is used to create $*,
5225 # except with old shells:
5226 host_os=$*
5227 IFS=$ac_save_IFS
5228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5229
5230
5231 # Backslashify metacharacters that are still active within
5232 # double-quoted strings.
5233 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5234
5235 # Same as above, but do not quote variable references.
5236 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5237
5238 # Sed substitution to delay expansion of an escaped shell variable in a
5239 # double_quote_subst'ed string.
5240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5241
5242 # Sed substitution to delay expansion of an escaped single quote.
5243 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5244
5245 # Sed substitution to avoid accidental globbing in evaled expressions
5246 no_glob_subst='s/\*/\\\*/g'
5247
5248 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5249 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5250 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5253 $as_echo_n "checking how to print strings... " >&6; }
5254 # Test print first, because it will be a builtin if present.
5255 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5256 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5257 ECHO='print -r --'
5258 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5259 ECHO='printf %s\n'
5260 else
5261 # Use this function as a fallback that always works.
5262 func_fallback_echo ()
5263 {
5264 eval 'cat <<_LTECHO_EOF
5265 $1
5266 _LTECHO_EOF'
5267 }
5268 ECHO='func_fallback_echo'
5269 fi
5270
5271 # func_echo_all arg...
5272 # Invoke $ECHO with all args, space-separated.
5273 func_echo_all ()
5274 {
5275 $ECHO ""
5276 }
5277
5278 case "$ECHO" in
5279 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5280 $as_echo "printf" >&6; } ;;
5281 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5282 $as_echo "print -r" >&6; } ;;
5283 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5284 $as_echo "cat" >&6; } ;;
5285 esac
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5301 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5302 if ${ac_cv_path_SED+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5306 for ac_i in 1 2 3 4 5 6 7; do
5307 ac_script="$ac_script$as_nl$ac_script"
5308 done
5309 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5310 { ac_script=; unset ac_script;}
5311 if test -z "$SED"; then
5312 ac_path_SED_found=false
5313 # Loop through the user's path and test for each of PROGNAME-LIST
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_prog in sed gsed; do
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5322 as_fn_executable_p "$ac_path_SED" || continue
5323 # Check for GNU ac_path_SED and select it if it is found.
5324 # Check for GNU $ac_path_SED
5325 case `"$ac_path_SED" --version 2>&1` in
5326 *GNU*)
5327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5328 *)
5329 ac_count=0
5330 $as_echo_n 0123456789 >"conftest.in"
5331 while :
5332 do
5333 cat "conftest.in" "conftest.in" >"conftest.tmp"
5334 mv "conftest.tmp" "conftest.in"
5335 cp "conftest.in" "conftest.nl"
5336 $as_echo '' >> "conftest.nl"
5337 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339 as_fn_arith $ac_count + 1 && ac_count=$as_val
5340 if test $ac_count -gt ${ac_path_SED_max-0}; then
5341 # Best one so far, save it but keep looking for a better one
5342 ac_cv_path_SED="$ac_path_SED"
5343 ac_path_SED_max=$ac_count
5344 fi
5345 # 10*(2^10) chars as input seems more than enough
5346 test $ac_count -gt 10 && break
5347 done
5348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349 esac
5350
5351 $ac_path_SED_found && break 3
5352 done
5353 done
5354 done
5355 IFS=$as_save_IFS
5356 if test -z "$ac_cv_path_SED"; then
5357 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5358 fi
5359 else
5360 ac_cv_path_SED=$SED
5361 fi
5362
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5365 $as_echo "$ac_cv_path_SED" >&6; }
5366 SED="$ac_cv_path_SED"
5367 rm -f conftest.sed
5368
5369 test -z "$SED" && SED=sed
5370 Xsed="$SED -e 1s/^X//"
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5383 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5384 if ${ac_cv_path_GREP+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -z "$GREP"; then
5388 ac_path_GREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392 do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_prog in grep ggrep; do
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5398 as_fn_executable_p "$ac_path_GREP" || continue
5399 # Check for GNU ac_path_GREP and select it if it is found.
5400 # Check for GNU $ac_path_GREP
5401 case `"$ac_path_GREP" --version 2>&1` in
5402 *GNU*)
5403 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5404 *)
5405 ac_count=0
5406 $as_echo_n 0123456789 >"conftest.in"
5407 while :
5408 do
5409 cat "conftest.in" "conftest.in" >"conftest.tmp"
5410 mv "conftest.tmp" "conftest.in"
5411 cp "conftest.in" "conftest.nl"
5412 $as_echo 'GREP' >> "conftest.nl"
5413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5415 as_fn_arith $ac_count + 1 && ac_count=$as_val
5416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5417 # Best one so far, save it but keep looking for a better one
5418 ac_cv_path_GREP="$ac_path_GREP"
5419 ac_path_GREP_max=$ac_count
5420 fi
5421 # 10*(2^10) chars as input seems more than enough
5422 test $ac_count -gt 10 && break
5423 done
5424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425 esac
5426
5427 $ac_path_GREP_found && break 3
5428 done
5429 done
5430 done
5431 IFS=$as_save_IFS
5432 if test -z "$ac_cv_path_GREP"; then
5433 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5434 fi
5435 else
5436 ac_cv_path_GREP=$GREP
5437 fi
5438
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5441 $as_echo "$ac_cv_path_GREP" >&6; }
5442 GREP="$ac_cv_path_GREP"
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5446 $as_echo_n "checking for egrep... " >&6; }
5447 if ${ac_cv_path_EGREP+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5451 then ac_cv_path_EGREP="$GREP -E"
5452 else
5453 if test -z "$EGREP"; then
5454 ac_path_EGREP_found=false
5455 # Loop through the user's path and test for each of PROGNAME-LIST
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_prog in egrep; do
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5464 as_fn_executable_p "$ac_path_EGREP" || continue
5465 # Check for GNU ac_path_EGREP and select it if it is found.
5466 # Check for GNU $ac_path_EGREP
5467 case `"$ac_path_EGREP" --version 2>&1` in
5468 *GNU*)
5469 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5470 *)
5471 ac_count=0
5472 $as_echo_n 0123456789 >"conftest.in"
5473 while :
5474 do
5475 cat "conftest.in" "conftest.in" >"conftest.tmp"
5476 mv "conftest.tmp" "conftest.in"
5477 cp "conftest.in" "conftest.nl"
5478 $as_echo 'EGREP' >> "conftest.nl"
5479 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5481 as_fn_arith $ac_count + 1 && ac_count=$as_val
5482 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5483 # Best one so far, save it but keep looking for a better one
5484 ac_cv_path_EGREP="$ac_path_EGREP"
5485 ac_path_EGREP_max=$ac_count
5486 fi
5487 # 10*(2^10) chars as input seems more than enough
5488 test $ac_count -gt 10 && break
5489 done
5490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491 esac
5492
5493 $ac_path_EGREP_found && break 3
5494 done
5495 done
5496 done
5497 IFS=$as_save_IFS
5498 if test -z "$ac_cv_path_EGREP"; then
5499 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500 fi
5501 else
5502 ac_cv_path_EGREP=$EGREP
5503 fi
5504
5505 fi
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5508 $as_echo "$ac_cv_path_EGREP" >&6; }
5509 EGREP="$ac_cv_path_EGREP"
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5513 $as_echo_n "checking for fgrep... " >&6; }
5514 if ${ac_cv_path_FGREP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5518 then ac_cv_path_FGREP="$GREP -F"
5519 else
5520 if test -z "$FGREP"; then
5521 ac_path_FGREP_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_prog in fgrep; do
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5531 as_fn_executable_p "$ac_path_FGREP" || continue
5532 # Check for GNU ac_path_FGREP and select it if it is found.
5533 # Check for GNU $ac_path_FGREP
5534 case `"$ac_path_FGREP" --version 2>&1` in
5535 *GNU*)
5536 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5537 *)
5538 ac_count=0
5539 $as_echo_n 0123456789 >"conftest.in"
5540 while :
5541 do
5542 cat "conftest.in" "conftest.in" >"conftest.tmp"
5543 mv "conftest.tmp" "conftest.in"
5544 cp "conftest.in" "conftest.nl"
5545 $as_echo 'FGREP' >> "conftest.nl"
5546 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548 as_fn_arith $ac_count + 1 && ac_count=$as_val
5549 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5550 # Best one so far, save it but keep looking for a better one
5551 ac_cv_path_FGREP="$ac_path_FGREP"
5552 ac_path_FGREP_max=$ac_count
5553 fi
5554 # 10*(2^10) chars as input seems more than enough
5555 test $ac_count -gt 10 && break
5556 done
5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 esac
5559
5560 $ac_path_FGREP_found && break 3
5561 done
5562 done
5563 done
5564 IFS=$as_save_IFS
5565 if test -z "$ac_cv_path_FGREP"; then
5566 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5567 fi
5568 else
5569 ac_cv_path_FGREP=$FGREP
5570 fi
5571
5572 fi
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5575 $as_echo "$ac_cv_path_FGREP" >&6; }
5576 FGREP="$ac_cv_path_FGREP"
5577
5578
5579 test -z "$GREP" && GREP=grep
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 # Check whether --with-gnu-ld was given.
5600 if test "${with_gnu_ld+set}" = set; then :
5601 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5602 else
5603 with_gnu_ld=no
5604 fi
5605
5606 ac_prog=ld
5607 if test "$GCC" = yes; then
5608 # Check if gcc -print-prog-name=ld gives a path.
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5610 $as_echo_n "checking for ld used by $CC... " >&6; }
5611 case $host in
5612 *-*-mingw*)
5613 # gcc leaves a trailing carriage return which upsets mingw
5614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5615 *)
5616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5617 esac
5618 case $ac_prog in
5619 # Accept absolute paths.
5620 [\\/]* | ?:[\\/]*)
5621 re_direlt='/[^/][^/]*/\.\./'
5622 # Canonicalize the pathname of ld
5623 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5624 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5625 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5626 done
5627 test -z "$LD" && LD="$ac_prog"
5628 ;;
5629 "")
5630 # If it fails, then pretend we aren't using GCC.
5631 ac_prog=ld
5632 ;;
5633 *)
5634 # If it is relative, then search for the first ld in PATH.
5635 with_gnu_ld=unknown
5636 ;;
5637 esac
5638 elif test "$with_gnu_ld" = yes; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5640 $as_echo_n "checking for GNU ld... " >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5643 $as_echo_n "checking for non-GNU ld... " >&6; }
5644 fi
5645 if ${lt_cv_path_LD+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -z "$LD"; then
5649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5650 for ac_dir in $PATH; do
5651 IFS="$lt_save_ifs"
5652 test -z "$ac_dir" && ac_dir=.
5653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5654 lt_cv_path_LD="$ac_dir/$ac_prog"
5655 # Check to see if the program is GNU ld. I'd rather use --version,
5656 # but apparently some variants of GNU ld only accept -v.
5657 # Break only if it was the GNU/non-GNU ld that we prefer.
5658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5659 *GNU* | *'with BFD'*)
5660 test "$with_gnu_ld" != no && break
5661 ;;
5662 *)
5663 test "$with_gnu_ld" != yes && break
5664 ;;
5665 esac
5666 fi
5667 done
5668 IFS="$lt_save_ifs"
5669 else
5670 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5671 fi
5672 fi
5673
5674 LD="$lt_cv_path_LD"
5675 if test -n "$LD"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5677 $as_echo "$LD" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5684 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5685 if ${lt_cv_prog_gnu_ld+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5689 case `$LD -v 2>&1 </dev/null` in
5690 *GNU* | *'with BFD'*)
5691 lt_cv_prog_gnu_ld=yes
5692 ;;
5693 *)
5694 lt_cv_prog_gnu_ld=no
5695 ;;
5696 esac
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5699 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5700 with_gnu_ld=$lt_cv_prog_gnu_ld
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5711 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5712 if ${lt_cv_path_NM+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$NM"; then
5716 # Let the user override the test.
5717 lt_cv_path_NM="$NM"
5718 else
5719 lt_nm_to_check="${ac_tool_prefix}nm"
5720 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5721 lt_nm_to_check="$lt_nm_to_check nm"
5722 fi
5723 for lt_tmp_nm in $lt_nm_to_check; do
5724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5725 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5726 IFS="$lt_save_ifs"
5727 test -z "$ac_dir" && ac_dir=.
5728 tmp_nm="$ac_dir/$lt_tmp_nm"
5729 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5730 # Check to see if the nm accepts a BSD-compat flag.
5731 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5732 # nm: unknown option "B" ignored
5733 # Tru64's nm complains that /dev/null is an invalid object file
5734 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5735 */dev/null* | *'Invalid file or object type'*)
5736 lt_cv_path_NM="$tmp_nm -B"
5737 break
5738 ;;
5739 *)
5740 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5741 */dev/null*)
5742 lt_cv_path_NM="$tmp_nm -p"
5743 break
5744 ;;
5745 *)
5746 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5747 continue # so that we can try to find one that supports BSD flags
5748 ;;
5749 esac
5750 ;;
5751 esac
5752 fi
5753 done
5754 IFS="$lt_save_ifs"
5755 done
5756 : ${lt_cv_path_NM=no}
5757 fi
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5760 $as_echo "$lt_cv_path_NM" >&6; }
5761 if test "$lt_cv_path_NM" != "no"; then
5762 NM="$lt_cv_path_NM"
5763 else
5764 # Didn't find any BSD compatible name lister, look for dumpbin.
5765 if test -n "$DUMPBIN"; then :
5766 # Let the user override the test.
5767 else
5768 if test -n "$ac_tool_prefix"; then
5769 for ac_prog in dumpbin "link -dump"
5770 do
5771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_DUMPBIN+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if test -n "$DUMPBIN"; then
5779 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792 done
5793 done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 DUMPBIN=$ac_cv_prog_DUMPBIN
5799 if test -n "$DUMPBIN"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5801 $as_echo "$DUMPBIN" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 fi
5806
5807
5808 test -n "$DUMPBIN" && break
5809 done
5810 fi
5811 if test -z "$DUMPBIN"; then
5812 ac_ct_DUMPBIN=$DUMPBIN
5813 for ac_prog in dumpbin "link -dump"
5814 do
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816 set dummy $ac_prog; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$ac_ct_DUMPBIN"; then
5823 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5843 if test -n "$ac_ct_DUMPBIN"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5845 $as_echo "$ac_ct_DUMPBIN" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 test -n "$ac_ct_DUMPBIN" && break
5853 done
5854
5855 if test "x$ac_ct_DUMPBIN" = x; then
5856 DUMPBIN=":"
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859 yes:)
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5863 esac
5864 DUMPBIN=$ac_ct_DUMPBIN
5865 fi
5866 fi
5867
5868 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5869 *COFF*)
5870 DUMPBIN="$DUMPBIN -symbols"
5871 ;;
5872 *)
5873 DUMPBIN=:
5874 ;;
5875 esac
5876 fi
5877
5878 if test "$DUMPBIN" != ":"; then
5879 NM="$DUMPBIN"
5880 fi
5881 fi
5882 test -z "$NM" && NM=nm
5883
5884
5885
5886
5887
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5890 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5891 if ${lt_cv_nm_interface+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 lt_cv_nm_interface="BSD nm"
5895 echo "int some_variable = 0;" > conftest.$ac_ext
5896 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5897 (eval "$ac_compile" 2>conftest.err)
5898 cat conftest.err >&5
5899 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5900 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5901 cat conftest.err >&5
5902 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5903 cat conftest.out >&5
5904 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5905 lt_cv_nm_interface="MS dumpbin"
5906 fi
5907 rm -rf conftest*
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5910 $as_echo "$lt_cv_nm_interface" >&6; }
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5913 $as_echo_n "checking whether ln -s works... " >&6; }
5914 LN_S=$as_ln_s
5915 if test "$LN_S" = "ln -s"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5917 $as_echo "yes" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5920 $as_echo "no, using $LN_S" >&6; }
5921 fi
5922
5923 # find the maximum length of command line arguments
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5925 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5926 if ${lt_cv_sys_max_cmd_len+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 i=0
5930 teststring="ABCD"
5931
5932 case $build_os in
5933 msdosdjgpp*)
5934 # On DJGPP, this test can blow up pretty badly due to problems in libc
5935 # (any single argument exceeding 2000 bytes causes a buffer overrun
5936 # during glob expansion). Even if it were fixed, the result of this
5937 # check would be larger than it should be.
5938 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5939 ;;
5940
5941 gnu*)
5942 # Under GNU Hurd, this test is not required because there is
5943 # no limit to the length of command line arguments.
5944 # Libtool will interpret -1 as no limit whatsoever
5945 lt_cv_sys_max_cmd_len=-1;
5946 ;;
5947
5948 cygwin* | mingw* | cegcc*)
5949 # On Win9x/ME, this test blows up -- it succeeds, but takes
5950 # about 5 minutes as the teststring grows exponentially.
5951 # Worse, since 9x/ME are not pre-emptively multitasking,
5952 # you end up with a "frozen" computer, even though with patience
5953 # the test eventually succeeds (with a max line length of 256k).
5954 # Instead, let's just punt: use the minimum linelength reported by
5955 # all of the supported platforms: 8192 (on NT/2K/XP).
5956 lt_cv_sys_max_cmd_len=8192;
5957 ;;
5958
5959 mint*)
5960 # On MiNT this can take a long time and run out of memory.
5961 lt_cv_sys_max_cmd_len=8192;
5962 ;;
5963
5964 amigaos*)
5965 # On AmigaOS with pdksh, this test takes hours, literally.
5966 # So we just punt and use a minimum line length of 8192.
5967 lt_cv_sys_max_cmd_len=8192;
5968 ;;
5969
5970 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5971 # This has been around since 386BSD, at least. Likely further.
5972 if test -x /sbin/sysctl; then
5973 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5974 elif test -x /usr/sbin/sysctl; then
5975 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5976 else
5977 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5978 fi
5979 # And add a safety zone
5980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5982 ;;
5983
5984 interix*)
5985 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5986 lt_cv_sys_max_cmd_len=196608
5987 ;;
5988
5989 os2*)
5990 # The test takes a long time on OS/2.
5991 lt_cv_sys_max_cmd_len=8192
5992 ;;
5993
5994 osf*)
5995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5997 # nice to cause kernel panics so lets avoid the loop below.
5998 # First set a reasonable default.
5999 lt_cv_sys_max_cmd_len=16384
6000 #
6001 if test -x /sbin/sysconfig; then
6002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6004 esac
6005 fi
6006 ;;
6007 sco3.2v5*)
6008 lt_cv_sys_max_cmd_len=102400
6009 ;;
6010 sysv5* | sco5v6* | sysv4.2uw2*)
6011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6012 if test -n "$kargmax"; then
6013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6014 else
6015 lt_cv_sys_max_cmd_len=32768
6016 fi
6017 ;;
6018 *)
6019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6020 if test -n "$lt_cv_sys_max_cmd_len"; then
6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6023 else
6024 # Make teststring a little bigger before we do anything with it.
6025 # a 1K string should be a reasonable start.
6026 for i in 1 2 3 4 5 6 7 8 ; do
6027 teststring=$teststring$teststring
6028 done
6029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6030 # If test is not a shell built-in, we'll probably end up computing a
6031 # maximum length that is only half of the actual maximum length, but
6032 # we can't tell.
6033 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6034 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6035 test $i != 17 # 1/2 MB should be enough
6036 do
6037 i=`expr $i + 1`
6038 teststring=$teststring$teststring
6039 done
6040 # Only check the string length outside the loop.
6041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6042 teststring=
6043 # Add a significant safety factor because C++ compilers can tack on
6044 # massive amounts of additional arguments before passing them to the
6045 # linker. It appears as though 1/2 is a usable value.
6046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6047 fi
6048 ;;
6049 esac
6050
6051 fi
6052
6053 if test -n $lt_cv_sys_max_cmd_len ; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6055 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6058 $as_echo "none" >&6; }
6059 fi
6060 max_cmd_len=$lt_cv_sys_max_cmd_len
6061
6062
6063
6064
6065
6066
6067 : ${CP="cp -f"}
6068 : ${MV="mv -f"}
6069 : ${RM="rm -f"}
6070
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6072 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6073 # Try some XSI features
6074 xsi_shell=no
6075 ( _lt_dummy="a/b/c"
6076 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6077 = c,a/b,b/c, \
6078 && eval 'test $(( 1 + 1 )) -eq 2 \
6079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6080 && xsi_shell=yes
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6082 $as_echo "$xsi_shell" >&6; }
6083
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6086 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6087 lt_shell_append=no
6088 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6089 >/dev/null 2>&1 \
6090 && lt_shell_append=yes
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6092 $as_echo "$lt_shell_append" >&6; }
6093
6094
6095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6096 lt_unset=unset
6097 else
6098 lt_unset=false
6099 fi
6100
6101
6102
6103
6104
6105 # test EBCDIC or ASCII
6106 case `echo X|tr X '\101'` in
6107 A) # ASCII based system
6108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6109 lt_SP2NL='tr \040 \012'
6110 lt_NL2SP='tr \015\012 \040\040'
6111 ;;
6112 *) # EBCDIC based system
6113 lt_SP2NL='tr \100 \n'
6114 lt_NL2SP='tr \r\n \100\100'
6115 ;;
6116 esac
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6127 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6128 if ${lt_cv_to_host_file_cmd+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 case $host in
6132 *-*-mingw* )
6133 case $build in
6134 *-*-mingw* ) # actually msys
6135 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6136 ;;
6137 *-*-cygwin* )
6138 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6139 ;;
6140 * ) # otherwise, assume *nix
6141 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6142 ;;
6143 esac
6144 ;;
6145 *-*-cygwin* )
6146 case $build in
6147 *-*-mingw* ) # actually msys
6148 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6149 ;;
6150 *-*-cygwin* )
6151 lt_cv_to_host_file_cmd=func_convert_file_noop
6152 ;;
6153 * ) # otherwise, assume *nix
6154 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6155 ;;
6156 esac
6157 ;;
6158 * ) # unhandled hosts (and "normal" native builds)
6159 lt_cv_to_host_file_cmd=func_convert_file_noop
6160 ;;
6161 esac
6162
6163 fi
6164
6165 to_host_file_cmd=$lt_cv_to_host_file_cmd
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6167 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6168
6169
6170
6171
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6174 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6175 if ${lt_cv_to_tool_file_cmd+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 #assume ordinary cross tools, or native build.
6179 lt_cv_to_tool_file_cmd=func_convert_file_noop
6180 case $host in
6181 *-*-mingw* )
6182 case $build in
6183 *-*-mingw* ) # actually msys
6184 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6185 ;;
6186 esac
6187 ;;
6188 esac
6189
6190 fi
6191
6192 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6194 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6195
6196
6197
6198
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6201 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6202 if ${lt_cv_ld_reload_flag+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 lt_cv_ld_reload_flag='-r'
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6208 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6209 reload_flag=$lt_cv_ld_reload_flag
6210 case $reload_flag in
6211 "" | " "*) ;;
6212 *) reload_flag=" $reload_flag" ;;
6213 esac
6214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6215 case $host_os in
6216 cygwin* | mingw* | pw32* | cegcc*)
6217 if test "$GCC" != yes; then
6218 reload_cmds=false
6219 fi
6220 ;;
6221 darwin*)
6222 if test "$GCC" = yes; then
6223 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6224 else
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 fi
6227 ;;
6228 esac
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6240 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if ${ac_cv_prog_OBJDUMP+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -n "$OBJDUMP"; then
6247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260 done
6261 done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
6266 OBJDUMP=$ac_cv_prog_OBJDUMP
6267 if test -n "$OBJDUMP"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6269 $as_echo "$OBJDUMP" >&6; }
6270 else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274
6275
6276 fi
6277 if test -z "$ac_cv_prog_OBJDUMP"; then
6278 ac_ct_OBJDUMP=$OBJDUMP
6279 # Extract the first word of "objdump", so it can be a program name with args.
6280 set dummy objdump; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 if test -n "$ac_ct_OBJDUMP"; then
6287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304 fi
6305 fi
6306 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6307 if test -n "$ac_ct_OBJDUMP"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6309 $as_echo "$ac_ct_OBJDUMP" >&6; }
6310 else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314
6315 if test "x$ac_ct_OBJDUMP" = x; then
6316 OBJDUMP="false"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319 yes:)
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 OBJDUMP=$ac_ct_OBJDUMP
6325 fi
6326 else
6327 OBJDUMP="$ac_cv_prog_OBJDUMP"
6328 fi
6329
6330 test -z "$OBJDUMP" && OBJDUMP=objdump
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6341 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6342 if ${lt_cv_deplibs_check_method+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 lt_cv_file_magic_cmd='$MAGIC_CMD'
6346 lt_cv_file_magic_test_file=
6347 lt_cv_deplibs_check_method='unknown'
6348 # Need to set the preceding variable on all platforms that support
6349 # interlibrary dependencies.
6350 # 'none' -- dependencies not supported.
6351 # `unknown' -- same as none, but documents that we really don't know.
6352 # 'pass_all' -- all dependencies passed with no checks.
6353 # 'test_compile' -- check by making test program.
6354 # 'file_magic [[regex]]' -- check by looking for files in library path
6355 # which responds to the $file_magic_cmd with a given extended regex.
6356 # If you have `file' or equivalent on your system and you're not sure
6357 # whether `pass_all' will *always* work, you probably want this one.
6358
6359 case $host_os in
6360 aix[4-9]*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 beos*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 bsdi[45]*)
6369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6370 lt_cv_file_magic_cmd='/usr/bin/file -L'
6371 lt_cv_file_magic_test_file=/shlib/libc.so
6372 ;;
6373
6374 cygwin*)
6375 # func_win32_libid is a shell function defined in ltmain.sh
6376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6377 lt_cv_file_magic_cmd='func_win32_libid'
6378 ;;
6379
6380 mingw* | pw32*)
6381 # Base MSYS/MinGW do not provide the 'file' command needed by
6382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6383 # unless we find 'file', for example because we are cross-compiling.
6384 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6385 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387 lt_cv_file_magic_cmd='func_win32_libid'
6388 else
6389 # Keep this pattern in sync with the one in func_win32_libid.
6390 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6391 lt_cv_file_magic_cmd='$OBJDUMP -f'
6392 fi
6393 ;;
6394
6395 cegcc*)
6396 # use the weaker test based on 'objdump'. See mingw*.
6397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6399 ;;
6400
6401 darwin* | rhapsody*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405 freebsd* | dragonfly*)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407 case $host_cpu in
6408 i*86 )
6409 # Not sure whether the presence of OpenBSD here was a mistake.
6410 # Let's accept both of them until this is cleared up.
6411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6414 ;;
6415 esac
6416 else
6417 lt_cv_deplibs_check_method=pass_all
6418 fi
6419 ;;
6420
6421 gnu*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425 haiku*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429 hpux10.20* | hpux11*)
6430 lt_cv_file_magic_cmd=/usr/bin/file
6431 case $host_cpu in
6432 ia64*)
6433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6435 ;;
6436 hppa*64*)
6437 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]'
6438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6439 ;;
6440 *)
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6443 ;;
6444 esac
6445 ;;
6446
6447 interix[3-9]*)
6448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6450 ;;
6451
6452 irix5* | irix6* | nonstopux*)
6453 case $LD in
6454 *-32|*"-32 ") libmagic=32-bit;;
6455 *-n32|*"-n32 ") libmagic=N32;;
6456 *-64|*"-64 ") libmagic=64-bit;;
6457 *) libmagic=never-match;;
6458 esac
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462 # This must be glibc/ELF.
6463 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467 netbsd*)
6468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6470 else
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6472 fi
6473 ;;
6474
6475 newos6*)
6476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6477 lt_cv_file_magic_cmd=/usr/bin/file
6478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6479 ;;
6480
6481 *nto* | *qnx*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 openbsd*)
6486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6488 else
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6490 fi
6491 ;;
6492
6493 osf3* | osf4* | osf5*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497 rdos*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501 solaris*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509 sysv4 | sysv4.3*)
6510 case $host_vendor in
6511 motorola)
6512 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]'
6513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6514 ;;
6515 ncr)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518 sequent)
6519 lt_cv_file_magic_cmd='/bin/file'
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6521 ;;
6522 sni)
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6525 lt_cv_file_magic_test_file=/lib/libc.so
6526 ;;
6527 siemens)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530 pc)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 esac
6534 ;;
6535
6536 tpf*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539 esac
6540
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6543 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6544
6545 file_magic_glob=
6546 want_nocaseglob=no
6547 if test "$build" = "$host"; then
6548 case $host_os in
6549 mingw* | pw32*)
6550 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6551 want_nocaseglob=yes
6552 else
6553 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6554 fi
6555 ;;
6556 esac
6557 fi
6558
6559 file_magic_cmd=$lt_cv_file_magic_cmd
6560 deplibs_check_method=$lt_cv_deplibs_check_method
6561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_DLLTOOL+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 if test -n "$DLLTOOL"; then
6593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 DLLTOOL=$ac_cv_prog_DLLTOOL
6613 if test -n "$DLLTOOL"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6615 $as_echo "$DLLTOOL" >&6; }
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_prog_DLLTOOL"; then
6624 ac_ct_DLLTOOL=$DLLTOOL
6625 # Extract the first word of "dlltool", so it can be a program name with args.
6626 set dummy dlltool; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$ac_ct_DLLTOOL"; then
6633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6653 if test -n "$ac_ct_DLLTOOL"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6655 $as_echo "$ac_ct_DLLTOOL" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661 if test "x$ac_ct_DLLTOOL" = x; then
6662 DLLTOOL="false"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670 DLLTOOL=$ac_ct_DLLTOOL
6671 fi
6672 else
6673 DLLTOOL="$ac_cv_prog_DLLTOOL"
6674 fi
6675
6676 test -z "$DLLTOOL" && DLLTOOL=dlltool
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6688 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6689 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 lt_cv_sharedlib_from_linklib_cmd='unknown'
6693
6694 case $host_os in
6695 cygwin* | mingw* | pw32* | cegcc*)
6696 # two different shell functions defined in ltmain.sh
6697 # decide which to use based on capabilities of $DLLTOOL
6698 case `$DLLTOOL --help 2>&1` in
6699 *--identify-strict*)
6700 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6701 ;;
6702 *)
6703 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6704 ;;
6705 esac
6706 ;;
6707 *)
6708 # fallback: assume linklib IS sharedlib
6709 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6710 ;;
6711 esac
6712
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6715 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6716 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6717 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6718
6719
6720
6721
6722
6723
6724
6725 if test -n "$ac_tool_prefix"; then
6726 for ac_prog in ar
6727 do
6728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_AR+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$AR"; then
6736 ac_cv_prog_AR="$AR" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 AR=$ac_cv_prog_AR
6756 if test -n "$AR"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6758 $as_echo "$AR" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765 test -n "$AR" && break
6766 done
6767 fi
6768 if test -z "$AR"; then
6769 ac_ct_AR=$AR
6770 for ac_prog in ar
6771 do
6772 # Extract the first word of "$ac_prog", so it can be a program name with args.
6773 set dummy $ac_prog; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_AR"; then
6780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_ac_ct_AR="$ac_prog"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6800 if test -n "$ac_ct_AR"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6802 $as_echo "$ac_ct_AR" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 test -n "$ac_ct_AR" && break
6810 done
6811
6812 if test "x$ac_ct_AR" = x; then
6813 AR="false"
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819 ac_tool_warned=yes ;;
6820 esac
6821 AR=$ac_ct_AR
6822 fi
6823 fi
6824
6825 : ${AR=ar}
6826 : ${AR_FLAGS=cru}
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6839 $as_echo_n "checking for archiver @FILE support... " >&6; }
6840 if ${lt_cv_ar_at_file+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 lt_cv_ar_at_file=no
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846
6847 int
6848 main ()
6849 {
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 echo conftest.$ac_objext > conftest.lst
6857 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6859 (eval $lt_ar_try) 2>&5
6860 ac_status=$?
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }
6863 if test "$ac_status" -eq 0; then
6864 # Ensure the archiver fails upon bogus file names.
6865 rm -f conftest.$ac_objext libconftest.a
6866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6867 (eval $lt_ar_try) 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }
6871 if test "$ac_status" -ne 0; then
6872 lt_cv_ar_at_file=@
6873 fi
6874 fi
6875 rm -f conftest.* libconftest.a
6876
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6882 $as_echo "$lt_cv_ar_at_file" >&6; }
6883
6884 if test "x$lt_cv_ar_at_file" = xno; then
6885 archiver_list_spec=
6886 else
6887 archiver_list_spec=$lt_cv_ar_at_file
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}strip; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_STRIP+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$STRIP"; then
6905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 STRIP=$ac_cv_prog_STRIP
6925 if test -n "$STRIP"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6927 $as_echo "$STRIP" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_STRIP"; then
6936 ac_ct_STRIP=$STRIP
6937 # Extract the first word of "strip", so it can be a program name with args.
6938 set dummy strip; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_STRIP"; then
6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967 $as_echo "$ac_ct_STRIP" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_STRIP" = x; then
6974 STRIP=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 STRIP=$ac_ct_STRIP
6983 fi
6984 else
6985 STRIP="$ac_cv_prog_STRIP"
6986 fi
6987
6988 test -z "$STRIP" && STRIP=:
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_RANLIB+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$RANLIB"; then
7004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 RANLIB=$ac_cv_prog_RANLIB
7024 if test -n "$RANLIB"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7026 $as_echo "$RANLIB" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_RANLIB"; then
7035 ac_ct_RANLIB=$RANLIB
7036 # Extract the first word of "ranlib", so it can be a program name with args.
7037 set dummy ranlib; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$ac_ct_RANLIB"; then
7044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_RANLIB="ranlib"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7064 if test -n "$ac_ct_RANLIB"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7066 $as_echo "$ac_ct_RANLIB" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072 if test "x$ac_ct_RANLIB" = x; then
7073 RANLIB=":"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081 RANLIB=$ac_ct_RANLIB
7082 fi
7083 else
7084 RANLIB="$ac_cv_prog_RANLIB"
7085 fi
7086
7087 test -z "$RANLIB" && RANLIB=:
7088
7089
7090
7091
7092
7093
7094 # Determine commands to create old-style static archives.
7095 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7096 old_postinstall_cmds='chmod 644 $oldlib'
7097 old_postuninstall_cmds=
7098
7099 if test -n "$RANLIB"; then
7100 case $host_os in
7101 openbsd*)
7102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7103 ;;
7104 *)
7105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7106 ;;
7107 esac
7108 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7109 fi
7110
7111 case $host_os in
7112 darwin*)
7113 lock_old_archive_extraction=yes ;;
7114 *)
7115 lock_old_archive_extraction=no ;;
7116 esac
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 # If no C compiler was specified, use CC.
7157 LTCC=${LTCC-"$CC"}
7158
7159 # If no C compiler flags were specified, use CFLAGS.
7160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7161
7162 # Allow CC to be a program name with arguments.
7163 compiler=$CC
7164
7165
7166 # Check for command to grab the raw symbol name followed by C symbol from nm.
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7168 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7169 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172
7173 # These are sane defaults that work on at least a few old systems.
7174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7175
7176 # Character class describing NM global symbol codes.
7177 symcode='[BCDEGRST]'
7178
7179 # Regexp to match symbols that can be accessed directly from C.
7180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7181
7182 # Define system-specific variables.
7183 case $host_os in
7184 aix*)
7185 symcode='[BCDT]'
7186 ;;
7187 cygwin* | mingw* | pw32* | cegcc*)
7188 symcode='[ABCDGISTW]'
7189 ;;
7190 hpux*)
7191 if test "$host_cpu" = ia64; then
7192 symcode='[ABCDEGRST]'
7193 fi
7194 ;;
7195 irix* | nonstopux*)
7196 symcode='[BCDEGRST]'
7197 ;;
7198 osf*)
7199 symcode='[BCDEGQRST]'
7200 ;;
7201 solaris*)
7202 symcode='[BDRT]'
7203 ;;
7204 sco3.2v5*)
7205 symcode='[DT]'
7206 ;;
7207 sysv4.2uw2*)
7208 symcode='[DT]'
7209 ;;
7210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7211 symcode='[ABDT]'
7212 ;;
7213 sysv4)
7214 symcode='[DFNSTU]'
7215 ;;
7216 esac
7217
7218 # If we're using GNU nm, then use its standard symbol codes.
7219 case `$NM -V 2>&1` in
7220 *GNU* | *'with BFD'*)
7221 symcode='[ABCDGIRSTW]' ;;
7222 esac
7223
7224 # Transform an extracted symbol line into a proper C declaration.
7225 # Some systems (esp. on ia64) link data and code symbols differently,
7226 # so use this general approach.
7227 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7228
7229 # Transform an extracted symbol line into symbol name and symbol address
7230 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7231 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'"
7232
7233 # Handle CRLF in mingw tool chain
7234 opt_cr=
7235 case $build_os in
7236 mingw*)
7237 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7238 ;;
7239 esac
7240
7241 # Try without a prefix underscore, then with it.
7242 for ac_symprfx in "" "_"; do
7243
7244 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7245 symxfrm="\\1 $ac_symprfx\\2 \\2"
7246
7247 # Write the raw and C identifiers.
7248 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7249 # Fake it for dumpbin and say T for any non-static function
7250 # and D for any global variable.
7251 # Also find C++ and __fastcall symbols from MSVC++,
7252 # which start with @ or ?.
7253 lt_cv_sys_global_symbol_pipe="$AWK '"\
7254 " {last_section=section; section=\$ 3};"\
7255 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7256 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7257 " \$ 0!~/External *\|/{next};"\
7258 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7259 " {if(hide[section]) next};"\
7260 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7261 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7262 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7263 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7264 " ' prfx=^$ac_symprfx"
7265 else
7266 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7267 fi
7268 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7269
7270 # Check to see that the pipe works correctly.
7271 pipe_works=no
7272
7273 rm -rf conftest*
7274 cat > conftest.$ac_ext <<_LT_EOF
7275 #ifdef __cplusplus
7276 extern "C" {
7277 #endif
7278 char nm_test_var;
7279 void nm_test_func(void);
7280 void nm_test_func(void){}
7281 #ifdef __cplusplus
7282 }
7283 #endif
7284 int main(){nm_test_var='a';nm_test_func();return(0);}
7285 _LT_EOF
7286
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 # Now try to grab the symbols.
7293 nlist=conftest.nm
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7295 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; } && test -s "$nlist"; then
7299 # Try sorting and uniquifying the output.
7300 if sort "$nlist" | uniq > "$nlist"T; then
7301 mv -f "$nlist"T "$nlist"
7302 else
7303 rm -f "$nlist"T
7304 fi
7305
7306 # Make sure that we snagged all the symbols we need.
7307 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7308 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7309 cat <<_LT_EOF > conftest.$ac_ext
7310 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7311 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7312 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7313 relocations are performed -- see ld's documentation on pseudo-relocs. */
7314 # define LT_DLSYM_CONST
7315 #elif defined(__osf__)
7316 /* This system does not cope well with relocations in const data. */
7317 # define LT_DLSYM_CONST
7318 #else
7319 # define LT_DLSYM_CONST const
7320 #endif
7321
7322 #ifdef __cplusplus
7323 extern "C" {
7324 #endif
7325
7326 _LT_EOF
7327 # Now generate the symbol file.
7328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7329
7330 cat <<_LT_EOF >> conftest.$ac_ext
7331
7332 /* The mapping between symbol names and symbols. */
7333 LT_DLSYM_CONST struct {
7334 const char *name;
7335 void *address;
7336 }
7337 lt__PROGRAM__LTX_preloaded_symbols[] =
7338 {
7339 { "@PROGRAM@", (void *) 0 },
7340 _LT_EOF
7341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7342 cat <<\_LT_EOF >> conftest.$ac_ext
7343 {0, (void *) 0}
7344 };
7345
7346 /* This works around a problem in FreeBSD linker */
7347 #ifdef FREEBSD_WORKAROUND
7348 static const void *lt_preloaded_setup() {
7349 return lt__PROGRAM__LTX_preloaded_symbols;
7350 }
7351 #endif
7352
7353 #ifdef __cplusplus
7354 }
7355 #endif
7356 _LT_EOF
7357 # Now try linking the two files.
7358 mv conftest.$ac_objext conftstm.$ac_objext
7359 lt_globsym_save_LIBS=$LIBS
7360 lt_globsym_save_CFLAGS=$CFLAGS
7361 LIBS="conftstm.$ac_objext"
7362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7364 (eval $ac_link) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7368 pipe_works=yes
7369 fi
7370 LIBS=$lt_globsym_save_LIBS
7371 CFLAGS=$lt_globsym_save_CFLAGS
7372 else
7373 echo "cannot find nm_test_func in $nlist" >&5
7374 fi
7375 else
7376 echo "cannot find nm_test_var in $nlist" >&5
7377 fi
7378 else
7379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7380 fi
7381 else
7382 echo "$progname: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7384 fi
7385 rm -rf conftest* conftst*
7386
7387 # Do not use the global_symbol_pipe unless it works.
7388 if test "$pipe_works" = yes; then
7389 break
7390 else
7391 lt_cv_sys_global_symbol_pipe=
7392 fi
7393 done
7394
7395 fi
7396
7397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7398 lt_cv_sys_global_symbol_to_cdecl=
7399 fi
7400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7402 $as_echo "failed" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7405 $as_echo "ok" >&6; }
7406 fi
7407
7408 # Response file support.
7409 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7410 nm_file_list_spec='@'
7411 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7412 nm_file_list_spec='@'
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7442 $as_echo_n "checking for sysroot... " >&6; }
7443
7444 # Check whether --with-sysroot was given.
7445 if test "${with_sysroot+set}" = set; then :
7446 withval=$with_sysroot;
7447 else
7448 with_sysroot=no
7449 fi
7450
7451
7452 lt_sysroot=
7453 case ${with_sysroot} in #(
7454 yes)
7455 if test "$GCC" = yes; then
7456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7457 fi
7458 ;; #(
7459 /*)
7460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7461 ;; #(
7462 no|'')
7463 ;; #(
7464 *)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7466 $as_echo "${with_sysroot}" >&6; }
7467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7468 ;;
7469 esac
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7472 $as_echo "${lt_sysroot:-no}" >&6; }
7473
7474
7475
7476
7477
7478 # Check whether --enable-libtool-lock was given.
7479 if test "${enable_libtool_lock+set}" = set; then :
7480 enableval=$enable_libtool_lock;
7481 fi
7482
7483 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7484
7485 # Some flags need to be propagated to the compiler or linker for good
7486 # libtool support.
7487 case $host in
7488 ia64-*-hpux*)
7489 # Find out which ABI we are using.
7490 echo 'int i;' > conftest.$ac_ext
7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492 (eval $ac_compile) 2>&5
7493 ac_status=$?
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 case `/usr/bin/file conftest.$ac_objext` in
7497 *ELF-32*)
7498 HPUX_IA64_MODE="32"
7499 ;;
7500 *ELF-64*)
7501 HPUX_IA64_MODE="64"
7502 ;;
7503 esac
7504 fi
7505 rm -rf conftest*
7506 ;;
7507 *-*-irix6*)
7508 # Find out which ABI we are using.
7509 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511 (eval $ac_compile) 2>&5
7512 ac_status=$?
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; then
7515 if test "$lt_cv_prog_gnu_ld" = yes; then
7516 case `/usr/bin/file conftest.$ac_objext` in
7517 *32-bit*)
7518 LD="${LD-ld} -melf32bsmip"
7519 ;;
7520 *N32*)
7521 LD="${LD-ld} -melf32bmipn32"
7522 ;;
7523 *64-bit*)
7524 LD="${LD-ld} -melf64bmip"
7525 ;;
7526 esac
7527 else
7528 case `/usr/bin/file conftest.$ac_objext` in
7529 *32-bit*)
7530 LD="${LD-ld} -32"
7531 ;;
7532 *N32*)
7533 LD="${LD-ld} -n32"
7534 ;;
7535 *64-bit*)
7536 LD="${LD-ld} -64"
7537 ;;
7538 esac
7539 fi
7540 fi
7541 rm -rf conftest*
7542 ;;
7543
7544 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7545 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7546 # Find out which ABI we are using.
7547 echo 'int i;' > conftest.$ac_ext
7548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549 (eval $ac_compile) 2>&5
7550 ac_status=$?
7551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; }; then
7553 case `/usr/bin/file conftest.o` in
7554 *32-bit*)
7555 case $host in
7556 x86_64-*kfreebsd*-gnu)
7557 LD="${LD-ld} -m elf_i386_fbsd"
7558 ;;
7559 x86_64-*linux*)
7560 LD="${LD-ld} -m elf_i386"
7561 ;;
7562 ppc64-*linux*|powerpc64-*linux*)
7563 LD="${LD-ld} -m elf32ppclinux"
7564 ;;
7565 s390x-*linux*)
7566 LD="${LD-ld} -m elf_s390"
7567 ;;
7568 sparc64-*linux*)
7569 LD="${LD-ld} -m elf32_sparc"
7570 ;;
7571 esac
7572 ;;
7573 *64-bit*)
7574 case $host in
7575 x86_64-*kfreebsd*-gnu)
7576 LD="${LD-ld} -m elf_x86_64_fbsd"
7577 ;;
7578 x86_64-*linux*)
7579 LD="${LD-ld} -m elf_x86_64"
7580 ;;
7581 ppc*-*linux*|powerpc*-*linux*)
7582 LD="${LD-ld} -m elf64ppc"
7583 ;;
7584 s390*-*linux*|s390*-*tpf*)
7585 LD="${LD-ld} -m elf64_s390"
7586 ;;
7587 sparc*-*linux*)
7588 LD="${LD-ld} -m elf64_sparc"
7589 ;;
7590 esac
7591 ;;
7592 esac
7593 fi
7594 rm -rf conftest*
7595 ;;
7596
7597 *-*-sco3.2v5*)
7598 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7599 SAVE_CFLAGS="$CFLAGS"
7600 CFLAGS="$CFLAGS -belf"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7602 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7603 if ${lt_cv_cc_needs_belf+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 ac_ext=c
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614
7615 int
7616 main ()
7617 {
7618
7619 ;
7620 return 0;
7621 }
7622 _ACEOF
7623 if ac_fn_c_try_link "$LINENO"; then :
7624 lt_cv_cc_needs_belf=yes
7625 else
7626 lt_cv_cc_needs_belf=no
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext \
7629 conftest$ac_exeext conftest.$ac_ext
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7638 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7639 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7640 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7641 CFLAGS="$SAVE_CFLAGS"
7642 fi
7643 ;;
7644 *-*solaris*)
7645 # Find out which ABI we are using.
7646 echo 'int i;' > conftest.$ac_ext
7647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7648 (eval $ac_compile) 2>&5
7649 ac_status=$?
7650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651 test $ac_status = 0; }; then
7652 case `/usr/bin/file conftest.o` in
7653 *64-bit*)
7654 case $lt_cv_prog_gnu_ld in
7655 yes*)
7656 case $host in
7657 i?86-*-solaris*)
7658 LD="${LD-ld} -m elf_x86_64"
7659 ;;
7660 sparc*-*-solaris*)
7661 LD="${LD-ld} -m elf64_sparc"
7662 ;;
7663 esac
7664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7666 LD="${LD-ld}_sol2"
7667 fi
7668 ;;
7669 *)
7670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7671 LD="${LD-ld} -64"
7672 fi
7673 ;;
7674 esac
7675 ;;
7676 esac
7677 fi
7678 rm -rf conftest*
7679 ;;
7680 esac
7681
7682 need_locks="$enable_libtool_lock"
7683
7684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}mt; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 if test -n "$MANIFEST_TOOL"; then
7693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7713 if test -n "$MANIFEST_TOOL"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7715 $as_echo "$MANIFEST_TOOL" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721
7722 fi
7723 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7725 # Extract the first word of "mt", so it can be a program name with args.
7726 set dummy mt; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$ac_ct_MANIFEST_TOOL"; then
7733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7753 if test -n "$ac_ct_MANIFEST_TOOL"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7755 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7762 MANIFEST_TOOL=":"
7763 else
7764 case $cross_compiling:$ac_tool_warned in
7765 yes:)
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned=yes ;;
7769 esac
7770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7771 fi
7772 else
7773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7774 fi
7775
7776 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7778 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7779 if ${lt_cv_path_mainfest_tool+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 lt_cv_path_mainfest_tool=no
7783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7785 cat conftest.err >&5
7786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7787 lt_cv_path_mainfest_tool=yes
7788 fi
7789 rm -rf conftest*
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7792 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7793 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7794 MANIFEST_TOOL=:
7795 fi
7796
7797
7798
7799
7800
7801
7802 case $host_os in
7803 rhapsody* | darwin*)
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$DSYMUTIL"; then
7813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7833 if test -n "$DSYMUTIL"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7835 $as_echo "$DSYMUTIL" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_DSYMUTIL"; then
7844 ac_ct_DSYMUTIL=$DSYMUTIL
7845 # Extract the first word of "dsymutil", so it can be a program name with args.
7846 set dummy dsymutil; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$ac_ct_DSYMUTIL"; then
7853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7873 if test -n "$ac_ct_DSYMUTIL"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7875 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881 if test "x$ac_ct_DSYMUTIL" = x; then
7882 DSYMUTIL=":"
7883 else
7884 case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890 DSYMUTIL=$ac_ct_DSYMUTIL
7891 fi
7892 else
7893 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7894 fi
7895
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_NMEDIT+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$NMEDIT"; then
7905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 NMEDIT=$ac_cv_prog_NMEDIT
7925 if test -n "$NMEDIT"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7927 $as_echo "$NMEDIT" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_NMEDIT"; then
7936 ac_ct_NMEDIT=$NMEDIT
7937 # Extract the first word of "nmedit", so it can be a program name with args.
7938 set dummy nmedit; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$ac_ct_NMEDIT"; then
7945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7965 if test -n "$ac_ct_NMEDIT"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7967 $as_echo "$ac_ct_NMEDIT" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973 if test "x$ac_ct_NMEDIT" = x; then
7974 NMEDIT=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 NMEDIT=$ac_ct_NMEDIT
7983 fi
7984 else
7985 NMEDIT="$ac_cv_prog_NMEDIT"
7986 fi
7987
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_LIPO+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$LIPO"; then
7997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 LIPO=$ac_cv_prog_LIPO
8017 if test -n "$LIPO"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8019 $as_echo "$LIPO" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_LIPO"; then
8028 ac_ct_LIPO=$LIPO
8029 # Extract the first word of "lipo", so it can be a program name with args.
8030 set dummy lipo; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$ac_ct_LIPO"; then
8037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_LIPO="lipo"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8057 if test -n "$ac_ct_LIPO"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8059 $as_echo "$ac_ct_LIPO" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065 if test "x$ac_ct_LIPO" = x; then
8066 LIPO=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 LIPO=$ac_ct_LIPO
8075 fi
8076 else
8077 LIPO="$ac_cv_prog_LIPO"
8078 fi
8079
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_OTOOL+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$OTOOL"; then
8089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 OTOOL=$ac_cv_prog_OTOOL
8109 if test -n "$OTOOL"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8111 $as_echo "$OTOOL" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118 fi
8119 if test -z "$ac_cv_prog_OTOOL"; then
8120 ac_ct_OTOOL=$OTOOL
8121 # Extract the first word of "otool", so it can be a program name with args.
8122 set dummy otool; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$ac_ct_OTOOL"; then
8129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_OTOOL="otool"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142 done
8143 done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8149 if test -n "$ac_ct_OTOOL"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8151 $as_echo "$ac_ct_OTOOL" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157 if test "x$ac_ct_OTOOL" = x; then
8158 OTOOL=":"
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166 OTOOL=$ac_ct_OTOOL
8167 fi
8168 else
8169 OTOOL="$ac_cv_prog_OTOOL"
8170 fi
8171
8172 if test -n "$ac_tool_prefix"; then
8173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_prog_OTOOL64+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 if test -n "$OTOOL64"; then
8181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 OTOOL64=$ac_cv_prog_OTOOL64
8201 if test -n "$OTOOL64"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8203 $as_echo "$OTOOL64" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209
8210 fi
8211 if test -z "$ac_cv_prog_OTOOL64"; then
8212 ac_ct_OTOOL64=$OTOOL64
8213 # Extract the first word of "otool64", so it can be a program name with args.
8214 set dummy otool64; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$ac_ct_OTOOL64"; then
8221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_ac_ct_OTOOL64="otool64"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8241 if test -n "$ac_ct_OTOOL64"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8243 $as_echo "$ac_ct_OTOOL64" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249 if test "x$ac_ct_OTOOL64" = x; then
8250 OTOOL64=":"
8251 else
8252 case $cross_compiling:$ac_tool_warned in
8253 yes:)
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8257 esac
8258 OTOOL64=$ac_ct_OTOOL64
8259 fi
8260 else
8261 OTOOL64="$ac_cv_prog_OTOOL64"
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8291 $as_echo_n "checking for -single_module linker flag... " >&6; }
8292 if ${lt_cv_apple_cc_single_mod+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 lt_cv_apple_cc_single_mod=no
8296 if test -z "${LT_MULTI_MODULE}"; then
8297 # By default we will add the -single_module flag. You can override
8298 # by either setting the environment variable LT_MULTI_MODULE
8299 # non-empty at configure time, or by adding -multi_module to the
8300 # link flags.
8301 rm -rf libconftest.dylib*
8302 echo "int foo(void){return 1;}" > conftest.c
8303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8304 -dynamiclib -Wl,-single_module conftest.c" >&5
8305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8307 _lt_result=$?
8308 # If there is a non-empty error log, and "single_module"
8309 # appears in it, assume the flag caused a linker warning
8310 if test -s conftest.err && $GREP single_module conftest.err; then
8311 cat conftest.err >&5
8312 # Otherwise, if the output was created with a 0 exit code from
8313 # the compiler, it worked.
8314 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8315 lt_cv_apple_cc_single_mod=yes
8316 else
8317 cat conftest.err >&5
8318 fi
8319 rm -rf libconftest.dylib*
8320 rm -f conftest.*
8321 fi
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8324 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8325
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8327 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8328 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 lt_cv_ld_exported_symbols_list=no
8332 save_LDFLAGS=$LDFLAGS
8333 echo "_main" > conftest.sym
8334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337
8338 int
8339 main ()
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 lt_cv_ld_exported_symbols_list=yes
8348 else
8349 lt_cv_ld_exported_symbols_list=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 LDFLAGS="$save_LDFLAGS"
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8357 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8358
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8360 $as_echo_n "checking for -force_load linker flag... " >&6; }
8361 if ${lt_cv_ld_force_load+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 lt_cv_ld_force_load=no
8365 cat > conftest.c << _LT_EOF
8366 int forced_loaded() { return 2;}
8367 _LT_EOF
8368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8370 echo "$AR cru libconftest.a conftest.o" >&5
8371 $AR cru libconftest.a conftest.o 2>&5
8372 echo "$RANLIB libconftest.a" >&5
8373 $RANLIB libconftest.a 2>&5
8374 cat > conftest.c << _LT_EOF
8375 int main() { return 0;}
8376 _LT_EOF
8377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8379 _lt_result=$?
8380 if test -s conftest.err && $GREP force_load conftest.err; then
8381 cat conftest.err >&5
8382 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8383 lt_cv_ld_force_load=yes
8384 else
8385 cat conftest.err >&5
8386 fi
8387 rm -f conftest.err libconftest.a conftest conftest.c
8388 rm -rf conftest.dSYM
8389
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8392 $as_echo "$lt_cv_ld_force_load" >&6; }
8393 case $host_os in
8394 rhapsody* | darwin1.[012])
8395 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8396 darwin1.*)
8397 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8398 darwin*) # darwin 5.x on
8399 # if running on 10.5 or later, the deployment target defaults
8400 # to the OS version, if on x86, and 10.4, the deployment
8401 # target defaults to 10.4. Don't you love it?
8402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8403 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8405 10.[012]*)
8406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8407 10.*)
8408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8409 esac
8410 ;;
8411 esac
8412 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8413 _lt_dar_single_mod='$single_module'
8414 fi
8415 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8416 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8417 else
8418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8419 fi
8420 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8421 _lt_dsymutil='~$DSYMUTIL $lib || :'
8422 else
8423 _lt_dsymutil=
8424 fi
8425 ;;
8426 esac
8427
8428 ac_ext=c
8429 ac_cpp='$CPP $CPPFLAGS'
8430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8435 # On Suns, sometimes $CPP names a directory.
8436 if test -n "$CPP" && test -d "$CPP"; then
8437 CPP=
8438 fi
8439 if test -z "$CPP"; then
8440 if ${ac_cv_prog_CPP+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 # Double quotes because CPP needs to be expanded
8444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8445 do
8446 ac_preproc_ok=false
8447 for ac_c_preproc_warn_flag in '' yes
8448 do
8449 # Use a header file that comes with gcc, so configuring glibc
8450 # with a fresh cross-compiler works.
8451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8452 # <limits.h> exists even on freestanding compilers.
8453 # On the NeXT, cc -E runs the code through the compiler's parser,
8454 # not just through cpp. "Syntax error" is here to catch this case.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #ifdef __STDC__
8458 # include <limits.h>
8459 #else
8460 # include <assert.h>
8461 #endif
8462 Syntax error
8463 _ACEOF
8464 if ac_fn_c_try_cpp "$LINENO"; then :
8465
8466 else
8467 # Broken: fails on valid input.
8468 continue
8469 fi
8470 rm -f conftest.err conftest.i conftest.$ac_ext
8471
8472 # OK, works on sane cases. Now check whether nonexistent headers
8473 # can be detected and how.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <ac_nonexistent.h>
8477 _ACEOF
8478 if ac_fn_c_try_cpp "$LINENO"; then :
8479 # Broken: success on invalid input.
8480 continue
8481 else
8482 # Passes both tests.
8483 ac_preproc_ok=:
8484 break
8485 fi
8486 rm -f conftest.err conftest.i conftest.$ac_ext
8487
8488 done
8489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8490 rm -f conftest.i conftest.err conftest.$ac_ext
8491 if $ac_preproc_ok; then :
8492 break
8493 fi
8494
8495 done
8496 ac_cv_prog_CPP=$CPP
8497
8498 fi
8499 CPP=$ac_cv_prog_CPP
8500 else
8501 ac_cv_prog_CPP=$CPP
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8504 $as_echo "$CPP" >&6; }
8505 ac_preproc_ok=false
8506 for ac_c_preproc_warn_flag in '' yes
8507 do
8508 # Use a header file that comes with gcc, so configuring glibc
8509 # with a fresh cross-compiler works.
8510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8511 # <limits.h> exists even on freestanding compilers.
8512 # On the NeXT, cc -E runs the code through the compiler's parser,
8513 # not just through cpp. "Syntax error" is here to catch this case.
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #ifdef __STDC__
8517 # include <limits.h>
8518 #else
8519 # include <assert.h>
8520 #endif
8521 Syntax error
8522 _ACEOF
8523 if ac_fn_c_try_cpp "$LINENO"; then :
8524
8525 else
8526 # Broken: fails on valid input.
8527 continue
8528 fi
8529 rm -f conftest.err conftest.i conftest.$ac_ext
8530
8531 # OK, works on sane cases. Now check whether nonexistent headers
8532 # can be detected and how.
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #include <ac_nonexistent.h>
8536 _ACEOF
8537 if ac_fn_c_try_cpp "$LINENO"; then :
8538 # Broken: success on invalid input.
8539 continue
8540 else
8541 # Passes both tests.
8542 ac_preproc_ok=:
8543 break
8544 fi
8545 rm -f conftest.err conftest.i conftest.$ac_ext
8546
8547 done
8548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8549 rm -f conftest.i conftest.err conftest.$ac_ext
8550 if $ac_preproc_ok; then :
8551
8552 else
8553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8555 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8556 See \`config.log' for more details" "$LINENO" 5; }
8557 fi
8558
8559 ac_ext=c
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8567 $as_echo_n "checking for ANSI C header files... " >&6; }
8568 if ${ac_cv_header_stdc+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 #include <stdlib.h>
8574 #include <stdarg.h>
8575 #include <string.h>
8576 #include <float.h>
8577
8578 int
8579 main ()
8580 {
8581
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587 ac_cv_header_stdc=yes
8588 else
8589 ac_cv_header_stdc=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592
8593 if test $ac_cv_header_stdc = yes; then
8594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <string.h>
8598
8599 _ACEOF
8600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8601 $EGREP "memchr" >/dev/null 2>&1; then :
8602
8603 else
8604 ac_cv_header_stdc=no
8605 fi
8606 rm -f conftest*
8607
8608 fi
8609
8610 if test $ac_cv_header_stdc = yes; then
8611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 #include <stdlib.h>
8615
8616 _ACEOF
8617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8618 $EGREP "free" >/dev/null 2>&1; then :
8619
8620 else
8621 ac_cv_header_stdc=no
8622 fi
8623 rm -f conftest*
8624
8625 fi
8626
8627 if test $ac_cv_header_stdc = yes; then
8628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8629 if test "$cross_compiling" = yes; then :
8630 :
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #include <ctype.h>
8635 #include <stdlib.h>
8636 #if ((' ' & 0x0FF) == 0x020)
8637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8639 #else
8640 # define ISLOWER(c) \
8641 (('a' <= (c) && (c) <= 'i') \
8642 || ('j' <= (c) && (c) <= 'r') \
8643 || ('s' <= (c) && (c) <= 'z'))
8644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8645 #endif
8646
8647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8648 int
8649 main ()
8650 {
8651 int i;
8652 for (i = 0; i < 256; i++)
8653 if (XOR (islower (i), ISLOWER (i))
8654 || toupper (i) != TOUPPER (i))
8655 return 2;
8656 return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_run "$LINENO"; then :
8660
8661 else
8662 ac_cv_header_stdc=no
8663 fi
8664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8665 conftest.$ac_objext conftest.beam conftest.$ac_ext
8666 fi
8667
8668 fi
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8671 $as_echo "$ac_cv_header_stdc" >&6; }
8672 if test $ac_cv_header_stdc = yes; then
8673
8674 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8675
8676 fi
8677
8678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8679 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8680 inttypes.h stdint.h unistd.h
8681 do :
8682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8683 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8684 "
8685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8686 cat >>confdefs.h <<_ACEOF
8687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688 _ACEOF
8689
8690 fi
8691
8692 done
8693
8694
8695 for ac_header in dlfcn.h
8696 do :
8697 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8698 "
8699 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8700 cat >>confdefs.h <<_ACEOF
8701 #define HAVE_DLFCN_H 1
8702 _ACEOF
8703
8704 fi
8705
8706 done
8707
8708
8709
8710
8711 func_stripname_cnf ()
8712 {
8713 case ${2} in
8714 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8715 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8716 esac
8717 } # func_stripname_cnf
8718
8719
8720
8721
8722
8723 # Set options
8724 # Check whether --enable-static was given.
8725 if test "${enable_static+set}" = set; then :
8726 enableval=$enable_static; p=${PACKAGE-default}
8727 case $enableval in
8728 yes) enable_static=yes ;;
8729 no) enable_static=no ;;
8730 *)
8731 enable_static=no
8732 # Look at the argument we got. We use all the common list separators.
8733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8734 for pkg in $enableval; do
8735 IFS="$lt_save_ifs"
8736 if test "X$pkg" = "X$p"; then
8737 enable_static=yes
8738 fi
8739 done
8740 IFS="$lt_save_ifs"
8741 ;;
8742 esac
8743 else
8744 enable_static=no
8745 fi
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 enable_dlopen=no
8757
8758
8759 enable_win32_dll=no
8760
8761
8762 # Check whether --enable-shared was given.
8763 if test "${enable_shared+set}" = set; then :
8764 enableval=$enable_shared; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_shared=yes ;;
8767 no) enable_shared=no ;;
8768 *)
8769 enable_shared=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8772 for pkg in $enableval; do
8773 IFS="$lt_save_ifs"
8774 if test "X$pkg" = "X$p"; then
8775 enable_shared=yes
8776 fi
8777 done
8778 IFS="$lt_save_ifs"
8779 ;;
8780 esac
8781 else
8782 enable_shared=yes
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795 # Check whether --with-pic was given.
8796 if test "${with_pic+set}" = set; then :
8797 withval=$with_pic; lt_p=${PACKAGE-default}
8798 case $withval in
8799 yes|no) pic_mode=$withval ;;
8800 *)
8801 pic_mode=default
8802 # Look at the argument we got. We use all the common list separators.
8803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8804 for lt_pkg in $withval; do
8805 IFS="$lt_save_ifs"
8806 if test "X$lt_pkg" = "X$lt_p"; then
8807 pic_mode=yes
8808 fi
8809 done
8810 IFS="$lt_save_ifs"
8811 ;;
8812 esac
8813 else
8814 pic_mode=default
8815 fi
8816
8817
8818 test -z "$pic_mode" && pic_mode=default
8819
8820
8821
8822
8823
8824
8825
8826 # Check whether --enable-fast-install was given.
8827 if test "${enable_fast_install+set}" = set; then :
8828 enableval=$enable_fast_install; p=${PACKAGE-default}
8829 case $enableval in
8830 yes) enable_fast_install=yes ;;
8831 no) enable_fast_install=no ;;
8832 *)
8833 enable_fast_install=no
8834 # Look at the argument we got. We use all the common list separators.
8835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8836 for pkg in $enableval; do
8837 IFS="$lt_save_ifs"
8838 if test "X$pkg" = "X$p"; then
8839 enable_fast_install=yes
8840 fi
8841 done
8842 IFS="$lt_save_ifs"
8843 ;;
8844 esac
8845 else
8846 enable_fast_install=yes
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 # This can be used to rebuild libtool when needed
8860 LIBTOOL_DEPS="$ltmain"
8861
8862 # Always use our own libtool.
8863 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894 test -z "$LN_S" && LN_S="ln -s"
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 if test -n "${ZSH_VERSION+set}" ; then
8910 setopt NO_GLOB_SUBST
8911 fi
8912
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8914 $as_echo_n "checking for objdir... " >&6; }
8915 if ${lt_cv_objdir+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 rm -f .libs 2>/dev/null
8919 mkdir .libs 2>/dev/null
8920 if test -d .libs; then
8921 lt_cv_objdir=.libs
8922 else
8923 # MS-DOS does not allow filenames that begin with a dot.
8924 lt_cv_objdir=_libs
8925 fi
8926 rmdir .libs 2>/dev/null
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8929 $as_echo "$lt_cv_objdir" >&6; }
8930 objdir=$lt_cv_objdir
8931
8932
8933
8934
8935
8936 cat >>confdefs.h <<_ACEOF
8937 #define LT_OBJDIR "$lt_cv_objdir/"
8938 _ACEOF
8939
8940
8941
8942
8943 case $host_os in
8944 aix3*)
8945 # AIX sometimes has problems with the GCC collect2 program. For some
8946 # reason, if we set the COLLECT_NAMES environment variable, the problems
8947 # vanish in a puff of smoke.
8948 if test "X${COLLECT_NAMES+set}" != Xset; then
8949 COLLECT_NAMES=
8950 export COLLECT_NAMES
8951 fi
8952 ;;
8953 esac
8954
8955 # Global variables:
8956 ofile=libtool
8957 can_build_shared=yes
8958
8959 # All known linkers require a `.a' archive for static linking (except MSVC,
8960 # which needs '.lib').
8961 libext=a
8962
8963 with_gnu_ld="$lt_cv_prog_gnu_ld"
8964
8965 old_CC="$CC"
8966 old_CFLAGS="$CFLAGS"
8967
8968 # Set sane defaults for various variables
8969 test -z "$CC" && CC=cc
8970 test -z "$LTCC" && LTCC=$CC
8971 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8972 test -z "$LD" && LD=ld
8973 test -z "$ac_objext" && ac_objext=o
8974
8975 for cc_temp in $compiler""; do
8976 case $cc_temp in
8977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8979 \-*) ;;
8980 *) break;;
8981 esac
8982 done
8983 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8984
8985
8986 # Only perform the check for file, if the check method requires it
8987 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8988 case $deplibs_check_method in
8989 file_magic*)
8990 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8992 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8993 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 case $MAGIC_CMD in
8997 [\\/*] | ?:[\\/]*)
8998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8999 ;;
9000 *)
9001 lt_save_MAGIC_CMD="$MAGIC_CMD"
9002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9004 for ac_dir in $ac_dummy; do
9005 IFS="$lt_save_ifs"
9006 test -z "$ac_dir" && ac_dir=.
9007 if test -f $ac_dir/${ac_tool_prefix}file; then
9008 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9009 if test -n "$file_magic_test_file"; then
9010 case $deplibs_check_method in
9011 "file_magic "*)
9012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9015 $EGREP "$file_magic_regex" > /dev/null; then
9016 :
9017 else
9018 cat <<_LT_EOF 1>&2
9019
9020 *** Warning: the command libtool uses to detect shared libraries,
9021 *** $file_magic_cmd, produces output that libtool cannot recognize.
9022 *** The result is that libtool may fail to recognize shared libraries
9023 *** as such. This will affect the creation of libtool libraries that
9024 *** depend on shared libraries, but programs linked with such libtool
9025 *** libraries will work regardless of this problem. Nevertheless, you
9026 *** may want to report the problem to your system manager and/or to
9027 *** bug-libtool@gnu.org
9028
9029 _LT_EOF
9030 fi ;;
9031 esac
9032 fi
9033 break
9034 fi
9035 done
9036 IFS="$lt_save_ifs"
9037 MAGIC_CMD="$lt_save_MAGIC_CMD"
9038 ;;
9039 esac
9040 fi
9041
9042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043 if test -n "$MAGIC_CMD"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9045 $as_echo "$MAGIC_CMD" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9049 fi
9050
9051
9052
9053
9054
9055 if test -z "$lt_cv_path_MAGIC_CMD"; then
9056 if test -n "$ac_tool_prefix"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9058 $as_echo_n "checking for file... " >&6; }
9059 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 case $MAGIC_CMD in
9063 [\\/*] | ?:[\\/]*)
9064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9065 ;;
9066 *)
9067 lt_save_MAGIC_CMD="$MAGIC_CMD"
9068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9070 for ac_dir in $ac_dummy; do
9071 IFS="$lt_save_ifs"
9072 test -z "$ac_dir" && ac_dir=.
9073 if test -f $ac_dir/file; then
9074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9075 if test -n "$file_magic_test_file"; then
9076 case $deplibs_check_method in
9077 "file_magic "*)
9078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9081 $EGREP "$file_magic_regex" > /dev/null; then
9082 :
9083 else
9084 cat <<_LT_EOF 1>&2
9085
9086 *** Warning: the command libtool uses to detect shared libraries,
9087 *** $file_magic_cmd, produces output that libtool cannot recognize.
9088 *** The result is that libtool may fail to recognize shared libraries
9089 *** as such. This will affect the creation of libtool libraries that
9090 *** depend on shared libraries, but programs linked with such libtool
9091 *** libraries will work regardless of this problem. Nevertheless, you
9092 *** may want to report the problem to your system manager and/or to
9093 *** bug-libtool@gnu.org
9094
9095 _LT_EOF
9096 fi ;;
9097 esac
9098 fi
9099 break
9100 fi
9101 done
9102 IFS="$lt_save_ifs"
9103 MAGIC_CMD="$lt_save_MAGIC_CMD"
9104 ;;
9105 esac
9106 fi
9107
9108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9109 if test -n "$MAGIC_CMD"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9111 $as_echo "$MAGIC_CMD" >&6; }
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 fi
9116
9117
9118 else
9119 MAGIC_CMD=:
9120 fi
9121 fi
9122
9123 fi
9124 ;;
9125 esac
9126
9127 # Use C for the default configuration in the libtool script
9128
9129 lt_save_CC="$CC"
9130 ac_ext=c
9131 ac_cpp='$CPP $CPPFLAGS'
9132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9135
9136
9137 # Source file extension for C test sources.
9138 ac_ext=c
9139
9140 # Object file extension for compiled C test sources.
9141 objext=o
9142 objext=$objext
9143
9144 # Code to be used in simple compile tests
9145 lt_simple_compile_test_code="int some_variable = 0;"
9146
9147 # Code to be used in simple link tests
9148 lt_simple_link_test_code='int main(){return(0);}'
9149
9150
9151
9152
9153
9154
9155
9156 # If no C compiler was specified, use CC.
9157 LTCC=${LTCC-"$CC"}
9158
9159 # If no C compiler flags were specified, use CFLAGS.
9160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9161
9162 # Allow CC to be a program name with arguments.
9163 compiler=$CC
9164
9165 # Save the default compiler, since it gets overwritten when the other
9166 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9167 compiler_DEFAULT=$CC
9168
9169 # save warnings/boilerplate of simple test code
9170 ac_outfile=conftest.$ac_objext
9171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9173 _lt_compiler_boilerplate=`cat conftest.err`
9174 $RM -r conftest*
9175
9176 ac_outfile=conftest.$ac_objext
9177 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9179 _lt_linker_boilerplate=`cat conftest.err`
9180 $RM -r conftest*
9181
9182
9183 ## CAVEAT EMPTOR:
9184 ## There is no encapsulation within the following macros, do not change
9185 ## the running order or otherwise move them around unless you know exactly
9186 ## what you are doing...
9187 if test -n "$compiler"; then
9188
9189 lt_prog_compiler_no_builtin_flag=
9190
9191 if test "$GCC" = yes; then
9192 case $cc_basename in
9193 nvcc*)
9194 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9195 *)
9196 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9197 esac
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9200 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9201 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 lt_cv_prog_compiler_rtti_exceptions=no
9205 ac_outfile=conftest.$ac_objext
9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207 lt_compiler_flag="-fno-rtti -fno-exceptions"
9208 # Insert the option either (1) after the last *FLAGS variable, or
9209 # (2) before a word containing "conftest.", or (3) at the end.
9210 # Note that $ac_compile itself does not contain backslashes and begins
9211 # with a dollar sign (not a hyphen), so the echo should work correctly.
9212 # The option is referenced via a variable to avoid confusing sed.
9213 lt_compile=`echo "$ac_compile" | $SED \
9214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216 -e 's:$: $lt_compiler_flag:'`
9217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9218 (eval "$lt_compile" 2>conftest.err)
9219 ac_status=$?
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 if (exit $ac_status) && test -s "$ac_outfile"; then
9223 # The compiler can only warn and ignore the option if not recognized
9224 # So say no if there are warnings other than the usual output.
9225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9228 lt_cv_prog_compiler_rtti_exceptions=yes
9229 fi
9230 fi
9231 $RM -r conftest*
9232
9233 fi
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9235 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9236
9237 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9238 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9239 else
9240 :
9241 fi
9242
9243 fi
9244
9245
9246
9247
9248
9249
9250 lt_prog_compiler_wl=
9251 lt_prog_compiler_pic=
9252 lt_prog_compiler_static=
9253
9254
9255 if test "$GCC" = yes; then
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_static='-static'
9258
9259 case $host_os in
9260 aix*)
9261 # All AIX code is PIC.
9262 if test "$host_cpu" = ia64; then
9263 # AIX 5 now supports IA64 processor
9264 lt_prog_compiler_static='-Bstatic'
9265 fi
9266 ;;
9267
9268 amigaos*)
9269 case $host_cpu in
9270 powerpc)
9271 # see comment about AmigaOS4 .so support
9272 lt_prog_compiler_pic='-fPIC'
9273 ;;
9274 m68k)
9275 # FIXME: we need at least 68020 code to build shared libraries, but
9276 # adding the `-m68020' flag to GCC prevents building anything better,
9277 # like `-m68040'.
9278 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9279 ;;
9280 esac
9281 ;;
9282
9283 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9284 # PIC is the default for these OSes.
9285 ;;
9286
9287 mingw* | cygwin* | pw32* | os2* | cegcc*)
9288 # This hack is so that the source file can tell whether it is being
9289 # built for inclusion in a dll (and should export symbols for example).
9290 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9291 # (--disable-auto-import) libraries
9292 lt_prog_compiler_pic='-DDLL_EXPORT'
9293 ;;
9294
9295 darwin* | rhapsody*)
9296 # PIC is the default on this platform
9297 # Common symbols not allowed in MH_DYLIB files
9298 lt_prog_compiler_pic='-fno-common'
9299 ;;
9300
9301 haiku*)
9302 # PIC is the default for Haiku.
9303 # The "-static" flag exists, but is broken.
9304 lt_prog_compiler_static=
9305 ;;
9306
9307 hpux*)
9308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9310 # sets the default TLS model and affects inlining.
9311 case $host_cpu in
9312 hppa*64*)
9313 # +Z the default
9314 ;;
9315 *)
9316 lt_prog_compiler_pic='-fPIC'
9317 ;;
9318 esac
9319 ;;
9320
9321 interix[3-9]*)
9322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9323 # Instead, we relocate shared libraries at runtime.
9324 ;;
9325
9326 msdosdjgpp*)
9327 # Just because we use GCC doesn't mean we suddenly get shared libraries
9328 # on systems that don't support them.
9329 lt_prog_compiler_can_build_shared=no
9330 enable_shared=no
9331 ;;
9332
9333 *nto* | *qnx*)
9334 # QNX uses GNU C++, but need to define -shared option too, otherwise
9335 # it will coredump.
9336 lt_prog_compiler_pic='-fPIC -shared'
9337 ;;
9338
9339 sysv4*MP*)
9340 if test -d /usr/nec; then
9341 lt_prog_compiler_pic=-Kconform_pic
9342 fi
9343 ;;
9344
9345 *)
9346 lt_prog_compiler_pic='-fPIC'
9347 ;;
9348 esac
9349
9350 case $cc_basename in
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 lt_prog_compiler_wl='-Xlinker '
9353 if test -n "$lt_prog_compiler_pic"; then
9354 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9355 fi
9356 ;;
9357 esac
9358 else
9359 # PORTME Check for flag to pass linker flags through the system compiler.
9360 case $host_os in
9361 aix*)
9362 lt_prog_compiler_wl='-Wl,'
9363 if test "$host_cpu" = ia64; then
9364 # AIX 5 now supports IA64 processor
9365 lt_prog_compiler_static='-Bstatic'
9366 else
9367 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9368 fi
9369 ;;
9370
9371 mingw* | cygwin* | pw32* | os2* | cegcc*)
9372 # This hack is so that the source file can tell whether it is being
9373 # built for inclusion in a dll (and should export symbols for example).
9374 lt_prog_compiler_pic='-DDLL_EXPORT'
9375 ;;
9376
9377 hpux9* | hpux10* | hpux11*)
9378 lt_prog_compiler_wl='-Wl,'
9379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9380 # not for PA HP-UX.
9381 case $host_cpu in
9382 hppa*64*|ia64*)
9383 # +Z the default
9384 ;;
9385 *)
9386 lt_prog_compiler_pic='+Z'
9387 ;;
9388 esac
9389 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9390 lt_prog_compiler_static='${wl}-a ${wl}archive'
9391 ;;
9392
9393 irix5* | irix6* | nonstopux*)
9394 lt_prog_compiler_wl='-Wl,'
9395 # PIC (with -KPIC) is the default.
9396 lt_prog_compiler_static='-non_shared'
9397 ;;
9398
9399 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9400 case $cc_basename in
9401 # old Intel for x86_64 which still supported -KPIC.
9402 ecc*)
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_pic='-KPIC'
9405 lt_prog_compiler_static='-static'
9406 ;;
9407 # icc used to be incompatible with GCC.
9408 # ICC 10 doesn't accept -KPIC any more.
9409 icc* | ifort*)
9410 lt_prog_compiler_wl='-Wl,'
9411 lt_prog_compiler_pic='-fPIC'
9412 lt_prog_compiler_static='-static'
9413 ;;
9414 # Lahey Fortran 8.1.
9415 lf95*)
9416 lt_prog_compiler_wl='-Wl,'
9417 lt_prog_compiler_pic='--shared'
9418 lt_prog_compiler_static='--static'
9419 ;;
9420 nagfor*)
9421 # NAG Fortran compiler
9422 lt_prog_compiler_wl='-Wl,-Wl,,'
9423 lt_prog_compiler_pic='-PIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 ;;
9426 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9427 # Portland Group compilers (*not* the Pentium gcc compiler,
9428 # which looks to be a dead project)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fpic'
9431 lt_prog_compiler_static='-Bstatic'
9432 ;;
9433 ccc*)
9434 lt_prog_compiler_wl='-Wl,'
9435 # All Alpha code is PIC.
9436 lt_prog_compiler_static='-non_shared'
9437 ;;
9438 xl* | bgxl* | bgf* | mpixl*)
9439 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_pic='-qpic'
9442 lt_prog_compiler_static='-qstaticlink'
9443 ;;
9444 *)
9445 case `$CC -V 2>&1 | sed 5q` in
9446 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9447 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9448 lt_prog_compiler_pic='-KPIC'
9449 lt_prog_compiler_static='-Bstatic'
9450 lt_prog_compiler_wl=''
9451 ;;
9452 *Sun\ F* | *Sun*Fortran*)
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 lt_prog_compiler_wl='-Qoption ld '
9456 ;;
9457 *Sun\ C*)
9458 # Sun C 5.9
9459 lt_prog_compiler_pic='-KPIC'
9460 lt_prog_compiler_static='-Bstatic'
9461 lt_prog_compiler_wl='-Wl,'
9462 ;;
9463 *Intel*\ [CF]*Compiler*)
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_pic='-fPIC'
9466 lt_prog_compiler_static='-static'
9467 ;;
9468 *Portland\ Group*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fpic'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473 esac
9474 ;;
9475 esac
9476 ;;
9477
9478 newsos6)
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9482
9483 *nto* | *qnx*)
9484 # QNX uses GNU C++, but need to define -shared option too, otherwise
9485 # it will coredump.
9486 lt_prog_compiler_pic='-fPIC -shared'
9487 ;;
9488
9489 osf3* | osf4* | osf5*)
9490 lt_prog_compiler_wl='-Wl,'
9491 # All OSF/1 code is PIC.
9492 lt_prog_compiler_static='-non_shared'
9493 ;;
9494
9495 rdos*)
9496 lt_prog_compiler_static='-non_shared'
9497 ;;
9498
9499 solaris*)
9500 lt_prog_compiler_pic='-KPIC'
9501 lt_prog_compiler_static='-Bstatic'
9502 case $cc_basename in
9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9504 lt_prog_compiler_wl='-Qoption ld ';;
9505 *)
9506 lt_prog_compiler_wl='-Wl,';;
9507 esac
9508 ;;
9509
9510 sunos4*)
9511 lt_prog_compiler_wl='-Qoption ld '
9512 lt_prog_compiler_pic='-PIC'
9513 lt_prog_compiler_static='-Bstatic'
9514 ;;
9515
9516 sysv4 | sysv4.2uw2* | sysv4.3*)
9517 lt_prog_compiler_wl='-Wl,'
9518 lt_prog_compiler_pic='-KPIC'
9519 lt_prog_compiler_static='-Bstatic'
9520 ;;
9521
9522 sysv4*MP*)
9523 if test -d /usr/nec ;then
9524 lt_prog_compiler_pic='-Kconform_pic'
9525 lt_prog_compiler_static='-Bstatic'
9526 fi
9527 ;;
9528
9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9533 ;;
9534
9535 unicos*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_can_build_shared=no
9538 ;;
9539
9540 uts4*)
9541 lt_prog_compiler_pic='-pic'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9544
9545 *)
9546 lt_prog_compiler_can_build_shared=no
9547 ;;
9548 esac
9549 fi
9550
9551 case $host_os in
9552 # For platforms which do not support PIC, -DPIC is meaningless:
9553 *djgpp*)
9554 lt_prog_compiler_pic=
9555 ;;
9556 *)
9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9558 ;;
9559 esac
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9562 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9563 if ${lt_cv_prog_compiler_pic+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9569 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9570 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9571
9572 #
9573 # Check to make sure the PIC flag actually works.
9574 #
9575 if test -n "$lt_prog_compiler_pic"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9577 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9578 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 lt_cv_prog_compiler_pic_works=no
9582 ac_outfile=conftest.$ac_objext
9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9585 # Insert the option either (1) after the last *FLAGS variable, or
9586 # (2) before a word containing "conftest.", or (3) at the end.
9587 # Note that $ac_compile itself does not contain backslashes and begins
9588 # with a dollar sign (not a hyphen), so the echo should work correctly.
9589 # The option is referenced via a variable to avoid confusing sed.
9590 lt_compile=`echo "$ac_compile" | $SED \
9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9593 -e 's:$: $lt_compiler_flag:'`
9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9595 (eval "$lt_compile" 2>conftest.err)
9596 ac_status=$?
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 if (exit $ac_status) && test -s "$ac_outfile"; then
9600 # The compiler can only warn and ignore the option if not recognized
9601 # So say no if there are warnings other than the usual output.
9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_pic_works=yes
9606 fi
9607 fi
9608 $RM -r conftest*
9609
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9612 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9613
9614 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9615 case $lt_prog_compiler_pic in
9616 "" | " "*) ;;
9617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9618 esac
9619 else
9620 lt_prog_compiler_pic=
9621 lt_prog_compiler_can_build_shared=no
9622 fi
9623
9624 fi
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 #
9637 # Check to make sure the static flag actually works.
9638 #
9639 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9641 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9642 if ${lt_cv_prog_compiler_static_works+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 lt_cv_prog_compiler_static_works=no
9646 save_LDFLAGS="$LDFLAGS"
9647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9650 # The linker can only warn and ignore the option if not recognized
9651 # So say no if there are warnings
9652 if test -s conftest.err; then
9653 # Append any errors to the config.log.
9654 cat conftest.err 1>&5
9655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9657 if diff conftest.exp conftest.er2 >/dev/null; then
9658 lt_cv_prog_compiler_static_works=yes
9659 fi
9660 else
9661 lt_cv_prog_compiler_static_works=yes
9662 fi
9663 fi
9664 $RM -r conftest*
9665 LDFLAGS="$save_LDFLAGS"
9666
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9669 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9670
9671 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9672 :
9673 else
9674 lt_prog_compiler_static=
9675 fi
9676
9677
9678
9679
9680
9681
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9684 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9685 if ${lt_cv_prog_compiler_c_o+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 lt_cv_prog_compiler_c_o=no
9689 $RM -r conftest 2>/dev/null
9690 mkdir conftest
9691 cd conftest
9692 mkdir out
9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694
9695 lt_compiler_flag="-o out/conftest2.$ac_objext"
9696 # Insert the option either (1) after the last *FLAGS variable, or
9697 # (2) before a word containing "conftest.", or (3) at the end.
9698 # Note that $ac_compile itself does not contain backslashes and begins
9699 # with a dollar sign (not a hyphen), so the echo should work correctly.
9700 lt_compile=`echo "$ac_compile" | $SED \
9701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703 -e 's:$: $lt_compiler_flag:'`
9704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9705 (eval "$lt_compile" 2>out/conftest.err)
9706 ac_status=$?
9707 cat out/conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9710 then
9711 # The compiler can only warn and ignore the option if not recognized
9712 # So say no if there are warnings
9713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9716 lt_cv_prog_compiler_c_o=yes
9717 fi
9718 fi
9719 chmod u+w . 2>&5
9720 $RM -r conftest*
9721 # SGI C++ compiler will create directory out/ii_files/ for
9722 # template instantiation
9723 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9724 $RM out/* && rmdir out
9725 cd ..
9726 $RM -r conftest
9727 $RM -r conftest*
9728
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9731 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9732
9733
9734
9735
9736
9737
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9740 if ${lt_cv_prog_compiler_c_o+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 lt_cv_prog_compiler_c_o=no
9744 $RM -r conftest 2>/dev/null
9745 mkdir conftest
9746 cd conftest
9747 mkdir out
9748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9749
9750 lt_compiler_flag="-o out/conftest2.$ac_objext"
9751 # Insert the option either (1) after the last *FLAGS variable, or
9752 # (2) before a word containing "conftest.", or (3) at the end.
9753 # Note that $ac_compile itself does not contain backslashes and begins
9754 # with a dollar sign (not a hyphen), so the echo should work correctly.
9755 lt_compile=`echo "$ac_compile" | $SED \
9756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9758 -e 's:$: $lt_compiler_flag:'`
9759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9760 (eval "$lt_compile" 2>out/conftest.err)
9761 ac_status=$?
9762 cat out/conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9765 then
9766 # The compiler can only warn and ignore the option if not recognized
9767 # So say no if there are warnings
9768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9771 lt_cv_prog_compiler_c_o=yes
9772 fi
9773 fi
9774 chmod u+w . 2>&5
9775 $RM -r conftest*
9776 # SGI C++ compiler will create directory out/ii_files/ for
9777 # template instantiation
9778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9779 $RM out/* && rmdir out
9780 cd ..
9781 $RM -r conftest
9782 $RM -r conftest*
9783
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9786 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9787
9788
9789
9790
9791 hard_links="nottested"
9792 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9793 # do not overwrite the value of need_locks provided by the user
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9795 $as_echo_n "checking if we can lock with hard links... " >&6; }
9796 hard_links=yes
9797 $RM -r conftest*
9798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9799 touch conftest.a
9800 ln conftest.a conftest.b 2>&5 || hard_links=no
9801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9803 $as_echo "$hard_links" >&6; }
9804 if test "$hard_links" = no; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9806 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9807 need_locks=warn
9808 fi
9809 else
9810 need_locks=no
9811 fi
9812
9813
9814
9815
9816
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9820
9821 runpath_var=
9822 allow_undefined_flag=
9823 always_export_symbols=no
9824 archive_cmds=
9825 archive_expsym_cmds=
9826 compiler_needs_object=no
9827 enable_shared_with_static_runtimes=no
9828 export_dynamic_flag_spec=
9829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9830 hardcode_automatic=no
9831 hardcode_direct=no
9832 hardcode_direct_absolute=no
9833 hardcode_libdir_flag_spec=
9834 hardcode_libdir_separator=
9835 hardcode_minus_L=no
9836 hardcode_shlibpath_var=unsupported
9837 inherit_rpath=no
9838 link_all_deplibs=unknown
9839 module_cmds=
9840 module_expsym_cmds=
9841 old_archive_from_new_cmds=
9842 old_archive_from_expsyms_cmds=
9843 thread_safe_flag_spec=
9844 whole_archive_flag_spec=
9845 # include_expsyms should be a list of space-separated symbols to be *always*
9846 # included in the symbol list
9847 include_expsyms=
9848 # exclude_expsyms can be an extended regexp of symbols to exclude
9849 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9851 # as well as any symbol that contains `d'.
9852 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9854 # platforms (ab)use it in PIC code, but their linkers get confused if
9855 # the symbol is explicitly referenced. Since portable code cannot
9856 # rely on this symbol name, it's probably fine to never include it in
9857 # preloaded symbol tables.
9858 # Exclude shared library initialization/finalization symbols.
9859 extract_expsyms_cmds=
9860
9861 case $host_os in
9862 cygwin* | mingw* | pw32* | cegcc*)
9863 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9864 # When not using gcc, we currently assume that we are using
9865 # Microsoft Visual C++.
9866 if test "$GCC" != yes; then
9867 with_gnu_ld=no
9868 fi
9869 ;;
9870 interix*)
9871 # we just hope/assume this is gcc and not c89 (= MSVC++)
9872 with_gnu_ld=yes
9873 ;;
9874 openbsd*)
9875 with_gnu_ld=no
9876 ;;
9877 esac
9878
9879 ld_shlibs=yes
9880
9881 # On some targets, GNU ld is compatible enough with the native linker
9882 # that we're better off using the native interface for both.
9883 lt_use_gnu_ld_interface=no
9884 if test "$with_gnu_ld" = yes; then
9885 case $host_os in
9886 aix*)
9887 # The AIX port of GNU ld has always aspired to compatibility
9888 # with the native linker. However, as the warning in the GNU ld
9889 # block says, versions before 2.19.5* couldn't really create working
9890 # shared libraries, regardless of the interface used.
9891 case `$LD -v 2>&1` in
9892 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9893 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9894 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9895 *)
9896 lt_use_gnu_ld_interface=yes
9897 ;;
9898 esac
9899 ;;
9900 *)
9901 lt_use_gnu_ld_interface=yes
9902 ;;
9903 esac
9904 fi
9905
9906 if test "$lt_use_gnu_ld_interface" = yes; then
9907 # If archive_cmds runs LD, not CC, wlarc should be empty
9908 wlarc='${wl}'
9909
9910 # Set some defaults for GNU ld with shared library support. These
9911 # are reset later if shared libraries are not supported. Putting them
9912 # here allows them to be overridden if necessary.
9913 runpath_var=LD_RUN_PATH
9914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915 export_dynamic_flag_spec='${wl}--export-dynamic'
9916 # ancient GNU ld didn't support --whole-archive et. al.
9917 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9918 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9919 else
9920 whole_archive_flag_spec=
9921 fi
9922 supports_anon_versioning=no
9923 case `$LD -v 2>&1` in
9924 *GNU\ gold*) supports_anon_versioning=yes ;;
9925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9928 *\ 2.11.*) ;; # other 2.11 versions
9929 *) supports_anon_versioning=yes ;;
9930 esac
9931
9932 # See if GNU ld supports shared libraries.
9933 case $host_os in
9934 aix[3-9]*)
9935 # On AIX/PPC, the GNU linker is very broken
9936 if test "$host_cpu" != ia64; then
9937 ld_shlibs=no
9938 cat <<_LT_EOF 1>&2
9939
9940 *** Warning: the GNU linker, at least up to release 2.19, is reported
9941 *** to be unable to reliably create shared libraries on AIX.
9942 *** Therefore, libtool is disabling shared libraries support. If you
9943 *** really care for shared libraries, you may want to install binutils
9944 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9945 *** You will then need to restart the configuration process.
9946
9947 _LT_EOF
9948 fi
9949 ;;
9950
9951 amigaos*)
9952 case $host_cpu in
9953 powerpc)
9954 # see comment about AmigaOS4 .so support
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds=''
9957 ;;
9958 m68k)
9959 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)'
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_minus_L=yes
9962 ;;
9963 esac
9964 ;;
9965
9966 beos*)
9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 allow_undefined_flag=unsupported
9969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9970 # support --undefined. This deserves some investigation. FIXME
9971 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 else
9973 ld_shlibs=no
9974 fi
9975 ;;
9976
9977 cygwin* | mingw* | pw32* | cegcc*)
9978 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9979 # as there is no search path for DLLs.
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 export_dynamic_flag_spec='${wl}--export-all-symbols'
9982 allow_undefined_flag=unsupported
9983 always_export_symbols=no
9984 enable_shared_with_static_runtimes=yes
9985 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'
9986 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9987
9988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990 # If the export-symbols file already is a .def file (1st line
9991 # is EXPORTS), use it as is; otherwise, prepend...
9992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9993 cp $export_symbols $output_objdir/$soname.def;
9994 else
9995 echo EXPORTS > $output_objdir/$soname.def;
9996 cat $export_symbols >> $output_objdir/$soname.def;
9997 fi~
9998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003
10004 haiku*)
10005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006 link_all_deplibs=yes
10007 ;;
10008
10009 interix[3-9]*)
10010 hardcode_direct=no
10011 hardcode_shlibpath_var=no
10012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10013 export_dynamic_flag_spec='${wl}-E'
10014 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10015 # Instead, shared libraries are loaded at an image base (0x10000000 by
10016 # default) and relocated if they conflict, which is a slow very memory
10017 # consuming and fragmenting process. To avoid this, we pick a random,
10018 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10019 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10021 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'
10022 ;;
10023
10024 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10025 tmp_diet=no
10026 if test "$host_os" = linux-dietlibc; then
10027 case $cc_basename in
10028 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10029 esac
10030 fi
10031 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10032 && test "$tmp_diet" = no
10033 then
10034 tmp_addflag=' $pic_flag'
10035 tmp_sharedflag='-shared'
10036 case $cc_basename,$host_cpu in
10037 pgcc*) # Portland Group C compiler
10038 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'
10039 tmp_addflag=' $pic_flag'
10040 ;;
10041 pgf77* | pgf90* | pgf95* | pgfortran*)
10042 # Portland Group f77 and f90 compilers
10043 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'
10044 tmp_addflag=' $pic_flag -Mnomain' ;;
10045 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10046 tmp_addflag=' -i_dynamic' ;;
10047 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10048 tmp_addflag=' -i_dynamic -nofor_main' ;;
10049 ifc* | ifort*) # Intel Fortran compiler
10050 tmp_addflag=' -nofor_main' ;;
10051 lf95*) # Lahey Fortran 8.1
10052 whole_archive_flag_spec=
10053 tmp_sharedflag='--shared' ;;
10054 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10055 tmp_sharedflag='-qmkshrobj'
10056 tmp_addflag= ;;
10057 nvcc*) # Cuda Compiler Driver 2.2
10058 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'
10059 compiler_needs_object=yes
10060 ;;
10061 esac
10062 case `$CC -V 2>&1 | sed 5q` in
10063 *Sun\ C*) # Sun C 5.9
10064 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'
10065 compiler_needs_object=yes
10066 tmp_sharedflag='-G' ;;
10067 *Sun\ F*) # Sun Fortran 8.3
10068 tmp_sharedflag='-G' ;;
10069 esac
10070 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071
10072 if test "x$supports_anon_versioning" = xyes; then
10073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10075 echo "local: *; };" >> $output_objdir/$libname.ver~
10076 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10077 fi
10078
10079 case $cc_basename in
10080 xlf* | bgf* | bgxlf* | mpixlf*)
10081 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10082 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10085 if test "x$supports_anon_versioning" = xyes; then
10086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10088 echo "local: *; };" >> $output_objdir/$libname.ver~
10089 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10090 fi
10091 ;;
10092 esac
10093 else
10094 ld_shlibs=no
10095 fi
10096 ;;
10097
10098 netbsd*)
10099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10101 wlarc=
10102 else
10103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 fi
10106 ;;
10107
10108 solaris*)
10109 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10110 ld_shlibs=no
10111 cat <<_LT_EOF 1>&2
10112
10113 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10114 *** create shared libraries on Solaris systems. Therefore, libtool
10115 *** is disabling shared libraries support. We urge you to upgrade GNU
10116 *** binutils to release 2.9.1 or newer. Another option is to modify
10117 *** your PATH or compiler configuration so that the native linker is
10118 *** used, and then restart.
10119
10120 _LT_EOF
10121 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10124 else
10125 ld_shlibs=no
10126 fi
10127 ;;
10128
10129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10130 case `$LD -v 2>&1` in
10131 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10132 ld_shlibs=no
10133 cat <<_LT_EOF 1>&2
10134
10135 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10136 *** reliably create shared libraries on SCO systems. Therefore, libtool
10137 *** is disabling shared libraries support. We urge you to upgrade GNU
10138 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10139 *** your PATH or compiler configuration so that the native linker is
10140 *** used, and then restart.
10141
10142 _LT_EOF
10143 ;;
10144 *)
10145 # For security reasons, it is highly recommended that you always
10146 # use absolute paths for naming shared libraries, and exclude the
10147 # DT_RUNPATH tag from executables and libraries. But doing so
10148 # requires that you compile everything twice, which is a pain.
10149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153 else
10154 ld_shlibs=no
10155 fi
10156 ;;
10157 esac
10158 ;;
10159
10160 sunos4*)
10161 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10162 wlarc=
10163 hardcode_direct=yes
10164 hardcode_shlibpath_var=no
10165 ;;
10166
10167 *)
10168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10171 else
10172 ld_shlibs=no
10173 fi
10174 ;;
10175 esac
10176
10177 if test "$ld_shlibs" = no; then
10178 runpath_var=
10179 hardcode_libdir_flag_spec=
10180 export_dynamic_flag_spec=
10181 whole_archive_flag_spec=
10182 fi
10183 else
10184 # PORTME fill in a description of your system's linker (not GNU ld)
10185 case $host_os in
10186 aix3*)
10187 allow_undefined_flag=unsupported
10188 always_export_symbols=yes
10189 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'
10190 # Note: this linker hardcodes the directories in LIBPATH if there
10191 # are no directories specified by -L.
10192 hardcode_minus_L=yes
10193 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10194 # Neither direct hardcoding nor static linking is supported with a
10195 # broken collect2.
10196 hardcode_direct=unsupported
10197 fi
10198 ;;
10199
10200 aix[4-9]*)
10201 if test "$host_cpu" = ia64; then
10202 # On IA64, the linker does run time linking by default, so we don't
10203 # have to do anything special.
10204 aix_use_runtimelinking=no
10205 exp_sym_flag='-Bexport'
10206 no_entry_flag=""
10207 else
10208 # If we're using GNU nm, then we don't want the "-C" option.
10209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10210 # Also, AIX nm treats weak defined symbols like other global
10211 # defined symbols, whereas GNU nm marks them as "W".
10212 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10213 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'
10214 else
10215 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'
10216 fi
10217 aix_use_runtimelinking=no
10218
10219 # Test if we are trying to use run time linking or normal
10220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221 # need to do runtime linking.
10222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10223 for ld_flag in $LDFLAGS; do
10224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10225 aix_use_runtimelinking=yes
10226 break
10227 fi
10228 done
10229 ;;
10230 esac
10231
10232 exp_sym_flag='-bexport'
10233 no_entry_flag='-bnoentry'
10234 fi
10235
10236 # When large executables or shared objects are built, AIX ld can
10237 # have problems creating the table of contents. If linking a library
10238 # or program results in "error TOC overflow" add -mminimal-toc to
10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10241
10242 archive_cmds=''
10243 hardcode_direct=yes
10244 hardcode_direct_absolute=yes
10245 hardcode_libdir_separator=':'
10246 link_all_deplibs=yes
10247 file_list_spec='${wl}-f,'
10248
10249 if test "$GCC" = yes; then
10250 case $host_os in aix4.[012]|aix4.[012].*)
10251 # We only want to do this on AIX 4.2 and lower, the check
10252 # below for broken collect2 doesn't work under 4.3+
10253 collect2name=`${CC} -print-prog-name=collect2`
10254 if test -f "$collect2name" &&
10255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10256 then
10257 # We have reworked collect2
10258 :
10259 else
10260 # We have old collect2
10261 hardcode_direct=unsupported
10262 # It fails to find uninstalled libraries when the uninstalled
10263 # path is not listed in the libpath. Setting hardcode_minus_L
10264 # to unsupported forces relinking
10265 hardcode_minus_L=yes
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_libdir_separator=
10268 fi
10269 ;;
10270 esac
10271 shared_flag='-shared'
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag="$shared_flag "'${wl}-G'
10274 fi
10275 else
10276 # not using gcc
10277 if test "$host_cpu" = ia64; then
10278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10279 # chokes on -Wl,-G. The following line is correct:
10280 shared_flag='-G'
10281 else
10282 if test "$aix_use_runtimelinking" = yes; then
10283 shared_flag='${wl}-G'
10284 else
10285 shared_flag='${wl}-bM:SRE'
10286 fi
10287 fi
10288 fi
10289
10290 export_dynamic_flag_spec='${wl}-bexpall'
10291 # It seems that -bexpall does not export symbols beginning with
10292 # underscore (_), so it is better to generate a list of symbols to export.
10293 always_export_symbols=yes
10294 if test "$aix_use_runtimelinking" = yes; then
10295 # Warning - without using the other runtime loading flags (-brtl),
10296 # -berok will link without error, but may produce a broken library.
10297 allow_undefined_flag='-berok'
10298 # Determine the default libpath from the value encoded in an
10299 # empty executable.
10300 if test "${lt_cv_aix_libpath+set}" = set; then
10301 aix_libpath=$lt_cv_aix_libpath
10302 else
10303 if ${lt_cv_aix_libpath_+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10308
10309 int
10310 main ()
10311 {
10312
10313 ;
10314 return 0;
10315 }
10316 _ACEOF
10317 if ac_fn_c_try_link "$LINENO"; then :
10318
10319 lt_aix_libpath_sed='
10320 /Import File Strings/,/^$/ {
10321 /^0/ {
10322 s/^0 *\([^ ]*\) *$/\1/
10323 p
10324 }
10325 }'
10326 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10327 # Check for a 64-bit object if we didn't find anything.
10328 if test -z "$lt_cv_aix_libpath_"; then
10329 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10330 fi
10331 fi
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 if test -z "$lt_cv_aix_libpath_"; then
10335 lt_cv_aix_libpath_="/usr/lib:/lib"
10336 fi
10337
10338 fi
10339
10340 aix_libpath=$lt_cv_aix_libpath_
10341 fi
10342
10343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10344 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"
10345 else
10346 if test "$host_cpu" = ia64; then
10347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10348 allow_undefined_flag="-z nodefs"
10349 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"
10350 else
10351 # Determine the default libpath from the value encoded in an
10352 # empty executable.
10353 if test "${lt_cv_aix_libpath+set}" = set; then
10354 aix_libpath=$lt_cv_aix_libpath
10355 else
10356 if ${lt_cv_aix_libpath_+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361
10362 int
10363 main ()
10364 {
10365
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371
10372 lt_aix_libpath_sed='
10373 /Import File Strings/,/^$/ {
10374 /^0/ {
10375 s/^0 *\([^ ]*\) *$/\1/
10376 p
10377 }
10378 }'
10379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380 # Check for a 64-bit object if we didn't find anything.
10381 if test -z "$lt_cv_aix_libpath_"; then
10382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 fi
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 if test -z "$lt_cv_aix_libpath_"; then
10388 lt_cv_aix_libpath_="/usr/lib:/lib"
10389 fi
10390
10391 fi
10392
10393 aix_libpath=$lt_cv_aix_libpath_
10394 fi
10395
10396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10397 # Warning - without using the other run time loading flags,
10398 # -berok will link without error, but may produce a broken library.
10399 no_undefined_flag=' ${wl}-bernotok'
10400 allow_undefined_flag=' ${wl}-berok'
10401 if test "$with_gnu_ld" = yes; then
10402 # We only use this code for GNU lds that support --whole-archive.
10403 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10404 else
10405 # Exported symbols can be pulled into shared objects from archives
10406 whole_archive_flag_spec='$convenience'
10407 fi
10408 archive_cmds_need_lc=yes
10409 # This is similar to how AIX traditionally builds its shared libraries.
10410 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'
10411 fi
10412 fi
10413 ;;
10414
10415 amigaos*)
10416 case $host_cpu in
10417 powerpc)
10418 # see comment about AmigaOS4 .so support
10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420 archive_expsym_cmds=''
10421 ;;
10422 m68k)
10423 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)'
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_minus_L=yes
10426 ;;
10427 esac
10428 ;;
10429
10430 bsdi[45]*)
10431 export_dynamic_flag_spec=-rdynamic
10432 ;;
10433
10434 cygwin* | mingw* | pw32* | cegcc*)
10435 # When not using gcc, we currently assume that we are using
10436 # Microsoft Visual C++.
10437 # hardcode_libdir_flag_spec is actually meaningless, as there is
10438 # no search path for DLLs.
10439 case $cc_basename in
10440 cl*)
10441 # Native MSVC
10442 hardcode_libdir_flag_spec=' '
10443 allow_undefined_flag=unsupported
10444 always_export_symbols=yes
10445 file_list_spec='@'
10446 # Tell ltmain to make .lib files, not .a files.
10447 libext=lib
10448 # Tell ltmain to make .dll files, not .so files.
10449 shrext_cmds=".dll"
10450 # FIXME: Setting linknames here is a bad hack.
10451 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10452 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10453 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10454 else
10455 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10456 fi~
10457 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10458 linknames='
10459 # The linker will not automatically build a static lib if we build a DLL.
10460 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10461 enable_shared_with_static_runtimes=yes
10462 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10464 # Don't use ranlib
10465 old_postinstall_cmds='chmod 644 $oldlib'
10466 postlink_cmds='lt_outputfile="@OUTPUT@"~
10467 lt_tool_outputfile="@TOOL_OUTPUT@"~
10468 case $lt_outputfile in
10469 *.exe|*.EXE) ;;
10470 *)
10471 lt_outputfile="$lt_outputfile.exe"
10472 lt_tool_outputfile="$lt_tool_outputfile.exe"
10473 ;;
10474 esac~
10475 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10477 $RM "$lt_outputfile.manifest";
10478 fi'
10479 ;;
10480 *)
10481 # Assume MSVC wrapper
10482 hardcode_libdir_flag_spec=' '
10483 allow_undefined_flag=unsupported
10484 # Tell ltmain to make .lib files, not .a files.
10485 libext=lib
10486 # Tell ltmain to make .dll files, not .so files.
10487 shrext_cmds=".dll"
10488 # FIXME: Setting linknames here is a bad hack.
10489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10490 # The linker will automatically build a .lib file if we build a DLL.
10491 old_archive_from_new_cmds='true'
10492 # FIXME: Should let the user specify the lib program.
10493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10494 enable_shared_with_static_runtimes=yes
10495 ;;
10496 esac
10497 ;;
10498
10499 darwin* | rhapsody*)
10500
10501
10502 archive_cmds_need_lc=no
10503 hardcode_direct=no
10504 hardcode_automatic=yes
10505 hardcode_shlibpath_var=unsupported
10506 if test "$lt_cv_ld_force_load" = "yes"; then
10507 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\"`'
10508
10509 else
10510 whole_archive_flag_spec=''
10511 fi
10512 link_all_deplibs=yes
10513 allow_undefined_flag="$_lt_dar_allow_undefined"
10514 case $cc_basename in
10515 ifort*) _lt_dar_can_shared=yes ;;
10516 *) _lt_dar_can_shared=$GCC ;;
10517 esac
10518 if test "$_lt_dar_can_shared" = "yes"; then
10519 output_verbose_link_cmd=func_echo_all
10520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10522 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}"
10523 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}"
10524
10525 else
10526 ld_shlibs=no
10527 fi
10528
10529 ;;
10530
10531 dgux*)
10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 hardcode_libdir_flag_spec='-L$libdir'
10534 hardcode_shlibpath_var=no
10535 ;;
10536
10537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10538 # support. Future versions do this automatically, but an explicit c++rt0.o
10539 # does not break anything, and helps significantly (at the cost of a little
10540 # extra space).
10541 freebsd2.2*)
10542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10543 hardcode_libdir_flag_spec='-R$libdir'
10544 hardcode_direct=yes
10545 hardcode_shlibpath_var=no
10546 ;;
10547
10548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10549 freebsd2.*)
10550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_direct=yes
10552 hardcode_minus_L=yes
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10557 freebsd* | dragonfly*)
10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10559 hardcode_libdir_flag_spec='-R$libdir'
10560 hardcode_direct=yes
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 hpux9*)
10565 if test "$GCC" = yes; then
10566 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'
10567 else
10568 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'
10569 fi
10570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10571 hardcode_libdir_separator=:
10572 hardcode_direct=yes
10573
10574 # hardcode_minus_L: Not really in the search PATH,
10575 # but as the default location of the library.
10576 hardcode_minus_L=yes
10577 export_dynamic_flag_spec='${wl}-E'
10578 ;;
10579
10580 hpux10*)
10581 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10583 else
10584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10585 fi
10586 if test "$with_gnu_ld" = no; then
10587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
10590 hardcode_direct_absolute=yes
10591 export_dynamic_flag_spec='${wl}-E'
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10595 fi
10596 ;;
10597
10598 hpux11*)
10599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600 case $host_cpu in
10601 hppa*64*)
10602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 ;;
10604 ia64*)
10605 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 *)
10608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 esac
10611 else
10612 case $host_cpu in
10613 hppa*64*)
10614 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 ;;
10616 ia64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10618 ;;
10619 *)
10620
10621 # Older versions of the 11.00 compiler do not understand -b yet
10622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10624 $as_echo_n "checking if $CC understands -b... " >&6; }
10625 if ${lt_cv_prog_compiler__b+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 lt_cv_prog_compiler__b=no
10629 save_LDFLAGS="$LDFLAGS"
10630 LDFLAGS="$LDFLAGS -b"
10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633 # The linker can only warn and ignore the option if not recognized
10634 # So say no if there are warnings
10635 if test -s conftest.err; then
10636 # Append any errors to the config.log.
10637 cat conftest.err 1>&5
10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640 if diff conftest.exp conftest.er2 >/dev/null; then
10641 lt_cv_prog_compiler__b=yes
10642 fi
10643 else
10644 lt_cv_prog_compiler__b=yes
10645 fi
10646 fi
10647 $RM -r conftest*
10648 LDFLAGS="$save_LDFLAGS"
10649
10650 fi
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10652 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10653
10654 if test x"$lt_cv_prog_compiler__b" = xyes; then
10655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10656 else
10657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10658 fi
10659
10660 ;;
10661 esac
10662 fi
10663 if test "$with_gnu_ld" = no; then
10664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10665 hardcode_libdir_separator=:
10666
10667 case $host_cpu in
10668 hppa*64*|ia64*)
10669 hardcode_direct=no
10670 hardcode_shlibpath_var=no
10671 ;;
10672 *)
10673 hardcode_direct=yes
10674 hardcode_direct_absolute=yes
10675 export_dynamic_flag_spec='${wl}-E'
10676
10677 # hardcode_minus_L: Not really in the search PATH,
10678 # but as the default location of the library.
10679 hardcode_minus_L=yes
10680 ;;
10681 esac
10682 fi
10683 ;;
10684
10685 irix5* | irix6* | nonstopux*)
10686 if test "$GCC" = yes; then
10687 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'
10688 # Try to use the -exported_symbol ld option, if it does not
10689 # work, assume that -exports_file does not work either and
10690 # implicitly export all symbols.
10691 # This should be the same for all languages, so no per-tag cache variable.
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10693 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10694 if ${lt_cv_irix_exported_symbol+:} false; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 save_LDFLAGS="$LDFLAGS"
10698 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10701 int foo (void) { return 0; }
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 lt_cv_irix_exported_symbol=yes
10705 else
10706 lt_cv_irix_exported_symbol=no
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LDFLAGS="$save_LDFLAGS"
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10713 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10714 if test "$lt_cv_irix_exported_symbol" = yes; then
10715 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'
10716 fi
10717 else
10718 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'
10719 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'
10720 fi
10721 archive_cmds_need_lc='no'
10722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10723 hardcode_libdir_separator=:
10724 inherit_rpath=yes
10725 link_all_deplibs=yes
10726 ;;
10727
10728 netbsd*)
10729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10731 else
10732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10733 fi
10734 hardcode_libdir_flag_spec='-R$libdir'
10735 hardcode_direct=yes
10736 hardcode_shlibpath_var=no
10737 ;;
10738
10739 newsos6)
10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_direct=yes
10742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10743 hardcode_libdir_separator=:
10744 hardcode_shlibpath_var=no
10745 ;;
10746
10747 *nto* | *qnx*)
10748 ;;
10749
10750 openbsd*)
10751 if test -f /usr/libexec/ld.so; then
10752 hardcode_direct=yes
10753 hardcode_shlibpath_var=no
10754 hardcode_direct_absolute=yes
10755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10759 export_dynamic_flag_spec='${wl}-E'
10760 else
10761 case $host_os in
10762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 ;;
10766 *)
10767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10769 ;;
10770 esac
10771 fi
10772 else
10773 ld_shlibs=no
10774 fi
10775 ;;
10776
10777 os2*)
10778 hardcode_libdir_flag_spec='-L$libdir'
10779 hardcode_minus_L=yes
10780 allow_undefined_flag=unsupported
10781 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'
10782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10783 ;;
10784
10785 osf3*)
10786 if test "$GCC" = yes; then
10787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10788 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'
10789 else
10790 allow_undefined_flag=' -expect_unresolved \*'
10791 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'
10792 fi
10793 archive_cmds_need_lc='no'
10794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10795 hardcode_libdir_separator=:
10796 ;;
10797
10798 osf4* | osf5*) # as osf3* with the addition of -msym flag
10799 if test "$GCC" = yes; then
10800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10801 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'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 else
10804 allow_undefined_flag=' -expect_unresolved \*'
10805 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'
10806 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~
10807 $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'
10808
10809 # Both c and cxx compiler support -rpath directly
10810 hardcode_libdir_flag_spec='-rpath $libdir'
10811 fi
10812 archive_cmds_need_lc='no'
10813 hardcode_libdir_separator=:
10814 ;;
10815
10816 solaris*)
10817 no_undefined_flag=' -z defs'
10818 if test "$GCC" = yes; then
10819 wlarc='${wl}'
10820 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10822 $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'
10823 else
10824 case `$CC -V 2>&1` in
10825 *"Compilers 5.0"*)
10826 wlarc=''
10827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10830 ;;
10831 *)
10832 wlarc='${wl}'
10833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10836 ;;
10837 esac
10838 fi
10839 hardcode_libdir_flag_spec='-R$libdir'
10840 hardcode_shlibpath_var=no
10841 case $host_os in
10842 solaris2.[0-5] | solaris2.[0-5].*) ;;
10843 *)
10844 # The compiler driver will combine and reorder linker options,
10845 # but understands `-z linker_flag'. GCC discards it without `$wl',
10846 # but is careful enough not to reorder.
10847 # Supported since Solaris 2.6 (maybe 2.5.1?)
10848 if test "$GCC" = yes; then
10849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10850 else
10851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10852 fi
10853 ;;
10854 esac
10855 link_all_deplibs=yes
10856 ;;
10857
10858 sunos4*)
10859 if test "x$host_vendor" = xsequent; then
10860 # Use $CC to link under sequent, because it throws in some extra .o
10861 # files that make .init and .fini sections work.
10862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863 else
10864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10865 fi
10866 hardcode_libdir_flag_spec='-L$libdir'
10867 hardcode_direct=yes
10868 hardcode_minus_L=yes
10869 hardcode_shlibpath_var=no
10870 ;;
10871
10872 sysv4)
10873 case $host_vendor in
10874 sni)
10875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_direct=yes # is this really true???
10877 ;;
10878 siemens)
10879 ## LD is ld it makes a PLAMLIB
10880 ## CC just makes a GrossModule.
10881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10882 reload_cmds='$CC -r -o $output$reload_objs'
10883 hardcode_direct=no
10884 ;;
10885 motorola)
10886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10888 ;;
10889 esac
10890 runpath_var='LD_RUN_PATH'
10891 hardcode_shlibpath_var=no
10892 ;;
10893
10894 sysv4.3*)
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_shlibpath_var=no
10897 export_dynamic_flag_spec='-Bexport'
10898 ;;
10899
10900 sysv4*MP*)
10901 if test -d /usr/nec; then
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_shlibpath_var=no
10904 runpath_var=LD_RUN_PATH
10905 hardcode_runpath_var=yes
10906 ld_shlibs=yes
10907 fi
10908 ;;
10909
10910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10911 no_undefined_flag='${wl}-z,text'
10912 archive_cmds_need_lc=no
10913 hardcode_shlibpath_var=no
10914 runpath_var='LD_RUN_PATH'
10915
10916 if test "$GCC" = yes; then
10917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919 else
10920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 fi
10923 ;;
10924
10925 sysv5* | sco3.2v5* | sco5v6*)
10926 # Note: We can NOT use -z defs as we might desire, because we do not
10927 # link with -lc, and that would cause any symbols used from libc to
10928 # always be unresolved, which means just about no library would
10929 # ever link correctly. If we're not using GNU ld we use -z text
10930 # though, which does catch some bad symbols but isn't as heavy-handed
10931 # as -z defs.
10932 no_undefined_flag='${wl}-z,text'
10933 allow_undefined_flag='${wl}-z,nodefs'
10934 archive_cmds_need_lc=no
10935 hardcode_shlibpath_var=no
10936 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10937 hardcode_libdir_separator=':'
10938 link_all_deplibs=yes
10939 export_dynamic_flag_spec='${wl}-Bexport'
10940 runpath_var='LD_RUN_PATH'
10941
10942 if test "$GCC" = yes; then
10943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 else
10946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 fi
10949 ;;
10950
10951 uts4*)
10952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953 hardcode_libdir_flag_spec='-L$libdir'
10954 hardcode_shlibpath_var=no
10955 ;;
10956
10957 *)
10958 ld_shlibs=no
10959 ;;
10960 esac
10961
10962 if test x$host_vendor = xsni; then
10963 case $host in
10964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10965 export_dynamic_flag_spec='${wl}-Blargedynsym'
10966 ;;
10967 esac
10968 fi
10969 fi
10970
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10972 $as_echo "$ld_shlibs" >&6; }
10973 test "$ld_shlibs" = no && can_build_shared=no
10974
10975 with_gnu_ld=$with_gnu_ld
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991 #
10992 # Do we need to explicitly link libc?
10993 #
10994 case "x$archive_cmds_need_lc" in
10995 x|xyes)
10996 # Assume -lc should be added
10997 archive_cmds_need_lc=yes
10998
10999 if test "$enable_shared" = yes && test "$GCC" = yes; then
11000 case $archive_cmds in
11001 *'~'*)
11002 # FIXME: we may have to deal with multi-command sequences.
11003 ;;
11004 '$CC '*)
11005 # Test whether the compiler implicitly links with -lc since on some
11006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11007 # to ld, don't add -lc before -lgcc.
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11010 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11011 $as_echo_n "(cached) " >&6
11012 else
11013 $RM -r conftest*
11014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11015
11016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11017 (eval $ac_compile) 2>&5
11018 ac_status=$?
11019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020 test $ac_status = 0; } 2>conftest.err; then
11021 soname=conftest
11022 lib=conftest
11023 libobjs=conftest.$ac_objext
11024 deplibs=
11025 wl=$lt_prog_compiler_wl
11026 pic_flag=$lt_prog_compiler_pic
11027 compiler_flags=-v
11028 linker_flags=-v
11029 verstring=
11030 output_objdir=.
11031 libname=conftest
11032 lt_save_allow_undefined_flag=$allow_undefined_flag
11033 allow_undefined_flag=
11034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11036 ac_status=$?
11037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11038 test $ac_status = 0; }
11039 then
11040 lt_cv_archive_cmds_need_lc=no
11041 else
11042 lt_cv_archive_cmds_need_lc=yes
11043 fi
11044 allow_undefined_flag=$lt_save_allow_undefined_flag
11045 else
11046 cat conftest.err 1>&5
11047 fi
11048 $RM -r conftest*
11049
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11052 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11054 ;;
11055 esac
11056 fi
11057 ;;
11058 esac
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11212 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11213
11214 if test "$GCC" = yes; then
11215 case $host_os in
11216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11217 *) lt_awk_arg="/^libraries:/" ;;
11218 esac
11219 case $host_os in
11220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11221 *) lt_sed_strip_eq="s,=/,/,g" ;;
11222 esac
11223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11224 case $lt_search_path_spec in
11225 *\;*)
11226 # if the path contains ";" then we assume it to be the separator
11227 # otherwise default to the standard path separator (i.e. ":") - it is
11228 # assumed that no part of a normal pathname contains ";" but that should
11229 # okay in the real world where ";" in dirpaths is itself problematic.
11230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11231 ;;
11232 *)
11233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11234 ;;
11235 esac
11236 # Ok, now we have the path, separated by spaces, we can step through it
11237 # and add multilib dir if necessary.
11238 lt_tmp_lt_search_path_spec=
11239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11240 for lt_sys_path in $lt_search_path_spec; do
11241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11243 else
11244 test -d "$lt_sys_path" && \
11245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11246 fi
11247 done
11248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11249 BEGIN {RS=" "; FS="/|\n";} {
11250 lt_foo="";
11251 lt_count=0;
11252 for (lt_i = NF; lt_i > 0; lt_i--) {
11253 if ($lt_i != "" && $lt_i != ".") {
11254 if ($lt_i == "..") {
11255 lt_count++;
11256 } else {
11257 if (lt_count == 0) {
11258 lt_foo="/" $lt_i lt_foo;
11259 } else {
11260 lt_count--;
11261 }
11262 }
11263 }
11264 }
11265 if (lt_foo != "") { lt_freq[lt_foo]++; }
11266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11267 }'`
11268 # AWK program above erroneously prepends '/' to C:/dos/paths
11269 # for these hosts.
11270 case $host_os in
11271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11272 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11273 esac
11274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11275 else
11276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11277 fi
11278 library_names_spec=
11279 libname_spec='lib$name'
11280 soname_spec=
11281 shrext_cmds=".so"
11282 postinstall_cmds=
11283 postuninstall_cmds=
11284 finish_cmds=
11285 finish_eval=
11286 shlibpath_var=
11287 shlibpath_overrides_runpath=unknown
11288 version_type=none
11289 dynamic_linker="$host_os ld.so"
11290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11291 need_lib_prefix=unknown
11292 hardcode_into_libs=no
11293
11294 # when you set need_version to no, make sure it does not cause -set_version
11295 # flags to be left without arguments
11296 need_version=unknown
11297
11298 case $host_os in
11299 aix3*)
11300 version_type=linux # correct to gnu/linux during the next big refactor
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11302 shlibpath_var=LIBPATH
11303
11304 # AIX 3 has no versioning support, so we append a major version to the name.
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 ;;
11307
11308 aix[4-9]*)
11309 version_type=linux # correct to gnu/linux during the next big refactor
11310 need_lib_prefix=no
11311 need_version=no
11312 hardcode_into_libs=yes
11313 if test "$host_cpu" = ia64; then
11314 # AIX 5 supports IA64
11315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 else
11318 # With GCC up to 2.95.x, collect2 would create an import file
11319 # for dependence libraries. The import file would start with
11320 # the line `#! .'. This would cause the generated library to
11321 # depend on `.', always an invalid library. This was fixed in
11322 # development snapshots of GCC prior to 3.0.
11323 case $host_os in
11324 aix4 | aix4.[01] | aix4.[01].*)
11325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11326 echo ' yes '
11327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11328 :
11329 else
11330 can_build_shared=no
11331 fi
11332 ;;
11333 esac
11334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11335 # soname into executable. Probably we can add versioning support to
11336 # collect2, so additional links can be useful in future.
11337 if test "$aix_use_runtimelinking" = yes; then
11338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11339 # instead of lib<name>.a to let people know that these are not
11340 # typical AIX shared libraries.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 else
11343 # We preserve .a as extension for shared libraries through AIX4.2
11344 # and later when we are not doing run time linking.
11345 library_names_spec='${libname}${release}.a $libname.a'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 fi
11348 shlibpath_var=LIBPATH
11349 fi
11350 ;;
11351
11352 amigaos*)
11353 case $host_cpu in
11354 powerpc)
11355 # Since July 2007 AmigaOS4 officially supports .so libraries.
11356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 ;;
11359 m68k)
11360 library_names_spec='$libname.ixlibrary $libname.a'
11361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11362 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'
11363 ;;
11364 esac
11365 ;;
11366
11367 beos*)
11368 library_names_spec='${libname}${shared_ext}'
11369 dynamic_linker="$host_os ld.so"
11370 shlibpath_var=LIBRARY_PATH
11371 ;;
11372
11373 bsdi[45]*)
11374 version_type=linux # correct to gnu/linux during the next big refactor
11375 need_version=no
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11382 # the default ld.so.conf also contains /usr/contrib/lib and
11383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11384 # libtool to hard-code these into programs
11385 ;;
11386
11387 cygwin* | mingw* | pw32* | cegcc*)
11388 version_type=windows
11389 shrext_cmds=".dll"
11390 need_version=no
11391 need_lib_prefix=no
11392
11393 case $GCC,$cc_basename in
11394 yes,*)
11395 # gcc
11396 library_names_spec='$libname.dll.a'
11397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11398 postinstall_cmds='base_file=`basename \${file}`~
11399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11400 dldir=$destdir/`dirname \$dlpath`~
11401 test -d \$dldir || mkdir -p \$dldir~
11402 $install_prog $dir/$dlname \$dldir/$dlname~
11403 chmod a+x \$dldir/$dlname~
11404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11406 fi'
11407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11408 dlpath=$dir/\$dldll~
11409 $RM \$dlpath'
11410 shlibpath_overrides_runpath=yes
11411
11412 case $host_os in
11413 cygwin*)
11414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11416
11417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11418 ;;
11419 mingw* | cegcc*)
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 ;;
11423 pw32*)
11424 # pw32 DLLs use 'pw' prefix rather than 'lib'
11425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 ;;
11427 esac
11428 dynamic_linker='Win32 ld.exe'
11429 ;;
11430
11431 *,cl*)
11432 # Native MSVC
11433 libname_spec='$name'
11434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435 library_names_spec='${libname}.dll.lib'
11436
11437 case $build_os in
11438 mingw*)
11439 sys_lib_search_path_spec=
11440 lt_save_ifs=$IFS
11441 IFS=';'
11442 for lt_path in $LIB
11443 do
11444 IFS=$lt_save_ifs
11445 # Let DOS variable expansion print the short 8.3 style file name.
11446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11448 done
11449 IFS=$lt_save_ifs
11450 # Convert to MSYS style.
11451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11452 ;;
11453 cygwin*)
11454 # Convert to unix form, then to dos form, then back to unix form
11455 # but this time dos style (no spaces!) so that the unix form looks
11456 # like /cygdrive/c/PROGRA~1:/cygdr...
11457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11460 ;;
11461 *)
11462 sys_lib_search_path_spec="$LIB"
11463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11464 # It is most probably a Windows format PATH.
11465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11466 else
11467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11468 fi
11469 # FIXME: find the short name or the path components, as spaces are
11470 # common. (e.g. "Program Files" -> "PROGRA~1")
11471 ;;
11472 esac
11473
11474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11475 postinstall_cmds='base_file=`basename \${file}`~
11476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11477 dldir=$destdir/`dirname \$dlpath`~
11478 test -d \$dldir || mkdir -p \$dldir~
11479 $install_prog $dir/$dlname \$dldir/$dlname'
11480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481 dlpath=$dir/\$dldll~
11482 $RM \$dlpath'
11483 shlibpath_overrides_runpath=yes
11484 dynamic_linker='Win32 link.exe'
11485 ;;
11486
11487 *)
11488 # Assume MSVC wrapper
11489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11490 dynamic_linker='Win32 ld.exe'
11491 ;;
11492 esac
11493 # FIXME: first we should search . and the directory the executable is in
11494 shlibpath_var=PATH
11495 ;;
11496
11497 darwin* | rhapsody*)
11498 dynamic_linker="$host_os dyld"
11499 version_type=darwin
11500 need_lib_prefix=no
11501 need_version=no
11502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11503 soname_spec='${libname}${release}${major}$shared_ext'
11504 shlibpath_overrides_runpath=yes
11505 shlibpath_var=DYLD_LIBRARY_PATH
11506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11507
11508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11510 ;;
11511
11512 dgux*)
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 ;;
11520
11521 freebsd* | dragonfly*)
11522 # DragonFly does not have aout. When/if they implement a new
11523 # versioning mechanism, adjust this.
11524 if test -x /usr/bin/objformat; then
11525 objformat=`/usr/bin/objformat`
11526 else
11527 case $host_os in
11528 freebsd[23].*) objformat=aout ;;
11529 *) objformat=elf ;;
11530 esac
11531 fi
11532 version_type=freebsd-$objformat
11533 case $version_type in
11534 freebsd-elf*)
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11536 need_version=no
11537 need_lib_prefix=no
11538 ;;
11539 freebsd-*)
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11541 need_version=yes
11542 ;;
11543 esac
11544 shlibpath_var=LD_LIBRARY_PATH
11545 case $host_os in
11546 freebsd2.*)
11547 shlibpath_overrides_runpath=yes
11548 ;;
11549 freebsd3.[01]* | freebsdelf3.[01]*)
11550 shlibpath_overrides_runpath=yes
11551 hardcode_into_libs=yes
11552 ;;
11553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11555 shlibpath_overrides_runpath=no
11556 hardcode_into_libs=yes
11557 ;;
11558 *) # from 4.6 on, and DragonFly
11559 shlibpath_overrides_runpath=yes
11560 hardcode_into_libs=yes
11561 ;;
11562 esac
11563 ;;
11564
11565 gnu*)
11566 version_type=linux # correct to gnu/linux during the next big refactor
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11574 ;;
11575
11576 haiku*)
11577 version_type=linux # correct to gnu/linux during the next big refactor
11578 need_lib_prefix=no
11579 need_version=no
11580 dynamic_linker="$host_os runtime_loader"
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11586 hardcode_into_libs=yes
11587 ;;
11588
11589 hpux9* | hpux10* | hpux11*)
11590 # Give a soname corresponding to the major version so that dld.sl refuses to
11591 # link against other versions.
11592 version_type=sunos
11593 need_lib_prefix=no
11594 need_version=no
11595 case $host_cpu in
11596 ia64*)
11597 shrext_cmds='.so'
11598 hardcode_into_libs=yes
11599 dynamic_linker="$host_os dld.so"
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 if test "X$HPUX_IA64_MODE" = X32; then
11605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11606 else
11607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11608 fi
11609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11610 ;;
11611 hppa*64*)
11612 shrext_cmds='.sl'
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 ;;
11622 *)
11623 shrext_cmds='.sl'
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=SHLIB_PATH
11626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 ;;
11630 esac
11631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11632 postinstall_cmds='chmod 555 $lib'
11633 # or fails outright, so override atomically:
11634 install_override_mode=555
11635 ;;
11636
11637 interix[3-9]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 ;;
11648
11649 irix5* | irix6* | nonstopux*)
11650 case $host_os in
11651 nonstopux*) version_type=nonstopux ;;
11652 *)
11653 if test "$lt_cv_prog_gnu_ld" = yes; then
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 else
11656 version_type=irix
11657 fi ;;
11658 esac
11659 need_lib_prefix=no
11660 need_version=no
11661 soname_spec='${libname}${release}${shared_ext}$major'
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11663 case $host_os in
11664 irix5* | nonstopux*)
11665 libsuff= shlibsuff=
11666 ;;
11667 *)
11668 case $LD in # libtool.m4 will add one of these switches to LD
11669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670 libsuff= shlibsuff= libmagic=32-bit;;
11671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672 libsuff=32 shlibsuff=N32 libmagic=N32;;
11673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675 *) libsuff= shlibsuff= libmagic=never-match;;
11676 esac
11677 ;;
11678 esac
11679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11683 hardcode_into_libs=yes
11684 ;;
11685
11686 # No shared lib support for Linux oldld, aout, or coff.
11687 linux*oldld* | linux*aout* | linux*coff*)
11688 dynamic_linker=no
11689 ;;
11690
11691 # This must be glibc/ELF.
11692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11693 version_type=linux # correct to gnu/linux during the next big refactor
11694 need_lib_prefix=no
11695 need_version=no
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=no
11701
11702 # Some binutils ld are patched to set DT_RUNPATH
11703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 lt_cv_shlibpath_overrides_runpath=no
11707 save_LDFLAGS=$LDFLAGS
11708 save_libdir=$libdir
11709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713
11714 int
11715 main ()
11716 {
11717
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_c_try_link "$LINENO"; then :
11723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11724 lt_cv_shlibpath_overrides_runpath=yes
11725 fi
11726 fi
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LDFLAGS=$save_LDFLAGS
11730 libdir=$save_libdir
11731
11732 fi
11733
11734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11735
11736 # This implies no fast_install, which is unacceptable.
11737 # Some rework will be needed to allow for fast_install
11738 # before this can be enabled.
11739 hardcode_into_libs=yes
11740
11741 # Append ld.so.conf contents to the search path
11742 if test -f /etc/ld.so.conf; then
11743 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' ' '`
11744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11745 fi
11746
11747 # We used to test for /lib/ld.so.1 and disable shared libraries on
11748 # powerpc, because MkLinux only supported shared libraries with the
11749 # GNU dynamic linker. Since this was broken with cross compilers,
11750 # most powerpc-linux boxes support dynamic linking these days and
11751 # people can always --disable-shared, the test was removed, and we
11752 # assume the GNU/Linux dynamic linker is in use.
11753 dynamic_linker='GNU/Linux ld.so'
11754 ;;
11755
11756 netbsd*)
11757 version_type=sunos
11758 need_lib_prefix=no
11759 need_version=no
11760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11763 dynamic_linker='NetBSD (a.out) ld.so'
11764 else
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 dynamic_linker='NetBSD ld.elf_so'
11768 fi
11769 shlibpath_var=LD_LIBRARY_PATH
11770 shlibpath_overrides_runpath=yes
11771 hardcode_into_libs=yes
11772 ;;
11773
11774 newsos6)
11775 version_type=linux # correct to gnu/linux during the next big refactor
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=yes
11779 ;;
11780
11781 *nto* | *qnx*)
11782 version_type=qnx
11783 need_lib_prefix=no
11784 need_version=no
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11790 dynamic_linker='ldqnx.so'
11791 ;;
11792
11793 openbsd*)
11794 version_type=sunos
11795 sys_lib_dlsearch_path_spec="/usr/lib"
11796 need_lib_prefix=no
11797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11798 case $host_os in
11799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11800 *) need_version=no ;;
11801 esac
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11806 case $host_os in
11807 openbsd2.[89] | openbsd2.[89].*)
11808 shlibpath_overrides_runpath=no
11809 ;;
11810 *)
11811 shlibpath_overrides_runpath=yes
11812 ;;
11813 esac
11814 else
11815 shlibpath_overrides_runpath=yes
11816 fi
11817 ;;
11818
11819 os2*)
11820 libname_spec='$name'
11821 shrext_cmds=".dll"
11822 need_lib_prefix=no
11823 library_names_spec='$libname${shared_ext} $libname.a'
11824 dynamic_linker='OS/2 ld.exe'
11825 shlibpath_var=LIBPATH
11826 ;;
11827
11828 osf3* | osf4* | osf5*)
11829 version_type=osf
11830 need_lib_prefix=no
11831 need_version=no
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11837 ;;
11838
11839 rdos*)
11840 dynamic_linker=no
11841 ;;
11842
11843 solaris*)
11844 version_type=linux # correct to gnu/linux during the next big refactor
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 shlibpath_overrides_runpath=yes
11851 hardcode_into_libs=yes
11852 # ldd complains unless libraries are executable
11853 postinstall_cmds='chmod +x $lib'
11854 ;;
11855
11856 sunos4*)
11857 version_type=sunos
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath=yes
11862 if test "$with_gnu_ld" = yes; then
11863 need_lib_prefix=no
11864 fi
11865 need_version=yes
11866 ;;
11867
11868 sysv4 | sysv4.3*)
11869 version_type=linux # correct to gnu/linux during the next big refactor
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 case $host_vendor in
11874 sni)
11875 shlibpath_overrides_runpath=no
11876 need_lib_prefix=no
11877 runpath_var=LD_RUN_PATH
11878 ;;
11879 siemens)
11880 need_lib_prefix=no
11881 ;;
11882 motorola)
11883 need_lib_prefix=no
11884 need_version=no
11885 shlibpath_overrides_runpath=no
11886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11887 ;;
11888 esac
11889 ;;
11890
11891 sysv4*MP*)
11892 if test -d /usr/nec ;then
11893 version_type=linux # correct to gnu/linux during the next big refactor
11894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11895 soname_spec='$libname${shared_ext}.$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 fi
11898 ;;
11899
11900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11901 version_type=freebsd-elf
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=yes
11908 hardcode_into_libs=yes
11909 if test "$with_gnu_ld" = yes; then
11910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11911 else
11912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11913 case $host_os in
11914 sco3.2v5*)
11915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11916 ;;
11917 esac
11918 fi
11919 sys_lib_dlsearch_path_spec='/usr/lib'
11920 ;;
11921
11922 tpf*)
11923 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11924 version_type=linux # correct to gnu/linux during the next big refactor
11925 need_lib_prefix=no
11926 need_version=no
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=no
11930 hardcode_into_libs=yes
11931 ;;
11932
11933 uts4*)
11934 version_type=linux # correct to gnu/linux during the next big refactor
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 ;;
11939
11940 *)
11941 dynamic_linker=no
11942 ;;
11943 esac
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11945 $as_echo "$dynamic_linker" >&6; }
11946 test "$dynamic_linker" = no && can_build_shared=no
11947
11948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11949 if test "$GCC" = yes; then
11950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11951 fi
11952
11953 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11954 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11955 fi
11956 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11957 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11958 fi
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12053 hardcode_action=
12054 if test -n "$hardcode_libdir_flag_spec" ||
12055 test -n "$runpath_var" ||
12056 test "X$hardcode_automatic" = "Xyes" ; then
12057
12058 # We can hardcode non-existent directories.
12059 if test "$hardcode_direct" != no &&
12060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12061 # have to relink, otherwise we might link with an installed library
12062 # when we should be linking with a yet-to-be-installed one
12063 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12064 test "$hardcode_minus_L" != no; then
12065 # Linking always hardcodes the temporary library directory.
12066 hardcode_action=relink
12067 else
12068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12069 hardcode_action=immediate
12070 fi
12071 else
12072 # We cannot hardcode anything, or else we can only hardcode existing
12073 # directories.
12074 hardcode_action=unsupported
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12077 $as_echo "$hardcode_action" >&6; }
12078
12079 if test "$hardcode_action" = relink ||
12080 test "$inherit_rpath" = yes; then
12081 # Fast installation is not supported
12082 enable_fast_install=no
12083 elif test "$shlibpath_overrides_runpath" = yes ||
12084 test "$enable_shared" = no; then
12085 # Fast installation is not necessary
12086 enable_fast_install=needless
12087 fi
12088
12089
12090
12091
12092
12093
12094 if test "x$enable_dlopen" != xyes; then
12095 enable_dlopen=unknown
12096 enable_dlopen_self=unknown
12097 enable_dlopen_self_static=unknown
12098 else
12099 lt_cv_dlopen=no
12100 lt_cv_dlopen_libs=
12101
12102 case $host_os in
12103 beos*)
12104 lt_cv_dlopen="load_add_on"
12105 lt_cv_dlopen_libs=
12106 lt_cv_dlopen_self=yes
12107 ;;
12108
12109 mingw* | pw32* | cegcc*)
12110 lt_cv_dlopen="LoadLibrary"
12111 lt_cv_dlopen_libs=
12112 ;;
12113
12114 cygwin*)
12115 lt_cv_dlopen="dlopen"
12116 lt_cv_dlopen_libs=
12117 ;;
12118
12119 darwin*)
12120 # if libdl is installed we need to link against it
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12122 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12123 if ${ac_cv_lib_dl_dlopen+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-ldl $LIBS"
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 char dlopen ();
12138 int
12139 main ()
12140 {
12141 return dlopen ();
12142 ;
12143 return 0;
12144 }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 ac_cv_lib_dl_dlopen=yes
12148 else
12149 ac_cv_lib_dl_dlopen=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12156 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12157 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12159 else
12160
12161 lt_cv_dlopen="dyld"
12162 lt_cv_dlopen_libs=
12163 lt_cv_dlopen_self=yes
12164
12165 fi
12166
12167 ;;
12168
12169 *)
12170 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12171 if test "x$ac_cv_func_shl_load" = xyes; then :
12172 lt_cv_dlopen="shl_load"
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12175 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12176 if ${ac_cv_lib_dld_shl_load+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldld $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char shl_load ();
12191 int
12192 main ()
12193 {
12194 return shl_load ();
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_dld_shl_load=yes
12201 else
12202 ac_cv_lib_dld_shl_load=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12209 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12210 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12211 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12212 else
12213 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12214 if test "x$ac_cv_func_dlopen" = xyes; then :
12215 lt_cv_dlopen="dlopen"
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12219 if ${ac_cv_lib_dl_dlopen+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-ldl $LIBS"
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char dlopen ();
12234 int
12235 main ()
12236 {
12237 return dlopen ();
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_dl_dlopen=yes
12244 else
12245 ac_cv_lib_dl_dlopen=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12253 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12257 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12258 if ${ac_cv_lib_svld_dlopen+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lsvld $LIBS"
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char dlopen ();
12273 int
12274 main ()
12275 {
12276 return dlopen ();
12277 ;
12278 return 0;
12279 }
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"; then :
12282 ac_cv_lib_svld_dlopen=yes
12283 else
12284 ac_cv_lib_svld_dlopen=no
12285 fi
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12289 fi
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12291 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12292 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12296 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12297 if ${ac_cv_lib_dld_dld_link+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-ldld $LIBS"
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304
12305 /* Override any GCC internal prototype to avoid an error.
12306 Use char because int might match the return type of a GCC
12307 builtin and then its argument prototype would still apply. */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 char dld_link ();
12312 int
12313 main ()
12314 {
12315 return dld_link ();
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 if ac_fn_c_try_link "$LINENO"; then :
12321 ac_cv_lib_dld_dld_link=yes
12322 else
12323 ac_cv_lib_dld_dld_link=no
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12330 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12331 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12332 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12333 fi
12334
12335
12336 fi
12337
12338
12339 fi
12340
12341
12342 fi
12343
12344
12345 fi
12346
12347
12348 fi
12349
12350 ;;
12351 esac
12352
12353 if test "x$lt_cv_dlopen" != xno; then
12354 enable_dlopen=yes
12355 else
12356 enable_dlopen=no
12357 fi
12358
12359 case $lt_cv_dlopen in
12360 dlopen)
12361 save_CPPFLAGS="$CPPFLAGS"
12362 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12363
12364 save_LDFLAGS="$LDFLAGS"
12365 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12366
12367 save_LIBS="$LIBS"
12368 LIBS="$lt_cv_dlopen_libs $LIBS"
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12371 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12372 if ${lt_cv_dlopen_self+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 if test "$cross_compiling" = yes; then :
12376 lt_cv_dlopen_self=cross
12377 else
12378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12379 lt_status=$lt_dlunknown
12380 cat > conftest.$ac_ext <<_LT_EOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383
12384 #if HAVE_DLFCN_H
12385 #include <dlfcn.h>
12386 #endif
12387
12388 #include <stdio.h>
12389
12390 #ifdef RTLD_GLOBAL
12391 # define LT_DLGLOBAL RTLD_GLOBAL
12392 #else
12393 # ifdef DL_GLOBAL
12394 # define LT_DLGLOBAL DL_GLOBAL
12395 # else
12396 # define LT_DLGLOBAL 0
12397 # endif
12398 #endif
12399
12400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12401 find out it does not work in some platform. */
12402 #ifndef LT_DLLAZY_OR_NOW
12403 # ifdef RTLD_LAZY
12404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12405 # else
12406 # ifdef DL_LAZY
12407 # define LT_DLLAZY_OR_NOW DL_LAZY
12408 # else
12409 # ifdef RTLD_NOW
12410 # define LT_DLLAZY_OR_NOW RTLD_NOW
12411 # else
12412 # ifdef DL_NOW
12413 # define LT_DLLAZY_OR_NOW DL_NOW
12414 # else
12415 # define LT_DLLAZY_OR_NOW 0
12416 # endif
12417 # endif
12418 # endif
12419 # endif
12420 #endif
12421
12422 /* When -fvisbility=hidden is used, assume the code has been annotated
12423 correspondingly for the symbols needed. */
12424 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12425 int fnord () __attribute__((visibility("default")));
12426 #endif
12427
12428 int fnord () { return 42; }
12429 int main ()
12430 {
12431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432 int status = $lt_dlunknown;
12433
12434 if (self)
12435 {
12436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12437 else
12438 {
12439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12440 else puts (dlerror ());
12441 }
12442 /* dlclose (self); */
12443 }
12444 else
12445 puts (dlerror ());
12446
12447 return status;
12448 }
12449 _LT_EOF
12450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12451 (eval $ac_link) 2>&5
12452 ac_status=$?
12453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12454 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12455 (./conftest; exit; ) >&5 2>/dev/null
12456 lt_status=$?
12457 case x$lt_status in
12458 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12459 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12460 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12461 esac
12462 else :
12463 # compilation failed
12464 lt_cv_dlopen_self=no
12465 fi
12466 fi
12467 rm -fr conftest*
12468
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12472 $as_echo "$lt_cv_dlopen_self" >&6; }
12473
12474 if test "x$lt_cv_dlopen_self" = xyes; then
12475 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12477 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12478 if ${lt_cv_dlopen_self_static+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 if test "$cross_compiling" = yes; then :
12482 lt_cv_dlopen_self_static=cross
12483 else
12484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12485 lt_status=$lt_dlunknown
12486 cat > conftest.$ac_ext <<_LT_EOF
12487 #line $LINENO "configure"
12488 #include "confdefs.h"
12489
12490 #if HAVE_DLFCN_H
12491 #include <dlfcn.h>
12492 #endif
12493
12494 #include <stdio.h>
12495
12496 #ifdef RTLD_GLOBAL
12497 # define LT_DLGLOBAL RTLD_GLOBAL
12498 #else
12499 # ifdef DL_GLOBAL
12500 # define LT_DLGLOBAL DL_GLOBAL
12501 # else
12502 # define LT_DLGLOBAL 0
12503 # endif
12504 #endif
12505
12506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12507 find out it does not work in some platform. */
12508 #ifndef LT_DLLAZY_OR_NOW
12509 # ifdef RTLD_LAZY
12510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12511 # else
12512 # ifdef DL_LAZY
12513 # define LT_DLLAZY_OR_NOW DL_LAZY
12514 # else
12515 # ifdef RTLD_NOW
12516 # define LT_DLLAZY_OR_NOW RTLD_NOW
12517 # else
12518 # ifdef DL_NOW
12519 # define LT_DLLAZY_OR_NOW DL_NOW
12520 # else
12521 # define LT_DLLAZY_OR_NOW 0
12522 # endif
12523 # endif
12524 # endif
12525 # endif
12526 #endif
12527
12528 /* When -fvisbility=hidden is used, assume the code has been annotated
12529 correspondingly for the symbols needed. */
12530 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12531 int fnord () __attribute__((visibility("default")));
12532 #endif
12533
12534 int fnord () { return 42; }
12535 int main ()
12536 {
12537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12538 int status = $lt_dlunknown;
12539
12540 if (self)
12541 {
12542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12543 else
12544 {
12545 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12546 else puts (dlerror ());
12547 }
12548 /* dlclose (self); */
12549 }
12550 else
12551 puts (dlerror ());
12552
12553 return status;
12554 }
12555 _LT_EOF
12556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12557 (eval $ac_link) 2>&5
12558 ac_status=$?
12559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12560 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12561 (./conftest; exit; ) >&5 2>/dev/null
12562 lt_status=$?
12563 case x$lt_status in
12564 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12565 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12566 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12567 esac
12568 else :
12569 # compilation failed
12570 lt_cv_dlopen_self_static=no
12571 fi
12572 fi
12573 rm -fr conftest*
12574
12575
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12578 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12579 fi
12580
12581 CPPFLAGS="$save_CPPFLAGS"
12582 LDFLAGS="$save_LDFLAGS"
12583 LIBS="$save_LIBS"
12584 ;;
12585 esac
12586
12587 case $lt_cv_dlopen_self in
12588 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12589 *) enable_dlopen_self=unknown ;;
12590 esac
12591
12592 case $lt_cv_dlopen_self_static in
12593 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12594 *) enable_dlopen_self_static=unknown ;;
12595 esac
12596 fi
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614 striplib=
12615 old_striplib=
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12617 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12618 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12619 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12620 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623 else
12624 # FIXME - insert some real tests, host_os isn't really good enough
12625 case $host_os in
12626 darwin*)
12627 if test -n "$STRIP" ; then
12628 striplib="$STRIP -x"
12629 old_striplib="$STRIP -S"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12631 $as_echo "yes" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636 ;;
12637 *)
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640 ;;
12641 esac
12642 fi
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655 # Report which library types will actually be built
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12657 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12659 $as_echo "$can_build_shared" >&6; }
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12662 $as_echo_n "checking whether to build shared libraries... " >&6; }
12663 test "$can_build_shared" = "no" && enable_shared=no
12664
12665 # On AIX, shared libraries and static libraries use the same namespace, and
12666 # are all built from PIC.
12667 case $host_os in
12668 aix3*)
12669 test "$enable_shared" = yes && enable_static=no
12670 if test -n "$RANLIB"; then
12671 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12672 postinstall_cmds='$RANLIB $lib'
12673 fi
12674 ;;
12675
12676 aix[4-9]*)
12677 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12678 test "$enable_shared" = yes && enable_static=no
12679 fi
12680 ;;
12681 esac
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12683 $as_echo "$enable_shared" >&6; }
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12686 $as_echo_n "checking whether to build static libraries... " >&6; }
12687 # Make sure either enable_shared or enable_static is yes.
12688 test "$enable_shared" = yes || enable_static=yes
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12690 $as_echo "$enable_static" >&6; }
12691
12692
12693
12694
12695 fi
12696 ac_ext=c
12697 ac_cpp='$CPP $CPPFLAGS'
12698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702 CC="$lt_save_CC"
12703
12704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12706 (test "X$CXX" != "Xg++"))) ; then
12707 ac_ext=cpp
12708 ac_cpp='$CXXCPP $CPPFLAGS'
12709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12713 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12714 if test -z "$CXXCPP"; then
12715 if ${ac_cv_prog_CXXCPP+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 # Double quotes because CXXCPP needs to be expanded
12719 for CXXCPP in "$CXX -E" "/lib/cpp"
12720 do
12721 ac_preproc_ok=false
12722 for ac_cxx_preproc_warn_flag in '' yes
12723 do
12724 # Use a header file that comes with gcc, so configuring glibc
12725 # with a fresh cross-compiler works.
12726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 # <limits.h> exists even on freestanding compilers.
12728 # On the NeXT, cc -E runs the code through the compiler's parser,
12729 # not just through cpp. "Syntax error" is here to catch this case.
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #ifdef __STDC__
12733 # include <limits.h>
12734 #else
12735 # include <assert.h>
12736 #endif
12737 Syntax error
12738 _ACEOF
12739 if ac_fn_cxx_try_cpp "$LINENO"; then :
12740
12741 else
12742 # Broken: fails on valid input.
12743 continue
12744 fi
12745 rm -f conftest.err conftest.i conftest.$ac_ext
12746
12747 # OK, works on sane cases. Now check whether nonexistent headers
12748 # can be detected and how.
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 #include <ac_nonexistent.h>
12752 _ACEOF
12753 if ac_fn_cxx_try_cpp "$LINENO"; then :
12754 # Broken: success on invalid input.
12755 continue
12756 else
12757 # Passes both tests.
12758 ac_preproc_ok=:
12759 break
12760 fi
12761 rm -f conftest.err conftest.i conftest.$ac_ext
12762
12763 done
12764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12765 rm -f conftest.i conftest.err conftest.$ac_ext
12766 if $ac_preproc_ok; then :
12767 break
12768 fi
12769
12770 done
12771 ac_cv_prog_CXXCPP=$CXXCPP
12772
12773 fi
12774 CXXCPP=$ac_cv_prog_CXXCPP
12775 else
12776 ac_cv_prog_CXXCPP=$CXXCPP
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12779 $as_echo "$CXXCPP" >&6; }
12780 ac_preproc_ok=false
12781 for ac_cxx_preproc_warn_flag in '' yes
12782 do
12783 # Use a header file that comes with gcc, so configuring glibc
12784 # with a fresh cross-compiler works.
12785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 # <limits.h> exists even on freestanding compilers.
12787 # On the NeXT, cc -E runs the code through the compiler's parser,
12788 # not just through cpp. "Syntax error" is here to catch this case.
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791 #ifdef __STDC__
12792 # include <limits.h>
12793 #else
12794 # include <assert.h>
12795 #endif
12796 Syntax error
12797 _ACEOF
12798 if ac_fn_cxx_try_cpp "$LINENO"; then :
12799
12800 else
12801 # Broken: fails on valid input.
12802 continue
12803 fi
12804 rm -f conftest.err conftest.i conftest.$ac_ext
12805
12806 # OK, works on sane cases. Now check whether nonexistent headers
12807 # can be detected and how.
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <ac_nonexistent.h>
12811 _ACEOF
12812 if ac_fn_cxx_try_cpp "$LINENO"; then :
12813 # Broken: success on invalid input.
12814 continue
12815 else
12816 # Passes both tests.
12817 ac_preproc_ok=:
12818 break
12819 fi
12820 rm -f conftest.err conftest.i conftest.$ac_ext
12821
12822 done
12823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12824 rm -f conftest.i conftest.err conftest.$ac_ext
12825 if $ac_preproc_ok; then :
12826
12827 else
12828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12830 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12831 See \`config.log' for more details" "$LINENO" 5; }
12832 fi
12833
12834 ac_ext=c
12835 ac_cpp='$CPP $CPPFLAGS'
12836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12839
12840 else
12841 _lt_caught_CXX_error=yes
12842 fi
12843
12844 ac_ext=cpp
12845 ac_cpp='$CXXCPP $CPPFLAGS'
12846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12849
12850 archive_cmds_need_lc_CXX=no
12851 allow_undefined_flag_CXX=
12852 always_export_symbols_CXX=no
12853 archive_expsym_cmds_CXX=
12854 compiler_needs_object_CXX=no
12855 export_dynamic_flag_spec_CXX=
12856 hardcode_direct_CXX=no
12857 hardcode_direct_absolute_CXX=no
12858 hardcode_libdir_flag_spec_CXX=
12859 hardcode_libdir_separator_CXX=
12860 hardcode_minus_L_CXX=no
12861 hardcode_shlibpath_var_CXX=unsupported
12862 hardcode_automatic_CXX=no
12863 inherit_rpath_CXX=no
12864 module_cmds_CXX=
12865 module_expsym_cmds_CXX=
12866 link_all_deplibs_CXX=unknown
12867 old_archive_cmds_CXX=$old_archive_cmds
12868 reload_flag_CXX=$reload_flag
12869 reload_cmds_CXX=$reload_cmds
12870 no_undefined_flag_CXX=
12871 whole_archive_flag_spec_CXX=
12872 enable_shared_with_static_runtimes_CXX=no
12873
12874 # Source file extension for C++ test sources.
12875 ac_ext=cpp
12876
12877 # Object file extension for compiled C++ test sources.
12878 objext=o
12879 objext_CXX=$objext
12880
12881 # No sense in running all these tests if we already determined that
12882 # the CXX compiler isn't working. Some variables (like enable_shared)
12883 # are currently assumed to apply to all compilers on this platform,
12884 # and will be corrupted by setting them based on a non-working compiler.
12885 if test "$_lt_caught_CXX_error" != yes; then
12886 # Code to be used in simple compile tests
12887 lt_simple_compile_test_code="int some_variable = 0;"
12888
12889 # Code to be used in simple link tests
12890 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12891
12892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12893
12894
12895
12896
12897
12898
12899 # If no C compiler was specified, use CC.
12900 LTCC=${LTCC-"$CC"}
12901
12902 # If no C compiler flags were specified, use CFLAGS.
12903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12904
12905 # Allow CC to be a program name with arguments.
12906 compiler=$CC
12907
12908
12909 # save warnings/boilerplate of simple test code
12910 ac_outfile=conftest.$ac_objext
12911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12913 _lt_compiler_boilerplate=`cat conftest.err`
12914 $RM -r conftest*
12915
12916 ac_outfile=conftest.$ac_objext
12917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12919 _lt_linker_boilerplate=`cat conftest.err`
12920 $RM -r conftest*
12921
12922
12923 # Allow CC to be a program name with arguments.
12924 lt_save_CC=$CC
12925 lt_save_CFLAGS=$CFLAGS
12926 lt_save_LD=$LD
12927 lt_save_GCC=$GCC
12928 GCC=$GXX
12929 lt_save_with_gnu_ld=$with_gnu_ld
12930 lt_save_path_LD=$lt_cv_path_LD
12931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12933 else
12934 $as_unset lt_cv_prog_gnu_ld
12935 fi
12936 if test -n "${lt_cv_path_LDCXX+set}"; then
12937 lt_cv_path_LD=$lt_cv_path_LDCXX
12938 else
12939 $as_unset lt_cv_path_LD
12940 fi
12941 test -z "${LDCXX+set}" || LD=$LDCXX
12942 CC=${CXX-"c++"}
12943 CFLAGS=$CXXFLAGS
12944 compiler=$CC
12945 compiler_CXX=$CC
12946 for cc_temp in $compiler""; do
12947 case $cc_temp in
12948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12950 \-*) ;;
12951 *) break;;
12952 esac
12953 done
12954 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12955
12956
12957 if test -n "$compiler"; then
12958 # We don't want -fno-exception when compiling C++ code, so set the
12959 # no_builtin_flag separately
12960 if test "$GXX" = yes; then
12961 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12962 else
12963 lt_prog_compiler_no_builtin_flag_CXX=
12964 fi
12965
12966 if test "$GXX" = yes; then
12967 # Set up default GNU C++ configuration
12968
12969
12970
12971 # Check whether --with-gnu-ld was given.
12972 if test "${with_gnu_ld+set}" = set; then :
12973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12974 else
12975 with_gnu_ld=no
12976 fi
12977
12978 ac_prog=ld
12979 if test "$GCC" = yes; then
12980 # Check if gcc -print-prog-name=ld gives a path.
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12982 $as_echo_n "checking for ld used by $CC... " >&6; }
12983 case $host in
12984 *-*-mingw*)
12985 # gcc leaves a trailing carriage return which upsets mingw
12986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12987 *)
12988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12989 esac
12990 case $ac_prog in
12991 # Accept absolute paths.
12992 [\\/]* | ?:[\\/]*)
12993 re_direlt='/[^/][^/]*/\.\./'
12994 # Canonicalize the pathname of ld
12995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12998 done
12999 test -z "$LD" && LD="$ac_prog"
13000 ;;
13001 "")
13002 # If it fails, then pretend we aren't using GCC.
13003 ac_prog=ld
13004 ;;
13005 *)
13006 # If it is relative, then search for the first ld in PATH.
13007 with_gnu_ld=unknown
13008 ;;
13009 esac
13010 elif test "$with_gnu_ld" = yes; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13012 $as_echo_n "checking for GNU ld... " >&6; }
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13015 $as_echo_n "checking for non-GNU ld... " >&6; }
13016 fi
13017 if ${lt_cv_path_LD+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 if test -z "$LD"; then
13021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13022 for ac_dir in $PATH; do
13023 IFS="$lt_save_ifs"
13024 test -z "$ac_dir" && ac_dir=.
13025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13026 lt_cv_path_LD="$ac_dir/$ac_prog"
13027 # Check to see if the program is GNU ld. I'd rather use --version,
13028 # but apparently some variants of GNU ld only accept -v.
13029 # Break only if it was the GNU/non-GNU ld that we prefer.
13030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13031 *GNU* | *'with BFD'*)
13032 test "$with_gnu_ld" != no && break
13033 ;;
13034 *)
13035 test "$with_gnu_ld" != yes && break
13036 ;;
13037 esac
13038 fi
13039 done
13040 IFS="$lt_save_ifs"
13041 else
13042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13043 fi
13044 fi
13045
13046 LD="$lt_cv_path_LD"
13047 if test -n "$LD"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13049 $as_echo "$LD" >&6; }
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 fi
13054 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13056 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13057 if ${lt_cv_prog_gnu_ld+:} false; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13061 case `$LD -v 2>&1 </dev/null` in
13062 *GNU* | *'with BFD'*)
13063 lt_cv_prog_gnu_ld=yes
13064 ;;
13065 *)
13066 lt_cv_prog_gnu_ld=no
13067 ;;
13068 esac
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13071 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13072 with_gnu_ld=$lt_cv_prog_gnu_ld
13073
13074
13075
13076
13077
13078
13079
13080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13081 # archiving commands below assume that GNU ld is being used.
13082 if test "$with_gnu_ld" = yes; then
13083 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13084 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'
13085
13086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13088
13089 # If archive_cmds runs LD, not CC, wlarc should be empty
13090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13091 # investigate it a little bit more. (MM)
13092 wlarc='${wl}'
13093
13094 # ancient GNU ld didn't support --whole-archive et. al.
13095 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13096 $GREP 'no-whole-archive' > /dev/null; then
13097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13098 else
13099 whole_archive_flag_spec_CXX=
13100 fi
13101 else
13102 with_gnu_ld=no
13103 wlarc=
13104
13105 # A generic and very simple default shared library creation
13106 # command for GNU C++ for the case where it uses the native
13107 # linker, instead of GNU ld. If possible, this setting should
13108 # overridden to take advantage of the native linker features on
13109 # the platform it is being used on.
13110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13111 fi
13112
13113 # Commands to make compiler produce verbose output that lists
13114 # what "hidden" libraries, object files and flags are used when
13115 # linking a shared library.
13116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13117
13118 else
13119 GXX=no
13120 with_gnu_ld=no
13121 wlarc=
13122 fi
13123
13124 # PORTME: fill in a description of your system's C++ link characteristics
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13127 ld_shlibs_CXX=yes
13128 case $host_os in
13129 aix3*)
13130 # FIXME: insert proper C++ library support
13131 ld_shlibs_CXX=no
13132 ;;
13133 aix[4-9]*)
13134 if test "$host_cpu" = ia64; then
13135 # On IA64, the linker does run time linking by default, so we don't
13136 # have to do anything special.
13137 aix_use_runtimelinking=no
13138 exp_sym_flag='-Bexport'
13139 no_entry_flag=""
13140 else
13141 aix_use_runtimelinking=no
13142
13143 # Test if we are trying to use run time linking or normal
13144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13145 # need to do runtime linking.
13146 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13147 for ld_flag in $LDFLAGS; do
13148 case $ld_flag in
13149 *-brtl*)
13150 aix_use_runtimelinking=yes
13151 break
13152 ;;
13153 esac
13154 done
13155 ;;
13156 esac
13157
13158 exp_sym_flag='-bexport'
13159 no_entry_flag='-bnoentry'
13160 fi
13161
13162 # When large executables or shared objects are built, AIX ld can
13163 # have problems creating the table of contents. If linking a library
13164 # or program results in "error TOC overflow" add -mminimal-toc to
13165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13167
13168 archive_cmds_CXX=''
13169 hardcode_direct_CXX=yes
13170 hardcode_direct_absolute_CXX=yes
13171 hardcode_libdir_separator_CXX=':'
13172 link_all_deplibs_CXX=yes
13173 file_list_spec_CXX='${wl}-f,'
13174
13175 if test "$GXX" = yes; then
13176 case $host_os in aix4.[012]|aix4.[012].*)
13177 # We only want to do this on AIX 4.2 and lower, the check
13178 # below for broken collect2 doesn't work under 4.3+
13179 collect2name=`${CC} -print-prog-name=collect2`
13180 if test -f "$collect2name" &&
13181 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13182 then
13183 # We have reworked collect2
13184 :
13185 else
13186 # We have old collect2
13187 hardcode_direct_CXX=unsupported
13188 # It fails to find uninstalled libraries when the uninstalled
13189 # path is not listed in the libpath. Setting hardcode_minus_L
13190 # to unsupported forces relinking
13191 hardcode_minus_L_CXX=yes
13192 hardcode_libdir_flag_spec_CXX='-L$libdir'
13193 hardcode_libdir_separator_CXX=
13194 fi
13195 esac
13196 shared_flag='-shared'
13197 if test "$aix_use_runtimelinking" = yes; then
13198 shared_flag="$shared_flag "'${wl}-G'
13199 fi
13200 else
13201 # not using gcc
13202 if test "$host_cpu" = ia64; then
13203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13204 # chokes on -Wl,-G. The following line is correct:
13205 shared_flag='-G'
13206 else
13207 if test "$aix_use_runtimelinking" = yes; then
13208 shared_flag='${wl}-G'
13209 else
13210 shared_flag='${wl}-bM:SRE'
13211 fi
13212 fi
13213 fi
13214
13215 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13216 # It seems that -bexpall does not export symbols beginning with
13217 # underscore (_), so it is better to generate a list of symbols to
13218 # export.
13219 always_export_symbols_CXX=yes
13220 if test "$aix_use_runtimelinking" = yes; then
13221 # Warning - without using the other runtime loading flags (-brtl),
13222 # -berok will link without error, but may produce a broken library.
13223 allow_undefined_flag_CXX='-berok'
13224 # Determine the default libpath from the value encoded in an empty
13225 # executable.
13226 if test "${lt_cv_aix_libpath+set}" = set; then
13227 aix_libpath=$lt_cv_aix_libpath
13228 else
13229 if ${lt_cv_aix_libpath__CXX+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 int
13236 main ()
13237 {
13238
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_cxx_try_link "$LINENO"; then :
13244
13245 lt_aix_libpath_sed='
13246 /Import File Strings/,/^$/ {
13247 /^0/ {
13248 s/^0 *\([^ ]*\) *$/\1/
13249 p
13250 }
13251 }'
13252 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13253 # Check for a 64-bit object if we didn't find anything.
13254 if test -z "$lt_cv_aix_libpath__CXX"; then
13255 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13256 fi
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 if test -z "$lt_cv_aix_libpath__CXX"; then
13261 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13262 fi
13263
13264 fi
13265
13266 aix_libpath=$lt_cv_aix_libpath__CXX
13267 fi
13268
13269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13270
13271 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"
13272 else
13273 if test "$host_cpu" = ia64; then
13274 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13275 allow_undefined_flag_CXX="-z nodefs"
13276 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"
13277 else
13278 # Determine the default libpath from the value encoded in an
13279 # empty executable.
13280 if test "${lt_cv_aix_libpath+set}" = set; then
13281 aix_libpath=$lt_cv_aix_libpath
13282 else
13283 if ${lt_cv_aix_libpath__CXX+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288
13289 int
13290 main ()
13291 {
13292
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_cxx_try_link "$LINENO"; then :
13298
13299 lt_aix_libpath_sed='
13300 /Import File Strings/,/^$/ {
13301 /^0/ {
13302 s/^0 *\([^ ]*\) *$/\1/
13303 p
13304 }
13305 }'
13306 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13307 # Check for a 64-bit object if we didn't find anything.
13308 if test -z "$lt_cv_aix_libpath__CXX"; then
13309 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310 fi
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 if test -z "$lt_cv_aix_libpath__CXX"; then
13315 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13316 fi
13317
13318 fi
13319
13320 aix_libpath=$lt_cv_aix_libpath__CXX
13321 fi
13322
13323 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13324 # Warning - without using the other run time loading flags,
13325 # -berok will link without error, but may produce a broken library.
13326 no_undefined_flag_CXX=' ${wl}-bernotok'
13327 allow_undefined_flag_CXX=' ${wl}-berok'
13328 if test "$with_gnu_ld" = yes; then
13329 # We only use this code for GNU lds that support --whole-archive.
13330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13331 else
13332 # Exported symbols can be pulled into shared objects from archives
13333 whole_archive_flag_spec_CXX='$convenience'
13334 fi
13335 archive_cmds_need_lc_CXX=yes
13336 # This is similar to how AIX traditionally builds its shared
13337 # libraries.
13338 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'
13339 fi
13340 fi
13341 ;;
13342
13343 beos*)
13344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13345 allow_undefined_flag_CXX=unsupported
13346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13347 # support --undefined. This deserves some investigation. FIXME
13348 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349 else
13350 ld_shlibs_CXX=no
13351 fi
13352 ;;
13353
13354 chorus*)
13355 case $cc_basename in
13356 *)
13357 # FIXME: insert proper C++ library support
13358 ld_shlibs_CXX=no
13359 ;;
13360 esac
13361 ;;
13362
13363 cygwin* | mingw* | pw32* | cegcc*)
13364 case $GXX,$cc_basename in
13365 ,cl* | no,cl*)
13366 # Native MSVC
13367 # hardcode_libdir_flag_spec is actually meaningless, as there is
13368 # no search path for DLLs.
13369 hardcode_libdir_flag_spec_CXX=' '
13370 allow_undefined_flag_CXX=unsupported
13371 always_export_symbols_CXX=yes
13372 file_list_spec_CXX='@'
13373 # Tell ltmain to make .lib files, not .a files.
13374 libext=lib
13375 # Tell ltmain to make .dll files, not .so files.
13376 shrext_cmds=".dll"
13377 # FIXME: Setting linknames here is a bad hack.
13378 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13379 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13380 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13381 else
13382 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13383 fi~
13384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13385 linknames='
13386 # The linker will not automatically build a static lib if we build a DLL.
13387 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13388 enable_shared_with_static_runtimes_CXX=yes
13389 # Don't use ranlib
13390 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13391 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13392 lt_tool_outputfile="@TOOL_OUTPUT@"~
13393 case $lt_outputfile in
13394 *.exe|*.EXE) ;;
13395 *)
13396 lt_outputfile="$lt_outputfile.exe"
13397 lt_tool_outputfile="$lt_tool_outputfile.exe"
13398 ;;
13399 esac~
13400 func_to_tool_file "$lt_outputfile"~
13401 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13402 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13403 $RM "$lt_outputfile.manifest";
13404 fi'
13405 ;;
13406 *)
13407 # g++
13408 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13409 # as there is no search path for DLLs.
13410 hardcode_libdir_flag_spec_CXX='-L$libdir'
13411 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13412 allow_undefined_flag_CXX=unsupported
13413 always_export_symbols_CXX=no
13414 enable_shared_with_static_runtimes_CXX=yes
13415
13416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13417 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'
13418 # If the export-symbols file already is a .def file (1st line
13419 # is EXPORTS), use it as is; otherwise, prepend...
13420 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13421 cp $export_symbols $output_objdir/$soname.def;
13422 else
13423 echo EXPORTS > $output_objdir/$soname.def;
13424 cat $export_symbols >> $output_objdir/$soname.def;
13425 fi~
13426 $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'
13427 else
13428 ld_shlibs_CXX=no
13429 fi
13430 ;;
13431 esac
13432 ;;
13433 darwin* | rhapsody*)
13434
13435
13436 archive_cmds_need_lc_CXX=no
13437 hardcode_direct_CXX=no
13438 hardcode_automatic_CXX=yes
13439 hardcode_shlibpath_var_CXX=unsupported
13440 if test "$lt_cv_ld_force_load" = "yes"; then
13441 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\"`'
13442
13443 else
13444 whole_archive_flag_spec_CXX=''
13445 fi
13446 link_all_deplibs_CXX=yes
13447 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13448 case $cc_basename in
13449 ifort*) _lt_dar_can_shared=yes ;;
13450 *) _lt_dar_can_shared=$GCC ;;
13451 esac
13452 if test "$_lt_dar_can_shared" = "yes"; then
13453 output_verbose_link_cmd=func_echo_all
13454 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}"
13455 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13456 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}"
13457 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}"
13458 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13459 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}"
13460 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}"
13461 fi
13462
13463 else
13464 ld_shlibs_CXX=no
13465 fi
13466
13467 ;;
13468
13469 dgux*)
13470 case $cc_basename in
13471 ec++*)
13472 # FIXME: insert proper C++ library support
13473 ld_shlibs_CXX=no
13474 ;;
13475 ghcx*)
13476 # Green Hills C++ Compiler
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 ;;
13480 *)
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13483 ;;
13484 esac
13485 ;;
13486
13487 freebsd2.*)
13488 # C++ shared libraries reported to be fairly broken before
13489 # switch to ELF
13490 ld_shlibs_CXX=no
13491 ;;
13492
13493 freebsd-elf*)
13494 archive_cmds_need_lc_CXX=no
13495 ;;
13496
13497 freebsd* | dragonfly*)
13498 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13499 # conventions
13500 ld_shlibs_CXX=yes
13501 ;;
13502
13503 gnu*)
13504 ;;
13505
13506 haiku*)
13507 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 link_all_deplibs_CXX=yes
13509 ;;
13510
13511 hpux9*)
13512 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13513 hardcode_libdir_separator_CXX=:
13514 export_dynamic_flag_spec_CXX='${wl}-E'
13515 hardcode_direct_CXX=yes
13516 hardcode_minus_L_CXX=yes # Not in the search PATH,
13517 # but as the default
13518 # location of the library.
13519
13520 case $cc_basename in
13521 CC*)
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13524 ;;
13525 aCC*)
13526 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'
13527 # Commands to make compiler produce verbose output that lists
13528 # what "hidden" libraries, object files and flags are used when
13529 # linking a shared library.
13530 #
13531 # There doesn't appear to be a way to prevent this compiler from
13532 # explicitly linking system object files so we need to strip them
13533 # from the output so that they don't get included in the library
13534 # dependencies.
13535 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"'
13536 ;;
13537 *)
13538 if test "$GXX" = yes; then
13539 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'
13540 else
13541 # FIXME: insert proper C++ library support
13542 ld_shlibs_CXX=no
13543 fi
13544 ;;
13545 esac
13546 ;;
13547
13548 hpux10*|hpux11*)
13549 if test $with_gnu_ld = no; then
13550 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13551 hardcode_libdir_separator_CXX=:
13552
13553 case $host_cpu in
13554 hppa*64*|ia64*)
13555 ;;
13556 *)
13557 export_dynamic_flag_spec_CXX='${wl}-E'
13558 ;;
13559 esac
13560 fi
13561 case $host_cpu in
13562 hppa*64*|ia64*)
13563 hardcode_direct_CXX=no
13564 hardcode_shlibpath_var_CXX=no
13565 ;;
13566 *)
13567 hardcode_direct_CXX=yes
13568 hardcode_direct_absolute_CXX=yes
13569 hardcode_minus_L_CXX=yes # Not in the search PATH,
13570 # but as the default
13571 # location of the library.
13572 ;;
13573 esac
13574
13575 case $cc_basename in
13576 CC*)
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13579 ;;
13580 aCC*)
13581 case $host_cpu in
13582 hppa*64*)
13583 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13584 ;;
13585 ia64*)
13586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13587 ;;
13588 *)
13589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590 ;;
13591 esac
13592 # Commands to make compiler produce verbose output that lists
13593 # what "hidden" libraries, object files and flags are used when
13594 # linking a shared library.
13595 #
13596 # There doesn't appear to be a way to prevent this compiler from
13597 # explicitly linking system object files so we need to strip them
13598 # from the output so that they don't get included in the library
13599 # dependencies.
13600 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"'
13601 ;;
13602 *)
13603 if test "$GXX" = yes; then
13604 if test $with_gnu_ld = no; then
13605 case $host_cpu in
13606 hppa*64*)
13607 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13608 ;;
13609 ia64*)
13610 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611 ;;
13612 *)
13613 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'
13614 ;;
13615 esac
13616 fi
13617 else
13618 # FIXME: insert proper C++ library support
13619 ld_shlibs_CXX=no
13620 fi
13621 ;;
13622 esac
13623 ;;
13624
13625 interix[3-9]*)
13626 hardcode_direct_CXX=no
13627 hardcode_shlibpath_var_CXX=no
13628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13629 export_dynamic_flag_spec_CXX='${wl}-E'
13630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13631 # Instead, shared libraries are loaded at an image base (0x10000000 by
13632 # default) and relocated if they conflict, which is a slow very memory
13633 # consuming and fragmenting process. To avoid this, we pick a random,
13634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13636 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'
13637 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'
13638 ;;
13639 irix5* | irix6*)
13640 case $cc_basename in
13641 CC*)
13642 # SGI C++
13643 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'
13644
13645 # Archives containing C++ object files must be created using
13646 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13647 # necessary to make sure instantiated templates are included
13648 # in the archive.
13649 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13650 ;;
13651 *)
13652 if test "$GXX" = yes; then
13653 if test "$with_gnu_ld" = no; then
13654 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'
13655 else
13656 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'
13657 fi
13658 fi
13659 link_all_deplibs_CXX=yes
13660 ;;
13661 esac
13662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13663 hardcode_libdir_separator_CXX=:
13664 inherit_rpath_CXX=yes
13665 ;;
13666
13667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13668 case $cc_basename in
13669 KCC*)
13670 # Kuck and Associates, Inc. (KAI) C++ Compiler
13671
13672 # KCC will only create a shared library if the output file
13673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13674 # to its proper name (with version) after linking.
13675 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'
13676 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'
13677 # Commands to make compiler produce verbose output that lists
13678 # what "hidden" libraries, object files and flags are used when
13679 # linking a shared library.
13680 #
13681 # There doesn't appear to be a way to prevent this compiler from
13682 # explicitly linking system object files so we need to strip them
13683 # from the output so that they don't get included in the library
13684 # dependencies.
13685 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"'
13686
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13689
13690 # Archives containing C++ object files must be created using
13691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13693 ;;
13694 icpc* | ecpc* )
13695 # Intel C++
13696 with_gnu_ld=yes
13697 # version 8.0 and above of icpc choke on multiply defined symbols
13698 # if we add $predep_objects and $postdep_objects, however 7.1 and
13699 # earlier do not add the objects themselves.
13700 case `$CC -V 2>&1` in
13701 *"Version 7."*)
13702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 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'
13704 ;;
13705 *) # Version 8.0 or newer
13706 tmp_idyn=
13707 case $host_cpu in
13708 ia64*) tmp_idyn=' -i_dynamic';;
13709 esac
13710 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13711 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'
13712 ;;
13713 esac
13714 archive_cmds_need_lc_CXX=no
13715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13718 ;;
13719 pgCC* | pgcpp*)
13720 # Portland Group C++ compiler
13721 case `$CC -V` in
13722 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13723 prelink_cmds_CXX='tpldir=Template.dir~
13724 rm -rf $tpldir~
13725 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13726 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13727 old_archive_cmds_CXX='tpldir=Template.dir~
13728 rm -rf $tpldir~
13729 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13730 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13731 $RANLIB $oldlib'
13732 archive_cmds_CXX='tpldir=Template.dir~
13733 rm -rf $tpldir~
13734 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13735 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13736 archive_expsym_cmds_CXX='tpldir=Template.dir~
13737 rm -rf $tpldir~
13738 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13739 $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'
13740 ;;
13741 *) # Version 6 and above use weak symbols
13742 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13743 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'
13744 ;;
13745 esac
13746
13747 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13749 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'
13750 ;;
13751 cxx*)
13752 # Compaq C++
13753 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 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'
13755
13756 runpath_var=LD_RUN_PATH
13757 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13758 hardcode_libdir_separator_CXX=:
13759
13760 # Commands to make compiler produce verbose output that lists
13761 # what "hidden" libraries, object files and flags are used when
13762 # linking a shared library.
13763 #
13764 # There doesn't appear to be a way to prevent this compiler from
13765 # explicitly linking system object files so we need to strip them
13766 # from the output so that they don't get included in the library
13767 # dependencies.
13768 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'
13769 ;;
13770 xl* | mpixl* | bgxl*)
13771 # IBM XL 8.0 on PPC, with GNU ld
13772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13774 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775 if test "x$supports_anon_versioning" = xyes; then
13776 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13777 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13778 echo "local: *; };" >> $output_objdir/$libname.ver~
13779 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13780 fi
13781 ;;
13782 *)
13783 case `$CC -V 2>&1 | sed 5q` in
13784 *Sun\ C*)
13785 # Sun C++ 5.9
13786 no_undefined_flag_CXX=' -zdefs'
13787 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13788 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'
13789 hardcode_libdir_flag_spec_CXX='-R$libdir'
13790 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'
13791 compiler_needs_object_CXX=yes
13792
13793 # Not sure whether something based on
13794 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13795 # would be better.
13796 output_verbose_link_cmd='func_echo_all'
13797
13798 # Archives containing C++ object files must be created using
13799 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13800 # necessary to make sure instantiated templates are included
13801 # in the archive.
13802 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13803 ;;
13804 esac
13805 ;;
13806 esac
13807 ;;
13808
13809 lynxos*)
13810 # FIXME: insert proper C++ library support
13811 ld_shlibs_CXX=no
13812 ;;
13813
13814 m88k*)
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
13818
13819 mvs*)
13820 case $cc_basename in
13821 cxx*)
13822 # FIXME: insert proper C++ library support
13823 ld_shlibs_CXX=no
13824 ;;
13825 *)
13826 # FIXME: insert proper C++ library support
13827 ld_shlibs_CXX=no
13828 ;;
13829 esac
13830 ;;
13831
13832 netbsd*)
13833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13834 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13835 wlarc=
13836 hardcode_libdir_flag_spec_CXX='-R$libdir'
13837 hardcode_direct_CXX=yes
13838 hardcode_shlibpath_var_CXX=no
13839 fi
13840 # Workaround some broken pre-1.5 toolchains
13841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13842 ;;
13843
13844 *nto* | *qnx*)
13845 ld_shlibs_CXX=yes
13846 ;;
13847
13848 openbsd2*)
13849 # C++ shared libraries are fairly broken
13850 ld_shlibs_CXX=no
13851 ;;
13852
13853 openbsd*)
13854 if test -f /usr/libexec/ld.so; then
13855 hardcode_direct_CXX=yes
13856 hardcode_shlibpath_var_CXX=no
13857 hardcode_direct_absolute_CXX=yes
13858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13861 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13862 export_dynamic_flag_spec_CXX='${wl}-E'
13863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13864 fi
13865 output_verbose_link_cmd=func_echo_all
13866 else
13867 ld_shlibs_CXX=no
13868 fi
13869 ;;
13870
13871 osf3* | osf4* | osf5*)
13872 case $cc_basename in
13873 KCC*)
13874 # Kuck and Associates, Inc. (KAI) C++ Compiler
13875
13876 # KCC will only create a shared library if the output file
13877 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13878 # to its proper name (with version) after linking.
13879 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'
13880
13881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13882 hardcode_libdir_separator_CXX=:
13883
13884 # Archives containing C++ object files must be created using
13885 # the KAI C++ compiler.
13886 case $host in
13887 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13888 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13889 esac
13890 ;;
13891 RCC*)
13892 # Rational C++ 2.4.1
13893 # FIXME: insert proper C++ library support
13894 ld_shlibs_CXX=no
13895 ;;
13896 cxx*)
13897 case $host in
13898 osf3*)
13899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13900 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'
13901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13902 ;;
13903 *)
13904 allow_undefined_flag_CXX=' -expect_unresolved \*'
13905 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'
13906 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13907 echo "-hidden">> $lib.exp~
13908 $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~
13909 $RM $lib.exp'
13910 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13911 ;;
13912 esac
13913
13914 hardcode_libdir_separator_CXX=:
13915
13916 # Commands to make compiler produce verbose output that lists
13917 # what "hidden" libraries, object files and flags are used when
13918 # linking a shared library.
13919 #
13920 # There doesn't appear to be a way to prevent this compiler from
13921 # explicitly linking system object files so we need to strip them
13922 # from the output so that they don't get included in the library
13923 # dependencies.
13924 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"'
13925 ;;
13926 *)
13927 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13928 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13929 case $host in
13930 osf3*)
13931 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'
13932 ;;
13933 *)
13934 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'
13935 ;;
13936 esac
13937
13938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13939 hardcode_libdir_separator_CXX=:
13940
13941 # Commands to make compiler produce verbose output that lists
13942 # what "hidden" libraries, object files and flags are used when
13943 # linking a shared library.
13944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13945
13946 else
13947 # FIXME: insert proper C++ library support
13948 ld_shlibs_CXX=no
13949 fi
13950 ;;
13951 esac
13952 ;;
13953
13954 psos*)
13955 # FIXME: insert proper C++ library support
13956 ld_shlibs_CXX=no
13957 ;;
13958
13959 sunos4*)
13960 case $cc_basename in
13961 CC*)
13962 # Sun C++ 4.x
13963 # FIXME: insert proper C++ library support
13964 ld_shlibs_CXX=no
13965 ;;
13966 lcc*)
13967 # Lucid
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 solaris*)
13979 case $cc_basename in
13980 CC* | sunCC*)
13981 # Sun C++ 4.2, 5.x and Centerline C++
13982 archive_cmds_need_lc_CXX=yes
13983 no_undefined_flag_CXX=' -zdefs'
13984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13985 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13986 $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'
13987
13988 hardcode_libdir_flag_spec_CXX='-R$libdir'
13989 hardcode_shlibpath_var_CXX=no
13990 case $host_os in
13991 solaris2.[0-5] | solaris2.[0-5].*) ;;
13992 *)
13993 # The compiler driver will combine and reorder linker options,
13994 # but understands `-z linker_flag'.
13995 # Supported since Solaris 2.6 (maybe 2.5.1?)
13996 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13997 ;;
13998 esac
13999 link_all_deplibs_CXX=yes
14000
14001 output_verbose_link_cmd='func_echo_all'
14002
14003 # Archives containing C++ object files must be created using
14004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14005 # necessary to make sure instantiated templates are included
14006 # in the archive.
14007 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14008 ;;
14009 gcx*)
14010 # Green Hills C++ Compiler
14011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14012
14013 # The C++ compiler must be used to create the archive.
14014 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14015 ;;
14016 *)
14017 # GNU C++ compiler with Solaris linker
14018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14019 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14020 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14021 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14022 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14023 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14024
14025 # Commands to make compiler produce verbose output that lists
14026 # what "hidden" libraries, object files and flags are used when
14027 # linking a shared library.
14028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14029 else
14030 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14031 # platform.
14032 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14033 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14034 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14035
14036 # Commands to make compiler produce verbose output that lists
14037 # what "hidden" libraries, object files and flags are used when
14038 # linking a shared library.
14039 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14040 fi
14041
14042 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14043 case $host_os in
14044 solaris2.[0-5] | solaris2.[0-5].*) ;;
14045 *)
14046 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14047 ;;
14048 esac
14049 fi
14050 ;;
14051 esac
14052 ;;
14053
14054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14055 no_undefined_flag_CXX='${wl}-z,text'
14056 archive_cmds_need_lc_CXX=no
14057 hardcode_shlibpath_var_CXX=no
14058 runpath_var='LD_RUN_PATH'
14059
14060 case $cc_basename in
14061 CC*)
14062 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 ;;
14065 *)
14066 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 ;;
14069 esac
14070 ;;
14071
14072 sysv5* | sco3.2v5* | sco5v6*)
14073 # Note: We can NOT use -z defs as we might desire, because we do not
14074 # link with -lc, and that would cause any symbols used from libc to
14075 # always be unresolved, which means just about no library would
14076 # ever link correctly. If we're not using GNU ld we use -z text
14077 # though, which does catch some bad symbols but isn't as heavy-handed
14078 # as -z defs.
14079 no_undefined_flag_CXX='${wl}-z,text'
14080 allow_undefined_flag_CXX='${wl}-z,nodefs'
14081 archive_cmds_need_lc_CXX=no
14082 hardcode_shlibpath_var_CXX=no
14083 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14084 hardcode_libdir_separator_CXX=':'
14085 link_all_deplibs_CXX=yes
14086 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14087 runpath_var='LD_RUN_PATH'
14088
14089 case $cc_basename in
14090 CC*)
14091 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14092 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14093 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14094 '"$old_archive_cmds_CXX"
14095 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14096 '"$reload_cmds_CXX"
14097 ;;
14098 *)
14099 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14100 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14101 ;;
14102 esac
14103 ;;
14104
14105 tandem*)
14106 case $cc_basename in
14107 NCC*)
14108 # NonStop-UX NCC 3.20
14109 # FIXME: insert proper C++ library support
14110 ld_shlibs_CXX=no
14111 ;;
14112 *)
14113 # FIXME: insert proper C++ library support
14114 ld_shlibs_CXX=no
14115 ;;
14116 esac
14117 ;;
14118
14119 vxworks*)
14120 # FIXME: insert proper C++ library support
14121 ld_shlibs_CXX=no
14122 ;;
14123
14124 *)
14125 # FIXME: insert proper C++ library support
14126 ld_shlibs_CXX=no
14127 ;;
14128 esac
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14131 $as_echo "$ld_shlibs_CXX" >&6; }
14132 test "$ld_shlibs_CXX" = no && can_build_shared=no
14133
14134 GCC_CXX="$GXX"
14135 LD_CXX="$LD"
14136
14137 ## CAVEAT EMPTOR:
14138 ## There is no encapsulation within the following macros, do not change
14139 ## the running order or otherwise move them around unless you know exactly
14140 ## what you are doing...
14141 # Dependencies to place before and after the object being linked:
14142 predep_objects_CXX=
14143 postdep_objects_CXX=
14144 predeps_CXX=
14145 postdeps_CXX=
14146 compiler_lib_search_path_CXX=
14147
14148 cat > conftest.$ac_ext <<_LT_EOF
14149 class Foo
14150 {
14151 public:
14152 Foo (void) { a = 0; }
14153 private:
14154 int a;
14155 };
14156 _LT_EOF
14157
14158
14159 _lt_libdeps_save_CFLAGS=$CFLAGS
14160 case "$CC $CFLAGS " in #(
14161 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14162 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14163 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14164 esac
14165
14166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14167 (eval $ac_compile) 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 # Parse the compiler output and extract the necessary
14172 # objects, libraries and library flags.
14173
14174 # Sentinel used to keep track of whether or not we are before
14175 # the conftest object file.
14176 pre_test_object_deps_done=no
14177
14178 for p in `eval "$output_verbose_link_cmd"`; do
14179 case ${prev}${p} in
14180
14181 -L* | -R* | -l*)
14182 # Some compilers place space between "-{L,R}" and the path.
14183 # Remove the space.
14184 if test $p = "-L" ||
14185 test $p = "-R"; then
14186 prev=$p
14187 continue
14188 fi
14189
14190 # Expand the sysroot to ease extracting the directories later.
14191 if test -z "$prev"; then
14192 case $p in
14193 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14194 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14195 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14196 esac
14197 fi
14198 case $p in
14199 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14200 esac
14201 if test "$pre_test_object_deps_done" = no; then
14202 case ${prev} in
14203 -L | -R)
14204 # Internal compiler library paths should come after those
14205 # provided the user. The postdeps already come after the
14206 # user supplied libs so there is no need to process them.
14207 if test -z "$compiler_lib_search_path_CXX"; then
14208 compiler_lib_search_path_CXX="${prev}${p}"
14209 else
14210 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14211 fi
14212 ;;
14213 # The "-l" case would never come before the object being
14214 # linked, so don't bother handling this case.
14215 esac
14216 else
14217 if test -z "$postdeps_CXX"; then
14218 postdeps_CXX="${prev}${p}"
14219 else
14220 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14221 fi
14222 fi
14223 prev=
14224 ;;
14225
14226 *.lto.$objext) ;; # Ignore GCC LTO objects
14227 *.$objext)
14228 # This assumes that the test object file only shows up
14229 # once in the compiler output.
14230 if test "$p" = "conftest.$objext"; then
14231 pre_test_object_deps_done=yes
14232 continue
14233 fi
14234
14235 if test "$pre_test_object_deps_done" = no; then
14236 if test -z "$predep_objects_CXX"; then
14237 predep_objects_CXX="$p"
14238 else
14239 predep_objects_CXX="$predep_objects_CXX $p"
14240 fi
14241 else
14242 if test -z "$postdep_objects_CXX"; then
14243 postdep_objects_CXX="$p"
14244 else
14245 postdep_objects_CXX="$postdep_objects_CXX $p"
14246 fi
14247 fi
14248 ;;
14249
14250 *) ;; # Ignore the rest.
14251
14252 esac
14253 done
14254
14255 # Clean up.
14256 rm -f a.out a.exe
14257 else
14258 echo "libtool.m4: error: problem compiling CXX test program"
14259 fi
14260
14261 $RM -f confest.$objext
14262 CFLAGS=$_lt_libdeps_save_CFLAGS
14263
14264 # PORTME: override above test on systems where it is broken
14265 case $host_os in
14266 interix[3-9]*)
14267 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14268 # hack all around it, let's just trust "g++" to DTRT.
14269 predep_objects_CXX=
14270 postdep_objects_CXX=
14271 postdeps_CXX=
14272 ;;
14273
14274 linux*)
14275 case `$CC -V 2>&1 | sed 5q` in
14276 *Sun\ C*)
14277 # Sun C++ 5.9
14278
14279 # The more standards-conforming stlport4 library is
14280 # incompatible with the Cstd library. Avoid specifying
14281 # it if it's in CXXFLAGS. Ignore libCrun as
14282 # -library=stlport4 depends on it.
14283 case " $CXX $CXXFLAGS " in
14284 *" -library=stlport4 "*)
14285 solaris_use_stlport4=yes
14286 ;;
14287 esac
14288
14289 if test "$solaris_use_stlport4" != yes; then
14290 postdeps_CXX='-library=Cstd -library=Crun'
14291 fi
14292 ;;
14293 esac
14294 ;;
14295
14296 solaris*)
14297 case $cc_basename in
14298 CC* | sunCC*)
14299 # The more standards-conforming stlport4 library is
14300 # incompatible with the Cstd library. Avoid specifying
14301 # it if it's in CXXFLAGS. Ignore libCrun as
14302 # -library=stlport4 depends on it.
14303 case " $CXX $CXXFLAGS " in
14304 *" -library=stlport4 "*)
14305 solaris_use_stlport4=yes
14306 ;;
14307 esac
14308
14309 # Adding this requires a known-good setup of shared libraries for
14310 # Sun compiler versions before 5.6, else PIC objects from an old
14311 # archive will be linked into the output, leading to subtle bugs.
14312 if test "$solaris_use_stlport4" != yes; then
14313 postdeps_CXX='-library=Cstd -library=Crun'
14314 fi
14315 ;;
14316 esac
14317 ;;
14318 esac
14319
14320
14321 case " $postdeps_CXX " in
14322 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14323 esac
14324 compiler_lib_search_dirs_CXX=
14325 if test -n "${compiler_lib_search_path_CXX}"; then
14326 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14327 fi
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359 lt_prog_compiler_wl_CXX=
14360 lt_prog_compiler_pic_CXX=
14361 lt_prog_compiler_static_CXX=
14362
14363
14364 # C++ specific cases for pic, static, wl, etc.
14365 if test "$GXX" = yes; then
14366 lt_prog_compiler_wl_CXX='-Wl,'
14367 lt_prog_compiler_static_CXX='-static'
14368
14369 case $host_os in
14370 aix*)
14371 # All AIX code is PIC.
14372 if test "$host_cpu" = ia64; then
14373 # AIX 5 now supports IA64 processor
14374 lt_prog_compiler_static_CXX='-Bstatic'
14375 fi
14376 ;;
14377
14378 amigaos*)
14379 case $host_cpu in
14380 powerpc)
14381 # see comment about AmigaOS4 .so support
14382 lt_prog_compiler_pic_CXX='-fPIC'
14383 ;;
14384 m68k)
14385 # FIXME: we need at least 68020 code to build shared libraries, but
14386 # adding the `-m68020' flag to GCC prevents building anything better,
14387 # like `-m68040'.
14388 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14389 ;;
14390 esac
14391 ;;
14392
14393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14394 # PIC is the default for these OSes.
14395 ;;
14396 mingw* | cygwin* | os2* | pw32* | cegcc*)
14397 # This hack is so that the source file can tell whether it is being
14398 # built for inclusion in a dll (and should export symbols for example).
14399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14400 # (--disable-auto-import) libraries
14401 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14402 ;;
14403 darwin* | rhapsody*)
14404 # PIC is the default on this platform
14405 # Common symbols not allowed in MH_DYLIB files
14406 lt_prog_compiler_pic_CXX='-fno-common'
14407 ;;
14408 *djgpp*)
14409 # DJGPP does not support shared libraries at all
14410 lt_prog_compiler_pic_CXX=
14411 ;;
14412 haiku*)
14413 # PIC is the default for Haiku.
14414 # The "-static" flag exists, but is broken.
14415 lt_prog_compiler_static_CXX=
14416 ;;
14417 interix[3-9]*)
14418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14419 # Instead, we relocate shared libraries at runtime.
14420 ;;
14421 sysv4*MP*)
14422 if test -d /usr/nec; then
14423 lt_prog_compiler_pic_CXX=-Kconform_pic
14424 fi
14425 ;;
14426 hpux*)
14427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14429 # sets the default TLS model and affects inlining.
14430 case $host_cpu in
14431 hppa*64*)
14432 ;;
14433 *)
14434 lt_prog_compiler_pic_CXX='-fPIC'
14435 ;;
14436 esac
14437 ;;
14438 *qnx* | *nto*)
14439 # QNX uses GNU C++, but need to define -shared option too, otherwise
14440 # it will coredump.
14441 lt_prog_compiler_pic_CXX='-fPIC -shared'
14442 ;;
14443 *)
14444 lt_prog_compiler_pic_CXX='-fPIC'
14445 ;;
14446 esac
14447 else
14448 case $host_os in
14449 aix[4-9]*)
14450 # All AIX code is PIC.
14451 if test "$host_cpu" = ia64; then
14452 # AIX 5 now supports IA64 processor
14453 lt_prog_compiler_static_CXX='-Bstatic'
14454 else
14455 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14456 fi
14457 ;;
14458 chorus*)
14459 case $cc_basename in
14460 cxch68*)
14461 # Green Hills C++ Compiler
14462 # _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"
14463 ;;
14464 esac
14465 ;;
14466 mingw* | cygwin* | os2* | pw32* | cegcc*)
14467 # This hack is so that the source file can tell whether it is being
14468 # built for inclusion in a dll (and should export symbols for example).
14469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14470 ;;
14471 dgux*)
14472 case $cc_basename in
14473 ec++*)
14474 lt_prog_compiler_pic_CXX='-KPIC'
14475 ;;
14476 ghcx*)
14477 # Green Hills C++ Compiler
14478 lt_prog_compiler_pic_CXX='-pic'
14479 ;;
14480 *)
14481 ;;
14482 esac
14483 ;;
14484 freebsd* | dragonfly*)
14485 # FreeBSD uses GNU C++
14486 ;;
14487 hpux9* | hpux10* | hpux11*)
14488 case $cc_basename in
14489 CC*)
14490 lt_prog_compiler_wl_CXX='-Wl,'
14491 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14492 if test "$host_cpu" != ia64; then
14493 lt_prog_compiler_pic_CXX='+Z'
14494 fi
14495 ;;
14496 aCC*)
14497 lt_prog_compiler_wl_CXX='-Wl,'
14498 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14499 case $host_cpu in
14500 hppa*64*|ia64*)
14501 # +Z the default
14502 ;;
14503 *)
14504 lt_prog_compiler_pic_CXX='+Z'
14505 ;;
14506 esac
14507 ;;
14508 *)
14509 ;;
14510 esac
14511 ;;
14512 interix*)
14513 # This is c89, which is MS Visual C++ (no shared libs)
14514 # Anyone wants to do a port?
14515 ;;
14516 irix5* | irix6* | nonstopux*)
14517 case $cc_basename in
14518 CC*)
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_static_CXX='-non_shared'
14521 # CC pic flag -KPIC is the default.
14522 ;;
14523 *)
14524 ;;
14525 esac
14526 ;;
14527 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14528 case $cc_basename in
14529 KCC*)
14530 # KAI C++ Compiler
14531 lt_prog_compiler_wl_CXX='--backend -Wl,'
14532 lt_prog_compiler_pic_CXX='-fPIC'
14533 ;;
14534 ecpc* )
14535 # old Intel C++ for x86_64 which still supported -KPIC.
14536 lt_prog_compiler_wl_CXX='-Wl,'
14537 lt_prog_compiler_pic_CXX='-KPIC'
14538 lt_prog_compiler_static_CXX='-static'
14539 ;;
14540 icpc* )
14541 # Intel C++, used to be incompatible with GCC.
14542 # ICC 10 doesn't accept -KPIC any more.
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 lt_prog_compiler_pic_CXX='-fPIC'
14545 lt_prog_compiler_static_CXX='-static'
14546 ;;
14547 pgCC* | pgcpp*)
14548 # Portland Group C++ compiler
14549 lt_prog_compiler_wl_CXX='-Wl,'
14550 lt_prog_compiler_pic_CXX='-fpic'
14551 lt_prog_compiler_static_CXX='-Bstatic'
14552 ;;
14553 cxx*)
14554 # Compaq C++
14555 # Make sure the PIC flag is empty. It appears that all Alpha
14556 # Linux and Compaq Tru64 Unix objects are PIC.
14557 lt_prog_compiler_pic_CXX=
14558 lt_prog_compiler_static_CXX='-non_shared'
14559 ;;
14560 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14561 # IBM XL 8.0, 9.0 on PPC and BlueGene
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-qpic'
14564 lt_prog_compiler_static_CXX='-qstaticlink'
14565 ;;
14566 *)
14567 case `$CC -V 2>&1 | sed 5q` in
14568 *Sun\ C*)
14569 # Sun C++ 5.9
14570 lt_prog_compiler_pic_CXX='-KPIC'
14571 lt_prog_compiler_static_CXX='-Bstatic'
14572 lt_prog_compiler_wl_CXX='-Qoption ld '
14573 ;;
14574 esac
14575 ;;
14576 esac
14577 ;;
14578 lynxos*)
14579 ;;
14580 m88k*)
14581 ;;
14582 mvs*)
14583 case $cc_basename in
14584 cxx*)
14585 lt_prog_compiler_pic_CXX='-W c,exportall'
14586 ;;
14587 *)
14588 ;;
14589 esac
14590 ;;
14591 netbsd*)
14592 ;;
14593 *qnx* | *nto*)
14594 # QNX uses GNU C++, but need to define -shared option too, otherwise
14595 # it will coredump.
14596 lt_prog_compiler_pic_CXX='-fPIC -shared'
14597 ;;
14598 osf3* | osf4* | osf5*)
14599 case $cc_basename in
14600 KCC*)
14601 lt_prog_compiler_wl_CXX='--backend -Wl,'
14602 ;;
14603 RCC*)
14604 # Rational C++ 2.4.1
14605 lt_prog_compiler_pic_CXX='-pic'
14606 ;;
14607 cxx*)
14608 # Digital/Compaq C++
14609 lt_prog_compiler_wl_CXX='-Wl,'
14610 # Make sure the PIC flag is empty. It appears that all Alpha
14611 # Linux and Compaq Tru64 Unix objects are PIC.
14612 lt_prog_compiler_pic_CXX=
14613 lt_prog_compiler_static_CXX='-non_shared'
14614 ;;
14615 *)
14616 ;;
14617 esac
14618 ;;
14619 psos*)
14620 ;;
14621 solaris*)
14622 case $cc_basename in
14623 CC* | sunCC*)
14624 # Sun C++ 4.2, 5.x and Centerline C++
14625 lt_prog_compiler_pic_CXX='-KPIC'
14626 lt_prog_compiler_static_CXX='-Bstatic'
14627 lt_prog_compiler_wl_CXX='-Qoption ld '
14628 ;;
14629 gcx*)
14630 # Green Hills C++ Compiler
14631 lt_prog_compiler_pic_CXX='-PIC'
14632 ;;
14633 *)
14634 ;;
14635 esac
14636 ;;
14637 sunos4*)
14638 case $cc_basename in
14639 CC*)
14640 # Sun C++ 4.x
14641 lt_prog_compiler_pic_CXX='-pic'
14642 lt_prog_compiler_static_CXX='-Bstatic'
14643 ;;
14644 lcc*)
14645 # Lucid
14646 lt_prog_compiler_pic_CXX='-pic'
14647 ;;
14648 *)
14649 ;;
14650 esac
14651 ;;
14652 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14653 case $cc_basename in
14654 CC*)
14655 lt_prog_compiler_wl_CXX='-Wl,'
14656 lt_prog_compiler_pic_CXX='-KPIC'
14657 lt_prog_compiler_static_CXX='-Bstatic'
14658 ;;
14659 esac
14660 ;;
14661 tandem*)
14662 case $cc_basename in
14663 NCC*)
14664 # NonStop-UX NCC 3.20
14665 lt_prog_compiler_pic_CXX='-KPIC'
14666 ;;
14667 *)
14668 ;;
14669 esac
14670 ;;
14671 vxworks*)
14672 ;;
14673 *)
14674 lt_prog_compiler_can_build_shared_CXX=no
14675 ;;
14676 esac
14677 fi
14678
14679 case $host_os in
14680 # For platforms which do not support PIC, -DPIC is meaningless:
14681 *djgpp*)
14682 lt_prog_compiler_pic_CXX=
14683 ;;
14684 *)
14685 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14686 ;;
14687 esac
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14690 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14691 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14695 fi
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14697 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14698 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14699
14700 #
14701 # Check to make sure the PIC flag actually works.
14702 #
14703 if test -n "$lt_prog_compiler_pic_CXX"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14706 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14707 $as_echo_n "(cached) " >&6
14708 else
14709 lt_cv_prog_compiler_pic_works_CXX=no
14710 ac_outfile=conftest.$ac_objext
14711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14712 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14713 # Insert the option either (1) after the last *FLAGS variable, or
14714 # (2) before a word containing "conftest.", or (3) at the end.
14715 # Note that $ac_compile itself does not contain backslashes and begins
14716 # with a dollar sign (not a hyphen), so the echo should work correctly.
14717 # The option is referenced via a variable to avoid confusing sed.
14718 lt_compile=`echo "$ac_compile" | $SED \
14719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14721 -e 's:$: $lt_compiler_flag:'`
14722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14723 (eval "$lt_compile" 2>conftest.err)
14724 ac_status=$?
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 if (exit $ac_status) && test -s "$ac_outfile"; then
14728 # The compiler can only warn and ignore the option if not recognized
14729 # So say no if there are warnings other than the usual output.
14730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14733 lt_cv_prog_compiler_pic_works_CXX=yes
14734 fi
14735 fi
14736 $RM -r conftest*
14737
14738 fi
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14740 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14741
14742 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14743 case $lt_prog_compiler_pic_CXX in
14744 "" | " "*) ;;
14745 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14746 esac
14747 else
14748 lt_prog_compiler_pic_CXX=
14749 lt_prog_compiler_can_build_shared_CXX=no
14750 fi
14751
14752 fi
14753
14754
14755
14756
14757
14758 #
14759 # Check to make sure the static flag actually works.
14760 #
14761 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14763 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14764 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14765 $as_echo_n "(cached) " >&6
14766 else
14767 lt_cv_prog_compiler_static_works_CXX=no
14768 save_LDFLAGS="$LDFLAGS"
14769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14772 # The linker can only warn and ignore the option if not recognized
14773 # So say no if there are warnings
14774 if test -s conftest.err; then
14775 # Append any errors to the config.log.
14776 cat conftest.err 1>&5
14777 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if diff conftest.exp conftest.er2 >/dev/null; then
14780 lt_cv_prog_compiler_static_works_CXX=yes
14781 fi
14782 else
14783 lt_cv_prog_compiler_static_works_CXX=yes
14784 fi
14785 fi
14786 $RM -r conftest*
14787 LDFLAGS="$save_LDFLAGS"
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14791 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14792
14793 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14794 :
14795 else
14796 lt_prog_compiler_static_CXX=
14797 fi
14798
14799
14800
14801
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14803 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14804 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14805 $as_echo_n "(cached) " >&6
14806 else
14807 lt_cv_prog_compiler_c_o_CXX=no
14808 $RM -r conftest 2>/dev/null
14809 mkdir conftest
14810 cd conftest
14811 mkdir out
14812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14813
14814 lt_compiler_flag="-o out/conftest2.$ac_objext"
14815 # Insert the option either (1) after the last *FLAGS variable, or
14816 # (2) before a word containing "conftest.", or (3) at the end.
14817 # Note that $ac_compile itself does not contain backslashes and begins
14818 # with a dollar sign (not a hyphen), so the echo should work correctly.
14819 lt_compile=`echo "$ac_compile" | $SED \
14820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14822 -e 's:$: $lt_compiler_flag:'`
14823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14824 (eval "$lt_compile" 2>out/conftest.err)
14825 ac_status=$?
14826 cat out/conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14829 then
14830 # The compiler can only warn and ignore the option if not recognized
14831 # So say no if there are warnings
14832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14835 lt_cv_prog_compiler_c_o_CXX=yes
14836 fi
14837 fi
14838 chmod u+w . 2>&5
14839 $RM -r conftest*
14840 # SGI C++ compiler will create directory out/ii_files/ for
14841 # template instantiation
14842 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14843 $RM out/* && rmdir out
14844 cd ..
14845 $RM -r conftest
14846 $RM -r conftest*
14847
14848 fi
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14850 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14851
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14855 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14856 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 lt_cv_prog_compiler_c_o_CXX=no
14860 $RM -r conftest 2>/dev/null
14861 mkdir conftest
14862 cd conftest
14863 mkdir out
14864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14865
14866 lt_compiler_flag="-o out/conftest2.$ac_objext"
14867 # Insert the option either (1) after the last *FLAGS variable, or
14868 # (2) before a word containing "conftest.", or (3) at the end.
14869 # Note that $ac_compile itself does not contain backslashes and begins
14870 # with a dollar sign (not a hyphen), so the echo should work correctly.
14871 lt_compile=`echo "$ac_compile" | $SED \
14872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14874 -e 's:$: $lt_compiler_flag:'`
14875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14876 (eval "$lt_compile" 2>out/conftest.err)
14877 ac_status=$?
14878 cat out/conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14881 then
14882 # The compiler can only warn and ignore the option if not recognized
14883 # So say no if there are warnings
14884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14887 lt_cv_prog_compiler_c_o_CXX=yes
14888 fi
14889 fi
14890 chmod u+w . 2>&5
14891 $RM -r conftest*
14892 # SGI C++ compiler will create directory out/ii_files/ for
14893 # template instantiation
14894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14895 $RM out/* && rmdir out
14896 cd ..
14897 $RM -r conftest
14898 $RM -r conftest*
14899
14900 fi
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14902 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14903
14904
14905
14906
14907 hard_links="nottested"
14908 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14909 # do not overwrite the value of need_locks provided by the user
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14911 $as_echo_n "checking if we can lock with hard links... " >&6; }
14912 hard_links=yes
14913 $RM -r conftest*
14914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14915 touch conftest.a
14916 ln conftest.a conftest.b 2>&5 || hard_links=no
14917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14919 $as_echo "$hard_links" >&6; }
14920 if test "$hard_links" = no; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14922 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14923 need_locks=warn
14924 fi
14925 else
14926 need_locks=no
14927 fi
14928
14929
14930
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14932 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14933
14934 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14935 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14936 case $host_os in
14937 aix[4-9]*)
14938 # If we're using GNU nm, then we don't want the "-C" option.
14939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14940 # Also, AIX nm treats weak defined symbols like other global defined
14941 # symbols, whereas GNU nm marks them as "W".
14942 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14943 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'
14944 else
14945 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'
14946 fi
14947 ;;
14948 pw32*)
14949 export_symbols_cmds_CXX="$ltdll_cmds"
14950 ;;
14951 cygwin* | mingw* | cegcc*)
14952 case $cc_basename in
14953 cl*)
14954 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14955 ;;
14956 *)
14957 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'
14958 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14959 ;;
14960 esac
14961 ;;
14962 *)
14963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14964 ;;
14965 esac
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14968 $as_echo "$ld_shlibs_CXX" >&6; }
14969 test "$ld_shlibs_CXX" = no && can_build_shared=no
14970
14971 with_gnu_ld_CXX=$with_gnu_ld
14972
14973
14974
14975
14976
14977
14978 #
14979 # Do we need to explicitly link libc?
14980 #
14981 case "x$archive_cmds_need_lc_CXX" in
14982 x|xyes)
14983 # Assume -lc should be added
14984 archive_cmds_need_lc_CXX=yes
14985
14986 if test "$enable_shared" = yes && test "$GCC" = yes; then
14987 case $archive_cmds_CXX in
14988 *'~'*)
14989 # FIXME: we may have to deal with multi-command sequences.
14990 ;;
14991 '$CC '*)
14992 # Test whether the compiler implicitly links with -lc since on some
14993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14994 # to ld, don't add -lc before -lgcc.
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14996 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14997 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 $RM -r conftest*
15001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15002
15003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15004 (eval $ac_compile) 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; } 2>conftest.err; then
15008 soname=conftest
15009 lib=conftest
15010 libobjs=conftest.$ac_objext
15011 deplibs=
15012 wl=$lt_prog_compiler_wl_CXX
15013 pic_flag=$lt_prog_compiler_pic_CXX
15014 compiler_flags=-v
15015 linker_flags=-v
15016 verstring=
15017 output_objdir=.
15018 libname=conftest
15019 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15020 allow_undefined_flag_CXX=
15021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15022 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15023 ac_status=$?
15024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025 test $ac_status = 0; }
15026 then
15027 lt_cv_archive_cmds_need_lc_CXX=no
15028 else
15029 lt_cv_archive_cmds_need_lc_CXX=yes
15030 fi
15031 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15032 else
15033 cat conftest.err 1>&5
15034 fi
15035 $RM -r conftest*
15036
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15039 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15040 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15041 ;;
15042 esac
15043 fi
15044 ;;
15045 esac
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15109 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15110
15111 library_names_spec=
15112 libname_spec='lib$name'
15113 soname_spec=
15114 shrext_cmds=".so"
15115 postinstall_cmds=
15116 postuninstall_cmds=
15117 finish_cmds=
15118 finish_eval=
15119 shlibpath_var=
15120 shlibpath_overrides_runpath=unknown
15121 version_type=none
15122 dynamic_linker="$host_os ld.so"
15123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15124 need_lib_prefix=unknown
15125 hardcode_into_libs=no
15126
15127 # when you set need_version to no, make sure it does not cause -set_version
15128 # flags to be left without arguments
15129 need_version=unknown
15130
15131 case $host_os in
15132 aix3*)
15133 version_type=linux # correct to gnu/linux during the next big refactor
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15135 shlibpath_var=LIBPATH
15136
15137 # AIX 3 has no versioning support, so we append a major version to the name.
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 ;;
15140
15141 aix[4-9]*)
15142 version_type=linux # correct to gnu/linux during the next big refactor
15143 need_lib_prefix=no
15144 need_version=no
15145 hardcode_into_libs=yes
15146 if test "$host_cpu" = ia64; then
15147 # AIX 5 supports IA64
15148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 else
15151 # With GCC up to 2.95.x, collect2 would create an import file
15152 # for dependence libraries. The import file would start with
15153 # the line `#! .'. This would cause the generated library to
15154 # depend on `.', always an invalid library. This was fixed in
15155 # development snapshots of GCC prior to 3.0.
15156 case $host_os in
15157 aix4 | aix4.[01] | aix4.[01].*)
15158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15159 echo ' yes '
15160 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15161 :
15162 else
15163 can_build_shared=no
15164 fi
15165 ;;
15166 esac
15167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15168 # soname into executable. Probably we can add versioning support to
15169 # collect2, so additional links can be useful in future.
15170 if test "$aix_use_runtimelinking" = yes; then
15171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15172 # instead of lib<name>.a to let people know that these are not
15173 # typical AIX shared libraries.
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 else
15176 # We preserve .a as extension for shared libraries through AIX4.2
15177 # and later when we are not doing run time linking.
15178 library_names_spec='${libname}${release}.a $libname.a'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 fi
15181 shlibpath_var=LIBPATH
15182 fi
15183 ;;
15184
15185 amigaos*)
15186 case $host_cpu in
15187 powerpc)
15188 # Since July 2007 AmigaOS4 officially supports .so libraries.
15189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 ;;
15192 m68k)
15193 library_names_spec='$libname.ixlibrary $libname.a'
15194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15195 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'
15196 ;;
15197 esac
15198 ;;
15199
15200 beos*)
15201 library_names_spec='${libname}${shared_ext}'
15202 dynamic_linker="$host_os ld.so"
15203 shlibpath_var=LIBRARY_PATH
15204 ;;
15205
15206 bsdi[45]*)
15207 version_type=linux # correct to gnu/linux during the next big refactor
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15215 # the default ld.so.conf also contains /usr/contrib/lib and
15216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15217 # libtool to hard-code these into programs
15218 ;;
15219
15220 cygwin* | mingw* | pw32* | cegcc*)
15221 version_type=windows
15222 shrext_cmds=".dll"
15223 need_version=no
15224 need_lib_prefix=no
15225
15226 case $GCC,$cc_basename in
15227 yes,*)
15228 # gcc
15229 library_names_spec='$libname.dll.a'
15230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231 postinstall_cmds='base_file=`basename \${file}`~
15232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233 dldir=$destdir/`dirname \$dlpath`~
15234 test -d \$dldir || mkdir -p \$dldir~
15235 $install_prog $dir/$dlname \$dldir/$dlname~
15236 chmod a+x \$dldir/$dlname~
15237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15239 fi'
15240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241 dlpath=$dir/\$dldll~
15242 $RM \$dlpath'
15243 shlibpath_overrides_runpath=yes
15244
15245 case $host_os in
15246 cygwin*)
15247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249
15250 ;;
15251 mingw* | cegcc*)
15252 # MinGW DLLs use traditional 'lib' prefix
15253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254 ;;
15255 pw32*)
15256 # pw32 DLLs use 'pw' prefix rather than 'lib'
15257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258 ;;
15259 esac
15260 dynamic_linker='Win32 ld.exe'
15261 ;;
15262
15263 *,cl*)
15264 # Native MSVC
15265 libname_spec='$name'
15266 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15267 library_names_spec='${libname}.dll.lib'
15268
15269 case $build_os in
15270 mingw*)
15271 sys_lib_search_path_spec=
15272 lt_save_ifs=$IFS
15273 IFS=';'
15274 for lt_path in $LIB
15275 do
15276 IFS=$lt_save_ifs
15277 # Let DOS variable expansion print the short 8.3 style file name.
15278 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15279 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15280 done
15281 IFS=$lt_save_ifs
15282 # Convert to MSYS style.
15283 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15284 ;;
15285 cygwin*)
15286 # Convert to unix form, then to dos form, then back to unix form
15287 # but this time dos style (no spaces!) so that the unix form looks
15288 # like /cygdrive/c/PROGRA~1:/cygdr...
15289 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15290 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15291 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15292 ;;
15293 *)
15294 sys_lib_search_path_spec="$LIB"
15295 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15296 # It is most probably a Windows format PATH.
15297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15298 else
15299 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15300 fi
15301 # FIXME: find the short name or the path components, as spaces are
15302 # common. (e.g. "Program Files" -> "PROGRA~1")
15303 ;;
15304 esac
15305
15306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15307 postinstall_cmds='base_file=`basename \${file}`~
15308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15309 dldir=$destdir/`dirname \$dlpath`~
15310 test -d \$dldir || mkdir -p \$dldir~
15311 $install_prog $dir/$dlname \$dldir/$dlname'
15312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15313 dlpath=$dir/\$dldll~
15314 $RM \$dlpath'
15315 shlibpath_overrides_runpath=yes
15316 dynamic_linker='Win32 link.exe'
15317 ;;
15318
15319 *)
15320 # Assume MSVC wrapper
15321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15322 dynamic_linker='Win32 ld.exe'
15323 ;;
15324 esac
15325 # FIXME: first we should search . and the directory the executable is in
15326 shlibpath_var=PATH
15327 ;;
15328
15329 darwin* | rhapsody*)
15330 dynamic_linker="$host_os dyld"
15331 version_type=darwin
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15335 soname_spec='${libname}${release}${major}$shared_ext'
15336 shlibpath_overrides_runpath=yes
15337 shlibpath_var=DYLD_LIBRARY_PATH
15338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15339
15340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15341 ;;
15342
15343 dgux*)
15344 version_type=linux # correct to gnu/linux during the next big refactor
15345 need_lib_prefix=no
15346 need_version=no
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 ;;
15351
15352 freebsd* | dragonfly*)
15353 # DragonFly does not have aout. When/if they implement a new
15354 # versioning mechanism, adjust this.
15355 if test -x /usr/bin/objformat; then
15356 objformat=`/usr/bin/objformat`
15357 else
15358 case $host_os in
15359 freebsd[23].*) objformat=aout ;;
15360 *) objformat=elf ;;
15361 esac
15362 fi
15363 version_type=freebsd-$objformat
15364 case $version_type in
15365 freebsd-elf*)
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15367 need_version=no
15368 need_lib_prefix=no
15369 ;;
15370 freebsd-*)
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15372 need_version=yes
15373 ;;
15374 esac
15375 shlibpath_var=LD_LIBRARY_PATH
15376 case $host_os in
15377 freebsd2.*)
15378 shlibpath_overrides_runpath=yes
15379 ;;
15380 freebsd3.[01]* | freebsdelf3.[01]*)
15381 shlibpath_overrides_runpath=yes
15382 hardcode_into_libs=yes
15383 ;;
15384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15386 shlibpath_overrides_runpath=no
15387 hardcode_into_libs=yes
15388 ;;
15389 *) # from 4.6 on, and DragonFly
15390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15392 ;;
15393 esac
15394 ;;
15395
15396 gnu*)
15397 version_type=linux # correct to gnu/linux during the next big refactor
15398 need_lib_prefix=no
15399 need_version=no
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=no
15404 hardcode_into_libs=yes
15405 ;;
15406
15407 haiku*)
15408 version_type=linux # correct to gnu/linux during the next big refactor
15409 need_lib_prefix=no
15410 need_version=no
15411 dynamic_linker="$host_os runtime_loader"
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 shlibpath_var=LIBRARY_PATH
15415 shlibpath_overrides_runpath=yes
15416 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15417 hardcode_into_libs=yes
15418 ;;
15419
15420 hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
15426 case $host_cpu in
15427 ia64*)
15428 shrext_cmds='.so'
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 fi
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15441 ;;
15442 hppa*64*)
15443 shrext_cmds='.sl'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 ;;
15453 *)
15454 shrext_cmds='.sl'
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 ;;
15461 esac
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15463 postinstall_cmds='chmod 555 $lib'
15464 # or fails outright, so override atomically:
15465 install_override_mode=555
15466 ;;
15467
15468 interix[3-9]*)
15469 version_type=linux # correct to gnu/linux during the next big refactor
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15478 ;;
15479
15480 irix5* | irix6* | nonstopux*)
15481 case $host_os in
15482 nonstopux*) version_type=nonstopux ;;
15483 *)
15484 if test "$lt_cv_prog_gnu_ld" = yes; then
15485 version_type=linux # correct to gnu/linux during the next big refactor
15486 else
15487 version_type=irix
15488 fi ;;
15489 esac
15490 need_lib_prefix=no
15491 need_version=no
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 case $host_os in
15495 irix5* | nonstopux*)
15496 libsuff= shlibsuff=
15497 ;;
15498 *)
15499 case $LD in # libtool.m4 will add one of these switches to LD
15500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501 libsuff= shlibsuff= libmagic=32-bit;;
15502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503 libsuff=32 shlibsuff=N32 libmagic=N32;;
15504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506 *) libsuff= shlibsuff= libmagic=never-match;;
15507 esac
15508 ;;
15509 esac
15510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514 hardcode_into_libs=yes
15515 ;;
15516
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux*oldld* | linux*aout* | linux*coff*)
15519 dynamic_linker=no
15520 ;;
15521
15522 # This must be glibc/ELF.
15523 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15524 version_type=linux # correct to gnu/linux during the next big refactor
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
15532
15533 # Some binutils ld are patched to set DT_RUNPATH
15534 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 lt_cv_shlibpath_overrides_runpath=no
15538 save_LDFLAGS=$LDFLAGS
15539 save_libdir=$libdir
15540 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15541 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544
15545 int
15546 main ()
15547 {
15548
15549 ;
15550 return 0;
15551 }
15552 _ACEOF
15553 if ac_fn_cxx_try_link "$LINENO"; then :
15554 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15555 lt_cv_shlibpath_overrides_runpath=yes
15556 fi
15557 fi
15558 rm -f core conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
15560 LDFLAGS=$save_LDFLAGS
15561 libdir=$save_libdir
15562
15563 fi
15564
15565 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15566
15567 # This implies no fast_install, which is unacceptable.
15568 # Some rework will be needed to allow for fast_install
15569 # before this can be enabled.
15570 hardcode_into_libs=yes
15571
15572 # Append ld.so.conf contents to the search path
15573 if test -f /etc/ld.so.conf; then
15574 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' ' '`
15575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15576 fi
15577
15578 # We used to test for /lib/ld.so.1 and disable shared libraries on
15579 # powerpc, because MkLinux only supported shared libraries with the
15580 # GNU dynamic linker. Since this was broken with cross compilers,
15581 # most powerpc-linux boxes support dynamic linking these days and
15582 # people can always --disable-shared, the test was removed, and we
15583 # assume the GNU/Linux dynamic linker is in use.
15584 dynamic_linker='GNU/Linux ld.so'
15585 ;;
15586
15587 netbsd*)
15588 version_type=sunos
15589 need_lib_prefix=no
15590 need_version=no
15591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15594 dynamic_linker='NetBSD (a.out) ld.so'
15595 else
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15597 soname_spec='${libname}${release}${shared_ext}$major'
15598 dynamic_linker='NetBSD ld.elf_so'
15599 fi
15600 shlibpath_var=LD_LIBRARY_PATH
15601 shlibpath_overrides_runpath=yes
15602 hardcode_into_libs=yes
15603 ;;
15604
15605 newsos6)
15606 version_type=linux # correct to gnu/linux during the next big refactor
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=yes
15610 ;;
15611
15612 *nto* | *qnx*)
15613 version_type=qnx
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=no
15620 hardcode_into_libs=yes
15621 dynamic_linker='ldqnx.so'
15622 ;;
15623
15624 openbsd*)
15625 version_type=sunos
15626 sys_lib_dlsearch_path_spec="/usr/lib"
15627 need_lib_prefix=no
15628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15629 case $host_os in
15630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15631 *) need_version=no ;;
15632 esac
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637 case $host_os in
15638 openbsd2.[89] | openbsd2.[89].*)
15639 shlibpath_overrides_runpath=no
15640 ;;
15641 *)
15642 shlibpath_overrides_runpath=yes
15643 ;;
15644 esac
15645 else
15646 shlibpath_overrides_runpath=yes
15647 fi
15648 ;;
15649
15650 os2*)
15651 libname_spec='$name'
15652 shrext_cmds=".dll"
15653 need_lib_prefix=no
15654 library_names_spec='$libname${shared_ext} $libname.a'
15655 dynamic_linker='OS/2 ld.exe'
15656 shlibpath_var=LIBPATH
15657 ;;
15658
15659 osf3* | osf4* | osf5*)
15660 version_type=osf
15661 need_lib_prefix=no
15662 need_version=no
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15668 ;;
15669
15670 rdos*)
15671 dynamic_linker=no
15672 ;;
15673
15674 solaris*)
15675 version_type=linux # correct to gnu/linux during the next big refactor
15676 need_lib_prefix=no
15677 need_version=no
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 # ldd complains unless libraries are executable
15684 postinstall_cmds='chmod +x $lib'
15685 ;;
15686
15687 sunos4*)
15688 version_type=sunos
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 shlibpath_overrides_runpath=yes
15693 if test "$with_gnu_ld" = yes; then
15694 need_lib_prefix=no
15695 fi
15696 need_version=yes
15697 ;;
15698
15699 sysv4 | sysv4.3*)
15700 version_type=linux # correct to gnu/linux during the next big refactor
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 case $host_vendor in
15705 sni)
15706 shlibpath_overrides_runpath=no
15707 need_lib_prefix=no
15708 runpath_var=LD_RUN_PATH
15709 ;;
15710 siemens)
15711 need_lib_prefix=no
15712 ;;
15713 motorola)
15714 need_lib_prefix=no
15715 need_version=no
15716 shlibpath_overrides_runpath=no
15717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15718 ;;
15719 esac
15720 ;;
15721
15722 sysv4*MP*)
15723 if test -d /usr/nec ;then
15724 version_type=linux # correct to gnu/linux during the next big refactor
15725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15726 soname_spec='$libname${shared_ext}.$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 fi
15729 ;;
15730
15731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15732 version_type=freebsd-elf
15733 need_lib_prefix=no
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 shlibpath_overrides_runpath=yes
15739 hardcode_into_libs=yes
15740 if test "$with_gnu_ld" = yes; then
15741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15742 else
15743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15744 case $host_os in
15745 sco3.2v5*)
15746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15747 ;;
15748 esac
15749 fi
15750 sys_lib_dlsearch_path_spec='/usr/lib'
15751 ;;
15752
15753 tpf*)
15754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15755 version_type=linux # correct to gnu/linux during the next big refactor
15756 need_lib_prefix=no
15757 need_version=no
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=no
15761 hardcode_into_libs=yes
15762 ;;
15763
15764 uts4*)
15765 version_type=linux # correct to gnu/linux during the next big refactor
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767 soname_spec='${libname}${release}${shared_ext}$major'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 ;;
15770
15771 *)
15772 dynamic_linker=no
15773 ;;
15774 esac
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15776 $as_echo "$dynamic_linker" >&6; }
15777 test "$dynamic_linker" = no && can_build_shared=no
15778
15779 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15780 if test "$GCC" = yes; then
15781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15782 fi
15783
15784 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15786 fi
15787 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15789 fi
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15829 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15830 hardcode_action_CXX=
15831 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15832 test -n "$runpath_var_CXX" ||
15833 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15834
15835 # We can hardcode non-existent directories.
15836 if test "$hardcode_direct_CXX" != no &&
15837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15838 # have to relink, otherwise we might link with an installed library
15839 # when we should be linking with a yet-to-be-installed one
15840 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15841 test "$hardcode_minus_L_CXX" != no; then
15842 # Linking always hardcodes the temporary library directory.
15843 hardcode_action_CXX=relink
15844 else
15845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15846 hardcode_action_CXX=immediate
15847 fi
15848 else
15849 # We cannot hardcode anything, or else we can only hardcode existing
15850 # directories.
15851 hardcode_action_CXX=unsupported
15852 fi
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15854 $as_echo "$hardcode_action_CXX" >&6; }
15855
15856 if test "$hardcode_action_CXX" = relink ||
15857 test "$inherit_rpath_CXX" = yes; then
15858 # Fast installation is not supported
15859 enable_fast_install=no
15860 elif test "$shlibpath_overrides_runpath" = yes ||
15861 test "$enable_shared" = no; then
15862 # Fast installation is not necessary
15863 enable_fast_install=needless
15864 fi
15865
15866
15867
15868
15869
15870
15871
15872 fi # test -n "$compiler"
15873
15874 CC=$lt_save_CC
15875 CFLAGS=$lt_save_CFLAGS
15876 LDCXX=$LD
15877 LD=$lt_save_LD
15878 GCC=$lt_save_GCC
15879 with_gnu_ld=$lt_save_with_gnu_ld
15880 lt_cv_path_LDCXX=$lt_cv_path_LD
15881 lt_cv_path_LD=$lt_save_path_LD
15882 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15883 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15884 fi # test "$_lt_caught_CXX_error" != yes
15885
15886 ac_ext=c
15887 ac_cpp='$CPP $CPPFLAGS'
15888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906 ac_config_commands="$ac_config_commands libtool"
15907
15908
15909
15910
15911 # Only expand once:
15912
15913
15914
15915 ac_ext=cpp
15916 ac_cpp='$CXXCPP $CPPFLAGS'
15917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15920
15921
15922
15923
15924
15925
15926
15927
15928 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15929 if test -n "$ac_tool_prefix"; then
15930 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15931 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15933 $as_echo_n "checking for $ac_word... " >&6; }
15934 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15935 $as_echo_n "(cached) " >&6
15936 else
15937 case $PKG_CONFIG in
15938 [\\/]* | ?:[\\/]*)
15939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15940 ;;
15941 *)
15942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15943 for as_dir in $PATH
15944 do
15945 IFS=$as_save_IFS
15946 test -z "$as_dir" && as_dir=.
15947 for ac_exec_ext in '' $ac_executable_extensions; do
15948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15951 break 2
15952 fi
15953 done
15954 done
15955 IFS=$as_save_IFS
15956
15957 ;;
15958 esac
15959 fi
15960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15961 if test -n "$PKG_CONFIG"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15963 $as_echo "$PKG_CONFIG" >&6; }
15964 else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967 fi
15968
15969
15970 fi
15971 if test -z "$ac_cv_path_PKG_CONFIG"; then
15972 ac_pt_PKG_CONFIG=$PKG_CONFIG
15973 # Extract the first word of "pkg-config", so it can be a program name with args.
15974 set dummy pkg-config; ac_word=$2
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15976 $as_echo_n "checking for $ac_word... " >&6; }
15977 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 case $ac_pt_PKG_CONFIG in
15981 [\\/]* | ?:[\\/]*)
15982 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15983 ;;
15984 *)
15985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15986 for as_dir in $PATH
15987 do
15988 IFS=$as_save_IFS
15989 test -z "$as_dir" && as_dir=.
15990 for ac_exec_ext in '' $ac_executable_extensions; do
15991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15992 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15994 break 2
15995 fi
15996 done
15997 done
15998 IFS=$as_save_IFS
15999
16000 ;;
16001 esac
16002 fi
16003 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16004 if test -n "$ac_pt_PKG_CONFIG"; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16006 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16007 else
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009 $as_echo "no" >&6; }
16010 fi
16011
16012 if test "x$ac_pt_PKG_CONFIG" = x; then
16013 PKG_CONFIG=""
16014 else
16015 case $cross_compiling:$ac_tool_warned in
16016 yes:)
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16019 ac_tool_warned=yes ;;
16020 esac
16021 PKG_CONFIG=$ac_pt_PKG_CONFIG
16022 fi
16023 else
16024 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16025 fi
16026
16027 fi
16028 if test -n "$PKG_CONFIG"; then
16029 _pkg_min_version=0.22
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16031 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16032 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16034 $as_echo "yes" >&6; }
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037 $as_echo "no" >&6; }
16038 PKG_CONFIG=""
16039 fi
16040 fi
16041
16042 # Extract the first word of "git", so it can be a program name with args.
16043 set dummy git; ac_word=$2
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16045 $as_echo_n "checking for $ac_word... " >&6; }
16046 if ${ac_cv_path_GIT+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 case $GIT in
16050 [\\/]* | ?:[\\/]*)
16051 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16052 ;;
16053 *)
16054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16056 do
16057 IFS=$as_save_IFS
16058 test -z "$as_dir" && as_dir=.
16059 for ac_exec_ext in '' $ac_executable_extensions; do
16060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16063 break 2
16064 fi
16065 done
16066 done
16067 IFS=$as_save_IFS
16068
16069 ;;
16070 esac
16071 fi
16072 GIT=$ac_cv_path_GIT
16073 if test -n "$GIT"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16075 $as_echo "$GIT" >&6; }
16076 else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078 $as_echo "no" >&6; }
16079 fi
16080
16081
16082 # Extract the first word of "time", so it can be a program name with args.
16083 set dummy time; ac_word=$2
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085 $as_echo_n "checking for $ac_word... " >&6; }
16086 if ${ac_cv_path_TIME+:} false; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 case $TIME in
16090 [\\/]* | ?:[\\/]*)
16091 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16092 ;;
16093 *)
16094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16095 for as_dir in $PATH
16096 do
16097 IFS=$as_save_IFS
16098 test -z "$as_dir" && as_dir=.
16099 for ac_exec_ext in '' $ac_executable_extensions; do
16100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16101 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16103 break 2
16104 fi
16105 done
16106 done
16107 IFS=$as_save_IFS
16108
16109 ;;
16110 esac
16111 fi
16112 TIME=$ac_cv_path_TIME
16113 if test -n "$TIME"; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16115 $as_echo "$TIME" >&6; }
16116 else
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16119 fi
16120
16121
16122
16123
16124
16125
16126
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16128 $as_echo_n "checking for bison >= 2.3... " >&6; }
16129 if test -z "$BISON"; then
16130 ac_path_BISON_found=false
16131 # Loop through the user's path and test for each of PROGNAME-LIST
16132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16133 for as_dir in $PATH
16134 do
16135 IFS=$as_save_IFS
16136 test -z "$as_dir" && as_dir=.
16137 for ac_prog in bison; do
16138 for ac_exec_ext in '' $ac_executable_extensions; do
16139 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16140 as_fn_executable_p "$ac_path_BISON" || continue
16141 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16142 if ${version:+false} :; then :
16143
16144 else
16145 as_awk_strverscmp='
16146 # Use only awk features that work with 7th edition Unix awk (1978).
16147 # My, what an old awk you have, Mr. Solaris!
16148 END {
16149 while (length(v1) && length(v2)) {
16150 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16151 # Normally this is a single character, but if v1 and v2 contain digits,
16152 # compare them as integers and fractions as strverscmp does.
16153 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16154 # Split v1 and v2 into their leading digit string components d1 and d2,
16155 # and advance v1 and v2 past the leading digit strings.
16156 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16157 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16158 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16159 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16160 if (d1 ~ /^0/) {
16161 if (d2 ~ /^0/) {
16162 # Compare two fractions.
16163 while (d1 ~ /^0/ && d2 ~ /^0/) {
16164 d1 = substr(d1, 2); len1--
16165 d2 = substr(d2, 2); len2--
16166 }
16167 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16168 # The two components differ in length, and the common prefix
16169 # contains only leading zeros. Consider the longer to be less.
16170 d1 = -len1
16171 d2 = -len2
16172 } else {
16173 # Otherwise, compare as strings.
16174 d1 = "x" d1
16175 d2 = "x" d2
16176 }
16177 } else {
16178 # A fraction is less than an integer.
16179 exit 1
16180 }
16181 } else {
16182 if (d2 ~ /^0/) {
16183 # An integer is greater than a fraction.
16184 exit 2
16185 } else {
16186 # Compare two integers.
16187 d1 += 0
16188 d2 += 0
16189 }
16190 }
16191 } else {
16192 # The normal case, without worrying about digits.
16193 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16194 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16195 }
16196 if (d1 < d2) exit 1
16197 if (d1 > d2) exit 2
16198 }
16199 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16200 # which mishandles some comparisons of empty strings to integers.
16201 if (length(v2)) exit 1
16202 if (length(v1)) exit 2
16203 }
16204 '
16205 as_arg_v1=$version
16206 as_arg_v2=2.3
16207 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16208 case $? in #(
16209 1) :
16210 ;; #(
16211 0) :
16212 ac_cv_path_BISON=$ac_path_BISON ;; #(
16213 2) :
16214 ac_cv_path_BISON=$ac_path_BISON ;; #(
16215 *) :
16216 ;;
16217 esac
16218 fi
16219
16220 $ac_path_BISON_found && break 3
16221 done
16222 done
16223 done
16224 IFS=$as_save_IFS
16225 if test -z "$ac_cv_path_BISON"; then
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16227 $as_echo "no" >&6; }
16228 fi
16229 else
16230 ac_cv_path_BISON=$BISON
16231 fi
16232
16233
16234 if true; then :
16235
16236 BISON=$ac_cv_path_BISON
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16239 $as_echo "$BISON" >&6; }
16240
16241 else
16242 if true; then :
16243
16244 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16245
16246 else
16247
16248 BISON=:
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16252
16253 fi
16254 fi
16255
16256
16257
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16260 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16261 if test -z "$FLEX"; then
16262 ac_path_FLEX_found=false
16263 # Loop through the user's path and test for each of PROGNAME-LIST
16264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16265 for as_dir in $PATH
16266 do
16267 IFS=$as_save_IFS
16268 test -z "$as_dir" && as_dir=.
16269 for ac_prog in flex; do
16270 for ac_exec_ext in '' $ac_executable_extensions; do
16271 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16272 as_fn_executable_p "$ac_path_FLEX" || continue
16273 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16274 if ${version:+false} :; then :
16275
16276 else
16277 as_arg_v1=$version
16278 as_arg_v2=2.5.33
16279 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16280 case $? in #(
16281 1) :
16282 ;; #(
16283 0) :
16284 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16285 2) :
16286 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16287 *) :
16288 ;;
16289 esac
16290 fi
16291
16292 $ac_path_FLEX_found && break 3
16293 done
16294 done
16295 done
16296 IFS=$as_save_IFS
16297 if test -z "$ac_cv_path_FLEX"; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299 $as_echo "no" >&6; }
16300 fi
16301 else
16302 ac_cv_path_FLEX=$FLEX
16303 fi
16304
16305
16306 if true; then :
16307
16308 FLEX=$ac_cv_path_FLEX
16309
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16311 $as_echo "$FLEX" >&6; }
16312
16313 else
16314 if true; then :
16315
16316 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16317
16318 else
16319
16320 FLEX=:
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324
16325 fi
16326 fi
16327
16328
16329
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16332 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16333 if test -z "$GPERF"; then
16334 ac_path_GPERF_found=false
16335 # Loop through the user's path and test for each of PROGNAME-LIST
16336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337 for as_dir in $PATH
16338 do
16339 IFS=$as_save_IFS
16340 test -z "$as_dir" && as_dir=.
16341 for ac_prog in gperf; do
16342 for ac_exec_ext in '' $ac_executable_extensions; do
16343 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16344 as_fn_executable_p "$ac_path_GPERF" || continue
16345 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16346 if ${version:+false} :; then :
16347
16348 else
16349 as_arg_v1=$version
16350 as_arg_v2=3.0.3
16351 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16352 case $? in #(
16353 1) :
16354 ;; #(
16355 0) :
16356 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16357 2) :
16358 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16359 *) :
16360 ;;
16361 esac
16362 fi
16363
16364 $ac_path_GPERF_found && break 3
16365 done
16366 done
16367 done
16368 IFS=$as_save_IFS
16369 if test -z "$ac_cv_path_GPERF"; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371 $as_echo "no" >&6; }
16372 fi
16373 else
16374 ac_cv_path_GPERF=$GPERF
16375 fi
16376
16377
16378 if true; then :
16379
16380 GPERF=$ac_cv_path_GPERF
16381
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16383 $as_echo "$GPERF" >&6; }
16384
16385 else
16386 if true; then :
16387
16388 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16389
16390 else
16391
16392 GPERF=:
16393
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395 $as_echo "no" >&6; }
16396
16397 fi
16398 fi
16399
16400
16401
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16404 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16405 if test -z "$GNUTAR"; then
16406 ac_path_GNUTAR_found=false
16407 # Loop through the user's path and test for each of PROGNAME-LIST
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16410 do
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_prog in tar gtar gnutar; do
16414 for ac_exec_ext in '' $ac_executable_extensions; do
16415 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16416 as_fn_executable_p "$ac_path_GNUTAR" || continue
16417 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16418 if ${version:+false} :; then :
16419
16420 else
16421 as_arg_v1=$version
16422 as_arg_v2=1.19
16423 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16424 case $? in #(
16425 1) :
16426 ;; #(
16427 0) :
16428 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16429 2) :
16430 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16431 *) :
16432 ;;
16433 esac
16434 fi
16435
16436 $ac_path_GNUTAR_found && break 3
16437 done
16438 done
16439 done
16440 IFS=$as_save_IFS
16441 if test -z "$ac_cv_path_GNUTAR"; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443 $as_echo "no" >&6; }
16444 fi
16445 else
16446 ac_cv_path_GNUTAR=$GNUTAR
16447 fi
16448
16449
16450 if true; then :
16451
16452 GNUTAR=$ac_cv_path_GNUTAR
16453
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16455 $as_echo "$GNUTAR" >&6; }
16456
16457 else
16458 if true; then :
16459
16460 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16461
16462 else
16463
16464 GNUTAR=:
16465
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16468
16469 fi
16470 fi
16471
16472
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16474 $as_echo_n "checking bison for %code{}... " >&6; }
16475 echo '%code{}%%_:' >conftest.y
16476 if $BISON conftest.y -o/dev/null 2>/dev/null; then
16477
16478 for element in Bison24; do
16479 haveit=
16480 for x in $CY_FILTERS; do
16481
16482 acl_save_prefix="$prefix"
16483 prefix="$acl_final_prefix"
16484 acl_save_exec_prefix="$exec_prefix"
16485 exec_prefix="$acl_final_exec_prefix"
16486 eval x=\"$x\"
16487 exec_prefix="$acl_save_exec_prefix"
16488 prefix="$acl_save_prefix"
16489
16490 if test "X$x" = "X$element"; then
16491 haveit=yes
16492 break
16493 fi
16494 done
16495 if test -z "$haveit"; then
16496 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16497 fi
16498 done
16499
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16501 $as_echo "yes" >&6; }
16502 else
16503
16504 for element in Bison23; do
16505 haveit=
16506 for x in $CY_FILTERS; do
16507
16508 acl_save_prefix="$prefix"
16509 prefix="$acl_final_prefix"
16510 acl_save_exec_prefix="$exec_prefix"
16511 exec_prefix="$acl_final_exec_prefix"
16512 eval x=\"$x\"
16513 exec_prefix="$acl_save_exec_prefix"
16514 prefix="$acl_save_prefix"
16515
16516 if test "X$x" = "X$element"; then
16517 haveit=yes
16518 break
16519 fi
16520 done
16521 if test -z "$haveit"; then
16522 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16523 fi
16524 done
16525
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16528 fi
16529
16530 rm -f conftest.y
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541 if ${CFLAGS+:} false; then :
16542 case " $CFLAGS " in
16543 *" "*)
16544 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16545 (: CFLAGS already contains ) 2>&5
16546 ac_status=$?
16547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16548 test $ac_status = 0; }
16549 ;;
16550 *)
16551 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16552 (: CFLAGS="$CFLAGS ") 2>&5
16553 ac_status=$?
16554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16555 test $ac_status = 0; }
16556 CFLAGS="$CFLAGS "
16557 ;;
16558 esac
16559 else
16560 CFLAGS=""
16561 fi
16562
16563 ac_ext=c
16564 ac_cpp='$CPP $CPPFLAGS'
16565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16570 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16571 if ${ac_cv_cflags_warn_all+:} false; then :
16572 $as_echo_n "(cached) " >&6
16573 else
16574 ac_cv_cflags_warn_all="no, unknown"
16575 ac_save_CFLAGS="$CFLAGS"
16576 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" #
16577 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580
16581 int
16582 main ()
16583 {
16584
16585 ;
16586 return 0;
16587 }
16588 _ACEOF
16589 if ac_fn_c_try_compile "$LINENO"; then :
16590 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16591 fi
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 done
16594 CFLAGS="$ac_save_CFLAGS"
16595
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16598 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16599
16600 case ".$ac_cv_cflags_warn_all" in
16601 .ok|.ok,*) ;;
16602 .|.no|.no,*) ;;
16603 *) if ${CFLAGS+:} false; then :
16604 case " $CFLAGS " in
16605 *" $ac_cv_cflags_warn_all "*)
16606 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16607 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16608 ac_status=$?
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; }
16611 ;;
16612 *)
16613 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16614 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16615 ac_status=$?
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; }
16618 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16619 ;;
16620 esac
16621 else
16622 CFLAGS="$ac_cv_cflags_warn_all"
16623 fi
16624 ;;
16625 esac
16626
16627 ac_ext=cpp
16628 ac_cpp='$CXXCPP $CPPFLAGS'
16629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16632
16633
16634 ac_ext=cpp
16635 ac_cpp='$CXXCPP $CPPFLAGS'
16636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16641 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16642 if ${ac_cv_cxxflags_warn_all+:} false; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645 ac_cv_cxxflags_warn_all="no, unknown"
16646 ac_save_CXXFLAGS="$CXXFLAGS"
16647 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" #
16648 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651
16652 int
16653 main ()
16654 {
16655
16656 ;
16657 return 0;
16658 }
16659 _ACEOF
16660 if ac_fn_cxx_try_compile "$LINENO"; then :
16661 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 done
16665 CXXFLAGS="$ac_save_CXXFLAGS"
16666
16667 fi
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16669 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16670
16671 case ".$ac_cv_cxxflags_warn_all" in
16672 .ok|.ok,*) ;;
16673 .|.no|.no,*) ;;
16674 *) if ${CXXFLAGS+:} false; then :
16675 case " $CXXFLAGS " in
16676 *" $ac_cv_cxxflags_warn_all "*)
16677 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16678 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16679 ac_status=$?
16680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16681 test $ac_status = 0; }
16682 ;;
16683 *)
16684 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16685 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16686 ac_status=$?
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }
16689 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16690 ;;
16691 esac
16692 else
16693 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16694 fi
16695 ;;
16696 esac
16697
16698 ac_ext=cpp
16699 ac_cpp='$CXXCPP $CPPFLAGS'
16700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16703
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16706 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16707 if ${ac_cv_cxxflags_warn_all+:} false; then :
16708 $as_echo_n "(cached) " >&6
16709 else
16710 ac_cv_cxxflags_warn_all="no, unknown"
16711 ac_save_CXXFLAGS="$CXXFLAGS"
16712 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" #
16713 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16716
16717 int
16718 main ()
16719 {
16720
16721 ;
16722 return 0;
16723 }
16724 _ACEOF
16725 if ac_fn_cxx_try_compile "$LINENO"; then :
16726 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 done
16730 CXXFLAGS="$ac_save_CXXFLAGS"
16731
16732 fi
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16734 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16735
16736 case ".$ac_cv_cxxflags_warn_all" in
16737 .ok|.ok,*) ;;
16738 .|.no|.no,*) ;;
16739 *) if ${CXXFLAGS+:} false; then :
16740 case " $CXXFLAGS " in
16741 *" $ac_cv_cxxflags_warn_all "*)
16742 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16743 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16744 ac_status=$?
16745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16746 test $ac_status = 0; }
16747 ;;
16748 *)
16749 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16750 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16751 ac_status=$?
16752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16753 test $ac_status = 0; }
16754 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16755 ;;
16756 esac
16757 else
16758 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16759 fi
16760 ;;
16761 esac
16762
16763
16764
16765
16766
16767 ac_ext=c
16768 ac_cpp='$CPP $CPPFLAGS'
16769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16772
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16774 $as_echo_n "checking for cc -Werror... " >&6; }
16775
16776 cy_save=$CFLAGS
16777
16778 for element in -Werror; do
16779 haveit=
16780 for x in $CFLAGS; do
16781
16782 acl_save_prefix="$prefix"
16783 prefix="$acl_final_prefix"
16784 acl_save_exec_prefix="$exec_prefix"
16785 exec_prefix="$acl_final_exec_prefix"
16786 eval x=\"$x\"
16787 exec_prefix="$acl_save_exec_prefix"
16788 prefix="$acl_save_prefix"
16789
16790 if test "X$x" = "X$element"; then
16791 haveit=yes
16792 break
16793 fi
16794 done
16795 if test -z "$haveit"; then
16796 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16797 fi
16798 done
16799
16800
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803
16804 _ACEOF
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 cy_good=1
16807 else
16808 cy_good=0
16809 fi
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811
16812 CFLAGS=$cy_save
16813 if test "x$cy_good" = x1; then :
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16815 $as_echo "yes" >&6; }
16816
16817 for element in -Werror; do
16818 haveit=
16819 for x in $CFLAGS; do
16820
16821 acl_save_prefix="$prefix"
16822 prefix="$acl_final_prefix"
16823 acl_save_exec_prefix="$exec_prefix"
16824 exec_prefix="$acl_final_exec_prefix"
16825 eval x=\"$x\"
16826 exec_prefix="$acl_save_exec_prefix"
16827 prefix="$acl_save_prefix"
16828
16829 if test "X$x" = "X$element"; then
16830 haveit=yes
16831 break
16832 fi
16833 done
16834 if test -z "$haveit"; then
16835 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16836 fi
16837 done
16838
16839
16840 else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844
16845 ac_ext=cpp
16846 ac_cpp='$CXXCPP $CPPFLAGS'
16847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16850
16851
16852
16853 ac_ext=cpp
16854 ac_cpp='$CXXCPP $CPPFLAGS'
16855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16858
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16860 $as_echo_n "checking for c++ -Werror... " >&6; }
16861
16862 cy_save=$CXXFLAGS
16863
16864 for element in -Werror; do
16865 haveit=
16866 for x in $CXXFLAGS; do
16867
16868 acl_save_prefix="$prefix"
16869 prefix="$acl_final_prefix"
16870 acl_save_exec_prefix="$exec_prefix"
16871 exec_prefix="$acl_final_exec_prefix"
16872 eval x=\"$x\"
16873 exec_prefix="$acl_save_exec_prefix"
16874 prefix="$acl_save_prefix"
16875
16876 if test "X$x" = "X$element"; then
16877 haveit=yes
16878 break
16879 fi
16880 done
16881 if test -z "$haveit"; then
16882 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16883 fi
16884 done
16885
16886
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16889
16890 _ACEOF
16891 if ac_fn_cxx_try_compile "$LINENO"; then :
16892 cy_good=1
16893 else
16894 cy_good=0
16895 fi
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897
16898 CXXFLAGS=$cy_save
16899 if test "x$cy_good" = x1; then :
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16901 $as_echo "yes" >&6; }
16902
16903 for element in -Werror; do
16904 haveit=
16905 for x in $CXXFLAGS; do
16906
16907 acl_save_prefix="$prefix"
16908 prefix="$acl_final_prefix"
16909 acl_save_exec_prefix="$exec_prefix"
16910 exec_prefix="$acl_final_exec_prefix"
16911 eval x=\"$x\"
16912 exec_prefix="$acl_save_exec_prefix"
16913 prefix="$acl_save_prefix"
16914
16915 if test "X$x" = "X$element"; then
16916 haveit=yes
16917 break
16918 fi
16919 done
16920 if test -z "$haveit"; then
16921 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16922 fi
16923 done
16924
16925
16926 else
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928 $as_echo "no" >&6; }
16929 fi
16930
16931 ac_ext=cpp
16932 ac_cpp='$CXXCPP $CPPFLAGS'
16933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16936
16937
16938
16939 ac_ext=mm
16940 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16941 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16942 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16943 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16944
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16946 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
16947
16948 cy_save=$OBJCXXFLAGS
16949
16950 for element in -Werror; do
16951 haveit=
16952 for x in $OBJCXXFLAGS; do
16953
16954 acl_save_prefix="$prefix"
16955 prefix="$acl_final_prefix"
16956 acl_save_exec_prefix="$exec_prefix"
16957 exec_prefix="$acl_final_exec_prefix"
16958 eval x=\"$x\"
16959 exec_prefix="$acl_save_exec_prefix"
16960 prefix="$acl_save_prefix"
16961
16962 if test "X$x" = "X$element"; then
16963 haveit=yes
16964 break
16965 fi
16966 done
16967 if test -z "$haveit"; then
16968 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16969 fi
16970 done
16971
16972
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975
16976 _ACEOF
16977 if ac_fn_objcxx_try_compile "$LINENO"; then :
16978 cy_good=1
16979 else
16980 cy_good=0
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983
16984 OBJCXXFLAGS=$cy_save
16985 if test "x$cy_good" = x1; then :
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16987 $as_echo "yes" >&6; }
16988
16989 for element in -Werror; do
16990 haveit=
16991 for x in $OBJCXXFLAGS; do
16992
16993 acl_save_prefix="$prefix"
16994 prefix="$acl_final_prefix"
16995 acl_save_exec_prefix="$exec_prefix"
16996 exec_prefix="$acl_final_exec_prefix"
16997 eval x=\"$x\"
16998 exec_prefix="$acl_save_exec_prefix"
16999 prefix="$acl_save_prefix"
17000
17001 if test "X$x" = "X$element"; then
17002 haveit=yes
17003 break
17004 fi
17005 done
17006 if test -z "$haveit"; then
17007 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17008 fi
17009 done
17010
17011
17012 else
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 $as_echo "no" >&6; }
17015 fi
17016
17017 ac_ext=cpp
17018 ac_cpp='$CXXCPP $CPPFLAGS'
17019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17022
17023
17024
17025
17026
17027
17028 ac_ext=c
17029 ac_cpp='$CPP $CPPFLAGS'
17030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17033
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17035 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17036
17037 cy_save=$CFLAGS
17038
17039 for element in -Wno-deprecated-declarations; do
17040 haveit=
17041 for x in $CFLAGS; do
17042
17043 acl_save_prefix="$prefix"
17044 prefix="$acl_final_prefix"
17045 acl_save_exec_prefix="$exec_prefix"
17046 exec_prefix="$acl_final_exec_prefix"
17047 eval x=\"$x\"
17048 exec_prefix="$acl_save_exec_prefix"
17049 prefix="$acl_save_prefix"
17050
17051 if test "X$x" = "X$element"; then
17052 haveit=yes
17053 break
17054 fi
17055 done
17056 if test -z "$haveit"; then
17057 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17058 fi
17059 done
17060
17061
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067 cy_good=1
17068 else
17069 cy_good=0
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072
17073 CFLAGS=$cy_save
17074 if test "x$cy_good" = x1; then :
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076 $as_echo "yes" >&6; }
17077
17078 for element in -Wno-deprecated-declarations; do
17079 haveit=
17080 for x in $CFLAGS; do
17081
17082 acl_save_prefix="$prefix"
17083 prefix="$acl_final_prefix"
17084 acl_save_exec_prefix="$exec_prefix"
17085 exec_prefix="$acl_final_exec_prefix"
17086 eval x=\"$x\"
17087 exec_prefix="$acl_save_exec_prefix"
17088 prefix="$acl_save_prefix"
17089
17090 if test "X$x" = "X$element"; then
17091 haveit=yes
17092 break
17093 fi
17094 done
17095 if test -z "$haveit"; then
17096 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17097 fi
17098 done
17099
17100
17101 else
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103 $as_echo "no" >&6; }
17104 fi
17105
17106 ac_ext=cpp
17107 ac_cpp='$CXXCPP $CPPFLAGS'
17108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17111
17112
17113
17114 ac_ext=cpp
17115 ac_cpp='$CXXCPP $CPPFLAGS'
17116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17121 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17122
17123 cy_save=$CXXFLAGS
17124
17125 for element in -Wno-deprecated-declarations; do
17126 haveit=
17127 for x in $CXXFLAGS; do
17128
17129 acl_save_prefix="$prefix"
17130 prefix="$acl_final_prefix"
17131 acl_save_exec_prefix="$exec_prefix"
17132 exec_prefix="$acl_final_exec_prefix"
17133 eval x=\"$x\"
17134 exec_prefix="$acl_save_exec_prefix"
17135 prefix="$acl_save_prefix"
17136
17137 if test "X$x" = "X$element"; then
17138 haveit=yes
17139 break
17140 fi
17141 done
17142 if test -z "$haveit"; then
17143 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17144 fi
17145 done
17146
17147
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150
17151 _ACEOF
17152 if ac_fn_cxx_try_compile "$LINENO"; then :
17153 cy_good=1
17154 else
17155 cy_good=0
17156 fi
17157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158
17159 CXXFLAGS=$cy_save
17160 if test "x$cy_good" = x1; then :
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17162 $as_echo "yes" >&6; }
17163
17164 for element in -Wno-deprecated-declarations; do
17165 haveit=
17166 for x in $CXXFLAGS; do
17167
17168 acl_save_prefix="$prefix"
17169 prefix="$acl_final_prefix"
17170 acl_save_exec_prefix="$exec_prefix"
17171 exec_prefix="$acl_final_exec_prefix"
17172 eval x=\"$x\"
17173 exec_prefix="$acl_save_exec_prefix"
17174 prefix="$acl_save_prefix"
17175
17176 if test "X$x" = "X$element"; then
17177 haveit=yes
17178 break
17179 fi
17180 done
17181 if test -z "$haveit"; then
17182 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17183 fi
17184 done
17185
17186
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190 fi
17191
17192 ac_ext=cpp
17193 ac_cpp='$CXXCPP $CPPFLAGS'
17194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17197
17198
17199
17200 ac_ext=mm
17201 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17202 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17203 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17204 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17205
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17207 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17208
17209 cy_save=$OBJCXXFLAGS
17210
17211 for element in -Wno-deprecated-declarations; do
17212 haveit=
17213 for x in $OBJCXXFLAGS; do
17214
17215 acl_save_prefix="$prefix"
17216 prefix="$acl_final_prefix"
17217 acl_save_exec_prefix="$exec_prefix"
17218 exec_prefix="$acl_final_exec_prefix"
17219 eval x=\"$x\"
17220 exec_prefix="$acl_save_exec_prefix"
17221 prefix="$acl_save_prefix"
17222
17223 if test "X$x" = "X$element"; then
17224 haveit=yes
17225 break
17226 fi
17227 done
17228 if test -z "$haveit"; then
17229 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17230 fi
17231 done
17232
17233
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17236
17237 _ACEOF
17238 if ac_fn_objcxx_try_compile "$LINENO"; then :
17239 cy_good=1
17240 else
17241 cy_good=0
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244
17245 OBJCXXFLAGS=$cy_save
17246 if test "x$cy_good" = x1; then :
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17248 $as_echo "yes" >&6; }
17249
17250 for element in -Wno-deprecated-declarations; do
17251 haveit=
17252 for x in $OBJCXXFLAGS; do
17253
17254 acl_save_prefix="$prefix"
17255 prefix="$acl_final_prefix"
17256 acl_save_exec_prefix="$exec_prefix"
17257 exec_prefix="$acl_final_exec_prefix"
17258 eval x=\"$x\"
17259 exec_prefix="$acl_save_exec_prefix"
17260 prefix="$acl_save_prefix"
17261
17262 if test "X$x" = "X$element"; then
17263 haveit=yes
17264 break
17265 fi
17266 done
17267 if test -z "$haveit"; then
17268 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17269 fi
17270 done
17271
17272
17273 else
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17275 $as_echo "no" >&6; }
17276 fi
17277
17278 ac_ext=cpp
17279 ac_cpp='$CXXCPP $CPPFLAGS'
17280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17283
17284
17285
17286
17287
17288
17289 ac_ext=c
17290 ac_cpp='$CPP $CPPFLAGS'
17291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17294
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17296 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17297
17298 cy_save=$CFLAGS
17299
17300 for element in -Wno-dangling-else; do
17301 haveit=
17302 for x in $CFLAGS; do
17303
17304 acl_save_prefix="$prefix"
17305 prefix="$acl_final_prefix"
17306 acl_save_exec_prefix="$exec_prefix"
17307 exec_prefix="$acl_final_exec_prefix"
17308 eval x=\"$x\"
17309 exec_prefix="$acl_save_exec_prefix"
17310 prefix="$acl_save_prefix"
17311
17312 if test "X$x" = "X$element"; then
17313 haveit=yes
17314 break
17315 fi
17316 done
17317 if test -z "$haveit"; then
17318 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17319 fi
17320 done
17321
17322
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325
17326 _ACEOF
17327 if ac_fn_c_try_compile "$LINENO"; then :
17328 cy_good=1
17329 else
17330 cy_good=0
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333
17334 CFLAGS=$cy_save
17335 if test "x$cy_good" = x1; then :
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337 $as_echo "yes" >&6; }
17338
17339 for element in -Wno-dangling-else; do
17340 haveit=
17341 for x in $CFLAGS; do
17342
17343 acl_save_prefix="$prefix"
17344 prefix="$acl_final_prefix"
17345 acl_save_exec_prefix="$exec_prefix"
17346 exec_prefix="$acl_final_exec_prefix"
17347 eval x=\"$x\"
17348 exec_prefix="$acl_save_exec_prefix"
17349 prefix="$acl_save_prefix"
17350
17351 if test "X$x" = "X$element"; then
17352 haveit=yes
17353 break
17354 fi
17355 done
17356 if test -z "$haveit"; then
17357 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17358 fi
17359 done
17360
17361
17362 else
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364 $as_echo "no" >&6; }
17365 fi
17366
17367 ac_ext=cpp
17368 ac_cpp='$CXXCPP $CPPFLAGS'
17369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17372
17373
17374
17375 ac_ext=cpp
17376 ac_cpp='$CXXCPP $CPPFLAGS'
17377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17380
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17382 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
17383
17384 cy_save=$CXXFLAGS
17385
17386 for element in -Wno-dangling-else; do
17387 haveit=
17388 for x in $CXXFLAGS; do
17389
17390 acl_save_prefix="$prefix"
17391 prefix="$acl_final_prefix"
17392 acl_save_exec_prefix="$exec_prefix"
17393 exec_prefix="$acl_final_exec_prefix"
17394 eval x=\"$x\"
17395 exec_prefix="$acl_save_exec_prefix"
17396 prefix="$acl_save_prefix"
17397
17398 if test "X$x" = "X$element"; then
17399 haveit=yes
17400 break
17401 fi
17402 done
17403 if test -z "$haveit"; then
17404 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17405 fi
17406 done
17407
17408
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411
17412 _ACEOF
17413 if ac_fn_cxx_try_compile "$LINENO"; then :
17414 cy_good=1
17415 else
17416 cy_good=0
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419
17420 CXXFLAGS=$cy_save
17421 if test "x$cy_good" = x1; then :
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17423 $as_echo "yes" >&6; }
17424
17425 for element in -Wno-dangling-else; do
17426 haveit=
17427 for x in $CXXFLAGS; do
17428
17429 acl_save_prefix="$prefix"
17430 prefix="$acl_final_prefix"
17431 acl_save_exec_prefix="$exec_prefix"
17432 exec_prefix="$acl_final_exec_prefix"
17433 eval x=\"$x\"
17434 exec_prefix="$acl_save_exec_prefix"
17435 prefix="$acl_save_prefix"
17436
17437 if test "X$x" = "X$element"; then
17438 haveit=yes
17439 break
17440 fi
17441 done
17442 if test -z "$haveit"; then
17443 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17444 fi
17445 done
17446
17447
17448 else
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17450 $as_echo "no" >&6; }
17451 fi
17452
17453 ac_ext=cpp
17454 ac_cpp='$CXXCPP $CPPFLAGS'
17455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17458
17459
17460
17461 ac_ext=mm
17462 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17463 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17466
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17468 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17469
17470 cy_save=$OBJCXXFLAGS
17471
17472 for element in -Wno-dangling-else; do
17473 haveit=
17474 for x in $OBJCXXFLAGS; do
17475
17476 acl_save_prefix="$prefix"
17477 prefix="$acl_final_prefix"
17478 acl_save_exec_prefix="$exec_prefix"
17479 exec_prefix="$acl_final_exec_prefix"
17480 eval x=\"$x\"
17481 exec_prefix="$acl_save_exec_prefix"
17482 prefix="$acl_save_prefix"
17483
17484 if test "X$x" = "X$element"; then
17485 haveit=yes
17486 break
17487 fi
17488 done
17489 if test -z "$haveit"; then
17490 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17491 fi
17492 done
17493
17494
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h. */
17497
17498 _ACEOF
17499 if ac_fn_objcxx_try_compile "$LINENO"; then :
17500 cy_good=1
17501 else
17502 cy_good=0
17503 fi
17504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505
17506 OBJCXXFLAGS=$cy_save
17507 if test "x$cy_good" = x1; then :
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17509 $as_echo "yes" >&6; }
17510
17511 for element in -Wno-dangling-else; do
17512 haveit=
17513 for x in $OBJCXXFLAGS; do
17514
17515 acl_save_prefix="$prefix"
17516 prefix="$acl_final_prefix"
17517 acl_save_exec_prefix="$exec_prefix"
17518 exec_prefix="$acl_final_exec_prefix"
17519 eval x=\"$x\"
17520 exec_prefix="$acl_save_exec_prefix"
17521 prefix="$acl_save_prefix"
17522
17523 if test "X$x" = "X$element"; then
17524 haveit=yes
17525 break
17526 fi
17527 done
17528 if test -z "$haveit"; then
17529 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17530 fi
17531 done
17532
17533
17534 else
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536 $as_echo "no" >&6; }
17537 fi
17538
17539 ac_ext=cpp
17540 ac_cpp='$CXXCPP $CPPFLAGS'
17541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17544
17545
17546
17547
17548
17549 ac_ext=c
17550 ac_cpp='$CPP $CPPFLAGS'
17551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17554
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17556 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17557
17558 cy_save=$CFLAGS
17559
17560 for element in -Wno-overloaded-virtual; do
17561 haveit=
17562 for x in $CFLAGS; do
17563
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17568 eval x=\"$x\"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17571
17572 if test "X$x" = "X$element"; then
17573 haveit=yes
17574 break
17575 fi
17576 done
17577 if test -z "$haveit"; then
17578 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17579 fi
17580 done
17581
17582
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585
17586 _ACEOF
17587 if ac_fn_c_try_compile "$LINENO"; then :
17588 cy_good=1
17589 else
17590 cy_good=0
17591 fi
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593
17594 CFLAGS=$cy_save
17595 if test "x$cy_good" = x1; then :
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17597 $as_echo "yes" >&6; }
17598
17599 for element in -Wno-overloaded-virtual; do
17600 haveit=
17601 for x in $CFLAGS; do
17602
17603 acl_save_prefix="$prefix"
17604 prefix="$acl_final_prefix"
17605 acl_save_exec_prefix="$exec_prefix"
17606 exec_prefix="$acl_final_exec_prefix"
17607 eval x=\"$x\"
17608 exec_prefix="$acl_save_exec_prefix"
17609 prefix="$acl_save_prefix"
17610
17611 if test "X$x" = "X$element"; then
17612 haveit=yes
17613 break
17614 fi
17615 done
17616 if test -z "$haveit"; then
17617 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17618 fi
17619 done
17620
17621
17622 else
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624 $as_echo "no" >&6; }
17625 fi
17626
17627 ac_ext=cpp
17628 ac_cpp='$CXXCPP $CPPFLAGS'
17629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17632
17633
17634
17635 ac_ext=cpp
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17642 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17643
17644 cy_save=$CXXFLAGS
17645
17646 for element in -Wno-overloaded-virtual; do
17647 haveit=
17648 for x in $CXXFLAGS; do
17649
17650 acl_save_prefix="$prefix"
17651 prefix="$acl_final_prefix"
17652 acl_save_exec_prefix="$exec_prefix"
17653 exec_prefix="$acl_final_exec_prefix"
17654 eval x=\"$x\"
17655 exec_prefix="$acl_save_exec_prefix"
17656 prefix="$acl_save_prefix"
17657
17658 if test "X$x" = "X$element"; then
17659 haveit=yes
17660 break
17661 fi
17662 done
17663 if test -z "$haveit"; then
17664 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17665 fi
17666 done
17667
17668
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671
17672 _ACEOF
17673 if ac_fn_cxx_try_compile "$LINENO"; then :
17674 cy_good=1
17675 else
17676 cy_good=0
17677 fi
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679
17680 CXXFLAGS=$cy_save
17681 if test "x$cy_good" = x1; then :
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17683 $as_echo "yes" >&6; }
17684
17685 for element in -Wno-overloaded-virtual; do
17686 haveit=
17687 for x in $CXXFLAGS; do
17688
17689 acl_save_prefix="$prefix"
17690 prefix="$acl_final_prefix"
17691 acl_save_exec_prefix="$exec_prefix"
17692 exec_prefix="$acl_final_exec_prefix"
17693 eval x=\"$x\"
17694 exec_prefix="$acl_save_exec_prefix"
17695 prefix="$acl_save_prefix"
17696
17697 if test "X$x" = "X$element"; then
17698 haveit=yes
17699 break
17700 fi
17701 done
17702 if test -z "$haveit"; then
17703 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17704 fi
17705 done
17706
17707
17708 else
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17710 $as_echo "no" >&6; }
17711 fi
17712
17713 ac_ext=cpp
17714 ac_cpp='$CXXCPP $CPPFLAGS'
17715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17718
17719
17720
17721 ac_ext=mm
17722 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17723 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17726
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17728 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17729
17730 cy_save=$OBJCXXFLAGS
17731
17732 for element in -Wno-overloaded-virtual; do
17733 haveit=
17734 for x in $OBJCXXFLAGS; do
17735
17736 acl_save_prefix="$prefix"
17737 prefix="$acl_final_prefix"
17738 acl_save_exec_prefix="$exec_prefix"
17739 exec_prefix="$acl_final_exec_prefix"
17740 eval x=\"$x\"
17741 exec_prefix="$acl_save_exec_prefix"
17742 prefix="$acl_save_prefix"
17743
17744 if test "X$x" = "X$element"; then
17745 haveit=yes
17746 break
17747 fi
17748 done
17749 if test -z "$haveit"; then
17750 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17751 fi
17752 done
17753
17754
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17757
17758 _ACEOF
17759 if ac_fn_objcxx_try_compile "$LINENO"; then :
17760 cy_good=1
17761 else
17762 cy_good=0
17763 fi
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765
17766 OBJCXXFLAGS=$cy_save
17767 if test "x$cy_good" = x1; then :
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17769 $as_echo "yes" >&6; }
17770
17771 for element in -Wno-overloaded-virtual; do
17772 haveit=
17773 for x in $OBJCXXFLAGS; do
17774
17775 acl_save_prefix="$prefix"
17776 prefix="$acl_final_prefix"
17777 acl_save_exec_prefix="$exec_prefix"
17778 exec_prefix="$acl_final_exec_prefix"
17779 eval x=\"$x\"
17780 exec_prefix="$acl_save_exec_prefix"
17781 prefix="$acl_save_prefix"
17782
17783 if test "X$x" = "X$element"; then
17784 haveit=yes
17785 break
17786 fi
17787 done
17788 if test -z "$haveit"; then
17789 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17790 fi
17791 done
17792
17793
17794 else
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796 $as_echo "no" >&6; }
17797 fi
17798
17799 ac_ext=cpp
17800 ac_cpp='$CXXCPP $CPPFLAGS'
17801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17804
17805
17806
17807
17808
17809 ac_ext=c
17810 ac_cpp='$CPP $CPPFLAGS'
17811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17814
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17816 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17817
17818 cy_save=$CFLAGS
17819
17820 for element in -Wno-parentheses; do
17821 haveit=
17822 for x in $CFLAGS; do
17823
17824 acl_save_prefix="$prefix"
17825 prefix="$acl_final_prefix"
17826 acl_save_exec_prefix="$exec_prefix"
17827 exec_prefix="$acl_final_exec_prefix"
17828 eval x=\"$x\"
17829 exec_prefix="$acl_save_exec_prefix"
17830 prefix="$acl_save_prefix"
17831
17832 if test "X$x" = "X$element"; then
17833 haveit=yes
17834 break
17835 fi
17836 done
17837 if test -z "$haveit"; then
17838 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17839 fi
17840 done
17841
17842
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17845
17846 _ACEOF
17847 if ac_fn_c_try_compile "$LINENO"; then :
17848 cy_good=1
17849 else
17850 cy_good=0
17851 fi
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853
17854 CFLAGS=$cy_save
17855 if test "x$cy_good" = x1; then :
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17857 $as_echo "yes" >&6; }
17858
17859 for element in -Wno-parentheses; do
17860 haveit=
17861 for x in $CFLAGS; do
17862
17863 acl_save_prefix="$prefix"
17864 prefix="$acl_final_prefix"
17865 acl_save_exec_prefix="$exec_prefix"
17866 exec_prefix="$acl_final_exec_prefix"
17867 eval x=\"$x\"
17868 exec_prefix="$acl_save_exec_prefix"
17869 prefix="$acl_save_prefix"
17870
17871 if test "X$x" = "X$element"; then
17872 haveit=yes
17873 break
17874 fi
17875 done
17876 if test -z "$haveit"; then
17877 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17878 fi
17879 done
17880
17881
17882 else
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17884 $as_echo "no" >&6; }
17885 fi
17886
17887 ac_ext=cpp
17888 ac_cpp='$CXXCPP $CPPFLAGS'
17889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17892
17893
17894
17895 ac_ext=cpp
17896 ac_cpp='$CXXCPP $CPPFLAGS'
17897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17900
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17902 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17903
17904 cy_save=$CXXFLAGS
17905
17906 for element in -Wno-parentheses; do
17907 haveit=
17908 for x in $CXXFLAGS; do
17909
17910 acl_save_prefix="$prefix"
17911 prefix="$acl_final_prefix"
17912 acl_save_exec_prefix="$exec_prefix"
17913 exec_prefix="$acl_final_exec_prefix"
17914 eval x=\"$x\"
17915 exec_prefix="$acl_save_exec_prefix"
17916 prefix="$acl_save_prefix"
17917
17918 if test "X$x" = "X$element"; then
17919 haveit=yes
17920 break
17921 fi
17922 done
17923 if test -z "$haveit"; then
17924 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17925 fi
17926 done
17927
17928
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17931
17932 _ACEOF
17933 if ac_fn_cxx_try_compile "$LINENO"; then :
17934 cy_good=1
17935 else
17936 cy_good=0
17937 fi
17938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939
17940 CXXFLAGS=$cy_save
17941 if test "x$cy_good" = x1; then :
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17943 $as_echo "yes" >&6; }
17944
17945 for element in -Wno-parentheses; do
17946 haveit=
17947 for x in $CXXFLAGS; do
17948
17949 acl_save_prefix="$prefix"
17950 prefix="$acl_final_prefix"
17951 acl_save_exec_prefix="$exec_prefix"
17952 exec_prefix="$acl_final_exec_prefix"
17953 eval x=\"$x\"
17954 exec_prefix="$acl_save_exec_prefix"
17955 prefix="$acl_save_prefix"
17956
17957 if test "X$x" = "X$element"; then
17958 haveit=yes
17959 break
17960 fi
17961 done
17962 if test -z "$haveit"; then
17963 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17964 fi
17965 done
17966
17967
17968 else
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17970 $as_echo "no" >&6; }
17971 fi
17972
17973 ac_ext=cpp
17974 ac_cpp='$CXXCPP $CPPFLAGS'
17975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17978
17979
17980
17981 ac_ext=mm
17982 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17983 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17986
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17988 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
17989
17990 cy_save=$OBJCXXFLAGS
17991
17992 for element in -Wno-parentheses; do
17993 haveit=
17994 for x in $OBJCXXFLAGS; do
17995
17996 acl_save_prefix="$prefix"
17997 prefix="$acl_final_prefix"
17998 acl_save_exec_prefix="$exec_prefix"
17999 exec_prefix="$acl_final_exec_prefix"
18000 eval x=\"$x\"
18001 exec_prefix="$acl_save_exec_prefix"
18002 prefix="$acl_save_prefix"
18003
18004 if test "X$x" = "X$element"; then
18005 haveit=yes
18006 break
18007 fi
18008 done
18009 if test -z "$haveit"; then
18010 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18011 fi
18012 done
18013
18014
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017
18018 _ACEOF
18019 if ac_fn_objcxx_try_compile "$LINENO"; then :
18020 cy_good=1
18021 else
18022 cy_good=0
18023 fi
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025
18026 OBJCXXFLAGS=$cy_save
18027 if test "x$cy_good" = x1; then :
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029 $as_echo "yes" >&6; }
18030
18031 for element in -Wno-parentheses; do
18032 haveit=
18033 for x in $OBJCXXFLAGS; do
18034
18035 acl_save_prefix="$prefix"
18036 prefix="$acl_final_prefix"
18037 acl_save_exec_prefix="$exec_prefix"
18038 exec_prefix="$acl_final_exec_prefix"
18039 eval x=\"$x\"
18040 exec_prefix="$acl_save_exec_prefix"
18041 prefix="$acl_save_prefix"
18042
18043 if test "X$x" = "X$element"; then
18044 haveit=yes
18045 break
18046 fi
18047 done
18048 if test -z "$haveit"; then
18049 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18050 fi
18051 done
18052
18053
18054 else
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18056 $as_echo "no" >&6; }
18057 fi
18058
18059 ac_ext=cpp
18060 ac_cpp='$CXXCPP $CPPFLAGS'
18061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18064
18065
18066
18067
18068
18069 ac_ext=c
18070 ac_cpp='$CPP $CPPFLAGS'
18071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18074
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18076 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18077
18078 cy_save=$CFLAGS
18079
18080 for element in -Wno-unneeded-internal-declaration; do
18081 haveit=
18082 for x in $CFLAGS; do
18083
18084 acl_save_prefix="$prefix"
18085 prefix="$acl_final_prefix"
18086 acl_save_exec_prefix="$exec_prefix"
18087 exec_prefix="$acl_final_exec_prefix"
18088 eval x=\"$x\"
18089 exec_prefix="$acl_save_exec_prefix"
18090 prefix="$acl_save_prefix"
18091
18092 if test "X$x" = "X$element"; then
18093 haveit=yes
18094 break
18095 fi
18096 done
18097 if test -z "$haveit"; then
18098 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18099 fi
18100 done
18101
18102
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18105
18106 _ACEOF
18107 if ac_fn_c_try_compile "$LINENO"; then :
18108 cy_good=1
18109 else
18110 cy_good=0
18111 fi
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113
18114 CFLAGS=$cy_save
18115 if test "x$cy_good" = x1; then :
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18117 $as_echo "yes" >&6; }
18118
18119 for element in -Wno-unneeded-internal-declaration; do
18120 haveit=
18121 for x in $CFLAGS; do
18122
18123 acl_save_prefix="$prefix"
18124 prefix="$acl_final_prefix"
18125 acl_save_exec_prefix="$exec_prefix"
18126 exec_prefix="$acl_final_exec_prefix"
18127 eval x=\"$x\"
18128 exec_prefix="$acl_save_exec_prefix"
18129 prefix="$acl_save_prefix"
18130
18131 if test "X$x" = "X$element"; then
18132 haveit=yes
18133 break
18134 fi
18135 done
18136 if test -z "$haveit"; then
18137 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18138 fi
18139 done
18140
18141
18142 else
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18145 fi
18146
18147 ac_ext=cpp
18148 ac_cpp='$CXXCPP $CPPFLAGS'
18149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18152
18153
18154
18155 ac_ext=cpp
18156 ac_cpp='$CXXCPP $CPPFLAGS'
18157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18160
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18162 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18163
18164 cy_save=$CXXFLAGS
18165
18166 for element in -Wno-unneeded-internal-declaration; do
18167 haveit=
18168 for x in $CXXFLAGS; do
18169
18170 acl_save_prefix="$prefix"
18171 prefix="$acl_final_prefix"
18172 acl_save_exec_prefix="$exec_prefix"
18173 exec_prefix="$acl_final_exec_prefix"
18174 eval x=\"$x\"
18175 exec_prefix="$acl_save_exec_prefix"
18176 prefix="$acl_save_prefix"
18177
18178 if test "X$x" = "X$element"; then
18179 haveit=yes
18180 break
18181 fi
18182 done
18183 if test -z "$haveit"; then
18184 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18185 fi
18186 done
18187
18188
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h. */
18191
18192 _ACEOF
18193 if ac_fn_cxx_try_compile "$LINENO"; then :
18194 cy_good=1
18195 else
18196 cy_good=0
18197 fi
18198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18199
18200 CXXFLAGS=$cy_save
18201 if test "x$cy_good" = x1; then :
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18203 $as_echo "yes" >&6; }
18204
18205 for element in -Wno-unneeded-internal-declaration; do
18206 haveit=
18207 for x in $CXXFLAGS; do
18208
18209 acl_save_prefix="$prefix"
18210 prefix="$acl_final_prefix"
18211 acl_save_exec_prefix="$exec_prefix"
18212 exec_prefix="$acl_final_exec_prefix"
18213 eval x=\"$x\"
18214 exec_prefix="$acl_save_exec_prefix"
18215 prefix="$acl_save_prefix"
18216
18217 if test "X$x" = "X$element"; then
18218 haveit=yes
18219 break
18220 fi
18221 done
18222 if test -z "$haveit"; then
18223 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18224 fi
18225 done
18226
18227
18228 else
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230 $as_echo "no" >&6; }
18231 fi
18232
18233 ac_ext=cpp
18234 ac_cpp='$CXXCPP $CPPFLAGS'
18235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18238
18239
18240
18241 ac_ext=mm
18242 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18243 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18248 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18249
18250 cy_save=$OBJCXXFLAGS
18251
18252 for element in -Wno-unneeded-internal-declaration; do
18253 haveit=
18254 for x in $OBJCXXFLAGS; do
18255
18256 acl_save_prefix="$prefix"
18257 prefix="$acl_final_prefix"
18258 acl_save_exec_prefix="$exec_prefix"
18259 exec_prefix="$acl_final_exec_prefix"
18260 eval x=\"$x\"
18261 exec_prefix="$acl_save_exec_prefix"
18262 prefix="$acl_save_prefix"
18263
18264 if test "X$x" = "X$element"; then
18265 haveit=yes
18266 break
18267 fi
18268 done
18269 if test -z "$haveit"; then
18270 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18271 fi
18272 done
18273
18274
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277
18278 _ACEOF
18279 if ac_fn_objcxx_try_compile "$LINENO"; then :
18280 cy_good=1
18281 else
18282 cy_good=0
18283 fi
18284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285
18286 OBJCXXFLAGS=$cy_save
18287 if test "x$cy_good" = x1; then :
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18289 $as_echo "yes" >&6; }
18290
18291 for element in -Wno-unneeded-internal-declaration; do
18292 haveit=
18293 for x in $OBJCXXFLAGS; do
18294
18295 acl_save_prefix="$prefix"
18296 prefix="$acl_final_prefix"
18297 acl_save_exec_prefix="$exec_prefix"
18298 exec_prefix="$acl_final_exec_prefix"
18299 eval x=\"$x\"
18300 exec_prefix="$acl_save_exec_prefix"
18301 prefix="$acl_save_prefix"
18302
18303 if test "X$x" = "X$element"; then
18304 haveit=yes
18305 break
18306 fi
18307 done
18308 if test -z "$haveit"; then
18309 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18310 fi
18311 done
18312
18313
18314 else
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18316 $as_echo "no" >&6; }
18317 fi
18318
18319 ac_ext=cpp
18320 ac_cpp='$CXXCPP $CPPFLAGS'
18321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18324
18325
18326
18327
18328
18329
18330 for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18332 $as_echo_n "checking for -arch $cy_arch... " >&6; }
18333
18334 cy_save=$CXXFLAGS
18335
18336 for element in "-arch $cy_arch"; do
18337 haveit=
18338 for x in $CXXFLAGS; do
18339
18340 acl_save_prefix="$prefix"
18341 prefix="$acl_final_prefix"
18342 acl_save_exec_prefix="$exec_prefix"
18343 exec_prefix="$acl_final_exec_prefix"
18344 eval x=\"$x\"
18345 exec_prefix="$acl_save_exec_prefix"
18346 prefix="$acl_save_prefix"
18347
18348 if test "X$x" = "X$element"; then
18349 haveit=yes
18350 break
18351 fi
18352 done
18353 if test -z "$haveit"; then
18354 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18355 fi
18356 done
18357
18358
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18361
18362 int
18363 main ()
18364 {
18365
18366 ;
18367 return 0;
18368 }
18369 _ACEOF
18370 if ac_fn_cxx_try_link "$LINENO"; then :
18371 cy_good=1
18372 else
18373 cy_good=0
18374 fi
18375 rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18377
18378 CXXFLAGS=$cy_save
18379 if test "x$cy_good" = x1; then :
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381 $as_echo "yes" >&6; }
18382
18383 for element in "-arch $cy_arch"; do
18384 haveit=
18385 for x in $CY_ARCH; do
18386
18387 acl_save_prefix="$prefix"
18388 prefix="$acl_final_prefix"
18389 acl_save_exec_prefix="$exec_prefix"
18390 exec_prefix="$acl_final_exec_prefix"
18391 eval x=\"$x\"
18392 exec_prefix="$acl_save_exec_prefix"
18393 prefix="$acl_save_prefix"
18394
18395 if test "X$x" = "X$element"; then
18396 haveit=yes
18397 break
18398 fi
18399 done
18400 if test -z "$haveit"; then
18401 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18402 fi
18403 done
18404
18405
18406 else
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408 $as_echo "no" >&6; }
18409 fi
18410
18411 done
18412
18413
18414
18415
18416
18417
18418 # Check whether --enable-javascript was given.
18419 if test "${enable_javascript+set}" = set; then :
18420 enableval=$enable_javascript;
18421 case $enableval in #(
18422 yes) :
18423
18424
18425
18426
18427 cy_save=$LIBS
18428 LIBS=
18429
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18431 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18432 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18433 $as_echo_n "(cached) " >&6
18434 else
18435
18436 ac_check_framework_save_LIBS=$LIBS
18437 LIBS="-framework JavaScriptCore $LIBS"
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h. */
18440
18441 #include <JavaScriptCore/JSBase.h>
18442
18443 int
18444 main ()
18445 {
18446
18447 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18448
18449 ;
18450 return 0;
18451 }
18452 _ACEOF
18453 if ac_fn_cxx_try_link "$LINENO"; then :
18454
18455 ac_cv_framework_JavaScriptCore=yes
18456
18457 else
18458 ac_cv_framework_JavaScriptCore=no
18459 fi
18460 rm -f core conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18462 LIBS=$ac_check_framework_save_LIBS
18463
18464 fi
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18466 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18467 if test $ac_cv_framework_JavaScriptCore = yes; then :
18468
18469
18470 for element in "-framework JavaScriptCore"; 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 CY_EXECUTE=1
18494
18495
18496
18497 else
18498
18499 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18500
18501 pkg_failed=no
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18503 $as_echo_n "checking for WEBKIT... " >&6; }
18504
18505 if test -n "$WEBKIT_CFLAGS"; then
18506 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18507 elif test -n "$PKG_CONFIG"; then
18508 if test -n "$PKG_CONFIG" && \
18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18510 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18511 ac_status=$?
18512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18513 test $ac_status = 0; }; then
18514 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18515 else
18516 pkg_failed=yes
18517 fi
18518 else
18519 pkg_failed=untried
18520 fi
18521 if test -n "$WEBKIT_LIBS"; then
18522 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18523 elif test -n "$PKG_CONFIG"; then
18524 if test -n "$PKG_CONFIG" && \
18525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18526 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18527 ac_status=$?
18528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18529 test $ac_status = 0; }; then
18530 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18531 else
18532 pkg_failed=yes
18533 fi
18534 else
18535 pkg_failed=untried
18536 fi
18537
18538
18539
18540 if test $pkg_failed = yes; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18542 $as_echo "no" >&6; }
18543
18544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18545 _pkg_short_errors_supported=yes
18546 else
18547 _pkg_short_errors_supported=no
18548 fi
18549 if test $_pkg_short_errors_supported = yes; then
18550 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18551 else
18552 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18553 fi
18554 # Put the nasty error message in config.log where it belongs
18555 echo "$WEBKIT_PKG_ERRORS" >&5
18556
18557 :
18558 elif test $pkg_failed = untried; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18561 :
18562 else
18563 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18564 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18566 $as_echo "yes" >&6; }
18567
18568 CY_EXECUTE=1
18569
18570
18571 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18572 haveit=
18573 for x in $CPPFLAGS; do
18574
18575 acl_save_prefix="$prefix"
18576 prefix="$acl_final_prefix"
18577 acl_save_exec_prefix="$exec_prefix"
18578 exec_prefix="$acl_final_exec_prefix"
18579 eval x=\"$x\"
18580 exec_prefix="$acl_save_exec_prefix"
18581 prefix="$acl_save_prefix"
18582
18583 if test "X$x" = "X$element"; then
18584 haveit=yes
18585 break
18586 fi
18587 done
18588 if test -z "$haveit"; then
18589 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18590 fi
18591 done
18592
18593
18594 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18595 haveit=
18596 for x in $LIBS; do
18597
18598 acl_save_prefix="$prefix"
18599 prefix="$acl_final_prefix"
18600 acl_save_exec_prefix="$exec_prefix"
18601 exec_prefix="$acl_final_exec_prefix"
18602 eval x=\"$x\"
18603 exec_prefix="$acl_save_exec_prefix"
18604 prefix="$acl_save_prefix"
18605
18606 if test "X$x" = "X$element"; then
18607 haveit=yes
18608 break
18609 fi
18610 done
18611 if test -z "$haveit"; then
18612 LIBS="${LIBS}${LIBS:+ }$element"
18613 fi
18614 done
18615
18616
18617 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18618 done
18619
18620 fi
18621 LTJAVASCRIPTCORE=$LIBS
18622 LIBS=$cy_save
18623
18624
18625 ;; #(
18626 no) :
18627
18628 CY_EXECUTE=0
18629 ;; #(
18630 JavaScriptCore) :
18631
18632
18633
18634 cy_save=$LIBS
18635 LIBS=
18636
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18638 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18639 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18640 $as_echo_n "(cached) " >&6
18641 else
18642
18643 ac_check_framework_save_LIBS=$LIBS
18644 LIBS="-framework JavaScriptCore $LIBS"
18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18647
18648 #include <JavaScriptCore/JSBase.h>
18649
18650 int
18651 main ()
18652 {
18653
18654 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18655
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 if ac_fn_cxx_try_link "$LINENO"; then :
18661
18662 ac_cv_framework_JavaScriptCore=yes
18663
18664 else
18665 ac_cv_framework_JavaScriptCore=no
18666 fi
18667 rm -f core conftest.err conftest.$ac_objext \
18668 conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_framework_save_LIBS
18670
18671 fi
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18673 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18674 if test $ac_cv_framework_JavaScriptCore = yes; then :
18675
18676
18677 for element in "-framework JavaScriptCore"; do
18678 haveit=
18679 for x in $LIBS; do
18680
18681 acl_save_prefix="$prefix"
18682 prefix="$acl_final_prefix"
18683 acl_save_exec_prefix="$exec_prefix"
18684 exec_prefix="$acl_final_exec_prefix"
18685 eval x=\"$x\"
18686 exec_prefix="$acl_save_exec_prefix"
18687 prefix="$acl_save_prefix"
18688
18689 if test "X$x" = "X$element"; then
18690 haveit=yes
18691 break
18692 fi
18693 done
18694 if test -z "$haveit"; then
18695 LIBS="${LIBS}${LIBS:+ }$element"
18696 fi
18697 done
18698
18699
18700 CY_EXECUTE=1
18701
18702
18703
18704 else
18705
18706 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18707
18708 pkg_failed=no
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18710 $as_echo_n "checking for WEBKIT... " >&6; }
18711
18712 if test -n "$WEBKIT_CFLAGS"; then
18713 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18714 elif test -n "$PKG_CONFIG"; then
18715 if test -n "$PKG_CONFIG" && \
18716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18717 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18718 ac_status=$?
18719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18720 test $ac_status = 0; }; then
18721 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18722 else
18723 pkg_failed=yes
18724 fi
18725 else
18726 pkg_failed=untried
18727 fi
18728 if test -n "$WEBKIT_LIBS"; then
18729 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18730 elif test -n "$PKG_CONFIG"; then
18731 if test -n "$PKG_CONFIG" && \
18732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18733 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18734 ac_status=$?
18735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18736 test $ac_status = 0; }; then
18737 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18738 else
18739 pkg_failed=yes
18740 fi
18741 else
18742 pkg_failed=untried
18743 fi
18744
18745
18746
18747 if test $pkg_failed = yes; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18749 $as_echo "no" >&6; }
18750
18751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18752 _pkg_short_errors_supported=yes
18753 else
18754 _pkg_short_errors_supported=no
18755 fi
18756 if test $_pkg_short_errors_supported = yes; then
18757 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18758 else
18759 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18760 fi
18761 # Put the nasty error message in config.log where it belongs
18762 echo "$WEBKIT_PKG_ERRORS" >&5
18763
18764 :
18765 elif test $pkg_failed = untried; then
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18767 $as_echo "no" >&6; }
18768 :
18769 else
18770 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18771 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18773 $as_echo "yes" >&6; }
18774
18775 CY_EXECUTE=1
18776
18777
18778 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18779 haveit=
18780 for x in $CPPFLAGS; do
18781
18782 acl_save_prefix="$prefix"
18783 prefix="$acl_final_prefix"
18784 acl_save_exec_prefix="$exec_prefix"
18785 exec_prefix="$acl_final_exec_prefix"
18786 eval x=\"$x\"
18787 exec_prefix="$acl_save_exec_prefix"
18788 prefix="$acl_save_prefix"
18789
18790 if test "X$x" = "X$element"; then
18791 haveit=yes
18792 break
18793 fi
18794 done
18795 if test -z "$haveit"; then
18796 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18797 fi
18798 done
18799
18800
18801 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18802 haveit=
18803 for x in $LIBS; do
18804
18805 acl_save_prefix="$prefix"
18806 prefix="$acl_final_prefix"
18807 acl_save_exec_prefix="$exec_prefix"
18808 exec_prefix="$acl_final_exec_prefix"
18809 eval x=\"$x\"
18810 exec_prefix="$acl_save_exec_prefix"
18811 prefix="$acl_save_prefix"
18812
18813 if test "X$x" = "X$element"; then
18814 haveit=yes
18815 break
18816 fi
18817 done
18818 if test -z "$haveit"; then
18819 LIBS="${LIBS}${LIBS:+ }$element"
18820 fi
18821 done
18822
18823
18824 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18825 done
18826
18827 fi
18828 LTJAVASCRIPTCORE=$LIBS
18829 LIBS=$cy_save
18830
18831
18832 ;; #(
18833 *) :
18834 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18835 esac
18836
18837 else
18838
18839
18840
18841 cy_save=$LIBS
18842 LIBS=
18843
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18845 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18846 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18847 $as_echo_n "(cached) " >&6
18848 else
18849
18850 ac_check_framework_save_LIBS=$LIBS
18851 LIBS="-framework JavaScriptCore $LIBS"
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854
18855 #include <JavaScriptCore/JSBase.h>
18856
18857 int
18858 main ()
18859 {
18860
18861 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18862
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 if ac_fn_cxx_try_link "$LINENO"; then :
18868
18869 ac_cv_framework_JavaScriptCore=yes
18870
18871 else
18872 ac_cv_framework_JavaScriptCore=no
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext \
18875 conftest$ac_exeext conftest.$ac_ext
18876 LIBS=$ac_check_framework_save_LIBS
18877
18878 fi
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18880 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18881 if test $ac_cv_framework_JavaScriptCore = yes; then :
18882
18883
18884 for element in "-framework JavaScriptCore"; do
18885 haveit=
18886 for x in $LIBS; do
18887
18888 acl_save_prefix="$prefix"
18889 prefix="$acl_final_prefix"
18890 acl_save_exec_prefix="$exec_prefix"
18891 exec_prefix="$acl_final_exec_prefix"
18892 eval x=\"$x\"
18893 exec_prefix="$acl_save_exec_prefix"
18894 prefix="$acl_save_prefix"
18895
18896 if test "X$x" = "X$element"; then
18897 haveit=yes
18898 break
18899 fi
18900 done
18901 if test -z "$haveit"; then
18902 LIBS="${LIBS}${LIBS:+ }$element"
18903 fi
18904 done
18905
18906
18907 CY_EXECUTE=1
18908
18909
18910
18911 else
18912
18913 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18914
18915 pkg_failed=no
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18917 $as_echo_n "checking for WEBKIT... " >&6; }
18918
18919 if test -n "$WEBKIT_CFLAGS"; then
18920 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18921 elif test -n "$PKG_CONFIG"; then
18922 if test -n "$PKG_CONFIG" && \
18923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18924 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18925 ac_status=$?
18926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18927 test $ac_status = 0; }; then
18928 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18929 else
18930 pkg_failed=yes
18931 fi
18932 else
18933 pkg_failed=untried
18934 fi
18935 if test -n "$WEBKIT_LIBS"; then
18936 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18937 elif test -n "$PKG_CONFIG"; then
18938 if test -n "$PKG_CONFIG" && \
18939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18940 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18941 ac_status=$?
18942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18943 test $ac_status = 0; }; then
18944 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18945 else
18946 pkg_failed=yes
18947 fi
18948 else
18949 pkg_failed=untried
18950 fi
18951
18952
18953
18954 if test $pkg_failed = yes; then
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 $as_echo "no" >&6; }
18957
18958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18959 _pkg_short_errors_supported=yes
18960 else
18961 _pkg_short_errors_supported=no
18962 fi
18963 if test $_pkg_short_errors_supported = yes; then
18964 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18965 else
18966 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18967 fi
18968 # Put the nasty error message in config.log where it belongs
18969 echo "$WEBKIT_PKG_ERRORS" >&5
18970
18971 :
18972 elif test $pkg_failed = untried; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18975 :
18976 else
18977 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18978 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18980 $as_echo "yes" >&6; }
18981
18982 CY_EXECUTE=1
18983
18984
18985 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18986 haveit=
18987 for x in $CPPFLAGS; do
18988
18989 acl_save_prefix="$prefix"
18990 prefix="$acl_final_prefix"
18991 acl_save_exec_prefix="$exec_prefix"
18992 exec_prefix="$acl_final_exec_prefix"
18993 eval x=\"$x\"
18994 exec_prefix="$acl_save_exec_prefix"
18995 prefix="$acl_save_prefix"
18996
18997 if test "X$x" = "X$element"; then
18998 haveit=yes
18999 break
19000 fi
19001 done
19002 if test -z "$haveit"; then
19003 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19004 fi
19005 done
19006
19007
19008 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19009 haveit=
19010 for x in $LIBS; do
19011
19012 acl_save_prefix="$prefix"
19013 prefix="$acl_final_prefix"
19014 acl_save_exec_prefix="$exec_prefix"
19015 exec_prefix="$acl_final_exec_prefix"
19016 eval x=\"$x\"
19017 exec_prefix="$acl_save_exec_prefix"
19018 prefix="$acl_save_prefix"
19019
19020 if test "X$x" = "X$element"; then
19021 haveit=yes
19022 break
19023 fi
19024 done
19025 if test -z "$haveit"; then
19026 LIBS="${LIBS}${LIBS:+ }$element"
19027 fi
19028 done
19029
19030
19031 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19032 done
19033
19034 fi
19035 LTJAVASCRIPTCORE=$LIBS
19036 LIBS=$cy_save
19037
19038
19039
19040 fi
19041
19042
19043 # Check whether --enable-console was given.
19044 if test "${enable_console+set}" = set; then :
19045 enableval=$enable_console;
19046 fi
19047
19048 if test "x$enable_console" != "xno"; then
19049 CY_CONSOLE_TRUE=
19050 CY_CONSOLE_FALSE='#'
19051 else
19052 CY_CONSOLE_TRUE='#'
19053 CY_CONSOLE_FALSE=
19054 fi
19055
19056
19057
19058
19059 if test "x$CY_EXECUTE" = x1; then
19060 CY_EXECUTE_TRUE=
19061 CY_EXECUTE_FALSE='#'
19062 else
19063 CY_EXECUTE_TRUE='#'
19064 CY_EXECUTE_FALSE=
19065 fi
19066
19067
19068
19069 case $CY_EXECUTE in #(
19070 1) :
19071
19072 for ac_header in ffi.h ffi/ffi.h
19073 do :
19074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19075 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19077 cat >>confdefs.h <<_ACEOF
19078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19079 _ACEOF
19080 break
19081 fi
19082
19083 done
19084
19085
19086
19087 cy_save=$LIBS
19088 LIBS=
19089 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19090
19091
19092 LIBFFI_CFLAGS
19093 C compiler flags for LIBFFI, overriding pkg-config
19094 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
19095
19096 pkg_failed=no
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19098 $as_echo_n "checking for LIBFFI... " >&6; }
19099
19100 if test -n "$LIBFFI_CFLAGS"; then
19101 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19102 elif test -n "$PKG_CONFIG"; then
19103 if test -n "$PKG_CONFIG" && \
19104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19105 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19106 ac_status=$?
19107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108 test $ac_status = 0; }; then
19109 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19110 else
19111 pkg_failed=yes
19112 fi
19113 else
19114 pkg_failed=untried
19115 fi
19116 if test -n "$LIBFFI_LIBS"; then
19117 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19118 elif test -n "$PKG_CONFIG"; then
19119 if test -n "$PKG_CONFIG" && \
19120 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19121 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19122 ac_status=$?
19123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19124 test $ac_status = 0; }; then
19125 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19126 else
19127 pkg_failed=yes
19128 fi
19129 else
19130 pkg_failed=untried
19131 fi
19132
19133
19134
19135 if test $pkg_failed = yes; then
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19138
19139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19140 _pkg_short_errors_supported=yes
19141 else
19142 _pkg_short_errors_supported=no
19143 fi
19144 if test $_pkg_short_errors_supported = yes; then
19145 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19146 else
19147 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19148 fi
19149 # Put the nasty error message in config.log where it belongs
19150 echo "$LIBFFI_PKG_ERRORS" >&5
19151
19152 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19153 elif test $pkg_failed = untried; then
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19155 $as_echo "no" >&6; }
19156 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19157 else
19158 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19159 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19161 $as_echo "yes" >&6; }
19162
19163
19164 for element in `$PKG_CONFIG --cflags libffi`; do
19165 haveit=
19166 for x in $CPPFLAGS; do
19167
19168 acl_save_prefix="$prefix"
19169 prefix="$acl_final_prefix"
19170 acl_save_exec_prefix="$exec_prefix"
19171 exec_prefix="$acl_final_exec_prefix"
19172 eval x=\"$x\"
19173 exec_prefix="$acl_save_exec_prefix"
19174 prefix="$acl_save_prefix"
19175
19176 if test "X$x" = "X$element"; then
19177 haveit=yes
19178 break
19179 fi
19180 done
19181 if test -z "$haveit"; then
19182 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19183 fi
19184 done
19185
19186
19187 for element in `$PKG_CONFIG --libs libffi`; do
19188 haveit=
19189 for x in $LIBS; do
19190
19191 acl_save_prefix="$prefix"
19192 prefix="$acl_final_prefix"
19193 acl_save_exec_prefix="$exec_prefix"
19194 exec_prefix="$acl_final_exec_prefix"
19195 eval x=\"$x\"
19196 exec_prefix="$acl_save_exec_prefix"
19197 prefix="$acl_save_prefix"
19198
19199 if test "X$x" = "X$element"; then
19200 haveit=yes
19201 break
19202 fi
19203 done
19204 if test -z "$haveit"; then
19205 LIBS="${LIBS}${LIBS:+ }$element"
19206 fi
19207 done
19208
19209
19210 fi
19211
19212 else
19213
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19215 $as_echo_n "checking for library containing ffi_call... " >&6; }
19216 if ${ac_cv_search_ffi_call+:} false; then :
19217 $as_echo_n "(cached) " >&6
19218 else
19219 ac_func_search_save_LIBS=$LIBS
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19222
19223 /* Override any GCC internal prototype to avoid an error.
19224 Use char because int might match the return type of a GCC
19225 builtin and then its argument prototype would still apply. */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 char ffi_call ();
19230 int
19231 main ()
19232 {
19233 return ffi_call ();
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 for ac_lib in '' ffi; do
19239 if test -z "$ac_lib"; then
19240 ac_res="none required"
19241 else
19242 ac_res=-l$ac_lib
19243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19244 fi
19245 if ac_fn_cxx_try_link "$LINENO"; then :
19246 ac_cv_search_ffi_call=$ac_res
19247 fi
19248 rm -f core conftest.err conftest.$ac_objext \
19249 conftest$ac_exeext
19250 if ${ac_cv_search_ffi_call+:} false; then :
19251 break
19252 fi
19253 done
19254 if ${ac_cv_search_ffi_call+:} false; then :
19255
19256 else
19257 ac_cv_search_ffi_call=no
19258 fi
19259 rm conftest.$ac_ext
19260 LIBS=$ac_func_search_save_LIBS
19261 fi
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19263 $as_echo "$ac_cv_search_ffi_call" >&6; }
19264 ac_res=$ac_cv_search_ffi_call
19265 if test "$ac_res" != no; then :
19266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19267
19268 fi
19269
19270 case $ac_cv_search_ffi_call in #(
19271 no) :
19272
19273
19274 pkg_failed=no
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19276 $as_echo_n "checking for LIBFFI... " >&6; }
19277
19278 if test -n "$LIBFFI_CFLAGS"; then
19279 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19280 elif test -n "$PKG_CONFIG"; then
19281 if test -n "$PKG_CONFIG" && \
19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19283 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19284 ac_status=$?
19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19286 test $ac_status = 0; }; then
19287 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19288 else
19289 pkg_failed=yes
19290 fi
19291 else
19292 pkg_failed=untried
19293 fi
19294 if test -n "$LIBFFI_LIBS"; then
19295 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19296 elif test -n "$PKG_CONFIG"; then
19297 if test -n "$PKG_CONFIG" && \
19298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19299 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19300 ac_status=$?
19301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19302 test $ac_status = 0; }; then
19303 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19304 else
19305 pkg_failed=yes
19306 fi
19307 else
19308 pkg_failed=untried
19309 fi
19310
19311
19312
19313 if test $pkg_failed = yes; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315 $as_echo "no" >&6; }
19316
19317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19318 _pkg_short_errors_supported=yes
19319 else
19320 _pkg_short_errors_supported=no
19321 fi
19322 if test $_pkg_short_errors_supported = yes; then
19323 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19324 else
19325 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19326 fi
19327 # Put the nasty error message in config.log where it belongs
19328 echo "$LIBFFI_PKG_ERRORS" >&5
19329
19330 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19331 elif test $pkg_failed = untried; then
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333 $as_echo "no" >&6; }
19334 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19335 else
19336 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19337 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19340
19341
19342 for element in `$PKG_CONFIG --cflags libffi`; do
19343 haveit=
19344 for x in $CPPFLAGS; do
19345
19346 acl_save_prefix="$prefix"
19347 prefix="$acl_final_prefix"
19348 acl_save_exec_prefix="$exec_prefix"
19349 exec_prefix="$acl_final_exec_prefix"
19350 eval x=\"$x\"
19351 exec_prefix="$acl_save_exec_prefix"
19352 prefix="$acl_save_prefix"
19353
19354 if test "X$x" = "X$element"; then
19355 haveit=yes
19356 break
19357 fi
19358 done
19359 if test -z "$haveit"; then
19360 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19361 fi
19362 done
19363
19364
19365 for element in `$PKG_CONFIG --libs libffi`; do
19366 haveit=
19367 for x in $LIBS; do
19368
19369 acl_save_prefix="$prefix"
19370 prefix="$acl_final_prefix"
19371 acl_save_exec_prefix="$exec_prefix"
19372 exec_prefix="$acl_final_exec_prefix"
19373 eval x=\"$x\"
19374 exec_prefix="$acl_save_exec_prefix"
19375 prefix="$acl_save_prefix"
19376
19377 if test "X$x" = "X$element"; then
19378 haveit=yes
19379 break
19380 fi
19381 done
19382 if test -z "$haveit"; then
19383 LIBS="${LIBS}${LIBS:+ }$element"
19384 fi
19385 done
19386
19387
19388 fi ;; #(
19389 *) :
19390 ;;
19391 esac
19392
19393 fi
19394 LTLIBFFI=$LIBS
19395 LIBS=$cy_save
19396
19397
19398
19399 ac_ext=mm
19400 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19401 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19404
19405
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19407 $as_echo_n "checking if we really have Objective C++... " >&6; }
19408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409 /* end confdefs.h. */
19410
19411 _ACEOF
19412 if ac_fn_objcxx_try_compile "$LINENO"; then :
19413
19414 CY_OBJECTIVEC=1
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416 $as_echo "yes" >&6; }
19417
19418 else
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19420 $as_echo "no" >&6; }
19421 fi
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423
19424 if test "x$CY_OBJECTIVEC" = x1; then :
19425
19426
19427 cy_save=$LIBS
19428 LIBS=
19429
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19431 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19432 if ${ac_cv_framework_CoreFoundation+:} false; then :
19433 $as_echo_n "(cached) " >&6
19434 else
19435
19436 ac_check_framework_save_LIBS=$LIBS
19437 LIBS="-framework CoreFoundation $LIBS"
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440
19441 #include <CoreFoundation/CFBase.h>
19442
19443 int
19444 main ()
19445 {
19446 CFAllocatorGetDefault();
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_objcxx_try_link "$LINENO"; then :
19452
19453 ac_cv_framework_CoreFoundation=yes
19454
19455 else
19456 ac_cv_framework_CoreFoundation=no
19457 fi
19458 rm -f core conftest.err conftest.$ac_objext \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_framework_save_LIBS
19461
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19464 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19465 if test $ac_cv_framework_CoreFoundation = yes; then :
19466
19467
19468 for element in "-framework CoreFoundation"; do
19469 haveit=
19470 for x in $LIBS; do
19471
19472 acl_save_prefix="$prefix"
19473 prefix="$acl_final_prefix"
19474 acl_save_exec_prefix="$exec_prefix"
19475 exec_prefix="$acl_final_exec_prefix"
19476 eval x=\"$x\"
19477 exec_prefix="$acl_save_exec_prefix"
19478 prefix="$acl_save_prefix"
19479
19480 if test "X$x" = "X$element"; then
19481 haveit=yes
19482 break
19483 fi
19484 done
19485 if test -z "$haveit"; then
19486 LIBS="${LIBS}${LIBS:+ }$element"
19487 fi
19488 done
19489
19490
19491
19492
19493
19494
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19496 $as_echo_n "checking for framework Foundation... " >&6; }
19497 if ${ac_cv_framework_Foundation+:} false; then :
19498 $as_echo_n "(cached) " >&6
19499 else
19500
19501 ac_check_framework_save_LIBS=$LIBS
19502 LIBS="-framework Foundation $LIBS"
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19505
19506 #include <Foundation/NSObject.h>
19507
19508 int
19509 main ()
19510 {
19511 [[NSObject alloc] init];
19512 ;
19513 return 0;
19514 }
19515 _ACEOF
19516 if ac_fn_objcxx_try_link "$LINENO"; then :
19517
19518 ac_cv_framework_Foundation=yes
19519
19520 else
19521 ac_cv_framework_Foundation=no
19522 fi
19523 rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_framework_save_LIBS
19526
19527 fi
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19529 $as_echo "$ac_cv_framework_Foundation" >&6; }
19530 if test $ac_cv_framework_Foundation = yes; then :
19531
19532
19533 for element in "-framework Foundation"; do
19534 haveit=
19535 for x in $LIBS; do
19536
19537 acl_save_prefix="$prefix"
19538 prefix="$acl_final_prefix"
19539 acl_save_exec_prefix="$exec_prefix"
19540 exec_prefix="$acl_final_exec_prefix"
19541 eval x=\"$x\"
19542 exec_prefix="$acl_save_exec_prefix"
19543 prefix="$acl_save_prefix"
19544
19545 if test "X$x" = "X$element"; then
19546 haveit=yes
19547 break
19548 fi
19549 done
19550 if test -z "$haveit"; then
19551 LIBS="${LIBS}${LIBS:+ }$element"
19552 fi
19553 done
19554
19555 cat >>confdefs.h <<_ACEOF
19556 #define HAVE_FRAMEWORK_FOUNDATION 1
19557 _ACEOF
19558
19559
19560 fi
19561
19562
19563 else
19564
19565
19566 for ac_prog in gnustep-config
19567 do
19568 # Extract the first word of "$ac_prog", so it can be a program name with args.
19569 set dummy $ac_prog; ac_word=$2
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19571 $as_echo_n "checking for $ac_word... " >&6; }
19572 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19573 $as_echo_n "(cached) " >&6
19574 else
19575 if test -n "$GNUSTEP_CONFIG"; then
19576 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19577 else
19578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19579 for as_dir in $PATH
19580 do
19581 IFS=$as_save_IFS
19582 test -z "$as_dir" && as_dir=.
19583 for ac_exec_ext in '' $ac_executable_extensions; do
19584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19585 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19587 break 2
19588 fi
19589 done
19590 done
19591 IFS=$as_save_IFS
19592
19593 fi
19594 fi
19595 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19596 if test -n "$GNUSTEP_CONFIG"; then
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19598 $as_echo "$GNUSTEP_CONFIG" >&6; }
19599 else
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19601 $as_echo "no" >&6; }
19602 fi
19603
19604
19605 test -n "$GNUSTEP_CONFIG" && break
19606 done
19607
19608
19609 if test "x$GNUSTEP_CONFIG" != x; then :
19610
19611
19612
19613 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19614 haveit=
19615 for x in $OBJCXXFLAGS; do
19616
19617 acl_save_prefix="$prefix"
19618 prefix="$acl_final_prefix"
19619 acl_save_exec_prefix="$exec_prefix"
19620 exec_prefix="$acl_final_exec_prefix"
19621 eval x=\"$x\"
19622 exec_prefix="$acl_save_exec_prefix"
19623 prefix="$acl_save_prefix"
19624
19625 if test "X$x" = "X$element"; then
19626 haveit=yes
19627 break
19628 fi
19629 done
19630 if test -z "$haveit"; then
19631 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19632 fi
19633 done
19634
19635
19636 for element in `$GNUSTEP_CONFIG --base-libs`; do
19637 haveit=
19638 for x in $LIBS; do
19639
19640 acl_save_prefix="$prefix"
19641 prefix="$acl_final_prefix"
19642 acl_save_exec_prefix="$exec_prefix"
19643 exec_prefix="$acl_final_exec_prefix"
19644 eval x=\"$x\"
19645 exec_prefix="$acl_save_exec_prefix"
19646 prefix="$acl_save_prefix"
19647
19648 if test "X$x" = "X$element"; then
19649 haveit=yes
19650 break
19651 fi
19652 done
19653 if test -z "$haveit"; then
19654 LIBS="${LIBS}${LIBS:+ }$element"
19655 fi
19656 done
19657
19658
19659 else
19660 CY_OBJECTIVEC=0
19661
19662 fi
19663
19664 fi
19665 LTOBJECTIVEC=$LIBS
19666 LIBS=$cy_save
19667
19668
19669
19670 fi
19671
19672 ac_ext=cpp
19673 ac_cpp='$CXXCPP $CPPFLAGS'
19674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19677
19678 ;; #(
19679 *) :
19680 ;;
19681 esac
19682
19683 if test "x$CY_OBJECTIVEC" = x1; then
19684 CY_OBJECTIVEC_TRUE=
19685 CY_OBJECTIVEC_FALSE='#'
19686 else
19687 CY_OBJECTIVEC_TRUE='#'
19688 CY_OBJECTIVEC_FALSE=
19689 fi
19690
19691
19692
19693 cy_save=$LIBS
19694 LIBS=
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19697 $as_echo_n "checking for a readline compatible library... " >&6; }
19698 if ${ax_cv_lib_readline+:} false; then :
19699 $as_echo_n "(cached) " >&6
19700 else
19701
19702 ORIG_LIBS="$LIBS"
19703 for readline_lib in readline edit editline; do
19704 for termcap_lib in "" termcap curses ncurses; do
19705 if test -z "$termcap_lib"; then
19706 TRY_LIB="-l$readline_lib"
19707 else
19708 TRY_LIB="-l$readline_lib -l$termcap_lib"
19709 fi
19710 LIBS="$ORIG_LIBS $TRY_LIB"
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19713
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char readline ();
19721 int
19722 main ()
19723 {
19724 return readline ();
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_cxx_try_link "$LINENO"; then :
19730 ax_cv_lib_readline="$TRY_LIB"
19731 fi
19732 rm -f core conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734 if test -n "$ax_cv_lib_readline"; then
19735 break
19736 fi
19737 done
19738 if test -n "$ax_cv_lib_readline"; then
19739 break
19740 fi
19741 done
19742 if test -z "$ax_cv_lib_readline"; then
19743 ax_cv_lib_readline="no"
19744 fi
19745 LIBS="$ORIG_LIBS"
19746
19747 fi
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19749 $as_echo "$ax_cv_lib_readline" >&6; }
19750
19751 if test "$ax_cv_lib_readline" != "no"; then
19752 LIBS="$LIBS $ax_cv_lib_readline"
19753
19754 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19755
19756 for ac_header in readline.h readline/readline.h
19757 do :
19758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19759 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19761 cat >>confdefs.h <<_ACEOF
19762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19763 _ACEOF
19764
19765 fi
19766
19767 done
19768
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19770 $as_echo_n "checking whether readline supports history... " >&6; }
19771 if ${ax_cv_lib_readline_history+:} false; then :
19772 $as_echo_n "(cached) " >&6
19773 else
19774
19775 ax_cv_lib_readline_history="no"
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19778
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 char add_history ();
19786 int
19787 main ()
19788 {
19789 return add_history ();
19790 ;
19791 return 0;
19792 }
19793 _ACEOF
19794 if ac_fn_cxx_try_link "$LINENO"; then :
19795 ax_cv_lib_readline_history="yes"
19796 fi
19797 rm -f core conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19799
19800 fi
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19802 $as_echo "$ax_cv_lib_readline_history" >&6; }
19803 if test "$ax_cv_lib_readline_history" = "yes"; then
19804
19805 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
19806
19807 for ac_header in history.h readline/history.h
19808 do :
19809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19810 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19812 cat >>confdefs.h <<_ACEOF
19813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19814 _ACEOF
19815
19816 fi
19817
19818 done
19819
19820 fi
19821 fi
19822
19823 LTLIBREADLINE=$LIBS
19824 LIBS=$cy_save
19825
19826
19827 case $ax_cv_lib_readline in #(
19828 no) :
19829 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19830 *) :
19831 ;;
19832 esac
19833
19834
19835 cy_save=$LIBS
19836 LIBS=
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
19838 $as_echo_n "checking for library containing cur_term... " >&6; }
19839 if ${ac_cv_search_cur_term+:} false; then :
19840 $as_echo_n "(cached) " >&6
19841 else
19842 ac_func_search_save_LIBS=$LIBS
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19845
19846 /* Override any GCC internal prototype to avoid an error.
19847 Use char because int might match the return type of a GCC
19848 builtin and then its argument prototype would still apply. */
19849 #ifdef __cplusplus
19850 extern "C"
19851 #endif
19852 char cur_term ();
19853 int
19854 main ()
19855 {
19856 return cur_term ();
19857 ;
19858 return 0;
19859 }
19860 _ACEOF
19861 for ac_lib in '' termcap ncurses; do
19862 if test -z "$ac_lib"; then
19863 ac_res="none required"
19864 else
19865 ac_res=-l$ac_lib
19866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19867 fi
19868 if ac_fn_cxx_try_link "$LINENO"; then :
19869 ac_cv_search_cur_term=$ac_res
19870 fi
19871 rm -f core conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext
19873 if ${ac_cv_search_cur_term+:} false; then :
19874 break
19875 fi
19876 done
19877 if ${ac_cv_search_cur_term+:} false; then :
19878
19879 else
19880 ac_cv_search_cur_term=no
19881 fi
19882 rm conftest.$ac_ext
19883 LIBS=$ac_func_search_save_LIBS
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19886 $as_echo "$ac_cv_search_cur_term" >&6; }
19887 ac_res=$ac_cv_search_cur_term
19888 if test "$ac_res" != no; then :
19889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19890
19891 fi
19892
19893 LTLIBTERMCAP=$LIBS
19894 LIBS=$cy_save
19895
19896
19897
19898
19899
19900
19901 SO=$acl_shlibext
19902
19903
19904 if test "x$CY_EXECUTE" = x1; then :
19905
19906 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19907 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
19908
19909 if test -n "$ac_tool_prefix"; then
19910 for ac_prog in lipo
19911 do
19912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19915 $as_echo_n "checking for $ac_word... " >&6; }
19916 if ${ac_cv_prog__LIPO+:} false; then :
19917 $as_echo_n "(cached) " >&6
19918 else
19919 if test -n "$_LIPO"; then
19920 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
19921 else
19922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19924 do
19925 IFS=$as_save_IFS
19926 test -z "$as_dir" && as_dir=.
19927 for ac_exec_ext in '' $ac_executable_extensions; do
19928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19929 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
19930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19931 break 2
19932 fi
19933 done
19934 done
19935 IFS=$as_save_IFS
19936
19937 fi
19938 fi
19939 _LIPO=$ac_cv_prog__LIPO
19940 if test -n "$_LIPO"; then
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
19942 $as_echo "$_LIPO" >&6; }
19943 else
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19946 fi
19947
19948
19949 test -n "$_LIPO" && break
19950 done
19951 fi
19952 if test -z "$_LIPO"; then
19953 ac_ct__LIPO=$_LIPO
19954 for ac_prog in lipo
19955 do
19956 # Extract the first word of "$ac_prog", so it can be a program name with args.
19957 set dummy $ac_prog; ac_word=$2
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19959 $as_echo_n "checking for $ac_word... " >&6; }
19960 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
19961 $as_echo_n "(cached) " >&6
19962 else
19963 if test -n "$ac_ct__LIPO"; then
19964 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
19965 else
19966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19967 for as_dir in $PATH
19968 do
19969 IFS=$as_save_IFS
19970 test -z "$as_dir" && as_dir=.
19971 for ac_exec_ext in '' $ac_executable_extensions; do
19972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19973 ac_cv_prog_ac_ct__LIPO="$ac_prog"
19974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19975 break 2
19976 fi
19977 done
19978 done
19979 IFS=$as_save_IFS
19980
19981 fi
19982 fi
19983 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
19984 if test -n "$ac_ct__LIPO"; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
19986 $as_echo "$ac_ct__LIPO" >&6; }
19987 else
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19989 $as_echo "no" >&6; }
19990 fi
19991
19992
19993 test -n "$ac_ct__LIPO" && break
19994 done
19995
19996 if test "x$ac_ct__LIPO" = x; then
19997 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
19998 else
19999 case $cross_compiling:$ac_tool_warned in
20000 yes:)
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20003 ac_tool_warned=yes ;;
20004 esac
20005 _LIPO=$ac_ct__LIPO
20006 fi
20007 fi
20008
20009 if test -n "$ac_tool_prefix"; then
20010 for ac_prog in nm
20011 do
20012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20015 $as_echo_n "checking for $ac_word... " >&6; }
20016 if ${ac_cv_prog__NM+:} false; then :
20017 $as_echo_n "(cached) " >&6
20018 else
20019 if test -n "$_NM"; then
20020 ac_cv_prog__NM="$_NM" # Let the user override the test.
20021 else
20022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20023 for as_dir in $PATH
20024 do
20025 IFS=$as_save_IFS
20026 test -z "$as_dir" && as_dir=.
20027 for ac_exec_ext in '' $ac_executable_extensions; do
20028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20029 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20031 break 2
20032 fi
20033 done
20034 done
20035 IFS=$as_save_IFS
20036
20037 fi
20038 fi
20039 _NM=$ac_cv_prog__NM
20040 if test -n "$_NM"; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20042 $as_echo "$_NM" >&6; }
20043 else
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20046 fi
20047
20048
20049 test -n "$_NM" && break
20050 done
20051 fi
20052 if test -z "$_NM"; then
20053 ac_ct__NM=$_NM
20054 for ac_prog in nm
20055 do
20056 # Extract the first word of "$ac_prog", so it can be a program name with args.
20057 set dummy $ac_prog; ac_word=$2
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20059 $as_echo_n "checking for $ac_word... " >&6; }
20060 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20061 $as_echo_n "(cached) " >&6
20062 else
20063 if test -n "$ac_ct__NM"; then
20064 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20065 else
20066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20067 for as_dir in $PATH
20068 do
20069 IFS=$as_save_IFS
20070 test -z "$as_dir" && as_dir=.
20071 for ac_exec_ext in '' $ac_executable_extensions; do
20072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20073 ac_cv_prog_ac_ct__NM="$ac_prog"
20074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20075 break 2
20076 fi
20077 done
20078 done
20079 IFS=$as_save_IFS
20080
20081 fi
20082 fi
20083 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20084 if test -n "$ac_ct__NM"; then
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20086 $as_echo "$ac_ct__NM" >&6; }
20087 else
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20089 $as_echo "no" >&6; }
20090 fi
20091
20092
20093 test -n "$ac_ct__NM" && break
20094 done
20095
20096 if test "x$ac_ct__NM" = x; then
20097 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
20098 else
20099 case $cross_compiling:$ac_tool_warned in
20100 yes:)
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20103 ac_tool_warned=yes ;;
20104 esac
20105 _NM=$ac_ct__NM
20106 fi
20107 fi
20108
20109 if test -n "$ac_tool_prefix"; then
20110 for ac_prog in otool
20111 do
20112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20115 $as_echo_n "checking for $ac_word... " >&6; }
20116 if ${ac_cv_prog__OTOOL+:} false; then :
20117 $as_echo_n "(cached) " >&6
20118 else
20119 if test -n "$_OTOOL"; then
20120 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20121 else
20122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20123 for as_dir in $PATH
20124 do
20125 IFS=$as_save_IFS
20126 test -z "$as_dir" && as_dir=.
20127 for ac_exec_ext in '' $ac_executable_extensions; do
20128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20129 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20131 break 2
20132 fi
20133 done
20134 done
20135 IFS=$as_save_IFS
20136
20137 fi
20138 fi
20139 _OTOOL=$ac_cv_prog__OTOOL
20140 if test -n "$_OTOOL"; then
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20142 $as_echo "$_OTOOL" >&6; }
20143 else
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20145 $as_echo "no" >&6; }
20146 fi
20147
20148
20149 test -n "$_OTOOL" && break
20150 done
20151 fi
20152 if test -z "$_OTOOL"; then
20153 ac_ct__OTOOL=$_OTOOL
20154 for ac_prog in otool
20155 do
20156 # Extract the first word of "$ac_prog", so it can be a program name with args.
20157 set dummy $ac_prog; ac_word=$2
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20159 $as_echo_n "checking for $ac_word... " >&6; }
20160 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20161 $as_echo_n "(cached) " >&6
20162 else
20163 if test -n "$ac_ct__OTOOL"; then
20164 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20165 else
20166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20167 for as_dir in $PATH
20168 do
20169 IFS=$as_save_IFS
20170 test -z "$as_dir" && as_dir=.
20171 for ac_exec_ext in '' $ac_executable_extensions; do
20172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20173 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20175 break 2
20176 fi
20177 done
20178 done
20179 IFS=$as_save_IFS
20180
20181 fi
20182 fi
20183 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20184 if test -n "$ac_ct__OTOOL"; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20186 $as_echo "$ac_ct__OTOOL" >&6; }
20187 else
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20189 $as_echo "no" >&6; }
20190 fi
20191
20192
20193 test -n "$ac_ct__OTOOL" && break
20194 done
20195
20196 if test "x$ac_ct__OTOOL" = x; then
20197 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
20198 else
20199 case $cross_compiling:$ac_tool_warned in
20200 yes:)
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20203 ac_tool_warned=yes ;;
20204 esac
20205 _OTOOL=$ac_ct__OTOOL
20206 fi
20207 fi
20208
20209 CY_ATTACH_GROUP=procmod
20210
20211 CY_MACH=1
20212
20213 fi
20214
20215
20216 fi
20217 if test "x$CY_MACH" = x1; then
20218 CY_MACH_TRUE=
20219 CY_MACH_FALSE='#'
20220 else
20221 CY_MACH_TRUE='#'
20222 CY_MACH_FALSE=
20223 fi
20224
20225
20226 ac_config_files="$ac_config_files Makefile"
20227
20228 cat >confcache <<\_ACEOF
20229 # This file is a shell script that caches the results of configure
20230 # tests run on this system so they can be shared between configure
20231 # scripts and configure runs, see configure's option --config-cache.
20232 # It is not useful on other systems. If it contains results you don't
20233 # want to keep, you may remove or edit it.
20234 #
20235 # config.status only pays attention to the cache file if you give it
20236 # the --recheck option to rerun configure.
20237 #
20238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20240 # following values.
20241
20242 _ACEOF
20243
20244 # The following way of writing the cache mishandles newlines in values,
20245 # but we know of no workaround that is simple, portable, and efficient.
20246 # So, we kill variables containing newlines.
20247 # Ultrix sh set writes to stderr and can't be redirected directly,
20248 # and sets the high bit in the cache file unless we assign to the vars.
20249 (
20250 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20251 eval ac_val=\$$ac_var
20252 case $ac_val in #(
20253 *${as_nl}*)
20254 case $ac_var in #(
20255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20257 esac
20258 case $ac_var in #(
20259 _ | IFS | as_nl) ;; #(
20260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20261 *) { eval $ac_var=; unset $ac_var;} ;;
20262 esac ;;
20263 esac
20264 done
20265
20266 (set) 2>&1 |
20267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20268 *${as_nl}ac_space=\ *)
20269 # `set' does not quote correctly, so add quotes: double-quote
20270 # substitution turns \\\\ into \\, and sed turns \\ into \.
20271 sed -n \
20272 "s/'/'\\\\''/g;
20273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20274 ;; #(
20275 *)
20276 # `set' quotes correctly as required by POSIX, so do not add quotes.
20277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20278 ;;
20279 esac |
20280 sort
20281 ) |
20282 sed '
20283 /^ac_cv_env_/b end
20284 t clear
20285 :clear
20286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20287 t end
20288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20289 :end' >>confcache
20290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20291 if test -w "$cache_file"; then
20292 if test "x$cache_file" != "x/dev/null"; then
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20294 $as_echo "$as_me: updating cache $cache_file" >&6;}
20295 if test ! -f "$cache_file" || test -h "$cache_file"; then
20296 cat confcache >"$cache_file"
20297 else
20298 case $cache_file in #(
20299 */* | ?:*)
20300 mv -f confcache "$cache_file"$$ &&
20301 mv -f "$cache_file"$$ "$cache_file" ;; #(
20302 *)
20303 mv -f confcache "$cache_file" ;;
20304 esac
20305 fi
20306 fi
20307 else
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20310 fi
20311 fi
20312 rm -f confcache
20313
20314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20315 # Let make expand exec_prefix.
20316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20317
20318 DEFS=-DHAVE_CONFIG_H
20319
20320 ac_libobjs=
20321 ac_ltlibobjs=
20322 U=
20323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20324 # 1. Remove the extension, and $U if already installed.
20325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20328 # will be set to the directory where LIBOBJS objects are built.
20329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20331 done
20332 LIBOBJS=$ac_libobjs
20333
20334 LTLIBOBJS=$ac_ltlibobjs
20335
20336
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20338 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20339 if test -n "$am_sleep_pid"; then
20340 # Hide warnings about reused PIDs.
20341 wait $am_sleep_pid 2>/dev/null
20342 fi
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20344 $as_echo "done" >&6; }
20345 if test -n "$EXEEXT"; then
20346 am__EXEEXT_TRUE=
20347 am__EXEEXT_FALSE='#'
20348 else
20349 am__EXEEXT_TRUE='#'
20350 am__EXEEXT_FALSE=
20351 fi
20352
20353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20354 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20356 fi
20357 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20358 as_fn_error $? "conditional \"AMDEP\" was never defined.
20359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20360 fi
20361 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20362 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20364 fi
20365 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20366 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20368 fi
20369 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20370 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20372 fi
20373 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20374 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
20375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20376 fi
20377 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20378 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20380 fi
20381 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20382 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20384 fi
20385 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20386 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20388 fi
20389
20390 : "${CONFIG_STATUS=./config.status}"
20391 ac_write_fail=0
20392 ac_clean_files_save=$ac_clean_files
20393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20395 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20396 as_write_fail=0
20397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20398 #! $SHELL
20399 # Generated by $as_me.
20400 # Run this file to recreate the current configuration.
20401 # Compiler output produced by configure, useful for debugging
20402 # configure, is in config.log if it exists.
20403
20404 debug=false
20405 ac_cs_recheck=false
20406 ac_cs_silent=false
20407
20408 SHELL=\${CONFIG_SHELL-$SHELL}
20409 export SHELL
20410 _ASEOF
20411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20412 ## -------------------- ##
20413 ## M4sh Initialization. ##
20414 ## -------------------- ##
20415
20416 # Be more Bourne compatible
20417 DUALCASE=1; export DUALCASE # for MKS sh
20418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20419 emulate sh
20420 NULLCMD=:
20421 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20422 # is contrary to our usage. Disable this feature.
20423 alias -g '${1+"$@"}'='"$@"'
20424 setopt NO_GLOB_SUBST
20425 else
20426 case `(set -o) 2>/dev/null` in #(
20427 *posix*) :
20428 set -o posix ;; #(
20429 *) :
20430 ;;
20431 esac
20432 fi
20433
20434
20435 as_nl='
20436 '
20437 export as_nl
20438 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20439 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20442 # Prefer a ksh shell builtin over an external printf program on Solaris,
20443 # but without wasting forks for bash or zsh.
20444 if test -z "$BASH_VERSION$ZSH_VERSION" \
20445 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20446 as_echo='print -r --'
20447 as_echo_n='print -rn --'
20448 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20449 as_echo='printf %s\n'
20450 as_echo_n='printf %s'
20451 else
20452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20453 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20454 as_echo_n='/usr/ucb/echo -n'
20455 else
20456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20457 as_echo_n_body='eval
20458 arg=$1;
20459 case $arg in #(
20460 *"$as_nl"*)
20461 expr "X$arg" : "X\\(.*\\)$as_nl";
20462 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20463 esac;
20464 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20465 '
20466 export as_echo_n_body
20467 as_echo_n='sh -c $as_echo_n_body as_echo'
20468 fi
20469 export as_echo_body
20470 as_echo='sh -c $as_echo_body as_echo'
20471 fi
20472
20473 # The user is always right.
20474 if test "${PATH_SEPARATOR+set}" != set; then
20475 PATH_SEPARATOR=:
20476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20477 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20478 PATH_SEPARATOR=';'
20479 }
20480 fi
20481
20482
20483 # IFS
20484 # We need space, tab and new line, in precisely that order. Quoting is
20485 # there to prevent editors from complaining about space-tab.
20486 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20487 # splitting by setting IFS to empty value.)
20488 IFS=" "" $as_nl"
20489
20490 # Find who we are. Look in the path if we contain no directory separator.
20491 as_myself=
20492 case $0 in #((
20493 *[\\/]* ) as_myself=$0 ;;
20494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20495 for as_dir in $PATH
20496 do
20497 IFS=$as_save_IFS
20498 test -z "$as_dir" && as_dir=.
20499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20500 done
20501 IFS=$as_save_IFS
20502
20503 ;;
20504 esac
20505 # We did not find ourselves, most probably we were run as `sh COMMAND'
20506 # in which case we are not to be found in the path.
20507 if test "x$as_myself" = x; then
20508 as_myself=$0
20509 fi
20510 if test ! -f "$as_myself"; then
20511 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20512 exit 1
20513 fi
20514
20515 # Unset variables that we do not need and which cause bugs (e.g. in
20516 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20517 # suppresses any "Segmentation fault" message there. '((' could
20518 # trigger a bug in pdksh 5.2.14.
20519 for as_var in BASH_ENV ENV MAIL MAILPATH
20520 do eval test x\${$as_var+set} = xset \
20521 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20522 done
20523 PS1='$ '
20524 PS2='> '
20525 PS4='+ '
20526
20527 # NLS nuisances.
20528 LC_ALL=C
20529 export LC_ALL
20530 LANGUAGE=C
20531 export LANGUAGE
20532
20533 # CDPATH.
20534 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20535
20536
20537 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20538 # ----------------------------------------
20539 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20540 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20541 # script with STATUS, using 1 if that was 0.
20542 as_fn_error ()
20543 {
20544 as_status=$1; test $as_status -eq 0 && as_status=1
20545 if test "$4"; then
20546 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20547 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20548 fi
20549 $as_echo "$as_me: error: $2" >&2
20550 as_fn_exit $as_status
20551 } # as_fn_error
20552
20553
20554 # as_fn_set_status STATUS
20555 # -----------------------
20556 # Set $? to STATUS, without forking.
20557 as_fn_set_status ()
20558 {
20559 return $1
20560 } # as_fn_set_status
20561
20562 # as_fn_exit STATUS
20563 # -----------------
20564 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20565 as_fn_exit ()
20566 {
20567 set +e
20568 as_fn_set_status $1
20569 exit $1
20570 } # as_fn_exit
20571
20572 # as_fn_unset VAR
20573 # ---------------
20574 # Portably unset VAR.
20575 as_fn_unset ()
20576 {
20577 { eval $1=; unset $1;}
20578 }
20579 as_unset=as_fn_unset
20580 # as_fn_append VAR VALUE
20581 # ----------------------
20582 # Append the text in VALUE to the end of the definition contained in VAR. Take
20583 # advantage of any shell optimizations that allow amortized linear growth over
20584 # repeated appends, instead of the typical quadratic growth present in naive
20585 # implementations.
20586 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20587 eval 'as_fn_append ()
20588 {
20589 eval $1+=\$2
20590 }'
20591 else
20592 as_fn_append ()
20593 {
20594 eval $1=\$$1\$2
20595 }
20596 fi # as_fn_append
20597
20598 # as_fn_arith ARG...
20599 # ------------------
20600 # Perform arithmetic evaluation on the ARGs, and store the result in the
20601 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20602 # must be portable across $(()) and expr.
20603 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20604 eval 'as_fn_arith ()
20605 {
20606 as_val=$(( $* ))
20607 }'
20608 else
20609 as_fn_arith ()
20610 {
20611 as_val=`expr "$@" || test $? -eq 1`
20612 }
20613 fi # as_fn_arith
20614
20615
20616 if expr a : '\(a\)' >/dev/null 2>&1 &&
20617 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20618 as_expr=expr
20619 else
20620 as_expr=false
20621 fi
20622
20623 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20624 as_basename=basename
20625 else
20626 as_basename=false
20627 fi
20628
20629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20630 as_dirname=dirname
20631 else
20632 as_dirname=false
20633 fi
20634
20635 as_me=`$as_basename -- "$0" ||
20636 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20637 X"$0" : 'X\(//\)$' \| \
20638 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20639 $as_echo X/"$0" |
20640 sed '/^.*\/\([^/][^/]*\)\/*$/{
20641 s//\1/
20642 q
20643 }
20644 /^X\/\(\/\/\)$/{
20645 s//\1/
20646 q
20647 }
20648 /^X\/\(\/\).*/{
20649 s//\1/
20650 q
20651 }
20652 s/.*/./; q'`
20653
20654 # Avoid depending upon Character Ranges.
20655 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20656 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20657 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20658 as_cr_digits='0123456789'
20659 as_cr_alnum=$as_cr_Letters$as_cr_digits
20660
20661 ECHO_C= ECHO_N= ECHO_T=
20662 case `echo -n x` in #(((((
20663 -n*)
20664 case `echo 'xy\c'` in
20665 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20666 xy) ECHO_C='\c';;
20667 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20668 ECHO_T=' ';;
20669 esac;;
20670 *)
20671 ECHO_N='-n';;
20672 esac
20673
20674 rm -f conf$$ conf$$.exe conf$$.file
20675 if test -d conf$$.dir; then
20676 rm -f conf$$.dir/conf$$.file
20677 else
20678 rm -f conf$$.dir
20679 mkdir conf$$.dir 2>/dev/null
20680 fi
20681 if (echo >conf$$.file) 2>/dev/null; then
20682 if ln -s conf$$.file conf$$ 2>/dev/null; then
20683 as_ln_s='ln -s'
20684 # ... but there are two gotchas:
20685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20687 # In both cases, we have to default to `cp -pR'.
20688 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20689 as_ln_s='cp -pR'
20690 elif ln conf$$.file conf$$ 2>/dev/null; then
20691 as_ln_s=ln
20692 else
20693 as_ln_s='cp -pR'
20694 fi
20695 else
20696 as_ln_s='cp -pR'
20697 fi
20698 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20699 rmdir conf$$.dir 2>/dev/null
20700
20701
20702 # as_fn_mkdir_p
20703 # -------------
20704 # Create "$as_dir" as a directory, including parents if necessary.
20705 as_fn_mkdir_p ()
20706 {
20707
20708 case $as_dir in #(
20709 -*) as_dir=./$as_dir;;
20710 esac
20711 test -d "$as_dir" || eval $as_mkdir_p || {
20712 as_dirs=
20713 while :; do
20714 case $as_dir in #(
20715 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20716 *) as_qdir=$as_dir;;
20717 esac
20718 as_dirs="'$as_qdir' $as_dirs"
20719 as_dir=`$as_dirname -- "$as_dir" ||
20720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20721 X"$as_dir" : 'X\(//\)[^/]' \| \
20722 X"$as_dir" : 'X\(//\)$' \| \
20723 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20724 $as_echo X"$as_dir" |
20725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20726 s//\1/
20727 q
20728 }
20729 /^X\(\/\/\)[^/].*/{
20730 s//\1/
20731 q
20732 }
20733 /^X\(\/\/\)$/{
20734 s//\1/
20735 q
20736 }
20737 /^X\(\/\).*/{
20738 s//\1/
20739 q
20740 }
20741 s/.*/./; q'`
20742 test -d "$as_dir" && break
20743 done
20744 test -z "$as_dirs" || eval "mkdir $as_dirs"
20745 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20746
20747
20748 } # as_fn_mkdir_p
20749 if mkdir -p . 2>/dev/null; then
20750 as_mkdir_p='mkdir -p "$as_dir"'
20751 else
20752 test -d ./-p && rmdir ./-p
20753 as_mkdir_p=false
20754 fi
20755
20756
20757 # as_fn_executable_p FILE
20758 # -----------------------
20759 # Test if FILE is an executable regular file.
20760 as_fn_executable_p ()
20761 {
20762 test -f "$1" && test -x "$1"
20763 } # as_fn_executable_p
20764 as_test_x='test -x'
20765 as_executable_p=as_fn_executable_p
20766
20767 # Sed expression to map a string onto a valid CPP name.
20768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20769
20770 # Sed expression to map a string onto a valid variable name.
20771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20772
20773
20774 exec 6>&1
20775 ## ----------------------------------- ##
20776 ## Main body of $CONFIG_STATUS script. ##
20777 ## ----------------------------------- ##
20778 _ASEOF
20779 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20780
20781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20782 # Save the log message, to keep $0 and so on meaningful, and to
20783 # report actual input values of CONFIG_FILES etc. instead of their
20784 # values after options handling.
20785 ac_log="
20786 This file was extended by Cycript $as_me 0.9, which was
20787 generated by GNU Autoconf 2.69. Invocation command line was
20788
20789 CONFIG_FILES = $CONFIG_FILES
20790 CONFIG_HEADERS = $CONFIG_HEADERS
20791 CONFIG_LINKS = $CONFIG_LINKS
20792 CONFIG_COMMANDS = $CONFIG_COMMANDS
20793 $ $0 $@
20794
20795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20796 "
20797
20798 _ACEOF
20799
20800 case $ac_config_files in *"
20801 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20802 esac
20803
20804 case $ac_config_headers in *"
20805 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20806 esac
20807
20808
20809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20810 # Files that config.status was made for.
20811 config_files="$ac_config_files"
20812 config_headers="$ac_config_headers"
20813 config_commands="$ac_config_commands"
20814
20815 _ACEOF
20816
20817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20818 ac_cs_usage="\
20819 \`$as_me' instantiates files and other configuration actions
20820 from templates according to the current configuration. Unless the files
20821 and actions are specified as TAGs, all are instantiated by default.
20822
20823 Usage: $0 [OPTION]... [TAG]...
20824
20825 -h, --help print this help, then exit
20826 -V, --version print version number and configuration settings, then exit
20827 --config print configuration, then exit
20828 -q, --quiet, --silent
20829 do not print progress messages
20830 -d, --debug don't remove temporary files
20831 --recheck update $as_me by reconfiguring in the same conditions
20832 --file=FILE[:TEMPLATE]
20833 instantiate the configuration file FILE
20834 --header=FILE[:TEMPLATE]
20835 instantiate the configuration header FILE
20836
20837 Configuration files:
20838 $config_files
20839
20840 Configuration headers:
20841 $config_headers
20842
20843 Configuration commands:
20844 $config_commands
20845
20846 Report bugs to <saurik@saurik.com>.
20847 Cycript home page: <http://www.cycript.org/>."
20848
20849 _ACEOF
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20852 ac_cs_version="\\
20853 Cycript config.status 0.9
20854 configured by $0, generated by GNU Autoconf 2.69,
20855 with options \\"\$ac_cs_config\\"
20856
20857 Copyright (C) 2012 Free Software Foundation, Inc.
20858 This config.status script is free software; the Free Software Foundation
20859 gives unlimited permission to copy, distribute and modify it."
20860
20861 ac_pwd='$ac_pwd'
20862 srcdir='$srcdir'
20863 INSTALL='$INSTALL'
20864 MKDIR_P='$MKDIR_P'
20865 AWK='$AWK'
20866 test -n "\$AWK" || AWK=awk
20867 _ACEOF
20868
20869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20870 # The default lists apply if the user does not specify any file.
20871 ac_need_defaults=:
20872 while test $# != 0
20873 do
20874 case $1 in
20875 --*=?*)
20876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20878 ac_shift=:
20879 ;;
20880 --*=)
20881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20882 ac_optarg=
20883 ac_shift=:
20884 ;;
20885 *)
20886 ac_option=$1
20887 ac_optarg=$2
20888 ac_shift=shift
20889 ;;
20890 esac
20891
20892 case $ac_option in
20893 # Handling of the options.
20894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20895 ac_cs_recheck=: ;;
20896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20897 $as_echo "$ac_cs_version"; exit ;;
20898 --config | --confi | --conf | --con | --co | --c )
20899 $as_echo "$ac_cs_config"; exit ;;
20900 --debug | --debu | --deb | --de | --d | -d )
20901 debug=: ;;
20902 --file | --fil | --fi | --f )
20903 $ac_shift
20904 case $ac_optarg in
20905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20906 '') as_fn_error $? "missing file argument" ;;
20907 esac
20908 as_fn_append CONFIG_FILES " '$ac_optarg'"
20909 ac_need_defaults=false;;
20910 --header | --heade | --head | --hea )
20911 $ac_shift
20912 case $ac_optarg in
20913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20914 esac
20915 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20916 ac_need_defaults=false;;
20917 --he | --h)
20918 # Conflict between --help and --header
20919 as_fn_error $? "ambiguous option: \`$1'
20920 Try \`$0 --help' for more information.";;
20921 --help | --hel | -h )
20922 $as_echo "$ac_cs_usage"; exit ;;
20923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20924 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20925 ac_cs_silent=: ;;
20926
20927 # This is an error.
20928 -*) as_fn_error $? "unrecognized option: \`$1'
20929 Try \`$0 --help' for more information." ;;
20930
20931 *) as_fn_append ac_config_targets " $1"
20932 ac_need_defaults=false ;;
20933
20934 esac
20935 shift
20936 done
20937
20938 ac_configure_extra_args=
20939
20940 if $ac_cs_silent; then
20941 exec 6>/dev/null
20942 ac_configure_extra_args="$ac_configure_extra_args --silent"
20943 fi
20944
20945 _ACEOF
20946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20947 if \$ac_cs_recheck; then
20948 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20949 shift
20950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20951 CONFIG_SHELL='$SHELL'
20952 export CONFIG_SHELL
20953 exec "\$@"
20954 fi
20955
20956 _ACEOF
20957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20958 exec 5>>config.log
20959 {
20960 echo
20961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20962 ## Running $as_me. ##
20963 _ASBOX
20964 $as_echo "$ac_log"
20965 } >&5
20966
20967 _ACEOF
20968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20969 #
20970 # INIT-COMMANDS
20971 #
20972 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20973
20974
20975 # The HP-UX ksh and POSIX shell print the target directory to stdout
20976 # if CDPATH is set.
20977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20978
20979 sed_quote_subst='$sed_quote_subst'
20980 double_quote_subst='$double_quote_subst'
20981 delay_variable_subst='$delay_variable_subst'
20982 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20983 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20984 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20985 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20986 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20987 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21015 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21016 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21017 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21018 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21019 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21020 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21021 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21022 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21023 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21024 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21025 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21026 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21027 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21028 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21029 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21030 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21031 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21032 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21033 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21034 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21035 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21036 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21037 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21038 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"`'
21039 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21040 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21041 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21042 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21043 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21044 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21045 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21046 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21047 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21048 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21049 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21050 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21051 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21052 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21053 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21054 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21055 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21056 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21057 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21058 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21059 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21060 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21061 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21062 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21063 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21064 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21065 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21066 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21067 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21068 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21069 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21070 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21071 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21072 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21073 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21074 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21075 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21076 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21077 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21078 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21079 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21080 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21081 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21082 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21083 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21084 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21085 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21086 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21087 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21088 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21089 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21090 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21091 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21092 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21093 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21094 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21095 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21096 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21097 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21098 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21099 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21100 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21101 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21102 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21103 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21104 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21105 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21106 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21107 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21108 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21109 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21110 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21111 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21112 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21113 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21114 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21115 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21116 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21117 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21118 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21119 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21120 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21121 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21122 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21123 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21124 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21125 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21126 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21127 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21128 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21129 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21130 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21131 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21132 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21133 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21134 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21135 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21136 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21137 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21138 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21139 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21140 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21141 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21142 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21143 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21144 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21145 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21146 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21147 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21148 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21149 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21150 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21151 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21152 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21153 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21154 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21155 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21156 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21157 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21158 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21159 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21160 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21161 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21162 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21163 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21164 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21165 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21166
21167 LTCC='$LTCC'
21168 LTCFLAGS='$LTCFLAGS'
21169 compiler='$compiler_DEFAULT'
21170
21171 # A function that is used when there is no print builtin or printf.
21172 func_fallback_echo ()
21173 {
21174 eval 'cat <<_LTECHO_EOF
21175 \$1
21176 _LTECHO_EOF'
21177 }
21178
21179 # Quote evaled strings.
21180 for var in SHELL \
21181 ECHO \
21182 PATH_SEPARATOR \
21183 SED \
21184 GREP \
21185 EGREP \
21186 FGREP \
21187 LD \
21188 NM \
21189 LN_S \
21190 lt_SP2NL \
21191 lt_NL2SP \
21192 reload_flag \
21193 OBJDUMP \
21194 deplibs_check_method \
21195 file_magic_cmd \
21196 file_magic_glob \
21197 want_nocaseglob \
21198 DLLTOOL \
21199 sharedlib_from_linklib_cmd \
21200 AR \
21201 AR_FLAGS \
21202 archiver_list_spec \
21203 STRIP \
21204 RANLIB \
21205 CC \
21206 CFLAGS \
21207 compiler \
21208 lt_cv_sys_global_symbol_pipe \
21209 lt_cv_sys_global_symbol_to_cdecl \
21210 lt_cv_sys_global_symbol_to_c_name_address \
21211 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21212 nm_file_list_spec \
21213 lt_prog_compiler_no_builtin_flag \
21214 lt_prog_compiler_pic \
21215 lt_prog_compiler_wl \
21216 lt_prog_compiler_static \
21217 lt_cv_prog_compiler_c_o \
21218 need_locks \
21219 MANIFEST_TOOL \
21220 DSYMUTIL \
21221 NMEDIT \
21222 LIPO \
21223 OTOOL \
21224 OTOOL64 \
21225 shrext_cmds \
21226 export_dynamic_flag_spec \
21227 whole_archive_flag_spec \
21228 compiler_needs_object \
21229 with_gnu_ld \
21230 allow_undefined_flag \
21231 no_undefined_flag \
21232 hardcode_libdir_flag_spec \
21233 hardcode_libdir_separator \
21234 exclude_expsyms \
21235 include_expsyms \
21236 file_list_spec \
21237 variables_saved_for_relink \
21238 libname_spec \
21239 library_names_spec \
21240 soname_spec \
21241 install_override_mode \
21242 finish_eval \
21243 old_striplib \
21244 striplib \
21245 compiler_lib_search_dirs \
21246 predep_objects \
21247 postdep_objects \
21248 predeps \
21249 postdeps \
21250 compiler_lib_search_path \
21251 LD_CXX \
21252 reload_flag_CXX \
21253 compiler_CXX \
21254 lt_prog_compiler_no_builtin_flag_CXX \
21255 lt_prog_compiler_pic_CXX \
21256 lt_prog_compiler_wl_CXX \
21257 lt_prog_compiler_static_CXX \
21258 lt_cv_prog_compiler_c_o_CXX \
21259 export_dynamic_flag_spec_CXX \
21260 whole_archive_flag_spec_CXX \
21261 compiler_needs_object_CXX \
21262 with_gnu_ld_CXX \
21263 allow_undefined_flag_CXX \
21264 no_undefined_flag_CXX \
21265 hardcode_libdir_flag_spec_CXX \
21266 hardcode_libdir_separator_CXX \
21267 exclude_expsyms_CXX \
21268 include_expsyms_CXX \
21269 file_list_spec_CXX \
21270 compiler_lib_search_dirs_CXX \
21271 predep_objects_CXX \
21272 postdep_objects_CXX \
21273 predeps_CXX \
21274 postdeps_CXX \
21275 compiler_lib_search_path_CXX; do
21276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21277 *[\\\\\\\`\\"\\\$]*)
21278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21279 ;;
21280 *)
21281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21282 ;;
21283 esac
21284 done
21285
21286 # Double-quote double-evaled strings.
21287 for var in reload_cmds \
21288 old_postinstall_cmds \
21289 old_postuninstall_cmds \
21290 old_archive_cmds \
21291 extract_expsyms_cmds \
21292 old_archive_from_new_cmds \
21293 old_archive_from_expsyms_cmds \
21294 archive_cmds \
21295 archive_expsym_cmds \
21296 module_cmds \
21297 module_expsym_cmds \
21298 export_symbols_cmds \
21299 prelink_cmds \
21300 postlink_cmds \
21301 postinstall_cmds \
21302 postuninstall_cmds \
21303 finish_cmds \
21304 sys_lib_search_path_spec \
21305 sys_lib_dlsearch_path_spec \
21306 reload_cmds_CXX \
21307 old_archive_cmds_CXX \
21308 old_archive_from_new_cmds_CXX \
21309 old_archive_from_expsyms_cmds_CXX \
21310 archive_cmds_CXX \
21311 archive_expsym_cmds_CXX \
21312 module_cmds_CXX \
21313 module_expsym_cmds_CXX \
21314 export_symbols_cmds_CXX \
21315 prelink_cmds_CXX \
21316 postlink_cmds_CXX; do
21317 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21318 *[\\\\\\\`\\"\\\$]*)
21319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21320 ;;
21321 *)
21322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21323 ;;
21324 esac
21325 done
21326
21327 ac_aux_dir='$ac_aux_dir'
21328 xsi_shell='$xsi_shell'
21329 lt_shell_append='$lt_shell_append'
21330
21331 # See if we are running on zsh, and set the options which allow our
21332 # commands through without removal of \ escapes INIT.
21333 if test -n "\${ZSH_VERSION+set}" ; then
21334 setopt NO_GLOB_SUBST
21335 fi
21336
21337
21338 PACKAGE='$PACKAGE'
21339 VERSION='$VERSION'
21340 TIMESTAMP='$TIMESTAMP'
21341 RM='$RM'
21342 ofile='$ofile'
21343
21344
21345
21346
21347
21348
21349 _ACEOF
21350
21351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21352
21353 # Handling of arguments.
21354 for ac_config_target in $ac_config_targets
21355 do
21356 case $ac_config_target in
21357 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21358 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21359 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21360 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21361
21362 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21363 esac
21364 done
21365
21366
21367 # If the user did not use the arguments to specify the items to instantiate,
21368 # then the envvar interface is used. Set only those that are not.
21369 # We use the long form for the default assignment because of an extremely
21370 # bizarre bug on SunOS 4.1.3.
21371 if $ac_need_defaults; then
21372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21374 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21375 fi
21376
21377 # Have a temporary directory for convenience. Make it in the build tree
21378 # simply because there is no reason against having it here, and in addition,
21379 # creating and moving files from /tmp can sometimes cause problems.
21380 # Hook for its removal unless debugging.
21381 # Note that there is a small window in which the directory will not be cleaned:
21382 # after its creation but before its name has been assigned to `$tmp'.
21383 $debug ||
21384 {
21385 tmp= ac_tmp=
21386 trap 'exit_status=$?
21387 : "${ac_tmp:=$tmp}"
21388 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21389 ' 0
21390 trap 'as_fn_exit 1' 1 2 13 15
21391 }
21392 # Create a (secure) tmp directory for tmp files.
21393
21394 {
21395 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21396 test -d "$tmp"
21397 } ||
21398 {
21399 tmp=./conf$$-$RANDOM
21400 (umask 077 && mkdir "$tmp")
21401 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21402 ac_tmp=$tmp
21403
21404 # Set up the scripts for CONFIG_FILES section.
21405 # No need to generate them if there are no CONFIG_FILES.
21406 # This happens for instance with `./config.status config.h'.
21407 if test -n "$CONFIG_FILES"; then
21408
21409
21410 ac_cr=`echo X | tr X '\015'`
21411 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21412 # But we know of no other shell where ac_cr would be empty at this
21413 # point, so we can use a bashism as a fallback.
21414 if test "x$ac_cr" = x; then
21415 eval ac_cr=\$\'\\r\'
21416 fi
21417 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21418 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21419 ac_cs_awk_cr='\\r'
21420 else
21421 ac_cs_awk_cr=$ac_cr
21422 fi
21423
21424 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21425 _ACEOF
21426
21427
21428 {
21429 echo "cat >conf$$subs.awk <<_ACEOF" &&
21430 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21431 echo "_ACEOF"
21432 } >conf$$subs.sh ||
21433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21434 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21435 ac_delim='%!_!# '
21436 for ac_last_try in false false false false false :; do
21437 . ./conf$$subs.sh ||
21438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21439
21440 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21441 if test $ac_delim_n = $ac_delim_num; then
21442 break
21443 elif $ac_last_try; then
21444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21445 else
21446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21447 fi
21448 done
21449 rm -f conf$$subs.sh
21450
21451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21452 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21453 _ACEOF
21454 sed -n '
21455 h
21456 s/^/S["/; s/!.*/"]=/
21457 p
21458 g
21459 s/^[^!]*!//
21460 :repl
21461 t repl
21462 s/'"$ac_delim"'$//
21463 t delim
21464 :nl
21465 h
21466 s/\(.\{148\}\)..*/\1/
21467 t more1
21468 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21469 p
21470 n
21471 b repl
21472 :more1
21473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21474 p
21475 g
21476 s/.\{148\}//
21477 t nl
21478 :delim
21479 h
21480 s/\(.\{148\}\)..*/\1/
21481 t more2
21482 s/["\\]/\\&/g; s/^/"/; s/$/"/
21483 p
21484 b
21485 :more2
21486 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21487 p
21488 g
21489 s/.\{148\}//
21490 t delim
21491 ' <conf$$subs.awk | sed '
21492 /^[^""]/{
21493 N
21494 s/\n//
21495 }
21496 ' >>$CONFIG_STATUS || ac_write_fail=1
21497 rm -f conf$$subs.awk
21498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21499 _ACAWK
21500 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21501 for (key in S) S_is_set[key] = 1
21502 FS = "\a"
21503
21504 }
21505 {
21506 line = $ 0
21507 nfields = split(line, field, "@")
21508 substed = 0
21509 len = length(field[1])
21510 for (i = 2; i < nfields; i++) {
21511 key = field[i]
21512 keylen = length(key)
21513 if (S_is_set[key]) {
21514 value = S[key]
21515 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21516 len += length(value) + length(field[++i])
21517 substed = 1
21518 } else
21519 len += 1 + keylen
21520 }
21521
21522 print line
21523 }
21524
21525 _ACAWK
21526 _ACEOF
21527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21528 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21529 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21530 else
21531 cat
21532 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21533 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21534 _ACEOF
21535
21536 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21537 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21538 # trailing colons and then remove the whole line if VPATH becomes empty
21539 # (actually we leave an empty line to preserve line numbers).
21540 if test "x$srcdir" = x.; then
21541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21542 h
21543 s///
21544 s/^/:/
21545 s/[ ]*$/:/
21546 s/:\$(srcdir):/:/g
21547 s/:\${srcdir}:/:/g
21548 s/:@srcdir@:/:/g
21549 s/^:*//
21550 s/:*$//
21551 x
21552 s/\(=[ ]*\).*/\1/
21553 G
21554 s/\n//
21555 s/^[^=]*=[ ]*$//
21556 }'
21557 fi
21558
21559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21560 fi # test -n "$CONFIG_FILES"
21561
21562 # Set up the scripts for CONFIG_HEADERS section.
21563 # No need to generate them if there are no CONFIG_HEADERS.
21564 # This happens for instance with `./config.status Makefile'.
21565 if test -n "$CONFIG_HEADERS"; then
21566 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21567 BEGIN {
21568 _ACEOF
21569
21570 # Transform confdefs.h into an awk script `defines.awk', embedded as
21571 # here-document in config.status, that substitutes the proper values into
21572 # config.h.in to produce config.h.
21573
21574 # Create a delimiter string that does not exist in confdefs.h, to ease
21575 # handling of long lines.
21576 ac_delim='%!_!# '
21577 for ac_last_try in false false :; do
21578 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21579 if test -z "$ac_tt"; then
21580 break
21581 elif $ac_last_try; then
21582 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21583 else
21584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21585 fi
21586 done
21587
21588 # For the awk script, D is an array of macro values keyed by name,
21589 # likewise P contains macro parameters if any. Preserve backslash
21590 # newline sequences.
21591
21592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21593 sed -n '
21594 s/.\{148\}/&'"$ac_delim"'/g
21595 t rset
21596 :rset
21597 s/^[ ]*#[ ]*define[ ][ ]*/ /
21598 t def
21599 d
21600 :def
21601 s/\\$//
21602 t bsnl
21603 s/["\\]/\\&/g
21604 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21605 D["\1"]=" \3"/p
21606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21607 d
21608 :bsnl
21609 s/["\\]/\\&/g
21610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21611 D["\1"]=" \3\\\\\\n"\\/p
21612 t cont
21613 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21614 t cont
21615 d
21616 :cont
21617 n
21618 s/.\{148\}/&'"$ac_delim"'/g
21619 t clear
21620 :clear
21621 s/\\$//
21622 t bsnlc
21623 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21624 d
21625 :bsnlc
21626 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21627 b cont
21628 ' <confdefs.h | sed '
21629 s/'"$ac_delim"'/"\\\
21630 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21631
21632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21633 for (key in D) D_is_set[key] = 1
21634 FS = "\a"
21635 }
21636 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21637 line = \$ 0
21638 split(line, arg, " ")
21639 if (arg[1] == "#") {
21640 defundef = arg[2]
21641 mac1 = arg[3]
21642 } else {
21643 defundef = substr(arg[1], 2)
21644 mac1 = arg[2]
21645 }
21646 split(mac1, mac2, "(") #)
21647 macro = mac2[1]
21648 prefix = substr(line, 1, index(line, defundef) - 1)
21649 if (D_is_set[macro]) {
21650 # Preserve the white space surrounding the "#".
21651 print prefix "define", macro P[macro] D[macro]
21652 next
21653 } else {
21654 # Replace #undef with comments. This is necessary, for example,
21655 # in the case of _POSIX_SOURCE, which is predefined and required
21656 # on some systems where configure will not decide to define it.
21657 if (defundef == "undef") {
21658 print "/*", prefix defundef, macro, "*/"
21659 next
21660 }
21661 }
21662 }
21663 { print }
21664 _ACAWK
21665 _ACEOF
21666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21667 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21668 fi # test -n "$CONFIG_HEADERS"
21669
21670
21671 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21672 shift
21673 for ac_tag
21674 do
21675 case $ac_tag in
21676 :[FHLC]) ac_mode=$ac_tag; continue;;
21677 esac
21678 case $ac_mode$ac_tag in
21679 :[FHL]*:*);;
21680 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21681 :[FH]-) ac_tag=-:-;;
21682 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21683 esac
21684 ac_save_IFS=$IFS
21685 IFS=:
21686 set x $ac_tag
21687 IFS=$ac_save_IFS
21688 shift
21689 ac_file=$1
21690 shift
21691
21692 case $ac_mode in
21693 :L) ac_source=$1;;
21694 :[FH])
21695 ac_file_inputs=
21696 for ac_f
21697 do
21698 case $ac_f in
21699 -) ac_f="$ac_tmp/stdin";;
21700 *) # Look for the file first in the build tree, then in the source tree
21701 # (if the path is not absolute). The absolute path cannot be DOS-style,
21702 # because $ac_f cannot contain `:'.
21703 test -f "$ac_f" ||
21704 case $ac_f in
21705 [\\/$]*) false;;
21706 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21707 esac ||
21708 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21709 esac
21710 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21711 as_fn_append ac_file_inputs " '$ac_f'"
21712 done
21713
21714 # Let's still pretend it is `configure' which instantiates (i.e., don't
21715 # use $as_me), people would be surprised to read:
21716 # /* config.h. Generated by config.status. */
21717 configure_input='Generated from '`
21718 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21719 `' by configure.'
21720 if test x"$ac_file" != x-; then
21721 configure_input="$ac_file. $configure_input"
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21723 $as_echo "$as_me: creating $ac_file" >&6;}
21724 fi
21725 # Neutralize special characters interpreted by sed in replacement strings.
21726 case $configure_input in #(
21727 *\&* | *\|* | *\\* )
21728 ac_sed_conf_input=`$as_echo "$configure_input" |
21729 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21730 *) ac_sed_conf_input=$configure_input;;
21731 esac
21732
21733 case $ac_tag in
21734 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21736 esac
21737 ;;
21738 esac
21739
21740 ac_dir=`$as_dirname -- "$ac_file" ||
21741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21742 X"$ac_file" : 'X\(//\)[^/]' \| \
21743 X"$ac_file" : 'X\(//\)$' \| \
21744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21745 $as_echo X"$ac_file" |
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 as_dir="$ac_dir"; as_fn_mkdir_p
21764 ac_builddir=.
21765
21766 case "$ac_dir" in
21767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21768 *)
21769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21770 # A ".." for each directory in $ac_dir_suffix.
21771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21772 case $ac_top_builddir_sub in
21773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21775 esac ;;
21776 esac
21777 ac_abs_top_builddir=$ac_pwd
21778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21779 # for backward compatibility:
21780 ac_top_builddir=$ac_top_build_prefix
21781
21782 case $srcdir in
21783 .) # We are building in place.
21784 ac_srcdir=.
21785 ac_top_srcdir=$ac_top_builddir_sub
21786 ac_abs_top_srcdir=$ac_pwd ;;
21787 [\\/]* | ?:[\\/]* ) # Absolute name.
21788 ac_srcdir=$srcdir$ac_dir_suffix;
21789 ac_top_srcdir=$srcdir
21790 ac_abs_top_srcdir=$srcdir ;;
21791 *) # Relative name.
21792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21793 ac_top_srcdir=$ac_top_build_prefix$srcdir
21794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21795 esac
21796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21797
21798
21799 case $ac_mode in
21800 :F)
21801 #
21802 # CONFIG_FILE
21803 #
21804
21805 case $INSTALL in
21806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21808 esac
21809 ac_MKDIR_P=$MKDIR_P
21810 case $MKDIR_P in
21811 [\\/$]* | ?:[\\/]* ) ;;
21812 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21813 esac
21814 _ACEOF
21815
21816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21817 # If the template does not know about datarootdir, expand it.
21818 # FIXME: This hack should be removed a few years after 2.60.
21819 ac_datarootdir_hack=; ac_datarootdir_seen=
21820 ac_sed_dataroot='
21821 /datarootdir/ {
21822 p
21823 q
21824 }
21825 /@datadir@/p
21826 /@docdir@/p
21827 /@infodir@/p
21828 /@localedir@/p
21829 /@mandir@/p'
21830 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21831 *datarootdir*) ac_datarootdir_seen=yes;;
21832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21834 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21835 _ACEOF
21836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21837 ac_datarootdir_hack='
21838 s&@datadir@&$datadir&g
21839 s&@docdir@&$docdir&g
21840 s&@infodir@&$infodir&g
21841 s&@localedir@&$localedir&g
21842 s&@mandir@&$mandir&g
21843 s&\\\${datarootdir}&$datarootdir&g' ;;
21844 esac
21845 _ACEOF
21846
21847 # Neutralize VPATH when `$srcdir' = `.'.
21848 # Shell code in configure.ac might set extrasub.
21849 # FIXME: do we really want to maintain this feature?
21850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21851 ac_sed_extra="$ac_vpsub
21852 $extrasub
21853 _ACEOF
21854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21855 :t
21856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21857 s|@configure_input@|$ac_sed_conf_input|;t t
21858 s&@top_builddir@&$ac_top_builddir_sub&;t t
21859 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21860 s&@srcdir@&$ac_srcdir&;t t
21861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21862 s&@top_srcdir@&$ac_top_srcdir&;t t
21863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21864 s&@builddir@&$ac_builddir&;t t
21865 s&@abs_builddir@&$ac_abs_builddir&;t t
21866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21867 s&@INSTALL@&$ac_INSTALL&;t t
21868 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21869 $ac_datarootdir_hack
21870 "
21871 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21872 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21873
21874 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21875 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21876 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21877 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21879 which seems to be undefined. Please make sure it is defined" >&5
21880 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21881 which seems to be undefined. Please make sure it is defined" >&2;}
21882
21883 rm -f "$ac_tmp/stdin"
21884 case $ac_file in
21885 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21886 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21887 esac \
21888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21889 ;;
21890 :H)
21891 #
21892 # CONFIG_HEADER
21893 #
21894 if test x"$ac_file" != x-; then
21895 {
21896 $as_echo "/* $configure_input */" \
21897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21898 } >"$ac_tmp/config.h" \
21899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21900 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21902 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21903 else
21904 rm -f "$ac_file"
21905 mv "$ac_tmp/config.h" "$ac_file" \
21906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21907 fi
21908 else
21909 $as_echo "/* $configure_input */" \
21910 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21911 || as_fn_error $? "could not create -" "$LINENO" 5
21912 fi
21913 # Compute "$ac_file"'s index in $config_headers.
21914 _am_arg="$ac_file"
21915 _am_stamp_count=1
21916 for _am_header in $config_headers :; do
21917 case $_am_header in
21918 $_am_arg | $_am_arg:* )
21919 break ;;
21920 * )
21921 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21922 esac
21923 done
21924 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21925 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21926 X"$_am_arg" : 'X\(//\)[^/]' \| \
21927 X"$_am_arg" : 'X\(//\)$' \| \
21928 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21929 $as_echo X"$_am_arg" |
21930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21931 s//\1/
21932 q
21933 }
21934 /^X\(\/\/\)[^/].*/{
21935 s//\1/
21936 q
21937 }
21938 /^X\(\/\/\)$/{
21939 s//\1/
21940 q
21941 }
21942 /^X\(\/\).*/{
21943 s//\1/
21944 q
21945 }
21946 s/.*/./; q'`/stamp-h$_am_stamp_count
21947 ;;
21948
21949 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21950 $as_echo "$as_me: executing $ac_file commands" >&6;}
21951 ;;
21952 esac
21953
21954
21955 case $ac_file$ac_mode in
21956 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21957 # Older Autoconf quotes --file arguments for eval, but not when files
21958 # are listed without --file. Let's play safe and only enable the eval
21959 # if we detect the quoting.
21960 case $CONFIG_FILES in
21961 *\'*) eval set x "$CONFIG_FILES" ;;
21962 *) set x $CONFIG_FILES ;;
21963 esac
21964 shift
21965 for mf
21966 do
21967 # Strip MF so we end up with the name of the file.
21968 mf=`echo "$mf" | sed -e 's/:.*$//'`
21969 # Check whether this is an Automake generated Makefile or not.
21970 # We used to match only the files named 'Makefile.in', but
21971 # some people rename them; so instead we look at the file content.
21972 # Grep'ing the first line is not enough: some people post-process
21973 # each Makefile.in and add a new line on top of each file to say so.
21974 # Grep'ing the whole file is not good either: AIX grep has a line
21975 # limit of 2048, but all sed's we know have understand at least 4000.
21976 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21977 dirpart=`$as_dirname -- "$mf" ||
21978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21979 X"$mf" : 'X\(//\)[^/]' \| \
21980 X"$mf" : 'X\(//\)$' \| \
21981 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21982 $as_echo X"$mf" |
21983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21984 s//\1/
21985 q
21986 }
21987 /^X\(\/\/\)[^/].*/{
21988 s//\1/
21989 q
21990 }
21991 /^X\(\/\/\)$/{
21992 s//\1/
21993 q
21994 }
21995 /^X\(\/\).*/{
21996 s//\1/
21997 q
21998 }
21999 s/.*/./; q'`
22000 else
22001 continue
22002 fi
22003 # Extract the definition of DEPDIR, am__include, and am__quote
22004 # from the Makefile without running 'make'.
22005 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22006 test -z "$DEPDIR" && continue
22007 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22008 test -z "$am__include" && continue
22009 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22010 # Find all dependency output files, they are included files with
22011 # $(DEPDIR) in their names. We invoke sed twice because it is the
22012 # simplest approach to changing $(DEPDIR) to its actual value in the
22013 # expansion.
22014 for file in `sed -n "
22015 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22016 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22017 # Make sure the directory exists.
22018 test -f "$dirpart/$file" && continue
22019 fdir=`$as_dirname -- "$file" ||
22020 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22021 X"$file" : 'X\(//\)[^/]' \| \
22022 X"$file" : 'X\(//\)$' \| \
22023 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22024 $as_echo X"$file" |
22025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22026 s//\1/
22027 q
22028 }
22029 /^X\(\/\/\)[^/].*/{
22030 s//\1/
22031 q
22032 }
22033 /^X\(\/\/\)$/{
22034 s//\1/
22035 q
22036 }
22037 /^X\(\/\).*/{
22038 s//\1/
22039 q
22040 }
22041 s/.*/./; q'`
22042 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22043 # echo "creating $dirpart/$file"
22044 echo '# dummy' > "$dirpart/$file"
22045 done
22046 done
22047 }
22048 ;;
22049 "libtool":C)
22050
22051 # See if we are running on zsh, and set the options which allow our
22052 # commands through without removal of \ escapes.
22053 if test -n "${ZSH_VERSION+set}" ; then
22054 setopt NO_GLOB_SUBST
22055 fi
22056
22057 cfgfile="${ofile}T"
22058 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22059 $RM "$cfgfile"
22060
22061 cat <<_LT_EOF >> "$cfgfile"
22062 #! $SHELL
22063
22064 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22065 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22067 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22068 #
22069 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22070 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22071 # Foundation, Inc.
22072 # Written by Gordon Matzigkeit, 1996
22073 #
22074 # This file is part of GNU Libtool.
22075 #
22076 # GNU Libtool is free software; you can redistribute it and/or
22077 # modify it under the terms of the GNU General Public License as
22078 # published by the Free Software Foundation; either version 2 of
22079 # the License, or (at your option) any later version.
22080 #
22081 # As a special exception to the GNU General Public License,
22082 # if you distribute this file as part of a program or library that
22083 # is built using GNU Libtool, you may include this file under the
22084 # same distribution terms that you use for the rest of that program.
22085 #
22086 # GNU Libtool is distributed in the hope that it will be useful,
22087 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22088 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22089 # GNU General Public License for more details.
22090 #
22091 # You should have received a copy of the GNU General Public License
22092 # along with GNU Libtool; see the file COPYING. If not, a copy
22093 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22094 # obtained by writing to the Free Software Foundation, Inc.,
22095 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22096
22097
22098 # The names of the tagged configurations supported by this script.
22099 available_tags="CXX "
22100
22101 # ### BEGIN LIBTOOL CONFIG
22102
22103 # Which release of libtool.m4 was used?
22104 macro_version=$macro_version
22105 macro_revision=$macro_revision
22106
22107 # Whether or not to build static libraries.
22108 build_old_libs=$enable_static
22109
22110 # Whether or not to build shared libraries.
22111 build_libtool_libs=$enable_shared
22112
22113 # What type of objects to build.
22114 pic_mode=$pic_mode
22115
22116 # Whether or not to optimize for fast installation.
22117 fast_install=$enable_fast_install
22118
22119 # Shell to use when invoking shell scripts.
22120 SHELL=$lt_SHELL
22121
22122 # An echo program that protects backslashes.
22123 ECHO=$lt_ECHO
22124
22125 # The PATH separator for the build system.
22126 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22127
22128 # The host system.
22129 host_alias=$host_alias
22130 host=$host
22131 host_os=$host_os
22132
22133 # The build system.
22134 build_alias=$build_alias
22135 build=$build
22136 build_os=$build_os
22137
22138 # A sed program that does not truncate output.
22139 SED=$lt_SED
22140
22141 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22142 Xsed="\$SED -e 1s/^X//"
22143
22144 # A grep program that handles long lines.
22145 GREP=$lt_GREP
22146
22147 # An ERE matcher.
22148 EGREP=$lt_EGREP
22149
22150 # A literal string matcher.
22151 FGREP=$lt_FGREP
22152
22153 # A BSD- or MS-compatible name lister.
22154 NM=$lt_NM
22155
22156 # Whether we need soft or hard links.
22157 LN_S=$lt_LN_S
22158
22159 # What is the maximum length of a command?
22160 max_cmd_len=$max_cmd_len
22161
22162 # Object file suffix (normally "o").
22163 objext=$ac_objext
22164
22165 # Executable file suffix (normally "").
22166 exeext=$exeext
22167
22168 # whether the shell understands "unset".
22169 lt_unset=$lt_unset
22170
22171 # turn spaces into newlines.
22172 SP2NL=$lt_lt_SP2NL
22173
22174 # turn newlines into spaces.
22175 NL2SP=$lt_lt_NL2SP
22176
22177 # convert \$build file names to \$host format.
22178 to_host_file_cmd=$lt_cv_to_host_file_cmd
22179
22180 # convert \$build files to toolchain format.
22181 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22182
22183 # An object symbol dumper.
22184 OBJDUMP=$lt_OBJDUMP
22185
22186 # Method to check whether dependent libraries are shared objects.
22187 deplibs_check_method=$lt_deplibs_check_method
22188
22189 # Command to use when deplibs_check_method = "file_magic".
22190 file_magic_cmd=$lt_file_magic_cmd
22191
22192 # How to find potential files when deplibs_check_method = "file_magic".
22193 file_magic_glob=$lt_file_magic_glob
22194
22195 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22196 want_nocaseglob=$lt_want_nocaseglob
22197
22198 # DLL creation program.
22199 DLLTOOL=$lt_DLLTOOL
22200
22201 # Command to associate shared and link libraries.
22202 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22203
22204 # The archiver.
22205 AR=$lt_AR
22206
22207 # Flags to create an archive.
22208 AR_FLAGS=$lt_AR_FLAGS
22209
22210 # How to feed a file listing to the archiver.
22211 archiver_list_spec=$lt_archiver_list_spec
22212
22213 # A symbol stripping program.
22214 STRIP=$lt_STRIP
22215
22216 # Commands used to install an old-style archive.
22217 RANLIB=$lt_RANLIB
22218 old_postinstall_cmds=$lt_old_postinstall_cmds
22219 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22220
22221 # Whether to use a lock for old archive extraction.
22222 lock_old_archive_extraction=$lock_old_archive_extraction
22223
22224 # A C compiler.
22225 LTCC=$lt_CC
22226
22227 # LTCC compiler flags.
22228 LTCFLAGS=$lt_CFLAGS
22229
22230 # Take the output of nm and produce a listing of raw symbols and C names.
22231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22232
22233 # Transform the output of nm in a proper C declaration.
22234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22235
22236 # Transform the output of nm in a C name address pair.
22237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22238
22239 # Transform the output of nm in a C name address pair when lib prefix is needed.
22240 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22241
22242 # Specify filename containing input files for \$NM.
22243 nm_file_list_spec=$lt_nm_file_list_spec
22244
22245 # The root where to search for dependent libraries,and in which our libraries should be installed.
22246 lt_sysroot=$lt_sysroot
22247
22248 # The name of the directory that contains temporary libtool files.
22249 objdir=$objdir
22250
22251 # Used to examine libraries when file_magic_cmd begins with "file".
22252 MAGIC_CMD=$MAGIC_CMD
22253
22254 # Must we lock files when doing compilation?
22255 need_locks=$lt_need_locks
22256
22257 # Manifest tool.
22258 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22259
22260 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22261 DSYMUTIL=$lt_DSYMUTIL
22262
22263 # Tool to change global to local symbols on Mac OS X.
22264 NMEDIT=$lt_NMEDIT
22265
22266 # Tool to manipulate fat objects and archives on Mac OS X.
22267 LIPO=$lt_LIPO
22268
22269 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22270 OTOOL=$lt_OTOOL
22271
22272 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22273 OTOOL64=$lt_OTOOL64
22274
22275 # Old archive suffix (normally "a").
22276 libext=$libext
22277
22278 # Shared library suffix (normally ".so").
22279 shrext_cmds=$lt_shrext_cmds
22280
22281 # The commands to extract the exported symbol list from a shared archive.
22282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22283
22284 # Variables whose values should be saved in libtool wrapper scripts and
22285 # restored at link time.
22286 variables_saved_for_relink=$lt_variables_saved_for_relink
22287
22288 # Do we need the "lib" prefix for modules?
22289 need_lib_prefix=$need_lib_prefix
22290
22291 # Do we need a version for libraries?
22292 need_version=$need_version
22293
22294 # Library versioning type.
22295 version_type=$version_type
22296
22297 # Shared library runtime path variable.
22298 runpath_var=$runpath_var
22299
22300 # Shared library path variable.
22301 shlibpath_var=$shlibpath_var
22302
22303 # Is shlibpath searched before the hard-coded library search path?
22304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22305
22306 # Format of library name prefix.
22307 libname_spec=$lt_libname_spec
22308
22309 # List of archive names. First name is the real one, the rest are links.
22310 # The last name is the one that the linker finds with -lNAME
22311 library_names_spec=$lt_library_names_spec
22312
22313 # The coded name of the library, if different from the real name.
22314 soname_spec=$lt_soname_spec
22315
22316 # Permission mode override for installation of shared libraries.
22317 install_override_mode=$lt_install_override_mode
22318
22319 # Command to use after installation of a shared archive.
22320 postinstall_cmds=$lt_postinstall_cmds
22321
22322 # Command to use after uninstallation of a shared archive.
22323 postuninstall_cmds=$lt_postuninstall_cmds
22324
22325 # Commands used to finish a libtool library installation in a directory.
22326 finish_cmds=$lt_finish_cmds
22327
22328 # As "finish_cmds", except a single script fragment to be evaled but
22329 # not shown.
22330 finish_eval=$lt_finish_eval
22331
22332 # Whether we should hardcode library paths into libraries.
22333 hardcode_into_libs=$hardcode_into_libs
22334
22335 # Compile-time system search path for libraries.
22336 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22337
22338 # Run-time system search path for libraries.
22339 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22340
22341 # Whether dlopen is supported.
22342 dlopen_support=$enable_dlopen
22343
22344 # Whether dlopen of programs is supported.
22345 dlopen_self=$enable_dlopen_self
22346
22347 # Whether dlopen of statically linked programs is supported.
22348 dlopen_self_static=$enable_dlopen_self_static
22349
22350 # Commands to strip libraries.
22351 old_striplib=$lt_old_striplib
22352 striplib=$lt_striplib
22353
22354
22355 # The linker used to build libraries.
22356 LD=$lt_LD
22357
22358 # How to create reloadable object files.
22359 reload_flag=$lt_reload_flag
22360 reload_cmds=$lt_reload_cmds
22361
22362 # Commands used to build an old-style archive.
22363 old_archive_cmds=$lt_old_archive_cmds
22364
22365 # A language specific compiler.
22366 CC=$lt_compiler
22367
22368 # Is the compiler the GNU compiler?
22369 with_gcc=$GCC
22370
22371 # Compiler flag to turn off builtin functions.
22372 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22373
22374 # Additional compiler flags for building library objects.
22375 pic_flag=$lt_lt_prog_compiler_pic
22376
22377 # How to pass a linker flag through the compiler.
22378 wl=$lt_lt_prog_compiler_wl
22379
22380 # Compiler flag to prevent dynamic linking.
22381 link_static_flag=$lt_lt_prog_compiler_static
22382
22383 # Does compiler simultaneously support -c and -o options?
22384 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22385
22386 # Whether or not to add -lc for building shared libraries.
22387 build_libtool_need_lc=$archive_cmds_need_lc
22388
22389 # Whether or not to disallow shared libs when runtime libs are static.
22390 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22391
22392 # Compiler flag to allow reflexive dlopens.
22393 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22394
22395 # Compiler flag to generate shared objects directly from archives.
22396 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22397
22398 # Whether the compiler copes with passing no objects directly.
22399 compiler_needs_object=$lt_compiler_needs_object
22400
22401 # Create an old-style archive from a shared archive.
22402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22403
22404 # Create a temporary old-style archive to link instead of a shared archive.
22405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22406
22407 # Commands used to build a shared archive.
22408 archive_cmds=$lt_archive_cmds
22409 archive_expsym_cmds=$lt_archive_expsym_cmds
22410
22411 # Commands used to build a loadable module if different from building
22412 # a shared archive.
22413 module_cmds=$lt_module_cmds
22414 module_expsym_cmds=$lt_module_expsym_cmds
22415
22416 # Whether we are building with GNU ld or not.
22417 with_gnu_ld=$lt_with_gnu_ld
22418
22419 # Flag that allows shared libraries with undefined symbols to be built.
22420 allow_undefined_flag=$lt_allow_undefined_flag
22421
22422 # Flag that enforces no undefined symbols.
22423 no_undefined_flag=$lt_no_undefined_flag
22424
22425 # Flag to hardcode \$libdir into a binary during linking.
22426 # This must work even if \$libdir does not exist
22427 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22428
22429 # Whether we need a single "-rpath" flag with a separated argument.
22430 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22431
22432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22433 # DIR into the resulting binary.
22434 hardcode_direct=$hardcode_direct
22435
22436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22437 # DIR into the resulting binary and the resulting library dependency is
22438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22439 # library is relocated.
22440 hardcode_direct_absolute=$hardcode_direct_absolute
22441
22442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22443 # into the resulting binary.
22444 hardcode_minus_L=$hardcode_minus_L
22445
22446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22447 # into the resulting binary.
22448 hardcode_shlibpath_var=$hardcode_shlibpath_var
22449
22450 # Set to "yes" if building a shared library automatically hardcodes DIR
22451 # into the library and all subsequent libraries and executables linked
22452 # against it.
22453 hardcode_automatic=$hardcode_automatic
22454
22455 # Set to yes if linker adds runtime paths of dependent libraries
22456 # to runtime path list.
22457 inherit_rpath=$inherit_rpath
22458
22459 # Whether libtool must link a program against all its dependency libraries.
22460 link_all_deplibs=$link_all_deplibs
22461
22462 # Set to "yes" if exported symbols are required.
22463 always_export_symbols=$always_export_symbols
22464
22465 # The commands to list exported symbols.
22466 export_symbols_cmds=$lt_export_symbols_cmds
22467
22468 # Symbols that should not be listed in the preloaded symbols.
22469 exclude_expsyms=$lt_exclude_expsyms
22470
22471 # Symbols that must always be exported.
22472 include_expsyms=$lt_include_expsyms
22473
22474 # Commands necessary for linking programs (against libraries) with templates.
22475 prelink_cmds=$lt_prelink_cmds
22476
22477 # Commands necessary for finishing linking programs.
22478 postlink_cmds=$lt_postlink_cmds
22479
22480 # Specify filename containing input files.
22481 file_list_spec=$lt_file_list_spec
22482
22483 # How to hardcode a shared library path into an executable.
22484 hardcode_action=$hardcode_action
22485
22486 # The directories searched by this compiler when creating a shared library.
22487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22488
22489 # Dependencies to place before and after the objects being linked to
22490 # create a shared library.
22491 predep_objects=$lt_predep_objects
22492 postdep_objects=$lt_postdep_objects
22493 predeps=$lt_predeps
22494 postdeps=$lt_postdeps
22495
22496 # The library search path used internally by the compiler when linking
22497 # a shared library.
22498 compiler_lib_search_path=$lt_compiler_lib_search_path
22499
22500 # ### END LIBTOOL CONFIG
22501
22502 _LT_EOF
22503
22504 case $host_os in
22505 aix3*)
22506 cat <<\_LT_EOF >> "$cfgfile"
22507 # AIX sometimes has problems with the GCC collect2 program. For some
22508 # reason, if we set the COLLECT_NAMES environment variable, the problems
22509 # vanish in a puff of smoke.
22510 if test "X${COLLECT_NAMES+set}" != Xset; then
22511 COLLECT_NAMES=
22512 export COLLECT_NAMES
22513 fi
22514 _LT_EOF
22515 ;;
22516 esac
22517
22518
22519 ltmain="$ac_aux_dir/ltmain.sh"
22520
22521
22522 # We use sed instead of cat because bash on DJGPP gets confused if
22523 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22524 # text mode, it properly converts lines to CR/LF. This bash problem
22525 # is reportedly fixed, but why not run on old versions too?
22526 sed '$q' "$ltmain" >> "$cfgfile" \
22527 || (rm -f "$cfgfile"; exit 1)
22528
22529 if test x"$xsi_shell" = xyes; then
22530 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22531 func_dirname ()\
22532 {\
22533 \ case ${1} in\
22534 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22535 \ * ) func_dirname_result="${3}" ;;\
22536 \ esac\
22537 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22538 && mv -f "$cfgfile.tmp" "$cfgfile" \
22539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22540 test 0 -eq $? || _lt_function_replace_fail=:
22541
22542
22543 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22544 func_basename ()\
22545 {\
22546 \ func_basename_result="${1##*/}"\
22547 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22548 && mv -f "$cfgfile.tmp" "$cfgfile" \
22549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22550 test 0 -eq $? || _lt_function_replace_fail=:
22551
22552
22553 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22554 func_dirname_and_basename ()\
22555 {\
22556 \ case ${1} in\
22557 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22558 \ * ) func_dirname_result="${3}" ;;\
22559 \ esac\
22560 \ func_basename_result="${1##*/}"\
22561 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22562 && mv -f "$cfgfile.tmp" "$cfgfile" \
22563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22564 test 0 -eq $? || _lt_function_replace_fail=:
22565
22566
22567 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22568 func_stripname ()\
22569 {\
22570 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22571 \ # positional parameters, so assign one to ordinary parameter first.\
22572 \ func_stripname_result=${3}\
22573 \ func_stripname_result=${func_stripname_result#"${1}"}\
22574 \ func_stripname_result=${func_stripname_result%"${2}"}\
22575 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22576 && mv -f "$cfgfile.tmp" "$cfgfile" \
22577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22578 test 0 -eq $? || _lt_function_replace_fail=:
22579
22580
22581 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22582 func_split_long_opt ()\
22583 {\
22584 \ func_split_long_opt_name=${1%%=*}\
22585 \ func_split_long_opt_arg=${1#*=}\
22586 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22587 && mv -f "$cfgfile.tmp" "$cfgfile" \
22588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22589 test 0 -eq $? || _lt_function_replace_fail=:
22590
22591
22592 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22593 func_split_short_opt ()\
22594 {\
22595 \ func_split_short_opt_arg=${1#??}\
22596 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22597 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22598 && mv -f "$cfgfile.tmp" "$cfgfile" \
22599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22600 test 0 -eq $? || _lt_function_replace_fail=:
22601
22602
22603 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22604 func_lo2o ()\
22605 {\
22606 \ case ${1} in\
22607 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22608 \ *) func_lo2o_result=${1} ;;\
22609 \ esac\
22610 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22611 && mv -f "$cfgfile.tmp" "$cfgfile" \
22612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22613 test 0 -eq $? || _lt_function_replace_fail=:
22614
22615
22616 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22617 func_xform ()\
22618 {\
22619 func_xform_result=${1%.*}.lo\
22620 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22621 && mv -f "$cfgfile.tmp" "$cfgfile" \
22622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22623 test 0 -eq $? || _lt_function_replace_fail=:
22624
22625
22626 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22627 func_arith ()\
22628 {\
22629 func_arith_result=$(( $* ))\
22630 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22631 && mv -f "$cfgfile.tmp" "$cfgfile" \
22632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22633 test 0 -eq $? || _lt_function_replace_fail=:
22634
22635
22636 sed -e '/^func_len ()$/,/^} # func_len /c\
22637 func_len ()\
22638 {\
22639 func_len_result=${#1}\
22640 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22641 && mv -f "$cfgfile.tmp" "$cfgfile" \
22642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22643 test 0 -eq $? || _lt_function_replace_fail=:
22644
22645 fi
22646
22647 if test x"$lt_shell_append" = xyes; then
22648 sed -e '/^func_append ()$/,/^} # func_append /c\
22649 func_append ()\
22650 {\
22651 eval "${1}+=\\${2}"\
22652 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22653 && mv -f "$cfgfile.tmp" "$cfgfile" \
22654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22655 test 0 -eq $? || _lt_function_replace_fail=:
22656
22657
22658 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22659 func_append_quoted ()\
22660 {\
22661 \ func_quote_for_eval "${2}"\
22662 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22663 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22664 && mv -f "$cfgfile.tmp" "$cfgfile" \
22665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22666 test 0 -eq $? || _lt_function_replace_fail=:
22667
22668
22669 # Save a `func_append' function call where possible by direct use of '+='
22670 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22671 && mv -f "$cfgfile.tmp" "$cfgfile" \
22672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22673 test 0 -eq $? || _lt_function_replace_fail=:
22674 else
22675 # Save a `func_append' function call even when '+=' is not available
22676 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22677 && mv -f "$cfgfile.tmp" "$cfgfile" \
22678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22679 test 0 -eq $? || _lt_function_replace_fail=:
22680 fi
22681
22682 if test x"$_lt_function_replace_fail" = x":"; then
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22684 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22685 fi
22686
22687
22688 mv -f "$cfgfile" "$ofile" ||
22689 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22690 chmod +x "$ofile"
22691
22692
22693 cat <<_LT_EOF >> "$ofile"
22694
22695 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22696
22697 # The linker used to build libraries.
22698 LD=$lt_LD_CXX
22699
22700 # How to create reloadable object files.
22701 reload_flag=$lt_reload_flag_CXX
22702 reload_cmds=$lt_reload_cmds_CXX
22703
22704 # Commands used to build an old-style archive.
22705 old_archive_cmds=$lt_old_archive_cmds_CXX
22706
22707 # A language specific compiler.
22708 CC=$lt_compiler_CXX
22709
22710 # Is the compiler the GNU compiler?
22711 with_gcc=$GCC_CXX
22712
22713 # Compiler flag to turn off builtin functions.
22714 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22715
22716 # Additional compiler flags for building library objects.
22717 pic_flag=$lt_lt_prog_compiler_pic_CXX
22718
22719 # How to pass a linker flag through the compiler.
22720 wl=$lt_lt_prog_compiler_wl_CXX
22721
22722 # Compiler flag to prevent dynamic linking.
22723 link_static_flag=$lt_lt_prog_compiler_static_CXX
22724
22725 # Does compiler simultaneously support -c and -o options?
22726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22727
22728 # Whether or not to add -lc for building shared libraries.
22729 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22730
22731 # Whether or not to disallow shared libs when runtime libs are static.
22732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22733
22734 # Compiler flag to allow reflexive dlopens.
22735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22736
22737 # Compiler flag to generate shared objects directly from archives.
22738 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22739
22740 # Whether the compiler copes with passing no objects directly.
22741 compiler_needs_object=$lt_compiler_needs_object_CXX
22742
22743 # Create an old-style archive from a shared archive.
22744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22745
22746 # Create a temporary old-style archive to link instead of a shared archive.
22747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22748
22749 # Commands used to build a shared archive.
22750 archive_cmds=$lt_archive_cmds_CXX
22751 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22752
22753 # Commands used to build a loadable module if different from building
22754 # a shared archive.
22755 module_cmds=$lt_module_cmds_CXX
22756 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22757
22758 # Whether we are building with GNU ld or not.
22759 with_gnu_ld=$lt_with_gnu_ld_CXX
22760
22761 # Flag that allows shared libraries with undefined symbols to be built.
22762 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22763
22764 # Flag that enforces no undefined symbols.
22765 no_undefined_flag=$lt_no_undefined_flag_CXX
22766
22767 # Flag to hardcode \$libdir into a binary during linking.
22768 # This must work even if \$libdir does not exist
22769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22770
22771 # Whether we need a single "-rpath" flag with a separated argument.
22772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22773
22774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22775 # DIR into the resulting binary.
22776 hardcode_direct=$hardcode_direct_CXX
22777
22778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22779 # DIR into the resulting binary and the resulting library dependency is
22780 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22781 # library is relocated.
22782 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22783
22784 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22785 # into the resulting binary.
22786 hardcode_minus_L=$hardcode_minus_L_CXX
22787
22788 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22789 # into the resulting binary.
22790 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22791
22792 # Set to "yes" if building a shared library automatically hardcodes DIR
22793 # into the library and all subsequent libraries and executables linked
22794 # against it.
22795 hardcode_automatic=$hardcode_automatic_CXX
22796
22797 # Set to yes if linker adds runtime paths of dependent libraries
22798 # to runtime path list.
22799 inherit_rpath=$inherit_rpath_CXX
22800
22801 # Whether libtool must link a program against all its dependency libraries.
22802 link_all_deplibs=$link_all_deplibs_CXX
22803
22804 # Set to "yes" if exported symbols are required.
22805 always_export_symbols=$always_export_symbols_CXX
22806
22807 # The commands to list exported symbols.
22808 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22809
22810 # Symbols that should not be listed in the preloaded symbols.
22811 exclude_expsyms=$lt_exclude_expsyms_CXX
22812
22813 # Symbols that must always be exported.
22814 include_expsyms=$lt_include_expsyms_CXX
22815
22816 # Commands necessary for linking programs (against libraries) with templates.
22817 prelink_cmds=$lt_prelink_cmds_CXX
22818
22819 # Commands necessary for finishing linking programs.
22820 postlink_cmds=$lt_postlink_cmds_CXX
22821
22822 # Specify filename containing input files.
22823 file_list_spec=$lt_file_list_spec_CXX
22824
22825 # How to hardcode a shared library path into an executable.
22826 hardcode_action=$hardcode_action_CXX
22827
22828 # The directories searched by this compiler when creating a shared library.
22829 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22830
22831 # Dependencies to place before and after the objects being linked to
22832 # create a shared library.
22833 predep_objects=$lt_predep_objects_CXX
22834 postdep_objects=$lt_postdep_objects_CXX
22835 predeps=$lt_predeps_CXX
22836 postdeps=$lt_postdeps_CXX
22837
22838 # The library search path used internally by the compiler when linking
22839 # a shared library.
22840 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22841
22842 # ### END LIBTOOL TAG CONFIG: CXX
22843 _LT_EOF
22844
22845 ;;
22846
22847 esac
22848 done # for ac_tag
22849
22850
22851 as_fn_exit 0
22852 _ACEOF
22853 ac_clean_files=$ac_clean_files_save
22854
22855 test $ac_write_fail = 0 ||
22856 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22857
22858
22859 # configure is writing to config.log, and then calls config.status.
22860 # config.status does its own redirection, appending to config.log.
22861 # Unfortunately, on DOS this fails, as config.log is still kept open
22862 # by configure, so config.status won't be able to write to it; its
22863 # output is simply discarded. So we exec the FD to /dev/null,
22864 # effectively closing config.log, so it can be properly (re)opened and
22865 # appended to by config.status. When coming back to configure, we
22866 # need to make the FD available again.
22867 if test "$no_create" != yes; then
22868 ac_cs_success=:
22869 ac_config_status_args=
22870 test "$silent" = yes &&
22871 ac_config_status_args="$ac_config_status_args --quiet"
22872 exec 5>/dev/null
22873 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22874 exec 5>>config.log
22875 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22876 # would make configure fail if this is the last instruction.
22877 $ac_cs_success || as_fn_exit 1
22878 fi
22879 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22881 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22882 fi
22883