Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.in Revision: 48 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for jaula 1.4.0.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 #
13 # (c) Kombo Morongo <[email protected]>
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 emulate sh
22 NULLCMD=:
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
31
32 fi
33
34
35
36
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
44
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
54 fi
55 rm -f conf$$.sh
56 fi
57
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
63 fi
64
65
66 # IFS
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
71 as_nl='
72 '
73 IFS=" "" $as_nl"
74
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
80 do
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
86
87 ;;
88 esac
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
92 as_myself=$0
93 fi
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
97 fi
98
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
106
107 # NLS nuisances.
108 for as_var in \
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 LC_TELEPHONE LC_TIME
112 do
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 fi
118 done
119
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
126 fi
127
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
132 fi
133
134
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\/\)$/{
146 s//\1/
147 q
148 }
149 /^X\/\(\/\).*/{
150 s//\1/
151 q
152 }
153 s/.*/./; q'`
154
155 # CDPATH.
156 $as_unset CDPATH
157
158
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
164 fi
165
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
169 }
170 as_func_success () {
171 as_func_return 0
172 }
173 as_func_failure () {
174 as_func_return 1
175 }
176 as_func_ret_success () {
177 return 0
178 }
179 as_func_ret_failure () {
180 return 1
181 }
182
183 exitcode=0
184 if as_func_success; then
185 :
186 else
187 exitcode=1
188 echo as_func_success failed.
189 fi
190
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
194 fi
195
196 if as_func_ret_success; then
197 :
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
201 fi
202
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
206 fi
207
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 :
210 else
211 exitcode=1
212 echo positional parameters were not saved.
213 fi
214
215 test \$exitcode = 0) || { (exit 1); exit 1; }
216
217 (
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
223 :
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 do
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
232 /*)
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
239
240
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 emulate sh
247 NULLCMD=:
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
256
257 fi
258
259
260 :
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
277
278 fi
279
280
281 :
282 (as_func_return () {
283 (exit $1)
284 }
285 as_func_success () {
286 as_func_return 0
287 }
288 as_func_failure () {
289 as_func_return 1
290 }
291 as_func_ret_success () {
292 return 0
293 }
294 as_func_ret_failure () {
295 return 1
296 }
297
298 exitcode=0
299 if as_func_success; then
300 :
301 else
302 exitcode=1
303 echo as_func_success failed.
304 fi
305
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
309 fi
310
311 if as_func_ret_success; then
312 :
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
316 fi
317
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
321 fi
322
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 :
325 else
326 exitcode=1
327 echo positional parameters were not saved.
328 fi
329
330 test $exitcode = 0) || { (exit 1); exit 1; }
331
332 (
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337
338 _ASEOF
339 }; then
340 break
341 fi
342
343 fi
344
345 done
346
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 done
351 export CONFIG_SHELL
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 fi
354
355
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
362 fi
363
364
365 fi
366
367 fi
368
369
370
371 (eval "as_func_return () {
372 (exit \$1)
373 }
374 as_func_success () {
375 as_func_return 0
376 }
377 as_func_failure () {
378 as_func_return 1
379 }
380 as_func_ret_success () {
381 return 0
382 }
383 as_func_ret_failure () {
384 return 1
385 }
386
387 exitcode=0
388 if as_func_success; then
389 :
390 else
391 exitcode=1
392 echo as_func_success failed.
393 fi
394
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
398 fi
399
400 if as_func_ret_success; then
401 :
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
405 fi
406
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
410 fi
411
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 :
414 else
415 exitcode=1
416 echo positional parameters were not saved.
417 fi
418
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell [email protected] about your system,
422 echo including any error possibly output before this
423 echo message
424 }
425
426
427
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
439 # case at line end.
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
443 sed -n '
444 p
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
450 b
451 :lineno
452 N
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
461
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
468 }
469
470
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
475 fi
476
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
484 *)
485 ECHO_N='-n';;
486 esac
487
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
493 fi
494
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
501 fi
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
515 fi
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
518
519 if mkdir -p . 2>/dev/null; then
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
524 fi
525
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
533 fi
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
545 '
546 fi
547 as_executable_p=$as_test_x
548
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
566 esac
567
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
577 :
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
587 $*
588 _LT_EOF
589 exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
608
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
689 fi
690 fi
691 fi
692 fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='jaula'
728 PACKAGE_TARNAME='jaula'
729 PACKAGE_VERSION='1.4.0'
730 PACKAGE_STRING='jaula 1.4.0'
731 PACKAGE_BUGREPORT='[email protected]'
732
733 ac_unique_file="jaula/jaula.h"
734 ac_default_prefix=/usr
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 VERSION_INFO
831 SUBDIRS
832 DOC_GEN
833 LIBTOOL
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 SED
859 GREP
860 EGREP
861 FGREP
862 LD
863 DUMPBIN
864 ac_ct_DUMPBIN
865 NM
866 LN_S
867 AR
868 RANLIB
869 lt_ECHO
870 DSYMUTIL
871 NMEDIT
872 LIPO
873 OTOOL
874 OTOOL64
875 CPP
876 LIBTOOL_DEPS
877 CXX
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
884 LEX
885 LEX_OUTPUT_ROOT
886 LEXLIB
887 DOXYGEN
888 HAVE_DOT
889 TEST_DOT
890 PDFLATEX
891 LIBOBJS
892 LTLIBOBJS'
893 ac_subst_files=''
894 ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP
903 CXX
904 CXXFLAGS
905 CCC
906 CXXCPP'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *) ac_optarg=yes ;;
969 esac
970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
981
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
996
997 -datadir | --datadir | --datadi | --datad)
998 ac_prev=datadir ;;
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1001
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
1009 -disable-* | --disable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016 eval enable_$ac_feature=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035 eval enable_$ac_feature=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1185
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1196
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1201
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1206
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1213
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1218
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1221
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1224
1225 -with-* | --with-*)
1226 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 { echo "$as_me: error: invalid package name: $ac_package" >&2
1230 { (exit 1); exit 1; }; }
1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232 eval with_$ac_package=\$ac_optarg ;;
1233
1234 -without-* | --without-*)
1235 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) { echo "$as_me: error: unrecognized option: $ac_option
1262 Try \`$0 --help' for more information." >&2
1263 { (exit 1); exit 1; }; }
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271 { (exit 1); exit 1; }; }
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 { echo "$as_me: error: missing argument to $ac_option" >&2
1289 { (exit 1); exit 1; }; }
1290 fi
1291
1292 # Be sure to have absolute directory names.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1297 do
1298 eval ac_val=\$$ac_var
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304 { (exit 1); exit 1; }; }
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used." >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 { echo "$as_me: error: Working directory cannot be determined" >&2
1335 { (exit 1); exit 1; }; }
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 { echo "$as_me: error: pwd does not report name of working directory" >&2
1338 { (exit 1); exit 1; }; }
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$0" ||
1346 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$0" : 'X\(//\)[^/]' \| \
1348 X"$0" : 'X\(//\)$' \| \
1349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350 echo X"$0" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378 { (exit 1); exit 1; }; }
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1383 { (exit 1); exit 1; }; }
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1388 fi
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1401
1402 #
1403 # Report the --help message.
1404 #
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures jaula 1.4.0 to adapt to many kinds of systems.
1410
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1415
1416 Defaults for the options are specified in brackets.
1417
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1434
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1439
1440 For better control, use the options below.
1441
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/jaula]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1463
1464 cat <<\_ACEOF
1465
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of jaula 1.4.0:";;
1480 esac
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-extended-debug enables debugging of the parsing process
1487 --enable-doc-gen generates library documentation
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CPP C preprocessor
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1514 CXXCPP C++ preprocessor
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <[email protected]>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 jaula configure 1.4.0
1581 generated by GNU Autoconf 2.61
1582
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587
1588 (c) Kombo Morongo <[email protected]>
1589 _ACEOF
1590 exit
1591 fi
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1595
1596 It was created by jaula $as_me 1.4.0, which was
1597 generated by GNU Autoconf 2.61. Invocation command line was
1598
1599 $ $0 $@
1600
1601 _ACEOF
1602 exec 5>>config.log
1603 {
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1608
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625
1626 _ASUNAME
1627
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1636
1637 } >&5
1638
1639 cat >&5 <<_ACEOF
1640
1641
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1645
1646 _ACEOF
1647
1648
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1659 do
1660 for ac_arg
1661 do
1662 case $ac_arg in
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 continue ;;
1667 *\'*)
1668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 esac
1670 case $ac_pass in
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672 2)
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1676 else
1677 case $ac_arg in
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 esac
1685 ;;
1686 -* ) ac_must_keep_next=true ;;
1687 esac
1688 fi
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1690 ;;
1691 esac
1692 done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1704 {
1705 echo
1706
1707 cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712 echo
1713 # The following way of writing the cache mishandles newlines in values,
1714 (
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1717 case $ac_val in #(
1718 *${as_nl}*)
1719 case $ac_var in #(
1720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 esac
1723 case $ac_var in #(
1724 _ | IFS | as_nl) ;; #(
1725 *) $as_unset $ac_var ;;
1726 esac ;;
1727 esac
1728 done
1729 (set) 2>&1 |
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1732 sed -n \
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 ;; #(
1736 *)
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738 ;;
1739 esac |
1740 sort
1741 )
1742 echo
1743
1744 cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749 echo
1750 for ac_var in $ac_subst_vars
1751 do
1752 eval ac_val=\$$ac_var
1753 case $ac_val in
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 esac
1756 echo "$ac_var='\''$ac_val'\''"
1757 done | sort
1758 echo
1759
1760 if test -n "$ac_subst_files"; then
1761 cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_files
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776 fi
1777
1778 if test -s confdefs.h; then
1779 cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784 echo
1785 cat confdefs.h
1786 echo
1787 fi
1788 test "$ac_signal" != 0 &&
1789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
1791 } >&5
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 exit $exit_status
1795 ' 0
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1800
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1803
1804 # Predefined preprocessor variables.
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1829
1830
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834 set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 else
1838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
1840 fi
1841 shift
1842 for ac_site_file
1843 do
1844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1848 . "$ac_site_file"
1849 fi
1850 done
1851
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1858 case $cache_file in
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1861 esac
1862 fi
1863 else
1864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1866 >$cache_file
1867 fi
1868
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1878 set,)
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1882 ,set)
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1886 ,);;
1887 *)
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892 echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894 echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
1896 fi;;
1897 esac
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1900 case $ac_new_val in
1901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1903 esac
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907 esac
1908 fi
1909 done
1910 if $ac_cache_corrupted; then
1911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1916 fi
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942 ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949 ac_config_headers="$ac_config_headers config.h"
1950
1951
1952
1953
1954
1955 am__api_version='1.10'
1956
1957 ac_aux_dir=
1958 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1959 if test -f "$ac_dir/install-sh"; then
1960 ac_aux_dir=$ac_dir
1961 ac_install_sh="$ac_aux_dir/install-sh -c"
1962 break
1963 elif test -f "$ac_dir/install.sh"; then
1964 ac_aux_dir=$ac_dir
1965 ac_install_sh="$ac_aux_dir/install.sh -c"
1966 break
1967 elif test -f "$ac_dir/shtool"; then
1968 ac_aux_dir=$ac_dir
1969 ac_install_sh="$ac_aux_dir/shtool install -c"
1970 break
1971 fi
1972 done
1973 if test -z "$ac_aux_dir"; then
1974 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1976 { (exit 1); exit 1; }; }
1977 fi
1978
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1986
1987
1988 # Find a good install program. We prefer a C program (faster),
1989 # so one script is as good as another. But avoid the broken or
1990 # incompatible versions:
1991 # SysV /etc/install, /usr/sbin/install
1992 # SunOS /usr/etc/install
1993 # IRIX /sbin/install
1994 # AIX /bin/install
1995 # AmigaOS /C/install, which installs bootblocks on floppy discs
1996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1999 # OS/2's system install, which has a completely different semantic
2000 # ./install, which can be erroneously created by make from ./install.sh.
2001 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2002 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2003 if test -z "$INSTALL"; then
2004 if test "${ac_cv_path_install+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 # Account for people who put trailing slashes in PATH elements.
2013 case $as_dir/ in
2014 ./ | .// | /cC/* | \
2015 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2016 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2017 /usr/ucb/* ) ;;
2018 *)
2019 # OSF1 and SCO ODT 3.0 have their own names for install.
2020 # Don't use installbsd from OSF since it installs stuff as root
2021 # by default.
2022 for ac_prog in ginstall scoinst install; do
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2025 if test $ac_prog = install &&
2026 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027 # AIX install. It has an incompatible calling convention.
2028 :
2029 elif test $ac_prog = install &&
2030 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2031 # program-specific install script used by HP pwplus--don't use.
2032 :
2033 else
2034 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2035 break 3
2036 fi
2037 fi
2038 done
2039 done
2040 ;;
2041 esac
2042 done
2043 IFS=$as_save_IFS
2044
2045
2046 fi
2047 if test "${ac_cv_path_install+set}" = set; then
2048 INSTALL=$ac_cv_path_install
2049 else
2050 # As a last resort, use the slow shell script. Don't cache a
2051 # value for INSTALL within a source directory, because that will
2052 # break other packages using the cache if that directory is
2053 # removed, or if the value is a relative name.
2054 INSTALL=$ac_install_sh
2055 fi
2056 fi
2057 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2058 echo "${ECHO_T}$INSTALL" >&6; }
2059
2060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2061 # It thinks the first close brace ends the variable substitution.
2062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2063
2064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2065
2066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2067
2068 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2069 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2070 # Just in case
2071 sleep 1
2072 echo timestamp > conftest.file
2073 # Do `set' in a subshell so we don't clobber the current shell's
2074 # arguments. Must try -L first in case configure is actually a
2075 # symlink; some systems play weird games with the mod time of symlinks
2076 # (eg FreeBSD returns the mod time of the symlink's containing
2077 # directory).
2078 if (
2079 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2080 if test "$*" = "X"; then
2081 # -L didn't work.
2082 set X `ls -t $srcdir/configure conftest.file`
2083 fi
2084 rm -f conftest.file
2085 if test "$*" != "X $srcdir/configure conftest.file" \
2086 && test "$*" != "X conftest.file $srcdir/configure"; then
2087
2088 # If neither matched, then we have a broken ls. This can happen
2089 # if, for instance, CONFIG_SHELL is bash and it inherits a
2090 # broken ls alias from the environment. This has actually
2091 # happened. Such a system could not be considered "sane".
2092 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2093 alias in your environment" >&5
2094 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2095 alias in your environment" >&2;}
2096 { (exit 1); exit 1; }; }
2097 fi
2098
2099 test "$2" = conftest.file
2100 )
2101 then
2102 # Ok.
2103 :
2104 else
2105 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2106 Check your system clock" >&5
2107 echo "$as_me: error: newly created file is older than distributed files!
2108 Check your system clock" >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111 { echo "$as_me:$LINENO: result: yes" >&5
2112 echo "${ECHO_T}yes" >&6; }
2113 test "$program_prefix" != NONE &&
2114 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2115 # Use a double $ so make ignores it.
2116 test "$program_suffix" != NONE &&
2117 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2118 # Double any \ or $. echo might interpret backslashes.
2119 # By default was `s,x,x', remove it if useless.
2120 cat <<\_ACEOF >conftest.sed
2121 s/[\\$]/&&/g;s/;s,x,x,$//
2122 _ACEOF
2123 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2124 rm -f conftest.sed
2125
2126 # expand $ac_aux_dir to an absolute path
2127 am_aux_dir=`cd $ac_aux_dir && pwd`
2128
2129 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2130 # Use eval to expand $SHELL
2131 if eval "$MISSING --run true"; then
2132 am_missing_run="$MISSING --run "
2133 else
2134 am_missing_run=
2135 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2136 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2137 fi
2138
2139 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2140 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2141 if test -z "$MKDIR_P"; then
2142 if test "${ac_cv_path_mkdir+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2147 do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_prog in mkdir gmkdir; do
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2153 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2154 'mkdir (GNU coreutils) '* | \
2155 'mkdir (coreutils) '* | \
2156 'mkdir (fileutils) '4.1*)
2157 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2158 break 3;;
2159 esac
2160 done
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 fi
2166
2167 if test "${ac_cv_path_mkdir+set}" = set; then
2168 MKDIR_P="$ac_cv_path_mkdir -p"
2169 else
2170 # As a last resort, use the slow shell script. Don't cache a
2171 # value for MKDIR_P within a source directory, because that will
2172 # break other packages using the cache if that directory is
2173 # removed, or if the value is a relative name.
2174 test -d ./--version && rmdir ./--version
2175 MKDIR_P="$ac_install_sh -d"
2176 fi
2177 fi
2178 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2179 echo "${ECHO_T}$MKDIR_P" >&6; }
2180
2181 mkdir_p="$MKDIR_P"
2182 case $mkdir_p in
2183 [\\/$]* | ?:[\\/]*) ;;
2184 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2185 esac
2186
2187 for ac_prog in gawk mawk nawk awk
2188 do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193 if test "${ac_cv_prog_AWK+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196 if test -n "$AWK"; then
2197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_AWK="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2209 fi
2210 done
2211 done
2212 IFS=$as_save_IFS
2213
2214 fi
2215 fi
2216 AWK=$ac_cv_prog_AWK
2217 if test -n "$AWK"; then
2218 { echo "$as_me:$LINENO: result: $AWK" >&5
2219 echo "${ECHO_T}$AWK" >&6; }
2220 else
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2223 fi
2224
2225
2226 test -n "$AWK" && break
2227 done
2228
2229 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2230 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2231 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2232 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235 cat >conftest.make <<\_ACEOF
2236 SHELL = /bin/sh
2237 all:
2238 @echo '@@@%%%=$(MAKE)=@@@%%%'
2239 _ACEOF
2240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2241 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2242 *@@@%%%=?*=@@@%%%*)
2243 eval ac_cv_prog_make_${ac_make}_set=yes;;
2244 *)
2245 eval ac_cv_prog_make_${ac_make}_set=no;;
2246 esac
2247 rm -f conftest.make
2248 fi
2249 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2252 SET_MAKE=
2253 else
2254 { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2256 SET_MAKE="MAKE=${MAKE-make}"
2257 fi
2258
2259 rm -rf .tst 2>/dev/null
2260 mkdir .tst 2>/dev/null
2261 if test -d .tst; then
2262 am__leading_dot=.
2263 else
2264 am__leading_dot=_
2265 fi
2266 rmdir .tst 2>/dev/null
2267
2268 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2269 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2270 # is not polluted with repeated "-I."
2271 am__isrc=' -I$(srcdir)'
2272 # test to see if srcdir already configured
2273 if test -f $srcdir/config.status; then
2274 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2275 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2276 { (exit 1); exit 1; }; }
2277 fi
2278 fi
2279
2280 # test whether we have cygpath
2281 if test -z "$CYGPATH_W"; then
2282 if (cygpath --version) >/dev/null 2>/dev/null; then
2283 CYGPATH_W='cygpath -w'
2284 else
2285 CYGPATH_W=echo
2286 fi
2287 fi
2288
2289
2290 # Define the identity of the package.
2291 PACKAGE='jaula'
2292 VERSION='1.4.0'
2293
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE "$PACKAGE"
2297 _ACEOF
2298
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define VERSION "$VERSION"
2302 _ACEOF
2303
2304 # Some tools Automake needs.
2305
2306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2307
2308
2309 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2310
2311
2312 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2313
2314
2315 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2316
2317
2318 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2319
2320 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2321
2322 # Installed binaries are usually stripped using `strip' when the user
2323 # run `make install-strip'. However `strip' might not be the right
2324 # tool to use in cross-compilation environments, therefore Automake
2325 # will honor the `STRIP' environment variable to overrule this program.
2326 if test "$cross_compiling" != no; then
2327 if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}strip; ac_word=$2
2330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332 if test "${ac_cv_prog_STRIP+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test -n "$STRIP"; then
2336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 break 2
2348 fi
2349 done
2350 done
2351 IFS=$as_save_IFS
2352
2353 fi
2354 fi
2355 STRIP=$ac_cv_prog_STRIP
2356 if test -n "$STRIP"; then
2357 { echo "$as_me:$LINENO: result: $STRIP" >&5
2358 echo "${ECHO_T}$STRIP" >&6; }
2359 else
2360 { echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6; }
2362 fi
2363
2364
2365 fi
2366 if test -z "$ac_cv_prog_STRIP"; then
2367 ac_ct_STRIP=$STRIP
2368 # Extract the first word of "strip", so it can be a program name with args.
2369 set dummy strip; ac_word=$2
2370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 if test -n "$ac_ct_STRIP"; then
2376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_ac_ct_STRIP="strip"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2388 fi
2389 done
2390 done
2391 IFS=$as_save_IFS
2392
2393 fi
2394 fi
2395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2396 if test -n "$ac_ct_STRIP"; then
2397 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2398 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2399 else
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2402 fi
2403
2404 if test "x$ac_ct_STRIP" = x; then
2405 STRIP=":"
2406 else
2407 case $cross_compiling:$ac_tool_warned in
2408 yes:)
2409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2410 whose name does not start with the host triplet. If you think this
2411 configuration is useful to you, please write to [email protected]." >&5
2412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to [email protected]." >&2;}
2415 ac_tool_warned=yes ;;
2416 esac
2417 STRIP=$ac_ct_STRIP
2418 fi
2419 else
2420 STRIP="$ac_cv_prog_STRIP"
2421 fi
2422
2423 fi
2424 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2425
2426 # We need awk for the "check" target. The system "awk" is bad on
2427 # some platforms.
2428 # Always define AMTAR for backward compatibility.
2429
2430 AMTAR=${AMTAR-"${am_missing_run}tar"}
2431
2432 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2433
2434
2435
2436
2437
2438
2439
2440
2441 VERSION_INFO=1:4:0
2442
2443
2444
2445
2446 SUBDIRS="doc jaula examples"
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458 # Check whether --enable-extended-debug was given.
2459 if test "${enable_extended_debug+set}" = set; then
2460 enableval=$enable_extended_debug; if test "$enableval" = "yes"
2461 then
2462 cat >>confdefs.h <<\_ACEOF
2463 #define EXTENDED_DEBUG 1
2464 _ACEOF
2465
2466 fi
2467
2468 fi
2469
2470
2471 # Check whether --enable-doc-gen was given.
2472 if test "${enable_doc_gen+set}" = set; then
2473 enableval=$enable_doc_gen; if test "$enableval" = "yes"
2474 then
2475 DOC_GEN=1
2476 else
2477 DOC_GEN=0
2478 fi
2479
2480 fi
2481
2482
2483
2484 ac_ext=cpp
2485 ac_cpp='$CXXCPP $CPPFLAGS'
2486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2489
2490
2491 case `pwd` in
2492 *\ * | *\ *)
2493 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2494 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2495 esac
2496
2497
2498
2499 macro_version='2.2.4'
2500 macro_revision='1.2976'
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514 ltmain="$ac_aux_dir/ltmain.sh"
2515
2516 # Make sure we can run config.sub.
2517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2518 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2519 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2520 { (exit 1); exit 1; }; }
2521
2522 { echo "$as_me:$LINENO: checking build system type" >&5
2523 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2524 if test "${ac_cv_build+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 ac_build_alias=$build_alias
2528 test "x$ac_build_alias" = x &&
2529 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2530 test "x$ac_build_alias" = x &&
2531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2533 { (exit 1); exit 1; }; }
2534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2536 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2537 { (exit 1); exit 1; }; }
2538
2539 fi
2540 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2541 echo "${ECHO_T}$ac_cv_build" >&6; }
2542 case $ac_cv_build in
2543 *-*-*) ;;
2544 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2545 echo "$as_me: error: invalid value of canonical build" >&2;}
2546 { (exit 1); exit 1; }; };;
2547 esac
2548 build=$ac_cv_build
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_build
2551 shift
2552 build_cpu=$1
2553 build_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 build_os=$*
2558 IFS=$ac_save_IFS
2559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 { echo "$as_me:$LINENO: checking host system type" >&5
2563 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2564 if test "${ac_cv_host+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test "x$host_alias" = x; then
2568 ac_cv_host=$ac_cv_build
2569 else
2570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2572 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2573 { (exit 1); exit 1; }; }
2574 fi
2575
2576 fi
2577 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2578 echo "${ECHO_T}$ac_cv_host" >&6; }
2579 case $ac_cv_host in
2580 *-*-*) ;;
2581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2582 echo "$as_me: error: invalid value of canonical host" >&2;}
2583 { (exit 1); exit 1; }; };;
2584 esac
2585 host=$ac_cv_host
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_host
2588 shift
2589 host_cpu=$1
2590 host_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 host_os=$*
2595 IFS=$ac_save_IFS
2596 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2597
2598
2599 DEPDIR="${am__leading_dot}deps"
2600
2601 ac_config_commands="$ac_config_commands depfiles"
2602
2603
2604 am_make=${MAKE-make}
2605 cat > confinc << 'END'
2606 am__doit:
2607 @echo done
2608 .PHONY: am__doit
2609 END
2610 # If we don't find an include directive, just comment out the code.
2611 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2612 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2613 am__include="#"
2614 am__quote=
2615 _am_result=none
2616 # First try GNU make style include.
2617 echo "include confinc" > confmf
2618 # We grep out `Entering directory' and `Leaving directory'
2619 # messages which can occur if `w' ends up in MAKEFLAGS.
2620 # In particular we don't look at `^make:' because GNU make might
2621 # be invoked under some other name (usually "gmake"), in which
2622 # case it prints its new name instead of `make'.
2623 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2624 am__include=include
2625 am__quote=
2626 _am_result=GNU
2627 fi
2628 # Now try BSD make style include.
2629 if test "$am__include" = "#"; then
2630 echo '.include "confinc"' > confmf
2631 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2632 am__include=.include
2633 am__quote="\""
2634 _am_result=BSD
2635 fi
2636 fi
2637
2638
2639 { echo "$as_me:$LINENO: result: $_am_result" >&5
2640 echo "${ECHO_T}$_am_result" >&6; }
2641 rm -f confinc confmf
2642
2643 # Check whether --enable-dependency-tracking was given.
2644 if test "${enable_dependency_tracking+set}" = set; then
2645 enableval=$enable_dependency_tracking;
2646 fi
2647
2648 if test "x$enable_dependency_tracking" != xno; then
2649 am_depcomp="$ac_aux_dir/depcomp"
2650 AMDEPBACKSLASH='\'
2651 fi
2652 if test "x$enable_dependency_tracking" != xno; then
2653 AMDEP_TRUE=
2654 AMDEP_FALSE='#'
2655 else
2656 AMDEP_TRUE='#'
2657 AMDEP_FALSE=
2658 fi
2659
2660
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697 echo "${ECHO_T}$CC" >&6; }
2698 else
2699 { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_CC"; then
2706 ac_ct_CC=$CC
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="gcc"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735 if test -n "$ac_ct_CC"; then
2736 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737 echo "${ECHO_T}$ac_ct_CC" >&6; }
2738 else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2741 fi
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet. If you think this
2750 configuration is useful to you, please write to [email protected]." >&5
2751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet. If you think this
2753 configuration is useful to you, please write to [email protected]." >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756 CC=$ac_ct_CC
2757 fi
2758 else
2759 CC="$ac_cv_prog_CC"
2760 fi
2761
2762 if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}cc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}cc"
2782 echo "$as_me:$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 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { echo "$as_me:$LINENO: result: $CC" >&5
2794 echo "${ECHO_T}$CC" >&6; }
2795 else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2798 fi
2799
2800
2801 fi
2802 fi
2803 if test -z "$CC"; then
2804 # Extract the first word of "cc", so it can be a program name with args.
2805 set dummy cc; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 ac_prog_rejected=no
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823 ac_prog_rejected=yes
2824 continue
2825 fi
2826 ac_cv_prog_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 if test $ac_prog_rejected = yes; then
2835 # We found a bogon in the path, so make sure we never use it.
2836 set dummy $ac_cv_prog_CC
2837 shift
2838 if test $# != 0; then
2839 # We chose a different compiler from the bogus one.
2840 # However, it has the same basename, so the bogon will be chosen
2841 # first if we set CC to just the basename; use the full file name.
2842 shift
2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844 fi
2845 fi
2846 fi
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851 echo "${ECHO_T}$CC" >&6; }
2852 else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2855 fi
2856
2857
2858 fi
2859 if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 for ac_prog in cl.exe
2862 do
2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2894 else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2898
2899
2900 test -n "$CC" && break
2901 done
2902 fi
2903 if test -z "$CC"; then
2904 ac_ct_CC=$CC
2905 for ac_prog in cl.exe
2906 do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908 set dummy $ac_prog; ac_word=$2
2909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_ac_ct_CC="$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935 if test -n "$ac_ct_CC"; then
2936 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2937 echo "${ECHO_T}$ac_ct_CC" >&6; }
2938 else
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2941 fi
2942
2943
2944 test -n "$ac_ct_CC" && break
2945 done
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951 yes:)
2952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet. If you think this
2954 configuration is useful to you, please write to [email protected]." >&5
2955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956 whose name does not start with the host triplet. If you think this
2957 configuration is useful to you, please write to [email protected]." >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 CC=$ac_ct_CC
2961 fi
2962 fi
2963
2964 fi
2965
2966
2967 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: no acceptable C compiler found in \$PATH
2970 See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }
2972
2973 # Provide some information about the compiler.
2974 echo "$as_me:$LINENO: checking for C compiler version" >&5
2975 ac_compiler=`set X $ac_compile; echo $2`
2976 { (ac_try="$ac_compiler --version >&5"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler --version >&5") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986 { (ac_try="$ac_compiler -v >&5"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -v >&5") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996 { (ac_try="$ac_compiler -V >&5"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compiler -V >&5") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013
3014 int
3015 main ()
3016 {
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 ac_clean_files_save=$ac_clean_files
3023 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3024 # Try to create an executable without -o first, disregard a.out.
3025 # It will help us diagnose broken compilers, and finding out an intuition
3026 # of exeext.
3027 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3028 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3029 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3030 #
3031 # List of possible output files, starting from the most likely.
3032 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3033 # only as a last resort. b.out is created by i960 compilers.
3034 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3035 #
3036 # The IRIX 6 linker writes into existing files which may not be
3037 # executable, retaining their permissions. Remove them first so a
3038 # subsequent execution test works.
3039 ac_rmfiles=
3040 for ac_file in $ac_files
3041 do
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3044 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3045 esac
3046 done
3047 rm -f $ac_rmfiles
3048
3049 if { (ac_try="$ac_link_default"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_link_default") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; then
3059 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3062 # so that the user can short-circuit this test for compilers unknown to
3063 # Autoconf.
3064 for ac_file in $ac_files ''
3065 do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3069 ;;
3070 [ab].out )
3071 # We found the default executable, but exeext='' is most
3072 # certainly right.
3073 break;;
3074 *.* )
3075 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3076 then :; else
3077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 fi
3079 # We set ac_cv_exeext here because the later test for it is not
3080 # safe: cross compilers may not add the suffix if given an `-o'
3081 # argument, so we may need to know it at that point already.
3082 # Even if this section looks crufty: it has the advantage of
3083 # actually working.
3084 break;;
3085 * )
3086 break;;
3087 esac
3088 done
3089 test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
3091 else
3092 ac_file=''
3093 fi
3094
3095 { echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6; }
3097 if test -z "$ac_file"; then
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C compiler cannot create executables
3104 See \`config.log' for more details." >&2;}
3105 { (exit 77); exit 77; }; }
3106 fi
3107
3108 ac_exeext=$ac_cv_exeext
3109
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3113 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3114 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3115 # If not cross compiling, check that we can run a simple program.
3116 if test "$cross_compiling" != yes; then
3117 if { ac_try='./$ac_file'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 cross_compiling=no
3128 else
3129 if test "$cross_compiling" = maybe; then
3130 cross_compiling=yes
3131 else
3132 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3133 If you meant to cross compile, use \`--host'.
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: cannot run C compiled programs.
3136 If you meant to cross compile, use \`--host'.
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3139 fi
3140 fi
3141 fi
3142 { echo "$as_me:$LINENO: result: yes" >&5
3143 echo "${ECHO_T}yes" >&6; }
3144
3145 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3146 ac_clean_files=$ac_clean_files_save
3147 # Check that the compiler produces executables we can run. If not, either
3148 # the compiler is broken, or we cross compile.
3149 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3150 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3151 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3152 echo "${ECHO_T}$cross_compiling" >&6; }
3153
3154 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3155 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3156 if { (ac_try="$ac_link"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_link") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; then
3166 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3167 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3168 # work properly (i.e., refer to `conftest.exe'), while it won't with
3169 # `rm'.
3170 for ac_file in conftest.exe conftest conftest.*; do
3171 test -f "$ac_file" || continue
3172 case $ac_file in
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3174 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3175 break;;
3176 * ) break;;
3177 esac
3178 done
3179 else
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3185 fi
3186
3187 rm -f conftest$ac_cv_exeext
3188 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3189 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3190
3191 rm -f conftest.$ac_ext
3192 EXEEXT=$ac_cv_exeext
3193 ac_exeext=$EXEEXT
3194 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3195 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3196 if test "${ac_cv_objext+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.o conftest.obj
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; then
3225 for ac_file in conftest.o conftest.obj conftest.*; do
3226 test -f "$ac_file" || continue;
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 break;;
3231 esac
3232 done
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245 fi
3246 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6; }
3248 OBJEXT=$ac_cv_objext
3249 ac_objext=$OBJEXT
3250 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265 #ifndef __GNUC__
3266 choke me
3267 #endif
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3290 ac_compiler_gnu=yes
3291 else
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295 ac_compiler_gnu=no
3296 fi
3297
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3300
3301 fi
3302 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3303 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3304 GCC=`test $ac_compiler_gnu = yes && echo yes`
3305 ac_test_CFLAGS=${CFLAGS+set}
3306 ac_save_CFLAGS=$CFLAGS
3307 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3308 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_cc_g+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 ac_save_c_werror_flag=$ac_c_werror_flag
3313 ac_c_werror_flag=yes
3314 ac_cv_prog_cc_g=no
3315 CFLAGS="-g"
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_compile") 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3348 ac_cv_prog_cc_g=yes
3349 else
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 CFLAGS=""
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 rm -f conftest.$ac_objext
3370 if { (ac_try="$ac_compile"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_compile") 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } && {
3383 test -z "$ac_c_werror_flag" ||
3384 test ! -s conftest.err
3385 } && test -s conftest.$ac_objext; then
3386 :
3387 else
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 ac_c_werror_flag=$ac_save_c_werror_flag
3392 CFLAGS="-g"
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (ac_try="$ac_compile"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_compile") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } && {
3422 test -z "$ac_c_werror_flag" ||
3423 test ! -s conftest.err
3424 } && test -s conftest.$ac_objext; then
3425 ac_cv_prog_cc_g=yes
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430
3431 fi
3432
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 fi
3435
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 fi
3438
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3441 fi
3442 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3443 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3444 if test "$ac_test_CFLAGS" = set; then
3445 CFLAGS=$ac_save_CFLAGS
3446 elif test $ac_cv_prog_cc_g = yes; then
3447 if test "$GCC" = yes; then
3448 CFLAGS="-g -O2"
3449 else
3450 CFLAGS="-g"
3451 fi
3452 else
3453 if test "$GCC" = yes; then
3454 CFLAGS="-O2"
3455 else
3456 CFLAGS=
3457 fi
3458 fi
3459 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3460 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3461 if test "${ac_cv_prog_cc_c89+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 ac_cv_prog_cc_c89=no
3465 ac_save_CC=$CC
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <stdarg.h>
3473 #include <stdio.h>
3474 #include <sys/types.h>
3475 #include <sys/stat.h>
3476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3477 struct buf { int x; };
3478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479 static char *e (p, i)
3480 char **p;
3481 int i;
3482 {
3483 return p[i];
3484 }
3485 static char *f (char * (*g) (char **, int), char **p, ...)
3486 {
3487 char *s;
3488 va_list v;
3489 va_start (v,p);
3490 s = g (p, va_arg (v,int));
3491 va_end (v);
3492 return s;
3493 }
3494
3495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3496 function prototypes and stuff, but not '\xHH' hex character constants.
3497 These don't provoke an error unfortunately, instead are silently treated
3498 as 'x'. The following induces an error, until -std is added to get
3499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3500 array size at least. It's necessary to write '\x00'==0 to get something
3501 that's true only with -std. */
3502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3503
3504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505 inside strings and character constants. */
3506 #define FOO(x) 'x'
3507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3508
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 int argc;
3514 char **argv;
3515 int
3516 main ()
3517 {
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 do
3526 CC="$ac_save_CC $ac_arg"
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } && {
3541 test -z "$ac_c_werror_flag" ||
3542 test ! -s conftest.err
3543 } && test -s conftest.$ac_objext; then
3544 ac_cv_prog_cc_c89=$ac_arg
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549
3550 fi
3551
3552 rm -f core conftest.err conftest.$ac_objext
3553 test "x$ac_cv_prog_cc_c89" != "xno" && break
3554 done
3555 rm -f conftest.$ac_ext
3556 CC=$ac_save_CC
3557
3558 fi
3559 # AC_CACHE_VAL
3560 case "x$ac_cv_prog_cc_c89" in
3561 x)
3562 { echo "$as_me:$LINENO: result: none needed" >&5
3563 echo "${ECHO_T}none needed" >&6; } ;;
3564 xno)
3565 { echo "$as_me:$LINENO: result: unsupported" >&5
3566 echo "${ECHO_T}unsupported" >&6; } ;;
3567 *)
3568 CC="$CC $ac_cv_prog_cc_c89"
3569 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3570 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3571 esac
3572
3573
3574 ac_ext=cpp
3575 ac_cpp='$CXXCPP $CPPFLAGS'
3576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3579
3580 depcc="$CC" am_compiler_list=
3581
3582 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3583 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3584 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3588 # We make a subdir and do the tests there. Otherwise we can end up
3589 # making bogus files that we don't know about and never remove. For
3590 # instance it was reported that on HP-UX the gcc test will end up
3591 # making a dummy file named `D' -- because `-MD' means `put the output
3592 # in D'.
3593 mkdir conftest.dir
3594 # Copy depcomp to subdir because otherwise we won't find it if we're
3595 # using a relative directory.
3596 cp "$am_depcomp" conftest.dir
3597 cd conftest.dir
3598 # We will build objects and dependencies in a subdirectory because
3599 # it helps to detect inapplicable dependency modes. For instance
3600 # both Tru64's cc and ICC support -MD to output dependencies as a
3601 # side effect of compilation, but ICC will put the dependencies in
3602 # the current directory while Tru64 will put them in the object
3603 # directory.
3604 mkdir sub
3605
3606 am_cv_CC_dependencies_compiler_type=none
3607 if test "$am_compiler_list" = ""; then
3608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3609 fi
3610 for depmode in $am_compiler_list; do
3611 # Setup a source with many dependencies, because some compilers
3612 # like to wrap large dependency lists on column 80 (with \), and
3613 # we should not choose a depcomp mode which is confused by this.
3614 #
3615 # We need to recreate these files for each test, as the compiler may
3616 # overwrite some of them when testing with obscure command lines.
3617 # This happens at least with the AIX C compiler.
3618 : > sub/conftest.c
3619 for i in 1 2 3 4 5 6; do
3620 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3621 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3622 # Solaris 8's {/usr,}/bin/sh.
3623 touch sub/conftst$i.h
3624 done
3625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3626
3627 case $depmode in
3628 nosideeffect)
3629 # after this tag, mechanisms are not by side-effect, so they'll
3630 # only be used when explicitly requested
3631 if test "x$enable_dependency_tracking" = xyes; then
3632 continue
3633 else
3634 break
3635 fi
3636 ;;
3637 none) break ;;
3638 esac
3639 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3640 # mode. It turns out that the SunPro C++ compiler does not properly
3641 # handle `-M -o', and we need to detect this.
3642 if depmode=$depmode \
3643 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3645 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3646 >/dev/null 2>conftest.err &&
3647 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3648 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3649 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3650 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3651 # icc doesn't choke on unknown options, it will just issue warnings
3652 # or remarks (even with -Werror). So we grep stderr for any message
3653 # that says an option was ignored or not supported.
3654 # When given -MP, icc 7.0 and 7.1 complain thusly:
3655 # icc: Command line warning: ignoring option '-M'; no argument required
3656 # The diagnosis changed in icc 8.0:
3657 # icc: Command line remark: option '-MP' not supported
3658 if (grep 'ignoring option' conftest.err ||
3659 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3660 am_cv_CC_dependencies_compiler_type=$depmode
3661 break
3662 fi
3663 fi
3664 done
3665
3666 cd ..
3667 rm -rf conftest.dir
3668 else
3669 am_cv_CC_dependencies_compiler_type=none
3670 fi
3671
3672 fi
3673 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3674 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3675 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3676
3677 if
3678 test "x$enable_dependency_tracking" != xno \
3679 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3680 am__fastdepCC_TRUE=
3681 am__fastdepCC_FALSE='#'
3682 else
3683 am__fastdepCC_TRUE='#'
3684 am__fastdepCC_FALSE=
3685 fi
3686
3687
3688 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3689 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3690 if test "${ac_cv_path_SED+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3694 for ac_i in 1 2 3 4 5 6 7; do
3695 ac_script="$ac_script$as_nl$ac_script"
3696 done
3697 echo "$ac_script" | sed 99q >conftest.sed
3698 $as_unset ac_script || ac_script=
3699 # Extract the first word of "sed gsed" to use in msg output
3700 if test -z "$SED"; then
3701 set dummy sed gsed; ac_prog_name=$2
3702 if test "${ac_cv_path_SED+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 ac_path_SED_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in sed gsed; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3716 # Check for GNU ac_path_SED and select it if it is found.
3717 # Check for GNU $ac_path_SED
3718 case `"$ac_path_SED" --version 2>&1` in
3719 *GNU*)
3720 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3721 *)
3722 ac_count=0
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo '' >> "conftest.nl"
3730 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_SED_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_SED="$ac_path_SED"
3736 ac_path_SED_max=$ac_count
3737 fi
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3743
3744
3745 $ac_path_SED_found && break 3
3746 done
3747 done
3748
3749 done
3750 IFS=$as_save_IFS
3751
3752
3753 fi
3754
3755 SED="$ac_cv_path_SED"
3756 if test -z "$SED"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3759 { (exit 1); exit 1; }; }
3760 fi
3761
3762 else
3763 ac_cv_path_SED=$SED
3764 fi
3765
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3768 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3769 SED="$ac_cv_path_SED"
3770 rm -f conftest.sed
3771
3772 test -z "$SED" && SED=sed
3773 Xsed="$SED -e 1s/^X//"
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3786 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3787 if test "${ac_cv_path_GREP+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 # Extract the first word of "grep ggrep" to use in msg output
3791 if test -z "$GREP"; then
3792 set dummy grep ggrep; ac_prog_name=$2
3793 if test "${ac_cv_path_GREP+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 ac_path_GREP_found=false
3797 # Loop through the user's path and test for each of PROGNAME-LIST
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_prog in grep ggrep; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3806 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3807 # Check for GNU ac_path_GREP and select it if it is found.
3808 # Check for GNU $ac_path_GREP
3809 case `"$ac_path_GREP" --version 2>&1` in
3810 *GNU*)
3811 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812 *)
3813 ac_count=0
3814 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3815 while :
3816 do
3817 cat "conftest.in" "conftest.in" >"conftest.tmp"
3818 mv "conftest.tmp" "conftest.in"
3819 cp "conftest.in" "conftest.nl"
3820 echo 'GREP' >> "conftest.nl"
3821 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823 ac_count=`expr $ac_count + 1`
3824 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3825 # Best one so far, save it but keep looking for a better one
3826 ac_cv_path_GREP="$ac_path_GREP"
3827 ac_path_GREP_max=$ac_count
3828 fi
3829 # 10*(2^10) chars as input seems more than enough
3830 test $ac_count -gt 10 && break
3831 done
3832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833 esac
3834
3835
3836 $ac_path_GREP_found && break 3
3837 done
3838 done
3839
3840 done
3841 IFS=$as_save_IFS
3842
3843
3844 fi
3845
3846 GREP="$ac_cv_path_GREP"
3847 if test -z "$GREP"; then
3848 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3849 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3850 { (exit 1); exit 1; }; }
3851 fi
3852
3853 else
3854 ac_cv_path_GREP=$GREP
3855 fi
3856
3857
3858 fi
3859 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3860 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3861 GREP="$ac_cv_path_GREP"
3862
3863
3864 { echo "$as_me:$LINENO: checking for egrep" >&5
3865 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3866 if test "${ac_cv_path_EGREP+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3870 then ac_cv_path_EGREP="$GREP -E"
3871 else
3872 # Extract the first word of "egrep" to use in msg output
3873 if test -z "$EGREP"; then
3874 set dummy egrep; ac_prog_name=$2
3875 if test "${ac_cv_path_EGREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 ac_path_EGREP_found=false
3879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in egrep; do
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3888 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3889 # Check for GNU ac_path_EGREP and select it if it is found.
3890 # Check for GNU $ac_path_EGREP
3891 case `"$ac_path_EGREP" --version 2>&1` in
3892 *GNU*)
3893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3894 *)
3895 ac_count=0
3896 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3897 while :
3898 do
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
3902 echo 'EGREP' >> "conftest.nl"
3903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 ac_count=`expr $ac_count + 1`
3906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_EGREP="$ac_path_EGREP"
3909 ac_path_EGREP_max=$ac_count
3910 fi
3911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3913 done
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 esac
3916
3917
3918 $ac_path_EGREP_found && break 3
3919 done
3920 done
3921
3922 done
3923 IFS=$as_save_IFS
3924
3925
3926 fi
3927
3928 EGREP="$ac_cv_path_EGREP"
3929 if test -z "$EGREP"; then
3930 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3931 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3932 { (exit 1); exit 1; }; }
3933 fi
3934
3935 else
3936 ac_cv_path_EGREP=$EGREP
3937 fi
3938
3939
3940 fi
3941 fi
3942 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3943 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3944 EGREP="$ac_cv_path_EGREP"
3945
3946
3947 { echo "$as_me:$LINENO: checking for fgrep" >&5
3948 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_FGREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3953 then ac_cv_path_FGREP="$GREP -F"
3954 else
3955 # Extract the first word of "fgrep" to use in msg output
3956 if test -z "$FGREP"; then
3957 set dummy fgrep; ac_prog_name=$2
3958 if test "${ac_cv_path_FGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 ac_path_FGREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_prog in fgrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3971 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3972 # Check for GNU ac_path_FGREP and select it if it is found.
3973 # Check for GNU $ac_path_FGREP
3974 case `"$ac_path_FGREP" --version 2>&1` in
3975 *GNU*)
3976 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3977 *)
3978 ac_count=0
3979 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3980 while :
3981 do
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
3985 echo 'FGREP' >> "conftest.nl"
3986 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988 ac_count=`expr $ac_count + 1`
3989 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_FGREP="$ac_path_FGREP"
3992 ac_path_FGREP_max=$ac_count
3993 fi
3994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3996 done
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 esac
3999
4000
4001 $ac_path_FGREP_found && break 3
4002 done
4003 done
4004
4005 done
4006 IFS=$as_save_IFS
4007
4008
4009 fi
4010
4011 FGREP="$ac_cv_path_FGREP"
4012 if test -z "$FGREP"; then
4013 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015 { (exit 1); exit 1; }; }
4016 fi
4017
4018 else
4019 ac_cv_path_FGREP=$FGREP
4020 fi
4021
4022
4023 fi
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4026 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4027 FGREP="$ac_cv_path_FGREP"
4028
4029
4030 test -z "$GREP" && GREP=grep
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050 # Check whether --with-gnu-ld was given.
4051 if test "${with_gnu_ld+set}" = set; then
4052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4053 else
4054 with_gnu_ld=no
4055 fi
4056
4057 ac_prog=ld
4058 if test "$GCC" = yes; then
4059 # Check if gcc -print-prog-name=ld gives a path.
4060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4062 case $host in
4063 *-*-mingw*)
4064 # gcc leaves a trailing carriage return which upsets mingw
4065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4066 *)
4067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4068 esac
4069 case $ac_prog in
4070 # Accept absolute paths.
4071 [\\/]* | ?:[\\/]*)
4072 re_direlt='/[^/][^/]*/\.\./'
4073 # Canonicalize the pathname of ld
4074 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4075 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4076 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4077 done
4078 test -z "$LD" && LD="$ac_prog"
4079 ;;
4080 "")
4081 # If it fails, then pretend we aren't using GCC.
4082 ac_prog=ld
4083 ;;
4084 *)
4085 # If it is relative, then search for the first ld in PATH.
4086 with_gnu_ld=unknown
4087 ;;
4088 esac
4089 elif test "$with_gnu_ld" = yes; then
4090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4092 else
4093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4095 fi
4096 if test "${lt_cv_path_LD+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if test -z "$LD"; then
4100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4101 for ac_dir in $PATH; do
4102 IFS="$lt_save_ifs"
4103 test -z "$ac_dir" && ac_dir=.
4104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4105 lt_cv_path_LD="$ac_dir/$ac_prog"
4106 # Check to see if the program is GNU ld. I'd rather use --version,
4107 # but apparently some variants of GNU ld only accept -v.
4108 # Break only if it was the GNU/non-GNU ld that we prefer.
4109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4110 *GNU* | *'with BFD'*)
4111 test "$with_gnu_ld" != no && break
4112 ;;
4113 *)
4114 test "$with_gnu_ld" != yes && break
4115 ;;
4116 esac
4117 fi
4118 done
4119 IFS="$lt_save_ifs"
4120 else
4121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4122 fi
4123 fi
4124
4125 LD="$lt_cv_path_LD"
4126 if test -n "$LD"; then
4127 { echo "$as_me:$LINENO: result: $LD" >&5
4128 echo "${ECHO_T}$LD" >&6; }
4129 else
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4132 fi
4133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4135 { (exit 1); exit 1; }; }
4136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4142 case `$LD -v 2>&1 </dev/null` in
4143 *GNU* | *'with BFD'*)
4144 lt_cv_prog_gnu_ld=yes
4145 ;;
4146 *)
4147 lt_cv_prog_gnu_ld=no
4148 ;;
4149 esac
4150 fi
4151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4153 with_gnu_ld=$lt_cv_prog_gnu_ld
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4164 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4165 if test "${lt_cv_path_NM+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 if test -n "$NM"; then
4169 # Let the user override the test.
4170 lt_cv_path_NM="$NM"
4171 else
4172 lt_nm_to_check="${ac_tool_prefix}nm"
4173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4174 lt_nm_to_check="$lt_nm_to_check nm"
4175 fi
4176 for lt_tmp_nm in $lt_nm_to_check; do
4177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4178 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4179 IFS="$lt_save_ifs"
4180 test -z "$ac_dir" && ac_dir=.
4181 tmp_nm="$ac_dir/$lt_tmp_nm"
4182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4183 # Check to see if the nm accepts a BSD-compat flag.
4184 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4185 # nm: unknown option "B" ignored
4186 # Tru64's nm complains that /dev/null is an invalid object file
4187 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4188 */dev/null* | *'Invalid file or object type'*)
4189 lt_cv_path_NM="$tmp_nm -B"
4190 break
4191 ;;
4192 *)
4193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4194 */dev/null*)
4195 lt_cv_path_NM="$tmp_nm -p"
4196 break
4197 ;;
4198 *)
4199 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4200 continue # so that we can try to find one that supports BSD flags
4201 ;;
4202 esac
4203 ;;
4204 esac
4205 fi
4206 done
4207 IFS="$lt_save_ifs"
4208 done
4209 : ${lt_cv_path_NM=no}
4210 fi
4211 fi
4212 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4213 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4214 if test "$lt_cv_path_NM" != "no"; then
4215 NM="$lt_cv_path_NM"
4216 else
4217 # Didn't find any BSD compatible name lister, look for dumpbin.
4218 if test -n "$ac_tool_prefix"; then
4219 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4220 do
4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4225 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test -n "$DUMPBIN"; then
4229 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 DUMPBIN=$ac_cv_prog_DUMPBIN
4249 if test -n "$DUMPBIN"; then
4250 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4251 echo "${ECHO_T}$DUMPBIN" >&6; }
4252 else
4253 { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4255 fi
4256
4257
4258 test -n "$DUMPBIN" && break
4259 done
4260 fi
4261 if test -z "$DUMPBIN"; then
4262 ac_ct_DUMPBIN=$DUMPBIN
4263 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4264 do
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 if test -n "$ac_ct_DUMPBIN"; then
4273 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4293 if test -n "$ac_ct_DUMPBIN"; then
4294 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4295 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4296 else
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4299 fi
4300
4301
4302 test -n "$ac_ct_DUMPBIN" && break
4303 done
4304
4305 if test "x$ac_ct_DUMPBIN" = x; then
4306 DUMPBIN=":"
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to [email protected]." >&5
4313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4314 whose name does not start with the host triplet. If you think this
4315 configuration is useful to you, please write to [email protected]." >&2;}
4316 ac_tool_warned=yes ;;
4317 esac
4318 DUMPBIN=$ac_ct_DUMPBIN
4319 fi
4320 fi
4321
4322
4323 if test "$DUMPBIN" != ":"; then
4324 NM="$DUMPBIN"
4325 fi
4326 fi
4327 test -z "$NM" && NM=nm
4328
4329
4330
4331
4332
4333
4334 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4335 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4336 if test "${lt_cv_nm_interface+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 lt_cv_nm_interface="BSD nm"
4340 echo "int some_variable = 0;" > conftest.$ac_ext
4341 (eval echo "\"\$as_me:4341: $ac_compile\"" >&5)
4342 (eval "$ac_compile" 2>conftest.err)
4343 cat conftest.err >&5
4344 (eval echo "\"\$as_me:4344: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4345 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4346 cat conftest.err >&5
4347 (eval echo "\"\$as_me:4347: output\"" >&5)
4348 cat conftest.out >&5
4349 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4350 lt_cv_nm_interface="MS dumpbin"
4351 fi
4352 rm -f conftest*
4353 fi
4354 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4355 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4356
4357 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4359 LN_S=$as_ln_s
4360 if test "$LN_S" = "ln -s"; then
4361 { echo "$as_me:$LINENO: result: yes" >&5
4362 echo "${ECHO_T}yes" >&6; }
4363 else
4364 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4365 echo "${ECHO_T}no, using $LN_S" >&6; }
4366 fi
4367
4368 # find the maximum length of command line arguments
4369 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4370 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4371 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 i=0
4375 teststring="ABCD"
4376
4377 case $build_os in
4378 msdosdjgpp*)
4379 # On DJGPP, this test can blow up pretty badly due to problems in libc
4380 # (any single argument exceeding 2000 bytes causes a buffer overrun
4381 # during glob expansion). Even if it were fixed, the result of this
4382 # check would be larger than it should be.
4383 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4384 ;;
4385
4386 gnu*)
4387 # Under GNU Hurd, this test is not required because there is
4388 # no limit to the length of command line arguments.
4389 # Libtool will interpret -1 as no limit whatsoever
4390 lt_cv_sys_max_cmd_len=-1;
4391 ;;
4392
4393 cygwin* | mingw*)
4394 # On Win9x/ME, this test blows up -- it succeeds, but takes
4395 # about 5 minutes as the teststring grows exponentially.
4396 # Worse, since 9x/ME are not pre-emptively multitasking,
4397 # you end up with a "frozen" computer, even though with patience
4398 # the test eventually succeeds (with a max line length of 256k).
4399 # Instead, let's just punt: use the minimum linelength reported by
4400 # all of the supported platforms: 8192 (on NT/2K/XP).
4401 lt_cv_sys_max_cmd_len=8192;
4402 ;;
4403
4404 amigaos*)
4405 # On AmigaOS with pdksh, this test takes hours, literally.
4406 # So we just punt and use a minimum line length of 8192.
4407 lt_cv_sys_max_cmd_len=8192;
4408 ;;
4409
4410 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4411 # This has been around since 386BSD, at least. Likely further.
4412 if test -x /sbin/sysctl; then
4413 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4414 elif test -x /usr/sbin/sysctl; then
4415 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4416 else
4417 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4418 fi
4419 # And add a safety zone
4420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4422 ;;
4423
4424 interix*)
4425 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4426 lt_cv_sys_max_cmd_len=196608
4427 ;;
4428
4429 osf*)
4430 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4431 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4432 # nice to cause kernel panics so lets avoid the loop below.
4433 # First set a reasonable default.
4434 lt_cv_sys_max_cmd_len=16384
4435 #
4436 if test -x /sbin/sysconfig; then
4437 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4438 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4439 esac
4440 fi
4441 ;;
4442 sco3.2v5*)
4443 lt_cv_sys_max_cmd_len=102400
4444 ;;
4445 sysv5* | sco5v6* | sysv4.2uw2*)
4446 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4447 if test -n "$kargmax"; then
4448 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4449 else
4450 lt_cv_sys_max_cmd_len=32768
4451 fi
4452 ;;
4453 *)
4454 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4455 if test -n "$lt_cv_sys_max_cmd_len"; then
4456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4458 else
4459 # Make teststring a little bigger before we do anything with it.
4460 # a 1K string should be a reasonable start.
4461 for i in 1 2 3 4 5 6 7 8 ; do
4462 teststring=$teststring$teststring
4463 done
4464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4465 # If test is not a shell built-in, we'll probably end up computing a
4466 # maximum length that is only half of the actual maximum length, but
4467 # we can't tell.
4468 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4469 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4470 test $i != 17 # 1/2 MB should be enough
4471 do
4472 i=`expr $i + 1`
4473 teststring=$teststring$teststring
4474 done
4475 # Only check the string length outside the loop.
4476 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4477 teststring=
4478 # Add a significant safety factor because C++ compilers can tack on
4479 # massive amounts of additional arguments before passing them to the
4480 # linker. It appears as though 1/2 is a usable value.
4481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4482 fi
4483 ;;
4484 esac
4485
4486 fi
4487
4488 if test -n $lt_cv_sys_max_cmd_len ; then
4489 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4490 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4491 else
4492 { echo "$as_me:$LINENO: result: none" >&5
4493 echo "${ECHO_T}none" >&6; }
4494 fi
4495 max_cmd_len=$lt_cv_sys_max_cmd_len
4496
4497
4498
4499
4500
4501
4502 : ${CP="cp -f"}
4503 : ${MV="mv -f"}
4504 : ${RM="rm -f"}
4505
4506 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4507 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4508 # Try some XSI features
4509 xsi_shell=no
4510 ( _lt_dummy="a/b/c"
4511 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4512 = c,a/b,, \
4513 && eval 'test $(( 1 + 1 )) -eq 2 \
4514 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4515 && xsi_shell=yes
4516 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4517 echo "${ECHO_T}$xsi_shell" >&6; }
4518
4519
4520 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4521 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4522 lt_shell_append=no
4523 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4524 >/dev/null 2>&1 \
4525 && lt_shell_append=yes
4526 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4527 echo "${ECHO_T}$lt_shell_append" >&6; }
4528
4529
4530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4531 lt_unset=unset
4532 else
4533 lt_unset=false
4534 fi
4535
4536
4537
4538
4539
4540 # test EBCDIC or ASCII
4541 case `echo X|tr X '\101'` in
4542 A) # ASCII based system
4543 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4544 lt_SP2NL='tr \040 \012'
4545 lt_NL2SP='tr \015\012 \040\040'
4546 ;;
4547 *) # EBCDIC based system
4548 lt_SP2NL='tr \100 \n'
4549 lt_NL2SP='tr \r\n \100\100'
4550 ;;
4551 esac
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4562 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4563 if test "${lt_cv_ld_reload_flag+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566 lt_cv_ld_reload_flag='-r'
4567 fi
4568 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4569 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4570 reload_flag=$lt_cv_ld_reload_flag
4571 case $reload_flag in
4572 "" | " "*) ;;
4573 *) reload_flag=" $reload_flag" ;;
4574 esac
4575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4576 case $host_os in
4577 darwin*)
4578 if test "$GCC" = yes; then
4579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4580 else
4581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4582 fi
4583 ;;
4584 esac
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4596 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4597 if test "${lt_cv_deplibs_check_method+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 lt_cv_file_magic_cmd='$MAGIC_CMD'
4601 lt_cv_file_magic_test_file=
4602 lt_cv_deplibs_check_method='unknown'
4603 # Need to set the preceding variable on all platforms that support
4604 # interlibrary dependencies.
4605 # 'none' -- dependencies not supported.
4606 # `unknown' -- same as none, but documents that we really don't know.
4607 # 'pass_all' -- all dependencies passed with no checks.
4608 # 'test_compile' -- check by making test program.
4609 # 'file_magic [[regex]]' -- check by looking for files in library path
4610 # which responds to the $file_magic_cmd with a given extended regex.
4611 # If you have `file' or equivalent on your system and you're not sure
4612 # whether `pass_all' will *always* work, you probably want this one.
4613
4614 case $host_os in
4615 aix[4-9]*)
4616 lt_cv_deplibs_check_method=pass_all
4617 ;;
4618
4619 beos*)
4620 lt_cv_deplibs_check_method=pass_all
4621 ;;
4622
4623 bsdi[45]*)
4624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4625 lt_cv_file_magic_cmd='/usr/bin/file -L'
4626 lt_cv_file_magic_test_file=/shlib/libc.so
4627 ;;
4628
4629 cygwin*)
4630 # func_win32_libid is a shell function defined in ltmain.sh
4631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4632 lt_cv_file_magic_cmd='func_win32_libid'
4633 ;;
4634
4635 mingw* | pw32*)
4636 # Base MSYS/MinGW do not provide the 'file' command needed by
4637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4638 # unless we find 'file', for example because we are cross-compiling.
4639 if ( file / ) >/dev/null 2>&1; then
4640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4641 lt_cv_file_magic_cmd='func_win32_libid'
4642 else
4643 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4644 lt_cv_file_magic_cmd='$OBJDUMP -f'
4645 fi
4646 ;;
4647
4648 darwin* | rhapsody*)
4649 lt_cv_deplibs_check_method=pass_all
4650 ;;
4651
4652 freebsd* | dragonfly*)
4653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4654 case $host_cpu in
4655 i*86 )
4656 # Not sure whether the presence of OpenBSD here was a mistake.
4657 # Let's accept both of them until this is cleared up.
4658 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4659 lt_cv_file_magic_cmd=/usr/bin/file
4660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4661 ;;
4662 esac
4663 else
4664 lt_cv_deplibs_check_method=pass_all
4665 fi
4666 ;;
4667
4668 gnu*)
4669 lt_cv_deplibs_check_method=pass_all
4670 ;;
4671
4672 hpux10.20* | hpux11*)
4673 lt_cv_file_magic_cmd=/usr/bin/file
4674 case $host_cpu in
4675 ia64*)
4676 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4677 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4678 ;;
4679 hppa*64*)
4680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4681 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4682 ;;
4683 *)
4684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4685 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4686 ;;
4687 esac
4688 ;;
4689
4690 interix[3-9]*)
4691 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4693 ;;
4694
4695 irix5* | irix6* | nonstopux*)
4696 case $LD in
4697 *-32|*"-32 ") libmagic=32-bit;;
4698 *-n32|*"-n32 ") libmagic=N32;;
4699 *-64|*"-64 ") libmagic=64-bit;;
4700 *) libmagic=never-match;;
4701 esac
4702 lt_cv_deplibs_check_method=pass_all
4703 ;;
4704
4705 # This must be Linux ELF.
4706 linux* | k*bsd*-gnu)
4707 lt_cv_deplibs_check_method=pass_all
4708 ;;
4709
4710 netbsd* | netbsdelf*-gnu)
4711 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4713 else
4714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4715 fi
4716 ;;
4717
4718 newos6*)
4719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4720 lt_cv_file_magic_cmd=/usr/bin/file
4721 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4722 ;;
4723
4724 *nto* | *qnx*)
4725 lt_cv_deplibs_check_method=pass_all
4726 ;;
4727
4728 openbsd*)
4729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4731 else
4732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4733 fi
4734 ;;
4735
4736 osf3* | osf4* | osf5*)
4737 lt_cv_deplibs_check_method=pass_all
4738 ;;
4739
4740 rdos*)
4741 lt_cv_deplibs_check_method=pass_all
4742 ;;
4743
4744 solaris*)
4745 lt_cv_deplibs_check_method=pass_all
4746 ;;
4747
4748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4749 lt_cv_deplibs_check_method=pass_all
4750 ;;
4751
4752 sysv4 | sysv4.3*)
4753 case $host_vendor in
4754 motorola)
4755 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]'
4756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4757 ;;
4758 ncr)
4759 lt_cv_deplibs_check_method=pass_all
4760 ;;
4761 sequent)
4762 lt_cv_file_magic_cmd='/bin/file'
4763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4764 ;;
4765 sni)
4766 lt_cv_file_magic_cmd='/bin/file'
4767 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4768 lt_cv_file_magic_test_file=/lib/libc.so
4769 ;;
4770 siemens)
4771 lt_cv_deplibs_check_method=pass_all
4772 ;;
4773 pc)
4774 lt_cv_deplibs_check_method=pass_all
4775 ;;
4776 esac
4777 ;;
4778
4779 tpf*)
4780 lt_cv_deplibs_check_method=pass_all
4781 ;;
4782 esac
4783
4784 fi
4785 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4786 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4787 file_magic_cmd=$lt_cv_file_magic_cmd
4788 deplibs_check_method=$lt_cv_deplibs_check_method
4789 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}ar; ac_word=$2
4805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4807 if test "${ac_cv_prog_AR+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 if test -n "$AR"; then
4811 ac_cv_prog_AR="$AR" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_AR="${ac_tool_prefix}ar"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 AR=$ac_cv_prog_AR
4831 if test -n "$AR"; then
4832 { echo "$as_me:$LINENO: result: $AR" >&5
4833 echo "${ECHO_T}$AR" >&6; }
4834 else
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4837 fi
4838
4839
4840 fi
4841 if test -z "$ac_cv_prog_AR"; then
4842 ac_ct_AR=$AR
4843 # Extract the first word of "ar", so it can be a program name with args.
4844 set dummy ar; ac_word=$2
4845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4847 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 if test -n "$ac_ct_AR"; then
4851 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_ac_ct_AR="ar"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864 done
4865 done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4871 if test -n "$ac_ct_AR"; then
4872 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4873 echo "${ECHO_T}$ac_ct_AR" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4877 fi
4878
4879 if test "x$ac_ct_AR" = x; then
4880 AR="false"
4881 else
4882 case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4885 whose name does not start with the host triplet. If you think this
4886 configuration is useful to you, please write to [email protected]." >&5
4887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4888 whose name does not start with the host triplet. If you think this
4889 configuration is useful to you, please write to [email protected]." >&2;}
4890 ac_tool_warned=yes ;;
4891 esac
4892 AR=$ac_ct_AR
4893 fi
4894 else
4895 AR="$ac_cv_prog_AR"
4896 fi
4897
4898 test -z "$AR" && AR=ar
4899 test -z "$AR_FLAGS" && AR_FLAGS=cru
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}strip; ac_word=$2
4914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4916 if test "${ac_cv_prog_STRIP+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 if test -n "$STRIP"; then
4920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 STRIP=$ac_cv_prog_STRIP
4940 if test -n "$STRIP"; then
4941 { echo "$as_me:$LINENO: result: $STRIP" >&5
4942 echo "${ECHO_T}$STRIP" >&6; }
4943 else
4944 { echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$ac_cv_prog_STRIP"; then
4951 ac_ct_STRIP=$STRIP
4952 # Extract the first word of "strip", so it can be a program name with args.
4953 set dummy strip; ac_word=$2
4954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 if test -n "$ac_ct_STRIP"; then
4960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_ac_ct_STRIP="strip"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977 fi
4978 fi
4979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4980 if test -n "$ac_ct_STRIP"; then
4981 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4982 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4983 else
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4986 fi
4987
4988 if test "x$ac_ct_STRIP" = x; then
4989 STRIP=":"
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4994 whose name does not start with the host triplet. If you think this
4995 configuration is useful to you, please write to [email protected]." >&5
4996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4997 whose name does not start with the host triplet. If you think this
4998 configuration is useful to you, please write to [email protected]." >&2;}
4999 ac_tool_warned=yes ;;
5000 esac
5001 STRIP=$ac_ct_STRIP
5002 fi
5003 else
5004 STRIP="$ac_cv_prog_STRIP"
5005 fi
5006
5007 test -z "$STRIP" && STRIP=:
5008
5009
5010
5011
5012
5013
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_RANLIB+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 if test -n "$RANLIB"; then
5023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 RANLIB=$ac_cv_prog_RANLIB
5043 if test -n "$RANLIB"; then
5044 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5045 echo "${ECHO_T}$RANLIB" >&6; }
5046 else
5047 { echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6; }
5049 fi
5050
5051
5052 fi
5053 if test -z "$ac_cv_prog_RANLIB"; then
5054 ac_ct_RANLIB=$RANLIB
5055 # Extract the first word of "ranlib", so it can be a program name with args.
5056 set dummy ranlib; ac_word=$2
5057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 if test -n "$ac_ct_RANLIB"; then
5063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_ac_ct_RANLIB="ranlib"
5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5083 if test -n "$ac_ct_RANLIB"; then
5084 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5085 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5086 else
5087 { echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6; }
5089 fi
5090
5091 if test "x$ac_ct_RANLIB" = x; then
5092 RANLIB=":"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5097 whose name does not start with the host triplet. If you think this
5098 configuration is useful to you, please write to [email protected]." >&5
5099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5100 whose name does not start with the host triplet. If you think this
5101 configuration is useful to you, please write to [email protected]." >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104 RANLIB=$ac_ct_RANLIB
5105 fi
5106 else
5107 RANLIB="$ac_cv_prog_RANLIB"
5108 fi
5109
5110 test -z "$RANLIB" && RANLIB=:
5111
5112
5113
5114
5115
5116
5117 # Determine commands to create old-style static archives.
5118 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5119 old_postinstall_cmds='chmod 644 $oldlib'
5120 old_postuninstall_cmds=
5121
5122 if test -n "$RANLIB"; then
5123 case $host_os in
5124 openbsd*)
5125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5126 ;;
5127 *)
5128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5129 ;;
5130 esac
5131 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5132 fi
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167 # If no C compiler was specified, use CC.
5168 LTCC=${LTCC-"$CC"}
5169
5170 # If no C compiler flags were specified, use CFLAGS.
5171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5172
5173 # Allow CC to be a program name with arguments.
5174 compiler=$CC
5175
5176
5177 # Check for command to grab the raw symbol name followed by C symbol from nm.
5178 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5179 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5180 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183
5184 # These are sane defaults that work on at least a few old systems.
5185 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5186
5187 # Character class describing NM global symbol codes.
5188 symcode='[BCDEGRST]'
5189
5190 # Regexp to match symbols that can be accessed directly from C.
5191 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5192
5193 # Define system-specific variables.
5194 case $host_os in
5195 aix*)
5196 symcode='[BCDT]'
5197 ;;
5198 cygwin* | mingw* | pw32*)
5199 symcode='[ABCDGISTW]'
5200 ;;
5201 hpux*)
5202 if test "$host_cpu" = ia64; then
5203 symcode='[ABCDEGRST]'
5204 fi
5205 ;;
5206 irix* | nonstopux*)
5207 symcode='[BCDEGRST]'
5208 ;;
5209 osf*)
5210 symcode='[BCDEGQRST]'
5211 ;;
5212 solaris*)
5213 symcode='[BDRT]'
5214 ;;
5215 sco3.2v5*)
5216 symcode='[DT]'
5217 ;;
5218 sysv4.2uw2*)
5219 symcode='[DT]'
5220 ;;
5221 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5222 symcode='[ABDT]'
5223 ;;
5224 sysv4)
5225 symcode='[DFNSTU]'
5226 ;;
5227 esac
5228
5229 # If we're using GNU nm, then use its standard symbol codes.
5230 case `$NM -V 2>&1` in
5231 *GNU* | *'with BFD'*)
5232 symcode='[ABCDGIRSTW]' ;;
5233 esac
5234
5235 # Transform an extracted symbol line into a proper C declaration.
5236 # Some systems (esp. on ia64) link data and code symbols differently,
5237 # so use this general approach.
5238 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5239
5240 # Transform an extracted symbol line into symbol name and symbol address
5241 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5242 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'"
5243
5244 # Handle CRLF in mingw tool chain
5245 opt_cr=
5246 case $build_os in
5247 mingw*)
5248 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5249 ;;
5250 esac
5251
5252 # Try without a prefix underscore, then with it.
5253 for ac_symprfx in "" "_"; do
5254
5255 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5256 symxfrm="\\1 $ac_symprfx\\2 \\2"
5257
5258 # Write the raw and C identifiers.
5259 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5260 # Fake it for dumpbin and say T for any non-static function
5261 # and D for any global variable.
5262 # Also find C++ and __fastcall symbols from MSVC++,
5263 # which start with @ or ?.
5264 lt_cv_sys_global_symbol_pipe="$AWK '"\
5265 " {last_section=section; section=\$ 3};"\
5266 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5267 " \$ 0!~/External *\|/{next};"\
5268 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5269 " {if(hide[section]) next};"\
5270 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5271 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5272 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5273 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5274 " ' prfx=^$ac_symprfx"
5275 else
5276 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5277 fi
5278
5279 # Check to see that the pipe works correctly.
5280 pipe_works=no
5281
5282 rm -f conftest*
5283 cat > conftest.$ac_ext <<_LT_EOF
5284 #ifdef __cplusplus
5285 extern "C" {
5286 #endif
5287 char nm_test_var;
5288 void nm_test_func(void);
5289 void nm_test_func(void){}
5290 #ifdef __cplusplus
5291 }
5292 #endif
5293 int main(){nm_test_var='a';nm_test_func();return(0);}
5294 _LT_EOF
5295
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; then
5301 # Now try to grab the symbols.
5302 nlist=conftest.nm
5303 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5304 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && test -s "$nlist"; then
5308 # Try sorting and uniquifying the output.
5309 if sort "$nlist" | uniq > "$nlist"T; then
5310 mv -f "$nlist"T "$nlist"
5311 else
5312 rm -f "$nlist"T
5313 fi
5314
5315 # Make sure that we snagged all the symbols we need.
5316 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5317 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5318 cat <<_LT_EOF > conftest.$ac_ext
5319 #ifdef __cplusplus
5320 extern "C" {
5321 #endif
5322
5323 _LT_EOF
5324 # Now generate the symbol file.
5325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5326
5327 cat <<_LT_EOF >> conftest.$ac_ext
5328
5329 /* The mapping between symbol names and symbols. */
5330 const struct {
5331 const char *name;
5332 void *address;
5333 }
5334 lt__PROGRAM__LTX_preloaded_symbols[] =
5335 {
5336 { "@PROGRAM@", (void *) 0 },
5337 _LT_EOF
5338 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5339 cat <<\_LT_EOF >> conftest.$ac_ext
5340 {0, (void *) 0}
5341 };
5342
5343 /* This works around a problem in FreeBSD linker */
5344 #ifdef FREEBSD_WORKAROUND
5345 static const void *lt_preloaded_setup() {
5346 return lt__PROGRAM__LTX_preloaded_symbols;
5347 }
5348 #endif
5349
5350 #ifdef __cplusplus
5351 }
5352 #endif
5353 _LT_EOF
5354 # Now try linking the two files.
5355 mv conftest.$ac_objext conftstm.$ac_objext
5356 lt_save_LIBS="$LIBS"
5357 lt_save_CFLAGS="$CFLAGS"
5358 LIBS="conftstm.$ac_objext"
5359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5365 pipe_works=yes
5366 fi
5367 LIBS="$lt_save_LIBS"
5368 CFLAGS="$lt_save_CFLAGS"
5369 else
5370 echo "cannot find nm_test_func in $nlist" >&5
5371 fi
5372 else
5373 echo "cannot find nm_test_var in $nlist" >&5
5374 fi
5375 else
5376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5377 fi
5378 else
5379 echo "$progname: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 fi
5382 rm -rf conftest* conftst*
5383
5384 # Do not use the global_symbol_pipe unless it works.
5385 if test "$pipe_works" = yes; then
5386 break
5387 else
5388 lt_cv_sys_global_symbol_pipe=
5389 fi
5390 done
5391
5392 fi
5393
5394 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5395 lt_cv_sys_global_symbol_to_cdecl=
5396 fi
5397 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5398 { echo "$as_me:$LINENO: result: failed" >&5
5399 echo "${ECHO_T}failed" >&6; }
5400 else
5401 { echo "$as_me:$LINENO: result: ok" >&5
5402 echo "${ECHO_T}ok" >&6; }
5403 fi
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 # Check whether --enable-libtool-lock was given.
5428 if test "${enable_libtool_lock+set}" = set; then
5429 enableval=$enable_libtool_lock;
5430 fi
5431
5432 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5433
5434 # Some flags need to be propagated to the compiler or linker for good
5435 # libtool support.
5436 case $host in
5437 ia64-*-hpux*)
5438 # Find out which ABI we are using.
5439 echo 'int i;' > conftest.$ac_ext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; then
5445 case `/usr/bin/file conftest.$ac_objext` in
5446 *ELF-32*)
5447 HPUX_IA64_MODE="32"
5448 ;;
5449 *ELF-64*)
5450 HPUX_IA64_MODE="64"
5451 ;;
5452 esac
5453 fi
5454 rm -rf conftest*
5455 ;;
5456 *-*-irix6*)
5457 # Find out which ABI we are using.
5458 echo '#line 5458 "configure"' > conftest.$ac_ext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>&5
5461 ac_status=$?
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; then
5464 if test "$lt_cv_prog_gnu_ld" = yes; then
5465 case `/usr/bin/file conftest.$ac_objext` in
5466 *32-bit*)
5467 LD="${LD-ld} -melf32bsmip"
5468 ;;
5469 *N32*)
5470 LD="${LD-ld} -melf32bmipn32"
5471 ;;
5472 *64-bit*)
5473 LD="${LD-ld} -melf64bmip"
5474 ;;
5475 esac
5476 else
5477 case `/usr/bin/file conftest.$ac_objext` in
5478 *32-bit*)
5479 LD="${LD-ld} -32"
5480 ;;
5481 *N32*)
5482 LD="${LD-ld} -n32"
5483 ;;
5484 *64-bit*)
5485 LD="${LD-ld} -64"
5486 ;;
5487 esac
5488 fi
5489 fi
5490 rm -rf conftest*
5491 ;;
5492
5493 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5494 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5495 # Find out which ABI we are using.
5496 echo 'int i;' > conftest.$ac_ext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; then
5502 case `/usr/bin/file conftest.o` in
5503 *32-bit*)
5504 case $host in
5505 x86_64-*kfreebsd*-gnu)
5506 LD="${LD-ld} -m elf_i386_fbsd"
5507 ;;
5508 x86_64-*linux*)
5509 LD="${LD-ld} -m elf_i386"
5510 ;;
5511 ppc64-*linux*|powerpc64-*linux*)
5512 LD="${LD-ld} -m elf32ppclinux"
5513 ;;
5514 s390x-*linux*)
5515 LD="${LD-ld} -m elf_s390"
5516 ;;
5517 sparc64-*linux*)
5518 LD="${LD-ld} -m elf32_sparc"
5519 ;;
5520 esac
5521 ;;
5522 *64-bit*)
5523 case $host in
5524 x86_64-*kfreebsd*-gnu)
5525 LD="${LD-ld} -m elf_x86_64_fbsd"
5526 ;;
5527 x86_64-*linux*)
5528 LD="${LD-ld} -m elf_x86_64"
5529 ;;
5530 ppc*-*linux*|powerpc*-*linux*)
5531 LD="${LD-ld} -m elf64ppc"
5532 ;;
5533 s390*-*linux*|s390*-*tpf*)
5534 LD="${LD-ld} -m elf64_s390"
5535 ;;
5536 sparc*-*linux*)
5537 LD="${LD-ld} -m elf64_sparc"
5538 ;;
5539 esac
5540 ;;
5541 esac
5542 fi
5543 rm -rf conftest*
5544 ;;
5545
5546 *-*-sco3.2v5*)
5547 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5548 SAVE_CFLAGS="$CFLAGS"
5549 CFLAGS="$CFLAGS -belf"
5550 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5552 if test "${lt_cv_cc_needs_belf+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567
5568 int
5569 main ()
5570 {
5571
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (ac_try="$ac_link"
5578 case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_link") 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && {
5590 test -z "$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5592 } && test -s conftest$ac_exeext &&
5593 $as_test_x conftest$ac_exeext; then
5594 lt_cv_cc_needs_belf=yes
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599 lt_cv_cc_needs_belf=no
5600 fi
5601
5602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5603 conftest$ac_exeext conftest.$ac_ext
5604 ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610 fi
5611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5615 CFLAGS="$SAVE_CFLAGS"
5616 fi
5617 ;;
5618 sparc*-*solaris*)
5619 # Find out which ABI we are using.
5620 echo 'int i;' > conftest.$ac_ext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; then
5626 case `/usr/bin/file conftest.o` in
5627 *64-bit*)
5628 case $lt_cv_prog_gnu_ld in
5629 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5630 *)
5631 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5632 LD="${LD-ld} -64"
5633 fi
5634 ;;
5635 esac
5636 ;;
5637 esac
5638 fi
5639 rm -rf conftest*
5640 ;;
5641 esac
5642
5643 need_locks="$enable_libtool_lock"
5644
5645
5646 case $host_os in
5647 rhapsody* | darwin*)
5648 if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5650 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5653 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 if test -n "$DSYMUTIL"; then
5657 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5677 if test -n "$DSYMUTIL"; then
5678 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5679 echo "${ECHO_T}$DSYMUTIL" >&6; }
5680 else
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5683 fi
5684
5685
5686 fi
5687 if test -z "$ac_cv_prog_DSYMUTIL"; then
5688 ac_ct_DSYMUTIL=$DSYMUTIL
5689 # Extract the first word of "dsymutil", so it can be a program name with args.
5690 set dummy dsymutil; ac_word=$2
5691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 if test -n "$ac_ct_DSYMUTIL"; then
5697 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 fi
5715 fi
5716 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5717 if test -n "$ac_ct_DSYMUTIL"; then
5718 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5719 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5720 else
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723 fi
5724
5725 if test "x$ac_ct_DSYMUTIL" = x; then
5726 DSYMUTIL=":"
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729 yes:)
5730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to [email protected]." >&5
5733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5734 whose name does not start with the host triplet. If you think this
5735 configuration is useful to you, please write to [email protected]." >&2;}
5736 ac_tool_warned=yes ;;
5737 esac
5738 DSYMUTIL=$ac_ct_DSYMUTIL
5739 fi
5740 else
5741 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5742 fi
5743
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 if test -n "$NMEDIT"; then
5753 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 NMEDIT=$ac_cv_prog_NMEDIT
5773 if test -n "$NMEDIT"; then
5774 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5775 echo "${ECHO_T}$NMEDIT" >&6; }
5776 else
5777 { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_NMEDIT"; then
5784 ac_ct_NMEDIT=$NMEDIT
5785 # Extract the first word of "nmedit", so it can be a program name with args.
5786 set dummy nmedit; ac_word=$2
5787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 if test -n "$ac_ct_NMEDIT"; then
5793 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5813 if test -n "$ac_ct_NMEDIT"; then
5814 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5815 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5816 else
5817 { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5819 fi
5820
5821 if test "x$ac_ct_NMEDIT" = x; then
5822 NMEDIT=":"
5823 else
5824 case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5827 whose name does not start with the host triplet. If you think this
5828 configuration is useful to you, please write to [email protected]." >&5
5829 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5830 whose name does not start with the host triplet. If you think this
5831 configuration is useful to you, please write to [email protected]." >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834 NMEDIT=$ac_ct_NMEDIT
5835 fi
5836 else
5837 NMEDIT="$ac_cv_prog_NMEDIT"
5838 fi
5839
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_prog_LIPO+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 if test -n "$LIPO"; then
5849 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 LIPO=$ac_cv_prog_LIPO
5869 if test -n "$LIPO"; then
5870 { echo "$as_me:$LINENO: result: $LIPO" >&5
5871 echo "${ECHO_T}$LIPO" >&6; }
5872 else
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5875 fi
5876
5877
5878 fi
5879 if test -z "$ac_cv_prog_LIPO"; then
5880 ac_ct_LIPO=$LIPO
5881 # Extract the first word of "lipo", so it can be a program name with args.
5882 set dummy lipo; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888 if test -n "$ac_ct_LIPO"; then
5889 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_LIPO="lipo"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5909 if test -n "$ac_ct_LIPO"; then
5910 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5911 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5912 else
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5915 fi
5916
5917 if test "x$ac_ct_LIPO" = x; then
5918 LIPO=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5923 whose name does not start with the host triplet. If you think this
5924 configuration is useful to you, please write to [email protected]." >&5
5925 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5926 whose name does not start with the host triplet. If you think this
5927 configuration is useful to you, please write to [email protected]." >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930 LIPO=$ac_ct_LIPO
5931 fi
5932 else
5933 LIPO="$ac_cv_prog_LIPO"
5934 fi
5935
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}otool; ac_word=$2
5939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5941 if test "${ac_cv_prog_OTOOL+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 if test -n "$OTOOL"; then
5945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 OTOOL=$ac_cv_prog_OTOOL
5965 if test -n "$OTOOL"; then
5966 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5967 echo "${ECHO_T}$OTOOL" >&6; }
5968 else
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5971 fi
5972
5973
5974 fi
5975 if test -z "$ac_cv_prog_OTOOL"; then
5976 ac_ct_OTOOL=$OTOOL
5977 # Extract the first word of "otool", so it can be a program name with args.
5978 set dummy otool; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$ac_ct_OTOOL"; then
5985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_OTOOL="otool"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6005 if test -n "$ac_ct_OTOOL"; then
6006 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6007 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6008 else
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6011 fi
6012
6013 if test "x$ac_ct_OTOOL" = x; then
6014 OTOOL=":"
6015 else
6016 case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6019 whose name does not start with the host triplet. If you think this
6020 configuration is useful to you, please write to [email protected]." >&5
6021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6022 whose name does not start with the host triplet. If you think this
6023 configuration is useful to you, please write to [email protected]." >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 OTOOL=$ac_ct_OTOOL
6027 fi
6028 else
6029 OTOOL="$ac_cv_prog_OTOOL"
6030 fi
6031
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 if test -n "$OTOOL64"; then
6041 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 OTOOL64=$ac_cv_prog_OTOOL64
6061 if test -n "$OTOOL64"; then
6062 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6063 echo "${ECHO_T}$OTOOL64" >&6; }
6064 else
6065 { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6067 fi
6068
6069
6070 fi
6071 if test -z "$ac_cv_prog_OTOOL64"; then
6072 ac_ct_OTOOL64=$OTOOL64
6073 # Extract the first word of "otool64", so it can be a program name with args.
6074 set dummy otool64; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 if test -n "$ac_ct_OTOOL64"; then
6081 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_OTOOL64="otool64"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6101 if test -n "$ac_ct_OTOOL64"; then
6102 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6103 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6104 else
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107 fi
6108
6109 if test "x$ac_ct_OTOOL64" = x; then
6110 OTOOL64=":"
6111 else
6112 case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115 whose name does not start with the host triplet. If you think this
6116 configuration is useful to you, please write to [email protected]." >&5
6117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet. If you think this
6119 configuration is useful to you, please write to [email protected]." >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122 OTOOL64=$ac_ct_OTOOL64
6123 fi
6124 else
6125 OTOOL64="$ac_cv_prog_OTOOL64"
6126 fi
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6155 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6156 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 lt_cv_apple_cc_single_mod=no
6160 if test -z "${LT_MULTI_MODULE}"; then
6161 # By default we will add the -single_module flag. You can override
6162 # by either setting the environment variable LT_MULTI_MODULE
6163 # non-empty at configure time, or by adding -multi_module to the
6164 # link flags.
6165 rm -rf libconftest.dylib*
6166 echo "int foo(void){return 1;}" > conftest.c
6167 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6168 -dynamiclib -Wl,-single_module conftest.c" >&5
6169 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6170 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6171 _lt_result=$?
6172 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6173 lt_cv_apple_cc_single_mod=yes
6174 else
6175 cat conftest.err >&5
6176 fi
6177 rm -rf libconftest.dylib*
6178 rm -f conftest.*
6179 fi
6180 fi
6181 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6182 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6183 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6184 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6185 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 lt_cv_ld_exported_symbols_list=no
6189 save_LDFLAGS=$LDFLAGS
6190 echo "_main" > conftest.sym
6191 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198
6199 int
6200 main ()
6201 {
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (ac_try="$ac_link"
6209 case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest$ac_exeext &&
6224 $as_test_x conftest$ac_exeext; then
6225 lt_cv_ld_exported_symbols_list=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 lt_cv_ld_exported_symbols_list=no
6231 fi
6232
6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234 conftest$ac_exeext conftest.$ac_ext
6235 LDFLAGS="$save_LDFLAGS"
6236
6237 fi
6238 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6239 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6240 case $host_os in
6241 rhapsody* | darwin1.[012])
6242 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6243 darwin1.*)
6244 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6245 darwin*) # darwin 5.x on
6246 # if running on 10.5 or later, the deployment target defaults
6247 # to the OS version, if on x86, and 10.4, the deployment
6248 # target defaults to 10.4. Don't you love it?
6249 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6250 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6251 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6252 10.[012]*)
6253 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6254 10.*)
6255 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6256 esac
6257 ;;
6258 esac
6259 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6260 _lt_dar_single_mod='$single_module'
6261 fi
6262 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6263 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6264 else
6265 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6266 fi
6267 if test "$DSYMUTIL" != ":"; then
6268 _lt_dsymutil='~$DSYMUTIL $lib || :'
6269 else
6270 _lt_dsymutil=
6271 fi
6272 ;;
6273 esac
6274
6275 ac_ext=c
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6281 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6282 # On Suns, sometimes $CPP names a directory.
6283 if test -n "$CPP" && test -d "$CPP"; then
6284 CPP=
6285 fi
6286 if test -z "$CPP"; then
6287 if test "${ac_cv_prog_CPP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 # Double quotes because CPP needs to be expanded
6291 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6292 do
6293 ac_preproc_ok=false
6294 for ac_c_preproc_warn_flag in '' yes
6295 do
6296 # Use a header file that comes with gcc, so configuring glibc
6297 # with a fresh cross-compiler works.
6298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6299 # <limits.h> exists even on freestanding compilers.
6300 # On the NeXT, cc -E runs the code through the compiler's parser,
6301 # not just through cpp. "Syntax error" is here to catch this case.
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #ifdef __STDC__
6309 # include <limits.h>
6310 #else
6311 # include <assert.h>
6312 #endif
6313 Syntax error
6314 _ACEOF
6315 if { (ac_try="$ac_cpp conftest.$ac_ext"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev/null && {
6328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 }; then
6331 :
6332 else
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 # Broken: fails on valid input.
6337 continue
6338 fi
6339
6340 rm -f conftest.err conftest.$ac_ext
6341
6342 # OK, works on sane cases. Now check whether nonexistent headers
6343 # can be detected and how.
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #include <ac_nonexistent.h>
6351 _ACEOF
6352 if { (ac_try="$ac_cpp conftest.$ac_ext"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } >/dev/null && {
6365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 }; then
6368 # Broken: success on invalid input.
6369 continue
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 # Passes both tests.
6375 ac_preproc_ok=:
6376 break
6377 fi
6378
6379 rm -f conftest.err conftest.$ac_ext
6380
6381 done
6382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6383 rm -f conftest.err conftest.$ac_ext
6384 if $ac_preproc_ok; then
6385 break
6386 fi
6387
6388 done
6389 ac_cv_prog_CPP=$CPP
6390
6391 fi
6392 CPP=$ac_cv_prog_CPP
6393 else
6394 ac_cv_prog_CPP=$CPP
6395 fi
6396 { echo "$as_me:$LINENO: result: $CPP" >&5
6397 echo "${ECHO_T}$CPP" >&6; }
6398 ac_preproc_ok=false
6399 for ac_c_preproc_warn_flag in '' yes
6400 do
6401 # Use a header file that comes with gcc, so configuring glibc
6402 # with a fresh cross-compiler works.
6403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6404 # <limits.h> exists even on freestanding compilers.
6405 # On the NeXT, cc -E runs the code through the compiler's parser,
6406 # not just through cpp. "Syntax error" is here to catch this case.
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #ifdef __STDC__
6414 # include <limits.h>
6415 #else
6416 # include <assert.h>
6417 #endif
6418 Syntax error
6419 _ACEOF
6420 if { (ac_try="$ac_cpp conftest.$ac_ext"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } >/dev/null && {
6433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 }; then
6436 :
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 # Broken: fails on valid input.
6442 continue
6443 fi
6444
6445 rm -f conftest.err conftest.$ac_ext
6446
6447 # OK, works on sane cases. Now check whether nonexistent headers
6448 # can be detected and how.
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <ac_nonexistent.h>
6456 _ACEOF
6457 if { (ac_try="$ac_cpp conftest.$ac_ext"
6458 case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461 esac
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } >/dev/null && {
6470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 }; then
6473 # Broken: success on invalid input.
6474 continue
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 # Passes both tests.
6480 ac_preproc_ok=:
6481 break
6482 fi
6483
6484 rm -f conftest.err conftest.$ac_ext
6485
6486 done
6487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6488 rm -f conftest.err conftest.$ac_ext
6489 if $ac_preproc_ok; then
6490 :
6491 else
6492 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6493 See \`config.log' for more details." >&5
6494 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6495 See \`config.log' for more details." >&2;}
6496 { (exit 1); exit 1; }; }
6497 fi
6498
6499 ac_ext=c
6500 ac_cpp='$CPP $CPPFLAGS'
6501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504
6505
6506 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6507 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6508 if test "${ac_cv_header_stdc+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <stdlib.h>
6518 #include <stdarg.h>
6519 #include <string.h>
6520 #include <float.h>
6521
6522 int
6523 main ()
6524 {
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_stdc=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_header_stdc=no
6553 fi
6554
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557 if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <string.h>
6566
6567 _ACEOF
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then
6570 :
6571 else
6572 ac_cv_header_stdc=no
6573 fi
6574 rm -f conftest*
6575
6576 fi
6577
6578 if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <stdlib.h>
6587
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6591 :
6592 else
6593 ac_cv_header_stdc=no
6594 fi
6595 rm -f conftest*
6596
6597 fi
6598
6599 if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6602 :
6603 else
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <ctype.h>
6611 #include <stdlib.h>
6612 #if ((' ' & 0x0FF) == 0x020)
6613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615 #else
6616 # define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621 #endif
6622
6623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6624 int
6625 main ()
6626 {
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest$ac_exeext
6636 if { (ac_try="$ac_link"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_link") 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 :
6656 else
6657 echo "$as_me: program exited with status $ac_status" >&5
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ( exit $ac_status )
6662 ac_cv_header_stdc=no
6663 fi
6664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6665 fi
6666
6667
6668 fi
6669 fi
6670 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6671 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6672 if test $ac_cv_header_stdc = yes; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define STDC_HEADERS 1
6676 _ACEOF
6677
6678 fi
6679
6680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6691 inttypes.h stdint.h unistd.h
6692 do
6693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6706
6707 #include <$ac_header>
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (ac_try="$ac_compile"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_compile") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest.$ac_objext; then
6726 eval "$as_ac_Header=yes"
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 eval "$as_ac_Header=no"
6732 fi
6733
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 fi
6736 ac_res=`eval echo '${'$as_ac_Header'}'`
6737 { echo "$as_me:$LINENO: result: $ac_res" >&5
6738 echo "${ECHO_T}$ac_res" >&6; }
6739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 _ACEOF
6743
6744 fi
6745
6746 done
6747
6748
6749
6750 for ac_header in dlfcn.h
6751 do
6752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 $ac_includes_default
6765
6766 #include <$ac_header>
6767 _ACEOF
6768 rm -f conftest.$ac_objext
6769 if { (ac_try="$ac_compile"
6770 case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773 esac
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_compile") 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } && {
6782 test -z "$ac_c_werror_flag" ||
6783 test ! -s conftest.err
6784 } && test -s conftest.$ac_objext; then
6785 eval "$as_ac_Header=yes"
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 eval "$as_ac_Header=no"
6791 fi
6792
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 ac_res=`eval echo '${'$as_ac_Header'}'`
6796 { echo "$as_me:$LINENO: result: $ac_res" >&5
6797 echo "${ECHO_T}$ac_res" >&6; }
6798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6799 cat >>confdefs.h <<_ACEOF
6800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6801 _ACEOF
6802
6803 fi
6804
6805 done
6806
6807
6808
6809 # Set options
6810
6811
6812
6813 enable_dlopen=no
6814
6815
6816 enable_win32_dll=no
6817
6818
6819 # Check whether --enable-shared was given.
6820 if test "${enable_shared+set}" = set; then
6821 enableval=$enable_shared; p=${PACKAGE-default}
6822 case $enableval in
6823 yes) enable_shared=yes ;;
6824 no) enable_shared=no ;;
6825 *)
6826 enable_shared=no
6827 # Look at the argument we got. We use all the common list separators.
6828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6829 for pkg in $enableval; do
6830 IFS="$lt_save_ifs"
6831 if test "X$pkg" = "X$p"; then
6832 enable_shared=yes
6833 fi
6834 done
6835 IFS="$lt_save_ifs"
6836 ;;
6837 esac
6838 else
6839 enable_shared=yes
6840 fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850 # Check whether --enable-static was given.
6851 if test "${enable_static+set}" = set; then
6852 enableval=$enable_static; p=${PACKAGE-default}
6853 case $enableval in
6854 yes) enable_static=yes ;;
6855 no) enable_static=no ;;
6856 *)
6857 enable_static=no
6858 # Look at the argument we got. We use all the common list separators.
6859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6860 for pkg in $enableval; do
6861 IFS="$lt_save_ifs"
6862 if test "X$pkg" = "X$p"; then
6863 enable_static=yes
6864 fi
6865 done
6866 IFS="$lt_save_ifs"
6867 ;;
6868 esac
6869 else
6870 enable_static=yes
6871 fi
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882 # Check whether --with-pic was given.
6883 if test "${with_pic+set}" = set; then
6884 withval=$with_pic; pic_mode="$withval"
6885 else
6886 pic_mode=default
6887 fi
6888
6889
6890 test -z "$pic_mode" && pic_mode=default
6891
6892
6893
6894
6895
6896
6897
6898 # Check whether --enable-fast-install was given.
6899 if test "${enable_fast_install+set}" = set; then
6900 enableval=$enable_fast_install; p=${PACKAGE-default}
6901 case $enableval in
6902 yes) enable_fast_install=yes ;;
6903 no) enable_fast_install=no ;;
6904 *)
6905 enable_fast_install=no
6906 # Look at the argument we got. We use all the common list separators.
6907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6908 for pkg in $enableval; do
6909 IFS="$lt_save_ifs"
6910 if test "X$pkg" = "X$p"; then
6911 enable_fast_install=yes
6912 fi
6913 done
6914 IFS="$lt_save_ifs"
6915 ;;
6916 esac
6917 else
6918 enable_fast_install=yes
6919 fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 # This can be used to rebuild libtool when needed
6932 LIBTOOL_DEPS="$ltmain"
6933
6934 # Always use our own libtool.
6935 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 test -z "$LN_S" && LN_S="ln -s"
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 if test -n "${ZSH_VERSION+set}" ; then
6977 setopt NO_GLOB_SUBST
6978 fi
6979
6980 { echo "$as_me:$LINENO: checking for objdir" >&5
6981 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6982 if test "${lt_cv_objdir+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 rm -f .libs 2>/dev/null
6986 mkdir .libs 2>/dev/null
6987 if test -d .libs; then
6988 lt_cv_objdir=.libs
6989 else
6990 # MS-DOS does not allow filenames that begin with a dot.
6991 lt_cv_objdir=_libs
6992 fi
6993 rmdir .libs 2>/dev/null
6994 fi
6995 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6996 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6997 objdir=$lt_cv_objdir
6998
6999
7000
7001
7002
7003 cat >>confdefs.h <<_ACEOF
7004 #define LT_OBJDIR "$lt_cv_objdir/"
7005 _ACEOF
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 case $host_os in
7024 aix3*)
7025 # AIX sometimes has problems with the GCC collect2 program. For some
7026 # reason, if we set the COLLECT_NAMES environment variable, the problems
7027 # vanish in a puff of smoke.
7028 if test "X${COLLECT_NAMES+set}" != Xset; then
7029 COLLECT_NAMES=
7030 export COLLECT_NAMES
7031 fi
7032 ;;
7033 esac
7034
7035 # Sed substitution that helps us do robust quoting. It backslashifies
7036 # metacharacters that are still active within double-quoted strings.
7037 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7038
7039 # Same as above, but do not quote variable references.
7040 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7041
7042 # Sed substitution to delay expansion of an escaped shell variable in a
7043 # double_quote_subst'ed string.
7044 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7045
7046 # Sed substitution to delay expansion of an escaped single quote.
7047 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7048
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7051
7052 # Global variables:
7053 ofile=libtool
7054 can_build_shared=yes
7055
7056 # All known linkers require a `.a' archive for static linking (except MSVC,
7057 # which needs '.lib').
7058 libext=a
7059
7060 with_gnu_ld="$lt_cv_prog_gnu_ld"
7061
7062 old_CC="$CC"
7063 old_CFLAGS="$CFLAGS"
7064
7065 # Set sane defaults for various variables
7066 test -z "$CC" && CC=cc
7067 test -z "$LTCC" && LTCC=$CC
7068 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7069 test -z "$LD" && LD=ld
7070 test -z "$ac_objext" && ac_objext=o
7071
7072 for cc_temp in $compiler""; do
7073 case $cc_temp in
7074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7076 \-*) ;;
7077 *) break;;
7078 esac
7079 done
7080 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7081
7082
7083 # Only perform the check for file, if the check method requires it
7084 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7085 case $deplibs_check_method in
7086 file_magic*)
7087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7088 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7089 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7090 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 case $MAGIC_CMD in
7094 [\\/*] | ?:[\\/]*)
7095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096 ;;
7097 *)
7098 lt_save_MAGIC_CMD="$MAGIC_CMD"
7099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101 for ac_dir in $ac_dummy; do
7102 IFS="$lt_save_ifs"
7103 test -z "$ac_dir" && ac_dir=.
7104 if test -f $ac_dir/${ac_tool_prefix}file; then
7105 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7106 if test -n "$file_magic_test_file"; then
7107 case $deplibs_check_method in
7108 "file_magic "*)
7109 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112 $EGREP "$file_magic_regex" > /dev/null; then
7113 :
7114 else
7115 cat <<_LT_EOF 1>&2
7116
7117 *** Warning: the command libtool uses to detect shared libraries,
7118 *** $file_magic_cmd, produces output that libtool cannot recognize.
7119 *** The result is that libtool may fail to recognize shared libraries
7120 *** as such. This will affect the creation of libtool libraries that
7121 *** depend on shared libraries, but programs linked with such libtool
7122 *** libraries will work regardless of this problem. Nevertheless, you
7123 *** may want to report the problem to your system manager and/or to
7124 *** [email protected]
7125
7126 _LT_EOF
7127 fi ;;
7128 esac
7129 fi
7130 break
7131 fi
7132 done
7133 IFS="$lt_save_ifs"
7134 MAGIC_CMD="$lt_save_MAGIC_CMD"
7135 ;;
7136 esac
7137 fi
7138
7139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140 if test -n "$MAGIC_CMD"; then
7141 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7143 else
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7146 fi
7147
7148
7149
7150
7151
7152 if test -z "$lt_cv_path_MAGIC_CMD"; then
7153 if test -n "$ac_tool_prefix"; then
7154 { echo "$as_me:$LINENO: checking for file" >&5
7155 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 case $MAGIC_CMD in
7160 [\\/*] | ?:[\\/]*)
7161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 lt_save_MAGIC_CMD="$MAGIC_CMD"
7165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7167 for ac_dir in $ac_dummy; do
7168 IFS="$lt_save_ifs"
7169 test -z "$ac_dir" && ac_dir=.
7170 if test -f $ac_dir/file; then
7171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7172 if test -n "$file_magic_test_file"; then
7173 case $deplibs_check_method in
7174 "file_magic "*)
7175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7178 $EGREP "$file_magic_regex" > /dev/null; then
7179 :
7180 else
7181 cat <<_LT_EOF 1>&2
7182
7183 *** Warning: the command libtool uses to detect shared libraries,
7184 *** $file_magic_cmd, produces output that libtool cannot recognize.
7185 *** The result is that libtool may fail to recognize shared libraries
7186 *** as such. This will affect the creation of libtool libraries that
7187 *** depend on shared libraries, but programs linked with such libtool
7188 *** libraries will work regardless of this problem. Nevertheless, you
7189 *** may want to report the problem to your system manager and/or to
7190 *** [email protected]
7191
7192 _LT_EOF
7193 fi ;;
7194 esac
7195 fi
7196 break
7197 fi
7198 done
7199 IFS="$lt_save_ifs"
7200 MAGIC_CMD="$lt_save_MAGIC_CMD"
7201 ;;
7202 esac
7203 fi
7204
7205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7206 if test -n "$MAGIC_CMD"; then
7207 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7208 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7209 else
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7212 fi
7213
7214
7215 else
7216 MAGIC_CMD=:
7217 fi
7218 fi
7219
7220 fi
7221 ;;
7222 esac
7223
7224 # Use C for the default configuration in the libtool script
7225
7226 lt_save_CC="$CC"
7227 ac_ext=c
7228 ac_cpp='$CPP $CPPFLAGS'
7229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7232
7233
7234 # Source file extension for C test sources.
7235 ac_ext=c
7236
7237 # Object file extension for compiled C test sources.
7238 objext=o
7239 objext=$objext
7240
7241 # Code to be used in simple compile tests
7242 lt_simple_compile_test_code="int some_variable = 0;"
7243
7244 # Code to be used in simple link tests
7245 lt_simple_link_test_code='int main(){return(0);}'
7246
7247
7248
7249
7250
7251
7252
7253 # If no C compiler was specified, use CC.
7254 LTCC=${LTCC-"$CC"}
7255
7256 # If no C compiler flags were specified, use CFLAGS.
7257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7258
7259 # Allow CC to be a program name with arguments.
7260 compiler=$CC
7261
7262 # Save the default compiler, since it gets overwritten when the other
7263 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7264 compiler_DEFAULT=$CC
7265
7266 # save warnings/boilerplate of simple test code
7267 ac_outfile=conftest.$ac_objext
7268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7270 _lt_compiler_boilerplate=`cat conftest.err`
7271 $RM conftest*
7272
7273 ac_outfile=conftest.$ac_objext
7274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7276 _lt_linker_boilerplate=`cat conftest.err`
7277 $RM -r conftest*
7278
7279
7280 if test -n "$compiler"; then
7281
7282 lt_prog_compiler_no_builtin_flag=
7283
7284 if test "$GCC" = yes; then
7285 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7286
7287 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7288 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7289 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 lt_cv_prog_compiler_rtti_exceptions=no
7293 ac_outfile=conftest.$ac_objext
7294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7295 lt_compiler_flag="-fno-rtti -fno-exceptions"
7296 # Insert the option either (1) after the last *FLAGS variable, or
7297 # (2) before a word containing "conftest.", or (3) at the end.
7298 # Note that $ac_compile itself does not contain backslashes and begins
7299 # with a dollar sign (not a hyphen), so the echo should work correctly.
7300 # The option is referenced via a variable to avoid confusing sed.
7301 lt_compile=`echo "$ac_compile" | $SED \
7302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7304 -e 's:$: $lt_compiler_flag:'`
7305 (eval echo "\"\$as_me:7305: $lt_compile\"" >&5)
7306 (eval "$lt_compile" 2>conftest.err)
7307 ac_status=$?
7308 cat conftest.err >&5
7309 echo "$as_me:7309: \$? = $ac_status" >&5
7310 if (exit $ac_status) && test -s "$ac_outfile"; then
7311 # The compiler can only warn and ignore the option if not recognized
7312 # So say no if there are warnings other than the usual output.
7313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7316 lt_cv_prog_compiler_rtti_exceptions=yes
7317 fi
7318 fi
7319 $RM conftest*
7320
7321 fi
7322 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7323 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7324
7325 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7326 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7327 else
7328 :
7329 fi
7330
7331 fi
7332
7333
7334
7335
7336
7337
7338 lt_prog_compiler_wl=
7339 lt_prog_compiler_pic=
7340 lt_prog_compiler_static=
7341
7342 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7344
7345 if test "$GCC" = yes; then
7346 lt_prog_compiler_wl='-Wl,'
7347 lt_prog_compiler_static='-static'
7348
7349 case $host_os in
7350 aix*)
7351 # All AIX code is PIC.
7352 if test "$host_cpu" = ia64; then
7353 # AIX 5 now supports IA64 processor
7354 lt_prog_compiler_static='-Bstatic'
7355 fi
7356 ;;
7357
7358 amigaos*)
7359 case $host_cpu in
7360 powerpc)
7361 # see comment about AmigaOS4 .so support
7362 lt_prog_compiler_pic='-fPIC'
7363 ;;
7364 m68k)
7365 # FIXME: we need at least 68020 code to build shared libraries, but
7366 # adding the `-m68020' flag to GCC prevents building anything better,
7367 # like `-m68040'.
7368 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7369 ;;
7370 esac
7371 ;;
7372
7373 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7374 # PIC is the default for these OSes.
7375 ;;
7376
7377 mingw* | cygwin* | pw32* | os2*)
7378 # This hack is so that the source file can tell whether it is being
7379 # built for inclusion in a dll (and should export symbols for example).
7380 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7381 # (--disable-auto-import) libraries
7382 lt_prog_compiler_pic='-DDLL_EXPORT'
7383 ;;
7384
7385 darwin* | rhapsody*)
7386 # PIC is the default on this platform
7387 # Common symbols not allowed in MH_DYLIB files
7388 lt_prog_compiler_pic='-fno-common'
7389 ;;
7390
7391 hpux*)
7392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7393 # not for PA HP-UX.
7394 case $host_cpu in
7395 hppa*64*|ia64*)
7396 # +Z the default
7397 ;;
7398 *)
7399 lt_prog_compiler_pic='-fPIC'
7400 ;;
7401 esac
7402 ;;
7403
7404 interix[3-9]*)
7405 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7406 # Instead, we relocate shared libraries at runtime.
7407 ;;
7408
7409 msdosdjgpp*)
7410 # Just because we use GCC doesn't mean we suddenly get shared libraries
7411 # on systems that don't support them.
7412 lt_prog_compiler_can_build_shared=no
7413 enable_shared=no
7414 ;;
7415
7416 *nto* | *qnx*)
7417 # QNX uses GNU C++, but need to define -shared option too, otherwise
7418 # it will coredump.
7419 lt_prog_compiler_pic='-fPIC -shared'
7420 ;;
7421
7422 sysv4*MP*)
7423 if test -d /usr/nec; then
7424 lt_prog_compiler_pic=-Kconform_pic
7425 fi
7426 ;;
7427
7428 *)
7429 lt_prog_compiler_pic='-fPIC'
7430 ;;
7431 esac
7432 else
7433 # PORTME Check for flag to pass linker flags through the system compiler.
7434 case $host_os in
7435 aix*)
7436 lt_prog_compiler_wl='-Wl,'
7437 if test "$host_cpu" = ia64; then
7438 # AIX 5 now supports IA64 processor
7439 lt_prog_compiler_static='-Bstatic'
7440 else
7441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7442 fi
7443 ;;
7444
7445 mingw* | cygwin* | pw32* | os2*)
7446 # This hack is so that the source file can tell whether it is being
7447 # built for inclusion in a dll (and should export symbols for example).
7448 lt_prog_compiler_pic='-DDLL_EXPORT'
7449 ;;
7450
7451 hpux9* | hpux10* | hpux11*)
7452 lt_prog_compiler_wl='-Wl,'
7453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7454 # not for PA HP-UX.
7455 case $host_cpu in
7456 hppa*64*|ia64*)
7457 # +Z the default
7458 ;;
7459 *)
7460 lt_prog_compiler_pic='+Z'
7461 ;;
7462 esac
7463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7464 lt_prog_compiler_static='${wl}-a ${wl}archive'
7465 ;;
7466
7467 irix5* | irix6* | nonstopux*)
7468 lt_prog_compiler_wl='-Wl,'
7469 # PIC (with -KPIC) is the default.
7470 lt_prog_compiler_static='-non_shared'
7471 ;;
7472
7473 linux* | k*bsd*-gnu)
7474 case $cc_basename in
7475 icc* | ecc* | ifort*)
7476 lt_prog_compiler_wl='-Wl,'
7477 lt_prog_compiler_pic='-KPIC'
7478 lt_prog_compiler_static='-static'
7479 ;;
7480 pgcc* | pgf77* | pgf90* | pgf95*)
7481 # Portland Group compilers (*not* the Pentium gcc compiler,
7482 # which looks to be a dead project)
7483 lt_prog_compiler_wl='-Wl,'
7484 lt_prog_compiler_pic='-fpic'
7485 lt_prog_compiler_static='-Bstatic'
7486 ;;
7487 ccc*)
7488 lt_prog_compiler_wl='-Wl,'
7489 # All Alpha code is PIC.
7490 lt_prog_compiler_static='-non_shared'
7491 ;;
7492 xl*)
7493 # IBM XL C 8.0/Fortran 10.1 on PPC
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-qpic'
7496 lt_prog_compiler_static='-qstaticlink'
7497 ;;
7498 *)
7499 case `$CC -V 2>&1 | sed 5q` in
7500 *Sun\ C*)
7501 # Sun C 5.9
7502 lt_prog_compiler_pic='-KPIC'
7503 lt_prog_compiler_static='-Bstatic'
7504 lt_prog_compiler_wl='-Wl,'
7505 ;;
7506 *Sun\ F*)
7507 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7508 lt_prog_compiler_pic='-KPIC'
7509 lt_prog_compiler_static='-Bstatic'
7510 lt_prog_compiler_wl=''
7511 ;;
7512 esac
7513 ;;
7514 esac
7515 ;;
7516
7517 newsos6)
7518 lt_prog_compiler_pic='-KPIC'
7519 lt_prog_compiler_static='-Bstatic'
7520 ;;
7521
7522 *nto* | *qnx*)
7523 # QNX uses GNU C++, but need to define -shared option too, otherwise
7524 # it will coredump.
7525 lt_prog_compiler_pic='-fPIC -shared'
7526 ;;
7527
7528 osf3* | osf4* | osf5*)
7529 lt_prog_compiler_wl='-Wl,'
7530 # All OSF/1 code is PIC.
7531 lt_prog_compiler_static='-non_shared'
7532 ;;
7533
7534 rdos*)
7535 lt_prog_compiler_static='-non_shared'
7536 ;;
7537
7538 solaris*)
7539 lt_prog_compiler_pic='-KPIC'
7540 lt_prog_compiler_static='-Bstatic'
7541 case $cc_basename in
7542 f77* | f90* | f95*)
7543 lt_prog_compiler_wl='-Qoption ld ';;
7544 *)
7545 lt_prog_compiler_wl='-Wl,';;
7546 esac
7547 ;;
7548
7549 sunos4*)
7550 lt_prog_compiler_wl='-Qoption ld '
7551 lt_prog_compiler_pic='-PIC'
7552 lt_prog_compiler_static='-Bstatic'
7553 ;;
7554
7555 sysv4 | sysv4.2uw2* | sysv4.3*)
7556 lt_prog_compiler_wl='-Wl,'
7557 lt_prog_compiler_pic='-KPIC'
7558 lt_prog_compiler_static='-Bstatic'
7559 ;;
7560
7561 sysv4*MP*)
7562 if test -d /usr/nec ;then
7563 lt_prog_compiler_pic='-Kconform_pic'
7564 lt_prog_compiler_static='-Bstatic'
7565 fi
7566 ;;
7567
7568 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7572 ;;
7573
7574 unicos*)
7575 lt_prog_compiler_wl='-Wl,'
7576 lt_prog_compiler_can_build_shared=no
7577 ;;
7578
7579 uts4*)
7580 lt_prog_compiler_pic='-pic'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
7583
7584 *)
7585 lt_prog_compiler_can_build_shared=no
7586 ;;
7587 esac
7588 fi
7589
7590 case $host_os in
7591 # For platforms which do not support PIC, -DPIC is meaningless:
7592 *djgpp*)
7593 lt_prog_compiler_pic=
7594 ;;
7595 *)
7596 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7597 ;;
7598 esac
7599 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7600 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7601
7602
7603
7604
7605
7606
7607 #
7608 # Check to make sure the PIC flag actually works.
7609 #
7610 if test -n "$lt_prog_compiler_pic"; then
7611 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7612 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7613 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 lt_cv_prog_compiler_pic_works=no
7617 ac_outfile=conftest.$ac_objext
7618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7619 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7620 # Insert the option either (1) after the last *FLAGS variable, or
7621 # (2) before a word containing "conftest.", or (3) at the end.
7622 # Note that $ac_compile itself does not contain backslashes and begins
7623 # with a dollar sign (not a hyphen), so the echo should work correctly.
7624 # The option is referenced via a variable to avoid confusing sed.
7625 lt_compile=`echo "$ac_compile" | $SED \
7626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7628 -e 's:$: $lt_compiler_flag:'`
7629 (eval echo "\"\$as_me:7629: $lt_compile\"" >&5)
7630 (eval "$lt_compile" 2>conftest.err)
7631 ac_status=$?
7632 cat conftest.err >&5
7633 echo "$as_me:7633: \$? = $ac_status" >&5
7634 if (exit $ac_status) && test -s "$ac_outfile"; then
7635 # The compiler can only warn and ignore the option if not recognized
7636 # So say no if there are warnings other than the usual output.
7637 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7640 lt_cv_prog_compiler_pic_works=yes
7641 fi
7642 fi
7643 $RM conftest*
7644
7645 fi
7646 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7647 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7648
7649 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7650 case $lt_prog_compiler_pic in
7651 "" | " "*) ;;
7652 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7653 esac
7654 else
7655 lt_prog_compiler_pic=
7656 lt_prog_compiler_can_build_shared=no
7657 fi
7658
7659 fi
7660
7661
7662
7663
7664
7665
7666 #
7667 # Check to make sure the static flag actually works.
7668 #
7669 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7670 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7671 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7672 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 lt_cv_prog_compiler_static_works=no
7676 save_LDFLAGS="$LDFLAGS"
7677 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7678 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7679 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7680 # The linker can only warn and ignore the option if not recognized
7681 # So say no if there are warnings
7682 if test -s conftest.err; then
7683 # Append any errors to the config.log.
7684 cat conftest.err 1>&5
7685 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7687 if diff conftest.exp conftest.er2 >/dev/null; then
7688 lt_cv_prog_compiler_static_works=yes
7689 fi
7690 else
7691 lt_cv_prog_compiler_static_works=yes
7692 fi
7693 fi
7694 $RM -r conftest*
7695 LDFLAGS="$save_LDFLAGS"
7696
7697 fi
7698 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7699 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7700
7701 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7702 :
7703 else
7704 lt_prog_compiler_static=
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7714 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7715 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 lt_cv_prog_compiler_c_o=no
7719 $RM -r conftest 2>/dev/null
7720 mkdir conftest
7721 cd conftest
7722 mkdir out
7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724
7725 lt_compiler_flag="-o out/conftest2.$ac_objext"
7726 # Insert the option either (1) after the last *FLAGS variable, or
7727 # (2) before a word containing "conftest.", or (3) at the end.
7728 # Note that $ac_compile itself does not contain backslashes and begins
7729 # with a dollar sign (not a hyphen), so the echo should work correctly.
7730 lt_compile=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
7734 (eval echo "\"\$as_me:7734: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>out/conftest.err)
7736 ac_status=$?
7737 cat out/conftest.err >&5
7738 echo "$as_me:7738: \$? = $ac_status" >&5
7739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7740 then
7741 # The compiler can only warn and ignore the option if not recognized
7742 # So say no if there are warnings
7743 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7746 lt_cv_prog_compiler_c_o=yes
7747 fi
7748 fi
7749 chmod u+w . 2>&5
7750 $RM conftest*
7751 # SGI C++ compiler will create directory out/ii_files/ for
7752 # template instantiation
7753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7754 $RM out/* && rmdir out
7755 cd ..
7756 $RM -r conftest
7757 $RM conftest*
7758
7759 fi
7760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7761 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7762
7763
7764
7765
7766
7767
7768 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7770 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 lt_cv_prog_compiler_c_o=no
7774 $RM -r conftest 2>/dev/null
7775 mkdir conftest
7776 cd conftest
7777 mkdir out
7778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7779
7780 lt_compiler_flag="-o out/conftest2.$ac_objext"
7781 # Insert the option either (1) after the last *FLAGS variable, or
7782 # (2) before a word containing "conftest.", or (3) at the end.
7783 # Note that $ac_compile itself does not contain backslashes and begins
7784 # with a dollar sign (not a hyphen), so the echo should work correctly.
7785 lt_compile=`echo "$ac_compile" | $SED \
7786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7788 -e 's:$: $lt_compiler_flag:'`
7789 (eval echo "\"\$as_me:7789: $lt_compile\"" >&5)
7790 (eval "$lt_compile" 2>out/conftest.err)
7791 ac_status=$?
7792 cat out/conftest.err >&5
7793 echo "$as_me:7793: \$? = $ac_status" >&5
7794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7795 then
7796 # The compiler can only warn and ignore the option if not recognized
7797 # So say no if there are warnings
7798 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7799 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7800 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7801 lt_cv_prog_compiler_c_o=yes
7802 fi
7803 fi
7804 chmod u+w . 2>&5
7805 $RM conftest*
7806 # SGI C++ compiler will create directory out/ii_files/ for
7807 # template instantiation
7808 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7809 $RM out/* && rmdir out
7810 cd ..
7811 $RM -r conftest
7812 $RM conftest*
7813
7814 fi
7815 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7817
7818
7819
7820
7821 hard_links="nottested"
7822 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7823 # do not overwrite the value of need_locks provided by the user
7824 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7826 hard_links=yes
7827 $RM conftest*
7828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7829 touch conftest.a
7830 ln conftest.a conftest.b 2>&5 || hard_links=no
7831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7832 { echo "$as_me:$LINENO: result: $hard_links" >&5
7833 echo "${ECHO_T}$hard_links" >&6; }
7834 if test "$hard_links" = no; then
7835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7837 need_locks=warn
7838 fi
7839 else
7840 need_locks=no
7841 fi
7842
7843
7844
7845
7846
7847
7848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7850
7851 runpath_var=
7852 allow_undefined_flag=
7853 always_export_symbols=no
7854 archive_cmds=
7855 archive_expsym_cmds=
7856 compiler_needs_object=no
7857 enable_shared_with_static_runtimes=no
7858 export_dynamic_flag_spec=
7859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7860 hardcode_automatic=no
7861 hardcode_direct=no
7862 hardcode_direct_absolute=no
7863 hardcode_libdir_flag_spec=
7864 hardcode_libdir_flag_spec_ld=
7865 hardcode_libdir_separator=
7866 hardcode_minus_L=no
7867 hardcode_shlibpath_var=unsupported
7868 inherit_rpath=no
7869 link_all_deplibs=unknown
7870 module_cmds=
7871 module_expsym_cmds=
7872 old_archive_from_new_cmds=
7873 old_archive_from_expsyms_cmds=
7874 thread_safe_flag_spec=
7875 whole_archive_flag_spec=
7876 # include_expsyms should be a list of space-separated symbols to be *always*
7877 # included in the symbol list
7878 include_expsyms=
7879 # exclude_expsyms can be an extended regexp of symbols to exclude
7880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7882 # as well as any symbol that contains `d'.
7883 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7885 # platforms (ab)use it in PIC code, but their linkers get confused if
7886 # the symbol is explicitly referenced. Since portable code cannot
7887 # rely on this symbol name, it's probably fine to never include it in
7888 # preloaded symbol tables.
7889 # Exclude shared library initialization/finalization symbols.
7890 extract_expsyms_cmds=
7891
7892 case $host_os in
7893 cygwin* | mingw* | pw32*)
7894 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7895 # When not using gcc, we currently assume that we are using
7896 # Microsoft Visual C++.
7897 if test "$GCC" != yes; then
7898 with_gnu_ld=no
7899 fi
7900 ;;
7901 interix*)
7902 # we just hope/assume this is gcc and not c89 (= MSVC++)
7903 with_gnu_ld=yes
7904 ;;
7905 openbsd*)
7906 with_gnu_ld=no
7907 ;;
7908 esac
7909
7910 ld_shlibs=yes
7911 if test "$with_gnu_ld" = yes; then
7912 # If archive_cmds runs LD, not CC, wlarc should be empty
7913 wlarc='${wl}'
7914
7915 # Set some defaults for GNU ld with shared library support. These
7916 # are reset later if shared libraries are not supported. Putting them
7917 # here allows them to be overridden if necessary.
7918 runpath_var=LD_RUN_PATH
7919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7920 export_dynamic_flag_spec='${wl}--export-dynamic'
7921 # ancient GNU ld didn't support --whole-archive et. al.
7922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7924 else
7925 whole_archive_flag_spec=
7926 fi
7927 supports_anon_versioning=no
7928 case `$LD -v 2>&1` in
7929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7932 *\ 2.11.*) ;; # other 2.11 versions
7933 *) supports_anon_versioning=yes ;;
7934 esac
7935
7936 # See if GNU ld supports shared libraries.
7937 case $host_os in
7938 aix[3-9]*)
7939 # On AIX/PPC, the GNU linker is very broken
7940 if test "$host_cpu" != ia64; then
7941 ld_shlibs=no
7942 cat <<_LT_EOF 1>&2
7943
7944 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7945 *** to be unable to reliably create shared libraries on AIX.
7946 *** Therefore, libtool is disabling shared libraries support. If you
7947 *** really care for shared libraries, you may want to modify your PATH
7948 *** so that a non-GNU linker is found, and then restart.
7949
7950 _LT_EOF
7951 fi
7952 ;;
7953
7954 amigaos*)
7955 case $host_cpu in
7956 powerpc)
7957 # see comment about AmigaOS4 .so support
7958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7959 archive_expsym_cmds=''
7960 ;;
7961 m68k)
7962 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)'
7963 hardcode_libdir_flag_spec='-L$libdir'
7964 hardcode_minus_L=yes
7965 ;;
7966 esac
7967 ;;
7968
7969 beos*)
7970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7971 allow_undefined_flag=unsupported
7972 # Joseph Beckenbach <[email protected]> says some releases of gcc
7973 # support --undefined. This deserves some investigation. FIXME
7974 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975 else
7976 ld_shlibs=no
7977 fi
7978 ;;
7979
7980 cygwin* | mingw* | pw32*)
7981 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7982 # as there is no search path for DLLs.
7983 hardcode_libdir_flag_spec='-L$libdir'
7984 allow_undefined_flag=unsupported
7985 always_export_symbols=no
7986 enable_shared_with_static_runtimes=yes
7987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7988
7989 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7991 # If the export-symbols file already is a .def file (1st line
7992 # is EXPORTS), use it as is; otherwise, prepend...
7993 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7994 cp $export_symbols $output_objdir/$soname.def;
7995 else
7996 echo EXPORTS > $output_objdir/$soname.def;
7997 cat $export_symbols >> $output_objdir/$soname.def;
7998 fi~
7999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8000 else
8001 ld_shlibs=no
8002 fi
8003 ;;
8004
8005 interix[3-9]*)
8006 hardcode_direct=no
8007 hardcode_shlibpath_var=no
8008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8009 export_dynamic_flag_spec='${wl}-E'
8010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8011 # Instead, shared libraries are loaded at an image base (0x10000000 by
8012 # default) and relocated if they conflict, which is a slow very memory
8013 # consuming and fragmenting process. To avoid this, we pick a random,
8014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8017 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'
8018 ;;
8019
8020 gnu* | linux* | tpf* | k*bsd*-gnu)
8021 tmp_diet=no
8022 if test "$host_os" = linux-dietlibc; then
8023 case $cc_basename in
8024 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8025 esac
8026 fi
8027 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8028 && test "$tmp_diet" = no
8029 then
8030 tmp_addflag=
8031 tmp_sharedflag='-shared'
8032 case $cc_basename,$host_cpu in
8033 pgcc*) # Portland Group C compiler
8034 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8035 tmp_addflag=' $pic_flag'
8036 ;;
8037 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8038 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8039 tmp_addflag=' $pic_flag -Mnomain' ;;
8040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8041 tmp_addflag=' -i_dynamic' ;;
8042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8043 tmp_addflag=' -i_dynamic -nofor_main' ;;
8044 ifc* | ifort*) # Intel Fortran compiler
8045 tmp_addflag=' -nofor_main' ;;
8046 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8047 tmp_sharedflag='-qmkshrobj'
8048 tmp_addflag= ;;
8049 esac
8050 case `$CC -V 2>&1 | sed 5q` in
8051 *Sun\ C*) # Sun C 5.9
8052 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8053 compiler_needs_object=yes
8054 tmp_sharedflag='-G' ;;
8055 *Sun\ F*) # Sun Fortran 8.3
8056 tmp_sharedflag='-G' ;;
8057 esac
8058 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059
8060 if test "x$supports_anon_versioning" = xyes; then
8061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8063 echo "local: *; };" >> $output_objdir/$libname.ver~
8064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8065 fi
8066
8067 case $cc_basename in
8068 xlf*)
8069 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8070 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8071 hardcode_libdir_flag_spec=
8072 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8073 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8074 if test "x$supports_anon_versioning" = xyes; then
8075 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8077 echo "local: *; };" >> $output_objdir/$libname.ver~
8078 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8079 fi
8080 ;;
8081 esac
8082 else
8083 ld_shlibs=no
8084 fi
8085 ;;
8086
8087 netbsd* | netbsdelf*-gnu)
8088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8089 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8090 wlarc=
8091 else
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8094 fi
8095 ;;
8096
8097 solaris*)
8098 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8099 ld_shlibs=no
8100 cat <<_LT_EOF 1>&2
8101
8102 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8103 *** create shared libraries on Solaris systems. Therefore, libtool
8104 *** is disabling shared libraries support. We urge you to upgrade GNU
8105 *** binutils to release 2.9.1 or newer. Another option is to modify
8106 *** your PATH or compiler configuration so that the native linker is
8107 *** used, and then restart.
8108
8109 _LT_EOF
8110 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113 else
8114 ld_shlibs=no
8115 fi
8116 ;;
8117
8118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8119 case `$LD -v 2>&1` in
8120 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8121 ld_shlibs=no
8122 cat <<_LT_EOF 1>&2
8123
8124 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8125 *** reliably create shared libraries on SCO systems. Therefore, libtool
8126 *** is disabling shared libraries support. We urge you to upgrade GNU
8127 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8128 *** your PATH or compiler configuration so that the native linker is
8129 *** used, and then restart.
8130
8131 _LT_EOF
8132 ;;
8133 *)
8134 # For security reasons, it is highly recommended that you always
8135 # use absolute paths for naming shared libraries, and exclude the
8136 # DT_RUNPATH tag from executables and libraries. But doing so
8137 # requires that you compile everything twice, which is a pain.
8138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8142 else
8143 ld_shlibs=no
8144 fi
8145 ;;
8146 esac
8147 ;;
8148
8149 sunos4*)
8150 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8151 wlarc=
8152 hardcode_direct=yes
8153 hardcode_shlibpath_var=no
8154 ;;
8155
8156 *)
8157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8160 else
8161 ld_shlibs=no
8162 fi
8163 ;;
8164 esac
8165
8166 if test "$ld_shlibs" = no; then
8167 runpath_var=
8168 hardcode_libdir_flag_spec=
8169 export_dynamic_flag_spec=
8170 whole_archive_flag_spec=
8171 fi
8172 else
8173 # PORTME fill in a description of your system's linker (not GNU ld)
8174 case $host_os in
8175 aix3*)
8176 allow_undefined_flag=unsupported
8177 always_export_symbols=yes
8178 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'
8179 # Note: this linker hardcodes the directories in LIBPATH if there
8180 # are no directories specified by -L.
8181 hardcode_minus_L=yes
8182 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8183 # Neither direct hardcoding nor static linking is supported with a
8184 # broken collect2.
8185 hardcode_direct=unsupported
8186 fi
8187 ;;
8188
8189 aix[4-9]*)
8190 if test "$host_cpu" = ia64; then
8191 # On IA64, the linker does run time linking by default, so we don't
8192 # have to do anything special.
8193 aix_use_runtimelinking=no
8194 exp_sym_flag='-Bexport'
8195 no_entry_flag=""
8196 else
8197 # If we're using GNU nm, then we don't want the "-C" option.
8198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8199 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8200 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8201 else
8202 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'
8203 fi
8204 aix_use_runtimelinking=no
8205
8206 # Test if we are trying to use run time linking or normal
8207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8208 # need to do runtime linking.
8209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8210 for ld_flag in $LDFLAGS; do
8211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8212 aix_use_runtimelinking=yes
8213 break
8214 fi
8215 done
8216 ;;
8217 esac
8218
8219 exp_sym_flag='-bexport'
8220 no_entry_flag='-bnoentry'
8221 fi
8222
8223 # When large executables or shared objects are built, AIX ld can
8224 # have problems creating the table of contents. If linking a library
8225 # or program results in "error TOC overflow" add -mminimal-toc to
8226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8228
8229 archive_cmds=''
8230 hardcode_direct=yes
8231 hardcode_direct_absolute=yes
8232 hardcode_libdir_separator=':'
8233 link_all_deplibs=yes
8234 file_list_spec='${wl}-f,'
8235
8236 if test "$GCC" = yes; then
8237 case $host_os in aix4.[012]|aix4.[012].*)
8238 # We only want to do this on AIX 4.2 and lower, the check
8239 # below for broken collect2 doesn't work under 4.3+
8240 collect2name=`${CC} -print-prog-name=collect2`
8241 if test -f "$collect2name" &&
8242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8243 then
8244 # We have reworked collect2
8245 :
8246 else
8247 # We have old collect2
8248 hardcode_direct=unsupported
8249 # It fails to find uninstalled libraries when the uninstalled
8250 # path is not listed in the libpath. Setting hardcode_minus_L
8251 # to unsupported forces relinking
8252 hardcode_minus_L=yes
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_libdir_separator=
8255 fi
8256 ;;
8257 esac
8258 shared_flag='-shared'
8259 if test "$aix_use_runtimelinking" = yes; then
8260 shared_flag="$shared_flag "'${wl}-G'
8261 fi
8262 link_all_deplibs=no
8263 else
8264 # not using gcc
8265 if test "$host_cpu" = ia64; then
8266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8267 # chokes on -Wl,-G. The following line is correct:
8268 shared_flag='-G'
8269 else
8270 if test "$aix_use_runtimelinking" = yes; then
8271 shared_flag='${wl}-G'
8272 else
8273 shared_flag='${wl}-bM:SRE'
8274 fi
8275 fi
8276 fi
8277
8278 # It seems that -bexpall does not export symbols beginning with
8279 # underscore (_), so it is better to generate a list of symbols to export.
8280 always_export_symbols=yes
8281 if test "$aix_use_runtimelinking" = yes; then
8282 # Warning - without using the other runtime loading flags (-brtl),
8283 # -berok will link without error, but may produce a broken library.
8284 allow_undefined_flag='-berok'
8285 # Determine the default libpath from the value encoded in an
8286 # empty executable.
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293
8294 int
8295 main ()
8296 {
8297
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext &&
8319 $as_test_x conftest$ac_exeext; then
8320
8321 lt_aix_libpath_sed='
8322 /Import File Strings/,/^$/ {
8323 /^0/ {
8324 s/^0 *\(.*\)$/\1/
8325 p
8326 }
8327 }'
8328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8329 # Check for a 64-bit object if we didn't find anything.
8330 if test -z "$aix_libpath"; then
8331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332 fi
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8341 conftest$ac_exeext conftest.$ac_ext
8342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8343
8344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8346 else
8347 if test "$host_cpu" = ia64; then
8348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8349 allow_undefined_flag="-z nodefs"
8350 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"
8351 else
8352 # Determine the default libpath from the value encoded in an
8353 # empty executable.
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360
8361 int
8362 main ()
8363 {
8364
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest$ac_exeext &&
8386 $as_test_x conftest$ac_exeext; then
8387
8388 lt_aix_libpath_sed='
8389 /Import File Strings/,/^$/ {
8390 /^0/ {
8391 s/^0 *\(.*\)$/\1/
8392 p
8393 }
8394 }'
8395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8396 # Check for a 64-bit object if we didn't find anything.
8397 if test -z "$aix_libpath"; then
8398 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 fi
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404
8405 fi
8406
8407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408 conftest$ac_exeext conftest.$ac_ext
8409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8410
8411 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8412 # Warning - without using the other run time loading flags,
8413 # -berok will link without error, but may produce a broken library.
8414 no_undefined_flag=' ${wl}-bernotok'
8415 allow_undefined_flag=' ${wl}-berok'
8416 # Exported symbols can be pulled into shared objects from archives
8417 whole_archive_flag_spec='$convenience'
8418 archive_cmds_need_lc=yes
8419 # This is similar to how AIX traditionally builds its shared libraries.
8420 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'
8421 fi
8422 fi
8423 ;;
8424
8425 amigaos*)
8426 case $host_cpu in
8427 powerpc)
8428 # see comment about AmigaOS4 .so support
8429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430 archive_expsym_cmds=''
8431 ;;
8432 m68k)
8433 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)'
8434 hardcode_libdir_flag_spec='-L$libdir'
8435 hardcode_minus_L=yes
8436 ;;
8437 esac
8438 ;;
8439
8440 bsdi[45]*)
8441 export_dynamic_flag_spec=-rdynamic
8442 ;;
8443
8444 cygwin* | mingw* | pw32*)
8445 # When not using gcc, we currently assume that we are using
8446 # Microsoft Visual C++.
8447 # hardcode_libdir_flag_spec is actually meaningless, as there is
8448 # no search path for DLLs.
8449 hardcode_libdir_flag_spec=' '
8450 allow_undefined_flag=unsupported
8451 # Tell ltmain to make .lib files, not .a files.
8452 libext=lib
8453 # Tell ltmain to make .dll files, not .so files.
8454 shrext_cmds=".dll"
8455 # FIXME: Setting linknames here is a bad hack.
8456 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8457 # The linker will automatically build a .lib file if we build a DLL.
8458 old_archive_from_new_cmds='true'
8459 # FIXME: Should let the user specify the lib program.
8460 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8461 fix_srcfile_path='`cygpath -w "$srcfile"`'
8462 enable_shared_with_static_runtimes=yes
8463 ;;
8464
8465 darwin* | rhapsody*)
8466
8467
8468 archive_cmds_need_lc=no
8469 hardcode_direct=no
8470 hardcode_automatic=yes
8471 hardcode_shlibpath_var=unsupported
8472 whole_archive_flag_spec=''
8473 link_all_deplibs=yes
8474 allow_undefined_flag="$_lt_dar_allow_undefined"
8475 if test "$GCC" = "yes"; then
8476 output_verbose_link_cmd=echo
8477 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8478 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8479 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}"
8480 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}"
8481
8482 else
8483 ld_shlibs=no
8484 fi
8485
8486 ;;
8487
8488 dgux*)
8489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490 hardcode_libdir_flag_spec='-L$libdir'
8491 hardcode_shlibpath_var=no
8492 ;;
8493
8494 freebsd1*)
8495 ld_shlibs=no
8496 ;;
8497
8498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8499 # support. Future versions do this automatically, but an explicit c++rt0.o
8500 # does not break anything, and helps significantly (at the cost of a little
8501 # extra space).
8502 freebsd2.2*)
8503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8504 hardcode_libdir_flag_spec='-R$libdir'
8505 hardcode_direct=yes
8506 hardcode_shlibpath_var=no
8507 ;;
8508
8509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8510 freebsd2*)
8511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_direct=yes
8513 hardcode_minus_L=yes
8514 hardcode_shlibpath_var=no
8515 ;;
8516
8517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8518 freebsd* | dragonfly*)
8519 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8520 hardcode_libdir_flag_spec='-R$libdir'
8521 hardcode_direct=yes
8522 hardcode_shlibpath_var=no
8523 ;;
8524
8525 hpux9*)
8526 if test "$GCC" = yes; then
8527 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8528 else
8529 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'
8530 fi
8531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8532 hardcode_libdir_separator=:
8533 hardcode_direct=yes
8534
8535 # hardcode_minus_L: Not really in the search PATH,
8536 # but as the default location of the library.
8537 hardcode_minus_L=yes
8538 export_dynamic_flag_spec='${wl}-E'
8539 ;;
8540
8541 hpux10*)
8542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8544 else
8545 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8546 fi
8547 if test "$with_gnu_ld" = no; then
8548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8549 hardcode_libdir_flag_spec_ld='+b $libdir'
8550 hardcode_libdir_separator=:
8551 hardcode_direct=yes
8552 hardcode_direct_absolute=yes
8553 export_dynamic_flag_spec='${wl}-E'
8554 # hardcode_minus_L: Not really in the search PATH,
8555 # but as the default location of the library.
8556 hardcode_minus_L=yes
8557 fi
8558 ;;
8559
8560 hpux11*)
8561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8562 case $host_cpu in
8563 hppa*64*)
8564 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 ;;
8566 ia64*)
8567 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8568 ;;
8569 *)
8570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8571 ;;
8572 esac
8573 else
8574 case $host_cpu in
8575 hppa*64*)
8576 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8577 ;;
8578 ia64*)
8579 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8580 ;;
8581 *)
8582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8583 ;;
8584 esac
8585 fi
8586 if test "$with_gnu_ld" = no; then
8587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8588 hardcode_libdir_separator=:
8589
8590 case $host_cpu in
8591 hppa*64*|ia64*)
8592 hardcode_direct=no
8593 hardcode_shlibpath_var=no
8594 ;;
8595 *)
8596 hardcode_direct=yes
8597 hardcode_direct_absolute=yes
8598 export_dynamic_flag_spec='${wl}-E'
8599
8600 # hardcode_minus_L: Not really in the search PATH,
8601 # but as the default location of the library.
8602 hardcode_minus_L=yes
8603 ;;
8604 esac
8605 fi
8606 ;;
8607
8608 irix5* | irix6* | nonstopux*)
8609 if test "$GCC" = yes; then
8610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8611 # Try to use the -exported_symbol ld option, if it does not
8612 # work, assume that -exports_file does not work either and
8613 # implicitly export all symbols.
8614 save_LDFLAGS="$LDFLAGS"
8615 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8616 cat >conftest.$ac_ext <<_ACEOF
8617 int foo(void) {}
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest$ac_exeext &&
8636 $as_test_x conftest$ac_exeext; then
8637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8638
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8647 conftest$ac_exeext conftest.$ac_ext
8648 LDFLAGS="$save_LDFLAGS"
8649 else
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8652 fi
8653 archive_cmds_need_lc='no'
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 inherit_rpath=yes
8657 link_all_deplibs=yes
8658 ;;
8659
8660 netbsd* | netbsdelf*-gnu)
8661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8663 else
8664 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8665 fi
8666 hardcode_libdir_flag_spec='-R$libdir'
8667 hardcode_direct=yes
8668 hardcode_shlibpath_var=no
8669 ;;
8670
8671 newsos6)
8672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8673 hardcode_direct=yes
8674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675 hardcode_libdir_separator=:
8676 hardcode_shlibpath_var=no
8677 ;;
8678
8679 *nto* | *qnx*)
8680 ;;
8681
8682 openbsd*)
8683 if test -f /usr/libexec/ld.so; then
8684 hardcode_direct=yes
8685 hardcode_shlibpath_var=no
8686 hardcode_direct_absolute=yes
8687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8691 export_dynamic_flag_spec='${wl}-E'
8692 else
8693 case $host_os in
8694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_libdir_flag_spec='-R$libdir'
8697 ;;
8698 *)
8699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8701 ;;
8702 esac
8703 fi
8704 else
8705 ld_shlibs=no
8706 fi
8707 ;;
8708
8709 os2*)
8710 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_minus_L=yes
8712 allow_undefined_flag=unsupported
8713 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'
8714 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8715 ;;
8716
8717 osf3*)
8718 if test "$GCC" = yes; then
8719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8720 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8721 else
8722 allow_undefined_flag=' -expect_unresolved \*'
8723 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8724 fi
8725 archive_cmds_need_lc='no'
8726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727 hardcode_libdir_separator=:
8728 ;;
8729
8730 osf4* | osf5*) # as osf3* with the addition of -msym flag
8731 if test "$GCC" = yes; then
8732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8733 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735 else
8736 allow_undefined_flag=' -expect_unresolved \*'
8737 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8738 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~
8739 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8740
8741 # Both c and cxx compiler support -rpath directly
8742 hardcode_libdir_flag_spec='-rpath $libdir'
8743 fi
8744 archive_cmds_need_lc='no'
8745 hardcode_libdir_separator=:
8746 ;;
8747
8748 solaris*)
8749 no_undefined_flag=' -z defs'
8750 if test "$GCC" = yes; then
8751 wlarc='${wl}'
8752 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8754 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8755 else
8756 case `$CC -V 2>&1` in
8757 *"Compilers 5.0"*)
8758 wlarc=''
8759 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8762 ;;
8763 *)
8764 wlarc='${wl}'
8765 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8767 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8768 ;;
8769 esac
8770 fi
8771 hardcode_libdir_flag_spec='-R$libdir'
8772 hardcode_shlibpath_var=no
8773 case $host_os in
8774 solaris2.[0-5] | solaris2.[0-5].*) ;;
8775 *)
8776 # The compiler driver will combine and reorder linker options,
8777 # but understands `-z linker_flag'. GCC discards it without `$wl',
8778 # but is careful enough not to reorder.
8779 # Supported since Solaris 2.6 (maybe 2.5.1?)
8780 if test "$GCC" = yes; then
8781 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8782 else
8783 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8784 fi
8785 ;;
8786 esac
8787 link_all_deplibs=yes
8788 ;;
8789
8790 sunos4*)
8791 if test "x$host_vendor" = xsequent; then
8792 # Use $CC to link under sequent, because it throws in some extra .o
8793 # files that make .init and .fini sections work.
8794 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8795 else
8796 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8797 fi
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_direct=yes
8800 hardcode_minus_L=yes
8801 hardcode_shlibpath_var=no
8802 ;;
8803
8804 sysv4)
8805 case $host_vendor in
8806 sni)
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_direct=yes # is this really true???
8809 ;;
8810 siemens)
8811 ## LD is ld it makes a PLAMLIB
8812 ## CC just makes a GrossModule.
8813 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8814 reload_cmds='$CC -r -o $output$reload_objs'
8815 hardcode_direct=no
8816 ;;
8817 motorola)
8818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8819 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8820 ;;
8821 esac
8822 runpath_var='LD_RUN_PATH'
8823 hardcode_shlibpath_var=no
8824 ;;
8825
8826 sysv4.3*)
8827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_shlibpath_var=no
8829 export_dynamic_flag_spec='-Bexport'
8830 ;;
8831
8832 sysv4*MP*)
8833 if test -d /usr/nec; then
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_shlibpath_var=no
8836 runpath_var=LD_RUN_PATH
8837 hardcode_runpath_var=yes
8838 ld_shlibs=yes
8839 fi
8840 ;;
8841
8842 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8843 no_undefined_flag='${wl}-z,text'
8844 archive_cmds_need_lc=no
8845 hardcode_shlibpath_var=no
8846 runpath_var='LD_RUN_PATH'
8847
8848 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 fi
8855 ;;
8856
8857 sysv5* | sco3.2v5* | sco5v6*)
8858 # Note: We can NOT use -z defs as we might desire, because we do not
8859 # link with -lc, and that would cause any symbols used from libc to
8860 # always be unresolved, which means just about no library would
8861 # ever link correctly. If we're not using GNU ld we use -z text
8862 # though, which does catch some bad symbols but isn't as heavy-handed
8863 # as -z defs.
8864 no_undefined_flag='${wl}-z,text'
8865 allow_undefined_flag='${wl}-z,nodefs'
8866 archive_cmds_need_lc=no
8867 hardcode_shlibpath_var=no
8868 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8869 hardcode_libdir_separator=':'
8870 link_all_deplibs=yes
8871 export_dynamic_flag_spec='${wl}-Bexport'
8872 runpath_var='LD_RUN_PATH'
8873
8874 if test "$GCC" = yes; then
8875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8876 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 else
8878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8879 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 fi
8881 ;;
8882
8883 uts4*)
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 hardcode_shlibpath_var=no
8887 ;;
8888
8889 *)
8890 ld_shlibs=no
8891 ;;
8892 esac
8893
8894 if test x$host_vendor = xsni; then
8895 case $host in
8896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8897 export_dynamic_flag_spec='${wl}-Blargedynsym'
8898 ;;
8899 esac
8900 fi
8901 fi
8902
8903 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8904 echo "${ECHO_T}$ld_shlibs" >&6; }
8905 test "$ld_shlibs" = no && can_build_shared=no
8906
8907 with_gnu_ld=$with_gnu_ld
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923 #
8924 # Do we need to explicitly link libc?
8925 #
8926 case "x$archive_cmds_need_lc" in
8927 x|xyes)
8928 # Assume -lc should be added
8929 archive_cmds_need_lc=yes
8930
8931 if test "$enable_shared" = yes && test "$GCC" = yes; then
8932 case $archive_cmds in
8933 *'~'*)
8934 # FIXME: we may have to deal with multi-command sequences.
8935 ;;
8936 '$CC '*)
8937 # Test whether the compiler implicitly links with -lc since on some
8938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8939 # to ld, don't add -lc before -lgcc.
8940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8942 $RM conftest*
8943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8944
8945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8946 (eval $ac_compile) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } 2>conftest.err; then
8950 soname=conftest
8951 lib=conftest
8952 libobjs=conftest.$ac_objext
8953 deplibs=
8954 wl=$lt_prog_compiler_wl
8955 pic_flag=$lt_prog_compiler_pic
8956 compiler_flags=-v
8957 linker_flags=-v
8958 verstring=
8959 output_objdir=.
8960 libname=conftest
8961 lt_save_allow_undefined_flag=$allow_undefined_flag
8962 allow_undefined_flag=
8963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8964 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }
8968 then
8969 archive_cmds_need_lc=no
8970 else
8971 archive_cmds_need_lc=yes
8972 fi
8973 allow_undefined_flag=$lt_save_allow_undefined_flag
8974 else
8975 cat conftest.err 1>&5
8976 fi
8977 $RM conftest*
8978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8979 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8980 ;;
8981 esac
8982 fi
8983 ;;
8984 esac
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9143 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9144
9145 if test "$GCC" = yes; then
9146 case $host_os in
9147 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9148 *) lt_awk_arg="/^libraries:/" ;;
9149 esac
9150 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9151 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9152 # if the path contains ";" then we assume it to be the separator
9153 # otherwise default to the standard path separator (i.e. ":") - it is
9154 # assumed that no part of a normal pathname contains ";" but that should
9155 # okay in the real world where ";" in dirpaths is itself problematic.
9156 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9157 else
9158 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9159 fi
9160 # Ok, now we have the path, separated by spaces, we can step through it
9161 # and add multilib dir if necessary.
9162 lt_tmp_lt_search_path_spec=
9163 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9164 for lt_sys_path in $lt_search_path_spec; do
9165 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9166 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9167 else
9168 test -d "$lt_sys_path" && \
9169 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9170 fi
9171 done
9172 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9173 BEGIN {RS=" "; FS="/|\n";} {
9174 lt_foo="";
9175 lt_count=0;
9176 for (lt_i = NF; lt_i > 0; lt_i--) {
9177 if ($lt_i != "" && $lt_i != ".") {
9178 if ($lt_i == "..") {
9179 lt_count++;
9180 } else {
9181 if (lt_count == 0) {
9182 lt_foo="/" $lt_i lt_foo;
9183 } else {
9184 lt_count--;
9185 }
9186 }
9187 }
9188 }
9189 if (lt_foo != "") { lt_freq[lt_foo]++; }
9190 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9191 }'`
9192 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9193 else
9194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9195 fi
9196 library_names_spec=
9197 libname_spec='lib$name'
9198 soname_spec=
9199 shrext_cmds=".so"
9200 postinstall_cmds=
9201 postuninstall_cmds=
9202 finish_cmds=
9203 finish_eval=
9204 shlibpath_var=
9205 shlibpath_overrides_runpath=unknown
9206 version_type=none
9207 dynamic_linker="$host_os ld.so"
9208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9209 need_lib_prefix=unknown
9210 hardcode_into_libs=no
9211
9212 # when you set need_version to no, make sure it does not cause -set_version
9213 # flags to be left without arguments
9214 need_version=unknown
9215
9216 case $host_os in
9217 aix3*)
9218 version_type=linux
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9220 shlibpath_var=LIBPATH
9221
9222 # AIX 3 has no versioning support, so we append a major version to the name.
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 ;;
9225
9226 aix[4-9]*)
9227 version_type=linux
9228 need_lib_prefix=no
9229 need_version=no
9230 hardcode_into_libs=yes
9231 if test "$host_cpu" = ia64; then
9232 # AIX 5 supports IA64
9233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 else
9236 # With GCC up to 2.95.x, collect2 would create an import file
9237 # for dependence libraries. The import file would start with
9238 # the line `#! .'. This would cause the generated library to
9239 # depend on `.', always an invalid library. This was fixed in
9240 # development snapshots of GCC prior to 3.0.
9241 case $host_os in
9242 aix4 | aix4.[01] | aix4.[01].*)
9243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9244 echo ' yes '
9245 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9246 :
9247 else
9248 can_build_shared=no
9249 fi
9250 ;;
9251 esac
9252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9253 # soname into executable. Probably we can add versioning support to
9254 # collect2, so additional links can be useful in future.
9255 if test "$aix_use_runtimelinking" = yes; then
9256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9257 # instead of lib<name>.a to let people know that these are not
9258 # typical AIX shared libraries.
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 else
9261 # We preserve .a as extension for shared libraries through AIX4.2
9262 # and later when we are not doing run time linking.
9263 library_names_spec='${libname}${release}.a $libname.a'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 fi
9266 shlibpath_var=LIBPATH
9267 fi
9268 ;;
9269
9270 amigaos*)
9271 case $host_cpu in
9272 powerpc)
9273 # Since July 2007 AmigaOS4 officially supports .so libraries.
9274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 ;;
9277 m68k)
9278 library_names_spec='$libname.ixlibrary $libname.a'
9279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9280 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9281 ;;
9282 esac
9283 ;;
9284
9285 beos*)
9286 library_names_spec='${libname}${shared_ext}'
9287 dynamic_linker="$host_os ld.so"
9288 shlibpath_var=LIBRARY_PATH
9289 ;;
9290
9291 bsdi[45]*)
9292 version_type=linux
9293 need_version=no
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9300 # the default ld.so.conf also contains /usr/contrib/lib and
9301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9302 # libtool to hard-code these into programs
9303 ;;
9304
9305 cygwin* | mingw* | pw32*)
9306 version_type=windows
9307 shrext_cmds=".dll"
9308 need_version=no
9309 need_lib_prefix=no
9310
9311 case $GCC,$host_os in
9312 yes,cygwin* | yes,mingw* | yes,pw32*)
9313 library_names_spec='$libname.dll.a'
9314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9315 postinstall_cmds='base_file=`basename \${file}`~
9316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9317 dldir=$destdir/`dirname \$dlpath`~
9318 test -d \$dldir || mkdir -p \$dldir~
9319 $install_prog $dir/$dlname \$dldir/$dlname~
9320 chmod a+x \$dldir/$dlname~
9321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9323 fi'
9324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9325 dlpath=$dir/\$dldll~
9326 $RM \$dlpath'
9327 shlibpath_overrides_runpath=yes
9328
9329 case $host_os in
9330 cygwin*)
9331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9334 ;;
9335 mingw*)
9336 # MinGW DLLs use traditional 'lib' prefix
9337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9338 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9339 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9340 # It is most probably a Windows format PATH printed by
9341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9342 # path with ; separators, and with drive letters. We can handle the
9343 # drive letters (cygwin fileutils understands them), so leave them,
9344 # especially as we might pass files found there to a mingw objdump,
9345 # which wouldn't understand a cygwinified path. Ahh.
9346 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9347 else
9348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9349 fi
9350 ;;
9351 pw32*)
9352 # pw32 DLLs use 'pw' prefix rather than 'lib'
9353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354 ;;
9355 esac
9356 ;;
9357
9358 *)
9359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9360 ;;
9361 esac
9362 dynamic_linker='Win32 ld.exe'
9363 # FIXME: first we should search . and the directory the executable is in
9364 shlibpath_var=PATH
9365 ;;
9366
9367 darwin* | rhapsody*)
9368 dynamic_linker="$host_os dyld"
9369 version_type=darwin
9370 need_lib_prefix=no
9371 need_version=no
9372 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9373 soname_spec='${libname}${release}${major}$shared_ext'
9374 shlibpath_overrides_runpath=yes
9375 shlibpath_var=DYLD_LIBRARY_PATH
9376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9377
9378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9380 ;;
9381
9382 dgux*)
9383 version_type=linux
9384 need_lib_prefix=no
9385 need_version=no
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 ;;
9390
9391 freebsd1*)
9392 dynamic_linker=no
9393 ;;
9394
9395 freebsd* | dragonfly*)
9396 # DragonFly does not have aout. When/if they implement a new
9397 # versioning mechanism, adjust this.
9398 if test -x /usr/bin/objformat; then
9399 objformat=`/usr/bin/objformat`
9400 else
9401 case $host_os in
9402 freebsd[123]*) objformat=aout ;;
9403 *) objformat=elf ;;
9404 esac
9405 fi
9406 version_type=freebsd-$objformat
9407 case $version_type in
9408 freebsd-elf*)
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9410 need_version=no
9411 need_lib_prefix=no
9412 ;;
9413 freebsd-*)
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9415 need_version=yes
9416 ;;
9417 esac
9418 shlibpath_var=LD_LIBRARY_PATH
9419 case $host_os in
9420 freebsd2*)
9421 shlibpath_overrides_runpath=yes
9422 ;;
9423 freebsd3.[01]* | freebsdelf3.[01]*)
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9426 ;;
9427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9429 shlibpath_overrides_runpath=no
9430 hardcode_into_libs=yes
9431 ;;
9432 *) # from 4.6 on, and DragonFly
9433 shlibpath_overrides_runpath=yes
9434 hardcode_into_libs=yes
9435 ;;
9436 esac
9437 ;;
9438
9439 gnu*)
9440 version_type=linux
9441 need_lib_prefix=no
9442 need_version=no
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 hardcode_into_libs=yes
9447 ;;
9448
9449 hpux9* | hpux10* | hpux11*)
9450 # Give a soname corresponding to the major version so that dld.sl refuses to
9451 # link against other versions.
9452 version_type=sunos
9453 need_lib_prefix=no
9454 need_version=no
9455 case $host_cpu in
9456 ia64*)
9457 shrext_cmds='.so'
9458 hardcode_into_libs=yes
9459 dynamic_linker="$host_os dld.so"
9460 shlibpath_var=LD_LIBRARY_PATH
9461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 if test "X$HPUX_IA64_MODE" = X32; then
9465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9466 else
9467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9468 fi
9469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9470 ;;
9471 hppa*64*)
9472 shrext_cmds='.sl'
9473 hardcode_into_libs=yes
9474 dynamic_linker="$host_os dld.sl"
9475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9481 ;;
9482 *)
9483 shrext_cmds='.sl'
9484 dynamic_linker="$host_os dld.sl"
9485 shlibpath_var=SHLIB_PATH
9486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 ;;
9490 esac
9491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9492 postinstall_cmds='chmod 555 $lib'
9493 ;;
9494
9495 interix[3-9]*)
9496 version_type=linux
9497 need_lib_prefix=no
9498 need_version=no
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 shlibpath_overrides_runpath=no
9504 hardcode_into_libs=yes
9505 ;;
9506
9507 irix5* | irix6* | nonstopux*)
9508 case $host_os in
9509 nonstopux*) version_type=nonstopux ;;
9510 *)
9511 if test "$lt_cv_prog_gnu_ld" = yes; then
9512 version_type=linux
9513 else
9514 version_type=irix
9515 fi ;;
9516 esac
9517 need_lib_prefix=no
9518 need_version=no
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9521 case $host_os in
9522 irix5* | nonstopux*)
9523 libsuff= shlibsuff=
9524 ;;
9525 *)
9526 case $LD in # libtool.m4 will add one of these switches to LD
9527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9528 libsuff= shlibsuff= libmagic=32-bit;;
9529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9530 libsuff=32 shlibsuff=N32 libmagic=N32;;
9531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9533 *) libsuff= shlibsuff= libmagic=never-match;;
9534 esac
9535 ;;
9536 esac
9537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9538 shlibpath_overrides_runpath=no
9539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9541 hardcode_into_libs=yes
9542 ;;
9543
9544 # No shared lib support for Linux oldld, aout, or coff.
9545 linux*oldld* | linux*aout* | linux*coff*)
9546 dynamic_linker=no
9547 ;;
9548
9549 # This must be Linux ELF.
9550 linux* | k*bsd*-gnu)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=no
9559 # Some binutils ld are patched to set DT_RUNPATH
9560 save_LDFLAGS=$LDFLAGS
9561 save_libdir=$libdir
9562 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9563 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570
9571 int
9572 main ()
9573 {
9574
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9598 shlibpath_overrides_runpath=yes
9599 fi
9600
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605
9606 fi
9607
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LDFLAGS=$save_LDFLAGS
9611 libdir=$save_libdir
9612
9613 # This implies no fast_install, which is unacceptable.
9614 # Some rework will be needed to allow for fast_install
9615 # before this can be enabled.
9616 hardcode_into_libs=yes
9617
9618 # Append ld.so.conf contents to the search path
9619 if test -f /etc/ld.so.conf; then
9620 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;/^$/d' | tr '\n' ' '`
9621 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9622 fi
9623
9624 # We used to test for /lib/ld.so.1 and disable shared libraries on
9625 # powerpc, because MkLinux only supported shared libraries with the
9626 # GNU dynamic linker. Since this was broken with cross compilers,
9627 # most powerpc-linux boxes support dynamic linking these days and
9628 # people can always --disable-shared, the test was removed, and we
9629 # assume the GNU/Linux dynamic linker is in use.
9630 dynamic_linker='GNU/Linux ld.so'
9631 ;;
9632
9633 netbsdelf*-gnu)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 shlibpath_overrides_runpath=no
9641 hardcode_into_libs=yes
9642 dynamic_linker='NetBSD ld.elf_so'
9643 ;;
9644
9645 netbsd*)
9646 version_type=sunos
9647 need_lib_prefix=no
9648 need_version=no
9649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9652 dynamic_linker='NetBSD (a.out) ld.so'
9653 else
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9656 dynamic_linker='NetBSD ld.elf_so'
9657 fi
9658 shlibpath_var=LD_LIBRARY_PATH
9659 shlibpath_overrides_runpath=yes
9660 hardcode_into_libs=yes
9661 ;;
9662
9663 newsos6)
9664 version_type=linux
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes
9668 ;;
9669
9670 *nto* | *qnx*)
9671 version_type=qnx
9672 need_lib_prefix=no
9673 need_version=no
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=no
9678 hardcode_into_libs=yes
9679 dynamic_linker='ldqnx.so'
9680 ;;
9681
9682 openbsd*)
9683 version_type=sunos
9684 sys_lib_dlsearch_path_spec="/usr/lib"
9685 need_lib_prefix=no
9686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9687 case $host_os in
9688 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9689 *) need_version=no ;;
9690 esac
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9695 case $host_os in
9696 openbsd2.[89] | openbsd2.[89].*)
9697 shlibpath_overrides_runpath=no
9698 ;;
9699 *)
9700 shlibpath_overrides_runpath=yes
9701 ;;
9702 esac
9703 else
9704 shlibpath_overrides_runpath=yes
9705 fi
9706 ;;
9707
9708 os2*)
9709 libname_spec='$name'
9710 shrext_cmds=".dll"
9711 need_lib_prefix=no
9712 library_names_spec='$libname${shared_ext} $libname.a'
9713 dynamic_linker='OS/2 ld.exe'
9714 shlibpath_var=LIBPATH
9715 ;;
9716
9717 osf3* | osf4* | osf5*)
9718 version_type=osf
9719 need_lib_prefix=no
9720 need_version=no
9721 soname_spec='${libname}${release}${shared_ext}$major'
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9726 ;;
9727
9728 rdos*)
9729 dynamic_linker=no
9730 ;;
9731
9732 solaris*)
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 shlibpath_overrides_runpath=yes
9740 hardcode_into_libs=yes
9741 # ldd complains unless libraries are executable
9742 postinstall_cmds='chmod +x $lib'
9743 ;;
9744
9745 sunos4*)
9746 version_type=sunos
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9748 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9749 shlibpath_var=LD_LIBRARY_PATH
9750 shlibpath_overrides_runpath=yes
9751 if test "$with_gnu_ld" = yes; then
9752 need_lib_prefix=no
9753 fi
9754 need_version=yes
9755 ;;
9756
9757 sysv4 | sysv4.3*)
9758 version_type=linux
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 case $host_vendor in
9763 sni)
9764 shlibpath_overrides_runpath=no
9765 need_lib_prefix=no
9766 runpath_var=LD_RUN_PATH
9767 ;;
9768 siemens)
9769 need_lib_prefix=no
9770 ;;
9771 motorola)
9772 need_lib_prefix=no
9773 need_version=no
9774 shlibpath_overrides_runpath=no
9775 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9776 ;;
9777 esac
9778 ;;
9779
9780 sysv4*MP*)
9781 if test -d /usr/nec ;then
9782 version_type=linux
9783 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9784 soname_spec='$libname${shared_ext}.$major'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 fi
9787 ;;
9788
9789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9790 version_type=freebsd-elf
9791 need_lib_prefix=no
9792 need_version=no
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 shlibpath_var=LD_LIBRARY_PATH
9796 shlibpath_overrides_runpath=yes
9797 hardcode_into_libs=yes
9798 if test "$with_gnu_ld" = yes; then
9799 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9800 else
9801 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9802 case $host_os in
9803 sco3.2v5*)
9804 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9805 ;;
9806 esac
9807 fi
9808 sys_lib_dlsearch_path_spec='/usr/lib'
9809 ;;
9810
9811 tpf*)
9812 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9813 version_type=linux
9814 need_lib_prefix=no
9815 need_version=no
9816 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=no
9819 hardcode_into_libs=yes
9820 ;;
9821
9822 uts4*)
9823 version_type=linux
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 ;;
9828
9829 *)
9830 dynamic_linker=no
9831 ;;
9832 esac
9833 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9834 echo "${ECHO_T}$dynamic_linker" >&6; }
9835 test "$dynamic_linker" = no && can_build_shared=no
9836
9837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9838 if test "$GCC" = yes; then
9839 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9840 fi
9841
9842 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9843 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9844 fi
9845 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9846 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9847 fi
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9936 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9937 hardcode_action=
9938 if test -n "$hardcode_libdir_flag_spec" ||
9939 test -n "$runpath_var" ||
9940 test "X$hardcode_automatic" = "Xyes" ; then
9941
9942 # We can hardcode non-existent directories.
9943 if test "$hardcode_direct" != no &&
9944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9945 # have to relink, otherwise we might link with an installed library
9946 # when we should be linking with a yet-to-be-installed one
9947 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9948 test "$hardcode_minus_L" != no; then
9949 # Linking always hardcodes the temporary library directory.
9950 hardcode_action=relink
9951 else
9952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9953 hardcode_action=immediate
9954 fi
9955 else
9956 # We cannot hardcode anything, or else we can only hardcode existing
9957 # directories.
9958 hardcode_action=unsupported
9959 fi
9960 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9961 echo "${ECHO_T}$hardcode_action" >&6; }
9962
9963 if test "$hardcode_action" = relink ||
9964 test "$inherit_rpath" = yes; then
9965 # Fast installation is not supported
9966 enable_fast_install=no
9967 elif test "$shlibpath_overrides_runpath" = yes ||
9968 test "$enable_shared" = no; then
9969 # Fast installation is not necessary
9970 enable_fast_install=needless
9971 fi
9972
9973
9974
9975
9976
9977
9978 if test "x$enable_dlopen" != xyes; then
9979 enable_dlopen=unknown
9980 enable_dlopen_self=unknown
9981 enable_dlopen_self_static=unknown
9982 else
9983 lt_cv_dlopen=no
9984 lt_cv_dlopen_libs=
9985
9986 case $host_os in
9987 beos*)
9988 lt_cv_dlopen="load_add_on"
9989 lt_cv_dlopen_libs=
9990 lt_cv_dlopen_self=yes
9991 ;;
9992
9993 mingw* | pw32*)
9994 lt_cv_dlopen="LoadLibrary"
9995 lt_cv_dlopen_libs=
9996 ;;
9997
9998 cygwin*)
9999 lt_cv_dlopen="dlopen"
10000 lt_cv_dlopen_libs=
10001 ;;
10002
10003 darwin*)
10004 # if libdl is installed we need to link against it
10005 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-ldl $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char dlopen ();
10026 int
10027 main ()
10028 {
10029 return dlopen ();
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && {
10048 test -z "$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 } && test -s conftest$ac_exeext &&
10051 $as_test_x conftest$ac_exeext; then
10052 ac_cv_lib_dl_dlopen=yes
10053 else
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_cv_lib_dl_dlopen=no
10058 fi
10059
10060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10063 fi
10064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10065 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10066 if test $ac_cv_lib_dl_dlopen = yes; then
10067 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10068 else
10069
10070 lt_cv_dlopen="dyld"
10071 lt_cv_dlopen_libs=
10072 lt_cv_dlopen_self=yes
10073
10074 fi
10075
10076 ;;
10077
10078 *)
10079 { echo "$as_me:$LINENO: checking for shl_load" >&5
10080 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10081 if test "${ac_cv_func_shl_load+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h. */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10092 #define shl_load innocuous_shl_load
10093
10094 /* System header to define __stub macros and hopefully few prototypes,
10095 which can conflict with char shl_load (); below.
10096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10097 <limits.h> exists even on freestanding compilers. */
10098
10099 #ifdef __STDC__
10100 # include <limits.h>
10101 #else
10102 # include <assert.h>
10103 #endif
10104
10105 #undef shl_load
10106
10107 /* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 char shl_load ();
10114 /* The GNU C library defines this for functions which it implements
10115 to always fail with ENOSYS. Some functions are actually named
10116 something starting with __ and the normal name is an alias. */
10117 #if defined __stub_shl_load || defined __stub___shl_load
10118 choke me
10119 #endif
10120
10121 int
10122 main ()
10123 {
10124 return shl_load ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest$ac_exeext &&
10146 $as_test_x conftest$ac_exeext; then
10147 ac_cv_func_shl_load=yes
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_cv_func_shl_load=no
10153 fi
10154
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157 fi
10158 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10159 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10160 if test $ac_cv_func_shl_load = yes; then
10161 lt_cv_dlopen="shl_load"
10162 else
10163 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10164 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10165 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-ldld $LIBS"
10170 cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h. */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176
10177 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10180 #ifdef __cplusplus
10181 extern "C"
10182 #endif
10183 char shl_load ();
10184 int
10185 main ()
10186 {
10187 return shl_load ();
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (ac_try="$ac_link"
10194 case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_link") 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } && {
10206 test -z "$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10208 } && test -s conftest$ac_exeext &&
10209 $as_test_x conftest$ac_exeext; then
10210 ac_cv_lib_dld_shl_load=yes
10211 else
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10214
10215 ac_cv_lib_dld_shl_load=no
10216 fi
10217
10218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LIBS=$ac_check_lib_save_LIBS
10221 fi
10222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10224 if test $ac_cv_lib_dld_shl_load = yes; then
10225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10226 else
10227 { echo "$as_me:$LINENO: checking for dlopen" >&5
10228 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10229 if test "${ac_cv_func_dlopen+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10240 #define dlopen innocuous_dlopen
10241
10242 /* System header to define __stub macros and hopefully few prototypes,
10243 which can conflict with char dlopen (); below.
10244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10245 <limits.h> exists even on freestanding compilers. */
10246
10247 #ifdef __STDC__
10248 # include <limits.h>
10249 #else
10250 # include <assert.h>
10251 #endif
10252
10253 #undef dlopen
10254
10255 /* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
10258 #ifdef __cplusplus
10259 extern "C"
10260 #endif
10261 char dlopen ();
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined __stub_dlopen || defined __stub___dlopen
10266 choke me
10267 #endif
10268
10269 int
10270 main ()
10271 {
10272 return dlopen ();
10273 ;
10274 return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (ac_try="$ac_link"
10279 case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10282 esac
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_link") 2>conftest.er1
10285 ac_status=$?
10286 grep -v '^ *+' conftest.er1 >conftest.err
10287 rm -f conftest.er1
10288 cat conftest.err >&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && {
10291 test -z "$ac_c_werror_flag" ||
10292 test ! -s conftest.err
10293 } && test -s conftest$ac_exeext &&
10294 $as_test_x conftest$ac_exeext; then
10295 ac_cv_func_dlopen=yes
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300 ac_cv_func_dlopen=no
10301 fi
10302
10303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10304 conftest$ac_exeext conftest.$ac_ext
10305 fi
10306 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10307 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10308 if test $ac_cv_func_dlopen = yes; then
10309 lt_cv_dlopen="dlopen"
10310 else
10311 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 ac_check_lib_save_LIBS=$LIBS
10317 LIBS="-ldl $LIBS"
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char dlopen ();
10332 int
10333 main ()
10334 {
10335 return dlopen ();
10336 ;
10337 return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (ac_try="$ac_link"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && {
10354 test -z "$ac_c_werror_flag" ||
10355 test ! -s conftest.err
10356 } && test -s conftest$ac_exeext &&
10357 $as_test_x conftest$ac_exeext; then
10358 ac_cv_lib_dl_dlopen=yes
10359 else
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_cv_lib_dl_dlopen=no
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367 conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10369 fi
10370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10372 if test $ac_cv_lib_dl_dlopen = yes; then
10373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10374 else
10375 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10376 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10377 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lsvld $LIBS"
10382 cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h. */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char dlopen ();
10396 int
10397 main ()
10398 {
10399 return dlopen ();
10400 ;
10401 return 0;
10402 }
10403 _ACEOF
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest$ac_exeext &&
10421 $as_test_x conftest$ac_exeext; then
10422 ac_cv_lib_svld_dlopen=yes
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_cv_lib_svld_dlopen=no
10428 fi
10429
10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431 conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$ac_check_lib_save_LIBS
10433 fi
10434 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10435 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10436 if test $ac_cv_lib_svld_dlopen = yes; then
10437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10438 else
10439 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10440 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10441 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-ldld $LIBS"
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char dld_link ();
10460 int
10461 main ()
10462 {
10463 return dld_link ();
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest$ac_exeext &&
10485 $as_test_x conftest$ac_exeext; then
10486 ac_cv_lib_dld_dld_link=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_cv_lib_dld_dld_link=no
10492 fi
10493
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LIBS=$ac_check_lib_save_LIBS
10497 fi
10498 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10499 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10500 if test $ac_cv_lib_dld_dld_link = yes; then
10501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10502 fi
10503
10504
10505 fi
10506
10507
10508 fi
10509
10510
10511 fi
10512
10513
10514 fi
10515
10516
10517 fi
10518
10519 ;;
10520 esac
10521
10522 if test "x$lt_cv_dlopen" != xno; then
10523 enable_dlopen=yes
10524 else
10525 enable_dlopen=no
10526 fi
10527
10528 case $lt_cv_dlopen in
10529 dlopen)
10530 save_CPPFLAGS="$CPPFLAGS"
10531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10532
10533 save_LDFLAGS="$LDFLAGS"
10534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10535
10536 save_LIBS="$LIBS"
10537 LIBS="$lt_cv_dlopen_libs $LIBS"
10538
10539 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10540 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10541 if test "${lt_cv_dlopen_self+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 if test "$cross_compiling" = yes; then :
10545 lt_cv_dlopen_self=cross
10546 else
10547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10548 lt_status=$lt_dlunknown
10549 cat > conftest.$ac_ext <<_LT_EOF
10550 #line 10550 "configure"
10551 #include "confdefs.h"
10552
10553 #if HAVE_DLFCN_H
10554 #include <dlfcn.h>
10555 #endif
10556
10557 #include <stdio.h>
10558
10559 #ifdef RTLD_GLOBAL
10560 # define LT_DLGLOBAL RTLD_GLOBAL
10561 #else
10562 # ifdef DL_GLOBAL
10563 # define LT_DLGLOBAL DL_GLOBAL
10564 # else
10565 # define LT_DLGLOBAL 0
10566 # endif
10567 #endif
10568
10569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10570 find out it does not work in some platform. */
10571 #ifndef LT_DLLAZY_OR_NOW
10572 # ifdef RTLD_LAZY
10573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10574 # else
10575 # ifdef DL_LAZY
10576 # define LT_DLLAZY_OR_NOW DL_LAZY
10577 # else
10578 # ifdef RTLD_NOW
10579 # define LT_DLLAZY_OR_NOW RTLD_NOW
10580 # else
10581 # ifdef DL_NOW
10582 # define LT_DLLAZY_OR_NOW DL_NOW
10583 # else
10584 # define LT_DLLAZY_OR_NOW 0
10585 # endif
10586 # endif
10587 # endif
10588 # endif
10589 #endif
10590
10591 #ifdef __cplusplus
10592 extern "C" void exit (int);
10593 #endif
10594
10595 void fnord() { int i=42;}
10596 int main ()
10597 {
10598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10599 int status = $lt_dlunknown;
10600
10601 if (self)
10602 {
10603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10605 /* dlclose (self); */
10606 }
10607 else
10608 puts (dlerror ());
10609
10610 exit (status);
10611 }
10612 _LT_EOF
10613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614 (eval $ac_link) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10618 (./conftest; exit; ) >&5 2>/dev/null
10619 lt_status=$?
10620 case x$lt_status in
10621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10623 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10624 esac
10625 else :
10626 # compilation failed
10627 lt_cv_dlopen_self=no
10628 fi
10629 fi
10630 rm -fr conftest*
10631
10632
10633 fi
10634 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10635 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10636
10637 if test "x$lt_cv_dlopen_self" = xyes; then
10638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10639 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10640 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10641 if test "${lt_cv_dlopen_self_static+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 if test "$cross_compiling" = yes; then :
10645 lt_cv_dlopen_self_static=cross
10646 else
10647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10648 lt_status=$lt_dlunknown
10649 cat > conftest.$ac_ext <<_LT_EOF
10650 #line 10650 "configure"
10651 #include "confdefs.h"
10652
10653 #if HAVE_DLFCN_H
10654 #include <dlfcn.h>
10655 #endif
10656
10657 #include <stdio.h>
10658
10659 #ifdef RTLD_GLOBAL
10660 # define LT_DLGLOBAL RTLD_GLOBAL
10661 #else
10662 # ifdef DL_GLOBAL
10663 # define LT_DLGLOBAL DL_GLOBAL
10664 # else
10665 # define LT_DLGLOBAL 0
10666 # endif
10667 #endif
10668
10669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10670 find out it does not work in some platform. */
10671 #ifndef LT_DLLAZY_OR_NOW
10672 # ifdef RTLD_LAZY
10673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10674 # else
10675 # ifdef DL_LAZY
10676 # define LT_DLLAZY_OR_NOW DL_LAZY
10677 # else
10678 # ifdef RTLD_NOW
10679 # define LT_DLLAZY_OR_NOW RTLD_NOW
10680 # else
10681 # ifdef DL_NOW
10682 # define LT_DLLAZY_OR_NOW DL_NOW
10683 # else
10684 # define LT_DLLAZY_OR_NOW 0
10685 # endif
10686 # endif
10687 # endif
10688 # endif
10689 #endif
10690
10691 #ifdef __cplusplus
10692 extern "C" void exit (int);
10693 #endif
10694
10695 void fnord() { int i=42;}
10696 int main ()
10697 {
10698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699 int status = $lt_dlunknown;
10700
10701 if (self)
10702 {
10703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705 /* dlclose (self); */
10706 }
10707 else
10708 puts (dlerror ());
10709
10710 exit (status);
10711 }
10712 _LT_EOF
10713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714 (eval $ac_link) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10718 (./conftest; exit; ) >&5 2>/dev/null
10719 lt_status=$?
10720 case x$lt_status in
10721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10724 esac
10725 else :
10726 # compilation failed
10727 lt_cv_dlopen_self_static=no
10728 fi
10729 fi
10730 rm -fr conftest*
10731
10732
10733 fi
10734 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10736 fi
10737
10738 CPPFLAGS="$save_CPPFLAGS"
10739 LDFLAGS="$save_LDFLAGS"
10740 LIBS="$save_LIBS"
10741 ;;
10742 esac
10743
10744 case $lt_cv_dlopen_self in
10745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10746 *) enable_dlopen_self=unknown ;;
10747 esac
10748
10749 case $lt_cv_dlopen_self_static in
10750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10751 *) enable_dlopen_self_static=unknown ;;
10752 esac
10753 fi
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771 striplib=
10772 old_striplib=
10773 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10774 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10775 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10778 { echo "$as_me:$LINENO: result: yes" >&5
10779 echo "${ECHO_T}yes" >&6; }
10780 else
10781 # FIXME - insert some real tests, host_os isn't really good enough
10782 case $host_os in
10783 darwin*)
10784 if test -n "$STRIP" ; then
10785 striplib="$STRIP -x"
10786 old_striplib="$STRIP -S"
10787 { echo "$as_me:$LINENO: result: yes" >&5
10788 echo "${ECHO_T}yes" >&6; }
10789 else
10790 { echo "$as_me:$LINENO: result: no" >&5
10791 echo "${ECHO_T}no" >&6; }
10792 fi
10793 ;;
10794 *)
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10797 ;;
10798 esac
10799 fi
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812 # Report which library types will actually be built
10813 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10814 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10815 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10816 echo "${ECHO_T}$can_build_shared" >&6; }
10817
10818 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10819 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10820 test "$can_build_shared" = "no" && enable_shared=no
10821
10822 # On AIX, shared libraries and static libraries use the same namespace, and
10823 # are all built from PIC.
10824 case $host_os in
10825 aix3*)
10826 test "$enable_shared" = yes && enable_static=no
10827 if test -n "$RANLIB"; then
10828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10829 postinstall_cmds='$RANLIB $lib'
10830 fi
10831 ;;
10832
10833 aix[4-9]*)
10834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10835 test "$enable_shared" = yes && enable_static=no
10836 fi
10837 ;;
10838 esac
10839 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10840 echo "${ECHO_T}$enable_shared" >&6; }
10841
10842 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10843 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10844 # Make sure either enable_shared or enable_static is yes.
10845 test "$enable_shared" = yes || enable_static=yes
10846 { echo "$as_me:$LINENO: result: $enable_static" >&5
10847 echo "${ECHO_T}$enable_static" >&6; }
10848
10849
10850
10851
10852 fi
10853 ac_ext=cpp
10854 ac_cpp='$CXXCPP $CPPFLAGS'
10855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10858
10859 CC="$lt_save_CC"
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873 ac_config_commands="$ac_config_commands libtool"
10874
10875
10876
10877
10878 # Only expand once:
10879
10880
10881
10882
10883 ac_ext=cpp
10884 ac_cpp='$CXXCPP $CPPFLAGS'
10885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10888 if test -z "$CXX"; then
10889 if test -n "$CCC"; then
10890 CXX=$CCC
10891 else
10892 if test -n "$ac_tool_prefix"; then
10893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10894 do
10895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10899 if test "${ac_cv_prog_CXX+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 if test -n "$CXX"; then
10903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10904 else
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916 done
10917 done
10918 IFS=$as_save_IFS
10919
10920 fi
10921 fi
10922 CXX=$ac_cv_prog_CXX
10923 if test -n "$CXX"; then
10924 { echo "$as_me:$LINENO: result: $CXX" >&5
10925 echo "${ECHO_T}$CXX" >&6; }
10926 else
10927 { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10929 fi
10930
10931
10932 test -n "$CXX" && break
10933 done
10934 fi
10935 if test -z "$CXX"; then
10936 ac_ct_CXX=$CXX
10937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10938 do
10939 # Extract the first word of "$ac_prog", so it can be a program name with args.
10940 set dummy $ac_prog; ac_word=$2
10941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946 if test -n "$ac_ct_CXX"; then
10947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10948 else
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10951 do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_prog_ac_ct_CXX="$ac_prog"
10957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10959 fi
10960 done
10961 done
10962 IFS=$as_save_IFS
10963
10964 fi
10965 fi
10966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10967 if test -n "$ac_ct_CXX"; then
10968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
10970 else
10971 { echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6; }
10973 fi
10974
10975
10976 test -n "$ac_ct_CXX" && break
10977 done
10978
10979 if test "x$ac_ct_CXX" = x; then
10980 CXX="g++"
10981 else
10982 case $cross_compiling:$ac_tool_warned in
10983 yes:)
10984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10985 whose name does not start with the host triplet. If you think this
10986 configuration is useful to you, please write to [email protected]." >&5
10987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10988 whose name does not start with the host triplet. If you think this
10989 configuration is useful to you, please write to [email protected]." >&2;}
10990 ac_tool_warned=yes ;;
10991 esac
10992 CXX=$ac_ct_CXX
10993 fi
10994 fi
10995
10996 fi
10997 fi
10998 # Provide some information about the compiler.
10999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11000 ac_compiler=`set X $ac_compile; echo $2`
11001 { (ac_try="$ac_compiler --version >&5"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_compiler --version >&5") 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }
11011 { (ac_try="$ac_compiler -v >&5"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_compiler -v >&5") 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }
11021 { (ac_try="$ac_compiler -V >&5"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_compiler -V >&5") 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }
11031
11032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h. */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043
11044 int
11045 main ()
11046 {
11047 #ifndef __GNUC__
11048 choke me
11049 #endif
11050
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (ac_try="$ac_compile"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_compile") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_cxx_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest.$ac_objext; then
11072 ac_compiler_gnu=yes
11073 else
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_compiler_gnu=no
11078 fi
11079
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11082
11083 fi
11084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11086 GXX=`test $ac_compiler_gnu = yes && echo yes`
11087 ac_test_CXXFLAGS=${CXXFLAGS+set}
11088 ac_save_CXXFLAGS=$CXXFLAGS
11089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11091 if test "${ac_cv_prog_cxx_g+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11095 ac_cxx_werror_flag=yes
11096 ac_cv_prog_cxx_g=no
11097 CXXFLAGS="-g"
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104
11105 int
11106 main ()
11107 {
11108
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (ac_try="$ac_compile"
11115 case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_compile") 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && {
11127 test -z "$ac_cxx_werror_flag" ||
11128 test ! -s conftest.err
11129 } && test -s conftest.$ac_objext; then
11130 ac_cv_prog_cxx_g=yes
11131 else
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11134
11135 CXXFLAGS=""
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142
11143 int
11144 main ()
11145 {
11146
11147 ;
11148 return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_compile") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_cxx_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest.$ac_objext; then
11168 :
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11174 CXXFLAGS="-g"
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181
11182 int
11183 main ()
11184 {
11185
11186 ;
11187 return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_cxx_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11207 ac_cv_prog_cxx_g=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 fi
11217
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 fi
11220
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11223 fi
11224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
11226 if test "$ac_test_CXXFLAGS" = set; then
11227 CXXFLAGS=$ac_save_CXXFLAGS
11228 elif test $ac_cv_prog_cxx_g = yes; then
11229 if test "$GXX" = yes; then
11230 CXXFLAGS="-g -O2"
11231 else
11232 CXXFLAGS="-g"
11233 fi
11234 else
11235 if test "$GXX" = yes; then
11236 CXXFLAGS="-O2"
11237 else
11238 CXXFLAGS=
11239 fi
11240 fi
11241 ac_ext=cpp
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11246
11247 depcc="$CXX" am_compiler_list=
11248
11249 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11250 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11251 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11255 # We make a subdir and do the tests there. Otherwise we can end up
11256 # making bogus files that we don't know about and never remove. For
11257 # instance it was reported that on HP-UX the gcc test will end up
11258 # making a dummy file named `D' -- because `-MD' means `put the output
11259 # in D'.
11260 mkdir conftest.dir
11261 # Copy depcomp to subdir because otherwise we won't find it if we're
11262 # using a relative directory.
11263 cp "$am_depcomp" conftest.dir
11264 cd conftest.dir
11265 # We will build objects and dependencies in a subdirectory because
11266 # it helps to detect inapplicable dependency modes. For instance
11267 # both Tru64's cc and ICC support -MD to output dependencies as a
11268 # side effect of compilation, but ICC will put the dependencies in
11269 # the current directory while Tru64 will put them in the object
11270 # directory.
11271 mkdir sub
11272
11273 am_cv_CXX_dependencies_compiler_type=none
11274 if test "$am_compiler_list" = ""; then
11275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11276 fi
11277 for depmode in $am_compiler_list; do
11278 # Setup a source with many dependencies, because some compilers
11279 # like to wrap large dependency lists on column 80 (with \), and
11280 # we should not choose a depcomp mode which is confused by this.
11281 #
11282 # We need to recreate these files for each test, as the compiler may
11283 # overwrite some of them when testing with obscure command lines.
11284 # This happens at least with the AIX C compiler.
11285 : > sub/conftest.c
11286 for i in 1 2 3 4 5 6; do
11287 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11288 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11289 # Solaris 8's {/usr,}/bin/sh.
11290 touch sub/conftst$i.h
11291 done
11292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11293
11294 case $depmode in
11295 nosideeffect)
11296 # after this tag, mechanisms are not by side-effect, so they'll
11297 # only be used when explicitly requested
11298 if test "x$enable_dependency_tracking" = xyes; then
11299 continue
11300 else
11301 break
11302 fi
11303 ;;
11304 none) break ;;
11305 esac
11306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11307 # mode. It turns out that the SunPro C++ compiler does not properly
11308 # handle `-M -o', and we need to detect this.
11309 if depmode=$depmode \
11310 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11312 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11313 >/dev/null 2>conftest.err &&
11314 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11315 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11316 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11317 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11318 # icc doesn't choke on unknown options, it will just issue warnings
11319 # or remarks (even with -Werror). So we grep stderr for any message
11320 # that says an option was ignored or not supported.
11321 # When given -MP, icc 7.0 and 7.1 complain thusly:
11322 # icc: Command line warning: ignoring option '-M'; no argument required
11323 # The diagnosis changed in icc 8.0:
11324 # icc: Command line remark: option '-MP' not supported
11325 if (grep 'ignoring option' conftest.err ||
11326 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11327 am_cv_CXX_dependencies_compiler_type=$depmode
11328 break
11329 fi
11330 fi
11331 done
11332
11333 cd ..
11334 rm -rf conftest.dir
11335 else
11336 am_cv_CXX_dependencies_compiler_type=none
11337 fi
11338
11339 fi
11340 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11341 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
11342 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11343
11344 if
11345 test "x$enable_dependency_tracking" != xno \
11346 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11347 am__fastdepCXX_TRUE=
11348 am__fastdepCXX_FALSE='#'
11349 else
11350 am__fastdepCXX_TRUE='#'
11351 am__fastdepCXX_FALSE=
11352 fi
11353
11354
11355
11356 ac_ext=cpp
11357 ac_cpp='$CXXCPP $CPPFLAGS'
11358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11361 if test -z "$CXX"; then
11362 if test -n "$CCC"; then
11363 CXX=$CCC
11364 else
11365 if test -n "$ac_tool_prefix"; then
11366 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11367 do
11368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11372 if test "${ac_cv_prog_CXX+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 if test -n "$CXX"; then
11376 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11377 else
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11380 do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11385 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11388 fi
11389 done
11390 done
11391 IFS=$as_save_IFS
11392
11393 fi
11394 fi
11395 CXX=$ac_cv_prog_CXX
11396 if test -n "$CXX"; then
11397 { echo "$as_me:$LINENO: result: $CXX" >&5
11398 echo "${ECHO_T}$CXX" >&6; }
11399 else
11400 { echo "$as_me:$LINENO: result: no" >&5
11401 echo "${ECHO_T}no" >&6; }
11402 fi
11403
11404
11405 test -n "$CXX" && break
11406 done
11407 fi
11408 if test -z "$CXX"; then
11409 ac_ct_CXX=$CXX
11410 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11411 do
11412 # Extract the first word of "$ac_prog", so it can be a program name with args.
11413 set dummy $ac_prog; ac_word=$2
11414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11416 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 if test -n "$ac_ct_CXX"; then
11420 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429 ac_cv_prog_ac_ct_CXX="$ac_prog"
11430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433 done
11434 done
11435 IFS=$as_save_IFS
11436
11437 fi
11438 fi
11439 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11440 if test -n "$ac_ct_CXX"; then
11441 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11442 echo "${ECHO_T}$ac_ct_CXX" >&6; }
11443 else
11444 { echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6; }
11446 fi
11447
11448
11449 test -n "$ac_ct_CXX" && break
11450 done
11451
11452 if test "x$ac_ct_CXX" = x; then
11453 CXX="g++"
11454 else
11455 case $cross_compiling:$ac_tool_warned in
11456 yes:)
11457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11458 whose name does not start with the host triplet. If you think this
11459 configuration is useful to you, please write to [email protected]." >&5
11460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11461 whose name does not start with the host triplet. If you think this
11462 configuration is useful to you, please write to [email protected]." >&2;}
11463 ac_tool_warned=yes ;;
11464 esac
11465 CXX=$ac_ct_CXX
11466 fi
11467 fi
11468
11469 fi
11470 fi
11471 # Provide some information about the compiler.
11472 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11473 ac_compiler=`set X $ac_compile; echo $2`
11474 { (ac_try="$ac_compiler --version >&5"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_compiler --version >&5") 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }
11484 { (ac_try="$ac_compiler -v >&5"
11485 case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_compiler -v >&5") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }
11494 { (ac_try="$ac_compiler -V >&5"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compiler -V >&5") 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }
11504
11505 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11506 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11507 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516
11517 int
11518 main ()
11519 {
11520 #ifndef __GNUC__
11521 choke me
11522 #endif
11523
11524 ;
11525 return 0;
11526 }
11527 _ACEOF
11528 rm -f conftest.$ac_objext
11529 if { (ac_try="$ac_compile"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_compile") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_cxx_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest.$ac_objext; then
11545 ac_compiler_gnu=yes
11546 else
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_compiler_gnu=no
11551 fi
11552
11553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11555
11556 fi
11557 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11558 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11559 GXX=`test $ac_compiler_gnu = yes && echo yes`
11560 ac_test_CXXFLAGS=${CXXFLAGS+set}
11561 ac_save_CXXFLAGS=$CXXFLAGS
11562 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11563 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11564 if test "${ac_cv_prog_cxx_g+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11568 ac_cxx_werror_flag=yes
11569 ac_cv_prog_cxx_g=no
11570 CXXFLAGS="-g"
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577
11578 int
11579 main ()
11580 {
11581
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 rm -f conftest.$ac_objext
11587 if { (ac_try="$ac_compile"
11588 case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591 esac
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_compile") 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_cxx_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest.$ac_objext; then
11603 ac_cv_prog_cxx_g=yes
11604 else
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608 CXXFLAGS=""
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615
11616 int
11617 main ()
11618 {
11619
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_cxx_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11641 :
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11645
11646 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11647 CXXFLAGS="-g"
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654
11655 int
11656 main ()
11657 {
11658
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_cxx_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
11680 ac_cv_prog_cxx_g=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685
11686 fi
11687
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 fi
11690
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11696 fi
11697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
11699 if test "$ac_test_CXXFLAGS" = set; then
11700 CXXFLAGS=$ac_save_CXXFLAGS
11701 elif test $ac_cv_prog_cxx_g = yes; then
11702 if test "$GXX" = yes; then
11703 CXXFLAGS="-g -O2"
11704 else
11705 CXXFLAGS="-g"
11706 fi
11707 else
11708 if test "$GXX" = yes; then
11709 CXXFLAGS="-O2"
11710 else
11711 CXXFLAGS=
11712 fi
11713 fi
11714 ac_ext=cpp
11715 ac_cpp='$CXXCPP $CPPFLAGS'
11716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11719
11720 depcc="$CXX" am_compiler_list=
11721
11722 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11723 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11724 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11728 # We make a subdir and do the tests there. Otherwise we can end up
11729 # making bogus files that we don't know about and never remove. For
11730 # instance it was reported that on HP-UX the gcc test will end up
11731 # making a dummy file named `D' -- because `-MD' means `put the output
11732 # in D'.
11733 mkdir conftest.dir
11734 # Copy depcomp to subdir because otherwise we won't find it if we're
11735 # using a relative directory.
11736 cp "$am_depcomp" conftest.dir
11737 cd conftest.dir
11738 # We will build objects and dependencies in a subdirectory because
11739 # it helps to detect inapplicable dependency modes. For instance
11740 # both Tru64's cc and ICC support -MD to output dependencies as a
11741 # side effect of compilation, but ICC will put the dependencies in
11742 # the current directory while Tru64 will put them in the object
11743 # directory.
11744 mkdir sub
11745
11746 am_cv_CXX_dependencies_compiler_type=none
11747 if test "$am_compiler_list" = ""; then
11748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11749 fi
11750 for depmode in $am_compiler_list; do
11751 # Setup a source with many dependencies, because some compilers
11752 # like to wrap large dependency lists on column 80 (with \), and
11753 # we should not choose a depcomp mode which is confused by this.
11754 #
11755 # We need to recreate these files for each test, as the compiler may
11756 # overwrite some of them when testing with obscure command lines.
11757 # This happens at least with the AIX C compiler.
11758 : > sub/conftest.c
11759 for i in 1 2 3 4 5 6; do
11760 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11761 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11762 # Solaris 8's {/usr,}/bin/sh.
11763 touch sub/conftst$i.h
11764 done
11765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11766
11767 case $depmode in
11768 nosideeffect)
11769 # after this tag, mechanisms are not by side-effect, so they'll
11770 # only be used when explicitly requested
11771 if test "x$enable_dependency_tracking" = xyes; then
11772 continue
11773 else
11774 break
11775 fi
11776 ;;
11777 none) break ;;
11778 esac
11779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11780 # mode. It turns out that the SunPro C++ compiler does not properly
11781 # handle `-M -o', and we need to detect this.
11782 if depmode=$depmode \
11783 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11784 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11785 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11786 >/dev/null 2>conftest.err &&
11787 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11788 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11789 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11791 # icc doesn't choke on unknown options, it will just issue warnings
11792 # or remarks (even with -Werror). So we grep stderr for any message
11793 # that says an option was ignored or not supported.
11794 # When given -MP, icc 7.0 and 7.1 complain thusly:
11795 # icc: Command line warning: ignoring option '-M'; no argument required
11796 # The diagnosis changed in icc 8.0:
11797 # icc: Command line remark: option '-MP' not supported
11798 if (grep 'ignoring option' conftest.err ||
11799 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11800 am_cv_CXX_dependencies_compiler_type=$depmode
11801 break
11802 fi
11803 fi
11804 done
11805
11806 cd ..
11807 rm -rf conftest.dir
11808 else
11809 am_cv_CXX_dependencies_compiler_type=none
11810 fi
11811
11812 fi
11813 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11814 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
11815 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11816
11817 if
11818 test "x$enable_dependency_tracking" != xno \
11819 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11820 am__fastdepCXX_TRUE=
11821 am__fastdepCXX_FALSE='#'
11822 else
11823 am__fastdepCXX_TRUE='#'
11824 am__fastdepCXX_FALSE=
11825 fi
11826
11827
11828 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11829 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11830 (test "X$CXX" != "Xg++"))) ; then
11831 ac_ext=cpp
11832 ac_cpp='$CXXCPP $CPPFLAGS'
11833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11836 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11837 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11838 if test -z "$CXXCPP"; then
11839 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 # Double quotes because CXXCPP needs to be expanded
11843 for CXXCPP in "$CXX -E" "/lib/cpp"
11844 do
11845 ac_preproc_ok=false
11846 for ac_cxx_preproc_warn_flag in '' yes
11847 do
11848 # Use a header file that comes with gcc, so configuring glibc
11849 # with a fresh cross-compiler works.
11850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11851 # <limits.h> exists even on freestanding compilers.
11852 # On the NeXT, cc -E runs the code through the compiler's parser,
11853 # not just through cpp. "Syntax error" is here to catch this case.
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #ifdef __STDC__
11861 # include <limits.h>
11862 #else
11863 # include <assert.h>
11864 #endif
11865 Syntax error
11866 _ACEOF
11867 if { (ac_try="$ac_cpp conftest.$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } >/dev/null && {
11880 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11881 test ! -s conftest.err
11882 }; then
11883 :
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 # Broken: fails on valid input.
11889 continue
11890 fi
11891
11892 rm -f conftest.err conftest.$ac_ext
11893
11894 # OK, works on sane cases. Now check whether nonexistent headers
11895 # can be detected and how.
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <ac_nonexistent.h>
11903 _ACEOF
11904 if { (ac_try="$ac_cpp conftest.$ac_ext"
11905 case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } >/dev/null && {
11917 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11918 test ! -s conftest.err
11919 }; then
11920 # Broken: success on invalid input.
11921 continue
11922 else
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 # Passes both tests.
11927 ac_preproc_ok=:
11928 break
11929 fi
11930
11931 rm -f conftest.err conftest.$ac_ext
11932
11933 done
11934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11935 rm -f conftest.err conftest.$ac_ext
11936 if $ac_preproc_ok; then
11937 break
11938 fi
11939
11940 done
11941 ac_cv_prog_CXXCPP=$CXXCPP
11942
11943 fi
11944 CXXCPP=$ac_cv_prog_CXXCPP
11945 else
11946 ac_cv_prog_CXXCPP=$CXXCPP
11947 fi
11948 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11949 echo "${ECHO_T}$CXXCPP" >&6; }
11950 ac_preproc_ok=false
11951 for ac_cxx_preproc_warn_flag in '' yes
11952 do
11953 # Use a header file that comes with gcc, so configuring glibc
11954 # with a fresh cross-compiler works.
11955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956 # <limits.h> exists even on freestanding compilers.
11957 # On the NeXT, cc -E runs the code through the compiler's parser,
11958 # not just through cpp. "Syntax error" is here to catch this case.
11959 cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h. */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 #ifdef __STDC__
11966 # include <limits.h>
11967 #else
11968 # include <assert.h>
11969 #endif
11970 Syntax error
11971 _ACEOF
11972 if { (ac_try="$ac_cpp conftest.$ac_ext"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } >/dev/null && {
11985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11986 test ! -s conftest.err
11987 }; then
11988 :
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 # Broken: fails on valid input.
11994 continue
11995 fi
11996
11997 rm -f conftest.err conftest.$ac_ext
11998
11999 # OK, works on sane cases. Now check whether nonexistent headers
12000 # can be detected and how.
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <ac_nonexistent.h>
12008 _ACEOF
12009 if { (ac_try="$ac_cpp conftest.$ac_ext"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } >/dev/null && {
12022 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12023 test ! -s conftest.err
12024 }; then
12025 # Broken: success on invalid input.
12026 continue
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 # Passes both tests.
12032 ac_preproc_ok=:
12033 break
12034 fi
12035
12036 rm -f conftest.err conftest.$ac_ext
12037
12038 done
12039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12040 rm -f conftest.err conftest.$ac_ext
12041 if $ac_preproc_ok; then
12042 :
12043 else
12044 _lt_caught_CXX_error=yes
12045 fi
12046
12047 ac_ext=cpp
12048 ac_cpp='$CXXCPP $CPPFLAGS'
12049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12052
12053 else
12054 _lt_caught_CXX_error=yes
12055 fi
12056
12057
12058
12059
12060 ac_ext=cpp
12061 ac_cpp='$CXXCPP $CPPFLAGS'
12062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12065
12066 archive_cmds_need_lc_CXX=no
12067 allow_undefined_flag_CXX=
12068 always_export_symbols_CXX=no
12069 archive_expsym_cmds_CXX=
12070 compiler_needs_object_CXX=no
12071 export_dynamic_flag_spec_CXX=
12072 hardcode_direct_CXX=no
12073 hardcode_direct_absolute_CXX=no
12074 hardcode_libdir_flag_spec_CXX=
12075 hardcode_libdir_flag_spec_ld_CXX=
12076 hardcode_libdir_separator_CXX=
12077 hardcode_minus_L_CXX=no
12078 hardcode_shlibpath_var_CXX=unsupported
12079 hardcode_automatic_CXX=no
12080 inherit_rpath_CXX=no
12081 module_cmds_CXX=
12082 module_expsym_cmds_CXX=
12083 link_all_deplibs_CXX=unknown
12084 old_archive_cmds_CXX=$old_archive_cmds
12085 no_undefined_flag_CXX=
12086 whole_archive_flag_spec_CXX=
12087 enable_shared_with_static_runtimes_CXX=no
12088
12089 # Source file extension for C++ test sources.
12090 ac_ext=cpp
12091
12092 # Object file extension for compiled C++ test sources.
12093 objext=o
12094 objext_CXX=$objext
12095
12096 # No sense in running all these tests if we already determined that
12097 # the CXX compiler isn't working. Some variables (like enable_shared)
12098 # are currently assumed to apply to all compilers on this platform,
12099 # and will be corrupted by setting them based on a non-working compiler.
12100 if test "$_lt_caught_CXX_error" != yes; then
12101 # Code to be used in simple compile tests
12102 lt_simple_compile_test_code="int some_variable = 0;"
12103
12104 # Code to be used in simple link tests
12105 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12106
12107 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12108
12109
12110
12111
12112
12113
12114 # If no C compiler was specified, use CC.
12115 LTCC=${LTCC-"$CC"}
12116
12117 # If no C compiler flags were specified, use CFLAGS.
12118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12119
12120 # Allow CC to be a program name with arguments.
12121 compiler=$CC
12122
12123
12124 # save warnings/boilerplate of simple test code
12125 ac_outfile=conftest.$ac_objext
12126 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12128 _lt_compiler_boilerplate=`cat conftest.err`
12129 $RM conftest*
12130
12131 ac_outfile=conftest.$ac_objext
12132 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12134 _lt_linker_boilerplate=`cat conftest.err`
12135 $RM -r conftest*
12136
12137
12138 # Allow CC to be a program name with arguments.
12139 lt_save_CC=$CC
12140 lt_save_LD=$LD
12141 lt_save_GCC=$GCC
12142 GCC=$GXX
12143 lt_save_with_gnu_ld=$with_gnu_ld
12144 lt_save_path_LD=$lt_cv_path_LD
12145 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12146 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12147 else
12148 $as_unset lt_cv_prog_gnu_ld
12149 fi
12150 if test -n "${lt_cv_path_LDCXX+set}"; then
12151 lt_cv_path_LD=$lt_cv_path_LDCXX
12152 else
12153 $as_unset lt_cv_path_LD
12154 fi
12155 test -z "${LDCXX+set}" || LD=$LDCXX
12156 CC=${CXX-"c++"}
12157 compiler=$CC
12158 compiler_CXX=$CC
12159 for cc_temp in $compiler""; do
12160 case $cc_temp in
12161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12163 \-*) ;;
12164 *) break;;
12165 esac
12166 done
12167 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12168
12169
12170 if test -n "$compiler"; then
12171 # We don't want -fno-exception when compiling C++ code, so set the
12172 # no_builtin_flag separately
12173 if test "$GXX" = yes; then
12174 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12175 else
12176 lt_prog_compiler_no_builtin_flag_CXX=
12177 fi
12178
12179 if test "$GXX" = yes; then
12180 # Set up default GNU C++ configuration
12181
12182
12183
12184 # Check whether --with-gnu-ld was given.
12185 if test "${with_gnu_ld+set}" = set; then
12186 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12187 else
12188 with_gnu_ld=no
12189 fi
12190
12191 ac_prog=ld
12192 if test "$GCC" = yes; then
12193 # Check if gcc -print-prog-name=ld gives a path.
12194 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12195 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12196 case $host in
12197 *-*-mingw*)
12198 # gcc leaves a trailing carriage return which upsets mingw
12199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12200 *)
12201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12202 esac
12203 case $ac_prog in
12204 # Accept absolute paths.
12205 [\\/]* | ?:[\\/]*)
12206 re_direlt='/[^/][^/]*/\.\./'
12207 # Canonicalize the pathname of ld
12208 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12209 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12210 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12211 done
12212 test -z "$LD" && LD="$ac_prog"
12213 ;;
12214 "")
12215 # If it fails, then pretend we aren't using GCC.
12216 ac_prog=ld
12217 ;;
12218 *)
12219 # If it is relative, then search for the first ld in PATH.
12220 with_gnu_ld=unknown
12221 ;;
12222 esac
12223 elif test "$with_gnu_ld" = yes; then
12224 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12225 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12226 else
12227 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12228 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12229 fi
12230 if test "${lt_cv_path_LD+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 if test -z "$LD"; then
12234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12235 for ac_dir in $PATH; do
12236 IFS="$lt_save_ifs"
12237 test -z "$ac_dir" && ac_dir=.
12238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12239 lt_cv_path_LD="$ac_dir/$ac_prog"
12240 # Check to see if the program is GNU ld. I'd rather use --version,
12241 # but apparently some variants of GNU ld only accept -v.
12242 # Break only if it was the GNU/non-GNU ld that we prefer.
12243 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12244 *GNU* | *'with BFD'*)
12245 test "$with_gnu_ld" != no && break
12246 ;;
12247 *)
12248 test "$with_gnu_ld" != yes && break
12249 ;;
12250 esac
12251 fi
12252 done
12253 IFS="$lt_save_ifs"
12254 else
12255 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12256 fi
12257 fi
12258
12259 LD="$lt_cv_path_LD"
12260 if test -n "$LD"; then
12261 { echo "$as_me:$LINENO: result: $LD" >&5
12262 echo "${ECHO_T}$LD" >&6; }
12263 else
12264 { echo "$as_me:$LINENO: result: no" >&5
12265 echo "${ECHO_T}no" >&6; }
12266 fi
12267 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12268 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12269 { (exit 1); exit 1; }; }
12270 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12271 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12272 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12276 case `$LD -v 2>&1 </dev/null` in
12277 *GNU* | *'with BFD'*)
12278 lt_cv_prog_gnu_ld=yes
12279 ;;
12280 *)
12281 lt_cv_prog_gnu_ld=no
12282 ;;
12283 esac
12284 fi
12285 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12287 with_gnu_ld=$lt_cv_prog_gnu_ld
12288
12289
12290
12291
12292
12293
12294
12295 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12296 # archiving commands below assume that GNU ld is being used.
12297 if test "$with_gnu_ld" = yes; then
12298 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12300
12301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12303
12304 # If archive_cmds runs LD, not CC, wlarc should be empty
12305 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12306 # investigate it a little bit more. (MM)
12307 wlarc='${wl}'
12308
12309 # ancient GNU ld didn't support --whole-archive et. al.
12310 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12311 $GREP 'no-whole-archive' > /dev/null; then
12312 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12313 else
12314 whole_archive_flag_spec_CXX=
12315 fi
12316 else
12317 with_gnu_ld=no
12318 wlarc=
12319
12320 # A generic and very simple default shared library creation
12321 # command for GNU C++ for the case where it uses the native
12322 # linker, instead of GNU ld. If possible, this setting should
12323 # overridden to take advantage of the native linker features on
12324 # the platform it is being used on.
12325 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12326 fi
12327
12328 # Commands to make compiler produce verbose output that lists
12329 # what "hidden" libraries, object files and flags are used when
12330 # linking a shared library.
12331 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12332
12333 else
12334 GXX=no
12335 with_gnu_ld=no
12336 wlarc=
12337 fi
12338
12339 # PORTME: fill in a description of your system's C++ link characteristics
12340 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12342 ld_shlibs_CXX=yes
12343 case $host_os in
12344 aix3*)
12345 # FIXME: insert proper C++ library support
12346 ld_shlibs_CXX=no
12347 ;;
12348 aix[4-9]*)
12349 if test "$host_cpu" = ia64; then
12350 # On IA64, the linker does run time linking by default, so we don't
12351 # have to do anything special.
12352 aix_use_runtimelinking=no
12353 exp_sym_flag='-Bexport'
12354 no_entry_flag=""
12355 else
12356 aix_use_runtimelinking=no
12357
12358 # Test if we are trying to use run time linking or normal
12359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12360 # need to do runtime linking.
12361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12362 for ld_flag in $LDFLAGS; do
12363 case $ld_flag in
12364 *-brtl*)
12365 aix_use_runtimelinking=yes
12366 break
12367 ;;
12368 esac
12369 done
12370 ;;
12371 esac
12372
12373 exp_sym_flag='-bexport'
12374 no_entry_flag='-bnoentry'
12375 fi
12376
12377 # When large executables or shared objects are built, AIX ld can
12378 # have problems creating the table of contents. If linking a library
12379 # or program results in "error TOC overflow" add -mminimal-toc to
12380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12382
12383 archive_cmds_CXX=''
12384 hardcode_direct_CXX=yes
12385 hardcode_direct_absolute_CXX=yes
12386 hardcode_libdir_separator_CXX=':'
12387 link_all_deplibs_CXX=yes
12388 file_list_spec_CXX='${wl}-f,'
12389
12390 if test "$GXX" = yes; then
12391 case $host_os in aix4.[012]|aix4.[012].*)
12392 # We only want to do this on AIX 4.2 and lower, the check
12393 # below for broken collect2 doesn't work under 4.3+
12394 collect2name=`${CC} -print-prog-name=collect2`
12395 if test -f "$collect2name" &&
12396 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12397 then
12398 # We have reworked collect2
12399 :
12400 else
12401 # We have old collect2
12402 hardcode_direct_CXX=unsupported
12403 # It fails to find uninstalled libraries when the uninstalled
12404 # path is not listed in the libpath. Setting hardcode_minus_L
12405 # to unsupported forces relinking
12406 hardcode_minus_L_CXX=yes
12407 hardcode_libdir_flag_spec_CXX='-L$libdir'
12408 hardcode_libdir_separator_CXX=
12409 fi
12410 esac
12411 shared_flag='-shared'
12412 if test "$aix_use_runtimelinking" = yes; then
12413 shared_flag="$shared_flag "'${wl}-G'
12414 fi
12415 else
12416 # not using gcc
12417 if test "$host_cpu" = ia64; then
12418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12419 # chokes on -Wl,-G. The following line is correct:
12420 shared_flag='-G'
12421 else
12422 if test "$aix_use_runtimelinking" = yes; then
12423 shared_flag='${wl}-G'
12424 else
12425 shared_flag='${wl}-bM:SRE'
12426 fi
12427 fi
12428 fi
12429
12430 # It seems that -bexpall does not export symbols beginning with
12431 # underscore (_), so it is better to generate a list of symbols to
12432 # export.
12433 always_export_symbols_CXX=yes
12434 if test "$aix_use_runtimelinking" = yes; then
12435 # Warning - without using the other runtime loading flags (-brtl),
12436 # -berok will link without error, but may produce a broken library.
12437 allow_undefined_flag_CXX='-berok'
12438 # Determine the default libpath from the value encoded in an empty
12439 # executable.
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446
12447 int
12448 main ()
12449 {
12450
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (ac_try="$ac_link"
12457 case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12460 esac
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_link") 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } && {
12469 test -z "$ac_cxx_werror_flag" ||
12470 test ! -s conftest.err
12471 } && test -s conftest$ac_exeext &&
12472 $as_test_x conftest$ac_exeext; then
12473
12474 lt_aix_libpath_sed='
12475 /Import File Strings/,/^$/ {
12476 /^0/ {
12477 s/^0 *\(.*\)$/\1/
12478 p
12479 }
12480 }'
12481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482 # Check for a 64-bit object if we didn't find anything.
12483 if test -z "$aix_libpath"; then
12484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12485 fi
12486 else
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490
12491 fi
12492
12493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12494 conftest$ac_exeext conftest.$ac_ext
12495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12496
12497 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12498
12499 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12500 else
12501 if test "$host_cpu" = ia64; then
12502 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12503 allow_undefined_flag_CXX="-z nodefs"
12504 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"
12505 else
12506 # Determine the default libpath from the value encoded in an
12507 # empty executable.
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514
12515 int
12516 main ()
12517 {
12518
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (ac_try="$ac_link"
12525 case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12528 esac
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_link") 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_cxx_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest$ac_exeext &&
12540 $as_test_x conftest$ac_exeext; then
12541
12542 lt_aix_libpath_sed='
12543 /Import File Strings/,/^$/ {
12544 /^0/ {
12545 s/^0 *\(.*\)$/\1/
12546 p
12547 }
12548 }'
12549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12550 # Check for a 64-bit object if we didn't find anything.
12551 if test -z "$aix_libpath"; then
12552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12553 fi
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558
12559 fi
12560
12561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12562 conftest$ac_exeext conftest.$ac_ext
12563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12564
12565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12566 # Warning - without using the other run time loading flags,
12567 # -berok will link without error, but may produce a broken library.
12568 no_undefined_flag_CXX=' ${wl}-bernotok'
12569 allow_undefined_flag_CXX=' ${wl}-berok'
12570 # Exported symbols can be pulled into shared objects from archives
12571 whole_archive_flag_spec_CXX='$convenience'
12572 archive_cmds_need_lc_CXX=yes
12573 # This is similar to how AIX traditionally builds its shared
12574 # libraries.
12575 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'
12576 fi
12577 fi
12578 ;;
12579
12580 beos*)
12581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12582 allow_undefined_flag_CXX=unsupported
12583 # Joseph Beckenbach <[email protected]> says some releases of gcc
12584 # support --undefined. This deserves some investigation. FIXME
12585 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12586 else
12587 ld_shlibs_CXX=no
12588 fi
12589 ;;
12590
12591 chorus*)
12592 case $cc_basename in
12593 *)
12594 # FIXME: insert proper C++ library support
12595 ld_shlibs_CXX=no
12596 ;;
12597 esac
12598 ;;
12599
12600 cygwin* | mingw* | pw32*)
12601 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12602 # as there is no search path for DLLs.
12603 hardcode_libdir_flag_spec_CXX='-L$libdir'
12604 allow_undefined_flag_CXX=unsupported
12605 always_export_symbols_CXX=no
12606 enable_shared_with_static_runtimes_CXX=yes
12607
12608 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12609 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'
12610 # If the export-symbols file already is a .def file (1st line
12611 # is EXPORTS), use it as is; otherwise, prepend...
12612 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12613 cp $export_symbols $output_objdir/$soname.def;
12614 else
12615 echo EXPORTS > $output_objdir/$soname.def;
12616 cat $export_symbols >> $output_objdir/$soname.def;
12617 fi~
12618 $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'
12619 else
12620 ld_shlibs_CXX=no
12621 fi
12622 ;;
12623 darwin* | rhapsody*)
12624
12625
12626 archive_cmds_need_lc_CXX=no
12627 hardcode_direct_CXX=no
12628 hardcode_automatic_CXX=yes
12629 hardcode_shlibpath_var_CXX=unsupported
12630 whole_archive_flag_spec_CXX=''
12631 link_all_deplibs_CXX=yes
12632 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12633 if test "$GCC" = "yes"; then
12634 output_verbose_link_cmd=echo
12635 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}"
12636 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12637 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}"
12638 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}"
12639 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12640 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}"
12641 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}"
12642 fi
12643
12644 else
12645 ld_shlibs_CXX=no
12646 fi
12647
12648 ;;
12649
12650 dgux*)
12651 case $cc_basename in
12652 ec++*)
12653 # FIXME: insert proper C++ library support
12654 ld_shlibs_CXX=no
12655 ;;
12656 ghcx*)
12657 # Green Hills C++ Compiler
12658 # FIXME: insert proper C++ library support
12659 ld_shlibs_CXX=no
12660 ;;
12661 *)
12662 # FIXME: insert proper C++ library support
12663 ld_shlibs_CXX=no
12664 ;;
12665 esac
12666 ;;
12667
12668 freebsd[12]*)
12669 # C++ shared libraries reported to be fairly broken before
12670 # switch to ELF
12671 ld_shlibs_CXX=no
12672 ;;
12673
12674 freebsd-elf*)
12675 archive_cmds_need_lc_CXX=no
12676 ;;
12677
12678 freebsd* | dragonfly*)
12679 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12680 # conventions
12681 ld_shlibs_CXX=yes
12682 ;;
12683
12684 gnu*)
12685 ;;
12686
12687 hpux9*)
12688 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12689 hardcode_libdir_separator_CXX=:
12690 export_dynamic_flag_spec_CXX='${wl}-E'
12691 hardcode_direct_CXX=yes
12692 hardcode_minus_L_CXX=yes # Not in the search PATH,
12693 # but as the default
12694 # location of the library.
12695
12696 case $cc_basename in
12697 CC*)
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12700 ;;
12701 aCC*)
12702 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'
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12706 #
12707 # There doesn't appear to be a way to prevent this compiler from
12708 # explicitly linking system object files so we need to strip them
12709 # from the output so that they don't get included in the library
12710 # dependencies.
12711 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; $ECHO "X$list" | $Xsed'
12712 ;;
12713 *)
12714 if test "$GXX" = yes; then
12715 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12716 else
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12719 fi
12720 ;;
12721 esac
12722 ;;
12723
12724 hpux10*|hpux11*)
12725 if test $with_gnu_ld = no; then
12726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12727 hardcode_libdir_separator_CXX=:
12728
12729 case $host_cpu in
12730 hppa*64*|ia64*)
12731 ;;
12732 *)
12733 export_dynamic_flag_spec_CXX='${wl}-E'
12734 ;;
12735 esac
12736 fi
12737 case $host_cpu in
12738 hppa*64*|ia64*)
12739 hardcode_direct_CXX=no
12740 hardcode_shlibpath_var_CXX=no
12741 ;;
12742 *)
12743 hardcode_direct_CXX=yes
12744 hardcode_direct_absolute_CXX=yes
12745 hardcode_minus_L_CXX=yes # Not in the search PATH,
12746 # but as the default
12747 # location of the library.
12748 ;;
12749 esac
12750
12751 case $cc_basename in
12752 CC*)
12753 # FIXME: insert proper C++ library support
12754 ld_shlibs_CXX=no
12755 ;;
12756 aCC*)
12757 case $host_cpu in
12758 hppa*64*)
12759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12760 ;;
12761 ia64*)
12762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12763 ;;
12764 *)
12765 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12766 ;;
12767 esac
12768 # Commands to make compiler produce verbose output that lists
12769 # what "hidden" libraries, object files and flags are used when
12770 # linking a shared library.
12771 #
12772 # There doesn't appear to be a way to prevent this compiler from
12773 # explicitly linking system object files so we need to strip them
12774 # from the output so that they don't get included in the library
12775 # dependencies.
12776 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; $ECHO "X$list" | $Xsed'
12777 ;;
12778 *)
12779 if test "$GXX" = yes; then
12780 if test $with_gnu_ld = no; then
12781 case $host_cpu in
12782 hppa*64*)
12783 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12784 ;;
12785 ia64*)
12786 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787 ;;
12788 *)
12789 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12790 ;;
12791 esac
12792 fi
12793 else
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12796 fi
12797 ;;
12798 esac
12799 ;;
12800
12801 interix[3-9]*)
12802 hardcode_direct_CXX=no
12803 hardcode_shlibpath_var_CXX=no
12804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12805 export_dynamic_flag_spec_CXX='${wl}-E'
12806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12807 # Instead, shared libraries are loaded at an image base (0x10000000 by
12808 # default) and relocated if they conflict, which is a slow very memory
12809 # consuming and fragmenting process. To avoid this, we pick a random,
12810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12812 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'
12813 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'
12814 ;;
12815 irix5* | irix6*)
12816 case $cc_basename in
12817 CC*)
12818 # SGI C++
12819 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12820
12821 # Archives containing C++ object files must be created using
12822 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12823 # necessary to make sure instantiated templates are included
12824 # in the archive.
12825 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12826 ;;
12827 *)
12828 if test "$GXX" = yes; then
12829 if test "$with_gnu_ld" = no; then
12830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12831 else
12832 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12833 fi
12834 fi
12835 link_all_deplibs_CXX=yes
12836 ;;
12837 esac
12838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12839 hardcode_libdir_separator_CXX=:
12840 inherit_rpath_CXX=yes
12841 ;;
12842
12843 linux* | k*bsd*-gnu)
12844 case $cc_basename in
12845 KCC*)
12846 # Kuck and Associates, Inc. (KAI) C++ Compiler
12847
12848 # KCC will only create a shared library if the output file
12849 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12850 # to its proper name (with version) after linking.
12851 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'
12852 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'
12853 # Commands to make compiler produce verbose output that lists
12854 # what "hidden" libraries, object files and flags are used when
12855 # linking a shared library.
12856 #
12857 # There doesn't appear to be a way to prevent this compiler from
12858 # explicitly linking system object files so we need to strip them
12859 # from the output so that they don't get included in the library
12860 # dependencies.
12861 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; $ECHO "X$list" | $Xsed'
12862
12863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12865
12866 # Archives containing C++ object files must be created using
12867 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12868 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12869 ;;
12870 icpc* | ecpc* )
12871 # Intel C++
12872 with_gnu_ld=yes
12873 # version 8.0 and above of icpc choke on multiply defined symbols
12874 # if we add $predep_objects and $postdep_objects, however 7.1 and
12875 # earlier do not add the objects themselves.
12876 case `$CC -V 2>&1` in
12877 *"Version 7."*)
12878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879 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'
12880 ;;
12881 *) # Version 8.0 or newer
12882 tmp_idyn=
12883 case $host_cpu in
12884 ia64*) tmp_idyn=' -i_dynamic';;
12885 esac
12886 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 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'
12888 ;;
12889 esac
12890 archive_cmds_need_lc_CXX=no
12891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12893 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12894 ;;
12895 pgCC* | pgcpp*)
12896 # Portland Group C++ compiler
12897 case `$CC -V` in
12898 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12899 prelink_cmds_CXX='tpldir=Template.dir~
12900 rm -rf $tpldir~
12901 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12902 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12903 old_archive_cmds_CXX='tpldir=Template.dir~
12904 rm -rf $tpldir~
12905 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12906 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12907 $RANLIB $oldlib'
12908 archive_cmds_CXX='tpldir=Template.dir~
12909 rm -rf $tpldir~
12910 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12911 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12912 archive_expsym_cmds_CXX='tpldir=Template.dir~
12913 rm -rf $tpldir~
12914 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12915 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12916 ;;
12917 *) # Version 6 will use weak symbols
12918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12919 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'
12920 ;;
12921 esac
12922
12923 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12925 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12926 ;;
12927 cxx*)
12928 # Compaq C++
12929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930 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'
12931
12932 runpath_var=LD_RUN_PATH
12933 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12934 hardcode_libdir_separator_CXX=:
12935
12936 # Commands to make compiler produce verbose output that lists
12937 # what "hidden" libraries, object files and flags are used when
12938 # linking a shared library.
12939 #
12940 # There doesn't appear to be a way to prevent this compiler from
12941 # explicitly linking system object files so we need to strip them
12942 # from the output so that they don't get included in the library
12943 # dependencies.
12944 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12945 ;;
12946 xl*)
12947 # IBM XL 8.0 on PPC, with GNU ld
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12950 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951 if test "x$supports_anon_versioning" = xyes; then
12952 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12954 echo "local: *; };" >> $output_objdir/$libname.ver~
12955 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12956 fi
12957 ;;
12958 *)
12959 case `$CC -V 2>&1 | sed 5q` in
12960 *Sun\ C*)
12961 # Sun C++ 5.9
12962 no_undefined_flag_CXX=' -zdefs'
12963 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12964 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'
12965 hardcode_libdir_flag_spec_CXX='-R$libdir'
12966 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12967 compiler_needs_object_CXX=yes
12968
12969 # Not sure whether something based on
12970 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12971 # would be better.
12972 output_verbose_link_cmd='echo'
12973
12974 # Archives containing C++ object files must be created using
12975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12976 # necessary to make sure instantiated templates are included
12977 # in the archive.
12978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12979 ;;
12980 esac
12981 ;;
12982 esac
12983 ;;
12984
12985 lynxos*)
12986 # FIXME: insert proper C++ library support
12987 ld_shlibs_CXX=no
12988 ;;
12989
12990 m88k*)
12991 # FIXME: insert proper C++ library support
12992 ld_shlibs_CXX=no
12993 ;;
12994
12995 mvs*)
12996 case $cc_basename in
12997 cxx*)
12998 # FIXME: insert proper C++ library support
12999 ld_shlibs_CXX=no
13000 ;;
13001 *)
13002 # FIXME: insert proper C++ library support
13003 ld_shlibs_CXX=no
13004 ;;
13005 esac
13006 ;;
13007
13008 netbsd*)
13009 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13010 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13011 wlarc=
13012 hardcode_libdir_flag_spec_CXX='-R$libdir'
13013 hardcode_direct_CXX=yes
13014 hardcode_shlibpath_var_CXX=no
13015 fi
13016 # Workaround some broken pre-1.5 toolchains
13017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13018 ;;
13019
13020 *nto* | *qnx*)
13021 ld_shlibs_CXX=yes
13022 ;;
13023
13024 openbsd2*)
13025 # C++ shared libraries are fairly broken
13026 ld_shlibs_CXX=no
13027 ;;
13028
13029 openbsd*)
13030 if test -f /usr/libexec/ld.so; then
13031 hardcode_direct_CXX=yes
13032 hardcode_shlibpath_var_CXX=no
13033 hardcode_direct_absolute_CXX=yes
13034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13037 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13038 export_dynamic_flag_spec_CXX='${wl}-E'
13039 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13040 fi
13041 output_verbose_link_cmd=echo
13042 else
13043 ld_shlibs_CXX=no
13044 fi
13045 ;;
13046
13047 osf3* | osf4* | osf5*)
13048 case $cc_basename in
13049 KCC*)
13050 # Kuck and Associates, Inc. (KAI) C++ Compiler
13051
13052 # KCC will only create a shared library if the output file
13053 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13054 # to its proper name (with version) after linking.
13055 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'
13056
13057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13058 hardcode_libdir_separator_CXX=:
13059
13060 # Archives containing C++ object files must be created using
13061 # the KAI C++ compiler.
13062 case $host in
13063 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13064 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13065 esac
13066 ;;
13067 RCC*)
13068 # Rational C++ 2.4.1
13069 # FIXME: insert proper C++ library support
13070 ld_shlibs_CXX=no
13071 ;;
13072 cxx*)
13073 case $host in
13074 osf3*)
13075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13076 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13078 ;;
13079 *)
13080 allow_undefined_flag_CXX=' -expect_unresolved \*'
13081 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13082 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13083 echo "-hidden">> $lib.exp~
13084 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13085 $RM $lib.exp'
13086 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13087 ;;
13088 esac
13089
13090 hardcode_libdir_separator_CXX=:
13091
13092 # Commands to make compiler produce verbose output that lists
13093 # what "hidden" libraries, object files and flags are used when
13094 # linking a shared library.
13095 #
13096 # There doesn't appear to be a way to prevent this compiler from
13097 # explicitly linking system object files so we need to strip them
13098 # from the output so that they don't get included in the library
13099 # dependencies.
13100 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13101 ;;
13102 *)
13103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13105 case $host in
13106 osf3*)
13107 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13108 ;;
13109 *)
13110 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13111 ;;
13112 esac
13113
13114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13115 hardcode_libdir_separator_CXX=:
13116
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
13120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13121
13122 else
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13125 fi
13126 ;;
13127 esac
13128 ;;
13129
13130 psos*)
13131 # FIXME: insert proper C++ library support
13132 ld_shlibs_CXX=no
13133 ;;
13134
13135 sunos4*)
13136 case $cc_basename in
13137 CC*)
13138 # Sun C++ 4.x
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13141 ;;
13142 lcc*)
13143 # Lucid
13144 # FIXME: insert proper C++ library support
13145 ld_shlibs_CXX=no
13146 ;;
13147 *)
13148 # FIXME: insert proper C++ library support
13149 ld_shlibs_CXX=no
13150 ;;
13151 esac
13152 ;;
13153
13154 solaris*)
13155 case $cc_basename in
13156 CC*)
13157 # Sun C++ 4.2, 5.x and Centerline C++
13158 archive_cmds_need_lc_CXX=yes
13159 no_undefined_flag_CXX=' -zdefs'
13160 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13161 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13162 $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'
13163
13164 hardcode_libdir_flag_spec_CXX='-R$libdir'
13165 hardcode_shlibpath_var_CXX=no
13166 case $host_os in
13167 solaris2.[0-5] | solaris2.[0-5].*) ;;
13168 *)
13169 # The compiler driver will combine and reorder linker options,
13170 # but understands `-z linker_flag'.
13171 # Supported since Solaris 2.6 (maybe 2.5.1?)
13172 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13173 ;;
13174 esac
13175 link_all_deplibs_CXX=yes
13176
13177 output_verbose_link_cmd='echo'
13178
13179 # Archives containing C++ object files must be created using
13180 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13181 # necessary to make sure instantiated templates are included
13182 # in the archive.
13183 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13184 ;;
13185 gcx*)
13186 # Green Hills C++ Compiler
13187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13188
13189 # The C++ compiler must be used to create the archive.
13190 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13191 ;;
13192 *)
13193 # GNU C++ compiler with Solaris linker
13194 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13195 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13196 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13197 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13198 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13199 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13200
13201 # Commands to make compiler produce verbose output that lists
13202 # what "hidden" libraries, object files and flags are used when
13203 # linking a shared library.
13204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13205 else
13206 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13207 # platform.
13208 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13209 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13210 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13211
13212 # Commands to make compiler produce verbose output that lists
13213 # what "hidden" libraries, object files and flags are used when
13214 # linking a shared library.
13215 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13216 fi
13217
13218 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13219 case $host_os in
13220 solaris2.[0-5] | solaris2.[0-5].*) ;;
13221 *)
13222 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13223 ;;
13224 esac
13225 fi
13226 ;;
13227 esac
13228 ;;
13229
13230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13231 no_undefined_flag_CXX='${wl}-z,text'
13232 archive_cmds_need_lc_CXX=no
13233 hardcode_shlibpath_var_CXX=no
13234 runpath_var='LD_RUN_PATH'
13235
13236 case $cc_basename in
13237 CC*)
13238 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13239 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13240 ;;
13241 *)
13242 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13243 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13244 ;;
13245 esac
13246 ;;
13247
13248 sysv5* | sco3.2v5* | sco5v6*)
13249 # Note: We can NOT use -z defs as we might desire, because we do not
13250 # link with -lc, and that would cause any symbols used from libc to
13251 # always be unresolved, which means just about no library would
13252 # ever link correctly. If we're not using GNU ld we use -z text
13253 # though, which does catch some bad symbols but isn't as heavy-handed
13254 # as -z defs.
13255 no_undefined_flag_CXX='${wl}-z,text'
13256 allow_undefined_flag_CXX='${wl}-z,nodefs'
13257 archive_cmds_need_lc_CXX=no
13258 hardcode_shlibpath_var_CXX=no
13259 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13260 hardcode_libdir_separator_CXX=':'
13261 link_all_deplibs_CXX=yes
13262 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13263 runpath_var='LD_RUN_PATH'
13264
13265 case $cc_basename in
13266 CC*)
13267 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13268 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 ;;
13270 *)
13271 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13272 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 ;;
13274 esac
13275 ;;
13276
13277 tandem*)
13278 case $cc_basename in
13279 NCC*)
13280 # NonStop-UX NCC 3.20
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13283 ;;
13284 *)
13285 # FIXME: insert proper C++ library support
13286 ld_shlibs_CXX=no
13287 ;;
13288 esac
13289 ;;
13290
13291 vxworks*)
13292 # FIXME: insert proper C++ library support
13293 ld_shlibs_CXX=no
13294 ;;
13295
13296 *)
13297 # FIXME: insert proper C++ library support
13298 ld_shlibs_CXX=no
13299 ;;
13300 esac
13301
13302 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13303 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13304 test "$ld_shlibs_CXX" = no && can_build_shared=no
13305
13306 GCC_CXX="$GXX"
13307 LD_CXX="$LD"
13308
13309 ## CAVEAT EMPTOR:
13310 ## There is no encapsulation within the following macros, do not change
13311 ## the running order or otherwise move them around unless you know exactly
13312 ## what you are doing...
13313 # Dependencies to place before and after the object being linked:
13314 predep_objects_CXX=
13315 postdep_objects_CXX=
13316 predeps_CXX=
13317 postdeps_CXX=
13318 compiler_lib_search_path_CXX=
13319
13320 cat > conftest.$ac_ext <<_LT_EOF
13321 class Foo
13322 {
13323 public:
13324 Foo (void) { a = 0; }
13325 private:
13326 int a;
13327 };
13328 _LT_EOF
13329
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; then
13335 # Parse the compiler output and extract the necessary
13336 # objects, libraries and library flags.
13337
13338 # Sentinel used to keep track of whether or not we are before
13339 # the conftest object file.
13340 pre_test_object_deps_done=no
13341
13342 for p in `eval "$output_verbose_link_cmd"`; do
13343 case $p in
13344
13345 -L* | -R* | -l*)
13346 # Some compilers place space between "-{L,R}" and the path.
13347 # Remove the space.
13348 if test $p = "-L" ||
13349 test $p = "-R"; then
13350 prev=$p
13351 continue
13352 else
13353 prev=
13354 fi
13355
13356 if test "$pre_test_object_deps_done" = no; then
13357 case $p in
13358 -L* | -R*)
13359 # Internal compiler library paths should come after those
13360 # provided the user. The postdeps already come after the
13361 # user supplied libs so there is no need to process them.
13362 if test -z "$compiler_lib_search_path_CXX"; then
13363 compiler_lib_search_path_CXX="${prev}${p}"
13364 else
13365 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13366 fi
13367 ;;
13368 # The "-l" case would never come before the object being
13369 # linked, so don't bother handling this case.
13370 esac
13371 else
13372 if test -z "$postdeps_CXX"; then
13373 postdeps_CXX="${prev}${p}"
13374 else
13375 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13376 fi
13377 fi
13378 ;;
13379
13380 *.$objext)
13381 # This assumes that the test object file only shows up
13382 # once in the compiler output.
13383 if test "$p" = "conftest.$objext"; then
13384 pre_test_object_deps_done=yes
13385 continue
13386 fi
13387
13388 if test "$pre_test_object_deps_done" = no; then
13389 if test -z "$predep_objects_CXX"; then
13390 predep_objects_CXX="$p"
13391 else
13392 predep_objects_CXX="$predep_objects_CXX $p"
13393 fi
13394 else
13395 if test -z "$postdep_objects_CXX"; then
13396 postdep_objects_CXX="$p"
13397 else
13398 postdep_objects_CXX="$postdep_objects_CXX $p"
13399 fi
13400 fi
13401 ;;
13402
13403 *) ;; # Ignore the rest.
13404
13405 esac
13406 done
13407
13408 # Clean up.
13409 rm -f a.out a.exe
13410 else
13411 echo "libtool.m4: error: problem compiling CXX test program"
13412 fi
13413
13414 $RM -f confest.$objext
13415
13416 # PORTME: override above test on systems where it is broken
13417 case $host_os in
13418 interix[3-9]*)
13419 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13420 # hack all around it, let's just trust "g++" to DTRT.
13421 predep_objects_CXX=
13422 postdep_objects_CXX=
13423 postdeps_CXX=
13424 ;;
13425
13426 linux*)
13427 case `$CC -V 2>&1 | sed 5q` in
13428 *Sun\ C*)
13429 # Sun C++ 5.9
13430
13431 # The more standards-conforming stlport4 library is
13432 # incompatible with the Cstd library. Avoid specifying
13433 # it if it's in CXXFLAGS. Ignore libCrun as
13434 # -library=stlport4 depends on it.
13435 case " $CXX $CXXFLAGS " in
13436 *" -library=stlport4 "*)
13437 solaris_use_stlport4=yes
13438 ;;
13439 esac
13440
13441 if test "$solaris_use_stlport4" != yes; then
13442 postdeps_CXX='-library=Cstd -library=Crun'
13443 fi
13444 ;;
13445 esac
13446 ;;
13447
13448 solaris*)
13449 case $cc_basename in
13450 CC*)
13451 # The more standards-conforming stlport4 library is
13452 # incompatible with the Cstd library. Avoid specifying
13453 # it if it's in CXXFLAGS. Ignore libCrun as
13454 # -library=stlport4 depends on it.
13455 case " $CXX $CXXFLAGS " in
13456 *" -library=stlport4 "*)
13457 solaris_use_stlport4=yes
13458 ;;
13459 esac
13460
13461 # Adding this requires a known-good setup of shared libraries for
13462 # Sun compiler versions before 5.6, else PIC objects from an old
13463 # archive will be linked into the output, leading to subtle bugs.
13464 if test "$solaris_use_stlport4" != yes; then
13465 postdeps_CXX='-library=Cstd -library=Crun'
13466 fi
13467 ;;
13468 esac
13469 ;;
13470 esac
13471
13472
13473 case " $postdeps_CXX " in
13474 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13475 esac
13476 compiler_lib_search_dirs_CXX=
13477 if test -n "${compiler_lib_search_path_CXX}"; then
13478 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13479 fi
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511 lt_prog_compiler_wl_CXX=
13512 lt_prog_compiler_pic_CXX=
13513 lt_prog_compiler_static_CXX=
13514
13515 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13516 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13517
13518 # C++ specific cases for pic, static, wl, etc.
13519 if test "$GXX" = yes; then
13520 lt_prog_compiler_wl_CXX='-Wl,'
13521 lt_prog_compiler_static_CXX='-static'
13522
13523 case $host_os in
13524 aix*)
13525 # All AIX code is PIC.
13526 if test "$host_cpu" = ia64; then
13527 # AIX 5 now supports IA64 processor
13528 lt_prog_compiler_static_CXX='-Bstatic'
13529 fi
13530 ;;
13531
13532 amigaos*)
13533 case $host_cpu in
13534 powerpc)
13535 # see comment about AmigaOS4 .so support
13536 lt_prog_compiler_pic_CXX='-fPIC'
13537 ;;
13538 m68k)
13539 # FIXME: we need at least 68020 code to build shared libraries, but
13540 # adding the `-m68020' flag to GCC prevents building anything better,
13541 # like `-m68040'.
13542 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13543 ;;
13544 esac
13545 ;;
13546
13547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13548 # PIC is the default for these OSes.
13549 ;;
13550 mingw* | cygwin* | os2* | pw32*)
13551 # This hack is so that the source file can tell whether it is being
13552 # built for inclusion in a dll (and should export symbols for example).
13553 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13554 # (--disable-auto-import) libraries
13555 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13556 ;;
13557 darwin* | rhapsody*)
13558 # PIC is the default on this platform
13559 # Common symbols not allowed in MH_DYLIB files
13560 lt_prog_compiler_pic_CXX='-fno-common'
13561 ;;
13562 *djgpp*)
13563 # DJGPP does not support shared libraries at all
13564 lt_prog_compiler_pic_CXX=
13565 ;;
13566 interix[3-9]*)
13567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13568 # Instead, we relocate shared libraries at runtime.
13569 ;;
13570 sysv4*MP*)
13571 if test -d /usr/nec; then
13572 lt_prog_compiler_pic_CXX=-Kconform_pic
13573 fi
13574 ;;
13575 hpux*)
13576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13577 # not for PA HP-UX.
13578 case $host_cpu in
13579 hppa*64*|ia64*)
13580 ;;
13581 *)
13582 lt_prog_compiler_pic_CXX='-fPIC'
13583 ;;
13584 esac
13585 ;;
13586 *qnx* | *nto*)
13587 # QNX uses GNU C++, but need to define -shared option too, otherwise
13588 # it will coredump.
13589 lt_prog_compiler_pic_CXX='-fPIC -shared'
13590 ;;
13591 *)
13592 lt_prog_compiler_pic_CXX='-fPIC'
13593 ;;
13594 esac
13595 else
13596 case $host_os in
13597 aix[4-9]*)
13598 # All AIX code is PIC.
13599 if test "$host_cpu" = ia64; then
13600 # AIX 5 now supports IA64 processor
13601 lt_prog_compiler_static_CXX='-Bstatic'
13602 else
13603 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13604 fi
13605 ;;
13606 chorus*)
13607 case $cc_basename in
13608 cxch68*)
13609 # Green Hills C++ Compiler
13610 # _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"
13611 ;;
13612 esac
13613 ;;
13614 dgux*)
13615 case $cc_basename in
13616 ec++*)
13617 lt_prog_compiler_pic_CXX='-KPIC'
13618 ;;
13619 ghcx*)
13620 # Green Hills C++ Compiler
13621 lt_prog_compiler_pic_CXX='-pic'
13622 ;;
13623 *)
13624 ;;
13625 esac
13626 ;;
13627 freebsd* | dragonfly*)
13628 # FreeBSD uses GNU C++
13629 ;;
13630 hpux9* | hpux10* | hpux11*)
13631 case $cc_basename in
13632 CC*)
13633 lt_prog_compiler_wl_CXX='-Wl,'
13634 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13635 if test "$host_cpu" != ia64; then
13636 lt_prog_compiler_pic_CXX='+Z'
13637 fi
13638 ;;
13639 aCC*)
13640 lt_prog_compiler_wl_CXX='-Wl,'
13641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13642 case $host_cpu in
13643 hppa*64*|ia64*)
13644 # +Z the default
13645 ;;
13646 *)
13647 lt_prog_compiler_pic_CXX='+Z'
13648 ;;
13649 esac
13650 ;;
13651 *)
13652 ;;
13653 esac
13654 ;;
13655 interix*)
13656 # This is c89, which is MS Visual C++ (no shared libs)
13657 # Anyone wants to do a port?
13658 ;;
13659 irix5* | irix6* | nonstopux*)
13660 case $cc_basename in
13661 CC*)
13662 lt_prog_compiler_wl_CXX='-Wl,'
13663 lt_prog_compiler_static_CXX='-non_shared'
13664 # CC pic flag -KPIC is the default.
13665 ;;
13666 *)
13667 ;;
13668 esac
13669 ;;
13670 linux* | k*bsd*-gnu)
13671 case $cc_basename in
13672 KCC*)
13673 # KAI C++ Compiler
13674 lt_prog_compiler_wl_CXX='--backend -Wl,'
13675 lt_prog_compiler_pic_CXX='-fPIC'
13676 ;;
13677 icpc* | ecpc* )
13678 # Intel C++
13679 lt_prog_compiler_wl_CXX='-Wl,'
13680 lt_prog_compiler_pic_CXX='-KPIC'
13681 lt_prog_compiler_static_CXX='-static'
13682 ;;
13683 pgCC* | pgcpp*)
13684 # Portland Group C++ compiler
13685 lt_prog_compiler_wl_CXX='-Wl,'
13686 lt_prog_compiler_pic_CXX='-fpic'
13687 lt_prog_compiler_static_CXX='-Bstatic'
13688 ;;
13689 cxx*)
13690 # Compaq C++
13691 # Make sure the PIC flag is empty. It appears that all Alpha
13692 # Linux and Compaq Tru64 Unix objects are PIC.
13693 lt_prog_compiler_pic_CXX=
13694 lt_prog_compiler_static_CXX='-non_shared'
13695 ;;
13696 xlc* | xlC*)
13697 # IBM XL 8.0 on PPC
13698 lt_prog_compiler_wl_CXX='-Wl,'
13699 lt_prog_compiler_pic_CXX='-qpic'
13700 lt_prog_compiler_static_CXX='-qstaticlink'
13701 ;;
13702 *)
13703 case `$CC -V 2>&1 | sed 5q` in
13704 *Sun\ C*)
13705 # Sun C++ 5.9
13706 lt_prog_compiler_pic_CXX='-KPIC'
13707 lt_prog_compiler_static_CXX='-Bstatic'
13708 lt_prog_compiler_wl_CXX='-Qoption ld '
13709 ;;
13710 esac
13711 ;;
13712 esac
13713 ;;
13714 lynxos*)
13715 ;;
13716 m88k*)
13717 ;;
13718 mvs*)
13719 case $cc_basename in
13720 cxx*)
13721 lt_prog_compiler_pic_CXX='-W c,exportall'
13722 ;;
13723 *)
13724 ;;
13725 esac
13726 ;;
13727 netbsd* | netbsdelf*-gnu)
13728 ;;
13729 *qnx* | *nto*)
13730 # QNX uses GNU C++, but need to define -shared option too, otherwise
13731 # it will coredump.
13732 lt_prog_compiler_pic_CXX='-fPIC -shared'
13733 ;;
13734 osf3* | osf4* | osf5*)
13735 case $cc_basename in
13736 KCC*)
13737 lt_prog_compiler_wl_CXX='--backend -Wl,'
13738 ;;
13739 RCC*)
13740 # Rational C++ 2.4.1
13741 lt_prog_compiler_pic_CXX='-pic'
13742 ;;
13743 cxx*)
13744 # Digital/Compaq C++
13745 lt_prog_compiler_wl_CXX='-Wl,'
13746 # Make sure the PIC flag is empty. It appears that all Alpha
13747 # Linux and Compaq Tru64 Unix objects are PIC.
13748 lt_prog_compiler_pic_CXX=
13749 lt_prog_compiler_static_CXX='-non_shared'
13750 ;;
13751 *)
13752 ;;
13753 esac
13754 ;;
13755 psos*)
13756 ;;
13757 solaris*)
13758 case $cc_basename in
13759 CC*)
13760 # Sun C++ 4.2, 5.x and Centerline C++
13761 lt_prog_compiler_pic_CXX='-KPIC'
13762 lt_prog_compiler_static_CXX='-Bstatic'
13763 lt_prog_compiler_wl_CXX='-Qoption ld '
13764 ;;
13765 gcx*)
13766 # Green Hills C++ Compiler
13767 lt_prog_compiler_pic_CXX='-PIC'
13768 ;;
13769 *)
13770 ;;
13771 esac
13772 ;;
13773 sunos4*)
13774 case $cc_basename in
13775 CC*)
13776 # Sun C++ 4.x
13777 lt_prog_compiler_pic_CXX='-pic'
13778 lt_prog_compiler_static_CXX='-Bstatic'
13779 ;;
13780 lcc*)
13781 # Lucid
13782 lt_prog_compiler_pic_CXX='-pic'
13783 ;;
13784 *)
13785 ;;
13786 esac
13787 ;;
13788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13789 case $cc_basename in
13790 CC*)
13791 lt_prog_compiler_wl_CXX='-Wl,'
13792 lt_prog_compiler_pic_CXX='-KPIC'
13793 lt_prog_compiler_static_CXX='-Bstatic'
13794 ;;
13795 esac
13796 ;;
13797 tandem*)
13798 case $cc_basename in
13799 NCC*)
13800 # NonStop-UX NCC 3.20
13801 lt_prog_compiler_pic_CXX='-KPIC'
13802 ;;
13803 *)
13804 ;;
13805 esac
13806 ;;
13807 vxworks*)
13808 ;;
13809 *)
13810 lt_prog_compiler_can_build_shared_CXX=no
13811 ;;
13812 esac
13813 fi
13814
13815 case $host_os in
13816 # For platforms which do not support PIC, -DPIC is meaningless:
13817 *djgpp*)
13818 lt_prog_compiler_pic_CXX=
13819 ;;
13820 *)
13821 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13822 ;;
13823 esac
13824 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13825 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13826
13827
13828
13829 #
13830 # Check to make sure the PIC flag actually works.
13831 #
13832 if test -n "$lt_prog_compiler_pic_CXX"; then
13833 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13834 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13835 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 lt_cv_prog_compiler_pic_works_CXX=no
13839 ac_outfile=conftest.$ac_objext
13840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13841 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13842 # Insert the option either (1) after the last *FLAGS variable, or
13843 # (2) before a word containing "conftest.", or (3) at the end.
13844 # Note that $ac_compile itself does not contain backslashes and begins
13845 # with a dollar sign (not a hyphen), so the echo should work correctly.
13846 # The option is referenced via a variable to avoid confusing sed.
13847 lt_compile=`echo "$ac_compile" | $SED \
13848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13850 -e 's:$: $lt_compiler_flag:'`
13851 (eval echo "\"\$as_me:13851: $lt_compile\"" >&5)
13852 (eval "$lt_compile" 2>conftest.err)
13853 ac_status=$?
13854 cat conftest.err >&5
13855 echo "$as_me:13855: \$? = $ac_status" >&5
13856 if (exit $ac_status) && test -s "$ac_outfile"; then
13857 # The compiler can only warn and ignore the option if not recognized
13858 # So say no if there are warnings other than the usual output.
13859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13862 lt_cv_prog_compiler_pic_works_CXX=yes
13863 fi
13864 fi
13865 $RM conftest*
13866
13867 fi
13868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13869 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13870
13871 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13872 case $lt_prog_compiler_pic_CXX in
13873 "" | " "*) ;;
13874 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13875 esac
13876 else
13877 lt_prog_compiler_pic_CXX=
13878 lt_prog_compiler_can_build_shared_CXX=no
13879 fi
13880
13881 fi
13882
13883
13884
13885 #
13886 # Check to make sure the static flag actually works.
13887 #
13888 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13889 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13890 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13891 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894 lt_cv_prog_compiler_static_works_CXX=no
13895 save_LDFLAGS="$LDFLAGS"
13896 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13899 # The linker can only warn and ignore the option if not recognized
13900 # So say no if there are warnings
13901 if test -s conftest.err; then
13902 # Append any errors to the config.log.
13903 cat conftest.err 1>&5
13904 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13906 if diff conftest.exp conftest.er2 >/dev/null; then
13907 lt_cv_prog_compiler_static_works_CXX=yes
13908 fi
13909 else
13910 lt_cv_prog_compiler_static_works_CXX=yes
13911 fi
13912 fi
13913 $RM -r conftest*
13914 LDFLAGS="$save_LDFLAGS"
13915
13916 fi
13917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13918 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13919
13920 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13921 :
13922 else
13923 lt_prog_compiler_static_CXX=
13924 fi
13925
13926
13927
13928
13929 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13931 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934 lt_cv_prog_compiler_c_o_CXX=no
13935 $RM -r conftest 2>/dev/null
13936 mkdir conftest
13937 cd conftest
13938 mkdir out
13939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13940
13941 lt_compiler_flag="-o out/conftest2.$ac_objext"
13942 # Insert the option either (1) after the last *FLAGS variable, or
13943 # (2) before a word containing "conftest.", or (3) at the end.
13944 # Note that $ac_compile itself does not contain backslashes and begins
13945 # with a dollar sign (not a hyphen), so the echo should work correctly.
13946 lt_compile=`echo "$ac_compile" | $SED \
13947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13949 -e 's:$: $lt_compiler_flag:'`
13950 (eval echo "\"\$as_me:13950: $lt_compile\"" >&5)
13951 (eval "$lt_compile" 2>out/conftest.err)
13952 ac_status=$?
13953 cat out/conftest.err >&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13956 then
13957 # The compiler can only warn and ignore the option if not recognized
13958 # So say no if there are warnings
13959 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13962 lt_cv_prog_compiler_c_o_CXX=yes
13963 fi
13964 fi
13965 chmod u+w . 2>&5
13966 $RM conftest*
13967 # SGI C++ compiler will create directory out/ii_files/ for
13968 # template instantiation
13969 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13970 $RM out/* && rmdir out
13971 cd ..
13972 $RM -r conftest
13973 $RM conftest*
13974
13975 fi
13976 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13978
13979
13980
13981 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13983 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 lt_cv_prog_compiler_c_o_CXX=no
13987 $RM -r conftest 2>/dev/null
13988 mkdir conftest
13989 cd conftest
13990 mkdir out
13991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13992
13993 lt_compiler_flag="-o out/conftest2.$ac_objext"
13994 # Insert the option either (1) after the last *FLAGS variable, or
13995 # (2) before a word containing "conftest.", or (3) at the end.
13996 # Note that $ac_compile itself does not contain backslashes and begins
13997 # with a dollar sign (not a hyphen), so the echo should work correctly.
13998 lt_compile=`echo "$ac_compile" | $SED \
13999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14001 -e 's:$: $lt_compiler_flag:'`
14002 (eval echo "\"\$as_me:14002: $lt_compile\"" >&5)
14003 (eval "$lt_compile" 2>out/conftest.err)
14004 ac_status=$?
14005 cat out/conftest.err >&5
14006 echo "$as_me:14006: \$? = $ac_status" >&5
14007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14008 then
14009 # The compiler can only warn and ignore the option if not recognized
14010 # So say no if there are warnings
14011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14014 lt_cv_prog_compiler_c_o_CXX=yes
14015 fi
14016 fi
14017 chmod u+w . 2>&5
14018 $RM conftest*
14019 # SGI C++ compiler will create directory out/ii_files/ for
14020 # template instantiation
14021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14022 $RM out/* && rmdir out
14023 cd ..
14024 $RM -r conftest
14025 $RM conftest*
14026
14027 fi
14028 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14030
14031
14032
14033
14034 hard_links="nottested"
14035 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14036 # do not overwrite the value of need_locks provided by the user
14037 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14038 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14039 hard_links=yes
14040 $RM conftest*
14041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14042 touch conftest.a
14043 ln conftest.a conftest.b 2>&5 || hard_links=no
14044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14045 { echo "$as_me:$LINENO: result: $hard_links" >&5
14046 echo "${ECHO_T}$hard_links" >&6; }
14047 if test "$hard_links" = no; then
14048 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14049 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14050 need_locks=warn
14051 fi
14052 else
14053 need_locks=no
14054 fi
14055
14056
14057
14058 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14059 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14060
14061 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14062 case $host_os in
14063 aix[4-9]*)
14064 # If we're using GNU nm, then we don't want the "-C" option.
14065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14066 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14067 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14068 else
14069 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'
14070 fi
14071 ;;
14072 pw32*)
14073 export_symbols_cmds_CXX="$ltdll_cmds"
14074 ;;
14075 cygwin* | mingw*)
14076 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14077 ;;
14078 linux* | k*bsd*-gnu)
14079 link_all_deplibs_CXX=no
14080 ;;
14081 *)
14082 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14083 ;;
14084 esac
14085 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14086
14087 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14088 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14089 test "$ld_shlibs_CXX" = no && can_build_shared=no
14090
14091 with_gnu_ld_CXX=$with_gnu_ld
14092
14093
14094
14095
14096
14097
14098 #
14099 # Do we need to explicitly link libc?
14100 #
14101 case "x$archive_cmds_need_lc_CXX" in
14102 x|xyes)
14103 # Assume -lc should be added
14104 archive_cmds_need_lc_CXX=yes
14105
14106 if test "$enable_shared" = yes && test "$GCC" = yes; then
14107 case $archive_cmds_CXX in
14108 *'~'*)
14109 # FIXME: we may have to deal with multi-command sequences.
14110 ;;
14111 '$CC '*)
14112 # Test whether the compiler implicitly links with -lc since on some
14113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14114 # to ld, don't add -lc before -lgcc.
14115 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14117 $RM conftest*
14118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14119
14120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14121 (eval $ac_compile) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } 2>conftest.err; then
14125 soname=conftest
14126 lib=conftest
14127 libobjs=conftest.$ac_objext
14128 deplibs=
14129 wl=$lt_prog_compiler_wl_CXX
14130 pic_flag=$lt_prog_compiler_pic_CXX
14131 compiler_flags=-v
14132 linker_flags=-v
14133 verstring=
14134 output_objdir=.
14135 libname=conftest
14136 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14137 allow_undefined_flag_CXX=
14138 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14139 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }
14143 then
14144 archive_cmds_need_lc_CXX=no
14145 else
14146 archive_cmds_need_lc_CXX=yes
14147 fi
14148 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14149 else
14150 cat conftest.err 1>&5
14151 fi
14152 $RM conftest*
14153 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14154 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14155 ;;
14156 esac
14157 fi
14158 ;;
14159 esac
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14226
14227 library_names_spec=
14228 libname_spec='lib$name'
14229 soname_spec=
14230 shrext_cmds=".so"
14231 postinstall_cmds=
14232 postuninstall_cmds=
14233 finish_cmds=
14234 finish_eval=
14235 shlibpath_var=
14236 shlibpath_overrides_runpath=unknown
14237 version_type=none
14238 dynamic_linker="$host_os ld.so"
14239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14240 need_lib_prefix=unknown
14241 hardcode_into_libs=no
14242
14243 # when you set need_version to no, make sure it does not cause -set_version
14244 # flags to be left without arguments
14245 need_version=unknown
14246
14247 case $host_os in
14248 aix3*)
14249 version_type=linux
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14251 shlibpath_var=LIBPATH
14252
14253 # AIX 3 has no versioning support, so we append a major version to the name.
14254 soname_spec='${libname}${release}${shared_ext}$major'
14255 ;;
14256
14257 aix[4-9]*)
14258 version_type=linux
14259 need_lib_prefix=no
14260 need_version=no
14261 hardcode_into_libs=yes
14262 if test "$host_cpu" = ia64; then
14263 # AIX 5 supports IA64
14264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14265 shlibpath_var=LD_LIBRARY_PATH
14266 else
14267 # With GCC up to 2.95.x, collect2 would create an import file
14268 # for dependence libraries. The import file would start with
14269 # the line `#! .'. This would cause the generated library to
14270 # depend on `.', always an invalid library. This was fixed in
14271 # development snapshots of GCC prior to 3.0.
14272 case $host_os in
14273 aix4 | aix4.[01] | aix4.[01].*)
14274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14275 echo ' yes '
14276 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14277 :
14278 else
14279 can_build_shared=no
14280 fi
14281 ;;
14282 esac
14283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14284 # soname into executable. Probably we can add versioning support to
14285 # collect2, so additional links can be useful in future.
14286 if test "$aix_use_runtimelinking" = yes; then
14287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14288 # instead of lib<name>.a to let people know that these are not
14289 # typical AIX shared libraries.
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 else
14292 # We preserve .a as extension for shared libraries through AIX4.2
14293 # and later when we are not doing run time linking.
14294 library_names_spec='${libname}${release}.a $libname.a'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 fi
14297 shlibpath_var=LIBPATH
14298 fi
14299 ;;
14300
14301 amigaos*)
14302 case $host_cpu in
14303 powerpc)
14304 # Since July 2007 AmigaOS4 officially supports .so libraries.
14305 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307 ;;
14308 m68k)
14309 library_names_spec='$libname.ixlibrary $libname.a'
14310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14311 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14312 ;;
14313 esac
14314 ;;
14315
14316 beos*)
14317 library_names_spec='${libname}${shared_ext}'
14318 dynamic_linker="$host_os ld.so"
14319 shlibpath_var=LIBRARY_PATH
14320 ;;
14321
14322 bsdi[45]*)
14323 version_type=linux
14324 need_version=no
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14331 # the default ld.so.conf also contains /usr/contrib/lib and
14332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14333 # libtool to hard-code these into programs
14334 ;;
14335
14336 cygwin* | mingw* | pw32*)
14337 version_type=windows
14338 shrext_cmds=".dll"
14339 need_version=no
14340 need_lib_prefix=no
14341
14342 case $GCC,$host_os in
14343 yes,cygwin* | yes,mingw* | yes,pw32*)
14344 library_names_spec='$libname.dll.a'
14345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14346 postinstall_cmds='base_file=`basename \${file}`~
14347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14348 dldir=$destdir/`dirname \$dlpath`~
14349 test -d \$dldir || mkdir -p \$dldir~
14350 $install_prog $dir/$dlname \$dldir/$dlname~
14351 chmod a+x \$dldir/$dlname~
14352 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14353 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14354 fi'
14355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14356 dlpath=$dir/\$dldll~
14357 $RM \$dlpath'
14358 shlibpath_overrides_runpath=yes
14359
14360 case $host_os in
14361 cygwin*)
14362 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14363 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14364 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14365 ;;
14366 mingw*)
14367 # MinGW DLLs use traditional 'lib' prefix
14368 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14369 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14370 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14371 # It is most probably a Windows format PATH printed by
14372 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14373 # path with ; separators, and with drive letters. We can handle the
14374 # drive letters (cygwin fileutils understands them), so leave them,
14375 # especially as we might pass files found there to a mingw objdump,
14376 # which wouldn't understand a cygwinified path. Ahh.
14377 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14378 else
14379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14380 fi
14381 ;;
14382 pw32*)
14383 # pw32 DLLs use 'pw' prefix rather than 'lib'
14384 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14385 ;;
14386 esac
14387 ;;
14388
14389 *)
14390 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14391 ;;
14392 esac
14393 dynamic_linker='Win32 ld.exe'
14394 # FIXME: first we should search . and the directory the executable is in
14395 shlibpath_var=PATH
14396 ;;
14397
14398 darwin* | rhapsody*)
14399 dynamic_linker="$host_os dyld"
14400 version_type=darwin
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14404 soname_spec='${libname}${release}${major}$shared_ext'
14405 shlibpath_overrides_runpath=yes
14406 shlibpath_var=DYLD_LIBRARY_PATH
14407 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14408
14409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14410 ;;
14411
14412 dgux*)
14413 version_type=linux
14414 need_lib_prefix=no
14415 need_version=no
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 ;;
14420
14421 freebsd1*)
14422 dynamic_linker=no
14423 ;;
14424
14425 freebsd* | dragonfly*)
14426 # DragonFly does not have aout. When/if they implement a new
14427 # versioning mechanism, adjust this.
14428 if test -x /usr/bin/objformat; then
14429 objformat=`/usr/bin/objformat`
14430 else
14431 case $host_os in
14432 freebsd[123]*) objformat=aout ;;
14433 *) objformat=elf ;;
14434 esac
14435 fi
14436 version_type=freebsd-$objformat
14437 case $version_type in
14438 freebsd-elf*)
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14440 need_version=no
14441 need_lib_prefix=no
14442 ;;
14443 freebsd-*)
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14445 need_version=yes
14446 ;;
14447 esac
14448 shlibpath_var=LD_LIBRARY_PATH
14449 case $host_os in
14450 freebsd2*)
14451 shlibpath_overrides_runpath=yes
14452 ;;
14453 freebsd3.[01]* | freebsdelf3.[01]*)
14454 shlibpath_overrides_runpath=yes
14455 hardcode_into_libs=yes
14456 ;;
14457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14459 shlibpath_overrides_runpath=no
14460 hardcode_into_libs=yes
14461 ;;
14462 *) # from 4.6 on, and DragonFly
14463 shlibpath_overrides_runpath=yes
14464 hardcode_into_libs=yes
14465 ;;
14466 esac
14467 ;;
14468
14469 gnu*)
14470 version_type=linux
14471 need_lib_prefix=no
14472 need_version=no
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 hardcode_into_libs=yes
14477 ;;
14478
14479 hpux9* | hpux10* | hpux11*)
14480 # Give a soname corresponding to the major version so that dld.sl refuses to
14481 # link against other versions.
14482 version_type=sunos
14483 need_lib_prefix=no
14484 need_version=no
14485 case $host_cpu in
14486 ia64*)
14487 shrext_cmds='.so'
14488 hardcode_into_libs=yes
14489 dynamic_linker="$host_os dld.so"
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 if test "X$HPUX_IA64_MODE" = X32; then
14495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14496 else
14497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14498 fi
14499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14500 ;;
14501 hppa*64*)
14502 shrext_cmds='.sl'
14503 hardcode_into_libs=yes
14504 dynamic_linker="$host_os dld.sl"
14505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14511 ;;
14512 *)
14513 shrext_cmds='.sl'
14514 dynamic_linker="$host_os dld.sl"
14515 shlibpath_var=SHLIB_PATH
14516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 ;;
14520 esac
14521 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14522 postinstall_cmds='chmod 555 $lib'
14523 ;;
14524
14525 interix[3-9]*)
14526 version_type=linux
14527 need_lib_prefix=no
14528 need_version=no
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=no
14534 hardcode_into_libs=yes
14535 ;;
14536
14537 irix5* | irix6* | nonstopux*)
14538 case $host_os in
14539 nonstopux*) version_type=nonstopux ;;
14540 *)
14541 if test "$lt_cv_prog_gnu_ld" = yes; then
14542 version_type=linux
14543 else
14544 version_type=irix
14545 fi ;;
14546 esac
14547 need_lib_prefix=no
14548 need_version=no
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14551 case $host_os in
14552 irix5* | nonstopux*)
14553 libsuff= shlibsuff=
14554 ;;
14555 *)
14556 case $LD in # libtool.m4 will add one of these switches to LD
14557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558 libsuff= shlibsuff= libmagic=32-bit;;
14559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14560 libsuff=32 shlibsuff=N32 libmagic=N32;;
14561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563 *) libsuff= shlibsuff= libmagic=never-match;;
14564 esac
14565 ;;
14566 esac
14567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14568 shlibpath_overrides_runpath=no
14569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14571 hardcode_into_libs=yes
14572 ;;
14573
14574 # No shared lib support for Linux oldld, aout, or coff.
14575 linux*oldld* | linux*aout* | linux*coff*)
14576 dynamic_linker=no
14577 ;;
14578
14579 # This must be Linux ELF.
14580 linux* | k*bsd*-gnu)
14581 version_type=linux
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 shlibpath_overrides_runpath=no
14589 # Some binutils ld are patched to set DT_RUNPATH
14590 save_LDFLAGS=$LDFLAGS
14591 save_libdir=$libdir
14592 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14593 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14594 cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h. */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600
14601 int
14602 main ()
14603 {
14604
14605 ;
14606 return 0;
14607 }
14608 _ACEOF
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (ac_try="$ac_link"
14611 case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_link") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } && {
14623 test -z "$ac_cxx_werror_flag" ||
14624 test ! -s conftest.err
14625 } && test -s conftest$ac_exeext &&
14626 $as_test_x conftest$ac_exeext; then
14627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14628 shlibpath_overrides_runpath=yes
14629 fi
14630
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635
14636 fi
14637
14638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14639 conftest$ac_exeext conftest.$ac_ext
14640 LDFLAGS=$save_LDFLAGS
14641 libdir=$save_libdir
14642
14643 # This implies no fast_install, which is unacceptable.
14644 # Some rework will be needed to allow for fast_install
14645 # before this can be enabled.
14646 hardcode_into_libs=yes
14647
14648 # Append ld.so.conf contents to the search path
14649 if test -f /etc/ld.so.conf; then
14650 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;/^$/d' | tr '\n' ' '`
14651 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14652 fi
14653
14654 # We used to test for /lib/ld.so.1 and disable shared libraries on
14655 # powerpc, because MkLinux only supported shared libraries with the
14656 # GNU dynamic linker. Since this was broken with cross compilers,
14657 # most powerpc-linux boxes support dynamic linking these days and
14658 # people can always --disable-shared, the test was removed, and we
14659 # assume the GNU/Linux dynamic linker is in use.
14660 dynamic_linker='GNU/Linux ld.so'
14661 ;;
14662
14663 netbsdelf*-gnu)
14664 version_type=linux
14665 need_lib_prefix=no
14666 need_version=no
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=no
14671 hardcode_into_libs=yes
14672 dynamic_linker='NetBSD ld.elf_so'
14673 ;;
14674
14675 netbsd*)
14676 version_type=sunos
14677 need_lib_prefix=no
14678 need_version=no
14679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682 dynamic_linker='NetBSD (a.out) ld.so'
14683 else
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 dynamic_linker='NetBSD ld.elf_so'
14687 fi
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 hardcode_into_libs=yes
14691 ;;
14692
14693 newsos6)
14694 version_type=linux
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14698 ;;
14699
14700 *nto* | *qnx*)
14701 version_type=qnx
14702 need_lib_prefix=no
14703 need_version=no
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=no
14708 hardcode_into_libs=yes
14709 dynamic_linker='ldqnx.so'
14710 ;;
14711
14712 openbsd*)
14713 version_type=sunos
14714 sys_lib_dlsearch_path_spec="/usr/lib"
14715 need_lib_prefix=no
14716 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14717 case $host_os in
14718 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14719 *) need_version=no ;;
14720 esac
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14725 case $host_os in
14726 openbsd2.[89] | openbsd2.[89].*)
14727 shlibpath_overrides_runpath=no
14728 ;;
14729 *)
14730 shlibpath_overrides_runpath=yes
14731 ;;
14732 esac
14733 else
14734 shlibpath_overrides_runpath=yes
14735 fi
14736 ;;
14737
14738 os2*)
14739 libname_spec='$name'
14740 shrext_cmds=".dll"
14741 need_lib_prefix=no
14742 library_names_spec='$libname${shared_ext} $libname.a'
14743 dynamic_linker='OS/2 ld.exe'
14744 shlibpath_var=LIBPATH
14745 ;;
14746
14747 osf3* | osf4* | osf5*)
14748 version_type=osf
14749 need_lib_prefix=no
14750 need_version=no
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14756 ;;
14757
14758 rdos*)
14759 dynamic_linker=no
14760 ;;
14761
14762 solaris*)
14763 version_type=linux
14764 need_lib_prefix=no
14765 need_version=no
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=yes
14770 hardcode_into_libs=yes
14771 # ldd complains unless libraries are executable
14772 postinstall_cmds='chmod +x $lib'
14773 ;;
14774
14775 sunos4*)
14776 version_type=sunos
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=yes
14781 if test "$with_gnu_ld" = yes; then
14782 need_lib_prefix=no
14783 fi
14784 need_version=yes
14785 ;;
14786
14787 sysv4 | sysv4.3*)
14788 version_type=linux
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 case $host_vendor in
14793 sni)
14794 shlibpath_overrides_runpath=no
14795 need_lib_prefix=no
14796 runpath_var=LD_RUN_PATH
14797 ;;
14798 siemens)
14799 need_lib_prefix=no
14800 ;;
14801 motorola)
14802 need_lib_prefix=no
14803 need_version=no
14804 shlibpath_overrides_runpath=no
14805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14806 ;;
14807 esac
14808 ;;
14809
14810 sysv4*MP*)
14811 if test -d /usr/nec ;then
14812 version_type=linux
14813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14814 soname_spec='$libname${shared_ext}.$major'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 fi
14817 ;;
14818
14819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14820 version_type=freebsd-elf
14821 need_lib_prefix=no
14822 need_version=no
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14824 soname_spec='${libname}${release}${shared_ext}$major'
14825 shlibpath_var=LD_LIBRARY_PATH
14826 shlibpath_overrides_runpath=yes
14827 hardcode_into_libs=yes
14828 if test "$with_gnu_ld" = yes; then
14829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14830 else
14831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14832 case $host_os in
14833 sco3.2v5*)
14834 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14835 ;;
14836 esac
14837 fi
14838 sys_lib_dlsearch_path_spec='/usr/lib'
14839 ;;
14840
14841 tpf*)
14842 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14843 version_type=linux
14844 need_lib_prefix=no
14845 need_version=no
14846 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=no
14849 hardcode_into_libs=yes
14850 ;;
14851
14852 uts4*)
14853 version_type=linux
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 ;;
14858
14859 *)
14860 dynamic_linker=no
14861 ;;
14862 esac
14863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14864 echo "${ECHO_T}$dynamic_linker" >&6; }
14865 test "$dynamic_linker" = no && can_build_shared=no
14866
14867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14868 if test "$GCC" = yes; then
14869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14870 fi
14871
14872 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14873 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14874 fi
14875 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14876 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14877 fi
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14915 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14916 hardcode_action_CXX=
14917 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14918 test -n "$runpath_var_CXX" ||
14919 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14920
14921 # We can hardcode non-existent directories.
14922 if test "$hardcode_direct_CXX" != no &&
14923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14924 # have to relink, otherwise we might link with an installed library
14925 # when we should be linking with a yet-to-be-installed one
14926 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14927 test "$hardcode_minus_L_CXX" != no; then
14928 # Linking always hardcodes the temporary library directory.
14929 hardcode_action_CXX=relink
14930 else
14931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14932 hardcode_action_CXX=immediate
14933 fi
14934 else
14935 # We cannot hardcode anything, or else we can only hardcode existing
14936 # directories.
14937 hardcode_action_CXX=unsupported
14938 fi
14939 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14940 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14941
14942 if test "$hardcode_action_CXX" = relink ||
14943 test "$inherit_rpath_CXX" = yes; then
14944 # Fast installation is not supported
14945 enable_fast_install=no
14946 elif test "$shlibpath_overrides_runpath" = yes ||
14947 test "$enable_shared" = no; then
14948 # Fast installation is not necessary
14949 enable_fast_install=needless
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958 fi # test -n "$compiler"
14959
14960 CC=$lt_save_CC
14961 LDCXX=$LD
14962 LD=$lt_save_LD
14963 GCC=$lt_save_GCC
14964 with_gnu_ld=$lt_save_with_gnu_ld
14965 lt_cv_path_LDCXX=$lt_cv_path_LD
14966 lt_cv_path_LD=$lt_save_path_LD
14967 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14968 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14969 fi # test "$_lt_caught_CXX_error" != yes
14970
14971 ac_ext=cpp
14972 ac_cpp='$CXXCPP $CPPFLAGS'
14973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14976
14977
14978 ac_ext=cpp
14979 ac_cpp='$CXXCPP $CPPFLAGS'
14980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14983 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14984 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14985 if test -z "$CXXCPP"; then
14986 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 # Double quotes because CXXCPP needs to be expanded
14990 for CXXCPP in "$CXX -E" "/lib/cpp"
14991 do
14992 ac_preproc_ok=false
14993 for ac_cxx_preproc_warn_flag in '' yes
14994 do
14995 # Use a header file that comes with gcc, so configuring glibc
14996 # with a fresh cross-compiler works.
14997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998 # <limits.h> exists even on freestanding compilers.
14999 # On the NeXT, cc -E runs the code through the compiler's parser,
15000 # not just through cpp. "Syntax error" is here to catch this case.
15001 cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h. */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15007 #ifdef __STDC__
15008 # include <limits.h>
15009 #else
15010 # include <assert.h>
15011 #endif
15012 Syntax error
15013 _ACEOF
15014 if { (ac_try="$ac_cpp conftest.$ac_ext"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null && {
15027 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15028 test ! -s conftest.err
15029 }; then
15030 :
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15034
15035 # Broken: fails on valid input.
15036 continue
15037 fi
15038
15039 rm -f conftest.err conftest.$ac_ext
15040
15041 # OK, works on sane cases. Now check whether nonexistent headers
15042 # can be detected and how.
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 #include <ac_nonexistent.h>
15050 _ACEOF
15051 if { (ac_try="$ac_cpp conftest.$ac_ext"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } >/dev/null && {
15064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15065 test ! -s conftest.err
15066 }; then
15067 # Broken: success on invalid input.
15068 continue
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 # Passes both tests.
15074 ac_preproc_ok=:
15075 break
15076 fi
15077
15078 rm -f conftest.err conftest.$ac_ext
15079
15080 done
15081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15082 rm -f conftest.err conftest.$ac_ext
15083 if $ac_preproc_ok; then
15084 break
15085 fi
15086
15087 done
15088 ac_cv_prog_CXXCPP=$CXXCPP
15089
15090 fi
15091 CXXCPP=$ac_cv_prog_CXXCPP
15092 else
15093 ac_cv_prog_CXXCPP=$CXXCPP
15094 fi
15095 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15096 echo "${ECHO_T}$CXXCPP" >&6; }
15097 ac_preproc_ok=false
15098 for ac_cxx_preproc_warn_flag in '' yes
15099 do
15100 # Use a header file that comes with gcc, so configuring glibc
15101 # with a fresh cross-compiler works.
15102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15103 # <limits.h> exists even on freestanding compilers.
15104 # On the NeXT, cc -E runs the code through the compiler's parser,
15105 # not just through cpp. "Syntax error" is here to catch this case.
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 #ifdef __STDC__
15113 # include <limits.h>
15114 #else
15115 # include <assert.h>
15116 #endif
15117 Syntax error
15118 _ACEOF
15119 if { (ac_try="$ac_cpp conftest.$ac_ext"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } >/dev/null && {
15132 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15133 test ! -s conftest.err
15134 }; then
15135 :
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 # Broken: fails on valid input.
15141 continue
15142 fi
15143
15144 rm -f conftest.err conftest.$ac_ext
15145
15146 # OK, works on sane cases. Now check whether nonexistent headers
15147 # can be detected and how.
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <ac_nonexistent.h>
15155 _ACEOF
15156 if { (ac_try="$ac_cpp conftest.$ac_ext"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } >/dev/null && {
15169 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15170 test ! -s conftest.err
15171 }; then
15172 # Broken: success on invalid input.
15173 continue
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178 # Passes both tests.
15179 ac_preproc_ok=:
15180 break
15181 fi
15182
15183 rm -f conftest.err conftest.$ac_ext
15184
15185 done
15186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15187 rm -f conftest.err conftest.$ac_ext
15188 if $ac_preproc_ok; then
15189 :
15190 else
15191 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15192 See \`config.log' for more details." >&5
15193 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15194 See \`config.log' for more details." >&2;}
15195 { (exit 1); exit 1; }; }
15196 fi
15197
15198 ac_ext=cpp
15199 ac_cpp='$CXXCPP $CPPFLAGS'
15200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15203
15204
15205 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15207 if test "${ac_cv_header_stdc+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 else
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <stdlib.h>
15217 #include <stdarg.h>
15218 #include <string.h>
15219 #include <float.h>
15220
15221 int
15222 main ()
15223 {
15224
15225 ;
15226 return 0;
15227 }
15228 _ACEOF
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_cxx_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest.$ac_objext; then
15246 ac_cv_header_stdc=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251 ac_cv_header_stdc=no
15252 fi
15253
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255
15256 if test $ac_cv_header_stdc = yes; then
15257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15258 cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h. */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 #include <string.h>
15265
15266 _ACEOF
15267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15268 $EGREP "memchr" >/dev/null 2>&1; then
15269 :
15270 else
15271 ac_cv_header_stdc=no
15272 fi
15273 rm -f conftest*
15274
15275 fi
15276
15277 if test $ac_cv_header_stdc = yes; then
15278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15279 cat >conftest.$ac_ext <<_ACEOF
15280 /* confdefs.h. */
15281 _ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h. */
15285 #include <stdlib.h>
15286
15287 _ACEOF
15288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15289 $EGREP "free" >/dev/null 2>&1; then
15290 :
15291 else
15292 ac_cv_header_stdc=no
15293 fi
15294 rm -f conftest*
15295
15296 fi
15297
15298 if test $ac_cv_header_stdc = yes; then
15299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15300 if test "$cross_compiling" = yes; then
15301 :
15302 else
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h. */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 #include <ctype.h>
15310 #include <stdlib.h>
15311 #if ((' ' & 0x0FF) == 0x020)
15312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15314 #else
15315 # define ISLOWER(c) \
15316 (('a' <= (c) && (c) <= 'i') \
15317 || ('j' <= (c) && (c) <= 'r') \
15318 || ('s' <= (c) && (c) <= 'z'))
15319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15320 #endif
15321
15322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15323 int
15324 main ()
15325 {
15326 int i;
15327 for (i = 0; i < 256; i++)
15328 if (XOR (islower (i), ISLOWER (i))
15329 || toupper (i) != TOUPPER (i))
15330 return 2;
15331 return 0;
15332 }
15333 _ACEOF
15334 rm -f conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_link") 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15345 { (case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_try") 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 :
15355 else
15356 echo "$as_me: program exited with status $ac_status" >&5
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ( exit $ac_status )
15361 ac_cv_header_stdc=no
15362 fi
15363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15364 fi
15365
15366
15367 fi
15368 fi
15369 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15370 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15371 if test $ac_cv_header_stdc = yes; then
15372
15373 cat >>confdefs.h <<\_ACEOF
15374 #define STDC_HEADERS 1
15375 _ACEOF
15376
15377 fi
15378
15379
15380 for ac_prog in flex lex
15381 do
15382 # Extract the first word of "$ac_prog", so it can be a program name with args.
15383 set dummy $ac_prog; ac_word=$2
15384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15386 if test "${ac_cv_prog_LEX+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389 if test -n "$LEX"; then
15390 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15391 else
15392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15393 for as_dir in $PATH
15394 do
15395 IFS=$as_save_IFS
15396 test -z "$as_dir" && as_dir=.
15397 for ac_exec_ext in '' $ac_executable_extensions; do
15398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15399 ac_cv_prog_LEX="$ac_prog"
15400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15401 break 2
15402 fi
15403 done
15404 done
15405 IFS=$as_save_IFS
15406
15407 fi
15408 fi
15409 LEX=$ac_cv_prog_LEX
15410 if test -n "$LEX"; then
15411 { echo "$as_me:$LINENO: result: $LEX" >&5
15412 echo "${ECHO_T}$LEX" >&6; }
15413 else
15414 { echo "$as_me:$LINENO: result: no" >&5
15415 echo "${ECHO_T}no" >&6; }
15416 fi
15417
15418
15419 test -n "$LEX" && break
15420 done
15421 test -n "$LEX" || LEX=":"
15422
15423 if test "x$LEX" != "x:"; then
15424 cat >conftest.l <<_ACEOF
15425 %%
15426 a { ECHO; }
15427 b { REJECT; }
15428 c { yymore (); }
15429 d { yyless (1); }
15430 e { yyless (input () != 0); }
15431 f { unput (yytext[0]); }
15432 . { BEGIN INITIAL; }
15433 %%
15434 #ifdef YYTEXT_POINTER
15435 extern char *yytext;
15436 #endif
15437 int
15438 main (void)
15439 {
15440 return ! yylex () + ! yywrap ();
15441 }
15442 _ACEOF
15443 { (ac_try="$LEX conftest.l"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$LEX conftest.l") 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }
15453 { echo "$as_me:$LINENO: checking lex output file root" >&5
15454 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
15455 if test "${ac_cv_prog_lex_root+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458
15459 if test -f lex.yy.c; then
15460 ac_cv_prog_lex_root=lex.yy
15461 elif test -f lexyy.c; then
15462 ac_cv_prog_lex_root=lexyy
15463 else
15464 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
15465 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
15466 { (exit 1); exit 1; }; }
15467 fi
15468 fi
15469 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
15470 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
15471 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15472
15473 if test -z "${LEXLIB+set}"; then
15474 { echo "$as_me:$LINENO: checking lex library" >&5
15475 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
15476 if test "${ac_cv_lib_lex+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 else
15479
15480 ac_save_LIBS=$LIBS
15481 ac_cv_lib_lex='none needed'
15482 for ac_lib in '' -lfl -ll; do
15483 LIBS="$ac_lib $ac_save_LIBS"
15484 cat >conftest.$ac_ext <<_ACEOF
15485 `cat $LEX_OUTPUT_ROOT.c`
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_link") 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_cxx_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest$ac_exeext &&
15504 $as_test_x conftest$ac_exeext; then
15505 ac_cv_lib_lex=$ac_lib
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514 conftest$ac_exeext conftest.$ac_ext
15515 test "$ac_cv_lib_lex" != 'none needed' && break
15516 done
15517 LIBS=$ac_save_LIBS
15518
15519 fi
15520 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
15521 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
15522 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
15523 fi
15524
15525
15526 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
15527 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
15528 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531 # POSIX says lex can declare yytext either as a pointer or an array; the
15532 # default is implementation-dependent. Figure out which it is, since
15533 # not all implementations provide the %pointer and %array declarations.
15534 ac_cv_prog_lex_yytext_pointer=no
15535 ac_save_LIBS=$LIBS
15536 LIBS="$LEXLIB $ac_save_LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15538 #define YYTEXT_POINTER 1
15539 `cat $LEX_OUTPUT_ROOT.c`
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (ac_try="$ac_link"
15543 case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_link") 2>conftest.er1
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } && {
15555 test -z "$ac_cxx_werror_flag" ||
15556 test ! -s conftest.err
15557 } && test -s conftest$ac_exeext &&
15558 $as_test_x conftest$ac_exeext; then
15559 ac_cv_prog_lex_yytext_pointer=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564
15565 fi
15566
15567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15568 conftest$ac_exeext conftest.$ac_ext
15569 LIBS=$ac_save_LIBS
15570
15571 fi
15572 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
15573 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
15574 if test $ac_cv_prog_lex_yytext_pointer = yes; then
15575
15576 cat >>confdefs.h <<\_ACEOF
15577 #define YYTEXT_POINTER 1
15578 _ACEOF
15579
15580 fi
15581 rm -f conftest.l $LEX_OUTPUT_ROOT.c
15582
15583 fi
15584 if test "$LEX" = :; then
15585 LEX=${am_missing_run}flex
15586 fi
15587 if test "$LEX" != flex
15588 then
15589 { { echo "$as_me:$LINENO: error: Flex lexical analyzer not found. Configuration aborted" >&5
15590 echo "$as_me: error: Flex lexical analyzer not found. Configuration aborted" >&2;}
15591 { (exit 1); exit 1; }; }
15592 else
15593 LEX_OUTPUT_ROOT=lex.yy
15594
15595 fi
15596
15597 for ac_header in FlexLexer.h
15598 do
15599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 fi
15606 ac_res=`eval echo '${'$as_ac_Header'}'`
15607 { echo "$as_me:$LINENO: result: $ac_res" >&5
15608 echo "${ECHO_T}$ac_res" >&6; }
15609 else
15610 # Is the header compilable?
15611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15620 #include <$ac_header>
15621 _ACEOF
15622 rm -f conftest.$ac_objext
15623 if { (ac_try="$ac_compile"
15624 case "(($ac_try" in
15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626 *) ac_try_echo=$ac_try;;
15627 esac
15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629 (eval "$ac_compile") 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && {
15636 test -z "$ac_cxx_werror_flag" ||
15637 test ! -s conftest.err
15638 } && test -s conftest.$ac_objext; then
15639 ac_header_compiler=yes
15640 else
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_header_compiler=no
15645 fi
15646
15647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15649 echo "${ECHO_T}$ac_header_compiler" >&6; }
15650
15651 # Is the header present?
15652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 #include <$ac_header>
15661 _ACEOF
15662 if { (ac_try="$ac_cpp conftest.$ac_ext"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } >/dev/null && {
15675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15676 test ! -s conftest.err
15677 }; then
15678 ac_header_preproc=yes
15679 else
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_header_preproc=no
15684 fi
15685
15686 rm -f conftest.err conftest.$ac_ext
15687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688 echo "${ECHO_T}$ac_header_preproc" >&6; }
15689
15690 # So? What about this header?
15691 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15692 yes:no: )
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15697 ac_header_preproc=yes
15698 ;;
15699 no:yes:* )
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15712 ( cat <<\_ASBOX
15713 ## ----------------------------------- ##
15714 ## Report this to [email protected] ##
15715 ## ----------------------------------- ##
15716 _ASBOX
15717 ) | sed "s/^/$as_me: WARNING: /" >&2
15718 ;;
15719 esac
15720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725 eval "$as_ac_Header=\$ac_header_preproc"
15726 fi
15727 ac_res=`eval echo '${'$as_ac_Header'}'`
15728 { echo "$as_me:$LINENO: result: $ac_res" >&5
15729 echo "${ECHO_T}$ac_res" >&6; }
15730
15731 fi
15732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15735 _ACEOF
15736
15737 else
15738 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
15739 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
15740 { (exit 1); exit 1; }; }
15741 fi
15742
15743 done
15744
15745
15746
15747 for ac_header in ctype.h
15748 do
15749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 fi
15756 ac_res=`eval echo '${'$as_ac_Header'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759 else
15760 # Is the header compilable?
15761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 $ac_includes_default
15770 #include <$ac_header>
15771 _ACEOF
15772 rm -f conftest.$ac_objext
15773 if { (ac_try="$ac_compile"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777 esac
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_compile") 2>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_cxx_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest.$ac_objext; then
15789 ac_header_compiler=yes
15790 else
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 ac_header_compiler=no
15795 fi
15796
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6; }
15800
15801 # Is the header present?
15802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <$ac_header>
15811 _ACEOF
15812 if { (ac_try="$ac_cpp conftest.$ac_ext"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } >/dev/null && {
15825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15826 test ! -s conftest.err
15827 }; then
15828 ac_header_preproc=yes
15829 else
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 ac_header_preproc=no
15834 fi
15835
15836 rm -f conftest.err conftest.$ac_ext
15837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838 echo "${ECHO_T}$ac_header_preproc" >&6; }
15839
15840 # So? What about this header?
15841 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15842 yes:no: )
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847 ac_header_preproc=yes
15848 ;;
15849 no:yes:* )
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15862 ( cat <<\_ASBOX
15863 ## ----------------------------------- ##
15864 ## Report this to [email protected] ##
15865 ## ----------------------------------- ##
15866 _ASBOX
15867 ) | sed "s/^/$as_me: WARNING: /" >&2
15868 ;;
15869 esac
15870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875 eval "$as_ac_Header=\$ac_header_preproc"
15876 fi
15877 ac_res=`eval echo '${'$as_ac_Header'}'`
15878 { echo "$as_me:$LINENO: result: $ac_res" >&5
15879 echo "${ECHO_T}$ac_res" >&6; }
15880
15881 fi
15882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15883 cat >>confdefs.h <<_ACEOF
15884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15885 _ACEOF
15886
15887 else
15888 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
15889 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
15890 { (exit 1); exit 1; }; }
15891 fi
15892
15893 done
15894
15895
15896 for ac_header in stdlib.h
15897 do
15898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 fi
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15908 else
15909 # Is the header compilable?
15910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 $ac_includes_default
15919 #include <$ac_header>
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (ac_try="$ac_compile"
15923 case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15926 esac
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_compile") 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } && {
15935 test -z "$ac_cxx_werror_flag" ||
15936 test ! -s conftest.err
15937 } && test -s conftest.$ac_objext; then
15938 ac_header_compiler=yes
15939 else
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_header_compiler=no
15944 fi
15945
15946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948 echo "${ECHO_T}$ac_header_compiler" >&6; }
15949
15950 # Is the header present?
15951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 #include <$ac_header>
15960 _ACEOF
15961 if { (ac_try="$ac_cpp conftest.$ac_ext"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } >/dev/null && {
15974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15975 test ! -s conftest.err
15976 }; then
15977 ac_header_preproc=yes
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 ac_header_preproc=no
15983 fi
15984
15985 rm -f conftest.err conftest.$ac_ext
15986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15987 echo "${ECHO_T}$ac_header_preproc" >&6; }
15988
15989 # So? What about this header?
15990 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15991 yes:no: )
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15996 ac_header_preproc=yes
15997 ;;
15998 no:yes:* )
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16011 ( cat <<\_ASBOX
16012 ## ----------------------------------- ##
16013 ## Report this to [email protected] ##
16014 ## ----------------------------------- ##
16015 _ASBOX
16016 ) | sed "s/^/$as_me: WARNING: /" >&2
16017 ;;
16018 esac
16019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024 eval "$as_ac_Header=\$ac_header_preproc"
16025 fi
16026 ac_res=`eval echo '${'$as_ac_Header'}'`
16027 { echo "$as_me:$LINENO: result: $ac_res" >&5
16028 echo "${ECHO_T}$ac_res" >&6; }
16029
16030 fi
16031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16032 cat >>confdefs.h <<_ACEOF
16033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16034 _ACEOF
16035
16036 else
16037 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16038 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16039 { (exit 1); exit 1; }; }
16040 fi
16041
16042 done
16043
16044
16045
16046 for ac_header in fstream
16047 do
16048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 fi
16055 ac_res=`eval echo '${'$as_ac_Header'}'`
16056 { echo "$as_me:$LINENO: result: $ac_res" >&5
16057 echo "${ECHO_T}$ac_res" >&6; }
16058 else
16059 # Is the header compilable?
16060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 $ac_includes_default
16069 #include <$ac_header>
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (ac_try="$ac_compile"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_compile") 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && {
16085 test -z "$ac_cxx_werror_flag" ||
16086 test ! -s conftest.err
16087 } && test -s conftest.$ac_objext; then
16088 ac_header_compiler=yes
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093 ac_header_compiler=no
16094 fi
16095
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16098 echo "${ECHO_T}$ac_header_compiler" >&6; }
16099
16100 # Is the header present?
16101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16103 cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h. */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 #include <$ac_header>
16110 _ACEOF
16111 if { (ac_try="$ac_cpp conftest.$ac_ext"
16112 case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16115 esac
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } >/dev/null && {
16124 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16125 test ! -s conftest.err
16126 }; then
16127 ac_header_preproc=yes
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 ac_header_preproc=no
16133 fi
16134
16135 rm -f conftest.err conftest.$ac_ext
16136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16137 echo "${ECHO_T}$ac_header_preproc" >&6; }
16138
16139 # So? What about this header?
16140 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16141 yes:no: )
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16146 ac_header_preproc=yes
16147 ;;
16148 no:yes:* )
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16161 ( cat <<\_ASBOX
16162 ## ----------------------------------- ##
16163 ## Report this to [email protected] ##
16164 ## ----------------------------------- ##
16165 _ASBOX
16166 ) | sed "s/^/$as_me: WARNING: /" >&2
16167 ;;
16168 esac
16169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174 eval "$as_ac_Header=\$ac_header_preproc"
16175 fi
16176 ac_res=`eval echo '${'$as_ac_Header'}'`
16177 { echo "$as_me:$LINENO: result: $ac_res" >&5
16178 echo "${ECHO_T}$ac_res" >&6; }
16179
16180 fi
16181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16182 cat >>confdefs.h <<_ACEOF
16183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16184 _ACEOF
16185
16186 else
16187 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16188 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16189 { (exit 1); exit 1; }; }
16190 fi
16191
16192 done
16193
16194
16195 for ac_header in iostream
16196 do
16197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 fi
16204 ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16207 else
16208 # Is the header compilable?
16209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16211 cat >conftest.$ac_ext <<_ACEOF
16212 /* confdefs.h. */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217 $ac_includes_default
16218 #include <$ac_header>
16219 _ACEOF
16220 rm -f conftest.$ac_objext
16221 if { (ac_try="$ac_compile"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_compile") 2>conftest.er1
16228 ac_status=$?
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -f conftest.er1
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } && {
16234 test -z "$ac_cxx_werror_flag" ||
16235 test ! -s conftest.err
16236 } && test -s conftest.$ac_objext; then
16237 ac_header_compiler=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_header_compiler=no
16243 fi
16244
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16248
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 #include <$ac_header>
16259 _ACEOF
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null && {
16273 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16274 test ! -s conftest.err
16275 }; then
16276 ac_header_preproc=yes
16277 else
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ac_header_preproc=no
16282 fi
16283
16284 rm -f conftest.err conftest.$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16286 echo "${ECHO_T}$ac_header_preproc" >&6; }
16287
16288 # So? What about this header?
16289 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16290 yes:no: )
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16295 ac_header_preproc=yes
16296 ;;
16297 no:yes:* )
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16310 ( cat <<\_ASBOX
16311 ## ----------------------------------- ##
16312 ## Report this to [email protected] ##
16313 ## ----------------------------------- ##
16314 _ASBOX
16315 ) | sed "s/^/$as_me: WARNING: /" >&2
16316 ;;
16317 esac
16318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323 eval "$as_ac_Header=\$ac_header_preproc"
16324 fi
16325 ac_res=`eval echo '${'$as_ac_Header'}'`
16326 { echo "$as_me:$LINENO: result: $ac_res" >&5
16327 echo "${ECHO_T}$ac_res" >&6; }
16328
16329 fi
16330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16333 _ACEOF
16334
16335 else
16336 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16337 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16338 { (exit 1); exit 1; }; }
16339 fi
16340
16341 done
16342
16343
16344 for ac_header in list
16345 do
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 fi
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16356 else
16357 # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h. */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <$ac_header>
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_compile") 2>conftest.er1
16377 ac_status=$?
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_cxx_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest.$ac_objext; then
16386 ac_header_compiler=yes
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 ac_header_compiler=no
16392 fi
16393
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16396 echo "${ECHO_T}$ac_header_compiler" >&6; }
16397
16398 # Is the header present?
16399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <$ac_header>
16408 _ACEOF
16409 if { (ac_try="$ac_cpp conftest.$ac_ext"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } >/dev/null && {
16422 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16423 test ! -s conftest.err
16424 }; then
16425 ac_header_preproc=yes
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_header_preproc=no
16431 fi
16432
16433 rm -f conftest.err conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16435 echo "${ECHO_T}$ac_header_preproc" >&6; }
16436
16437 # So? What about this header?
16438 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16439 yes:no: )
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16444 ac_header_preproc=yes
16445 ;;
16446 no:yes:* )
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16459 ( cat <<\_ASBOX
16460 ## ----------------------------------- ##
16461 ## Report this to [email protected] ##
16462 ## ----------------------------------- ##
16463 _ASBOX
16464 ) | sed "s/^/$as_me: WARNING: /" >&2
16465 ;;
16466 esac
16467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472 eval "$as_ac_Header=\$ac_header_preproc"
16473 fi
16474 ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16477
16478 fi
16479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16480 cat >>confdefs.h <<_ACEOF
16481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16482 _ACEOF
16483
16484 else
16485 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16486 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16487 { (exit 1); exit 1; }; }
16488 fi
16489
16490 done
16491
16492
16493 for ac_header in map
16494 do
16495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 fi
16502 ac_res=`eval echo '${'$as_ac_Header'}'`
16503 { echo "$as_me:$LINENO: result: $ac_res" >&5
16504 echo "${ECHO_T}$ac_res" >&6; }
16505 else
16506 # Is the header compilable?
16507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16509 cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h. */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 $ac_includes_default
16516 #include <$ac_header>
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_compile") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_cxx_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest.$ac_objext; then
16535 ac_header_compiler=yes
16536 else
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540 ac_header_compiler=no
16541 fi
16542
16543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16545 echo "${ECHO_T}$ac_header_compiler" >&6; }
16546
16547 # Is the header present?
16548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16550 cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 #include <$ac_header>
16557 _ACEOF
16558 if { (ac_try="$ac_cpp conftest.$ac_ext"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } >/dev/null && {
16571 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16572 test ! -s conftest.err
16573 }; then
16574 ac_header_preproc=yes
16575 else
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ac_header_preproc=no
16580 fi
16581
16582 rm -f conftest.err conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16584 echo "${ECHO_T}$ac_header_preproc" >&6; }
16585
16586 # So? What about this header?
16587 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16588 yes:no: )
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16593 ac_header_preproc=yes
16594 ;;
16595 no:yes:* )
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16608 ( cat <<\_ASBOX
16609 ## ----------------------------------- ##
16610 ## Report this to [email protected] ##
16611 ## ----------------------------------- ##
16612 _ASBOX
16613 ) | sed "s/^/$as_me: WARNING: /" >&2
16614 ;;
16615 esac
16616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621 eval "$as_ac_Header=\$ac_header_preproc"
16622 fi
16623 ac_res=`eval echo '${'$as_ac_Header'}'`
16624 { echo "$as_me:$LINENO: result: $ac_res" >&5
16625 echo "${ECHO_T}$ac_res" >&6; }
16626
16627 fi
16628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16631 _ACEOF
16632
16633 else
16634 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16635 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16636 { (exit 1); exit 1; }; }
16637 fi
16638
16639 done
16640
16641
16642 for ac_header in memory
16643 do
16644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 fi
16651 ac_res=`eval echo '${'$as_ac_Header'}'`
16652 { echo "$as_me:$LINENO: result: $ac_res" >&5
16653 echo "${ECHO_T}$ac_res" >&6; }
16654 else
16655 # Is the header compilable?
16656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 $ac_includes_default
16665 #include <$ac_header>
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (ac_try="$ac_compile"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672 esac
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_compile") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && {
16681 test -z "$ac_cxx_werror_flag" ||
16682 test ! -s conftest.err
16683 } && test -s conftest.$ac_objext; then
16684 ac_header_compiler=yes
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ac_header_compiler=no
16690 fi
16691
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16694 echo "${ECHO_T}$ac_header_compiler" >&6; }
16695
16696 # Is the header present?
16697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <$ac_header>
16706 _ACEOF
16707 if { (ac_try="$ac_cpp conftest.$ac_ext"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } >/dev/null && {
16720 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16721 test ! -s conftest.err
16722 }; then
16723 ac_header_preproc=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ac_header_preproc=no
16729 fi
16730
16731 rm -f conftest.err conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16733 echo "${ECHO_T}$ac_header_preproc" >&6; }
16734
16735 # So? What about this header?
16736 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16737 yes:no: )
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16742 ac_header_preproc=yes
16743 ;;
16744 no:yes:* )
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16757 ( cat <<\_ASBOX
16758 ## ----------------------------------- ##
16759 ## Report this to [email protected] ##
16760 ## ----------------------------------- ##
16761 _ASBOX
16762 ) | sed "s/^/$as_me: WARNING: /" >&2
16763 ;;
16764 esac
16765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770 eval "$as_ac_Header=\$ac_header_preproc"
16771 fi
16772 ac_res=`eval echo '${'$as_ac_Header'}'`
16773 { echo "$as_me:$LINENO: result: $ac_res" >&5
16774 echo "${ECHO_T}$ac_res" >&6; }
16775
16776 fi
16777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16778 cat >>confdefs.h <<_ACEOF
16779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16780 _ACEOF
16781
16782 else
16783 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16784 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16785 { (exit 1); exit 1; }; }
16786 fi
16787
16788 done
16789
16790
16791 for ac_header in ostream
16792 do
16793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 fi
16800 ac_res=`eval echo '${'$as_ac_Header'}'`
16801 { echo "$as_me:$LINENO: result: $ac_res" >&5
16802 echo "${ECHO_T}$ac_res" >&6; }
16803 else
16804 # Is the header compilable?
16805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h. */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 $ac_includes_default
16814 #include <$ac_header>
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (ac_try="$ac_compile"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_compile") 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_cxx_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest.$ac_objext; then
16833 ac_header_compiler=yes
16834 else
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 ac_header_compiler=no
16839 fi
16840
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16843 echo "${ECHO_T}$ac_header_compiler" >&6; }
16844
16845 # Is the header present?
16846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <$ac_header>
16855 _ACEOF
16856 if { (ac_try="$ac_cpp conftest.$ac_ext"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } >/dev/null && {
16869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16870 test ! -s conftest.err
16871 }; then
16872 ac_header_preproc=yes
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 ac_header_preproc=no
16878 fi
16879
16880 rm -f conftest.err conftest.$ac_ext
16881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16882 echo "${ECHO_T}$ac_header_preproc" >&6; }
16883
16884 # So? What about this header?
16885 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16886 yes:no: )
16887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16891 ac_header_preproc=yes
16892 ;;
16893 no:yes:* )
16894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16906 ( cat <<\_ASBOX
16907 ## ----------------------------------- ##
16908 ## Report this to [email protected] ##
16909 ## ----------------------------------- ##
16910 _ASBOX
16911 ) | sed "s/^/$as_me: WARNING: /" >&2
16912 ;;
16913 esac
16914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919 eval "$as_ac_Header=\$ac_header_preproc"
16920 fi
16921 ac_res=`eval echo '${'$as_ac_Header'}'`
16922 { echo "$as_me:$LINENO: result: $ac_res" >&5
16923 echo "${ECHO_T}$ac_res" >&6; }
16924
16925 fi
16926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16929 _ACEOF
16930
16931 else
16932 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
16933 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
16934 { (exit 1); exit 1; }; }
16935 fi
16936
16937 done
16938
16939
16940 for ac_header in sstream
16941 do
16942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 fi
16949 ac_res=`eval echo '${'$as_ac_Header'}'`
16950 { echo "$as_me:$LINENO: result: $ac_res" >&5
16951 echo "${ECHO_T}$ac_res" >&6; }
16952 else
16953 # Is the header compilable?
16954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h. */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 $ac_includes_default
16963 #include <$ac_header>
16964 _ACEOF
16965 rm -f conftest.$ac_objext
16966 if { (ac_try="$ac_compile"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_compile") 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_cxx_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest.$ac_objext; then
16982 ac_header_compiler=yes
16983 else
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 ac_header_compiler=no
16988 fi
16989
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16992 echo "${ECHO_T}$ac_header_compiler" >&6; }
16993
16994 # Is the header present?
16995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 #include <$ac_header>
17004 _ACEOF
17005 if { (ac_try="$ac_cpp conftest.$ac_ext"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } >/dev/null && {
17018 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
17019 test ! -s conftest.err
17020 }; then
17021 ac_header_preproc=yes
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 ac_header_preproc=no
17027 fi
17028
17029 rm -f conftest.err conftest.$ac_ext
17030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17031 echo "${ECHO_T}$ac_header_preproc" >&6; }
17032
17033 # So? What about this header?
17034 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17035 yes:no: )
17036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17040 ac_header_preproc=yes
17041 ;;
17042 no:yes:* )
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17055 ( cat <<\_ASBOX
17056 ## ----------------------------------- ##
17057 ## Report this to [email protected] ##
17058 ## ----------------------------------- ##
17059 _ASBOX
17060 ) | sed "s/^/$as_me: WARNING: /" >&2
17061 ;;
17062 esac
17063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 eval "$as_ac_Header=\$ac_header_preproc"
17069 fi
17070 ac_res=`eval echo '${'$as_ac_Header'}'`
17071 { echo "$as_me:$LINENO: result: $ac_res" >&5
17072 echo "${ECHO_T}$ac_res" >&6; }
17073
17074 fi
17075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17076 cat >>confdefs.h <<_ACEOF
17077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17078 _ACEOF
17079
17080 else
17081 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
17082 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
17083 { (exit 1); exit 1; }; }
17084 fi
17085
17086 done
17087
17088
17089 for ac_header in string
17090 do
17091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 fi
17098 ac_res=`eval echo '${'$as_ac_Header'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17101 else
17102 # Is the header compilable?
17103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 $ac_includes_default
17112 #include <$ac_header>
17113 _ACEOF
17114 rm -f conftest.$ac_objext
17115 if { (ac_try="$ac_compile"
17116 case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_compile") 2>conftest.er1
17122 ac_status=$?
17123 grep -v '^ *+' conftest.er1 >conftest.err
17124 rm -f conftest.er1
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_cxx_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest.$ac_objext; then
17131 ac_header_compiler=yes
17132 else
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136 ac_header_compiler=no
17137 fi
17138
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17141 echo "${ECHO_T}$ac_header_compiler" >&6; }
17142
17143 # Is the header present?
17144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 #include <$ac_header>
17153 _ACEOF
17154 if { (ac_try="$ac_cpp conftest.$ac_ext"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } >/dev/null && {
17167 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
17168 test ! -s conftest.err
17169 }; then
17170 ac_header_preproc=yes
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 ac_header_preproc=no
17176 fi
17177
17178 rm -f conftest.err conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180 echo "${ECHO_T}$ac_header_preproc" >&6; }
17181
17182 # So? What about this header?
17183 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17184 yes:no: )
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189 ac_header_preproc=yes
17190 ;;
17191 no:yes:* )
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17204 ( cat <<\_ASBOX
17205 ## ----------------------------------- ##
17206 ## Report this to [email protected] ##
17207 ## ----------------------------------- ##
17208 _ASBOX
17209 ) | sed "s/^/$as_me: WARNING: /" >&2
17210 ;;
17211 esac
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217 eval "$as_ac_Header=\$ac_header_preproc"
17218 fi
17219 ac_res=`eval echo '${'$as_ac_Header'}'`
17220 { echo "$as_me:$LINENO: result: $ac_res" >&5
17221 echo "${ECHO_T}$ac_res" >&6; }
17222
17223 fi
17224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17227 _ACEOF
17228
17229 else
17230 { { echo "$as_me:$LINENO: error: Header not found. Configuration aborted." >&5
17231 echo "$as_me: error: Header not found. Configuration aborted." >&2;}
17232 { (exit 1); exit 1; }; }
17233 fi
17234
17235 done
17236
17237
17238 if test "$DOC_GEN" -ne "0"
17239 then
17240 # Extract the first word of "doxygen", so it can be a program name with args.
17241 set dummy doxygen; ac_word=$2
17242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17244 if test "${ac_cv_path_DOXYGEN+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247 case $DOXYGEN in
17248 [\\/]* | ?:[\\/]*)
17249 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17250 ;;
17251 *)
17252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17253 for as_dir in $PATH
17254 do
17255 IFS=$as_save_IFS
17256 test -z "$as_dir" && as_dir=.
17257 for ac_exec_ext in '' $ac_executable_extensions; do
17258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17259 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17261 break 2
17262 fi
17263 done
17264 done
17265 IFS=$as_save_IFS
17266
17267 ;;
17268 esac
17269 fi
17270 DOXYGEN=$ac_cv_path_DOXYGEN
17271 if test -n "$DOXYGEN"; then
17272 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
17273 echo "${ECHO_T}$DOXYGEN" >&6; }
17274 else
17275 { echo "$as_me:$LINENO: result: no" >&5
17276 echo "${ECHO_T}no" >&6; }
17277 fi
17278
17279
17280 if test -z "$DOXYGEN"
17281 then
17282 { echo "$as_me:$LINENO: WARNING: API documentation generation will be skipped." >&5
17283 echo "$as_me: WARNING: API documentation generation will be skipped." >&2;}
17284 HAVE_DOT=NO
17285
17286 else
17287 { echo "$as_me:$LINENO: API documentation will be generated." >&5
17288 echo "$as_me: API documentation will be generated." >&6;}
17289 DOXYGEN=doxygen
17290
17291 # Extract the first word of "dot", so it can be a program name with args.
17292 set dummy dot; ac_word=$2
17293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17295 if test "${ac_cv_path_TEST_DOT+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298 case $TEST_DOT in
17299 [\\/]* | ?:[\\/]*)
17300 ac_cv_path_TEST_DOT="$TEST_DOT" # Let the user override the test with a path.
17301 ;;
17302 *)
17303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in $PATH
17305 do
17306 IFS=$as_save_IFS
17307 test -z "$as_dir" && as_dir=.
17308 for ac_exec_ext in '' $ac_executable_extensions; do
17309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17310 ac_cv_path_TEST_DOT="$as_dir/$ac_word$ac_exec_ext"
17311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17312 break 2
17313 fi
17314 done
17315 done
17316 IFS=$as_save_IFS
17317
17318 ;;
17319 esac
17320 fi
17321 TEST_DOT=$ac_cv_path_TEST_DOT
17322 if test -n "$TEST_DOT"; then
17323 { echo "$as_me:$LINENO: result: $TEST_DOT" >&5
17324 echo "${ECHO_T}$TEST_DOT" >&6; }
17325 else
17326 { echo "$as_me:$LINENO: result: no" >&5
17327 echo "${ECHO_T}no" >&6; }
17328 fi
17329
17330
17331 if test -z "$TEST_DOT"
17332 then
17333 { echo "$as_me:$LINENO: WARNING: API documentation will only include basic diagrams." >&5
17334 echo "$as_me: WARNING: API documentation will only include basic diagrams." >&2;}
17335 HAVE_DOT=NO
17336
17337 else
17338 { echo "$as_me:$LINENO: API documentation will include extended diagrams." >&5
17339 echo "$as_me: API documentation will include extended diagrams." >&6;}
17340 HAVE_DOT=YES
17341
17342 fi
17343 fi
17344 else
17345 DOXYGEN=""
17346
17347 { echo "$as_me:$LINENO: WARNING: --disable-doc-gen option activated. Library documentation will not be generated." >&5
17348 echo "$as_me: WARNING: --disable-doc-gen option activated. Library documentation will not be generated." >&2;}
17349 fi
17350
17351 if test -n "$DOXYGEN"
17352 then
17353 # Extract the first word of "pdflatex", so it can be a program name with args.
17354 set dummy pdflatex; ac_word=$2
17355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17357 if test "${ac_cv_path_PDFLATEX+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360 case $PDFLATEX in
17361 [\\/]* | ?:[\\/]*)
17362 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
17363 ;;
17364 *)
17365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17366 for as_dir in $PATH
17367 do
17368 IFS=$as_save_IFS
17369 test -z "$as_dir" && as_dir=.
17370 for ac_exec_ext in '' $ac_executable_extensions; do
17371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17372 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17374 break 2
17375 fi
17376 done
17377 done
17378 IFS=$as_save_IFS
17379
17380 ;;
17381 esac
17382 fi
17383 PDFLATEX=$ac_cv_path_PDFLATEX
17384 if test -n "$PDFLATEX"; then
17385 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
17386 echo "${ECHO_T}$PDFLATEX" >&6; }
17387 else
17388 { echo "$as_me:$LINENO: result: no" >&5
17389 echo "${ECHO_T}no" >&6; }
17390 fi
17391
17392
17393 if test -z "$PDFLATEX"
17394 then
17395 { echo "$as_me:$LINENO: WARNING: API latex documentation cannot be converted to PDF format." >&5
17396 echo "$as_me: WARNING: API latex documentation cannot be converted to PDF format." >&2;}
17397 else
17398 { echo "$as_me:$LINENO: API latex documentation will be also available in PDF format." >&5
17399 echo "$as_me: API latex documentation will be also available in PDF format." >&6;}
17400 fi
17401 else
17402 PDFLATEX=""
17403 fi
17404
17405
17406 ac_config_files="$ac_config_files Makefile doc/Doxyfile doc/Makefile jaula/Makefile examples/Makefile"
17407
17408 cat >confcache <<\_ACEOF
17409 # This file is a shell script that caches the results of configure
17410 # tests run on this system so they can be shared between configure
17411 # scripts and configure runs, see configure's option --config-cache.
17412 # It is not useful on other systems. If it contains results you don't
17413 # want to keep, you may remove or edit it.
17414 #
17415 # config.status only pays attention to the cache file if you give it
17416 # the --recheck option to rerun configure.
17417 #
17418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17420 # following values.
17421
17422 _ACEOF
17423
17424 # The following way of writing the cache mishandles newlines in values,
17425 # but we know of no workaround that is simple, portable, and efficient.
17426 # So, we kill variables containing newlines.
17427 # Ultrix sh set writes to stderr and can't be redirected directly,
17428 # and sets the high bit in the cache file unless we assign to the vars.
17429 (
17430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17431 eval ac_val=\$$ac_var
17432 case $ac_val in #(
17433 *${as_nl}*)
17434 case $ac_var in #(
17435 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17436 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17437 esac
17438 case $ac_var in #(
17439 _ | IFS | as_nl) ;; #(
17440 *) $as_unset $ac_var ;;
17441 esac ;;
17442 esac
17443 done
17444
17445 (set) 2>&1 |
17446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17447 *${as_nl}ac_space=\ *)
17448 # `set' does not quote correctly, so add quotes (double-quote
17449 # substitution turns \\\\ into \\, and sed turns \\ into \).
17450 sed -n \
17451 "s/'/'\\\\''/g;
17452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17453 ;; #(
17454 *)
17455 # `set' quotes correctly as required by POSIX, so do not add quotes.
17456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17457 ;;
17458 esac |
17459 sort
17460 ) |
17461 sed '
17462 /^ac_cv_env_/b end
17463 t clear
17464 :clear
17465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17466 t end
17467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17468 :end' >>confcache
17469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17470 if test -w "$cache_file"; then
17471 test "x$cache_file" != "x/dev/null" &&
17472 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17473 echo "$as_me: updating cache $cache_file" >&6;}
17474 cat confcache >$cache_file
17475 else
17476 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17477 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17478 fi
17479 fi
17480 rm -f confcache
17481
17482 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17483 # Let make expand exec_prefix.
17484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17485
17486 DEFS=-DHAVE_CONFIG_H
17487
17488 ac_libobjs=
17489 ac_ltlibobjs=
17490 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17491 # 1. Remove the extension, and $U if already installed.
17492 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17493 ac_i=`echo "$ac_i" | sed "$ac_script"`
17494 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17495 # will be set to the directory where LIBOBJS objects are built.
17496 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17497 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17498 done
17499 LIBOBJS=$ac_libobjs
17500
17501 LTLIBOBJS=$ac_ltlibobjs
17502
17503
17504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17505 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17506 Usually this means the macro was only invoked conditionally." >&5
17507 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17508 Usually this means the macro was only invoked conditionally." >&2;}
17509 { (exit 1); exit 1; }; }
17510 fi
17511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17512 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17513 Usually this means the macro was only invoked conditionally." >&5
17514 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17515 Usually this means the macro was only invoked conditionally." >&2;}
17516 { (exit 1); exit 1; }; }
17517 fi
17518 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17519 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17520 Usually this means the macro was only invoked conditionally." >&5
17521 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17522 Usually this means the macro was only invoked conditionally." >&2;}
17523 { (exit 1); exit 1; }; }
17524 fi
17525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17526 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17527 Usually this means the macro was only invoked conditionally." >&5
17528 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17529 Usually this means the macro was only invoked conditionally." >&2;}
17530 { (exit 1); exit 1; }; }
17531 fi
17532
17533 : ${CONFIG_STATUS=./config.status}
17534 ac_clean_files_save=$ac_clean_files
17535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17538 cat >$CONFIG_STATUS <<_ACEOF
17539 #! $SHELL
17540 # Generated by $as_me.
17541 # Run this file to recreate the current configuration.
17542 # Compiler output produced by configure, useful for debugging
17543 # configure, is in config.log if it exists.
17544
17545 debug=false
17546 ac_cs_recheck=false
17547 ac_cs_silent=false
17548 SHELL=\${CONFIG_SHELL-$SHELL}
17549 _ACEOF
17550
17551 cat >>$CONFIG_STATUS <<\_ACEOF
17552 ## --------------------- ##
17553 ## M4sh Initialization. ##
17554 ## --------------------- ##
17555
17556 # Be more Bourne compatible
17557 DUALCASE=1; export DUALCASE # for MKS sh
17558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17559 emulate sh
17560 NULLCMD=:
17561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17562 # is contrary to our usage. Disable this feature.
17563 alias -g '${1+"$@"}'='"$@"'
17564 setopt NO_GLOB_SUBST
17565 else
17566 case `(set -o) 2>/dev/null` in
17567 *posix*) set -o posix ;;
17568 esac
17569
17570 fi
17571
17572
17573
17574
17575 # PATH needs CR
17576 # Avoid depending upon Character Ranges.
17577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17580 as_cr_digits='0123456789'
17581 as_cr_alnum=$as_cr_Letters$as_cr_digits
17582
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585 echo "#! /bin/sh" >conf$$.sh
17586 echo "exit 0" >>conf$$.sh
17587 chmod +x conf$$.sh
17588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17589 PATH_SEPARATOR=';'
17590 else
17591 PATH_SEPARATOR=:
17592 fi
17593 rm -f conf$$.sh
17594 fi
17595
17596 # Support unset when possible.
17597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17598 as_unset=unset
17599 else
17600 as_unset=false
17601 fi
17602
17603
17604 # IFS
17605 # We need space, tab and new line, in precisely that order. Quoting is
17606 # there to prevent editors from complaining about space-tab.
17607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17608 # splitting by setting IFS to empty value.)
17609 as_nl='
17610 '
17611 IFS=" "" $as_nl"
17612
17613 # Find who we are. Look in the path if we contain no directory separator.
17614 case $0 in
17615 *[\\/]* ) as_myself=$0 ;;
17616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17617 for as_dir in $PATH
17618 do
17619 IFS=$as_save_IFS
17620 test -z "$as_dir" && as_dir=.
17621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17622 done
17623 IFS=$as_save_IFS
17624
17625 ;;
17626 esac
17627 # We did not find ourselves, most probably we were run as `sh COMMAND'
17628 # in which case we are not to be found in the path.
17629 if test "x$as_myself" = x; then
17630 as_myself=$0
17631 fi
17632 if test ! -f "$as_myself"; then
17633 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17634 { (exit 1); exit 1; }
17635 fi
17636
17637 # Work around bugs in pre-3.0 UWIN ksh.
17638 for as_var in ENV MAIL MAILPATH
17639 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17640 done
17641 PS1='$ '
17642 PS2='> '
17643 PS4='+ '
17644
17645 # NLS nuisances.
17646 for as_var in \
17647 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17648 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17649 LC_TELEPHONE LC_TIME
17650 do
17651 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17652 eval $as_var=C; export $as_var
17653 else
17654 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17655 fi
17656 done
17657
17658 # Required to use basename.
17659 if expr a : '\(a\)' >/dev/null 2>&1 &&
17660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17661 as_expr=expr
17662 else
17663 as_expr=false
17664 fi
17665
17666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17667 as_basename=basename
17668 else
17669 as_basename=false
17670 fi
17671
17672
17673 # Name of the executable.
17674 as_me=`$as_basename -- "$0" ||
17675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17676 X"$0" : 'X\(//\)$' \| \
17677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17678 echo X/"$0" |
17679 sed '/^.*\/\([^/][^/]*\)\/*$/{
17680 s//\1/
17681 q
17682 }
17683 /^X\/\(\/\/\)$/{
17684 s//\1/
17685 q
17686 }
17687 /^X\/\(\/\).*/{
17688 s//\1/
17689 q
17690 }
17691 s/.*/./; q'`
17692
17693 # CDPATH.
17694 $as_unset CDPATH
17695
17696
17697
17698 as_lineno_1=$LINENO
17699 as_lineno_2=$LINENO
17700 test "x$as_lineno_1" != "x$as_lineno_2" &&
17701 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17702
17703 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17704 # uniformly replaced by the line number. The first 'sed' inserts a
17705 # line-number line after each line using $LINENO; the second 'sed'
17706 # does the real work. The second script uses 'N' to pair each
17707 # line-number line with the line containing $LINENO, and appends
17708 # trailing '-' during substitution so that $LINENO is not a special
17709 # case at line end.
17710 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17711 # scripts with optimization help from Paolo Bonzini. Blame Lee
17712 # E. McMahon (1931-1989) for sed's syntax. :-)
17713 sed -n '
17714 p
17715 /[$]LINENO/=
17716 ' <$as_myself |
17717 sed '
17718 s/[$]LINENO.*/&-/
17719 t lineno
17720 b
17721 :lineno
17722 N
17723 :loop
17724 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17725 t loop
17726 s/-\n.*//
17727 ' >$as_me.lineno &&
17728 chmod +x "$as_me.lineno" ||
17729 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17730 { (exit 1); exit 1; }; }
17731
17732 # Don't try to exec as it changes $[0], causing all sort of problems
17733 # (the dirname of $[0] is not the place where we might find the
17734 # original and so on. Autoconf is especially sensitive to this).
17735 . "./$as_me.lineno"
17736 # Exit status is that of the last command.
17737 exit
17738 }
17739
17740
17741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17742 as_dirname=dirname
17743 else
17744 as_dirname=false
17745 fi
17746
17747 ECHO_C= ECHO_N= ECHO_T=
17748 case `echo -n x` in
17749 -n*)
17750 case `echo 'x\c'` in
17751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17752 *) ECHO_C='\c';;
17753 esac;;
17754 *)
17755 ECHO_N='-n';;
17756 esac
17757
17758 if expr a : '\(a\)' >/dev/null 2>&1 &&
17759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17760 as_expr=expr
17761 else
17762 as_expr=false
17763 fi
17764
17765 rm -f conf$$ conf$$.exe conf$$.file
17766 if test -d conf$$.dir; then
17767 rm -f conf$$.dir/conf$$.file
17768 else
17769 rm -f conf$$.dir
17770 mkdir conf$$.dir
17771 fi
17772 echo >conf$$.file
17773 if ln -s conf$$.file conf$$ 2>/dev/null; then
17774 as_ln_s='ln -s'
17775 # ... but there are two gotchas:
17776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17778 # In both cases, we have to default to `cp -p'.
17779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17780 as_ln_s='cp -p'
17781 elif ln conf$$.file conf$$ 2>/dev/null; then
17782 as_ln_s=ln
17783 else
17784 as_ln_s='cp -p'
17785 fi
17786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17787 rmdir conf$$.dir 2>/dev/null
17788
17789 if mkdir -p . 2>/dev/null; then
17790 as_mkdir_p=:
17791 else
17792 test -d ./-p && rmdir ./-p
17793 as_mkdir_p=false
17794 fi
17795
17796 if test -x / >/dev/null 2>&1; then
17797 as_test_x='test -x'
17798 else
17799 if ls -dL / >/dev/null 2>&1; then
17800 as_ls_L_option=L
17801 else
17802 as_ls_L_option=
17803 fi
17804 as_test_x='
17805 eval sh -c '\''
17806 if test -d "$1"; then
17807 test -d "$1/.";
17808 else
17809 case $1 in
17810 -*)set "./$1";;
17811 esac;
17812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17813 ???[sx]*):;;*)false;;esac;fi
17814 '\'' sh
17815 '
17816 fi
17817 as_executable_p=$as_test_x
17818
17819 # Sed expression to map a string onto a valid CPP name.
17820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17821
17822 # Sed expression to map a string onto a valid variable name.
17823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17824
17825
17826 exec 6>&1
17827
17828 # Save the log message, to keep $[0] and so on meaningful, and to
17829 # report actual input values of CONFIG_FILES etc. instead of their
17830 # values after options handling.
17831 ac_log="
17832 This file was extended by jaula $as_me 1.4.0, which was
17833 generated by GNU Autoconf 2.61. Invocation command line was
17834
17835 CONFIG_FILES = $CONFIG_FILES
17836 CONFIG_HEADERS = $CONFIG_HEADERS
17837 CONFIG_LINKS = $CONFIG_LINKS
17838 CONFIG_COMMANDS = $CONFIG_COMMANDS
17839 $ $0 $@
17840
17841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17842 "
17843
17844 _ACEOF
17845
17846 cat >>$CONFIG_STATUS <<_ACEOF
17847 # Files that config.status was made for.
17848 config_files="$ac_config_files"
17849 config_headers="$ac_config_headers"
17850 config_commands="$ac_config_commands"
17851
17852 _ACEOF
17853
17854 cat >>$CONFIG_STATUS <<\_ACEOF
17855 ac_cs_usage="\
17856 \`$as_me' instantiates files from templates according to the
17857 current configuration.
17858
17859 Usage: $0 [OPTIONS] [FILE]...
17860
17861 -h, --help print this help, then exit
17862 -V, --version print version number and configuration settings, then exit
17863 -q, --quiet do not print progress messages
17864 -d, --debug don't remove temporary files
17865 --recheck update $as_me by reconfiguring in the same conditions
17866 --file=FILE[:TEMPLATE]
17867 instantiate the configuration file FILE
17868 --header=FILE[:TEMPLATE]
17869 instantiate the configuration header FILE
17870
17871 Configuration files:
17872 $config_files
17873
17874 Configuration headers:
17875 $config_headers
17876
17877 Configuration commands:
17878 $config_commands
17879
17880 Report bugs to <[email protected]>."
17881
17882 _ACEOF
17883 cat >>$CONFIG_STATUS <<_ACEOF
17884 ac_cs_version="\\
17885 jaula config.status 1.4.0
17886 configured by $0, generated by GNU Autoconf 2.61,
17887 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17888
17889 Copyright (C) 2006 Free Software Foundation, Inc.
17890 This config.status script is free software; the Free Software Foundation
17891 gives unlimited permission to copy, distribute and modify it."
17892
17893 ac_pwd='$ac_pwd'
17894 srcdir='$srcdir'
17895 INSTALL='$INSTALL'
17896 MKDIR_P='$MKDIR_P'
17897 _ACEOF
17898
17899 cat >>$CONFIG_STATUS <<\_ACEOF
17900 # If no file are specified by the user, then we need to provide default
17901 # value. By we need to know if files were specified by the user.
17902 ac_need_defaults=:
17903 while test $# != 0
17904 do
17905 case $1 in
17906 --*=*)
17907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17909 ac_shift=:
17910 ;;
17911 *)
17912 ac_option=$1
17913 ac_optarg=$2
17914 ac_shift=shift
17915 ;;
17916 esac
17917
17918 case $ac_option in
17919 # Handling of the options.
17920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17921 ac_cs_recheck=: ;;
17922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17923 echo "$ac_cs_version"; exit ;;
17924 --debug | --debu | --deb | --de | --d | -d )
17925 debug=: ;;
17926 --file | --fil | --fi | --f )
17927 $ac_shift
17928 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17929 ac_need_defaults=false;;
17930 --header | --heade | --head | --hea )
17931 $ac_shift
17932 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17933 ac_need_defaults=false;;
17934 --he | --h)
17935 # Conflict between --help and --header
17936 { echo "$as_me: error: ambiguous option: $1
17937 Try \`$0 --help' for more information." >&2
17938 { (exit 1); exit 1; }; };;
17939 --help | --hel | -h )
17940 echo "$ac_cs_usage"; exit ;;
17941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17943 ac_cs_silent=: ;;
17944
17945 # This is an error.
17946 -*) { echo "$as_me: error: unrecognized option: $1
17947 Try \`$0 --help' for more information." >&2
17948 { (exit 1); exit 1; }; } ;;
17949
17950 *) ac_config_targets="$ac_config_targets $1"
17951 ac_need_defaults=false ;;
17952
17953 esac
17954 shift
17955 done
17956
17957 ac_configure_extra_args=
17958
17959 if $ac_cs_silent; then
17960 exec 6>/dev/null
17961 ac_configure_extra_args="$ac_configure_extra_args --silent"
17962 fi
17963
17964 _ACEOF
17965 cat >>$CONFIG_STATUS <<_ACEOF
17966 if \$ac_cs_recheck; then
17967 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17968 CONFIG_SHELL=$SHELL
17969 export CONFIG_SHELL
17970 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17971 fi
17972
17973 _ACEOF
17974 cat >>$CONFIG_STATUS <<\_ACEOF
17975 exec 5>>config.log
17976 {
17977 echo
17978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17979 ## Running $as_me. ##
17980 _ASBOX
17981 echo "$ac_log"
17982 } >&5
17983
17984 _ACEOF
17985 cat >>$CONFIG_STATUS <<_ACEOF
17986 #
17987 # INIT-COMMANDS
17988 #
17989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17990
17991
17992 # The HP-UX ksh and POSIX shell print the target directory to stdout
17993 # if CDPATH is set.
17994 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17995
17996 sed_quote_subst='$sed_quote_subst'
17997 double_quote_subst='$double_quote_subst'
17998 delay_variable_subst='$delay_variable_subst'
17999 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18000 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18001 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18002 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18003 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18004 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18005 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18006 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18007 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18008 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18009 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18010 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18011 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18012 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18013 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18014 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18015 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18016 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18017 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18018 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18019 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18020 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18021 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18022 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18023 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18024 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18025 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18026 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18027 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18028 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18029 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18030 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18031 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18032 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18033 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18034 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18035 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18036 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18037 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18038 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18039 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18040 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18041 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18042 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18043 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18044 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18045 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18046 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18047 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18048 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18049 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18050 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18051 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18052 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18053 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18054 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18055 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18056 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18057 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18058 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18059 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18060 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18061 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18062 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18063 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18064 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18065 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18066 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18067 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18068 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18069 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18070 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18071 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18072 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18073 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18074 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18075 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18076 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18077 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18078 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18079 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18080 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18081 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18082 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18083 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18084 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18085 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18086 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18087 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18088 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18089 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18090 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18091 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18092 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18093 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18094 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18095 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18096 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18097 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18098 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18099 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18100 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18101 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18102 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18103 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18104 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18105 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18106 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18107 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18108 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18109 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18110 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18111 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18112 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18113 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18114 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18115 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18116 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18117 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18118 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18119 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18120 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18121 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18122 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18123 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18124 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18125 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18126 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18127 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18128 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18129 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18130 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18131 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18132 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18133 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18134 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18135 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18136 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18137 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18138 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18139 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18140 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18141 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18142 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18143 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18144 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18145 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18146 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18147 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18148 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18149 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18150 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18151 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18152 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18153 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18154 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18155 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18156 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18157 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18158 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18159 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18160 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18161 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18162 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18163 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18164 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18165 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18166 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18167 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18168 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18169
18170 LTCC='$LTCC'
18171 LTCFLAGS='$LTCFLAGS'
18172 compiler='$compiler_DEFAULT'
18173
18174 # Quote evaled strings.
18175 for var in SED \
18176 GREP \
18177 EGREP \
18178 FGREP \
18179 LD \
18180 NM \
18181 LN_S \
18182 lt_SP2NL \
18183 lt_NL2SP \
18184 reload_flag \
18185 deplibs_check_method \
18186 file_magic_cmd \
18187 AR \
18188 AR_FLAGS \
18189 STRIP \
18190 RANLIB \
18191 CC \
18192 CFLAGS \
18193 compiler \
18194 lt_cv_sys_global_symbol_pipe \
18195 lt_cv_sys_global_symbol_to_cdecl \
18196 lt_cv_sys_global_symbol_to_c_name_address \
18197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18198 SHELL \
18199 ECHO \
18200 lt_prog_compiler_no_builtin_flag \
18201 lt_prog_compiler_wl \
18202 lt_prog_compiler_pic \
18203 lt_prog_compiler_static \
18204 lt_cv_prog_compiler_c_o \
18205 need_locks \
18206 DSYMUTIL \
18207 NMEDIT \
18208 LIPO \
18209 OTOOL \
18210 OTOOL64 \
18211 shrext_cmds \
18212 export_dynamic_flag_spec \
18213 whole_archive_flag_spec \
18214 compiler_needs_object \
18215 with_gnu_ld \
18216 allow_undefined_flag \
18217 no_undefined_flag \
18218 hardcode_libdir_flag_spec \
18219 hardcode_libdir_flag_spec_ld \
18220 hardcode_libdir_separator \
18221 fix_srcfile_path \
18222 exclude_expsyms \
18223 include_expsyms \
18224 file_list_spec \
18225 variables_saved_for_relink \
18226 libname_spec \
18227 library_names_spec \
18228 soname_spec \
18229 finish_eval \
18230 old_striplib \
18231 striplib \
18232 compiler_lib_search_dirs \
18233 predep_objects \
18234 postdep_objects \
18235 predeps \
18236 postdeps \
18237 compiler_lib_search_path \
18238 LD_CXX \
18239 compiler_CXX \
18240 lt_prog_compiler_no_builtin_flag_CXX \
18241 lt_prog_compiler_wl_CXX \
18242 lt_prog_compiler_pic_CXX \
18243 lt_prog_compiler_static_CXX \
18244 lt_cv_prog_compiler_c_o_CXX \
18245 export_dynamic_flag_spec_CXX \
18246 whole_archive_flag_spec_CXX \
18247 compiler_needs_object_CXX \
18248 with_gnu_ld_CXX \
18249 allow_undefined_flag_CXX \
18250 no_undefined_flag_CXX \
18251 hardcode_libdir_flag_spec_CXX \
18252 hardcode_libdir_flag_spec_ld_CXX \
18253 hardcode_libdir_separator_CXX \
18254 fix_srcfile_path_CXX \
18255 exclude_expsyms_CXX \
18256 include_expsyms_CXX \
18257 file_list_spec_CXX \
18258 compiler_lib_search_dirs_CXX \
18259 predep_objects_CXX \
18260 postdep_objects_CXX \
18261 predeps_CXX \
18262 postdeps_CXX \
18263 compiler_lib_search_path_CXX; do
18264 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18265 *[\\\\\\\`\\"\\\$]*)
18266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18267 ;;
18268 *)
18269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18270 ;;
18271 esac
18272 done
18273
18274 # Double-quote double-evaled strings.
18275 for var in reload_cmds \
18276 old_postinstall_cmds \
18277 old_postuninstall_cmds \
18278 old_archive_cmds \
18279 extract_expsyms_cmds \
18280 old_archive_from_new_cmds \
18281 old_archive_from_expsyms_cmds \
18282 archive_cmds \
18283 archive_expsym_cmds \
18284 module_cmds \
18285 module_expsym_cmds \
18286 export_symbols_cmds \
18287 prelink_cmds \
18288 postinstall_cmds \
18289 postuninstall_cmds \
18290 finish_cmds \
18291 sys_lib_search_path_spec \
18292 sys_lib_dlsearch_path_spec \
18293 old_archive_cmds_CXX \
18294 old_archive_from_new_cmds_CXX \
18295 old_archive_from_expsyms_cmds_CXX \
18296 archive_cmds_CXX \
18297 archive_expsym_cmds_CXX \
18298 module_cmds_CXX \
18299 module_expsym_cmds_CXX \
18300 export_symbols_cmds_CXX \
18301 prelink_cmds_CXX; do
18302 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18303 *[\\\\\\\`\\"\\\$]*)
18304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18305 ;;
18306 *)
18307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18308 ;;
18309 esac
18310 done
18311
18312 # Fix-up fallback echo if it was mangled by the above quoting rules.
18313 case \$lt_ECHO in
18314 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18315 ;;
18316 esac
18317
18318 ac_aux_dir='$ac_aux_dir'
18319 xsi_shell='$xsi_shell'
18320 lt_shell_append='$lt_shell_append'
18321
18322 # See if we are running on zsh, and set the options which allow our
18323 # commands through without removal of \ escapes INIT.
18324 if test -n "\${ZSH_VERSION+set}" ; then
18325 setopt NO_GLOB_SUBST
18326 fi
18327
18328
18329 PACKAGE='$PACKAGE'
18330 VERSION='$VERSION'
18331 TIMESTAMP='$TIMESTAMP'
18332 RM='$RM'
18333 ofile='$ofile'
18334
18335
18336
18337
18338
18339
18340 _ACEOF
18341
18342 cat >>$CONFIG_STATUS <<\_ACEOF
18343
18344 # Handling of arguments.
18345 for ac_config_target in $ac_config_targets
18346 do
18347 case $ac_config_target in
18348 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18350 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18351 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18352 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
18353 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18354 "jaula/Makefile") CONFIG_FILES="$CONFIG_FILES jaula/Makefile" ;;
18355 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18356
18357 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18358 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18359 { (exit 1); exit 1; }; };;
18360 esac
18361 done
18362
18363
18364 # If the user did not use the arguments to specify the items to instantiate,
18365 # then the envvar interface is used. Set only those that are not.
18366 # We use the long form for the default assignment because of an extremely
18367 # bizarre bug on SunOS 4.1.3.
18368 if $ac_need_defaults; then
18369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18372 fi
18373
18374 # Have a temporary directory for convenience. Make it in the build tree
18375 # simply because there is no reason against having it here, and in addition,
18376 # creating and moving files from /tmp can sometimes cause problems.
18377 # Hook for its removal unless debugging.
18378 # Note that there is a small window in which the directory will not be cleaned:
18379 # after its creation but before its name has been assigned to `$tmp'.
18380 $debug ||
18381 {
18382 tmp=
18383 trap 'exit_status=$?
18384 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18385 ' 0
18386 trap '{ (exit 1); exit 1; }' 1 2 13 15
18387 }
18388 # Create a (secure) tmp directory for tmp files.
18389
18390 {
18391 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18392 test -n "$tmp" && test -d "$tmp"
18393 } ||
18394 {
18395 tmp=./conf$$-$RANDOM
18396 (umask 077 && mkdir "$tmp")
18397 } ||
18398 {
18399 echo "$me: cannot create a temporary directory in ." >&2
18400 { (exit 1); exit 1; }
18401 }
18402
18403 #
18404 # Set up the sed scripts for CONFIG_FILES section.
18405 #
18406
18407 # No need to generate the scripts if there are no CONFIG_FILES.
18408 # This happens for instance when ./config.status config.h
18409 if test -n "$CONFIG_FILES"; then
18410
18411 _ACEOF
18412
18413
18414
18415 ac_delim='%!_!# '
18416 for ac_last_try in false false false false false :; do
18417 cat >conf$$subs.sed <<_ACEOF
18418 SHELL!$SHELL$ac_delim
18419 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18420 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18421 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18422 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18423 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18424 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18425 exec_prefix!$exec_prefix$ac_delim
18426 prefix!$prefix$ac_delim
18427 program_transform_name!$program_transform_name$ac_delim
18428 bindir!$bindir$ac_delim
18429 sbindir!$sbindir$ac_delim
18430 libexecdir!$libexecdir$ac_delim
18431 datarootdir!$datarootdir$ac_delim
18432 datadir!$datadir$ac_delim
18433 sysconfdir!$sysconfdir$ac_delim
18434 sharedstatedir!$sharedstatedir$ac_delim
18435 localstatedir!$localstatedir$ac_delim
18436 includedir!$includedir$ac_delim
18437 oldincludedir!$oldincludedir$ac_delim
18438 docdir!$docdir$ac_delim
18439 infodir!$infodir$ac_delim
18440 htmldir!$htmldir$ac_delim
18441 dvidir!$dvidir$ac_delim
18442 pdfdir!$pdfdir$ac_delim
18443 psdir!$psdir$ac_delim
18444 libdir!$libdir$ac_delim
18445 localedir!$localedir$ac_delim
18446 mandir!$mandir$ac_delim
18447 DEFS!$DEFS$ac_delim
18448 ECHO_C!$ECHO_C$ac_delim
18449 ECHO_N!$ECHO_N$ac_delim
18450 ECHO_T!$ECHO_T$ac_delim
18451 LIBS!$LIBS$ac_delim
18452 build_alias!$build_alias$ac_delim
18453 host_alias!$host_alias$ac_delim
18454 target_alias!$target_alias$ac_delim
18455 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18456 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18457 INSTALL_DATA!$INSTALL_DATA$ac_delim
18458 am__isrc!$am__isrc$ac_delim
18459 CYGPATH_W!$CYGPATH_W$ac_delim
18460 PACKAGE!$PACKAGE$ac_delim
18461 VERSION!$VERSION$ac_delim
18462 ACLOCAL!$ACLOCAL$ac_delim
18463 AUTOCONF!$AUTOCONF$ac_delim
18464 AUTOMAKE!$AUTOMAKE$ac_delim
18465 AUTOHEADER!$AUTOHEADER$ac_delim
18466 MAKEINFO!$MAKEINFO$ac_delim
18467 install_sh!$install_sh$ac_delim
18468 STRIP!$STRIP$ac_delim
18469 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
18470 mkdir_p!$mkdir_p$ac_delim
18471 AWK!$AWK$ac_delim
18472 SET_MAKE!$SET_MAKE$ac_delim
18473 am__leading_dot!$am__leading_dot$ac_delim
18474 AMTAR!$AMTAR$ac_delim
18475 am__tar!$am__tar$ac_delim
18476 am__untar!$am__untar$ac_delim
18477 VERSION_INFO!$VERSION_INFO$ac_delim
18478 SUBDIRS!$SUBDIRS$ac_delim
18479 DOC_GEN!$DOC_GEN$ac_delim
18480 LIBTOOL!$LIBTOOL$ac_delim
18481 build!$build$ac_delim
18482 build_cpu!$build_cpu$ac_delim
18483 build_vendor!$build_vendor$ac_delim
18484 build_os!$build_os$ac_delim
18485 host!$host$ac_delim
18486 host_cpu!$host_cpu$ac_delim
18487 host_vendor!$host_vendor$ac_delim
18488 host_os!$host_os$ac_delim
18489 CC!$CC$ac_delim
18490 CFLAGS!$CFLAGS$ac_delim
18491 LDFLAGS!$LDFLAGS$ac_delim
18492 CPPFLAGS!$CPPFLAGS$ac_delim
18493 ac_ct_CC!$ac_ct_CC$ac_delim
18494 EXEEXT!$EXEEXT$ac_delim
18495 OBJEXT!$OBJEXT$ac_delim
18496 DEPDIR!$DEPDIR$ac_delim
18497 am__include!$am__include$ac_delim
18498 am__quote!$am__quote$ac_delim
18499 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
18500 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
18501 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
18502 CCDEPMODE!$CCDEPMODE$ac_delim
18503 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
18504 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
18505 SED!$SED$ac_delim
18506 GREP!$GREP$ac_delim
18507 EGREP!$EGREP$ac_delim
18508 FGREP!$FGREP$ac_delim
18509 LD!$LD$ac_delim
18510 DUMPBIN!$DUMPBIN$ac_delim
18511 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
18512 NM!$NM$ac_delim
18513 LN_S!$LN_S$ac_delim
18514 AR!$AR$ac_delim
18515 _ACEOF
18516
18517 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18518 break
18519 elif $ac_last_try; then
18520 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18522 { (exit 1); exit 1; }; }
18523 else
18524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18525 fi
18526 done
18527
18528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18529 if test -n "$ac_eof"; then
18530 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18531 ac_eof=`expr $ac_eof + 1`
18532 fi
18533
18534 cat >>$CONFIG_STATUS <<_ACEOF
18535 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18537 _ACEOF
18538 sed '
18539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18540 s/^/s,@/; s/!/@,|#_!!_#|/
18541 :n
18542 t n
18543 s/'"$ac_delim"'$/,g/; t
18544 s/$/\\/; p
18545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18546 ' >>$CONFIG_STATUS <conf$$subs.sed
18547 rm -f conf$$subs.sed
18548 cat >>$CONFIG_STATUS <<_ACEOF
18549 CEOF$ac_eof
18550 _ACEOF
18551
18552
18553 ac_delim='%!_!# '
18554 for ac_last_try in false false false false false :; do
18555 cat >conf$$subs.sed <<_ACEOF
18556 RANLIB!$RANLIB$ac_delim
18557 lt_ECHO!$lt_ECHO$ac_delim
18558 DSYMUTIL!$DSYMUTIL$ac_delim
18559 NMEDIT!$NMEDIT$ac_delim
18560 LIPO!$LIPO$ac_delim
18561 OTOOL!$OTOOL$ac_delim
18562 OTOOL64!$OTOOL64$ac_delim
18563 CPP!$CPP$ac_delim
18564 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
18565 CXX!$CXX$ac_delim
18566 CXXFLAGS!$CXXFLAGS$ac_delim
18567 ac_ct_CXX!$ac_ct_CXX$ac_delim
18568 CXXDEPMODE!$CXXDEPMODE$ac_delim
18569 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
18570 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
18571 CXXCPP!$CXXCPP$ac_delim
18572 LEX!$LEX$ac_delim
18573 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
18574 LEXLIB!$LEXLIB$ac_delim
18575 DOXYGEN!$DOXYGEN$ac_delim
18576 HAVE_DOT!$HAVE_DOT$ac_delim
18577 TEST_DOT!$TEST_DOT$ac_delim
18578 PDFLATEX!$PDFLATEX$ac_delim
18579 LIBOBJS!$LIBOBJS$ac_delim
18580 LTLIBOBJS!$LTLIBOBJS$ac_delim
18581 _ACEOF
18582
18583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
18584 break
18585 elif $ac_last_try; then
18586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18588 { (exit 1); exit 1; }; }
18589 else
18590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18591 fi
18592 done
18593
18594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18595 if test -n "$ac_eof"; then
18596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18597 ac_eof=`expr $ac_eof + 1`
18598 fi
18599
18600 cat >>$CONFIG_STATUS <<_ACEOF
18601 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18603 _ACEOF
18604 sed '
18605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18606 s/^/s,@/; s/!/@,|#_!!_#|/
18607 :n
18608 t n
18609 s/'"$ac_delim"'$/,g/; t
18610 s/$/\\/; p
18611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18612 ' >>$CONFIG_STATUS <conf$$subs.sed
18613 rm -f conf$$subs.sed
18614 cat >>$CONFIG_STATUS <<_ACEOF
18615 :end
18616 s/|#_!!_#|//g
18617 CEOF$ac_eof
18618 _ACEOF
18619
18620
18621 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18622 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18623 # trailing colons and then remove the whole line if VPATH becomes empty
18624 # (actually we leave an empty line to preserve line numbers).
18625 if test "x$srcdir" = x.; then
18626 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18627 s/:*\$(srcdir):*/:/
18628 s/:*\${srcdir}:*/:/
18629 s/:*@srcdir@:*/:/
18630 s/^\([^=]*=[ ]*\):*/\1/
18631 s/:*$//
18632 s/^[^=]*=[ ]*$//
18633 }'
18634 fi
18635
18636 cat >>$CONFIG_STATUS <<\_ACEOF
18637 fi # test -n "$CONFIG_FILES"
18638
18639
18640 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18641 do
18642 case $ac_tag in
18643 :[FHLC]) ac_mode=$ac_tag; continue;;
18644 esac
18645 case $ac_mode$ac_tag in
18646 :[FHL]*:*);;
18647 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18648 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18649 { (exit 1); exit 1; }; };;
18650 :[FH]-) ac_tag=-:-;;
18651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18652 esac
18653 ac_save_IFS=$IFS
18654 IFS=:
18655 set x $ac_tag
18656 IFS=$ac_save_IFS
18657 shift
18658 ac_file=$1
18659 shift
18660
18661 case $ac_mode in
18662 :L) ac_source=$1;;
18663 :[FH])
18664 ac_file_inputs=
18665 for ac_f
18666 do
18667 case $ac_f in
18668 -) ac_f="$tmp/stdin";;
18669 *) # Look for the file first in the build tree, then in the source tree
18670 # (if the path is not absolute). The absolute path cannot be DOS-style,
18671 # because $ac_f cannot contain `:'.
18672 test -f "$ac_f" ||
18673 case $ac_f in
18674 [\\/$]*) false;;
18675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18676 esac ||
18677 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18678 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18679 { (exit 1); exit 1; }; };;
18680 esac
18681 ac_file_inputs="$ac_file_inputs $ac_f"
18682 done
18683
18684 # Let's still pretend it is `configure' which instantiates (i.e., don't
18685 # use $as_me), people would be surprised to read:
18686 # /* config.h. Generated by config.status. */
18687 configure_input="Generated from "`IFS=:
18688 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18689 if test x"$ac_file" != x-; then
18690 configure_input="$ac_file. $configure_input"
18691 { echo "$as_me:$LINENO: creating $ac_file" >&5
18692 echo "$as_me: creating $ac_file" >&6;}
18693 fi
18694
18695 case $ac_tag in
18696 *:-:* | *:-) cat >"$tmp/stdin";;
18697 esac
18698 ;;
18699 esac
18700
18701 ac_dir=`$as_dirname -- "$ac_file" ||
18702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18703 X"$ac_file" : 'X\(//\)[^/]' \| \
18704 X"$ac_file" : 'X\(//\)$' \| \
18705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18706 echo X"$ac_file" |
18707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18708 s//\1/
18709 q
18710 }
18711 /^X\(\/\/\)[^/].*/{
18712 s//\1/
18713 q
18714 }
18715 /^X\(\/\/\)$/{
18716 s//\1/
18717 q
18718 }
18719 /^X\(\/\).*/{
18720 s//\1/
18721 q
18722 }
18723 s/.*/./; q'`
18724 { as_dir="$ac_dir"
18725 case $as_dir in #(
18726 -*) as_dir=./$as_dir;;
18727 esac
18728 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18729 as_dirs=
18730 while :; do
18731 case $as_dir in #(
18732 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18733 *) as_qdir=$as_dir;;
18734 esac
18735 as_dirs="'$as_qdir' $as_dirs"
18736 as_dir=`$as_dirname -- "$as_dir" ||
18737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18738 X"$as_dir" : 'X\(//\)[^/]' \| \
18739 X"$as_dir" : 'X\(//\)$' \| \
18740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18741 echo X"$as_dir" |
18742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18743 s//\1/
18744 q
18745 }
18746 /^X\(\/\/\)[^/].*/{
18747 s//\1/
18748 q
18749 }
18750 /^X\(\/\/\)$/{
18751 s//\1/
18752 q
18753 }
18754 /^X\(\/\).*/{
18755 s//\1/
18756 q
18757 }
18758 s/.*/./; q'`
18759 test -d "$as_dir" && break
18760 done
18761 test -z "$as_dirs" || eval "mkdir $as_dirs"
18762 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18763 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18764 { (exit 1); exit 1; }; }; }
18765 ac_builddir=.
18766
18767 case "$ac_dir" in
18768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18769 *)
18770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18771 # A ".." for each directory in $ac_dir_suffix.
18772 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18773 case $ac_top_builddir_sub in
18774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18776 esac ;;
18777 esac
18778 ac_abs_top_builddir=$ac_pwd
18779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18780 # for backward compatibility:
18781 ac_top_builddir=$ac_top_build_prefix
18782
18783 case $srcdir in
18784 .) # We are building in place.
18785 ac_srcdir=.
18786 ac_top_srcdir=$ac_top_builddir_sub
18787 ac_abs_top_srcdir=$ac_pwd ;;
18788 [\\/]* | ?:[\\/]* ) # Absolute name.
18789 ac_srcdir=$srcdir$ac_dir_suffix;
18790 ac_top_srcdir=$srcdir
18791 ac_abs_top_srcdir=$srcdir ;;
18792 *) # Relative name.
18793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18794 ac_top_srcdir=$ac_top_build_prefix$srcdir
18795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18796 esac
18797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18798
18799
18800 case $ac_mode in
18801 :F)
18802 #
18803 # CONFIG_FILE
18804 #
18805
18806 case $INSTALL in
18807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18809 esac
18810 ac_MKDIR_P=$MKDIR_P
18811 case $MKDIR_P in
18812 [\\/$]* | ?:[\\/]* ) ;;
18813 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18814 esac
18815 _ACEOF
18816
18817 cat >>$CONFIG_STATUS <<\_ACEOF
18818 # If the template does not know about datarootdir, expand it.
18819 # FIXME: This hack should be removed a few years after 2.60.
18820 ac_datarootdir_hack=; ac_datarootdir_seen=
18821
18822 case `sed -n '/datarootdir/ {
18823 p
18824 q
18825 }
18826 /@datadir@/p
18827 /@docdir@/p
18828 /@infodir@/p
18829 /@localedir@/p
18830 /@mandir@/p
18831 ' $ac_file_inputs` in
18832 *datarootdir*) ac_datarootdir_seen=yes;;
18833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18834 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18835 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18836 _ACEOF
18837 cat >>$CONFIG_STATUS <<_ACEOF
18838 ac_datarootdir_hack='
18839 s&@datadir@&$datadir&g
18840 s&@docdir@&$docdir&g
18841 s&@infodir@&$infodir&g
18842 s&@localedir@&$localedir&g
18843 s&@mandir@&$mandir&g
18844 s&\\\${datarootdir}&$datarootdir&g' ;;
18845 esac
18846 _ACEOF
18847
18848 # Neutralize VPATH when `$srcdir' = `.'.
18849 # Shell code in configure.ac might set extrasub.
18850 # FIXME: do we really want to maintain this feature?
18851 cat >>$CONFIG_STATUS <<_ACEOF
18852 sed "$ac_vpsub
18853 $extrasub
18854 _ACEOF
18855 cat >>$CONFIG_STATUS <<\_ACEOF
18856 :t
18857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18858 s&@configure_input@&$configure_input&;t t
18859 s&@top_builddir@&$ac_top_builddir_sub&;t t
18860 s&@srcdir@&$ac_srcdir&;t t
18861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18862 s&@top_srcdir@&$ac_top_srcdir&;t t
18863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18864 s&@builddir@&$ac_builddir&;t t
18865 s&@abs_builddir@&$ac_abs_builddir&;t t
18866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18867 s&@INSTALL@&$ac_INSTALL&;t t
18868 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18869 $ac_datarootdir_hack
18870 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18871
18872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18873 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18875 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18876 which seems to be undefined. Please make sure it is defined." >&5
18877 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18878 which seems to be undefined. Please make sure it is defined." >&2;}
18879
18880 rm -f "$tmp/stdin"
18881 case $ac_file in
18882 -) cat "$tmp/out"; rm -f "$tmp/out";;
18883 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18884 esac
18885 ;;
18886 :H)
18887 #
18888 # CONFIG_HEADER
18889 #
18890 _ACEOF
18891
18892 # Transform confdefs.h into a sed script `conftest.defines', that
18893 # substitutes the proper values into config.h.in to produce config.h.
18894 rm -f conftest.defines conftest.tail
18895 # First, append a space to every undef/define line, to ease matching.
18896 echo 's/$/ /' >conftest.defines
18897 # Then, protect against being on the right side of a sed subst, or in
18898 # an unquoted here document, in config.status. If some macros were
18899 # called several times there might be several #defines for the same
18900 # symbol, which is useless. But do not sort them, since the last
18901 # AC_DEFINE must be honored.
18902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18903 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18904 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18905 # PARAMS is the parameter list in the macro definition--in most cases, it's
18906 # just an empty string.
18907 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
18908 ac_dB='\\)[ (].*,\\1define\\2'
18909 ac_dC=' '
18910 ac_dD=' ,'
18911
18912 uniq confdefs.h |
18913 sed -n '
18914 t rset
18915 :rset
18916 s/^[ ]*#[ ]*define[ ][ ]*//
18917 t ok
18918 d
18919 :ok
18920 s/[\\&,]/\\&/g
18921 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18922 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18923 ' >>conftest.defines
18924
18925 # Remove the space that was appended to ease matching.
18926 # Then replace #undef with comments. This is necessary, for
18927 # example, in the case of _POSIX_SOURCE, which is predefined and required
18928 # on some systems where configure will not decide to define it.
18929 # (The regexp can be short, since the line contains either #define or #undef.)
18930 echo 's/ $//
18931 s,^[ #]*u.*,/* & */,' >>conftest.defines
18932
18933 # Break up conftest.defines:
18934 ac_max_sed_lines=50
18935
18936 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18937 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18938 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18939 # et cetera.
18940 ac_in='$ac_file_inputs'
18941 ac_out='"$tmp/out1"'
18942 ac_nxt='"$tmp/out2"'
18943
18944 while :
18945 do
18946 # Write a here document:
18947 cat >>$CONFIG_STATUS <<_ACEOF
18948 # First, check the format of the line:
18949 cat >"\$tmp/defines.sed" <<\\CEOF
18950 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
18951 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
18952 b
18953 :def
18954 _ACEOF
18955 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18956 echo 'CEOF
18957 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18958 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18959 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18960 grep . conftest.tail >/dev/null || break
18961 rm -f conftest.defines
18962 mv conftest.tail conftest.defines
18963 done
18964 rm -f conftest.defines conftest.tail
18965
18966 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18967 cat >>$CONFIG_STATUS <<\_ACEOF
18968 if test x"$ac_file" != x-; then
18969 echo "/* $configure_input */" >"$tmp/config.h"
18970 cat "$ac_result" >>"$tmp/config.h"
18971 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18972 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18973 echo "$as_me: $ac_file is unchanged" >&6;}
18974 else
18975 rm -f $ac_file
18976 mv "$tmp/config.h" $ac_file
18977 fi
18978 else
18979 echo "/* $configure_input */"
18980 cat "$ac_result"
18981 fi
18982 rm -f "$tmp/out12"
18983 # Compute $ac_file's index in $config_headers.
18984 _am_arg=$ac_file
18985 _am_stamp_count=1
18986 for _am_header in $config_headers :; do
18987 case $_am_header in
18988 $_am_arg | $_am_arg:* )
18989 break ;;
18990 * )
18991 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18992 esac
18993 done
18994 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18995 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18996 X"$_am_arg" : 'X\(//\)[^/]' \| \
18997 X"$_am_arg" : 'X\(//\)$' \| \
18998 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18999 echo X"$_am_arg" |
19000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19001 s//\1/
19002 q
19003 }
19004 /^X\(\/\/\)[^/].*/{
19005 s//\1/
19006 q
19007 }
19008 /^X\(\/\/\)$/{
19009 s//\1/
19010 q
19011 }
19012 /^X\(\/\).*/{
19013 s//\1/
19014 q
19015 }
19016 s/.*/./; q'`/stamp-h$_am_stamp_count
19017 ;;
19018
19019 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19020 echo "$as_me: executing $ac_file commands" >&6;}
19021 ;;
19022 esac
19023
19024
19025 case $ac_file$ac_mode in
19026 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19027 # Strip MF so we end up with the name of the file.
19028 mf=`echo "$mf" | sed -e 's/:.*$//'`
19029 # Check whether this is an Automake generated Makefile or not.
19030 # We used to match only the files named `Makefile.in', but
19031 # some people rename them; so instead we look at the file content.
19032 # Grep'ing the first line is not enough: some people post-process
19033 # each Makefile.in and add a new line on top of each file to say so.
19034 # Grep'ing the whole file is not good either: AIX grep has a line
19035 # limit of 2048, but all sed's we know have understand at least 4000.
19036 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19037 dirpart=`$as_dirname -- "$mf" ||
19038 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19039 X"$mf" : 'X\(//\)[^/]' \| \
19040 X"$mf" : 'X\(//\)$' \| \
19041 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19042 echo X"$mf" |
19043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19044 s//\1/
19045 q
19046 }
19047 /^X\(\/\/\)[^/].*/{
19048 s//\1/
19049 q
19050 }
19051 /^X\(\/\/\)$/{
19052 s//\1/
19053 q
19054 }
19055 /^X\(\/\).*/{
19056 s//\1/
19057 q
19058 }
19059 s/.*/./; q'`
19060 else
19061 continue
19062 fi
19063 # Extract the definition of DEPDIR, am__include, and am__quote
19064 # from the Makefile without running `make'.
19065 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19066 test -z "$DEPDIR" && continue
19067 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19068 test -z "am__include" && continue
19069 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19070 # When using ansi2knr, U may be empty or an underscore; expand it
19071 U=`sed -n 's/^U = //p' < "$mf"`
19072 # Find all dependency output files, they are included files with
19073 # $(DEPDIR) in their names. We invoke sed twice because it is the
19074 # simplest approach to changing $(DEPDIR) to its actual value in the
19075 # expansion.
19076 for file in `sed -n "
19077 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19078 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19079 # Make sure the directory exists.
19080 test -f "$dirpart/$file" && continue
19081 fdir=`$as_dirname -- "$file" ||
19082 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19083 X"$file" : 'X\(//\)[^/]' \| \
19084 X"$file" : 'X\(//\)$' \| \
19085 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19086 echo X"$file" |
19087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19088 s//\1/
19089 q
19090 }
19091 /^X\(\/\/\)[^/].*/{
19092 s//\1/
19093 q
19094 }
19095 /^X\(\/\/\)$/{
19096 s//\1/
19097 q
19098 }
19099 /^X\(\/\).*/{
19100 s//\1/
19101 q
19102 }
19103 s/.*/./; q'`
19104 { as_dir=$dirpart/$fdir
19105 case $as_dir in #(
19106 -*) as_dir=./$as_dir;;
19107 esac
19108 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19109 as_dirs=
19110 while :; do
19111 case $as_dir in #(
19112 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19113 *) as_qdir=$as_dir;;
19114 esac
19115 as_dirs="'$as_qdir' $as_dirs"
19116 as_dir=`$as_dirname -- "$as_dir" ||
19117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$as_dir" : 'X\(//\)[^/]' \| \
19119 X"$as_dir" : 'X\(//\)$' \| \
19120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19121 echo X"$as_dir" |
19122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\/\)[^/].*/{
19127 s//\1/
19128 q
19129 }
19130 /^X\(\/\/\)$/{
19131 s//\1/
19132 q
19133 }
19134 /^X\(\/\).*/{
19135 s//\1/
19136 q
19137 }
19138 s/.*/./; q'`
19139 test -d "$as_dir" && break
19140 done
19141 test -z "$as_dirs" || eval "mkdir $as_dirs"
19142 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19143 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19144 { (exit 1); exit 1; }; }; }
19145 # echo "creating $dirpart/$file"
19146 echo '# dummy' > "$dirpart/$file"
19147 done
19148 done
19149 ;;
19150 "libtool":C)
19151
19152 # See if we are running on zsh, and set the options which allow our
19153 # commands through without removal of \ escapes.
19154 if test -n "${ZSH_VERSION+set}" ; then
19155 setopt NO_GLOB_SUBST
19156 fi
19157
19158 cfgfile="${ofile}T"
19159 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19160 $RM "$cfgfile"
19161
19162 cat <<_LT_EOF >> "$cfgfile"
19163 #! $SHELL
19164
19165 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19166 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19168 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19169 #
19170 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19171 # 2006, 2007, 2008 Free Software Foundation, Inc.
19172 # Written by Gordon Matzigkeit, 1996
19173 #
19174 # This file is part of GNU Libtool.
19175 #
19176 # GNU Libtool is free software; you can redistribute it and/or
19177 # modify it under the terms of the GNU General Public License as
19178 # published by the Free Software Foundation; either version 2 of
19179 # the License, or (at your option) any later version.
19180 #
19181 # As a special exception to the GNU General Public License,
19182 # if you distribute this file as part of a program or library that
19183 # is built using GNU Libtool, you may include this file under the
19184 # same distribution terms that you use for the rest of that program.
19185 #
19186 # GNU Libtool is distributed in the hope that it will be useful,
19187 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19188 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19189 # GNU General Public License for more details.
19190 #
19191 # You should have received a copy of the GNU General Public License
19192 # along with GNU Libtool; see the file COPYING. If not, a copy
19193 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19194 # obtained by writing to the Free Software Foundation, Inc.,
19195 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19196
19197
19198 # The names of the tagged configurations supported by this script.
19199 available_tags="CXX "
19200
19201 # ### BEGIN LIBTOOL CONFIG
19202
19203 # Which release of libtool.m4 was used?
19204 macro_version=$macro_version
19205 macro_revision=$macro_revision
19206
19207 # Whether or not to build shared libraries.
19208 build_libtool_libs=$enable_shared
19209
19210 # Whether or not to build static libraries.
19211 build_old_libs=$enable_static
19212
19213 # What type of objects to build.
19214 pic_mode=$pic_mode
19215
19216 # Whether or not to optimize for fast installation.
19217 fast_install=$enable_fast_install
19218
19219 # The host system.
19220 host_alias=$host_alias
19221 host=$host
19222 host_os=$host_os
19223
19224 # The build system.
19225 build_alias=$build_alias
19226 build=$build
19227 build_os=$build_os
19228
19229 # A sed program that does not truncate output.
19230 SED=$lt_SED
19231
19232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19233 Xsed="\$SED -e 1s/^X//"
19234
19235 # A grep program that handles long lines.
19236 GREP=$lt_GREP
19237
19238 # An ERE matcher.
19239 EGREP=$lt_EGREP
19240
19241 # A literal string matcher.
19242 FGREP=$lt_FGREP
19243
19244 # A BSD- or MS-compatible name lister.
19245 NM=$lt_NM
19246
19247 # Whether we need soft or hard links.
19248 LN_S=$lt_LN_S
19249
19250 # What is the maximum length of a command?
19251 max_cmd_len=$max_cmd_len
19252
19253 # Object file suffix (normally "o").
19254 objext=$ac_objext
19255
19256 # Executable file suffix (normally "").
19257 exeext=$exeext
19258
19259 # whether the shell understands "unset".
19260 lt_unset=$lt_unset
19261
19262 # turn spaces into newlines.
19263 SP2NL=$lt_lt_SP2NL
19264
19265 # turn newlines into spaces.
19266 NL2SP=$lt_lt_NL2SP
19267
19268 # How to create reloadable object files.
19269 reload_flag=$lt_reload_flag
19270 reload_cmds=$lt_reload_cmds
19271
19272 # Method to check whether dependent libraries are shared objects.
19273 deplibs_check_method=$lt_deplibs_check_method
19274
19275 # Command to use when deplibs_check_method == "file_magic".
19276 file_magic_cmd=$lt_file_magic_cmd
19277
19278 # The archiver.
19279 AR=$lt_AR
19280 AR_FLAGS=$lt_AR_FLAGS
19281
19282 # A symbol stripping program.
19283 STRIP=$lt_STRIP
19284
19285 # Commands used to install an old-style archive.
19286 RANLIB=$lt_RANLIB
19287 old_postinstall_cmds=$lt_old_postinstall_cmds
19288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19289
19290 # A C compiler.
19291 LTCC=$lt_CC
19292
19293 # LTCC compiler flags.
19294 LTCFLAGS=$lt_CFLAGS
19295
19296 # Take the output of nm and produce a listing of raw symbols and C names.
19297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298
19299 # Transform the output of nm in a proper C declaration.
19300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301
19302 # Transform the output of nm in a C name address pair.
19303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304
19305 # Transform the output of nm in a C name address pair when lib prefix is needed.
19306 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19307
19308 # The name of the directory that contains temporary libtool files.
19309 objdir=$objdir
19310
19311 # Shell to use when invoking shell scripts.
19312 SHELL=$lt_SHELL
19313
19314 # An echo program that does not interpret backslashes.
19315 ECHO=$lt_ECHO
19316
19317 # Used to examine libraries when file_magic_cmd begins with "file".
19318 MAGIC_CMD=$MAGIC_CMD
19319
19320 # Must we lock files when doing compilation?
19321 need_locks=$lt_need_locks
19322
19323 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19324 DSYMUTIL=$lt_DSYMUTIL
19325
19326 # Tool to change global to local symbols on Mac OS X.
19327 NMEDIT=$lt_NMEDIT
19328
19329 # Tool to manipulate fat objects and archives on Mac OS X.
19330 LIPO=$lt_LIPO
19331
19332 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19333 OTOOL=$lt_OTOOL
19334
19335 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19336 OTOOL64=$lt_OTOOL64
19337
19338 # Old archive suffix (normally "a").
19339 libext=$libext
19340
19341 # Shared library suffix (normally ".so").
19342 shrext_cmds=$lt_shrext_cmds
19343
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19346
19347 # Variables whose values should be saved in libtool wrapper scripts and
19348 # restored at link time.
19349 variables_saved_for_relink=$lt_variables_saved_for_relink
19350
19351 # Do we need the "lib" prefix for modules?
19352 need_lib_prefix=$need_lib_prefix
19353
19354 # Do we need a version for libraries?
19355 need_version=$need_version
19356
19357 # Library versioning type.
19358 version_type=$version_type
19359
19360 # Shared library runtime path variable.
19361 runpath_var=$runpath_var
19362
19363 # Shared library path variable.
19364 shlibpath_var=$shlibpath_var
19365
19366 # Is shlibpath searched before the hard-coded library search path?
19367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19368
19369 # Format of library name prefix.
19370 libname_spec=$lt_libname_spec
19371
19372 # List of archive names. First name is the real one, the rest are links.
19373 # The last name is the one that the linker finds with -lNAME
19374 library_names_spec=$lt_library_names_spec
19375
19376 # The coded name of the library, if different from the real name.
19377 soname_spec=$lt_soname_spec
19378
19379 # Command to use after installation of a shared archive.
19380 postinstall_cmds=$lt_postinstall_cmds
19381
19382 # Command to use after uninstallation of a shared archive.
19383 postuninstall_cmds=$lt_postuninstall_cmds
19384
19385 # Commands used to finish a libtool library installation in a directory.
19386 finish_cmds=$lt_finish_cmds
19387
19388 # As "finish_cmds", except a single script fragment to be evaled but
19389 # not shown.
19390 finish_eval=$lt_finish_eval
19391
19392 # Whether we should hardcode library paths into libraries.
19393 hardcode_into_libs=$hardcode_into_libs
19394
19395 # Compile-time system search path for libraries.
19396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19397
19398 # Run-time system search path for libraries.
19399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19400
19401 # Whether dlopen is supported.
19402 dlopen_support=$enable_dlopen
19403
19404 # Whether dlopen of programs is supported.
19405 dlopen_self=$enable_dlopen_self
19406
19407 # Whether dlopen of statically linked programs is supported.
19408 dlopen_self_static=$enable_dlopen_self_static
19409
19410 # Commands to strip libraries.
19411 old_striplib=$lt_old_striplib
19412 striplib=$lt_striplib
19413
19414
19415 # The linker used to build libraries.
19416 LD=$lt_LD
19417
19418 # Commands used to build an old-style archive.
19419 old_archive_cmds=$lt_old_archive_cmds
19420
19421 # A language specific compiler.
19422 CC=$lt_compiler
19423
19424 # Is the compiler the GNU compiler?
19425 with_gcc=$GCC
19426
19427 # Compiler flag to turn off builtin functions.
19428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19429
19430 # How to pass a linker flag through the compiler.
19431 wl=$lt_lt_prog_compiler_wl
19432
19433 # Additional compiler flags for building library objects.
19434 pic_flag=$lt_lt_prog_compiler_pic
19435
19436 # Compiler flag to prevent dynamic linking.
19437 link_static_flag=$lt_lt_prog_compiler_static
19438
19439 # Does compiler simultaneously support -c and -o options?
19440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19441
19442 # Whether or not to add -lc for building shared libraries.
19443 build_libtool_need_lc=$archive_cmds_need_lc
19444
19445 # Whether or not to disallow shared libs when runtime libs are static.
19446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19447
19448 # Compiler flag to allow reflexive dlopens.
19449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19450
19451 # Compiler flag to generate shared objects directly from archives.
19452 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19453
19454 # Whether the compiler copes with passing no objects directly.
19455 compiler_needs_object=$lt_compiler_needs_object
19456
19457 # Create an old-style archive from a shared archive.
19458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19459
19460 # Create a temporary old-style archive to link instead of a shared archive.
19461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19462
19463 # Commands used to build a shared archive.
19464 archive_cmds=$lt_archive_cmds
19465 archive_expsym_cmds=$lt_archive_expsym_cmds
19466
19467 # Commands used to build a loadable module if different from building
19468 # a shared archive.
19469 module_cmds=$lt_module_cmds
19470 module_expsym_cmds=$lt_module_expsym_cmds
19471
19472 # Whether we are building with GNU ld or not.
19473 with_gnu_ld=$lt_with_gnu_ld
19474
19475 # Flag that allows shared libraries with undefined symbols to be built.
19476 allow_undefined_flag=$lt_allow_undefined_flag
19477
19478 # Flag that enforces no undefined symbols.
19479 no_undefined_flag=$lt_no_undefined_flag
19480
19481 # Flag to hardcode \$libdir into a binary during linking.
19482 # This must work even if \$libdir does not exist
19483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19484
19485 # If ld is used when linking, flag to hardcode \$libdir into a binary
19486 # during linking. This must work even if \$libdir does not exist.
19487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19488
19489 # Whether we need a single "-rpath" flag with a separated argument.
19490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19491
19492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19493 # DIR into the resulting binary.
19494 hardcode_direct=$hardcode_direct
19495
19496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19497 # DIR into the resulting binary and the resulting library dependency is
19498 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19499 # library is relocated.
19500 hardcode_direct_absolute=$hardcode_direct_absolute
19501
19502 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19503 # into the resulting binary.
19504 hardcode_minus_L=$hardcode_minus_L
19505
19506 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19507 # into the resulting binary.
19508 hardcode_shlibpath_var=$hardcode_shlibpath_var
19509
19510 # Set to "yes" if building a shared library automatically hardcodes DIR
19511 # into the library and all subsequent libraries and executables linked
19512 # against it.
19513 hardcode_automatic=$hardcode_automatic
19514
19515 # Set to yes if linker adds runtime paths of dependent libraries
19516 # to runtime path list.
19517 inherit_rpath=$inherit_rpath
19518
19519 # Whether libtool must link a program against all its dependency libraries.
19520 link_all_deplibs=$link_all_deplibs
19521
19522 # Fix the shell variable \$srcfile for the compiler.
19523 fix_srcfile_path=$lt_fix_srcfile_path
19524
19525 # Set to "yes" if exported symbols are required.
19526 always_export_symbols=$always_export_symbols
19527
19528 # The commands to list exported symbols.
19529 export_symbols_cmds=$lt_export_symbols_cmds
19530
19531 # Symbols that should not be listed in the preloaded symbols.
19532 exclude_expsyms=$lt_exclude_expsyms
19533
19534 # Symbols that must always be exported.
19535 include_expsyms=$lt_include_expsyms
19536
19537 # Commands necessary for linking programs (against libraries) with templates.
19538 prelink_cmds=$lt_prelink_cmds
19539
19540 # Specify filename containing input files.
19541 file_list_spec=$lt_file_list_spec
19542
19543 # How to hardcode a shared library path into an executable.
19544 hardcode_action=$hardcode_action
19545
19546 # The directories searched by this compiler when creating a shared library.
19547 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19548
19549 # Dependencies to place before and after the objects being linked to
19550 # create a shared library.
19551 predep_objects=$lt_predep_objects
19552 postdep_objects=$lt_postdep_objects
19553 predeps=$lt_predeps
19554 postdeps=$lt_postdeps
19555
19556 # The library search path used internally by the compiler when linking
19557 # a shared library.
19558 compiler_lib_search_path=$lt_compiler_lib_search_path
19559
19560 # ### END LIBTOOL CONFIG
19561
19562 _LT_EOF
19563
19564 case $host_os in
19565 aix3*)
19566 cat <<\_LT_EOF >> "$cfgfile"
19567 # AIX sometimes has problems with the GCC collect2 program. For some
19568 # reason, if we set the COLLECT_NAMES environment variable, the problems
19569 # vanish in a puff of smoke.
19570 if test "X${COLLECT_NAMES+set}" != Xset; then
19571 COLLECT_NAMES=
19572 export COLLECT_NAMES
19573 fi
19574 _LT_EOF
19575 ;;
19576 esac
19577
19578
19579 ltmain="$ac_aux_dir/ltmain.sh"
19580
19581
19582 # We use sed instead of cat because bash on DJGPP gets confused if
19583 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19584 # text mode, it properly converts lines to CR/LF. This bash problem
19585 # is reportedly fixed, but why not run on old versions too?
19586 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19587 || (rm -f "$cfgfile"; exit 1)
19588
19589 case $xsi_shell in
19590 yes)
19591 cat << \_LT_EOF >> "$cfgfile"
19592
19593 # func_dirname file append nondir_replacement
19594 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19595 # otherwise set result to NONDIR_REPLACEMENT.
19596 func_dirname ()
19597 {
19598 case ${1} in
19599 */*) func_dirname_result="${1%/*}${2}" ;;
19600 * ) func_dirname_result="${3}" ;;
19601 esac
19602 }
19603
19604 # func_basename file
19605 func_basename ()
19606 {
19607 func_basename_result="${1##*/}"
19608 }
19609
19610 # func_dirname_and_basename file append nondir_replacement
19611 # perform func_basename and func_dirname in a single function
19612 # call:
19613 # dirname: Compute the dirname of FILE. If nonempty,
19614 # add APPEND to the result, otherwise set result
19615 # to NONDIR_REPLACEMENT.
19616 # value returned in "$func_dirname_result"
19617 # basename: Compute filename of FILE.
19618 # value retuned in "$func_basename_result"
19619 # Implementation must be kept synchronized with func_dirname
19620 # and func_basename. For efficiency, we do not delegate to
19621 # those functions but instead duplicate the functionality here.
19622 func_dirname_and_basename ()
19623 {
19624 case ${1} in
19625 */*) func_dirname_result="${1%/*}${2}" ;;
19626 * ) func_dirname_result="${3}" ;;
19627 esac
19628 func_basename_result="${1##*/}"
19629 }
19630
19631 # func_stripname prefix suffix name
19632 # strip PREFIX and SUFFIX off of NAME.
19633 # PREFIX and SUFFIX must not contain globbing or regex special
19634 # characters, hashes, percent signs, but SUFFIX may contain a leading
19635 # dot (in which case that matches only a dot).
19636 func_stripname ()
19637 {
19638 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19639 # positional parameters, so assign one to ordinary parameter first.
19640 func_stripname_result=${3}
19641 func_stripname_result=${func_stripname_result#"${1}"}
19642 func_stripname_result=${func_stripname_result%"${2}"}
19643 }
19644
19645 # func_opt_split
19646 func_opt_split ()
19647 {
19648 func_opt_split_opt=${1%%=*}
19649 func_opt_split_arg=${1#*=}
19650 }
19651
19652 # func_lo2o object
19653 func_lo2o ()
19654 {
19655 case ${1} in
19656 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19657 *) func_lo2o_result=${1} ;;
19658 esac
19659 }
19660
19661 # func_xform libobj-or-source
19662 func_xform ()
19663 {
19664 func_xform_result=${1%.*}.lo
19665 }
19666
19667 # func_arith arithmetic-term...
19668 func_arith ()
19669 {
19670 func_arith_result=$(( $* ))
19671 }
19672
19673 # func_len string
19674 # STRING may not start with a hyphen.
19675 func_len ()
19676 {
19677 func_len_result=${#1}
19678 }
19679
19680 _LT_EOF
19681 ;;
19682 *) # Bourne compatible functions.
19683 cat << \_LT_EOF >> "$cfgfile"
19684
19685 # func_dirname file append nondir_replacement
19686 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19687 # otherwise set result to NONDIR_REPLACEMENT.
19688 func_dirname ()
19689 {
19690 # Extract subdirectory from the argument.
19691 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19692 if test "X$func_dirname_result" = "X${1}"; then
19693 func_dirname_result="${3}"
19694 else
19695 func_dirname_result="$func_dirname_result${2}"
19696 fi
19697 }
19698
19699 # func_basename file
19700 func_basename ()
19701 {
19702 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19703 }
19704
19705
19706 # func_stripname prefix suffix name
19707 # strip PREFIX and SUFFIX off of NAME.
19708 # PREFIX and SUFFIX must not contain globbing or regex special
19709 # characters, hashes, percent signs, but SUFFIX may contain a leading
19710 # dot (in which case that matches only a dot).
19711 # func_strip_suffix prefix name
19712 func_stripname ()
19713 {
19714 case ${2} in
19715 .*) func_stripname_result=`$ECHO "X${3}" \
19716 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19717 *) func_stripname_result=`$ECHO "X${3}" \
19718 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19719 esac
19720 }
19721
19722 # sed scripts:
19723 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19724 my_sed_long_arg='1s/^-[^=]*=//'
19725
19726 # func_opt_split
19727 func_opt_split ()
19728 {
19729 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19730 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19731 }
19732
19733 # func_lo2o object
19734 func_lo2o ()
19735 {
19736 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19737 }
19738
19739 # func_xform libobj-or-source
19740 func_xform ()
19741 {
19742 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19743 }
19744
19745 # func_arith arithmetic-term...
19746 func_arith ()
19747 {
19748 func_arith_result=`expr "$@"`
19749 }
19750
19751 # func_len string
19752 # STRING may not start with a hyphen.
19753 func_len ()
19754 {
19755 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19756 }
19757
19758 _LT_EOF
19759 esac
19760
19761 case $lt_shell_append in
19762 yes)
19763 cat << \_LT_EOF >> "$cfgfile"
19764
19765 # func_append var value
19766 # Append VALUE to the end of shell variable VAR.
19767 func_append ()
19768 {
19769 eval "$1+=\$2"
19770 }
19771 _LT_EOF
19772 ;;
19773 *)
19774 cat << \_LT_EOF >> "$cfgfile"
19775
19776 # func_append var value
19777 # Append VALUE to the end of shell variable VAR.
19778 func_append ()
19779 {
19780 eval "$1=\$$1\$2"
19781 }
19782
19783 _LT_EOF
19784 ;;
19785 esac
19786
19787
19788 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19789 || (rm -f "$cfgfile"; exit 1)
19790
19791 mv -f "$cfgfile" "$ofile" ||
19792 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19793 chmod +x "$ofile"
19794
19795
19796 cat <<_LT_EOF >> "$ofile"
19797
19798 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19799
19800 # The linker used to build libraries.
19801 LD=$lt_LD_CXX
19802
19803 # Commands used to build an old-style archive.
19804 old_archive_cmds=$lt_old_archive_cmds_CXX
19805
19806 # A language specific compiler.
19807 CC=$lt_compiler_CXX
19808
19809 # Is the compiler the GNU compiler?
19810 with_gcc=$GCC_CXX
19811
19812 # Compiler flag to turn off builtin functions.
19813 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19814
19815 # How to pass a linker flag through the compiler.
19816 wl=$lt_lt_prog_compiler_wl_CXX
19817
19818 # Additional compiler flags for building library objects.
19819 pic_flag=$lt_lt_prog_compiler_pic_CXX
19820
19821 # Compiler flag to prevent dynamic linking.
19822 link_static_flag=$lt_lt_prog_compiler_static_CXX
19823
19824 # Does compiler simultaneously support -c and -o options?
19825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19826
19827 # Whether or not to add -lc for building shared libraries.
19828 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19829
19830 # Whether or not to disallow shared libs when runtime libs are static.
19831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19832
19833 # Compiler flag to allow reflexive dlopens.
19834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19835
19836 # Compiler flag to generate shared objects directly from archives.
19837 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19838
19839 # Whether the compiler copes with passing no objects directly.
19840 compiler_needs_object=$lt_compiler_needs_object_CXX
19841
19842 # Create an old-style archive from a shared archive.
19843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19844
19845 # Create a temporary old-style archive to link instead of a shared archive.
19846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19847
19848 # Commands used to build a shared archive.
19849 archive_cmds=$lt_archive_cmds_CXX
19850 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19851
19852 # Commands used to build a loadable module if different from building
19853 # a shared archive.
19854 module_cmds=$lt_module_cmds_CXX
19855 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19856
19857 # Whether we are building with GNU ld or not.
19858 with_gnu_ld=$lt_with_gnu_ld_CXX
19859
19860 # Flag that allows shared libraries with undefined symbols to be built.
19861 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19862
19863 # Flag that enforces no undefined symbols.
19864 no_undefined_flag=$lt_no_undefined_flag_CXX
19865
19866 # Flag to hardcode \$libdir into a binary during linking.
19867 # This must work even if \$libdir does not exist
19868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19869
19870 # If ld is used when linking, flag to hardcode \$libdir into a binary
19871 # during linking. This must work even if \$libdir does not exist.
19872 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19873
19874 # Whether we need a single "-rpath" flag with a separated argument.
19875 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19876
19877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19878 # DIR into the resulting binary.
19879 hardcode_direct=$hardcode_direct_CXX
19880
19881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19882 # DIR into the resulting binary and the resulting library dependency is
19883 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19884 # library is relocated.
19885 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19886
19887 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19888 # into the resulting binary.
19889 hardcode_minus_L=$hardcode_minus_L_CXX
19890
19891 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19892 # into the resulting binary.
19893 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19894
19895 # Set to "yes" if building a shared library automatically hardcodes DIR
19896 # into the library and all subsequent libraries and executables linked
19897 # against it.
19898 hardcode_automatic=$hardcode_automatic_CXX
19899
19900 # Set to yes if linker adds runtime paths of dependent libraries
19901 # to runtime path list.
19902 inherit_rpath=$inherit_rpath_CXX
19903
19904 # Whether libtool must link a program against all its dependency libraries.
19905 link_all_deplibs=$link_all_deplibs_CXX
19906
19907 # Fix the shell variable \$srcfile for the compiler.
19908 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19909
19910 # Set to "yes" if exported symbols are required.
19911 always_export_symbols=$always_export_symbols_CXX
19912
19913 # The commands to list exported symbols.
19914 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19915
19916 # Symbols that should not be listed in the preloaded symbols.
19917 exclude_expsyms=$lt_exclude_expsyms_CXX
19918
19919 # Symbols that must always be exported.
19920 include_expsyms=$lt_include_expsyms_CXX
19921
19922 # Commands necessary for linking programs (against libraries) with templates.
19923 prelink_cmds=$lt_prelink_cmds_CXX
19924
19925 # Specify filename containing input files.
19926 file_list_spec=$lt_file_list_spec_CXX
19927
19928 # How to hardcode a shared library path into an executable.
19929 hardcode_action=$hardcode_action_CXX
19930
19931 # The directories searched by this compiler when creating a shared library.
19932 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19933
19934 # Dependencies to place before and after the objects being linked to
19935 # create a shared library.
19936 predep_objects=$lt_predep_objects_CXX
19937 postdep_objects=$lt_postdep_objects_CXX
19938 predeps=$lt_predeps_CXX
19939 postdeps=$lt_postdeps_CXX
19940
19941 # The library search path used internally by the compiler when linking
19942 # a shared library.
19943 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19944
19945 # ### END LIBTOOL TAG CONFIG: CXX
19946 _LT_EOF
19947
19948 ;;
19949
19950 esac
19951 done # for ac_tag
19952
19953
19954 { (exit 0); exit 0; }
19955 _ACEOF
19956 chmod +x $CONFIG_STATUS
19957 ac_clean_files=$ac_clean_files_save
19958
19959
19960 # configure is writing to config.log, and then calls config.status.
19961 # config.status does its own redirection, appending to config.log.
19962 # Unfortunately, on DOS this fails, as config.log is still kept open
19963 # by configure, so config.status won't be able to write to it; its
19964 # output is simply discarded. So we exec the FD to /dev/null,
19965 # effectively closing config.log, so it can be properly (re)opened and
19966 # appended to by config.status. When coming back to configure, we
19967 # need to make the FD available again.
19968 if test "$no_create" != yes; then
19969 ac_cs_success=:
19970 ac_config_status_args=
19971 test "$silent" = yes &&
19972 ac_config_status_args="$ac_config_status_args --quiet"
19973 exec 5>/dev/null
19974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19975 exec 5>>config.log
19976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19977 # would make configure fail if this is the last instruction.
19978 $ac_cs_success || { (exit 1); exit 1; }
19979 fi
19980
19981