Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GNU plotutils 2.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='GNU plotutils'
730 PACKAGE_TARNAME='plotutils'
731 PACKAGE_VERSION='2.6'
732 PACKAGE_STRING='GNU plotutils 2.6'
733 PACKAGE_BUGREPORT='[email protected]'
734
735 ac_unique_file="graph/graph.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 build
832 build_cpu
833 build_vendor
834 build_os
835 host
836 host_cpu
837 host_vendor
838 host_os
839 CC
840 CFLAGS
841 LDFLAGS
842 CPPFLAGS
843 ac_ct_CC
844 EXEEXT
845 OBJEXT
846 DEPDIR
847 am__include
848 am__quote
849 AMDEP_TRUE
850 AMDEP_FALSE
851 AMDEPBACKSLASH
852 CCDEPMODE
853 am__fastdepCC_TRUE
854 am__fastdepCC_FALSE
855 GREP
856 EGREP
857 LN_S
858 ECHO
859 AR
860 RANLIB
861 CPP
862 CXX
863 CXXFLAGS
864 ac_ct_CXX
865 CXXDEPMODE
866 am__fastdepCXX_TRUE
867 am__fastdepCXX_FALSE
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 ALLOCA
874 YACC
875 YFLAGS
876 LEX
877 LEX_OUTPUT_ROOT
878 LEXLIB
879 XMKMF
880 X_CFLAGS
881 X_PRE_LIBS
882 X_LIBS
883 X_EXTRA_LIBS
884 X_TOOLKIT_LIBS
885 X_BASIC_LIBS
886 NO_X_TRUE
887 NO_X_FALSE
888 NO_PNG_TRUE
889 NO_PNG_FALSE
890 ps_fonts_in_pcl
891 NO_LIBPLOTTER_TRUE
892 NO_LIBPLOTTER_FALSE
893 NO_LIBXMI_TRUE
894 NO_LIBXMI_FALSE
895 LIBOBJS
896 LTLIBOBJS'
897 ac_subst_files=''
898 ac_precious_vars='build_alias
899 host_alias
900 target_alias
901 CC
902 CFLAGS
903 LDFLAGS
904 LIBS
905 CPPFLAGS
906 CPP
907 CXX
908 CXXFLAGS
909 CCC
910 CXXCPP
911 F77
912 FFLAGS
913 YACC
914 YFLAGS
915 XMKMF'
916
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid package name: $ac_package" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250 eval with_$ac_package=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1273 ;;
1274
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 ;;
1291
1292 esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1299 fi
1300
1301 # Be sure to have absolute directory names.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306 do
1307 eval ac_val=\$$ac_var
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$0" : 'X\(//\)[^/]' \| \
1357 X"$0" : 'X\(//\)$' \| \
1358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 echo X"$0" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures GNU plotutils 2.6 to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/plotutils]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1472
1473 cat <<\_ACEOF
1474
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
1480 X features:
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of GNU plotutils 2.6:";;
1493 esac
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-dependency-tracking speeds up one-time build
1504 --enable-dependency-tracking do not reject slow dependency extractors
1505 --disable-libtool-lock avoid locking (might break parallel builds)
1506 --enable-ps-fonts-in-pcl enable use of PS fonts in PCL and HP-GL/2 output
1507 --enable-lj-fonts-in-ps enable use of LaserJet fonts in PS output
1508 --enable-lj-fonts-in-x enable use of LaserJet fonts on X displays
1509 --enable-libplotter build the C++ Plotter class library and C++ software
1510 --enable-libxmi build the libxmi scan-conversion library
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-pic try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-tags[=TAGS] include additional configurations [automatic]
1519 --with-x use the X Window System
1520 --with-athena=DIR use Athena widgets: includes and libraries in DIR
1521 --with-motif=DIR use Motif widgets: includes and libraries in DIR
1522 --with-xpm=DIR use Xpm with Motif: include and library in DIR
1523 --without-libpng omit PNG support even if libpng and zlib are present
1524
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 CPP C preprocessor
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1536 CXXCPP C++ preprocessor
1537 F77 Fortran 77 compiler command
1538 FFLAGS Fortran 77 compiler flags
1539 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1540 the first program found out of: `bison -y', `byacc', `yacc'.
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
1544 XMKMF Path to xmkmf, Makefile generator for X Window System
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <[email protected]>.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" || continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 GNU plotutils configure 2.6
1611 generated by GNU Autoconf 2.61
1612
1613 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1614 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620 cat >config.log <<_ACEOF
1621 This file contains any messages produced by compilers while
1622 running configure, to aid debugging if configure makes a mistake.
1623
1624 It was created by GNU plotutils $as_me 2.6, which was
1625 generated by GNU Autoconf 2.61. Invocation command line was
1626
1627 $ $0 $@
1628
1629 _ACEOF
1630 exec 5>>config.log
1631 {
1632 cat <<_ASUNAME
1633 ## --------- ##
1634 ## Platform. ##
1635 ## --------- ##
1636
1637 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1638 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1639 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1640 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1641 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642
1643 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1644 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1645
1646 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1647 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1648 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1649 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1650 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1651 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1652 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1653
1654 _ASUNAME
1655
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 echo "PATH: $as_dir"
1662 done
1663 IFS=$as_save_IFS
1664
1665 } >&5
1666
1667 cat >&5 <<_ACEOF
1668
1669
1670 ## ----------- ##
1671 ## Core tests. ##
1672 ## ----------- ##
1673
1674 _ACEOF
1675
1676
1677 # Keep a trace of the command line.
1678 # Strip out --no-create and --no-recursion so they do not pile up.
1679 # Strip out --silent because we don't want to record it for future runs.
1680 # Also quote any args containing shell meta-characters.
1681 # Make two passes to allow for proper duplicate-argument suppression.
1682 ac_configure_args=
1683 ac_configure_args0=
1684 ac_configure_args1=
1685 ac_must_keep_next=false
1686 for ac_pass in 1 2
1687 do
1688 for ac_arg
1689 do
1690 case $ac_arg in
1691 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1693 | -silent | --silent | --silen | --sile | --sil)
1694 continue ;;
1695 *\'*)
1696 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1697 esac
1698 case $ac_pass in
1699 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1700 2)
1701 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1702 if test $ac_must_keep_next = true; then
1703 ac_must_keep_next=false # Got value, back to normal.
1704 else
1705 case $ac_arg in
1706 *=* | --config-cache | -C | -disable-* | --disable-* \
1707 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1708 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1709 | -with-* | --with-* | -without-* | --without-* | --x)
1710 case "$ac_configure_args0 " in
1711 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1712 esac
1713 ;;
1714 -* ) ac_must_keep_next=true ;;
1715 esac
1716 fi
1717 ac_configure_args="$ac_configure_args '$ac_arg'"
1718 ;;
1719 esac
1720 done
1721 done
1722 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1723 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724
1725 # When interrupted or exit'd, cleanup temporary files, and complete
1726 # config.log. We remove comments because anyway the quotes in there
1727 # would cause problems or look ugly.
1728 # WARNING: Use '\'' to represent an apostrophe within the trap.
1729 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1730 trap 'exit_status=$?
1731 # Save into config.log some information that might help in debugging.
1732 {
1733 echo
1734
1735 cat <<\_ASBOX
1736 ## ---------------- ##
1737 ## Cache variables. ##
1738 ## ---------------- ##
1739 _ASBOX
1740 echo
1741 # The following way of writing the cache mishandles newlines in values,
1742 (
1743 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1744 eval ac_val=\$$ac_var
1745 case $ac_val in #(
1746 *${as_nl}*)
1747 case $ac_var in #(
1748 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1749 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1750 esac
1751 case $ac_var in #(
1752 _ | IFS | as_nl) ;; #(
1753 *) $as_unset $ac_var ;;
1754 esac ;;
1755 esac
1756 done
1757 (set) 2>&1 |
1758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1759 *${as_nl}ac_space=\ *)
1760 sed -n \
1761 "s/'\''/'\''\\\\'\'''\''/g;
1762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1763 ;; #(
1764 *)
1765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766 ;;
1767 esac |
1768 sort
1769 )
1770 echo
1771
1772 cat <<\_ASBOX
1773 ## ----------------- ##
1774 ## Output variables. ##
1775 ## ----------------- ##
1776 _ASBOX
1777 echo
1778 for ac_var in $ac_subst_vars
1779 do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in
1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 esac
1784 echo "$ac_var='\''$ac_val'\''"
1785 done | sort
1786 echo
1787
1788 if test -n "$ac_subst_files"; then
1789 cat <<\_ASBOX
1790 ## ------------------- ##
1791 ## File substitutions. ##
1792 ## ------------------- ##
1793 _ASBOX
1794 echo
1795 for ac_var in $ac_subst_files
1796 do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in
1799 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 esac
1801 echo "$ac_var='\''$ac_val'\''"
1802 done | sort
1803 echo
1804 fi
1805
1806 if test -s confdefs.h; then
1807 cat <<\_ASBOX
1808 ## ----------- ##
1809 ## confdefs.h. ##
1810 ## ----------- ##
1811 _ASBOX
1812 echo
1813 cat confdefs.h
1814 echo
1815 fi
1816 test "$ac_signal" != 0 &&
1817 echo "$as_me: caught signal $ac_signal"
1818 echo "$as_me: exit $exit_status"
1819 } >&5
1820 rm -f core *.core core.conftest.* &&
1821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822 exit $exit_status
1823 ' 0
1824 for ac_signal in 1 2 13 15; do
1825 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1826 done
1827 ac_signal=0
1828
1829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1830 rm -f -r conftest* confdefs.h
1831
1832 # Predefined preprocessor variables.
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_NAME "$PACKAGE_NAME"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_STRING "$PACKAGE_STRING"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1856 _ACEOF
1857
1858
1859 # Let the site file select an alternate cache file if it wants to.
1860 # Prefer explicitly selected file to automatically selected ones.
1861 if test -n "$CONFIG_SITE"; then
1862 set x "$CONFIG_SITE"
1863 elif test "x$prefix" != xNONE; then
1864 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1865 else
1866 set x "$ac_default_prefix/share/config.site" \
1867 "$ac_default_prefix/etc/config.site"
1868 fi
1869 shift
1870 for ac_site_file
1871 do
1872 if test -r "$ac_site_file"; then
1873 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1874 echo "$as_me: loading site script $ac_site_file" >&6;}
1875 sed 's/^/| /' "$ac_site_file" >&5
1876 . "$ac_site_file"
1877 fi
1878 done
1879
1880 if test -r "$cache_file"; then
1881 # Some versions of bash will fail to source /dev/null (special
1882 # files actually), so we avoid doing that.
1883 if test -f "$cache_file"; then
1884 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1885 echo "$as_me: loading cache $cache_file" >&6;}
1886 case $cache_file in
1887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1888 *) . "./$cache_file";;
1889 esac
1890 fi
1891 else
1892 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1893 echo "$as_me: creating cache $cache_file" >&6;}
1894 >$cache_file
1895 fi
1896
1897 # Check that the precious variables saved in the cache have kept the same
1898 # value.
1899 ac_cache_corrupted=false
1900 for ac_var in $ac_precious_vars; do
1901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1902 eval ac_new_set=\$ac_env_${ac_var}_set
1903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1904 eval ac_new_val=\$ac_env_${ac_var}_value
1905 case $ac_old_set,$ac_new_set in
1906 set,)
1907 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1908 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1909 ac_cache_corrupted=: ;;
1910 ,set)
1911 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1912 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1913 ac_cache_corrupted=: ;;
1914 ,);;
1915 *)
1916 if test "x$ac_old_val" != "x$ac_new_val"; then
1917 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1920 echo "$as_me: former value: $ac_old_val" >&2;}
1921 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1922 echo "$as_me: current value: $ac_new_val" >&2;}
1923 ac_cache_corrupted=:
1924 fi;;
1925 esac
1926 # Pass precious variables to config.status.
1927 if test "$ac_new_set" = set; then
1928 case $ac_new_val in
1929 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 *) ac_arg=$ac_var=$ac_new_val ;;
1931 esac
1932 case " $ac_configure_args " in
1933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1934 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 esac
1936 fi
1937 done
1938 if $ac_cache_corrupted; then
1939 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1940 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1941 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1942 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1943 { (exit 1); exit 1; }; }
1944 fi
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975
1976
1977
1978
1979 am__api_version='1.10'
1980
1981 ac_aux_dir=
1982 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1983 if test -f "$ac_dir/install-sh"; then
1984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/install-sh -c"
1986 break
1987 elif test -f "$ac_dir/install.sh"; then
1988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/install.sh -c"
1990 break
1991 elif test -f "$ac_dir/shtool"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/shtool install -c"
1994 break
1995 fi
1996 done
1997 if test -z "$ac_aux_dir"; then
1998 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1999 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2000 { (exit 1); exit 1; }; }
2001 fi
2002
2003 # These three variables are undocumented and unsupported,
2004 # and are intended to be withdrawn in a future Autoconf release.
2005 # They can cause serious problems if a builder's source tree is in a directory
2006 # whose full name contains unusual characters.
2007 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2008 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2009 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2010
2011
2012 # Find a good install program. We prefer a C program (faster),
2013 # so one script is as good as another. But avoid the broken or
2014 # incompatible versions:
2015 # SysV /etc/install, /usr/sbin/install
2016 # SunOS /usr/etc/install
2017 # IRIX /sbin/install
2018 # AIX /bin/install
2019 # AmigaOS /C/install, which installs bootblocks on floppy discs
2020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2023 # OS/2's system install, which has a completely different semantic
2024 # ./install, which can be erroneously created by make from ./install.sh.
2025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2027 if test -z "$INSTALL"; then
2028 if test "${ac_cv_path_install+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 # Account for people who put trailing slashes in PATH elements.
2037 case $as_dir/ in
2038 ./ | .// | /cC/* | \
2039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041 /usr/ucb/* ) ;;
2042 *)
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2045 # by default.
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2052 :
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2056 :
2057 else
2058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059 break 3
2060 fi
2061 fi
2062 done
2063 done
2064 ;;
2065 esac
2066 done
2067 IFS=$as_save_IFS
2068
2069
2070 fi
2071 if test "${ac_cv_path_install+set}" = set; then
2072 INSTALL=$ac_cv_path_install
2073 else
2074 # As a last resort, use the slow shell script. Don't cache a
2075 # value for INSTALL within a source directory, because that will
2076 # break other packages using the cache if that directory is
2077 # removed, or if the value is a relative name.
2078 INSTALL=$ac_install_sh
2079 fi
2080 fi
2081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2082 echo "${ECHO_T}$INSTALL" >&6; }
2083
2084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085 # It thinks the first close brace ends the variable substitution.
2086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2087
2088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2089
2090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2091
2092 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2093 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094 # Just in case
2095 sleep 1
2096 echo timestamp > conftest.file
2097 # Do `set' in a subshell so we don't clobber the current shell's
2098 # arguments. Must try -L first in case configure is actually a
2099 # symlink; some systems play weird games with the mod time of symlinks
2100 # (eg FreeBSD returns the mod time of the symlink's containing
2101 # directory).
2102 if (
2103 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2104 if test "$*" = "X"; then
2105 # -L didn't work.
2106 set X `ls -t $srcdir/configure conftest.file`
2107 fi
2108 rm -f conftest.file
2109 if test "$*" != "X $srcdir/configure conftest.file" \
2110 && test "$*" != "X conftest.file $srcdir/configure"; then
2111
2112 # If neither matched, then we have a broken ls. This can happen
2113 # if, for instance, CONFIG_SHELL is bash and it inherits a
2114 # broken ls alias from the environment. This has actually
2115 # happened. Such a system could not be considered "sane".
2116 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2117 alias in your environment" >&5
2118 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2119 alias in your environment" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2122
2123 test "$2" = conftest.file
2124 )
2125 then
2126 # Ok.
2127 :
2128 else
2129 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2130 Check your system clock" >&5
2131 echo "$as_me: error: newly created file is older than distributed files!
2132 Check your system clock" >&2;}
2133 { (exit 1); exit 1; }; }
2134 fi
2135 { echo "$as_me:$LINENO: result: yes" >&5
2136 echo "${ECHO_T}yes" >&6; }
2137 test "$program_prefix" != NONE &&
2138 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2139 # Use a double $ so make ignores it.
2140 test "$program_suffix" != NONE &&
2141 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2142 # Double any \ or $. echo might interpret backslashes.
2143 # By default was `s,x,x', remove it if useless.
2144 cat <<\_ACEOF >conftest.sed
2145 s/[\\$]/&&/g;s/;s,x,x,$//
2146 _ACEOF
2147 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2148 rm -f conftest.sed
2149
2150 # expand $ac_aux_dir to an absolute path
2151 am_aux_dir=`cd $ac_aux_dir && pwd`
2152
2153 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2154 # Use eval to expand $SHELL
2155 if eval "$MISSING --run true"; then
2156 am_missing_run="$MISSING --run "
2157 else
2158 am_missing_run=
2159 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2160 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2161 fi
2162
2163 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2164 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2165 if test -z "$MKDIR_P"; then
2166 if test "${ac_cv_path_mkdir+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2171 do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_prog in mkdir gmkdir; do
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2178 'mkdir (GNU coreutils) '* | \
2179 'mkdir (coreutils) '* | \
2180 'mkdir (fileutils) '4.1*)
2181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2182 break 3;;
2183 esac
2184 done
2185 done
2186 done
2187 IFS=$as_save_IFS
2188
2189 fi
2190
2191 if test "${ac_cv_path_mkdir+set}" = set; then
2192 MKDIR_P="$ac_cv_path_mkdir -p"
2193 else
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for MKDIR_P within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 test -d ./--version && rmdir ./--version
2199 MKDIR_P="$ac_install_sh -d"
2200 fi
2201 fi
2202 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2203 echo "${ECHO_T}$MKDIR_P" >&6; }
2204
2205 mkdir_p="$MKDIR_P"
2206 case $mkdir_p in
2207 [\\/$]* | ?:[\\/]*) ;;
2208 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2209 esac
2210
2211 for ac_prog in gawk mawk nawk awk
2212 do
2213 # Extract the first word of "$ac_prog", so it can be a program name with args.
2214 set dummy $ac_prog; ac_word=$2
2215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217 if test "${ac_cv_prog_AWK+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$AWK"; then
2221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_AWK="$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2233 fi
2234 done
2235 done
2236 IFS=$as_save_IFS
2237
2238 fi
2239 fi
2240 AWK=$ac_cv_prog_AWK
2241 if test -n "$AWK"; then
2242 { echo "$as_me:$LINENO: result: $AWK" >&5
2243 echo "${ECHO_T}$AWK" >&6; }
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247 fi
2248
2249
2250 test -n "$AWK" && break
2251 done
2252
2253 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 cat >conftest.make <<\_ACEOF
2260 SHELL = /bin/sh
2261 all:
2262 @echo '@@@%%%=$(MAKE)=@@@%%%'
2263 _ACEOF
2264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266 *@@@%%%=?*=@@@%%%*)
2267 eval ac_cv_prog_make_${ac_make}_set=yes;;
2268 *)
2269 eval ac_cv_prog_make_${ac_make}_set=no;;
2270 esac
2271 rm -f conftest.make
2272 fi
2273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276 SET_MAKE=
2277 else
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 SET_MAKE="MAKE=${MAKE-make}"
2281 fi
2282
2283 rm -rf .tst 2>/dev/null
2284 mkdir .tst 2>/dev/null
2285 if test -d .tst; then
2286 am__leading_dot=.
2287 else
2288 am__leading_dot=_
2289 fi
2290 rmdir .tst 2>/dev/null
2291
2292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2294 # is not polluted with repeated "-I."
2295 am__isrc=' -I$(srcdir)'
2296 # test to see if srcdir already configured
2297 if test -f $srcdir/config.status; then
2298 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2299 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2300 { (exit 1); exit 1; }; }
2301 fi
2302 fi
2303
2304 # test whether we have cygpath
2305 if test -z "$CYGPATH_W"; then
2306 if (cygpath --version) >/dev/null 2>/dev/null; then
2307 CYGPATH_W='cygpath -w'
2308 else
2309 CYGPATH_W=echo
2310 fi
2311 fi
2312
2313
2314 # Define the identity of the package.
2315 PACKAGE=plotutils
2316 VERSION=2.6
2317
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE "$PACKAGE"
2321 _ACEOF
2322
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define VERSION "$VERSION"
2326 _ACEOF
2327
2328 # Some tools Automake needs.
2329
2330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2331
2332
2333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2334
2335
2336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2337
2338
2339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2340
2341
2342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2343
2344 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2345
2346 # Installed binaries are usually stripped using `strip' when the user
2347 # run `make install-strip'. However `strip' might not be the right
2348 # tool to use in cross-compilation environments, therefore Automake
2349 # will honor the `STRIP' environment variable to overrule this program.
2350 if test "$cross_compiling" != no; then
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 if test -n "$STRIP"; then
2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 STRIP=$ac_cv_prog_STRIP
2380 if test -n "$STRIP"; then
2381 { echo "$as_me:$LINENO: result: $STRIP" >&5
2382 echo "${ECHO_T}$STRIP" >&6; }
2383 else
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2386 fi
2387
2388
2389 fi
2390 if test -z "$ac_cv_prog_STRIP"; then
2391 ac_ct_STRIP=$STRIP
2392 # Extract the first word of "strip", so it can be a program name with args.
2393 set dummy strip; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$ac_ct_STRIP"; then
2400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_ac_ct_STRIP="strip"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2420 if test -n "$ac_ct_STRIP"; then
2421 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2422 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2423 else
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428 if test "x$ac_ct_STRIP" = x; then
2429 STRIP=":"
2430 else
2431 case $cross_compiling:$ac_tool_warned in
2432 yes:)
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to [email protected]." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to [email protected]." >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441 STRIP=$ac_ct_STRIP
2442 fi
2443 else
2444 STRIP="$ac_cv_prog_STRIP"
2445 fi
2446
2447 fi
2448 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2449
2450 # We need awk for the "check" target. The system "awk" is bad on
2451 # some platforms.
2452 # Always define AMTAR for backward compatibility.
2453
2454 AMTAR=${AMTAR-"${am_missing_run}tar"}
2455
2456 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2457
2458
2459
2460
2461
2462 ac_config_headers="$ac_config_headers config.h:config.hin"
2463
2464
2465 # The following will be defined in config.h, if appropriate.
2466
2467 # Miscellaneous.
2468
2469
2470
2471
2472
2473 # Threading-related.
2474
2475
2476
2477 # X11-related.
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487 # PNG-related.
2488
2489
2490
2491
2492
2493 # Fonts supported by Plotters of various types.
2494
2495
2496
2497
2498
2499
2500
2501 # Did installer set the CFLAGS and CXXFLAGS environ variables before
2502 # running configure? Our default CFLAGS and CXXFLAGS differ from
2503 # autoconf's, but we won't override installer-specified values.
2504 if test "x$CFLAGS" = "x"; then
2505 CFLAGS_NOT_SET_BY_INSTALLER="yes"
2506 else
2507 CFLAGS_NOT_SET_BY_INSTALLER="no"
2508 fi
2509 if test "x$CXXFLAGS" = "x"; then
2510 CXXFLAGS_NOT_SET_BY_INSTALLER="yes"
2511 else
2512 CXXFLAGS_NOT_SET_BY_INSTALLER="no"
2513 fi
2514
2515 # We now use libtool to make and installed a shared library. This should
2516 # invoke the tests AC_PROG_CC, AC_OBJEXT, AC_PROG_INSTALL, and
2517 # AC_PROG_MAKE_SET, or equivalents, so we don't perform them explicitly.
2518 # Note: this can apparently alter CFLAGS, on a few platforms, e.g., on
2519 # SCO OpenServer 5 (i.e. *-*-sco3.2v5*), "-belf" is added.
2520 # Check whether --enable-shared was given.
2521 if test "${enable_shared+set}" = set; then
2522 enableval=$enable_shared; p=${PACKAGE-default}
2523 case $enableval in
2524 yes) enable_shared=yes ;;
2525 no) enable_shared=no ;;
2526 *)
2527 enable_shared=no
2528 # Look at the argument we got. We use all the common list separators.
2529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2530 for pkg in $enableval; do
2531 IFS="$lt_save_ifs"
2532 if test "X$pkg" = "X$p"; then
2533 enable_shared=yes
2534 fi
2535 done
2536 IFS="$lt_save_ifs"
2537 ;;
2538 esac
2539 else
2540 enable_shared=yes
2541 fi
2542
2543
2544 # Check whether --enable-static was given.
2545 if test "${enable_static+set}" = set; then
2546 enableval=$enable_static; p=${PACKAGE-default}
2547 case $enableval in
2548 yes) enable_static=yes ;;
2549 no) enable_static=no ;;
2550 *)
2551 enable_static=no
2552 # Look at the argument we got. We use all the common list separators.
2553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2554 for pkg in $enableval; do
2555 IFS="$lt_save_ifs"
2556 if test "X$pkg" = "X$p"; then
2557 enable_static=yes
2558 fi
2559 done
2560 IFS="$lt_save_ifs"
2561 ;;
2562 esac
2563 else
2564 enable_static=yes
2565 fi
2566
2567
2568 # Check whether --enable-fast-install was given.
2569 if test "${enable_fast_install+set}" = set; then
2570 enableval=$enable_fast_install; p=${PACKAGE-default}
2571 case $enableval in
2572 yes) enable_fast_install=yes ;;
2573 no) enable_fast_install=no ;;
2574 *)
2575 enable_fast_install=no
2576 # Look at the argument we got. We use all the common list separators.
2577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2578 for pkg in $enableval; do
2579 IFS="$lt_save_ifs"
2580 if test "X$pkg" = "X$p"; then
2581 enable_fast_install=yes
2582 fi
2583 done
2584 IFS="$lt_save_ifs"
2585 ;;
2586 esac
2587 else
2588 enable_fast_install=yes
2589 fi
2590
2591
2592 # Make sure we can run config.sub.
2593 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2594 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2597
2598 { echo "$as_me:$LINENO: checking build system type" >&5
2599 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2600 if test "${ac_cv_build+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 ac_build_alias=$build_alias
2604 test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x &&
2607 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2614
2615 fi
2616 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2617 echo "${ECHO_T}$ac_cv_build" >&6; }
2618 case $ac_cv_build in
2619 *-*-*) ;;
2620 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621 echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2623 esac
2624 build=$ac_cv_build
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_build
2627 shift
2628 build_cpu=$1
2629 build_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 build_os=$*
2634 IFS=$ac_save_IFS
2635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 { echo "$as_me:$LINENO: checking host system type" >&5
2639 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2640 if test "${ac_cv_host+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 if test "x$host_alias" = x; then
2644 ac_cv_host=$ac_cv_build
2645 else
2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2650 fi
2651
2652 fi
2653 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2654 echo "${ECHO_T}$ac_cv_host" >&6; }
2655 case $ac_cv_host in
2656 *-*-*) ;;
2657 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658 echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2660 esac
2661 host=$ac_cv_host
2662 ac_save_IFS=$IFS; IFS='-'
2663 set x $ac_cv_host
2664 shift
2665 host_cpu=$1
2666 host_vendor=$2
2667 shift; shift
2668 # Remember, the first character of IFS is used to create $*,
2669 # except with old shells:
2670 host_os=$*
2671 IFS=$ac_save_IFS
2672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673
2674
2675 DEPDIR="${am__leading_dot}deps"
2676
2677 ac_config_commands="$ac_config_commands depfiles"
2678
2679
2680 am_make=${MAKE-make}
2681 cat > confinc << 'END'
2682 am__doit:
2683 @echo done
2684 .PHONY: am__doit
2685 END
2686 # If we don't find an include directive, just comment out the code.
2687 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2688 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2689 am__include="#"
2690 am__quote=
2691 _am_result=none
2692 # First try GNU make style include.
2693 echo "include confinc" > confmf
2694 # We grep out `Entering directory' and `Leaving directory'
2695 # messages which can occur if `w' ends up in MAKEFLAGS.
2696 # In particular we don't look at `^make:' because GNU make might
2697 # be invoked under some other name (usually "gmake"), in which
2698 # case it prints its new name instead of `make'.
2699 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2700 am__include=include
2701 am__quote=
2702 _am_result=GNU
2703 fi
2704 # Now try BSD make style include.
2705 if test "$am__include" = "#"; then
2706 echo '.include "confinc"' > confmf
2707 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2708 am__include=.include
2709 am__quote="\""
2710 _am_result=BSD
2711 fi
2712 fi
2713
2714
2715 { echo "$as_me:$LINENO: result: $_am_result" >&5
2716 echo "${ECHO_T}$_am_result" >&6; }
2717 rm -f confinc confmf
2718
2719 # Check whether --enable-dependency-tracking was given.
2720 if test "${enable_dependency_tracking+set}" = set; then
2721 enableval=$enable_dependency_tracking;
2722 fi
2723
2724 if test "x$enable_dependency_tracking" != xno; then
2725 am_depcomp="$ac_aux_dir/depcomp"
2726 AMDEPBACKSLASH='\'
2727 fi
2728 if test "x$enable_dependency_tracking" != xno; then
2729 AMDEP_TRUE=
2730 AMDEP_FALSE='#'
2731 else
2732 AMDEP_TRUE='#'
2733 AMDEP_FALSE=
2734 fi
2735
2736
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { echo "$as_me:$LINENO: result: $CC" >&5
2773 echo "${ECHO_T}$CC" >&6; }
2774 else
2775 { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$ac_cv_prog_CC"; then
2782 ac_ct_CC=$CC
2783 # Extract the first word of "gcc", so it can be a program name with args.
2784 set dummy gcc; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC="gcc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813 echo "${ECHO_T}$ac_ct_CC" >&6; }
2814 else
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819 if test "x$ac_ct_CC" = x; then
2820 CC=""
2821 else
2822 case $cross_compiling:$ac_tool_warned in
2823 yes:)
2824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet. If you think this
2826 configuration is useful to you, please write to [email protected]." >&5
2827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to [email protected]." >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 else
2835 CC="$ac_cv_prog_CC"
2836 fi
2837
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}cc; ac_word=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_CC+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_CC="${ac_tool_prefix}cc"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { echo "$as_me:$LINENO: result: $CC" >&5
2870 echo "${ECHO_T}$CC" >&6; }
2871 else
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2874 fi
2875
2876
2877 fi
2878 fi
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2901 fi
2902 ac_cv_prog_CC="cc"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 if test $ac_prog_rejected = yes; then
2911 # We found a bogon in the path, so make sure we never use it.
2912 set dummy $ac_cv_prog_CC
2913 shift
2914 if test $# != 0; then
2915 # We chose a different compiler from the bogus one.
2916 # However, it has the same basename, so the bogon will be chosen
2917 # first if we set CC to just the basename; use the full file name.
2918 shift
2919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2920 fi
2921 fi
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2928 else
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in cl.exe
2938 do
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
2970 else
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976 test -n "$CC" && break
2977 done
2978 fi
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl.exe
2982 do
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6; }
3014 else
3015 { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3017 fi
3018
3019
3020 test -n "$ac_ct_CC" && break
3021 done
3022
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to [email protected]." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to [email protected]." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 CC=$ac_ct_CC
3037 fi
3038 fi
3039
3040 fi
3041
3042
3043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3048
3049 # Provide some information about the compiler.
3050 echo "$as_me:$LINENO: checking for C compiler version" >&5
3051 ac_compiler=`set X $ac_compile; echo $2`
3052 { (ac_try="$ac_compiler --version >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler --version >&5") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062 { (ac_try="$ac_compiler -v >&5"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compiler -v >&5") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }
3072 { (ac_try="$ac_compiler -V >&5"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compiler -V >&5") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }
3082
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3089
3090 int
3091 main ()
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3104 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3105 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106 #
3107 # List of possible output files, starting from the most likely.
3108 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3109 # only as a last resort. b.out is created by i960 compilers.
3110 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3111 #
3112 # The IRIX 6 linker writes into existing files which may not be
3113 # executable, retaining their permissions. Remove them first so a
3114 # subsequent execution test works.
3115 ac_rmfiles=
3116 for ac_file in $ac_files
3117 do
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3120 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 esac
3122 done
3123 rm -f $ac_rmfiles
3124
3125 if { (ac_try="$ac_link_default"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_link_default") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; then
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3139 # Autoconf.
3140 for ac_file in $ac_files ''
3141 do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3145 ;;
3146 [ab].out )
3147 # We found the default executable, but exeext='' is most
3148 # certainly right.
3149 break;;
3150 *.* )
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 then :; else
3153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 fi
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3159 # actually working.
3160 break;;
3161 * )
3162 break;;
3163 esac
3164 done
3165 test "$ac_cv_exeext" = no && ac_cv_exeext=
3166
3167 else
3168 ac_file=''
3169 fi
3170
3171 { echo "$as_me:$LINENO: result: $ac_file" >&5
3172 echo "${ECHO_T}$ac_file" >&6; }
3173 if test -z "$ac_file"; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: C compiler cannot create executables
3180 See \`config.log' for more details." >&2;}
3181 { (exit 77); exit 77; }; }
3182 fi
3183
3184 ac_exeext=$ac_cv_exeext
3185
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3189 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3190 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3191 # If not cross compiling, check that we can run a simple program.
3192 if test "$cross_compiling" != yes; then
3193 if { ac_try='./$ac_file'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 cross_compiling=no
3204 else
3205 if test "$cross_compiling" = maybe; then
3206 cross_compiling=yes
3207 else
3208 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: cannot run C compiled programs.
3212 If you meant to cross compile, use \`--host'.
3213 See \`config.log' for more details." >&2;}
3214 { (exit 1); exit 1; }; }
3215 fi
3216 fi
3217 fi
3218 { echo "$as_me:$LINENO: result: yes" >&5
3219 echo "${ECHO_T}yes" >&6; }
3220
3221 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3222 ac_clean_files=$ac_clean_files_save
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3226 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3227 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3228 echo "${ECHO_T}$cross_compiling" >&6; }
3229
3230 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3231 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3232 if { (ac_try="$ac_link"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; then
3242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3244 # work properly (i.e., refer to `conftest.exe'), while it won't with
3245 # `rm'.
3246 for ac_file in conftest.exe conftest conftest.*; do
3247 test -f "$ac_file" || continue
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 break;;
3252 * ) break;;
3253 esac
3254 done
3255 else
3256 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details." >&5
3258 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263 rm -f conftest$ac_cv_exeext
3264 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3265 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3266
3267 rm -f conftest.$ac_ext
3268 EXEEXT=$ac_cv_exeext
3269 ac_exeext=$EXEEXT
3270 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3271 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3272 if test "${ac_cv_objext+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281
3282 int
3283 main ()
3284 {
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 rm -f conftest.o conftest.obj
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 for ac_file in conftest.o conftest.obj conftest.*; do
3302 test -f "$ac_file" || continue;
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 break;;
3307 esac
3308 done
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3316 See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3318 fi
3319
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 fi
3322 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3323 echo "${ECHO_T}$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3325 ac_objext=$OBJEXT
3326 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3327 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3328 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337
3338 int
3339 main ()
3340 {
3341 #ifndef __GNUC__
3342 choke me
3343 #endif
3344
3345 ;
3346 return 0;
3347 }
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_compile") 2>conftest.er1
3357 ac_status=$?
3358 grep -v '^ *+' conftest.er1 >conftest.err
3359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } && {
3363 test -z "$ac_c_werror_flag" ||
3364 test ! -s conftest.err
3365 } && test -s conftest.$ac_objext; then
3366 ac_compiler_gnu=yes
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 ac_compiler_gnu=no
3372 fi
3373
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376
3377 fi
3378 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3379 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3380 GCC=`test $ac_compiler_gnu = yes && echo yes`
3381 ac_test_CFLAGS=${CFLAGS+set}
3382 ac_save_CFLAGS=$CFLAGS
3383 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_cc_g+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 ac_save_c_werror_flag=$ac_c_werror_flag
3389 ac_c_werror_flag=yes
3390 ac_cv_prog_cc_g=no
3391 CFLAGS="-g"
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.$ac_objext
3408 if { (ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_compile") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
3424 ac_cv_prog_cc_g=yes
3425 else
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 CFLAGS=""
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 :
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3468 CFLAGS="-g"
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3501 ac_cv_prog_cc_g=yes
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506
3507 fi
3508
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 fi
3518 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3519 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3524 CFLAGS="-g -O2"
3525 else
3526 CFLAGS="-g"
3527 fi
3528 else
3529 if test "$GCC" = yes; then
3530 CFLAGS="-O2"
3531 else
3532 CFLAGS=
3533 fi
3534 fi
3535 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3536 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3537 if test "${ac_cv_prog_cc_c89+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 ac_cv_prog_cc_c89=no
3541 ac_save_CC=$CC
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #include <stdarg.h>
3549 #include <stdio.h>
3550 #include <sys/types.h>
3551 #include <sys/stat.h>
3552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3553 struct buf { int x; };
3554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3555 static char *e (p, i)
3556 char **p;
3557 int i;
3558 {
3559 return p[i];
3560 }
3561 static char *f (char * (*g) (char **, int), char **p, ...)
3562 {
3563 char *s;
3564 va_list v;
3565 va_start (v,p);
3566 s = g (p, va_arg (v,int));
3567 va_end (v);
3568 return s;
3569 }
3570
3571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3572 function prototypes and stuff, but not '\xHH' hex character constants.
3573 These don't provoke an error unfortunately, instead are silently treated
3574 as 'x'. The following induces an error, until -std is added to get
3575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3576 array size at least. It's necessary to write '\x00'==0 to get something
3577 that's true only with -std. */
3578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3579
3580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3581 inside strings and character constants. */
3582 #define FOO(x) 'x'
3583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3584
3585 int test (int i, double x);
3586 struct s1 {int (*f) (int a);};
3587 struct s2 {int (*f) (double a);};
3588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3589 int argc;
3590 char **argv;
3591 int
3592 main ()
3593 {
3594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3601 do
3602 CC="$ac_save_CC $ac_arg"
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 ac_cv_prog_cc_c89=$ac_arg
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625
3626 fi
3627
3628 rm -f core conftest.err conftest.$ac_objext
3629 test "x$ac_cv_prog_cc_c89" != "xno" && break
3630 done
3631 rm -f conftest.$ac_ext
3632 CC=$ac_save_CC
3633
3634 fi
3635 # AC_CACHE_VAL
3636 case "x$ac_cv_prog_cc_c89" in
3637 x)
3638 { echo "$as_me:$LINENO: result: none needed" >&5
3639 echo "${ECHO_T}none needed" >&6; } ;;
3640 xno)
3641 { echo "$as_me:$LINENO: result: unsupported" >&5
3642 echo "${ECHO_T}unsupported" >&6; } ;;
3643 *)
3644 CC="$CC $ac_cv_prog_cc_c89"
3645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3646 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3647 esac
3648
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656 depcc="$CC" am_compiler_list=
3657
3658 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3659 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3660 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3664 # We make a subdir and do the tests there. Otherwise we can end up
3665 # making bogus files that we don't know about and never remove. For
3666 # instance it was reported that on HP-UX the gcc test will end up
3667 # making a dummy file named `D' -- because `-MD' means `put the output
3668 # in D'.
3669 mkdir conftest.dir
3670 # Copy depcomp to subdir because otherwise we won't find it if we're
3671 # using a relative directory.
3672 cp "$am_depcomp" conftest.dir
3673 cd conftest.dir
3674 # We will build objects and dependencies in a subdirectory because
3675 # it helps to detect inapplicable dependency modes. For instance
3676 # both Tru64's cc and ICC support -MD to output dependencies as a
3677 # side effect of compilation, but ICC will put the dependencies in
3678 # the current directory while Tru64 will put them in the object
3679 # directory.
3680 mkdir sub
3681
3682 am_cv_CC_dependencies_compiler_type=none
3683 if test "$am_compiler_list" = ""; then
3684 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3685 fi
3686 for depmode in $am_compiler_list; do
3687 # Setup a source with many dependencies, because some compilers
3688 # like to wrap large dependency lists on column 80 (with \), and
3689 # we should not choose a depcomp mode which is confused by this.
3690 #
3691 # We need to recreate these files for each test, as the compiler may
3692 # overwrite some of them when testing with obscure command lines.
3693 # This happens at least with the AIX C compiler.
3694 : > sub/conftest.c
3695 for i in 1 2 3 4 5 6; do
3696 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3698 # Solaris 8's {/usr,}/bin/sh.
3699 touch sub/conftst$i.h
3700 done
3701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3702
3703 case $depmode in
3704 nosideeffect)
3705 # after this tag, mechanisms are not by side-effect, so they'll
3706 # only be used when explicitly requested
3707 if test "x$enable_dependency_tracking" = xyes; then
3708 continue
3709 else
3710 break
3711 fi
3712 ;;
3713 none) break ;;
3714 esac
3715 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3716 # mode. It turns out that the SunPro C++ compiler does not properly
3717 # handle `-M -o', and we need to detect this.
3718 if depmode=$depmode \
3719 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3721 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3722 >/dev/null 2>conftest.err &&
3723 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3724 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3725 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3726 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3727 # icc doesn't choke on unknown options, it will just issue warnings
3728 # or remarks (even with -Werror). So we grep stderr for any message
3729 # that says an option was ignored or not supported.
3730 # When given -MP, icc 7.0 and 7.1 complain thusly:
3731 # icc: Command line warning: ignoring option '-M'; no argument required
3732 # The diagnosis changed in icc 8.0:
3733 # icc: Command line remark: option '-MP' not supported
3734 if (grep 'ignoring option' conftest.err ||
3735 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3736 am_cv_CC_dependencies_compiler_type=$depmode
3737 break
3738 fi
3739 fi
3740 done
3741
3742 cd ..
3743 rm -rf conftest.dir
3744 else
3745 am_cv_CC_dependencies_compiler_type=none
3746 fi
3747
3748 fi
3749 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3750 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3751 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3752
3753 if
3754 test "x$enable_dependency_tracking" != xno \
3755 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3756 am__fastdepCC_TRUE=
3757 am__fastdepCC_FALSE='#'
3758 else
3759 am__fastdepCC_TRUE='#'
3760 am__fastdepCC_FALSE=
3761 fi
3762
3763
3764 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3765 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3766 if test "${lt_cv_path_SED+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 # Loop through the user's path and test for sed and gsed.
3770 # Then use that list of sed's as ones to test for truncation.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for lt_ac_prog in sed gsed; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3779 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3780 fi
3781 done
3782 done
3783 done
3784 lt_ac_max=0
3785 lt_ac_count=0
3786 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787 # along with /bin/sed that truncates output.
3788 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789 test ! -f $lt_ac_sed && continue
3790 cat /dev/null > conftest.in
3791 lt_ac_count=0
3792 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793 # Check for GNU sed and select it if it is found.
3794 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795 lt_cv_path_SED=$lt_ac_sed
3796 break
3797 fi
3798 while true; do
3799 cat conftest.in conftest.in >conftest.tmp
3800 mv conftest.tmp conftest.in
3801 cp conftest.in conftest.nl
3802 echo >>conftest.nl
3803 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804 cmp -s conftest.out conftest.nl || break
3805 # 10000 chars as input seems more than enough
3806 test $lt_ac_count -gt 10 && break
3807 lt_ac_count=`expr $lt_ac_count + 1`
3808 if test $lt_ac_count -gt $lt_ac_max; then
3809 lt_ac_max=$lt_ac_count
3810 lt_cv_path_SED=$lt_ac_sed
3811 fi
3812 done
3813 done
3814
3815 fi
3816
3817 SED=$lt_cv_path_SED
3818 { echo "$as_me:$LINENO: result: $SED" >&5
3819 echo "${ECHO_T}$SED" >&6; }
3820
3821 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3822 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3823 if test "${ac_cv_path_GREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 # Extract the first word of "grep ggrep" to use in msg output
3827 if test -z "$GREP"; then
3828 set dummy grep ggrep; ac_prog_name=$2
3829 if test "${ac_cv_path_GREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 ac_path_GREP_found=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3846 *GNU*)
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 *)
3849 ac_count=0
3850 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3851 while :
3852 do
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 ac_count=`expr $ac_count + 1`
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3864 fi
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3867 done
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 esac
3870
3871
3872 $ac_path_GREP_found && break 3
3873 done
3874 done
3875
3876 done
3877 IFS=$as_save_IFS
3878
3879
3880 fi
3881
3882 GREP="$ac_cv_path_GREP"
3883 if test -z "$GREP"; then
3884 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3885 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3886 { (exit 1); exit 1; }; }
3887 fi
3888
3889 else
3890 ac_cv_path_GREP=$GREP
3891 fi
3892
3893
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3898
3899
3900 { echo "$as_me:$LINENO: checking for egrep" >&5
3901 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_EGREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3907 else
3908 # Extract the first word of "egrep" to use in msg output
3909 if test -z "$EGREP"; then
3910 set dummy egrep; ac_prog_name=$2
3911 if test "${ac_cv_path_EGREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 ac_path_EGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925 # Check for GNU ac_path_EGREP and select it if it is found.
3926 # Check for GNU $ac_path_EGREP
3927 case `"$ac_path_EGREP" --version 2>&1` in
3928 *GNU*)
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930 *)
3931 ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'EGREP' >> "conftest.nl"
3939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953
3954 $ac_path_EGREP_found && break 3
3955 done
3956 done
3957
3958 done
3959 IFS=$as_save_IFS
3960
3961
3962 fi
3963
3964 EGREP="$ac_cv_path_EGREP"
3965 if test -z "$EGREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3969 fi
3970
3971 else
3972 ac_cv_path_EGREP=$EGREP
3973 fi
3974
3975
3976 fi
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3979 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
3981
3982
3983
3984 # Check whether --with-gnu-ld was given.
3985 if test "${with_gnu_ld+set}" = set; then
3986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3987 else
3988 with_gnu_ld=no
3989 fi
3990
3991 ac_prog=ld
3992 if test "$GCC" = yes; then
3993 # Check if gcc -print-prog-name=ld gives a path.
3994 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3995 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3996 case $host in
3997 *-*-mingw*)
3998 # gcc leaves a trailing carriage return which upsets mingw
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 *)
4001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4002 esac
4003 case $ac_prog in
4004 # Accept absolute paths.
4005 [\\/]* | ?:[\\/]*)
4006 re_direlt='/[^/][^/]*/\.\./'
4007 # Canonicalize the pathname of ld
4008 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4010 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4011 done
4012 test -z "$LD" && LD="$ac_prog"
4013 ;;
4014 "")
4015 # If it fails, then pretend we aren't using GCC.
4016 ac_prog=ld
4017 ;;
4018 *)
4019 # If it is relative, then search for the first ld in PATH.
4020 with_gnu_ld=unknown
4021 ;;
4022 esac
4023 elif test "$with_gnu_ld" = yes; then
4024 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4025 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4026 else
4027 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4028 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4029 fi
4030 if test "${lt_cv_path_LD+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 if test -z "$LD"; then
4034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035 for ac_dir in $PATH; do
4036 IFS="$lt_save_ifs"
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039 lt_cv_path_LD="$ac_dir/$ac_prog"
4040 # Check to see if the program is GNU ld. I'd rather use --version,
4041 # but apparently some variants of GNU ld only accept -v.
4042 # Break only if it was the GNU/non-GNU ld that we prefer.
4043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 test "$with_gnu_ld" != no && break
4046 ;;
4047 *)
4048 test "$with_gnu_ld" != yes && break
4049 ;;
4050 esac
4051 fi
4052 done
4053 IFS="$lt_save_ifs"
4054 else
4055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056 fi
4057 fi
4058
4059 LD="$lt_cv_path_LD"
4060 if test -n "$LD"; then
4061 { echo "$as_me:$LINENO: result: $LD" >&5
4062 echo "${ECHO_T}$LD" >&6; }
4063 else
4064 { echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6; }
4066 fi
4067 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4068 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4069 { (exit 1); exit 1; }; }
4070 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4071 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4072 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4076 case `$LD -v 2>&1 </dev/null` in
4077 *GNU* | *'with BFD'*)
4078 lt_cv_prog_gnu_ld=yes
4079 ;;
4080 *)
4081 lt_cv_prog_gnu_ld=no
4082 ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4086 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4087 with_gnu_ld=$lt_cv_prog_gnu_ld
4088
4089
4090 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4091 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4092 if test "${lt_cv_ld_reload_flag+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 lt_cv_ld_reload_flag='-r'
4096 fi
4097 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4098 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4099 reload_flag=$lt_cv_ld_reload_flag
4100 case $reload_flag in
4101 "" | " "*) ;;
4102 *) reload_flag=" $reload_flag" ;;
4103 esac
4104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105 case $host_os in
4106 darwin*)
4107 if test "$GCC" = yes; then
4108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4109 else
4110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4111 fi
4112 ;;
4113 esac
4114
4115 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4116 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4117 if test "${lt_cv_path_NM+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$NM"; then
4121 # Let the user override the test.
4122 lt_cv_path_NM="$NM"
4123 else
4124 lt_nm_to_check="${ac_tool_prefix}nm"
4125 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4126 lt_nm_to_check="$lt_nm_to_check nm"
4127 fi
4128 for lt_tmp_nm in $lt_nm_to_check; do
4129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4130 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4131 IFS="$lt_save_ifs"
4132 test -z "$ac_dir" && ac_dir=.
4133 tmp_nm="$ac_dir/$lt_tmp_nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
4139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
4141 lt_cv_path_NM="$tmp_nm -B"
4142 break
4143 ;;
4144 *)
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146 */dev/null*)
4147 lt_cv_path_NM="$tmp_nm -p"
4148 break
4149 ;;
4150 *)
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4153 ;;
4154 esac
4155 ;;
4156 esac
4157 fi
4158 done
4159 IFS="$lt_save_ifs"
4160 done
4161 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162 fi
4163 fi
4164 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4166 NM="$lt_cv_path_NM"
4167
4168 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4170 LN_S=$as_ln_s
4171 if test "$LN_S" = "ln -s"; then
4172 { echo "$as_me:$LINENO: result: yes" >&5
4173 echo "${ECHO_T}yes" >&6; }
4174 else
4175 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176 echo "${ECHO_T}no, using $LN_S" >&6; }
4177 fi
4178
4179 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4180 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4181 if test "${lt_cv_deplibs_check_method+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 lt_cv_file_magic_cmd='$MAGIC_CMD'
4185 lt_cv_file_magic_test_file=
4186 lt_cv_deplibs_check_method='unknown'
4187 # Need to set the preceding variable on all platforms that support
4188 # interlibrary dependencies.
4189 # 'none' -- dependencies not supported.
4190 # `unknown' -- same as none, but documents that we really don't know.
4191 # 'pass_all' -- all dependencies passed with no checks.
4192 # 'test_compile' -- check by making test program.
4193 # 'file_magic [[regex]]' -- check by looking for files in library path
4194 # which responds to the $file_magic_cmd with a given extended regex.
4195 # If you have `file' or equivalent on your system and you're not sure
4196 # whether `pass_all' will *always* work, you probably want this one.
4197
4198 case $host_os in
4199 aix4* | aix5*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203 beos*)
4204 lt_cv_deplibs_check_method=pass_all
4205 ;;
4206
4207 bsdi[45]*)
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209 lt_cv_file_magic_cmd='/usr/bin/file -L'
4210 lt_cv_file_magic_test_file=/shlib/libc.so
4211 ;;
4212
4213 cygwin*)
4214 # func_win32_libid is a shell function defined in ltmain.sh
4215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4216 lt_cv_file_magic_cmd='func_win32_libid'
4217 ;;
4218
4219 mingw* | pw32*)
4220 # Base MSYS/MinGW do not provide the 'file' command needed by
4221 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4222 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4223 lt_cv_file_magic_cmd='$OBJDUMP -f'
4224 ;;
4225
4226 darwin* | rhapsody*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
4230 freebsd* | dragonfly*)
4231 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232 case $host_cpu in
4233 i*86 )
4234 # Not sure whether the presence of OpenBSD here was a mistake.
4235 # Let's accept both of them until this is cleared up.
4236 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4237 lt_cv_file_magic_cmd=/usr/bin/file
4238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4239 ;;
4240 esac
4241 else
4242 lt_cv_deplibs_check_method=pass_all
4243 fi
4244 ;;
4245
4246 gnu*)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249
4250 hpux10.20* | hpux11*)
4251 lt_cv_file_magic_cmd=/usr/bin/file
4252 case $host_cpu in
4253 ia64*)
4254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4255 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4256 ;;
4257 hppa*64*)
4258 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]'
4259 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4260 ;;
4261 *)
4262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4263 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4264 ;;
4265 esac
4266 ;;
4267
4268 interix3*)
4269 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4271 ;;
4272
4273 irix5* | irix6* | nonstopux*)
4274 case $LD in
4275 *-32|*"-32 ") libmagic=32-bit;;
4276 *-n32|*"-n32 ") libmagic=N32;;
4277 *-64|*"-64 ") libmagic=64-bit;;
4278 *) libmagic=never-match;;
4279 esac
4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
4282
4283 # This must be Linux ELF.
4284 linux* | k*bsd*-gnu)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288 netbsd* | netbsdelf*-gnu)
4289 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4291 else
4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4293 fi
4294 ;;
4295
4296 newos6*)
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4298 lt_cv_file_magic_cmd=/usr/bin/file
4299 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4300 ;;
4301
4302 nto-qnx*)
4303 lt_cv_deplibs_check_method=unknown
4304 ;;
4305
4306 openbsd*)
4307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4309 else
4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4311 fi
4312 ;;
4313
4314 osf3* | osf4* | osf5*)
4315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
4318 solaris*)
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
4322 sysv4 | sysv4.3*)
4323 case $host_vendor in
4324 motorola)
4325 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]'
4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4327 ;;
4328 ncr)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331 sequent)
4332 lt_cv_file_magic_cmd='/bin/file'
4333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4334 ;;
4335 sni)
4336 lt_cv_file_magic_cmd='/bin/file'
4337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4338 lt_cv_file_magic_test_file=/lib/libc.so
4339 ;;
4340 siemens)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343 pc)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
4346 esac
4347 ;;
4348
4349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352 esac
4353
4354 fi
4355 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4357 file_magic_cmd=$lt_cv_file_magic_cmd
4358 deplibs_check_method=$lt_cv_deplibs_check_method
4359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4360
4361
4362
4363
4364 # If no C compiler was specified, use CC.
4365 LTCC=${LTCC-"$CC"}
4366
4367 # If no C compiler flags were specified, use CFLAGS.
4368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4369
4370 # Allow CC to be a program name with arguments.
4371 compiler=$CC
4372
4373
4374 # Check whether --enable-libtool-lock was given.
4375 if test "${enable_libtool_lock+set}" = set; then
4376 enableval=$enable_libtool_lock;
4377 fi
4378
4379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4380
4381 # Some flags need to be propagated to the compiler or linker for good
4382 # libtool support.
4383 case $host in
4384 ia64-*-hpux*)
4385 # Find out which ABI we are using.
4386 echo 'int i;' > conftest.$ac_ext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
4392 case `/usr/bin/file conftest.$ac_objext` in
4393 *ELF-32*)
4394 HPUX_IA64_MODE="32"
4395 ;;
4396 *ELF-64*)
4397 HPUX_IA64_MODE="64"
4398 ;;
4399 esac
4400 fi
4401 rm -rf conftest*
4402 ;;
4403 *-*-irix6*)
4404 # Find out which ABI we are using.
4405 echo '#line 4405 "configure"' > conftest.$ac_ext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; then
4411 if test "$lt_cv_prog_gnu_ld" = yes; then
4412 case `/usr/bin/file conftest.$ac_objext` in
4413 *32-bit*)
4414 LD="${LD-ld} -melf32bsmip"
4415 ;;
4416 *N32*)
4417 LD="${LD-ld} -melf32bmipn32"
4418 ;;
4419 *64-bit*)
4420 LD="${LD-ld} -melf64bmip"
4421 ;;
4422 esac
4423 else
4424 case `/usr/bin/file conftest.$ac_objext` in
4425 *32-bit*)
4426 LD="${LD-ld} -32"
4427 ;;
4428 *N32*)
4429 LD="${LD-ld} -n32"
4430 ;;
4431 *64-bit*)
4432 LD="${LD-ld} -64"
4433 ;;
4434 esac
4435 fi
4436 fi
4437 rm -rf conftest*
4438 ;;
4439
4440 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case `/usr/bin/file conftest.o` in
4449 *32-bit*)
4450 case $host in
4451 x86_64-*linux*)
4452 LD="${LD-ld} -m elf_i386"
4453 ;;
4454 ppc64-*linux*|powerpc64-*linux*)
4455 LD="${LD-ld} -m elf32ppclinux"
4456 ;;
4457 s390x-*linux*)
4458 LD="${LD-ld} -m elf_s390"
4459 ;;
4460 sparc64-*linux*)
4461 LD="${LD-ld} -m elf32_sparc"
4462 ;;
4463 esac
4464 ;;
4465 *64-bit*)
4466 case $host in
4467 x86_64-*linux*)
4468 LD="${LD-ld} -m elf_x86_64"
4469 ;;
4470 ppc*-*linux*|powerpc*-*linux*)
4471 LD="${LD-ld} -m elf64ppc"
4472 ;;
4473 s390*-*linux*)
4474 LD="${LD-ld} -m elf64_s390"
4475 ;;
4476 sparc*-*linux*)
4477 LD="${LD-ld} -m elf64_sparc"
4478 ;;
4479 esac
4480 ;;
4481 esac
4482 fi
4483 rm -rf conftest*
4484 ;;
4485
4486 *-*-sco3.2v5*)
4487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4488 SAVE_CFLAGS="$CFLAGS"
4489 CFLAGS="$CFLAGS -belf"
4490 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4491 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4492 if test "${lt_cv_cc_needs_belf+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507
4508 int
4509 main ()
4510 {
4511
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (ac_try="$ac_link"
4518 case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_link") 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && {
4530 test -z "$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 } && test -s conftest$ac_exeext &&
4533 $as_test_x conftest$ac_exeext; then
4534 lt_cv_cc_needs_belf=yes
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 lt_cv_cc_needs_belf=no
4540 fi
4541
4542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4543 conftest$ac_exeext conftest.$ac_ext
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549
4550 fi
4551 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4552 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4553 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4554 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4555 CFLAGS="$SAVE_CFLAGS"
4556 fi
4557 ;;
4558 sparc*-*solaris*)
4559 # Find out which ABI we are using.
4560 echo 'int i;' > conftest.$ac_ext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; then
4566 case `/usr/bin/file conftest.o` in
4567 *64-bit*)
4568 case $lt_cv_prog_gnu_ld in
4569 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4570 *) LD="${LD-ld} -64" ;;
4571 esac
4572 ;;
4573 esac
4574 fi
4575 rm -rf conftest*
4576 ;;
4577
4578
4579 esac
4580
4581 need_locks="$enable_libtool_lock"
4582
4583
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4590 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4591 # On Suns, sometimes $CPP names a directory.
4592 if test -n "$CPP" && test -d "$CPP"; then
4593 CPP=
4594 fi
4595 if test -z "$CPP"; then
4596 if test "${ac_cv_prog_CPP+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 # Double quotes because CPP needs to be expanded
4600 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4601 do
4602 ac_preproc_ok=false
4603 for ac_c_preproc_warn_flag in '' yes
4604 do
4605 # Use a header file that comes with gcc, so configuring glibc
4606 # with a fresh cross-compiler works.
4607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608 # <limits.h> exists even on freestanding compilers.
4609 # On the NeXT, cc -E runs the code through the compiler's parser,
4610 # not just through cpp. "Syntax error" is here to catch this case.
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #ifdef __STDC__
4618 # include <limits.h>
4619 #else
4620 # include <assert.h>
4621 #endif
4622 Syntax error
4623 _ACEOF
4624 if { (ac_try="$ac_cpp conftest.$ac_ext"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } >/dev/null && {
4637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 }; then
4640 :
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 # Broken: fails on valid input.
4646 continue
4647 fi
4648
4649 rm -f conftest.err conftest.$ac_ext
4650
4651 # OK, works on sane cases. Now check whether nonexistent headers
4652 # can be detected and how.
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <ac_nonexistent.h>
4660 _ACEOF
4661 if { (ac_try="$ac_cpp conftest.$ac_ext"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null && {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 }; then
4677 # Broken: success on invalid input.
4678 continue
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 # Passes both tests.
4684 ac_preproc_ok=:
4685 break
4686 fi
4687
4688 rm -f conftest.err conftest.$ac_ext
4689
4690 done
4691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4692 rm -f conftest.err conftest.$ac_ext
4693 if $ac_preproc_ok; then
4694 break
4695 fi
4696
4697 done
4698 ac_cv_prog_CPP=$CPP
4699
4700 fi
4701 CPP=$ac_cv_prog_CPP
4702 else
4703 ac_cv_prog_CPP=$CPP
4704 fi
4705 { echo "$as_me:$LINENO: result: $CPP" >&5
4706 echo "${ECHO_T}$CPP" >&6; }
4707 ac_preproc_ok=false
4708 for ac_c_preproc_warn_flag in '' yes
4709 do
4710 # Use a header file that comes with gcc, so configuring glibc
4711 # with a fresh cross-compiler works.
4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713 # <limits.h> exists even on freestanding compilers.
4714 # On the NeXT, cc -E runs the code through the compiler's parser,
4715 # not just through cpp. "Syntax error" is here to catch this case.
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 #ifdef __STDC__
4723 # include <limits.h>
4724 #else
4725 # include <assert.h>
4726 #endif
4727 Syntax error
4728 _ACEOF
4729 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null && {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 }; then
4745 :
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 # Broken: fails on valid input.
4751 continue
4752 fi
4753
4754 rm -f conftest.err conftest.$ac_ext
4755
4756 # OK, works on sane cases. Now check whether nonexistent headers
4757 # can be detected and how.
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <ac_nonexistent.h>
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 }; then
4782 # Broken: success on invalid input.
4783 continue
4784 else
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 # Passes both tests.
4789 ac_preproc_ok=:
4790 break
4791 fi
4792
4793 rm -f conftest.err conftest.$ac_ext
4794
4795 done
4796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4797 rm -f conftest.err conftest.$ac_ext
4798 if $ac_preproc_ok; then
4799 :
4800 else
4801 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4802 See \`config.log' for more details." >&5
4803 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4804 See \`config.log' for more details." >&2;}
4805 { (exit 1); exit 1; }; }
4806 fi
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814
4815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4817 if test "${ac_cv_header_stdc+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <stdlib.h>
4827 #include <stdarg.h>
4828 #include <string.h>
4829 #include <float.h>
4830
4831 int
4832 main ()
4833 {
4834
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest.$ac_objext; then
4856 ac_cv_header_stdc=yes
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 ac_cv_header_stdc=no
4862 fi
4863
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865
4866 if test $ac_cv_header_stdc = yes; then
4867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <string.h>
4875
4876 _ACEOF
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 $EGREP "memchr" >/dev/null 2>&1; then
4879 :
4880 else
4881 ac_cv_header_stdc=no
4882 fi
4883 rm -f conftest*
4884
4885 fi
4886
4887 if test $ac_cv_header_stdc = yes; then
4888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 #include <stdlib.h>
4896
4897 _ACEOF
4898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4899 $EGREP "free" >/dev/null 2>&1; then
4900 :
4901 else
4902 ac_cv_header_stdc=no
4903 fi
4904 rm -f conftest*
4905
4906 fi
4907
4908 if test $ac_cv_header_stdc = yes; then
4909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4910 if test "$cross_compiling" = yes; then
4911 :
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <ctype.h>
4920 #include <stdlib.h>
4921 #if ((' ' & 0x0FF) == 0x020)
4922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4924 #else
4925 # define ISLOWER(c) \
4926 (('a' <= (c) && (c) <= 'i') \
4927 || ('j' <= (c) && (c) <= 'r') \
4928 || ('s' <= (c) && (c) <= 'z'))
4929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4930 #endif
4931
4932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4933 int
4934 main ()
4935 {
4936 int i;
4937 for (i = 0; i < 256; i++)
4938 if (XOR (islower (i), ISLOWER (i))
4939 || toupper (i) != TOUPPER (i))
4940 return 2;
4941 return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest$ac_exeext
4945 if { (ac_try="$ac_link"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_link") 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4955 { (case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_try") 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 :
4965 else
4966 echo "$as_me: program exited with status $ac_status" >&5
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ( exit $ac_status )
4971 ac_cv_header_stdc=no
4972 fi
4973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4974 fi
4975
4976
4977 fi
4978 fi
4979 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4980 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4981 if test $ac_cv_header_stdc = yes; then
4982
4983 cat >>confdefs.h <<\_ACEOF
4984 #define STDC_HEADERS 1
4985 _ACEOF
4986
4987 fi
4988
4989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5000 inttypes.h stdint.h unistd.h
5001 do
5002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 $ac_includes_default
5015
5016 #include <$ac_header>
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (ac_try="$ac_compile"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_compile") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest.$ac_objext; then
5035 eval "$as_ac_Header=yes"
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 eval "$as_ac_Header=no"
5041 fi
5042
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 fi
5045 ac_res=`eval echo '${'$as_ac_Header'}'`
5046 { echo "$as_me:$LINENO: result: $ac_res" >&5
5047 echo "${ECHO_T}$ac_res" >&6; }
5048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5049 cat >>confdefs.h <<_ACEOF
5050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5051 _ACEOF
5052
5053 fi
5054
5055 done
5056
5057
5058
5059 for ac_header in dlfcn.h
5060 do
5061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 fi
5068 ac_res=`eval echo '${'$as_ac_Header'}'`
5069 { echo "$as_me:$LINENO: result: $ac_res" >&5
5070 echo "${ECHO_T}$ac_res" >&6; }
5071 else
5072 # Is the header compilable?
5073 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 $ac_includes_default
5082 #include <$ac_header>
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 ac_header_compiler=yes
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 ac_header_compiler=no
5107 fi
5108
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5111 echo "${ECHO_T}$ac_header_compiler" >&6; }
5112
5113 # Is the header present?
5114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <$ac_header>
5123 _ACEOF
5124 if { (ac_try="$ac_cpp conftest.$ac_ext"
5125 case "(($ac_try" in
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5128 esac
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null && {
5137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 }; then
5140 ac_header_preproc=yes
5141 else
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_header_preproc=no
5146 fi
5147
5148 rm -f conftest.err conftest.$ac_ext
5149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5150 echo "${ECHO_T}$ac_header_preproc" >&6; }
5151
5152 # So? What about this header?
5153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5154 yes:no: )
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5159 ac_header_preproc=yes
5160 ;;
5161 no:yes:* )
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5174 ( cat <<\_ASBOX
5175 ## ------------------------------------ ##
5176 ## Report this to [email protected] ##
5177 ## ------------------------------------ ##
5178 _ASBOX
5179 ) | sed "s/^/$as_me: WARNING: /" >&2
5180 ;;
5181 esac
5182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 eval "$as_ac_Header=\$ac_header_preproc"
5188 fi
5189 ac_res=`eval echo '${'$as_ac_Header'}'`
5190 { echo "$as_me:$LINENO: result: $ac_res" >&5
5191 echo "${ECHO_T}$ac_res" >&6; }
5192
5193 fi
5194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5195 cat >>confdefs.h <<_ACEOF
5196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 _ACEOF
5198
5199 fi
5200
5201 done
5202
5203 ac_ext=cpp
5204 ac_cpp='$CXXCPP $CPPFLAGS'
5205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208 if test -z "$CXX"; then
5209 if test -n "$CCC"; then
5210 CXX=$CCC
5211 else
5212 if test -n "$ac_tool_prefix"; then
5213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5214 do
5215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_CXX+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test -n "$CXX"; then
5223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 CXX=$ac_cv_prog_CXX
5243 if test -n "$CXX"; then
5244 { echo "$as_me:$LINENO: result: $CXX" >&5
5245 echo "${ECHO_T}$CXX" >&6; }
5246 else
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5249 fi
5250
5251
5252 test -n "$CXX" && break
5253 done
5254 fi
5255 if test -z "$CXX"; then
5256 ac_ct_CXX=$CXX
5257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5258 do
5259 # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5263 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 if test -n "$ac_ct_CXX"; then
5267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_prog_ac_ct_CXX="$ac_prog"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280 done
5281 done
5282 IFS=$as_save_IFS
5283
5284 fi
5285 fi
5286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5287 if test -n "$ac_ct_CXX"; then
5288 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5289 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5290 else
5291 { echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6; }
5293 fi
5294
5295
5296 test -n "$ac_ct_CXX" && break
5297 done
5298
5299 if test "x$ac_ct_CXX" = x; then
5300 CXX="g++"
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303 yes:)
5304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5305 whose name does not start with the host triplet. If you think this
5306 configuration is useful to you, please write to [email protected]." >&5
5307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5308 whose name does not start with the host triplet. If you think this
5309 configuration is useful to you, please write to [email protected]." >&2;}
5310 ac_tool_warned=yes ;;
5311 esac
5312 CXX=$ac_ct_CXX
5313 fi
5314 fi
5315
5316 fi
5317 fi
5318 # Provide some information about the compiler.
5319 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5320 ac_compiler=`set X $ac_compile; echo $2`
5321 { (ac_try="$ac_compiler --version >&5"
5322 case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_compiler --version >&5") 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }
5331 { (ac_try="$ac_compiler -v >&5"
5332 case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335 esac
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_compiler -v >&5") 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }
5341 { (ac_try="$ac_compiler -V >&5"
5342 case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compiler -V >&5") 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }
5351
5352 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5353 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5354 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363
5364 int
5365 main ()
5366 {
5367 #ifndef __GNUC__
5368 choke me
5369 #endif
5370
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_cxx_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 ac_compiler_gnu=yes
5393 else
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 ac_compiler_gnu=no
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5402
5403 fi
5404 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5405 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5406 GXX=`test $ac_compiler_gnu = yes && echo yes`
5407 ac_test_CXXFLAGS=${CXXFLAGS+set}
5408 ac_save_CXXFLAGS=$CXXFLAGS
5409 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5410 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5411 if test "${ac_cv_prog_cxx_g+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5415 ac_cxx_werror_flag=yes
5416 ac_cv_prog_cxx_g=no
5417 CXXFLAGS="-g"
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424
5425 int
5426 main ()
5427 {
5428
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compile") 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_cxx_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest.$ac_objext; then
5450 ac_cv_prog_cxx_g=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 CXXFLAGS=""
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5473 case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_cxx_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 :
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5494 CXXFLAGS="-g"
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501
5502 int
5503 main ()
5504 {
5505
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_cxx_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
5527 ac_cv_prog_cxx_g=yes
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532
5533 fi
5534
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 fi
5540
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5543 fi
5544 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5546 if test "$ac_test_CXXFLAGS" = set; then
5547 CXXFLAGS=$ac_save_CXXFLAGS
5548 elif test $ac_cv_prog_cxx_g = yes; then
5549 if test "$GXX" = yes; then
5550 CXXFLAGS="-g -O2"
5551 else
5552 CXXFLAGS="-g"
5553 fi
5554 else
5555 if test "$GXX" = yes; then
5556 CXXFLAGS="-O2"
5557 else
5558 CXXFLAGS=
5559 fi
5560 fi
5561 ac_ext=cpp
5562 ac_cpp='$CXXCPP $CPPFLAGS'
5563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5566
5567 depcc="$CXX" am_compiler_list=
5568
5569 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5571 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5575 # We make a subdir and do the tests there. Otherwise we can end up
5576 # making bogus files that we don't know about and never remove. For
5577 # instance it was reported that on HP-UX the gcc test will end up
5578 # making a dummy file named `D' -- because `-MD' means `put the output
5579 # in D'.
5580 mkdir conftest.dir
5581 # Copy depcomp to subdir because otherwise we won't find it if we're
5582 # using a relative directory.
5583 cp "$am_depcomp" conftest.dir
5584 cd conftest.dir
5585 # We will build objects and dependencies in a subdirectory because
5586 # it helps to detect inapplicable dependency modes. For instance
5587 # both Tru64's cc and ICC support -MD to output dependencies as a
5588 # side effect of compilation, but ICC will put the dependencies in
5589 # the current directory while Tru64 will put them in the object
5590 # directory.
5591 mkdir sub
5592
5593 am_cv_CXX_dependencies_compiler_type=none
5594 if test "$am_compiler_list" = ""; then
5595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5596 fi
5597 for depmode in $am_compiler_list; do
5598 # Setup a source with many dependencies, because some compilers
5599 # like to wrap large dependency lists on column 80 (with \), and
5600 # we should not choose a depcomp mode which is confused by this.
5601 #
5602 # We need to recreate these files for each test, as the compiler may
5603 # overwrite some of them when testing with obscure command lines.
5604 # This happens at least with the AIX C compiler.
5605 : > sub/conftest.c
5606 for i in 1 2 3 4 5 6; do
5607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5608 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5609 # Solaris 8's {/usr,}/bin/sh.
5610 touch sub/conftst$i.h
5611 done
5612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5613
5614 case $depmode in
5615 nosideeffect)
5616 # after this tag, mechanisms are not by side-effect, so they'll
5617 # only be used when explicitly requested
5618 if test "x$enable_dependency_tracking" = xyes; then
5619 continue
5620 else
5621 break
5622 fi
5623 ;;
5624 none) break ;;
5625 esac
5626 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5627 # mode. It turns out that the SunPro C++ compiler does not properly
5628 # handle `-M -o', and we need to detect this.
5629 if depmode=$depmode \
5630 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5632 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5633 >/dev/null 2>conftest.err &&
5634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5636 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5638 # icc doesn't choke on unknown options, it will just issue warnings
5639 # or remarks (even with -Werror). So we grep stderr for any message
5640 # that says an option was ignored or not supported.
5641 # When given -MP, icc 7.0 and 7.1 complain thusly:
5642 # icc: Command line warning: ignoring option '-M'; no argument required
5643 # The diagnosis changed in icc 8.0:
5644 # icc: Command line remark: option '-MP' not supported
5645 if (grep 'ignoring option' conftest.err ||
5646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5647 am_cv_CXX_dependencies_compiler_type=$depmode
5648 break
5649 fi
5650 fi
5651 done
5652
5653 cd ..
5654 rm -rf conftest.dir
5655 else
5656 am_cv_CXX_dependencies_compiler_type=none
5657 fi
5658
5659 fi
5660 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5661 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5662 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5663
5664 if
5665 test "x$enable_dependency_tracking" != xno \
5666 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5667 am__fastdepCXX_TRUE=
5668 am__fastdepCXX_FALSE='#'
5669 else
5670 am__fastdepCXX_TRUE='#'
5671 am__fastdepCXX_FALSE=
5672 fi
5673
5674
5675
5676
5677 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5678 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5679 (test "X$CXX" != "Xg++"))) ; then
5680 ac_ext=cpp
5681 ac_cpp='$CXXCPP $CPPFLAGS'
5682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5686 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5687 if test -z "$CXXCPP"; then
5688 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 # Double quotes because CXXCPP needs to be expanded
5692 for CXXCPP in "$CXX -E" "/lib/cpp"
5693 do
5694 ac_preproc_ok=false
5695 for ac_cxx_preproc_warn_flag in '' yes
5696 do
5697 # Use a header file that comes with gcc, so configuring glibc
5698 # with a fresh cross-compiler works.
5699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5700 # <limits.h> exists even on freestanding compilers.
5701 # On the NeXT, cc -E runs the code through the compiler's parser,
5702 # not just through cpp. "Syntax error" is here to catch this case.
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #ifdef __STDC__
5710 # include <limits.h>
5711 #else
5712 # include <assert.h>
5713 #endif
5714 Syntax error
5715 _ACEOF
5716 if { (ac_try="$ac_cpp conftest.$ac_ext"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null && {
5729 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5730 test ! -s conftest.err
5731 }; then
5732 :
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 # Broken: fails on valid input.
5738 continue
5739 fi
5740
5741 rm -f conftest.err conftest.$ac_ext
5742
5743 # OK, works on sane cases. Now check whether nonexistent headers
5744 # can be detected and how.
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <ac_nonexistent.h>
5752 _ACEOF
5753 if { (ac_try="$ac_cpp conftest.$ac_ext"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } >/dev/null && {
5766 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5767 test ! -s conftest.err
5768 }; then
5769 # Broken: success on invalid input.
5770 continue
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 # Passes both tests.
5776 ac_preproc_ok=:
5777 break
5778 fi
5779
5780 rm -f conftest.err conftest.$ac_ext
5781
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then
5786 break
5787 fi
5788
5789 done
5790 ac_cv_prog_CXXCPP=$CXXCPP
5791
5792 fi
5793 CXXCPP=$ac_cv_prog_CXXCPP
5794 else
5795 ac_cv_prog_CXXCPP=$CXXCPP
5796 fi
5797 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5798 echo "${ECHO_T}$CXXCPP" >&6; }
5799 ac_preproc_ok=false
5800 for ac_cxx_preproc_warn_flag in '' yes
5801 do
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819 Syntax error
5820 _ACEOF
5821 if { (ac_try="$ac_cpp conftest.$ac_ext"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5836 }; then
5837 :
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 # Broken: fails on valid input.
5843 continue
5844 fi
5845
5846 rm -f conftest.err conftest.$ac_ext
5847
5848 # OK, works on sane cases. Now check whether nonexistent headers
5849 # can be detected and how.
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5857 _ACEOF
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null && {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 }; then
5874 # Broken: success on invalid input.
5875 continue
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 # Passes both tests.
5881 ac_preproc_ok=:
5882 break
5883 fi
5884
5885 rm -f conftest.err conftest.$ac_ext
5886
5887 done
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.$ac_ext
5890 if $ac_preproc_ok; then
5891 :
5892 else
5893 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5894 See \`config.log' for more details." >&5
5895 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5896 See \`config.log' for more details." >&2;}
5897 { (exit 1); exit 1; }; }
5898 fi
5899
5900 ac_ext=cpp
5901 ac_cpp='$CXXCPP $CPPFLAGS'
5902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5905
5906 fi
5907
5908
5909 ac_ext=f
5910 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5911 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5913 if test -n "$ac_tool_prefix"; then
5914 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5915 do
5916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_F77+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 if test -n "$F77"; then
5924 ac_cv_prog_F77="$F77" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 F77=$ac_cv_prog_F77
5944 if test -n "$F77"; then
5945 { echo "$as_me:$LINENO: result: $F77" >&5
5946 echo "${ECHO_T}$F77" >&6; }
5947 else
5948 { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5950 fi
5951
5952
5953 test -n "$F77" && break
5954 done
5955 fi
5956 if test -z "$F77"; then
5957 ac_ct_F77=$F77
5958 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5959 do
5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
5961 set dummy $ac_prog; ac_word=$2
5962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5964 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 if test -n "$ac_ct_F77"; then
5968 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_ac_ct_F77="$ac_prog"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5988 if test -n "$ac_ct_F77"; then
5989 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5990 echo "${ECHO_T}$ac_ct_F77" >&6; }
5991 else
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 test -n "$ac_ct_F77" && break
5998 done
5999
6000 if test "x$ac_ct_F77" = x; then
6001 F77=""
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6006 whose name does not start with the host triplet. If you think this
6007 configuration is useful to you, please write to [email protected]." >&5
6008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6009 whose name does not start with the host triplet. If you think this
6010 configuration is useful to you, please write to [email protected]." >&2;}
6011 ac_tool_warned=yes ;;
6012 esac
6013 F77=$ac_ct_F77
6014 fi
6015 fi
6016
6017
6018 # Provide some information about the compiler.
6019 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6020 ac_compiler=`set X $ac_compile; echo $2`
6021 { (ac_try="$ac_compiler --version >&5"
6022 case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compiler --version >&5") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6031 { (ac_try="$ac_compiler -v >&5"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compiler -v >&5") 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }
6041 { (ac_try="$ac_compiler -V >&5"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compiler -V >&5") 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }
6051 rm -f a.out
6052
6053 # If we don't use `.F' as extension, the preprocessor is not run on the
6054 # input file. (Note that this only needs to work for GNU compilers.)
6055 ac_save_ext=$ac_ext
6056 ac_ext=F
6057 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6058 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6059 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 cat >conftest.$ac_ext <<_ACEOF
6063 program main
6064 #ifndef __GNUC__
6065 choke me
6066 #endif
6067
6068 end
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_f77_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest.$ac_objext; then
6087 ac_compiler_gnu=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_compiler_gnu=no
6093 fi
6094
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6097
6098 fi
6099 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6100 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6101 ac_ext=$ac_save_ext
6102 ac_test_FFLAGS=${FFLAGS+set}
6103 ac_save_FFLAGS=$FFLAGS
6104 FFLAGS=
6105 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6106 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_f77_g+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 FFLAGS=-g
6111 cat >conftest.$ac_ext <<_ACEOF
6112 program main
6113
6114 end
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (ac_try="$ac_compile"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_f77_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 ac_cv_prog_f77_g=yes
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_cv_prog_f77_g=no
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142
6143 fi
6144 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6145 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6146 if test "$ac_test_FFLAGS" = set; then
6147 FFLAGS=$ac_save_FFLAGS
6148 elif test $ac_cv_prog_f77_g = yes; then
6149 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6150 FFLAGS="-g -O2"
6151 else
6152 FFLAGS="-g"
6153 fi
6154 else
6155 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6156 FFLAGS="-O2"
6157 else
6158 FFLAGS=
6159 fi
6160 fi
6161
6162 G77=`test $ac_compiler_gnu = yes && echo yes`
6163 ac_ext=c
6164 ac_cpp='$CPP $CPPFLAGS'
6165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168
6169
6170
6171 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6172
6173 # find the maximum length of command line arguments
6174 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6175 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6176 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 i=0
6180 teststring="ABCD"
6181
6182 case $build_os in
6183 msdosdjgpp*)
6184 # On DJGPP, this test can blow up pretty badly due to problems in libc
6185 # (any single argument exceeding 2000 bytes causes a buffer overrun
6186 # during glob expansion). Even if it were fixed, the result of this
6187 # check would be larger than it should be.
6188 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6189 ;;
6190
6191 gnu*)
6192 # Under GNU Hurd, this test is not required because there is
6193 # no limit to the length of command line arguments.
6194 # Libtool will interpret -1 as no limit whatsoever
6195 lt_cv_sys_max_cmd_len=-1;
6196 ;;
6197
6198 cygwin* | mingw*)
6199 # On Win9x/ME, this test blows up -- it succeeds, but takes
6200 # about 5 minutes as the teststring grows exponentially.
6201 # Worse, since 9x/ME are not pre-emptively multitasking,
6202 # you end up with a "frozen" computer, even though with patience
6203 # the test eventually succeeds (with a max line length of 256k).
6204 # Instead, let's just punt: use the minimum linelength reported by
6205 # all of the supported platforms: 8192 (on NT/2K/XP).
6206 lt_cv_sys_max_cmd_len=8192;
6207 ;;
6208
6209 amigaos*)
6210 # On AmigaOS with pdksh, this test takes hours, literally.
6211 # So we just punt and use a minimum line length of 8192.
6212 lt_cv_sys_max_cmd_len=8192;
6213 ;;
6214
6215 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6216 # This has been around since 386BSD, at least. Likely further.
6217 if test -x /sbin/sysctl; then
6218 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6219 elif test -x /usr/sbin/sysctl; then
6220 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6221 else
6222 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6223 fi
6224 # And add a safety zone
6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6227 ;;
6228
6229 interix*)
6230 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6231 lt_cv_sys_max_cmd_len=196608
6232 ;;
6233
6234 osf*)
6235 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6236 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6237 # nice to cause kernel panics so lets avoid the loop below.
6238 # First set a reasonable default.
6239 lt_cv_sys_max_cmd_len=16384
6240 #
6241 if test -x /sbin/sysconfig; then
6242 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6243 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6244 esac
6245 fi
6246 ;;
6247 sco3.2v5*)
6248 lt_cv_sys_max_cmd_len=102400
6249 ;;
6250 sysv5* | sco5v6* | sysv4.2uw2*)
6251 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6252 if test -n "$kargmax"; then
6253 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6254 else
6255 lt_cv_sys_max_cmd_len=32768
6256 fi
6257 ;;
6258 *)
6259 # If test is not a shell built-in, we'll probably end up computing a
6260 # maximum length that is only half of the actual maximum length, but
6261 # we can't tell.
6262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6263 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6264 = "XX$teststring") >/dev/null 2>&1 &&
6265 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6266 lt_cv_sys_max_cmd_len=$new_result &&
6267 test $i != 17 # 1/2 MB should be enough
6268 do
6269 i=`expr $i + 1`
6270 teststring=$teststring$teststring
6271 done
6272 teststring=
6273 # Add a significant safety factor because C++ compilers can tack on massive
6274 # amounts of additional arguments before passing them to the linker.
6275 # It appears as though 1/2 is a usable value.
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6277 ;;
6278 esac
6279
6280 fi
6281
6282 if test -n $lt_cv_sys_max_cmd_len ; then
6283 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6284 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6285 else
6286 { echo "$as_me:$LINENO: result: none" >&5
6287 echo "${ECHO_T}none" >&6; }
6288 fi
6289
6290
6291
6292
6293 # Check for command to grab the raw symbol name followed by C symbol from nm.
6294 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6295 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6296 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299
6300 # These are sane defaults that work on at least a few old systems.
6301 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6302
6303 # Character class describing NM global symbol codes.
6304 symcode='[BCDEGRST]'
6305
6306 # Regexp to match symbols that can be accessed directly from C.
6307 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6308
6309 # Transform an extracted symbol line into a proper C declaration
6310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6311
6312 # Transform an extracted symbol line into symbol name and symbol address
6313 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6314
6315 # Define system-specific variables.
6316 case $host_os in
6317 aix*)
6318 symcode='[BCDT]'
6319 ;;
6320 cygwin* | mingw* | pw32*)
6321 symcode='[ABCDGISTW]'
6322 ;;
6323 hpux*) # Its linker distinguishes data from code symbols
6324 if test "$host_cpu" = ia64; then
6325 symcode='[ABCDEGRST]'
6326 fi
6327 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6328 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6329 ;;
6330 linux* | k*bsd*-gnu)
6331 if test "$host_cpu" = ia64; then
6332 symcode='[ABCDGIRSTW]'
6333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6334 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6335 fi
6336 ;;
6337 irix* | nonstopux*)
6338 symcode='[BCDEGRST]'
6339 ;;
6340 osf*)
6341 symcode='[BCDEGQRST]'
6342 ;;
6343 solaris*)
6344 symcode='[BDRT]'
6345 ;;
6346 sco3.2v5*)
6347 symcode='[DT]'
6348 ;;
6349 sysv4.2uw2*)
6350 symcode='[DT]'
6351 ;;
6352 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6353 symcode='[ABDT]'
6354 ;;
6355 sysv4)
6356 symcode='[DFNSTU]'
6357 ;;
6358 esac
6359
6360 # Handle CRLF in mingw tool chain
6361 opt_cr=
6362 case $build_os in
6363 mingw*)
6364 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6365 ;;
6366 esac
6367
6368 # If we're using GNU nm, then use its standard symbol codes.
6369 case `$NM -V 2>&1` in
6370 *GNU* | *'with BFD'*)
6371 symcode='[ABCDGIRSTW]' ;;
6372 esac
6373
6374 # Try without a prefix undercore, then with it.
6375 for ac_symprfx in "" "_"; do
6376
6377 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6378 symxfrm="\\1 $ac_symprfx\\2 \\2"
6379
6380 # Write the raw and C identifiers.
6381 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6382
6383 # Check to see that the pipe works correctly.
6384 pipe_works=no
6385
6386 rm -f conftest*
6387 cat > conftest.$ac_ext <<EOF
6388 #ifdef __cplusplus
6389 extern "C" {
6390 #endif
6391 char nm_test_var;
6392 void nm_test_func(){}
6393 #ifdef __cplusplus
6394 }
6395 #endif
6396 int main(){nm_test_var='a';nm_test_func();return(0);}
6397 EOF
6398
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; then
6404 # Now try to grab the symbols.
6405 nlist=conftest.nm
6406 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6407 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && test -s "$nlist"; then
6411 # Try sorting and uniquifying the output.
6412 if sort "$nlist" | uniq > "$nlist"T; then
6413 mv -f "$nlist"T "$nlist"
6414 else
6415 rm -f "$nlist"T
6416 fi
6417
6418 # Make sure that we snagged all the symbols we need.
6419 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6420 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6421 cat <<EOF > conftest.$ac_ext
6422 #ifdef __cplusplus
6423 extern "C" {
6424 #endif
6425
6426 EOF
6427 # Now generate the symbol file.
6428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6429
6430 cat <<EOF >> conftest.$ac_ext
6431 #if defined (__STDC__) && __STDC__
6432 # define lt_ptr_t void *
6433 #else
6434 # define lt_ptr_t char *
6435 # define const
6436 #endif
6437
6438 /* The mapping between symbol names and symbols. */
6439 const struct {
6440 const char *name;
6441 lt_ptr_t address;
6442 }
6443 lt_preloaded_symbols[] =
6444 {
6445 EOF
6446 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6447 cat <<\EOF >> conftest.$ac_ext
6448 {0, (lt_ptr_t) 0}
6449 };
6450
6451 #ifdef __cplusplus
6452 }
6453 #endif
6454 EOF
6455 # Now try linking the two files.
6456 mv conftest.$ac_objext conftstm.$ac_objext
6457 lt_save_LIBS="$LIBS"
6458 lt_save_CFLAGS="$CFLAGS"
6459 LIBS="conftstm.$ac_objext"
6460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6466 pipe_works=yes
6467 fi
6468 LIBS="$lt_save_LIBS"
6469 CFLAGS="$lt_save_CFLAGS"
6470 else
6471 echo "cannot find nm_test_func in $nlist" >&5
6472 fi
6473 else
6474 echo "cannot find nm_test_var in $nlist" >&5
6475 fi
6476 else
6477 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6478 fi
6479 else
6480 echo "$progname: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6482 fi
6483 rm -f conftest* conftst*
6484
6485 # Do not use the global_symbol_pipe unless it works.
6486 if test "$pipe_works" = yes; then
6487 break
6488 else
6489 lt_cv_sys_global_symbol_pipe=
6490 fi
6491 done
6492
6493 fi
6494
6495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6496 lt_cv_sys_global_symbol_to_cdecl=
6497 fi
6498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6499 { echo "$as_me:$LINENO: result: failed" >&5
6500 echo "${ECHO_T}failed" >&6; }
6501 else
6502 { echo "$as_me:$LINENO: result: ok" >&5
6503 echo "${ECHO_T}ok" >&6; }
6504 fi
6505
6506 { echo "$as_me:$LINENO: checking for objdir" >&5
6507 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6508 if test "${lt_cv_objdir+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 rm -f .libs 2>/dev/null
6512 mkdir .libs 2>/dev/null
6513 if test -d .libs; then
6514 lt_cv_objdir=.libs
6515 else
6516 # MS-DOS does not allow filenames that begin with a dot.
6517 lt_cv_objdir=_libs
6518 fi
6519 rmdir .libs 2>/dev/null
6520 fi
6521 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6522 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6523 objdir=$lt_cv_objdir
6524
6525
6526
6527
6528
6529 case $host_os in
6530 aix3*)
6531 # AIX sometimes has problems with the GCC collect2 program. For some
6532 # reason, if we set the COLLECT_NAMES environment variable, the problems
6533 # vanish in a puff of smoke.
6534 if test "X${COLLECT_NAMES+set}" != Xset; then
6535 COLLECT_NAMES=
6536 export COLLECT_NAMES
6537 fi
6538 ;;
6539 esac
6540
6541 # Sed substitution that helps us do robust quoting. It backslashifies
6542 # metacharacters that are still active within double-quoted strings.
6543 Xsed='sed -e 1s/^X//'
6544 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6545
6546 # Same as above, but do not quote variable references.
6547 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6548
6549 # Sed substitution to delay expansion of an escaped shell variable in a
6550 # double_quote_subst'ed string.
6551 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6552
6553 # Sed substitution to avoid accidental globbing in evaled expressions
6554 no_glob_subst='s/\*/\\\*/g'
6555
6556 # Constants:
6557 rm="rm -f"
6558
6559 # Global variables:
6560 default_ofile=libtool
6561 can_build_shared=yes
6562
6563 # All known linkers require a `.a' archive for static linking (except MSVC,
6564 # which needs '.lib').
6565 libext=a
6566 ltmain="$ac_aux_dir/ltmain.sh"
6567 ofile="$default_ofile"
6568 with_gnu_ld="$lt_cv_prog_gnu_ld"
6569
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_AR+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 if test -n "$AR"; then
6579 ac_cv_prog_AR="$AR" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_AR="${ac_tool_prefix}ar"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 AR=$ac_cv_prog_AR
6599 if test -n "$AR"; then
6600 { echo "$as_me:$LINENO: result: $AR" >&5
6601 echo "${ECHO_T}$AR" >&6; }
6602 else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_AR"; then
6610 ac_ct_AR=$AR
6611 # Extract the first word of "ar", so it can be a program name with args.
6612 set dummy ar; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 if test -n "$ac_ct_AR"; then
6619 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_AR="ar"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6639 if test -n "$ac_ct_AR"; then
6640 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6641 echo "${ECHO_T}$ac_ct_AR" >&6; }
6642 else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647 if test "x$ac_ct_AR" = x; then
6648 AR="false"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to [email protected]." >&5
6655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet. If you think this
6657 configuration is useful to you, please write to [email protected]." >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 AR=$ac_ct_AR
6661 fi
6662 else
6663 AR="$ac_cv_prog_AR"
6664 fi
6665
6666 if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_prog_RANLIB+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 if test -n "$RANLIB"; then
6675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 RANLIB=$ac_cv_prog_RANLIB
6695 if test -n "$RANLIB"; then
6696 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6697 echo "${ECHO_T}$RANLIB" >&6; }
6698 else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704 fi
6705 if test -z "$ac_cv_prog_RANLIB"; then
6706 ac_ct_RANLIB=$RANLIB
6707 # Extract the first word of "ranlib", so it can be a program name with args.
6708 set dummy ranlib; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 if test -n "$ac_ct_RANLIB"; then
6715 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_ac_ct_RANLIB="ranlib"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6735 if test -n "$ac_ct_RANLIB"; then
6736 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6737 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6738 else
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6741 fi
6742
6743 if test "x$ac_ct_RANLIB" = x; then
6744 RANLIB=":"
6745 else
6746 case $cross_compiling:$ac_tool_warned in
6747 yes:)
6748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6749 whose name does not start with the host triplet. If you think this
6750 configuration is useful to you, please write to [email protected]." >&5
6751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6752 whose name does not start with the host triplet. If you think this
6753 configuration is useful to you, please write to [email protected]." >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756 RANLIB=$ac_ct_RANLIB
6757 fi
6758 else
6759 RANLIB="$ac_cv_prog_RANLIB"
6760 fi
6761
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}strip; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_prog_STRIP+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770 if test -n "$STRIP"; then
6771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 STRIP=$ac_cv_prog_STRIP
6791 if test -n "$STRIP"; then
6792 { echo "$as_me:$LINENO: result: $STRIP" >&5
6793 echo "${ECHO_T}$STRIP" >&6; }
6794 else
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$ac_cv_prog_STRIP"; then
6802 ac_ct_STRIP=$STRIP
6803 # Extract the first word of "strip", so it can be a program name with args.
6804 set dummy strip; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 if test -n "$ac_ct_STRIP"; then
6811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_prog_ac_ct_STRIP="strip"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826 IFS=$as_save_IFS
6827
6828 fi
6829 fi
6830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6831 if test -n "$ac_ct_STRIP"; then
6832 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6833 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6834 else
6835 { echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6; }
6837 fi
6838
6839 if test "x$ac_ct_STRIP" = x; then
6840 STRIP=":"
6841 else
6842 case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6845 whose name does not start with the host triplet. If you think this
6846 configuration is useful to you, please write to [email protected]." >&5
6847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6848 whose name does not start with the host triplet. If you think this
6849 configuration is useful to you, please write to [email protected]." >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 STRIP=$ac_ct_STRIP
6853 fi
6854 else
6855 STRIP="$ac_cv_prog_STRIP"
6856 fi
6857
6858
6859 old_CC="$CC"
6860 old_CFLAGS="$CFLAGS"
6861
6862 # Set sane defaults for various variables
6863 test -z "$AR" && AR=ar
6864 test -z "$AR_FLAGS" && AR_FLAGS=cru
6865 test -z "$AS" && AS=as
6866 test -z "$CC" && CC=cc
6867 test -z "$LTCC" && LTCC=$CC
6868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6869 test -z "$DLLTOOL" && DLLTOOL=dlltool
6870 test -z "$LD" && LD=ld
6871 test -z "$LN_S" && LN_S="ln -s"
6872 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6873 test -z "$NM" && NM=nm
6874 test -z "$SED" && SED=sed
6875 test -z "$OBJDUMP" && OBJDUMP=objdump
6876 test -z "$RANLIB" && RANLIB=:
6877 test -z "$STRIP" && STRIP=:
6878 test -z "$ac_objext" && ac_objext=o
6879
6880 # Determine commands to create old-style static archives.
6881 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6882 old_postinstall_cmds='chmod 644 $oldlib'
6883 old_postuninstall_cmds=
6884
6885 if test -n "$RANLIB"; then
6886 case $host_os in
6887 openbsd*)
6888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6889 ;;
6890 *)
6891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6892 ;;
6893 esac
6894 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6895 fi
6896
6897 for cc_temp in $compiler""; do
6898 case $cc_temp in
6899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6901 \-*) ;;
6902 *) break;;
6903 esac
6904 done
6905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6906
6907
6908 # Only perform the check for file, if the check method requires it
6909 case $deplibs_check_method in
6910 file_magic*)
6911 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6912 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6913 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 case $MAGIC_CMD in
6918 [\\/*] | ?:[\\/]*)
6919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6920 ;;
6921 *)
6922 lt_save_MAGIC_CMD="$MAGIC_CMD"
6923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6925 for ac_dir in $ac_dummy; do
6926 IFS="$lt_save_ifs"
6927 test -z "$ac_dir" && ac_dir=.
6928 if test -f $ac_dir/${ac_tool_prefix}file; then
6929 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6930 if test -n "$file_magic_test_file"; then
6931 case $deplibs_check_method in
6932 "file_magic "*)
6933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6936 $EGREP "$file_magic_regex" > /dev/null; then
6937 :
6938 else
6939 cat <<EOF 1>&2
6940
6941 *** Warning: the command libtool uses to detect shared libraries,
6942 *** $file_magic_cmd, produces output that libtool cannot recognize.
6943 *** The result is that libtool may fail to recognize shared libraries
6944 *** as such. This will affect the creation of libtool libraries that
6945 *** depend on shared libraries, but programs linked with such libtool
6946 *** libraries will work regardless of this problem. Nevertheless, you
6947 *** may want to report the problem to your system manager and/or to
6948 *** [email protected]
6949
6950 EOF
6951 fi ;;
6952 esac
6953 fi
6954 break
6955 fi
6956 done
6957 IFS="$lt_save_ifs"
6958 MAGIC_CMD="$lt_save_MAGIC_CMD"
6959 ;;
6960 esac
6961 fi
6962
6963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6964 if test -n "$MAGIC_CMD"; then
6965 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6966 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6967 else
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6970 fi
6971
6972 if test -z "$lt_cv_path_MAGIC_CMD"; then
6973 if test -n "$ac_tool_prefix"; then
6974 { echo "$as_me:$LINENO: checking for file" >&5
6975 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 case $MAGIC_CMD in
6980 [\\/*] | ?:[\\/]*)
6981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6982 ;;
6983 *)
6984 lt_save_MAGIC_CMD="$MAGIC_CMD"
6985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6987 for ac_dir in $ac_dummy; do
6988 IFS="$lt_save_ifs"
6989 test -z "$ac_dir" && ac_dir=.
6990 if test -f $ac_dir/file; then
6991 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6992 if test -n "$file_magic_test_file"; then
6993 case $deplibs_check_method in
6994 "file_magic "*)
6995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6998 $EGREP "$file_magic_regex" > /dev/null; then
6999 :
7000 else
7001 cat <<EOF 1>&2
7002
7003 *** Warning: the command libtool uses to detect shared libraries,
7004 *** $file_magic_cmd, produces output that libtool cannot recognize.
7005 *** The result is that libtool may fail to recognize shared libraries
7006 *** as such. This will affect the creation of libtool libraries that
7007 *** depend on shared libraries, but programs linked with such libtool
7008 *** libraries will work regardless of this problem. Nevertheless, you
7009 *** may want to report the problem to your system manager and/or to
7010 *** [email protected]
7011
7012 EOF
7013 fi ;;
7014 esac
7015 fi
7016 break
7017 fi
7018 done
7019 IFS="$lt_save_ifs"
7020 MAGIC_CMD="$lt_save_MAGIC_CMD"
7021 ;;
7022 esac
7023 fi
7024
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if test -n "$MAGIC_CMD"; then
7027 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7029 else
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7032 fi
7033
7034 else
7035 MAGIC_CMD=:
7036 fi
7037 fi
7038
7039 fi
7040 ;;
7041 esac
7042
7043 enable_dlopen=no
7044 enable_win32_dll=no
7045
7046 # Check whether --enable-libtool-lock was given.
7047 if test "${enable_libtool_lock+set}" = set; then
7048 enableval=$enable_libtool_lock;
7049 fi
7050
7051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7052
7053
7054 # Check whether --with-pic was given.
7055 if test "${with_pic+set}" = set; then
7056 withval=$with_pic; pic_mode="$withval"
7057 else
7058 pic_mode=default
7059 fi
7060
7061 test -z "$pic_mode" && pic_mode=default
7062
7063 # Use C for the default configuration in the libtool script
7064 tagname=
7065 lt_save_CC="$CC"
7066 ac_ext=c
7067 ac_cpp='$CPP $CPPFLAGS'
7068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071
7072
7073 # Source file extension for C test sources.
7074 ac_ext=c
7075
7076 # Object file extension for compiled C test sources.
7077 objext=o
7078 objext=$objext
7079
7080 # Code to be used in simple compile tests
7081 lt_simple_compile_test_code="int some_variable = 0;\n"
7082
7083 # Code to be used in simple link tests
7084 lt_simple_link_test_code='int main(){return(0);}\n'
7085
7086
7087 # If no C compiler was specified, use CC.
7088 LTCC=${LTCC-"$CC"}
7089
7090 # If no C compiler flags were specified, use CFLAGS.
7091 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7092
7093 # Allow CC to be a program name with arguments.
7094 compiler=$CC
7095
7096
7097 # save warnings/boilerplate of simple test code
7098 ac_outfile=conftest.$ac_objext
7099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7101 _lt_compiler_boilerplate=`cat conftest.err`
7102 $rm conftest*
7103
7104 ac_outfile=conftest.$ac_objext
7105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7107 _lt_linker_boilerplate=`cat conftest.err`
7108 $rm conftest*
7109
7110
7111
7112 lt_prog_compiler_no_builtin_flag=
7113
7114 if test "$GCC" = yes; then
7115 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7116
7117
7118 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7119 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7120 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 lt_cv_prog_compiler_rtti_exceptions=no
7124 ac_outfile=conftest.$ac_objext
7125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7126 lt_compiler_flag="-fno-rtti -fno-exceptions"
7127 # Insert the option either (1) after the last *FLAGS variable, or
7128 # (2) before a word containing "conftest.", or (3) at the end.
7129 # Note that $ac_compile itself does not contain backslashes and begins
7130 # with a dollar sign (not a hyphen), so the echo should work correctly.
7131 # The option is referenced via a variable to avoid confusing sed.
7132 lt_compile=`echo "$ac_compile" | $SED \
7133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7135 -e 's:$: $lt_compiler_flag:'`
7136 (eval echo "\"\$as_me:7136: $lt_compile\"" >&5)
7137 (eval "$lt_compile" 2>conftest.err)
7138 ac_status=$?
7139 cat conftest.err >&5
7140 echo "$as_me:7140: \$? = $ac_status" >&5
7141 if (exit $ac_status) && test -s "$ac_outfile"; then
7142 # The compiler can only warn and ignore the option if not recognized
7143 # So say no if there are warnings other than the usual output.
7144 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7147 lt_cv_prog_compiler_rtti_exceptions=yes
7148 fi
7149 fi
7150 $rm conftest*
7151
7152 fi
7153 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7154 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7155
7156 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7157 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7158 else
7159 :
7160 fi
7161
7162 fi
7163
7164 lt_prog_compiler_wl=
7165 lt_prog_compiler_pic=
7166 lt_prog_compiler_static=
7167
7168 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7169 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7170
7171 if test "$GCC" = yes; then
7172 lt_prog_compiler_wl='-Wl,'
7173 lt_prog_compiler_static='-static'
7174
7175 case $host_os in
7176 aix*)
7177 # All AIX code is PIC.
7178 if test "$host_cpu" = ia64; then
7179 # AIX 5 now supports IA64 processor
7180 lt_prog_compiler_static='-Bstatic'
7181 fi
7182 ;;
7183
7184 amigaos*)
7185 # FIXME: we need at least 68020 code to build shared libraries, but
7186 # adding the `-m68020' flag to GCC prevents building anything better,
7187 # like `-m68040'.
7188 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7189 ;;
7190
7191 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7192 # PIC is the default for these OSes.
7193 ;;
7194
7195 mingw* | pw32* | os2*)
7196 # This hack is so that the source file can tell whether it is being
7197 # built for inclusion in a dll (and should export symbols for example).
7198 lt_prog_compiler_pic='-DDLL_EXPORT'
7199 ;;
7200
7201 darwin* | rhapsody*)
7202 # PIC is the default on this platform
7203 # Common symbols not allowed in MH_DYLIB files
7204 lt_prog_compiler_pic='-fno-common'
7205 ;;
7206
7207 interix3*)
7208 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7209 # Instead, we relocate shared libraries at runtime.
7210 ;;
7211
7212 msdosdjgpp*)
7213 # Just because we use GCC doesn't mean we suddenly get shared libraries
7214 # on systems that don't support them.
7215 lt_prog_compiler_can_build_shared=no
7216 enable_shared=no
7217 ;;
7218
7219 sysv4*MP*)
7220 if test -d /usr/nec; then
7221 lt_prog_compiler_pic=-Kconform_pic
7222 fi
7223 ;;
7224
7225 hpux*)
7226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7227 # not for PA HP-UX.
7228 case $host_cpu in
7229 hppa*64*|ia64*)
7230 # +Z the default
7231 ;;
7232 *)
7233 lt_prog_compiler_pic='-fPIC'
7234 ;;
7235 esac
7236 ;;
7237
7238 *)
7239 lt_prog_compiler_pic='-fPIC'
7240 ;;
7241 esac
7242 else
7243 # PORTME Check for flag to pass linker flags through the system compiler.
7244 case $host_os in
7245 aix*)
7246 lt_prog_compiler_wl='-Wl,'
7247 if test "$host_cpu" = ia64; then
7248 # AIX 5 now supports IA64 processor
7249 lt_prog_compiler_static='-Bstatic'
7250 else
7251 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7252 fi
7253 ;;
7254 darwin*)
7255 # PIC is the default on this platform
7256 # Common symbols not allowed in MH_DYLIB files
7257 case $cc_basename in
7258 xlc*)
7259 lt_prog_compiler_pic='-qnocommon'
7260 lt_prog_compiler_wl='-Wl,'
7261 ;;
7262 esac
7263 ;;
7264
7265 mingw* | pw32* | os2*)
7266 # This hack is so that the source file can tell whether it is being
7267 # built for inclusion in a dll (and should export symbols for example).
7268 lt_prog_compiler_pic='-DDLL_EXPORT'
7269 ;;
7270
7271 hpux9* | hpux10* | hpux11*)
7272 lt_prog_compiler_wl='-Wl,'
7273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7274 # not for PA HP-UX.
7275 case $host_cpu in
7276 hppa*64*|ia64*)
7277 # +Z the default
7278 ;;
7279 *)
7280 lt_prog_compiler_pic='+Z'
7281 ;;
7282 esac
7283 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7284 lt_prog_compiler_static='${wl}-a ${wl}archive'
7285 ;;
7286
7287 irix5* | irix6* | nonstopux*)
7288 lt_prog_compiler_wl='-Wl,'
7289 # PIC (with -KPIC) is the default.
7290 lt_prog_compiler_static='-non_shared'
7291 ;;
7292
7293 newsos6)
7294 lt_prog_compiler_pic='-KPIC'
7295 lt_prog_compiler_static='-Bstatic'
7296 ;;
7297
7298 linux* | k*bsd*-gnu)
7299 case $cc_basename in
7300 icc* | ecc*)
7301 lt_prog_compiler_wl='-Wl,'
7302 lt_prog_compiler_pic='-KPIC'
7303 lt_prog_compiler_static='-static'
7304 ;;
7305 pgcc* | pgf77* | pgf90* | pgf95*)
7306 # Portland Group compilers (*not* the Pentium gcc compiler,
7307 # which looks to be a dead project)
7308 lt_prog_compiler_wl='-Wl,'
7309 lt_prog_compiler_pic='-fpic'
7310 lt_prog_compiler_static='-Bstatic'
7311 ;;
7312 ccc*)
7313 lt_prog_compiler_wl='-Wl,'
7314 # All Alpha code is PIC.
7315 lt_prog_compiler_static='-non_shared'
7316 ;;
7317 esac
7318 ;;
7319
7320 osf3* | osf4* | osf5*)
7321 lt_prog_compiler_wl='-Wl,'
7322 # All OSF/1 code is PIC.
7323 lt_prog_compiler_static='-non_shared'
7324 ;;
7325
7326 solaris*)
7327 lt_prog_compiler_pic='-KPIC'
7328 lt_prog_compiler_static='-Bstatic'
7329 case $cc_basename in
7330 f77* | f90* | f95*)
7331 lt_prog_compiler_wl='-Qoption ld ';;
7332 *)
7333 lt_prog_compiler_wl='-Wl,';;
7334 esac
7335 ;;
7336
7337 sunos4*)
7338 lt_prog_compiler_wl='-Qoption ld '
7339 lt_prog_compiler_pic='-PIC'
7340 lt_prog_compiler_static='-Bstatic'
7341 ;;
7342
7343 sysv4 | sysv4.2uw2* | sysv4.3*)
7344 lt_prog_compiler_wl='-Wl,'
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7347 ;;
7348
7349 sysv4*MP*)
7350 if test -d /usr/nec ;then
7351 lt_prog_compiler_pic='-Kconform_pic'
7352 lt_prog_compiler_static='-Bstatic'
7353 fi
7354 ;;
7355
7356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7357 lt_prog_compiler_wl='-Wl,'
7358 lt_prog_compiler_pic='-KPIC'
7359 lt_prog_compiler_static='-Bstatic'
7360 ;;
7361
7362 unicos*)
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_can_build_shared=no
7365 ;;
7366
7367 uts4*)
7368 lt_prog_compiler_pic='-pic'
7369 lt_prog_compiler_static='-Bstatic'
7370 ;;
7371
7372 *)
7373 lt_prog_compiler_can_build_shared=no
7374 ;;
7375 esac
7376 fi
7377
7378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7379 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7380
7381 #
7382 # Check to make sure the PIC flag actually works.
7383 #
7384 if test -n "$lt_prog_compiler_pic"; then
7385
7386 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7387 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7388 if test "${lt_prog_compiler_pic_works+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 lt_prog_compiler_pic_works=no
7392 ac_outfile=conftest.$ac_objext
7393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7394 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7395 # Insert the option either (1) after the last *FLAGS variable, or
7396 # (2) before a word containing "conftest.", or (3) at the end.
7397 # Note that $ac_compile itself does not contain backslashes and begins
7398 # with a dollar sign (not a hyphen), so the echo should work correctly.
7399 # The option is referenced via a variable to avoid confusing sed.
7400 lt_compile=`echo "$ac_compile" | $SED \
7401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7403 -e 's:$: $lt_compiler_flag:'`
7404 (eval echo "\"\$as_me:7404: $lt_compile\"" >&5)
7405 (eval "$lt_compile" 2>conftest.err)
7406 ac_status=$?
7407 cat conftest.err >&5
7408 echo "$as_me:7408: \$? = $ac_status" >&5
7409 if (exit $ac_status) && test -s "$ac_outfile"; then
7410 # The compiler can only warn and ignore the option if not recognized
7411 # So say no if there are warnings other than the usual output.
7412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7415 lt_prog_compiler_pic_works=yes
7416 fi
7417 fi
7418 $rm conftest*
7419
7420 fi
7421 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7422 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7423
7424 if test x"$lt_prog_compiler_pic_works" = xyes; then
7425 case $lt_prog_compiler_pic in
7426 "" | " "*) ;;
7427 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7428 esac
7429 else
7430 lt_prog_compiler_pic=
7431 lt_prog_compiler_can_build_shared=no
7432 fi
7433
7434 fi
7435 case $host_os in
7436 # For platforms which do not support PIC, -DPIC is meaningless:
7437 *djgpp*)
7438 lt_prog_compiler_pic=
7439 ;;
7440 *)
7441 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7442 ;;
7443 esac
7444
7445 #
7446 # Check to make sure the static flag actually works.
7447 #
7448 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7449 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7450 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7451 if test "${lt_prog_compiler_static_works+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 lt_prog_compiler_static_works=no
7455 save_LDFLAGS="$LDFLAGS"
7456 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7457 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7459 # The linker can only warn and ignore the option if not recognized
7460 # So say no if there are warnings
7461 if test -s conftest.err; then
7462 # Append any errors to the config.log.
7463 cat conftest.err 1>&5
7464 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7466 if diff conftest.exp conftest.er2 >/dev/null; then
7467 lt_prog_compiler_static_works=yes
7468 fi
7469 else
7470 lt_prog_compiler_static_works=yes
7471 fi
7472 fi
7473 $rm conftest*
7474 LDFLAGS="$save_LDFLAGS"
7475
7476 fi
7477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7478 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7479
7480 if test x"$lt_prog_compiler_static_works" = xyes; then
7481 :
7482 else
7483 lt_prog_compiler_static=
7484 fi
7485
7486
7487 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7488 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7489 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 lt_cv_prog_compiler_c_o=no
7493 $rm -r conftest 2>/dev/null
7494 mkdir conftest
7495 cd conftest
7496 mkdir out
7497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7498
7499 lt_compiler_flag="-o out/conftest2.$ac_objext"
7500 # Insert the option either (1) after the last *FLAGS variable, or
7501 # (2) before a word containing "conftest.", or (3) at the end.
7502 # Note that $ac_compile itself does not contain backslashes and begins
7503 # with a dollar sign (not a hyphen), so the echo should work correctly.
7504 lt_compile=`echo "$ac_compile" | $SED \
7505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7507 -e 's:$: $lt_compiler_flag:'`
7508 (eval echo "\"\$as_me:7508: $lt_compile\"" >&5)
7509 (eval "$lt_compile" 2>out/conftest.err)
7510 ac_status=$?
7511 cat out/conftest.err >&5
7512 echo "$as_me:7512: \$? = $ac_status" >&5
7513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7514 then
7515 # The compiler can only warn and ignore the option if not recognized
7516 # So say no if there are warnings
7517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7520 lt_cv_prog_compiler_c_o=yes
7521 fi
7522 fi
7523 chmod u+w . 2>&5
7524 $rm conftest*
7525 # SGI C++ compiler will create directory out/ii_files/ for
7526 # template instantiation
7527 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7528 $rm out/* && rmdir out
7529 cd ..
7530 rmdir conftest
7531 $rm conftest*
7532
7533 fi
7534 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7535 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7536
7537
7538 hard_links="nottested"
7539 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7540 # do not overwrite the value of need_locks provided by the user
7541 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7542 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7543 hard_links=yes
7544 $rm conftest*
7545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7546 touch conftest.a
7547 ln conftest.a conftest.b 2>&5 || hard_links=no
7548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7549 { echo "$as_me:$LINENO: result: $hard_links" >&5
7550 echo "${ECHO_T}$hard_links" >&6; }
7551 if test "$hard_links" = no; then
7552 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7553 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7554 need_locks=warn
7555 fi
7556 else
7557 need_locks=no
7558 fi
7559
7560 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7561 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7562
7563 runpath_var=
7564 allow_undefined_flag=
7565 enable_shared_with_static_runtimes=no
7566 archive_cmds=
7567 archive_expsym_cmds=
7568 old_archive_From_new_cmds=
7569 old_archive_from_expsyms_cmds=
7570 export_dynamic_flag_spec=
7571 whole_archive_flag_spec=
7572 thread_safe_flag_spec=
7573 hardcode_libdir_flag_spec=
7574 hardcode_libdir_flag_spec_ld=
7575 hardcode_libdir_separator=
7576 hardcode_direct=no
7577 hardcode_minus_L=no
7578 hardcode_shlibpath_var=unsupported
7579 link_all_deplibs=unknown
7580 hardcode_automatic=no
7581 module_cmds=
7582 module_expsym_cmds=
7583 always_export_symbols=no
7584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7585 # include_expsyms should be a list of space-separated symbols to be *always*
7586 # included in the symbol list
7587 include_expsyms=
7588 # exclude_expsyms can be an extended regexp of symbols to exclude
7589 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7590 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7591 # as well as any symbol that contains `d'.
7592 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7593 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7594 # platforms (ab)use it in PIC code, but their linkers get confused if
7595 # the symbol is explicitly referenced. Since portable code cannot
7596 # rely on this symbol name, it's probably fine to never include it in
7597 # preloaded symbol tables.
7598 extract_expsyms_cmds=
7599 # Just being paranoid about ensuring that cc_basename is set.
7600 for cc_temp in $compiler""; do
7601 case $cc_temp in
7602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7604 \-*) ;;
7605 *) break;;
7606 esac
7607 done
7608 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7609
7610 case $host_os in
7611 cygwin* | mingw* | pw32*)
7612 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7613 # When not using gcc, we currently assume that we are using
7614 # Microsoft Visual C++.
7615 if test "$GCC" != yes; then
7616 with_gnu_ld=no
7617 fi
7618 ;;
7619 interix*)
7620 # we just hope/assume this is gcc and not c89 (= MSVC++)
7621 with_gnu_ld=yes
7622 ;;
7623 openbsd*)
7624 with_gnu_ld=no
7625 ;;
7626 esac
7627
7628 ld_shlibs=yes
7629 if test "$with_gnu_ld" = yes; then
7630 # If archive_cmds runs LD, not CC, wlarc should be empty
7631 wlarc='${wl}'
7632
7633 # Set some defaults for GNU ld with shared library support. These
7634 # are reset later if shared libraries are not supported. Putting them
7635 # here allows them to be overridden if necessary.
7636 runpath_var=LD_RUN_PATH
7637 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7638 export_dynamic_flag_spec='${wl}--export-dynamic'
7639 # ancient GNU ld didn't support --whole-archive et. al.
7640 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7641 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7642 else
7643 whole_archive_flag_spec=
7644 fi
7645 supports_anon_versioning=no
7646 case `$LD -v 2>/dev/null` in
7647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7650 *\ 2.11.*) ;; # other 2.11 versions
7651 *) supports_anon_versioning=yes ;;
7652 esac
7653
7654 # See if GNU ld supports shared libraries.
7655 case $host_os in
7656 aix3* | aix4* | aix5*)
7657 # On AIX/PPC, the GNU linker is very broken
7658 if test "$host_cpu" != ia64; then
7659 ld_shlibs=no
7660 cat <<EOF 1>&2
7661
7662 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7663 *** to be unable to reliably create shared libraries on AIX.
7664 *** Therefore, libtool is disabling shared libraries support. If you
7665 *** really care for shared libraries, you may want to modify your PATH
7666 *** so that a non-GNU linker is found, and then restart.
7667
7668 EOF
7669 fi
7670 ;;
7671
7672 amigaos*)
7673 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)'
7674 hardcode_libdir_flag_spec='-L$libdir'
7675 hardcode_minus_L=yes
7676
7677 # Samuel A. Falvo II <[email protected]> reports
7678 # that the semantics of dynamic libraries on AmigaOS, at least up
7679 # to version 4, is to share data among multiple programs linked
7680 # with the same dynamic library. Since this doesn't match the
7681 # behavior of shared libraries on other platforms, we can't use
7682 # them.
7683 ld_shlibs=no
7684 ;;
7685
7686 beos*)
7687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7688 allow_undefined_flag=unsupported
7689 # Joseph Beckenbach <[email protected]> says some releases of gcc
7690 # support --undefined. This deserves some investigation. FIXME
7691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692 else
7693 ld_shlibs=no
7694 fi
7695 ;;
7696
7697 cygwin* | mingw* | pw32*)
7698 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7699 # as there is no search path for DLLs.
7700 hardcode_libdir_flag_spec='-L$libdir'
7701 allow_undefined_flag=unsupported
7702 always_export_symbols=no
7703 enable_shared_with_static_runtimes=yes
7704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7705
7706 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7708 # If the export-symbols file already is a .def file (1st line
7709 # is EXPORTS), use it as is; otherwise, prepend...
7710 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7711 cp $export_symbols $output_objdir/$soname.def;
7712 else
7713 echo EXPORTS > $output_objdir/$soname.def;
7714 cat $export_symbols >> $output_objdir/$soname.def;
7715 fi~
7716 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7717 else
7718 ld_shlibs=no
7719 fi
7720 ;;
7721
7722 interix3*)
7723 hardcode_direct=no
7724 hardcode_shlibpath_var=no
7725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7726 export_dynamic_flag_spec='${wl}-E'
7727 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7728 # Instead, shared libraries are loaded at an image base (0x10000000 by
7729 # default) and relocated if they conflict, which is a slow very memory
7730 # consuming and fragmenting process. To avoid this, we pick a random,
7731 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7732 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7734 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'
7735 ;;
7736
7737 linux* | k*bsd*-gnu)
7738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7739 tmp_addflag=
7740 case $cc_basename,$host_cpu in
7741 pgcc*) # Portland Group C compiler
7742 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'
7743 tmp_addflag=' $pic_flag'
7744 ;;
7745 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7746 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'
7747 tmp_addflag=' $pic_flag -Mnomain' ;;
7748 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7749 tmp_addflag=' -i_dynamic' ;;
7750 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7751 tmp_addflag=' -i_dynamic -nofor_main' ;;
7752 ifc* | ifort*) # Intel Fortran compiler
7753 tmp_addflag=' -nofor_main' ;;
7754 esac
7755 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756
7757 if test $supports_anon_versioning = yes; then
7758 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7760 $echo "local: *; };" >> $output_objdir/$libname.ver~
7761 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7762 fi
7763 link_all_deplibs=no
7764 else
7765 ld_shlibs=no
7766 fi
7767 ;;
7768
7769 netbsd* | netbsdelf*-gnu)
7770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7771 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7772 wlarc=
7773 else
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7776 fi
7777 ;;
7778
7779 solaris*)
7780 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7781 ld_shlibs=no
7782 cat <<EOF 1>&2
7783
7784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7785 *** create shared libraries on Solaris systems. Therefore, libtool
7786 *** is disabling shared libraries support. We urge you to upgrade GNU
7787 *** binutils to release 2.9.1 or newer. Another option is to modify
7788 *** your PATH or compiler configuration so that the native linker is
7789 *** used, and then restart.
7790
7791 EOF
7792 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7795 else
7796 ld_shlibs=no
7797 fi
7798 ;;
7799
7800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7801 case `$LD -v 2>&1` in
7802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7803 ld_shlibs=no
7804 cat <<_LT_EOF 1>&2
7805
7806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7807 *** reliably create shared libraries on SCO systems. Therefore, libtool
7808 *** is disabling shared libraries support. We urge you to upgrade GNU
7809 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7810 *** your PATH or compiler configuration so that the native linker is
7811 *** used, and then restart.
7812
7813 _LT_EOF
7814 ;;
7815 *)
7816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7817 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7820 else
7821 ld_shlibs=no
7822 fi
7823 ;;
7824 esac
7825 ;;
7826
7827 sunos4*)
7828 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7829 wlarc=
7830 hardcode_direct=yes
7831 hardcode_shlibpath_var=no
7832 ;;
7833
7834 *)
7835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7838 else
7839 ld_shlibs=no
7840 fi
7841 ;;
7842 esac
7843
7844 if test "$ld_shlibs" = no; then
7845 runpath_var=
7846 hardcode_libdir_flag_spec=
7847 export_dynamic_flag_spec=
7848 whole_archive_flag_spec=
7849 fi
7850 else
7851 # PORTME fill in a description of your system's linker (not GNU ld)
7852 case $host_os in
7853 aix3*)
7854 allow_undefined_flag=unsupported
7855 always_export_symbols=yes
7856 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'
7857 # Note: this linker hardcodes the directories in LIBPATH if there
7858 # are no directories specified by -L.
7859 hardcode_minus_L=yes
7860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7861 # Neither direct hardcoding nor static linking is supported with a
7862 # broken collect2.
7863 hardcode_direct=unsupported
7864 fi
7865 ;;
7866
7867 aix4* | aix5*)
7868 if test "$host_cpu" = ia64; then
7869 # On IA64, the linker does run time linking by default, so we don't
7870 # have to do anything special.
7871 aix_use_runtimelinking=no
7872 exp_sym_flag='-Bexport'
7873 no_entry_flag=""
7874 else
7875 # If we're using GNU nm, then we don't want the "-C" option.
7876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7877 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7878 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'
7879 else
7880 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'
7881 fi
7882 aix_use_runtimelinking=no
7883
7884 # Test if we are trying to use run time linking or normal
7885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7886 # need to do runtime linking.
7887 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7888 for ld_flag in $LDFLAGS; do
7889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7890 aix_use_runtimelinking=yes
7891 break
7892 fi
7893 done
7894 ;;
7895 esac
7896
7897 exp_sym_flag='-bexport'
7898 no_entry_flag='-bnoentry'
7899 fi
7900
7901 # When large executables or shared objects are built, AIX ld can
7902 # have problems creating the table of contents. If linking a library
7903 # or program results in "error TOC overflow" add -mminimal-toc to
7904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7906
7907 archive_cmds=''
7908 hardcode_direct=yes
7909 hardcode_libdir_separator=':'
7910 link_all_deplibs=yes
7911
7912 if test "$GCC" = yes; then
7913 case $host_os in aix4.[012]|aix4.[012].*)
7914 # We only want to do this on AIX 4.2 and lower, the check
7915 # below for broken collect2 doesn't work under 4.3+
7916 collect2name=`${CC} -print-prog-name=collect2`
7917 if test -f "$collect2name" && \
7918 strings "$collect2name" | grep resolve_lib_name >/dev/null
7919 then
7920 # We have reworked collect2
7921 hardcode_direct=yes
7922 else
7923 # We have old collect2
7924 hardcode_direct=unsupported
7925 # It fails to find uninstalled libraries when the uninstalled
7926 # path is not listed in the libpath. Setting hardcode_minus_L
7927 # to unsupported forces relinking
7928 hardcode_minus_L=yes
7929 hardcode_libdir_flag_spec='-L$libdir'
7930 hardcode_libdir_separator=
7931 fi
7932 ;;
7933 esac
7934 shared_flag='-shared'
7935 if test "$aix_use_runtimelinking" = yes; then
7936 shared_flag="$shared_flag "'${wl}-G'
7937 fi
7938 else
7939 # not using gcc
7940 if test "$host_cpu" = ia64; then
7941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7942 # chokes on -Wl,-G. The following line is correct:
7943 shared_flag='-G'
7944 else
7945 if test "$aix_use_runtimelinking" = yes; then
7946 shared_flag='${wl}-G'
7947 else
7948 shared_flag='${wl}-bM:SRE'
7949 fi
7950 fi
7951 fi
7952
7953 # It seems that -bexpall does not export symbols beginning with
7954 # underscore (_), so it is better to generate a list of symbols to export.
7955 always_export_symbols=yes
7956 if test "$aix_use_runtimelinking" = yes; then
7957 # Warning - without using the other runtime loading flags (-brtl),
7958 # -berok will link without error, but may produce a broken library.
7959 allow_undefined_flag='-berok'
7960 # Determine the default libpath from the value encoded in an empty executable.
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967
7968 int
7969 main ()
7970 {
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (ac_try="$ac_link"
7978 case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_link") 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && {
7990 test -z "$ac_c_werror_flag" ||
7991 test ! -s conftest.err
7992 } && test -s conftest$ac_exeext &&
7993 $as_test_x conftest$ac_exeext; then
7994
7995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7996 }'`
7997 # Check for a 64-bit object if we didn't find anything.
7998 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7999 }'`; fi
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004
8005 fi
8006
8007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8008 conftest$ac_exeext conftest.$ac_ext
8009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8010
8011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8012 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8013 else
8014 if test "$host_cpu" = ia64; then
8015 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8016 allow_undefined_flag="-z nodefs"
8017 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"
8018 else
8019 # Determine the default libpath from the value encoded in an empty executable.
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026
8027 int
8028 main ()
8029 {
8030
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext &&
8052 $as_test_x conftest$ac_exeext; then
8053
8054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8055 }'`
8056 # Check for a 64-bit object if we didn't find anything.
8057 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8058 }'`; fi
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063
8064 fi
8065
8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067 conftest$ac_exeext conftest.$ac_ext
8068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8069
8070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8071 # Warning - without using the other run time loading flags,
8072 # -berok will link without error, but may produce a broken library.
8073 no_undefined_flag=' ${wl}-bernotok'
8074 allow_undefined_flag=' ${wl}-berok'
8075 # Exported symbols can be pulled into shared objects from archives
8076 whole_archive_flag_spec='$convenience'
8077 archive_cmds_need_lc=yes
8078 # This is similar to how AIX traditionally builds its shared libraries.
8079 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'
8080 fi
8081 fi
8082 ;;
8083
8084 amigaos*)
8085 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)'
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_minus_L=yes
8088 # see comment about different semantics on the GNU ld section
8089 ld_shlibs=no
8090 ;;
8091
8092 bsdi[45]*)
8093 export_dynamic_flag_spec=-rdynamic
8094 ;;
8095
8096 cygwin* | mingw* | pw32*)
8097 # When not using gcc, we currently assume that we are using
8098 # Microsoft Visual C++.
8099 # hardcode_libdir_flag_spec is actually meaningless, as there is
8100 # no search path for DLLs.
8101 hardcode_libdir_flag_spec=' '
8102 allow_undefined_flag=unsupported
8103 # Tell ltmain to make .lib files, not .a files.
8104 libext=lib
8105 # Tell ltmain to make .dll files, not .so files.
8106 shrext_cmds=".dll"
8107 # FIXME: Setting linknames here is a bad hack.
8108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8109 # The linker will automatically build a .lib file if we build a DLL.
8110 old_archive_From_new_cmds='true'
8111 # FIXME: Should let the user specify the lib program.
8112 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8113 fix_srcfile_path='`cygpath -w "$srcfile"`'
8114 enable_shared_with_static_runtimes=yes
8115 ;;
8116
8117 darwin* | rhapsody*)
8118 case $host_os in
8119 rhapsody* | darwin1.[012])
8120 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8121 ;;
8122 *) # Darwin 1.3 on
8123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8125 else
8126 case ${MACOSX_DEPLOYMENT_TARGET} in
8127 10.[012])
8128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8129 ;;
8130 10.*)
8131 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8132 ;;
8133 esac
8134 fi
8135 ;;
8136 esac
8137 archive_cmds_need_lc=no
8138 hardcode_direct=no
8139 hardcode_automatic=yes
8140 hardcode_shlibpath_var=unsupported
8141 whole_archive_flag_spec=''
8142 link_all_deplibs=yes
8143 if test "$GCC" = yes ; then
8144 output_verbose_link_cmd='echo'
8145 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8148 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8149 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8150 else
8151 case $cc_basename in
8152 xlc*)
8153 output_verbose_link_cmd='echo'
8154 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8157 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8158 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8159 ;;
8160 *)
8161 ld_shlibs=no
8162 ;;
8163 esac
8164 fi
8165 ;;
8166
8167 dgux*)
8168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_libdir_flag_spec='-L$libdir'
8170 hardcode_shlibpath_var=no
8171 ;;
8172
8173 freebsd1*)
8174 ld_shlibs=no
8175 ;;
8176
8177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8178 # support. Future versions do this automatically, but an explicit c++rt0.o
8179 # does not break anything, and helps significantly (at the cost of a little
8180 # extra space).
8181 freebsd2.2*)
8182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8183 hardcode_libdir_flag_spec='-R$libdir'
8184 hardcode_direct=yes
8185 hardcode_shlibpath_var=no
8186 ;;
8187
8188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8189 freebsd2*)
8190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8191 hardcode_direct=yes
8192 hardcode_minus_L=yes
8193 hardcode_shlibpath_var=no
8194 ;;
8195
8196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8197 freebsd* | dragonfly*)
8198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8199 hardcode_libdir_flag_spec='-R$libdir'
8200 hardcode_direct=yes
8201 hardcode_shlibpath_var=no
8202 ;;
8203
8204 hpux9*)
8205 if test "$GCC" = yes; then
8206 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'
8207 else
8208 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'
8209 fi
8210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8211 hardcode_libdir_separator=:
8212 hardcode_direct=yes
8213
8214 # hardcode_minus_L: Not really in the search PATH,
8215 # but as the default location of the library.
8216 hardcode_minus_L=yes
8217 export_dynamic_flag_spec='${wl}-E'
8218 ;;
8219
8220 hpux10*)
8221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223 else
8224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8225 fi
8226 if test "$with_gnu_ld" = no; then
8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8228 hardcode_libdir_separator=:
8229
8230 hardcode_direct=yes
8231 export_dynamic_flag_spec='${wl}-E'
8232
8233 # hardcode_minus_L: Not really in the search PATH,
8234 # but as the default location of the library.
8235 hardcode_minus_L=yes
8236 fi
8237 ;;
8238
8239 hpux11*)
8240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8241 case $host_cpu in
8242 hppa*64*)
8243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8244 ;;
8245 ia64*)
8246 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8247 ;;
8248 *)
8249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8250 ;;
8251 esac
8252 else
8253 case $host_cpu in
8254 hppa*64*)
8255 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 ;;
8257 ia64*)
8258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8259 ;;
8260 *)
8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8262 ;;
8263 esac
8264 fi
8265 if test "$with_gnu_ld" = no; then
8266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268
8269 case $host_cpu in
8270 hppa*64*|ia64*)
8271 hardcode_libdir_flag_spec_ld='+b $libdir'
8272 hardcode_direct=no
8273 hardcode_shlibpath_var=no
8274 ;;
8275 *)
8276 hardcode_direct=yes
8277 export_dynamic_flag_spec='${wl}-E'
8278
8279 # hardcode_minus_L: Not really in the search PATH,
8280 # but as the default location of the library.
8281 hardcode_minus_L=yes
8282 ;;
8283 esac
8284 fi
8285 ;;
8286
8287 irix5* | irix6* | nonstopux*)
8288 if test "$GCC" = yes; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8290 else
8291 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8292 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8293 fi
8294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8295 hardcode_libdir_separator=:
8296 link_all_deplibs=yes
8297 ;;
8298
8299 netbsd* | netbsdelf*-gnu)
8300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8302 else
8303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8304 fi
8305 hardcode_libdir_flag_spec='-R$libdir'
8306 hardcode_direct=yes
8307 hardcode_shlibpath_var=no
8308 ;;
8309
8310 newsos6)
8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_direct=yes
8313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8314 hardcode_libdir_separator=:
8315 hardcode_shlibpath_var=no
8316 ;;
8317
8318 openbsd*)
8319 hardcode_direct=yes
8320 hardcode_shlibpath_var=no
8321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8325 export_dynamic_flag_spec='${wl}-E'
8326 else
8327 case $host_os in
8328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8330 hardcode_libdir_flag_spec='-R$libdir'
8331 ;;
8332 *)
8333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8335 ;;
8336 esac
8337 fi
8338 ;;
8339
8340 os2*)
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_minus_L=yes
8343 allow_undefined_flag=unsupported
8344 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'
8345 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8346 ;;
8347
8348 osf3*)
8349 if test "$GCC" = yes; then
8350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8351 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8352 else
8353 allow_undefined_flag=' -expect_unresolved \*'
8354 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8355 fi
8356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357 hardcode_libdir_separator=:
8358 ;;
8359
8360 osf4* | osf5*) # as osf3* with the addition of -msym flag
8361 if test "$GCC" = yes; then
8362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8363 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8365 else
8366 allow_undefined_flag=' -expect_unresolved \*'
8367 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8368 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8369 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8370
8371 # Both c and cxx compiler support -rpath directly
8372 hardcode_libdir_flag_spec='-rpath $libdir'
8373 fi
8374 hardcode_libdir_separator=:
8375 ;;
8376
8377 solaris*)
8378 no_undefined_flag=' -z text'
8379 if test "$GCC" = yes; then
8380 wlarc='${wl}'
8381 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8382 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8383 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8384 else
8385 wlarc=''
8386 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8387 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8389 fi
8390 hardcode_libdir_flag_spec='-R$libdir'
8391 hardcode_shlibpath_var=no
8392 case $host_os in
8393 solaris2.[0-5] | solaris2.[0-5].*) ;;
8394 *)
8395 # The compiler driver will combine linker options so we
8396 # cannot just pass the convience library names through
8397 # without $wl, iff we do not link with $LD.
8398 # Luckily, gcc supports the same syntax we need for Sun Studio.
8399 # Supported since Solaris 2.6 (maybe 2.5.1?)
8400 case $wlarc in
8401 '')
8402 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8403 *)
8404 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8405 esac ;;
8406 esac
8407 link_all_deplibs=yes
8408 ;;
8409
8410 sunos4*)
8411 if test "x$host_vendor" = xsequent; then
8412 # Use $CC to link under sequent, because it throws in some extra .o
8413 # files that make .init and .fini sections work.
8414 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8415 else
8416 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8417 fi
8418 hardcode_libdir_flag_spec='-L$libdir'
8419 hardcode_direct=yes
8420 hardcode_minus_L=yes
8421 hardcode_shlibpath_var=no
8422 ;;
8423
8424 sysv4)
8425 case $host_vendor in
8426 sni)
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_direct=yes # is this really true???
8429 ;;
8430 siemens)
8431 ## LD is ld it makes a PLAMLIB
8432 ## CC just makes a GrossModule.
8433 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8434 reload_cmds='$CC -r -o $output$reload_objs'
8435 hardcode_direct=no
8436 ;;
8437 motorola)
8438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8440 ;;
8441 esac
8442 runpath_var='LD_RUN_PATH'
8443 hardcode_shlibpath_var=no
8444 ;;
8445
8446 sysv4.3*)
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_shlibpath_var=no
8449 export_dynamic_flag_spec='-Bexport'
8450 ;;
8451
8452 sysv4*MP*)
8453 if test -d /usr/nec; then
8454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_shlibpath_var=no
8456 runpath_var=LD_RUN_PATH
8457 hardcode_runpath_var=yes
8458 ld_shlibs=yes
8459 fi
8460 ;;
8461
8462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8463 no_undefined_flag='${wl}-z,text'
8464 archive_cmds_need_lc=no
8465 hardcode_shlibpath_var=no
8466 runpath_var='LD_RUN_PATH'
8467
8468 if test "$GCC" = yes; then
8469 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 else
8472 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8473 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 fi
8475 ;;
8476
8477 sysv5* | sco3.2v5* | sco5v6*)
8478 # Note: We can NOT use -z defs as we might desire, because we do not
8479 # link with -lc, and that would cause any symbols used from libc to
8480 # always be unresolved, which means just about no library would
8481 # ever link correctly. If we're not using GNU ld we use -z text
8482 # though, which does catch some bad symbols but isn't as heavy-handed
8483 # as -z defs.
8484 no_undefined_flag='${wl}-z,text'
8485 allow_undefined_flag='${wl}-z,nodefs'
8486 archive_cmds_need_lc=no
8487 hardcode_shlibpath_var=no
8488 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8489 hardcode_libdir_separator=':'
8490 link_all_deplibs=yes
8491 export_dynamic_flag_spec='${wl}-Bexport'
8492 runpath_var='LD_RUN_PATH'
8493
8494 if test "$GCC" = yes; then
8495 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497 else
8498 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 fi
8501 ;;
8502
8503 uts4*)
8504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_shlibpath_var=no
8507 ;;
8508
8509 *)
8510 ld_shlibs=no
8511 ;;
8512 esac
8513 fi
8514
8515 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8516 echo "${ECHO_T}$ld_shlibs" >&6; }
8517 test "$ld_shlibs" = no && can_build_shared=no
8518
8519 #
8520 # Do we need to explicitly link libc?
8521 #
8522 case "x$archive_cmds_need_lc" in
8523 x|xyes)
8524 # Assume -lc should be added
8525 archive_cmds_need_lc=yes
8526
8527 if test "$enable_shared" = yes && test "$GCC" = yes; then
8528 case $archive_cmds in
8529 *'~'*)
8530 # FIXME: we may have to deal with multi-command sequences.
8531 ;;
8532 '$CC '*)
8533 # Test whether the compiler implicitly links with -lc since on some
8534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8535 # to ld, don't add -lc before -lgcc.
8536 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8537 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8538 $rm conftest*
8539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8540
8541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542 (eval $ac_compile) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } 2>conftest.err; then
8546 soname=conftest
8547 lib=conftest
8548 libobjs=conftest.$ac_objext
8549 deplibs=
8550 wl=$lt_prog_compiler_wl
8551 pic_flag=$lt_prog_compiler_pic
8552 compiler_flags=-v
8553 linker_flags=-v
8554 verstring=
8555 output_objdir=.
8556 libname=conftest
8557 lt_save_allow_undefined_flag=$allow_undefined_flag
8558 allow_undefined_flag=
8559 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8560 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }
8564 then
8565 archive_cmds_need_lc=no
8566 else
8567 archive_cmds_need_lc=yes
8568 fi
8569 allow_undefined_flag=$lt_save_allow_undefined_flag
8570 else
8571 cat conftest.err 1>&5
8572 fi
8573 $rm conftest*
8574 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8575 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8576 ;;
8577 esac
8578 fi
8579 ;;
8580 esac
8581
8582 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8583 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8584 library_names_spec=
8585 libname_spec='lib$name'
8586 soname_spec=
8587 shrext_cmds=".so"
8588 postinstall_cmds=
8589 postuninstall_cmds=
8590 finish_cmds=
8591 finish_eval=
8592 shlibpath_var=
8593 shlibpath_overrides_runpath=unknown
8594 version_type=none
8595 dynamic_linker="$host_os ld.so"
8596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8597 if test "$GCC" = yes; then
8598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8599 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8600 # if the path contains ";" then we assume it to be the separator
8601 # otherwise default to the standard path separator (i.e. ":") - it is
8602 # assumed that no part of a normal pathname contains ";" but that should
8603 # okay in the real world where ";" in dirpaths is itself problematic.
8604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8605 else
8606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8607 fi
8608 else
8609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8610 fi
8611 need_lib_prefix=unknown
8612 hardcode_into_libs=no
8613
8614 # when you set need_version to no, make sure it does not cause -set_version
8615 # flags to be left without arguments
8616 need_version=unknown
8617
8618 case $host_os in
8619 aix3*)
8620 version_type=linux
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8622 shlibpath_var=LIBPATH
8623
8624 # AIX 3 has no versioning support, so we append a major version to the name.
8625 soname_spec='${libname}${release}${shared_ext}$major'
8626 ;;
8627
8628 aix4* | aix5*)
8629 version_type=linux
8630 need_lib_prefix=no
8631 need_version=no
8632 hardcode_into_libs=yes
8633 if test "$host_cpu" = ia64; then
8634 # AIX 5 supports IA64
8635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 else
8638 # With GCC up to 2.95.x, collect2 would create an import file
8639 # for dependence libraries. The import file would start with
8640 # the line `#! .'. This would cause the generated library to
8641 # depend on `.', always an invalid library. This was fixed in
8642 # development snapshots of GCC prior to 3.0.
8643 case $host_os in
8644 aix4 | aix4.[01] | aix4.[01].*)
8645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8646 echo ' yes '
8647 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8648 :
8649 else
8650 can_build_shared=no
8651 fi
8652 ;;
8653 esac
8654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8655 # soname into executable. Probably we can add versioning support to
8656 # collect2, so additional links can be useful in future.
8657 if test "$aix_use_runtimelinking" = yes; then
8658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8659 # instead of lib<name>.a to let people know that these are not
8660 # typical AIX shared libraries.
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662 else
8663 # We preserve .a as extension for shared libraries through AIX4.2
8664 # and later when we are not doing run time linking.
8665 library_names_spec='${libname}${release}.a $libname.a'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 fi
8668 shlibpath_var=LIBPATH
8669 fi
8670 ;;
8671
8672 amigaos*)
8673 library_names_spec='$libname.ixlibrary $libname.a'
8674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8675 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'
8676 ;;
8677
8678 beos*)
8679 library_names_spec='${libname}${shared_ext}'
8680 dynamic_linker="$host_os ld.so"
8681 shlibpath_var=LIBRARY_PATH
8682 ;;
8683
8684 bsdi[45]*)
8685 version_type=linux
8686 need_version=no
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8693 # the default ld.so.conf also contains /usr/contrib/lib and
8694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8695 # libtool to hard-code these into programs
8696 ;;
8697
8698 cygwin* | mingw* | pw32*)
8699 version_type=windows
8700 shrext_cmds=".dll"
8701 need_version=no
8702 need_lib_prefix=no
8703
8704 case $GCC,$host_os in
8705 yes,cygwin* | yes,mingw* | yes,pw32*)
8706 library_names_spec='$libname.dll.a'
8707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8708 postinstall_cmds='base_file=`basename \${file}`~
8709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8710 dldir=$destdir/`dirname \$dlpath`~
8711 test -d \$dldir || mkdir -p \$dldir~
8712 $install_prog $dir/$dlname \$dldir/$dlname~
8713 chmod a+x \$dldir/$dlname'
8714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8715 dlpath=$dir/\$dldll~
8716 $rm \$dlpath'
8717 shlibpath_overrides_runpath=yes
8718
8719 case $host_os in
8720 cygwin*)
8721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8724 ;;
8725 mingw*)
8726 # MinGW DLLs use traditional 'lib' prefix
8727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8730 # It is most probably a Windows format PATH printed by
8731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8732 # path with ; separators, and with drive letters. We can handle the
8733 # drive letters (cygwin fileutils understands them), so leave them,
8734 # especially as we might pass files found there to a mingw objdump,
8735 # which wouldn't understand a cygwinified path. Ahh.
8736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8737 else
8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8739 fi
8740 ;;
8741 pw32*)
8742 # pw32 DLLs use 'pw' prefix rather than 'lib'
8743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 ;;
8745 esac
8746 ;;
8747
8748 *)
8749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8750 ;;
8751 esac
8752 dynamic_linker='Win32 ld.exe'
8753 # FIXME: first we should search . and the directory the executable is in
8754 shlibpath_var=PATH
8755 ;;
8756
8757 darwin* | rhapsody*)
8758 dynamic_linker="$host_os dyld"
8759 version_type=darwin
8760 need_lib_prefix=no
8761 need_version=no
8762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8763 soname_spec='${libname}${release}${major}$shared_ext'
8764 shlibpath_overrides_runpath=yes
8765 shlibpath_var=DYLD_LIBRARY_PATH
8766 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8768 if test "$GCC" = yes; then
8769 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8770 else
8771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8772 fi
8773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8774 ;;
8775
8776 dgux*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 ;;
8784
8785 freebsd1*)
8786 dynamic_linker=no
8787 ;;
8788
8789 freebsd* | dragonfly*)
8790 # DragonFly does not have aout. When/if they implement a new
8791 # versioning mechanism, adjust this.
8792 if test -x /usr/bin/objformat; then
8793 objformat=`/usr/bin/objformat`
8794 else
8795 case $host_os in
8796 freebsd[123]*) objformat=aout ;;
8797 *) objformat=elf ;;
8798 esac
8799 fi
8800 version_type=freebsd-$objformat
8801 case $version_type in
8802 freebsd-elf*)
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804 need_version=no
8805 need_lib_prefix=no
8806 ;;
8807 freebsd-*)
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8809 need_version=yes
8810 ;;
8811 esac
8812 shlibpath_var=LD_LIBRARY_PATH
8813 case $host_os in
8814 freebsd2*)
8815 shlibpath_overrides_runpath=yes
8816 ;;
8817 freebsd3.[01]* | freebsdelf3.[01]*)
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8820 ;;
8821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8823 shlibpath_overrides_runpath=no
8824 hardcode_into_libs=yes
8825 ;;
8826 freebsd*) # from 4.6 on
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 ;;
8830 esac
8831 ;;
8832
8833 gnu*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 hardcode_into_libs=yes
8841 ;;
8842
8843 hpux9* | hpux10* | hpux11*)
8844 # Give a soname corresponding to the major version so that dld.sl refuses to
8845 # link against other versions.
8846 version_type=sunos
8847 need_lib_prefix=no
8848 need_version=no
8849 case $host_cpu in
8850 ia64*)
8851 shrext_cmds='.so'
8852 hardcode_into_libs=yes
8853 dynamic_linker="$host_os dld.so"
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 if test "X$HPUX_IA64_MODE" = X32; then
8859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8860 else
8861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862 fi
8863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864 ;;
8865 hppa*64*)
8866 shrext_cmds='.sl'
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.sl"
8869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8875 ;;
8876 *)
8877 shrext_cmds='.sl'
8878 dynamic_linker="$host_os dld.sl"
8879 shlibpath_var=SHLIB_PATH
8880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 ;;
8884 esac
8885 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8886 postinstall_cmds='chmod 555 $lib'
8887 ;;
8888
8889 interix3*)
8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=no
8898 hardcode_into_libs=yes
8899 ;;
8900
8901 irix5* | irix6* | nonstopux*)
8902 case $host_os in
8903 nonstopux*) version_type=nonstopux ;;
8904 *)
8905 if test "$lt_cv_prog_gnu_ld" = yes; then
8906 version_type=linux
8907 else
8908 version_type=irix
8909 fi ;;
8910 esac
8911 need_lib_prefix=no
8912 need_version=no
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8915 case $host_os in
8916 irix5* | nonstopux*)
8917 libsuff= shlibsuff=
8918 ;;
8919 *)
8920 case $LD in # libtool.m4 will add one of these switches to LD
8921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8922 libsuff= shlibsuff= libmagic=32-bit;;
8923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8924 libsuff=32 shlibsuff=N32 libmagic=N32;;
8925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8927 *) libsuff= shlibsuff= libmagic=never-match;;
8928 esac
8929 ;;
8930 esac
8931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8932 shlibpath_overrides_runpath=no
8933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8935 hardcode_into_libs=yes
8936 ;;
8937
8938 # No shared lib support for Linux oldld, aout, or coff.
8939 linux*oldld* | linux*aout* | linux*coff*)
8940 dynamic_linker=no
8941 ;;
8942
8943 # This must be Linux ELF.
8944 linux* | k*bsd*-gnu)
8945 version_type=linux
8946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 # This implies no fast_install, which is unacceptable.
8954 # Some rework will be needed to allow for fast_install
8955 # before this can be enabled.
8956 hardcode_into_libs=yes
8957
8958 # Append ld.so.conf contents to the search path
8959 if test -f /etc/ld.so.conf; then
8960 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8962 fi
8963
8964 # We used to test for /lib/ld.so.1 and disable shared libraries on
8965 # powerpc, because MkLinux only supported shared libraries with the
8966 # GNU dynamic linker. Since this was broken with cross compilers,
8967 # most powerpc-linux boxes support dynamic linking these days and
8968 # people can always --disable-shared, the test was removed, and we
8969 # assume the GNU/Linux dynamic linker is in use.
8970 dynamic_linker='GNU/Linux ld.so'
8971 ;;
8972
8973 netbsdelf*-gnu)
8974 version_type=linux
8975 need_lib_prefix=no
8976 need_version=no
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=no
8981 hardcode_into_libs=yes
8982 dynamic_linker='NetBSD ld.elf_so'
8983 ;;
8984
8985 netbsd*)
8986 version_type=sunos
8987 need_lib_prefix=no
8988 need_version=no
8989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992 dynamic_linker='NetBSD (a.out) ld.so'
8993 else
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 dynamic_linker='NetBSD ld.elf_so'
8997 fi
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9001 ;;
9002
9003 newsos6)
9004 version_type=linux
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=yes
9008 ;;
9009
9010 nto-qnx*)
9011 version_type=linux
9012 need_lib_prefix=no
9013 need_version=no
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 ;;
9019
9020 openbsd*)
9021 version_type=sunos
9022 sys_lib_dlsearch_path_spec="/usr/lib"
9023 need_lib_prefix=no
9024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9025 case $host_os in
9026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9027 *) need_version=no ;;
9028 esac
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9033 case $host_os in
9034 openbsd2.[89] | openbsd2.[89].*)
9035 shlibpath_overrides_runpath=no
9036 ;;
9037 *)
9038 shlibpath_overrides_runpath=yes
9039 ;;
9040 esac
9041 else
9042 shlibpath_overrides_runpath=yes
9043 fi
9044 ;;
9045
9046 os2*)
9047 libname_spec='$name'
9048 shrext_cmds=".dll"
9049 need_lib_prefix=no
9050 library_names_spec='$libname${shared_ext} $libname.a'
9051 dynamic_linker='OS/2 ld.exe'
9052 shlibpath_var=LIBPATH
9053 ;;
9054
9055 osf3* | osf4* | osf5*)
9056 version_type=osf
9057 need_lib_prefix=no
9058 need_version=no
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9064 ;;
9065
9066 solaris*)
9067 version_type=linux
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9075 # ldd complains unless libraries are executable
9076 postinstall_cmds='chmod +x $lib'
9077 ;;
9078
9079 sunos4*)
9080 version_type=sunos
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 if test "$with_gnu_ld" = yes; then
9086 need_lib_prefix=no
9087 fi
9088 need_version=yes
9089 ;;
9090
9091 sysv4 | sysv4.3*)
9092 version_type=linux
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 case $host_vendor in
9097 sni)
9098 shlibpath_overrides_runpath=no
9099 need_lib_prefix=no
9100 export_dynamic_flag_spec='${wl}-Blargedynsym'
9101 runpath_var=LD_RUN_PATH
9102 ;;
9103 siemens)
9104 need_lib_prefix=no
9105 ;;
9106 motorola)
9107 need_lib_prefix=no
9108 need_version=no
9109 shlibpath_overrides_runpath=no
9110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9111 ;;
9112 esac
9113 ;;
9114
9115 sysv4*MP*)
9116 if test -d /usr/nec ;then
9117 version_type=linux
9118 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9119 soname_spec='$libname${shared_ext}.$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 fi
9122 ;;
9123
9124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9125 version_type=freebsd-elf
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 hardcode_into_libs=yes
9132 if test "$with_gnu_ld" = yes; then
9133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9134 shlibpath_overrides_runpath=no
9135 else
9136 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9137 shlibpath_overrides_runpath=yes
9138 case $host_os in
9139 sco3.2v5*)
9140 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9141 ;;
9142 esac
9143 fi
9144 sys_lib_dlsearch_path_spec='/usr/lib'
9145 ;;
9146
9147 uts4*)
9148 version_type=linux
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 ;;
9153
9154 *)
9155 dynamic_linker=no
9156 ;;
9157 esac
9158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9159 echo "${ECHO_T}$dynamic_linker" >&6; }
9160 test "$dynamic_linker" = no && can_build_shared=no
9161
9162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9163 if test "$GCC" = yes; then
9164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9165 fi
9166
9167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9169 hardcode_action=
9170 if test -n "$hardcode_libdir_flag_spec" || \
9171 test -n "$runpath_var" || \
9172 test "X$hardcode_automatic" = "Xyes" ; then
9173
9174 # We can hardcode non-existant directories.
9175 if test "$hardcode_direct" != no &&
9176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9177 # have to relink, otherwise we might link with an installed library
9178 # when we should be linking with a yet-to-be-installed one
9179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9180 test "$hardcode_minus_L" != no; then
9181 # Linking always hardcodes the temporary library directory.
9182 hardcode_action=relink
9183 else
9184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9185 hardcode_action=immediate
9186 fi
9187 else
9188 # We cannot hardcode anything, or else we can only hardcode existing
9189 # directories.
9190 hardcode_action=unsupported
9191 fi
9192 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9193 echo "${ECHO_T}$hardcode_action" >&6; }
9194
9195 if test "$hardcode_action" = relink; then
9196 # Fast installation is not supported
9197 enable_fast_install=no
9198 elif test "$shlibpath_overrides_runpath" = yes ||
9199 test "$enable_shared" = no; then
9200 # Fast installation is not necessary
9201 enable_fast_install=needless
9202 fi
9203
9204 striplib=
9205 old_striplib=
9206 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9208 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9211 { echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6; }
9213 else
9214 # FIXME - insert some real tests, host_os isn't really good enough
9215 case $host_os in
9216 darwin*)
9217 if test -n "$STRIP" ; then
9218 striplib="$STRIP -x"
9219 { echo "$as_me:$LINENO: result: yes" >&5
9220 echo "${ECHO_T}yes" >&6; }
9221 else
9222 { echo "$as_me:$LINENO: result: no" >&5
9223 echo "${ECHO_T}no" >&6; }
9224 fi
9225 ;;
9226 *)
9227 { echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6; }
9229 ;;
9230 esac
9231 fi
9232
9233 if test "x$enable_dlopen" != xyes; then
9234 enable_dlopen=unknown
9235 enable_dlopen_self=unknown
9236 enable_dlopen_self_static=unknown
9237 else
9238 lt_cv_dlopen=no
9239 lt_cv_dlopen_libs=
9240
9241 case $host_os in
9242 beos*)
9243 lt_cv_dlopen="load_add_on"
9244 lt_cv_dlopen_libs=
9245 lt_cv_dlopen_self=yes
9246 ;;
9247
9248 mingw* | pw32*)
9249 lt_cv_dlopen="LoadLibrary"
9250 lt_cv_dlopen_libs=
9251 ;;
9252
9253 cygwin*)
9254 lt_cv_dlopen="dlopen"
9255 lt_cv_dlopen_libs=
9256 ;;
9257
9258 darwin*)
9259 # if libdl is installed we need to link against it
9260 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 ac_check_lib_save_LIBS=$LIBS
9266 LIBS="-ldl $LIBS"
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273
9274 /* Override any GCC internal prototype to avoid an error.
9275 Use char because int might match the return type of a GCC
9276 builtin and then its argument prototype would still apply. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 char dlopen ();
9281 int
9282 main ()
9283 {
9284 return dlopen ();
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (ac_try="$ac_link"
9291 case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_link") 2>conftest.er1
9297 ac_status=$?
9298 grep -v '^ *+' conftest.er1 >conftest.err
9299 rm -f conftest.er1
9300 cat conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && {
9303 test -z "$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9305 } && test -s conftest$ac_exeext &&
9306 $as_test_x conftest$ac_exeext; then
9307 ac_cv_lib_dl_dlopen=yes
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 ac_cv_lib_dl_dlopen=no
9313 fi
9314
9315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9316 conftest$ac_exeext conftest.$ac_ext
9317 LIBS=$ac_check_lib_save_LIBS
9318 fi
9319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9320 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9321 if test $ac_cv_lib_dl_dlopen = yes; then
9322 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9323 else
9324
9325 lt_cv_dlopen="dyld"
9326 lt_cv_dlopen_libs=
9327 lt_cv_dlopen_self=yes
9328
9329 fi
9330
9331 ;;
9332
9333 *)
9334 { echo "$as_me:$LINENO: checking for shl_load" >&5
9335 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9336 if test "${ac_cv_func_shl_load+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9347 #define shl_load innocuous_shl_load
9348
9349 /* System header to define __stub macros and hopefully few prototypes,
9350 which can conflict with char shl_load (); below.
9351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352 <limits.h> exists even on freestanding compilers. */
9353
9354 #ifdef __STDC__
9355 # include <limits.h>
9356 #else
9357 # include <assert.h>
9358 #endif
9359
9360 #undef shl_load
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char shl_load ();
9369 /* The GNU C library defines this for functions which it implements
9370 to always fail with ENOSYS. Some functions are actually named
9371 something starting with __ and the normal name is an alias. */
9372 #if defined __stub_shl_load || defined __stub___shl_load
9373 choke me
9374 #endif
9375
9376 int
9377 main ()
9378 {
9379 return shl_load ();
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (ac_try="$ac_link"
9386 case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_link") 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest$ac_exeext &&
9401 $as_test_x conftest$ac_exeext; then
9402 ac_cv_func_shl_load=yes
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_cv_func_shl_load=no
9408 fi
9409
9410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9411 conftest$ac_exeext conftest.$ac_ext
9412 fi
9413 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9415 if test $ac_cv_func_shl_load = yes; then
9416 lt_cv_dlopen="shl_load"
9417 else
9418 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 ac_check_lib_save_LIBS=$LIBS
9424 LIBS="-ldld $LIBS"
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431
9432 /* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9435 #ifdef __cplusplus
9436 extern "C"
9437 #endif
9438 char shl_load ();
9439 int
9440 main ()
9441 {
9442 return shl_load ();
9443 ;
9444 return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (ac_try="$ac_link"
9449 case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_link") 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && {
9461 test -z "$ac_c_werror_flag" ||
9462 test ! -s conftest.err
9463 } && test -s conftest$ac_exeext &&
9464 $as_test_x conftest$ac_exeext; then
9465 ac_cv_lib_dld_shl_load=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_lib_dld_shl_load=no
9471 fi
9472
9473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9476 fi
9477 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9478 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9479 if test $ac_cv_lib_dld_shl_load = yes; then
9480 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9481 else
9482 { echo "$as_me:$LINENO: checking for dlopen" >&5
9483 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9484 if test "${ac_cv_func_dlopen+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h. */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9495 #define dlopen innocuous_dlopen
9496
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char dlopen (); below.
9499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500 <limits.h> exists even on freestanding compilers. */
9501
9502 #ifdef __STDC__
9503 # include <limits.h>
9504 #else
9505 # include <assert.h>
9506 #endif
9507
9508 #undef dlopen
9509
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 char dlopen ();
9517 /* The GNU C library defines this for functions which it implements
9518 to always fail with ENOSYS. Some functions are actually named
9519 something starting with __ and the normal name is an alias. */
9520 #if defined __stub_dlopen || defined __stub___dlopen
9521 choke me
9522 #endif
9523
9524 int
9525 main ()
9526 {
9527 return dlopen ();
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest$ac_exeext &&
9549 $as_test_x conftest$ac_exeext; then
9550 ac_cv_func_dlopen=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_cv_func_dlopen=no
9556 fi
9557
9558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9559 conftest$ac_exeext conftest.$ac_ext
9560 fi
9561 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9562 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9563 if test $ac_cv_func_dlopen = yes; then
9564 lt_cv_dlopen="dlopen"
9565 else
9566 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 ac_check_lib_save_LIBS=$LIBS
9572 LIBS="-ldl $LIBS"
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579
9580 /* Override any GCC internal prototype to avoid an error.
9581 Use char because int might match the return type of a GCC
9582 builtin and then its argument prototype would still apply. */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 char dlopen ();
9587 int
9588 main ()
9589 {
9590 return dlopen ();
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
9613 ac_cv_lib_dl_dlopen=yes
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 ac_cv_lib_dl_dlopen=no
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9627 if test $ac_cv_lib_dl_dlopen = yes; then
9628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629 else
9630 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9631 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9632 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635 ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-lsvld $LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9647 #ifdef __cplusplus
9648 extern "C"
9649 #endif
9650 char dlopen ();
9651 int
9652 main ()
9653 {
9654 return dlopen ();
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9661 case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_link") 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest$ac_exeext &&
9676 $as_test_x conftest$ac_exeext; then
9677 ac_cv_lib_svld_dlopen=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_cv_lib_svld_dlopen=no
9683 fi
9684
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9688 fi
9689 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9691 if test $ac_cv_lib_svld_dlopen = yes; then
9692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9693 else
9694 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-ldld $LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char dld_link ();
9715 int
9716 main ()
9717 {
9718 return dld_link ();
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9725 case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_link") 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } && {
9737 test -z "$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9739 } && test -s conftest$ac_exeext &&
9740 $as_test_x conftest$ac_exeext; then
9741 ac_cv_lib_dld_dld_link=yes
9742 else
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ac_cv_lib_dld_dld_link=no
9747 fi
9748
9749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750 conftest$ac_exeext conftest.$ac_ext
9751 LIBS=$ac_check_lib_save_LIBS
9752 fi
9753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9754 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9755 if test $ac_cv_lib_dld_dld_link = yes; then
9756 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9757 fi
9758
9759
9760 fi
9761
9762
9763 fi
9764
9765
9766 fi
9767
9768
9769 fi
9770
9771
9772 fi
9773
9774 ;;
9775 esac
9776
9777 if test "x$lt_cv_dlopen" != xno; then
9778 enable_dlopen=yes
9779 else
9780 enable_dlopen=no
9781 fi
9782
9783 case $lt_cv_dlopen in
9784 dlopen)
9785 save_CPPFLAGS="$CPPFLAGS"
9786 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9787
9788 save_LDFLAGS="$LDFLAGS"
9789 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9790
9791 save_LIBS="$LIBS"
9792 LIBS="$lt_cv_dlopen_libs $LIBS"
9793
9794 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9795 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9796 if test "${lt_cv_dlopen_self+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799 if test "$cross_compiling" = yes; then :
9800 lt_cv_dlopen_self=cross
9801 else
9802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9803 lt_status=$lt_dlunknown
9804 cat > conftest.$ac_ext <<EOF
9805 #line 9805 "configure"
9806 #include "confdefs.h"
9807
9808 #if HAVE_DLFCN_H
9809 #include <dlfcn.h>
9810 #endif
9811
9812 #include <stdio.h>
9813
9814 #ifdef RTLD_GLOBAL
9815 # define LT_DLGLOBAL RTLD_GLOBAL
9816 #else
9817 # ifdef DL_GLOBAL
9818 # define LT_DLGLOBAL DL_GLOBAL
9819 # else
9820 # define LT_DLGLOBAL 0
9821 # endif
9822 #endif
9823
9824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9825 find out it does not work in some platform. */
9826 #ifndef LT_DLLAZY_OR_NOW
9827 # ifdef RTLD_LAZY
9828 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9829 # else
9830 # ifdef DL_LAZY
9831 # define LT_DLLAZY_OR_NOW DL_LAZY
9832 # else
9833 # ifdef RTLD_NOW
9834 # define LT_DLLAZY_OR_NOW RTLD_NOW
9835 # else
9836 # ifdef DL_NOW
9837 # define LT_DLLAZY_OR_NOW DL_NOW
9838 # else
9839 # define LT_DLLAZY_OR_NOW 0
9840 # endif
9841 # endif
9842 # endif
9843 # endif
9844 #endif
9845
9846 #ifdef __cplusplus
9847 extern "C" void exit (int);
9848 #endif
9849
9850 void fnord() { int i=42;}
9851 int main ()
9852 {
9853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9854 int status = $lt_dlunknown;
9855
9856 if (self)
9857 {
9858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9859 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9860 /* dlclose (self); */
9861 }
9862 else
9863 puts (dlerror ());
9864
9865 exit (status);
9866 }
9867 EOF
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9873 (./conftest; exit; ) >&5 2>/dev/null
9874 lt_status=$?
9875 case x$lt_status in
9876 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9877 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9878 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9879 esac
9880 else :
9881 # compilation failed
9882 lt_cv_dlopen_self=no
9883 fi
9884 fi
9885 rm -fr conftest*
9886
9887
9888 fi
9889 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9890 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9891
9892 if test "x$lt_cv_dlopen_self" = xyes; then
9893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9894 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9895 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9896 if test "${lt_cv_dlopen_self_static+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 if test "$cross_compiling" = yes; then :
9900 lt_cv_dlopen_self_static=cross
9901 else
9902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9903 lt_status=$lt_dlunknown
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9905 "configure"
9906 #include "confdefs.h"
9907
9908 #if HAVE_DLFCN_H
9909 #include <dlfcn.h>
9910 #endif
9911
9912 #include <stdio.h>
9913
9914 #ifdef RTLD_GLOBAL
9915 # define LT_DLGLOBAL RTLD_GLOBAL
9916 #else
9917 # ifdef DL_GLOBAL
9918 # define LT_DLGLOBAL DL_GLOBAL
9919 # else
9920 # define LT_DLGLOBAL 0
9921 # endif
9922 #endif
9923
9924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9925 find out it does not work in some platform. */
9926 #ifndef LT_DLLAZY_OR_NOW
9927 # ifdef RTLD_LAZY
9928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9929 # else
9930 # ifdef DL_LAZY
9931 # define LT_DLLAZY_OR_NOW DL_LAZY
9932 # else
9933 # ifdef RTLD_NOW
9934 # define LT_DLLAZY_OR_NOW RTLD_NOW
9935 # else
9936 # ifdef DL_NOW
9937 # define LT_DLLAZY_OR_NOW DL_NOW
9938 # else
9939 # define LT_DLLAZY_OR_NOW 0
9940 # endif
9941 # endif
9942 # endif
9943 # endif
9944 #endif
9945
9946 #ifdef __cplusplus
9947 extern "C" void exit (int);
9948 #endif
9949
9950 void fnord() { int i=42;}
9951 int main ()
9952 {
9953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9954 int status = $lt_dlunknown;
9955
9956 if (self)
9957 {
9958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9960 /* dlclose (self); */
9961 }
9962 else
9963 puts (dlerror ());
9964
9965 exit (status);
9966 }
9967 EOF
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9973 (./conftest; exit; ) >&5 2>/dev/null
9974 lt_status=$?
9975 case x$lt_status in
9976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9978 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9979 esac
9980 else :
9981 # compilation failed
9982 lt_cv_dlopen_self_static=no
9983 fi
9984 fi
9985 rm -fr conftest*
9986
9987
9988 fi
9989 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9990 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9991 fi
9992
9993 CPPFLAGS="$save_CPPFLAGS"
9994 LDFLAGS="$save_LDFLAGS"
9995 LIBS="$save_LIBS"
9996 ;;
9997 esac
9998
9999 case $lt_cv_dlopen_self in
10000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10001 *) enable_dlopen_self=unknown ;;
10002 esac
10003
10004 case $lt_cv_dlopen_self_static in
10005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10006 *) enable_dlopen_self_static=unknown ;;
10007 esac
10008 fi
10009
10010
10011 # Report which library types will actually be built
10012 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10013 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10014 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10015 echo "${ECHO_T}$can_build_shared" >&6; }
10016
10017 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10018 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10019 test "$can_build_shared" = "no" && enable_shared=no
10020
10021 # On AIX, shared libraries and static libraries use the same namespace, and
10022 # are all built from PIC.
10023 case $host_os in
10024 aix3*)
10025 test "$enable_shared" = yes && enable_static=no
10026 if test -n "$RANLIB"; then
10027 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10028 postinstall_cmds='$RANLIB $lib'
10029 fi
10030 ;;
10031
10032 aix4* | aix5*)
10033 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10034 test "$enable_shared" = yes && enable_static=no
10035 fi
10036 ;;
10037 esac
10038 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10039 echo "${ECHO_T}$enable_shared" >&6; }
10040
10041 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10042 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10043 # Make sure either enable_shared or enable_static is yes.
10044 test "$enable_shared" = yes || enable_static=yes
10045 { echo "$as_me:$LINENO: result: $enable_static" >&5
10046 echo "${ECHO_T}$enable_static" >&6; }
10047
10048 # The else clause should only fire when bootstrapping the
10049 # libtool distribution, otherwise you forgot to ship ltmain.sh
10050 # with your package, and you will get complaints that there are
10051 # no rules to generate ltmain.sh.
10052 if test -f "$ltmain"; then
10053 # See if we are running on zsh, and set the options which allow our commands through
10054 # without removal of \ escapes.
10055 if test -n "${ZSH_VERSION+set}" ; then
10056 setopt NO_GLOB_SUBST
10057 fi
10058 # Now quote all the things that may contain metacharacters while being
10059 # careful not to overquote the AC_SUBSTed values. We take copies of the
10060 # variables and quote the copies for generation of the libtool script.
10061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10062 SED SHELL STRIP \
10063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10065 deplibs_check_method reload_flag reload_cmds need_locks \
10066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10067 lt_cv_sys_global_symbol_to_c_name_address \
10068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10069 old_postinstall_cmds old_postuninstall_cmds \
10070 compiler \
10071 CC \
10072 LD \
10073 lt_prog_compiler_wl \
10074 lt_prog_compiler_pic \
10075 lt_prog_compiler_static \
10076 lt_prog_compiler_no_builtin_flag \
10077 export_dynamic_flag_spec \
10078 thread_safe_flag_spec \
10079 whole_archive_flag_spec \
10080 enable_shared_with_static_runtimes \
10081 old_archive_cmds \
10082 old_archive_from_new_cmds \
10083 predep_objects \
10084 postdep_objects \
10085 predeps \
10086 postdeps \
10087 compiler_lib_search_path \
10088 archive_cmds \
10089 archive_expsym_cmds \
10090 postinstall_cmds \
10091 postuninstall_cmds \
10092 old_archive_from_expsyms_cmds \
10093 allow_undefined_flag \
10094 no_undefined_flag \
10095 export_symbols_cmds \
10096 hardcode_libdir_flag_spec \
10097 hardcode_libdir_flag_spec_ld \
10098 hardcode_libdir_separator \
10099 hardcode_automatic \
10100 module_cmds \
10101 module_expsym_cmds \
10102 lt_cv_prog_compiler_c_o \
10103 exclude_expsyms \
10104 include_expsyms; do
10105
10106 case $var in
10107 old_archive_cmds | \
10108 old_archive_from_new_cmds | \
10109 archive_cmds | \
10110 archive_expsym_cmds | \
10111 module_cmds | \
10112 module_expsym_cmds | \
10113 old_archive_from_expsyms_cmds | \
10114 export_symbols_cmds | \
10115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10116 postinstall_cmds | postuninstall_cmds | \
10117 old_postinstall_cmds | old_postuninstall_cmds | \
10118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10119 # Double-quote double-evaled strings.
10120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10121 ;;
10122 *)
10123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10124 ;;
10125 esac
10126 done
10127
10128 case $lt_echo in
10129 *'\$0 --fallback-echo"')
10130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10131 ;;
10132 esac
10133
10134 cfgfile="${ofile}T"
10135 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10136 $rm -f "$cfgfile"
10137 { echo "$as_me:$LINENO: creating $ofile" >&5
10138 echo "$as_me: creating $ofile" >&6;}
10139
10140 cat <<__EOF__ >> "$cfgfile"
10141 #! $SHELL
10142
10143 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10144 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10146 #
10147 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10148 # Free Software Foundation, Inc.
10149 #
10150 # This file is part of GNU Libtool:
10151 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10152 #
10153 # This program is free software; you can redistribute it and/or modify
10154 # it under the terms of the GNU General Public License as published by
10155 # the Free Software Foundation; either version 2 of the License, or
10156 # (at your option) any later version.
10157 #
10158 # This program is distributed in the hope that it will be useful, but
10159 # WITHOUT ANY WARRANTY; without even the implied warranty of
10160 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10161 # General Public License for more details.
10162 #
10163 # You should have received a copy of the GNU General Public License
10164 # along with this program; if not, write to the Free Software
10165 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10166 #
10167 # As a special exception to the GNU General Public License, if you
10168 # distribute this file as part of a program that contains a
10169 # configuration script generated by Autoconf, you may include it under
10170 # the same distribution terms that you use for the rest of that program.
10171
10172 # A sed program that does not truncate output.
10173 SED=$lt_SED
10174
10175 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10176 Xsed="$SED -e 1s/^X//"
10177
10178 # The HP-UX ksh and POSIX shell print the target directory to stdout
10179 # if CDPATH is set.
10180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10181
10182 # The names of the tagged configurations supported by this script.
10183 available_tags=
10184
10185 # ### BEGIN LIBTOOL CONFIG
10186
10187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10188
10189 # Shell to use when invoking shell scripts.
10190 SHELL=$lt_SHELL
10191
10192 # Whether or not to build shared libraries.
10193 build_libtool_libs=$enable_shared
10194
10195 # Whether or not to build static libraries.
10196 build_old_libs=$enable_static
10197
10198 # Whether or not to add -lc for building shared libraries.
10199 build_libtool_need_lc=$archive_cmds_need_lc
10200
10201 # Whether or not to disallow shared libs when runtime libs are static
10202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10203
10204 # Whether or not to optimize for fast installation.
10205 fast_install=$enable_fast_install
10206
10207 # The host system.
10208 host_alias=$host_alias
10209 host=$host
10210 host_os=$host_os
10211
10212 # The build system.
10213 build_alias=$build_alias
10214 build=$build
10215 build_os=$build_os
10216
10217 # An echo program that does not interpret backslashes.
10218 echo=$lt_echo
10219
10220 # The archiver.
10221 AR=$lt_AR
10222 AR_FLAGS=$lt_AR_FLAGS
10223
10224 # A C compiler.
10225 LTCC=$lt_LTCC
10226
10227 # LTCC compiler flags.
10228 LTCFLAGS=$lt_LTCFLAGS
10229
10230 # A language-specific compiler.
10231 CC=$lt_compiler
10232
10233 # Is the compiler the GNU C compiler?
10234 with_gcc=$GCC
10235
10236 # An ERE matcher.
10237 EGREP=$lt_EGREP
10238
10239 # The linker used to build libraries.
10240 LD=$lt_LD
10241
10242 # Whether we need hard or soft links.
10243 LN_S=$lt_LN_S
10244
10245 # A BSD-compatible nm program.
10246 NM=$lt_NM
10247
10248 # A symbol stripping program
10249 STRIP=$lt_STRIP
10250
10251 # Used to examine libraries when file_magic_cmd begins "file"
10252 MAGIC_CMD=$MAGIC_CMD
10253
10254 # Used on cygwin: DLL creation program.
10255 DLLTOOL="$DLLTOOL"
10256
10257 # Used on cygwin: object dumper.
10258 OBJDUMP="$OBJDUMP"
10259
10260 # Used on cygwin: assembler.
10261 AS="$AS"
10262
10263 # The name of the directory that contains temporary libtool files.
10264 objdir=$objdir
10265
10266 # How to create reloadable object files.
10267 reload_flag=$lt_reload_flag
10268 reload_cmds=$lt_reload_cmds
10269
10270 # How to pass a linker flag through the compiler.
10271 wl=$lt_lt_prog_compiler_wl
10272
10273 # Object file suffix (normally "o").
10274 objext="$ac_objext"
10275
10276 # Old archive suffix (normally "a").
10277 libext="$libext"
10278
10279 # Shared library suffix (normally ".so").
10280 shrext_cmds='$shrext_cmds'
10281
10282 # Executable file suffix (normally "").
10283 exeext="$exeext"
10284
10285 # Additional compiler flags for building library objects.
10286 pic_flag=$lt_lt_prog_compiler_pic
10287 pic_mode=$pic_mode
10288
10289 # What is the maximum length of a command?
10290 max_cmd_len=$lt_cv_sys_max_cmd_len
10291
10292 # Does compiler simultaneously support -c and -o options?
10293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10294
10295 # Must we lock files when doing compilation?
10296 need_locks=$lt_need_locks
10297
10298 # Do we need the lib prefix for modules?
10299 need_lib_prefix=$need_lib_prefix
10300
10301 # Do we need a version for libraries?
10302 need_version=$need_version
10303
10304 # Whether dlopen is supported.
10305 dlopen_support=$enable_dlopen
10306
10307 # Whether dlopen of programs is supported.
10308 dlopen_self=$enable_dlopen_self
10309
10310 # Whether dlopen of statically linked programs is supported.
10311 dlopen_self_static=$enable_dlopen_self_static
10312
10313 # Compiler flag to prevent dynamic linking.
10314 link_static_flag=$lt_lt_prog_compiler_static
10315
10316 # Compiler flag to turn off builtin functions.
10317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10318
10319 # Compiler flag to allow reflexive dlopens.
10320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10321
10322 # Compiler flag to generate shared objects directly from archives.
10323 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10324
10325 # Compiler flag to generate thread-safe objects.
10326 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10327
10328 # Library versioning type.
10329 version_type=$version_type
10330
10331 # Format of library name prefix.
10332 libname_spec=$lt_libname_spec
10333
10334 # List of archive names. First name is the real one, the rest are links.
10335 # The last name is the one that the linker finds with -lNAME.
10336 library_names_spec=$lt_library_names_spec
10337
10338 # The coded name of the library, if different from the real name.
10339 soname_spec=$lt_soname_spec
10340
10341 # Commands used to build and install an old-style archive.
10342 RANLIB=$lt_RANLIB
10343 old_archive_cmds=$lt_old_archive_cmds
10344 old_postinstall_cmds=$lt_old_postinstall_cmds
10345 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10346
10347 # Create an old-style archive from a shared archive.
10348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10349
10350 # Create a temporary old-style archive to link instead of a shared archive.
10351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10352
10353 # Commands used to build and install a shared archive.
10354 archive_cmds=$lt_archive_cmds
10355 archive_expsym_cmds=$lt_archive_expsym_cmds
10356 postinstall_cmds=$lt_postinstall_cmds
10357 postuninstall_cmds=$lt_postuninstall_cmds
10358
10359 # Commands used to build a loadable module (assumed same as above if empty)
10360 module_cmds=$lt_module_cmds
10361 module_expsym_cmds=$lt_module_expsym_cmds
10362
10363 # Commands to strip libraries.
10364 old_striplib=$lt_old_striplib
10365 striplib=$lt_striplib
10366
10367 # Dependencies to place before the objects being linked to create a
10368 # shared library.
10369 predep_objects=$lt_predep_objects
10370
10371 # Dependencies to place after the objects being linked to create a
10372 # shared library.
10373 postdep_objects=$lt_postdep_objects
10374
10375 # Dependencies to place before the objects being linked to create a
10376 # shared library.
10377 predeps=$lt_predeps
10378
10379 # Dependencies to place after the objects being linked to create a
10380 # shared library.
10381 postdeps=$lt_postdeps
10382
10383 # The library search path used internally by the compiler when linking
10384 # a shared library.
10385 compiler_lib_search_path=$lt_compiler_lib_search_path
10386
10387 # Method to check whether dependent libraries are shared objects.
10388 deplibs_check_method=$lt_deplibs_check_method
10389
10390 # Command to use when deplibs_check_method == file_magic.
10391 file_magic_cmd=$lt_file_magic_cmd
10392
10393 # Flag that allows shared libraries with undefined symbols to be built.
10394 allow_undefined_flag=$lt_allow_undefined_flag
10395
10396 # Flag that forces no undefined symbols.
10397 no_undefined_flag=$lt_no_undefined_flag
10398
10399 # Commands used to finish a libtool library installation in a directory.
10400 finish_cmds=$lt_finish_cmds
10401
10402 # Same as above, but a single script fragment to be evaled but not shown.
10403 finish_eval=$lt_finish_eval
10404
10405 # Take the output of nm and produce a listing of raw symbols and C names.
10406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10407
10408 # Transform the output of nm in a proper C declaration
10409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10410
10411 # Transform the output of nm in a C name address pair
10412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10413
10414 # This is the shared library runtime path variable.
10415 runpath_var=$runpath_var
10416
10417 # This is the shared library path variable.
10418 shlibpath_var=$shlibpath_var
10419
10420 # Is shlibpath searched before the hard-coded library search path?
10421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10422
10423 # How to hardcode a shared library path into an executable.
10424 hardcode_action=$hardcode_action
10425
10426 # Whether we should hardcode library paths into libraries.
10427 hardcode_into_libs=$hardcode_into_libs
10428
10429 # Flag to hardcode \$libdir into a binary during linking.
10430 # This must work even if \$libdir does not exist.
10431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10432
10433 # If ld is used when linking, flag to hardcode \$libdir into
10434 # a binary during linking. This must work even if \$libdir does
10435 # not exist.
10436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10437
10438 # Whether we need a single -rpath flag with a separated argument.
10439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10440
10441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10442 # resulting binary.
10443 hardcode_direct=$hardcode_direct
10444
10445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10446 # resulting binary.
10447 hardcode_minus_L=$hardcode_minus_L
10448
10449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10450 # the resulting binary.
10451 hardcode_shlibpath_var=$hardcode_shlibpath_var
10452
10453 # Set to yes if building a shared library automatically hardcodes DIR into the library
10454 # and all subsequent libraries and executables linked against it.
10455 hardcode_automatic=$hardcode_automatic
10456
10457 # Variables whose values should be saved in libtool wrapper scripts and
10458 # restored at relink time.
10459 variables_saved_for_relink="$variables_saved_for_relink"
10460
10461 # Whether libtool must link a program against all its dependency libraries.
10462 link_all_deplibs=$link_all_deplibs
10463
10464 # Compile-time system search path for libraries
10465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10466
10467 # Run-time system search path for libraries
10468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10469
10470 # Fix the shell variable \$srcfile for the compiler.
10471 fix_srcfile_path="$fix_srcfile_path"
10472
10473 # Set to yes if exported symbols are required.
10474 always_export_symbols=$always_export_symbols
10475
10476 # The commands to list exported symbols.
10477 export_symbols_cmds=$lt_export_symbols_cmds
10478
10479 # The commands to extract the exported symbol list from a shared archive.
10480 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10481
10482 # Symbols that should not be listed in the preloaded symbols.
10483 exclude_expsyms=$lt_exclude_expsyms
10484
10485 # Symbols that must always be exported.
10486 include_expsyms=$lt_include_expsyms
10487
10488 # ### END LIBTOOL CONFIG
10489
10490 __EOF__
10491
10492
10493 case $host_os in
10494 aix3*)
10495 cat <<\EOF >> "$cfgfile"
10496
10497 # AIX sometimes has problems with the GCC collect2 program. For some
10498 # reason, if we set the COLLECT_NAMES environment variable, the problems
10499 # vanish in a puff of smoke.
10500 if test "X${COLLECT_NAMES+set}" != Xset; then
10501 COLLECT_NAMES=
10502 export COLLECT_NAMES
10503 fi
10504 EOF
10505 ;;
10506 esac
10507
10508 # We use sed instead of cat because bash on DJGPP gets confused if
10509 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10510 # text mode, it properly converts lines to CR/LF. This bash problem
10511 # is reportedly fixed, but why not run on old versions too?
10512 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10513
10514 mv -f "$cfgfile" "$ofile" || \
10515 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10516 chmod +x "$ofile"
10517
10518 else
10519 # If there is no Makefile yet, we rely on a make rule to execute
10520 # `config.status --recheck' to rerun these tests and create the
10521 # libtool script then.
10522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10523 if test -f "$ltmain_in"; then
10524 test -f Makefile && make "$ltmain"
10525 fi
10526 fi
10527
10528
10529 ac_ext=c
10530 ac_cpp='$CPP $CPPFLAGS'
10531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10534
10535 CC="$lt_save_CC"
10536
10537
10538 # Check whether --with-tags was given.
10539 if test "${with_tags+set}" = set; then
10540 withval=$with_tags; tagnames="$withval"
10541 fi
10542
10543
10544 if test -f "$ltmain" && test -n "$tagnames"; then
10545 if test ! -f "${ofile}"; then
10546 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10547 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10548 fi
10549
10550 if test -z "$LTCC"; then
10551 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10552 if test -z "$LTCC"; then
10553 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10554 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10555 else
10556 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10557 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10558 fi
10559 fi
10560 if test -z "$LTCFLAGS"; then
10561 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10562 fi
10563
10564 # Extract list of available tagged configurations in $ofile.
10565 # Note that this assumes the entire list is on one line.
10566 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10567
10568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10569 for tagname in $tagnames; do
10570 IFS="$lt_save_ifs"
10571 # Check whether tagname contains only valid characters
10572 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10573 "") ;;
10574 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10575 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10576 { (exit 1); exit 1; }; }
10577 ;;
10578 esac
10579
10580 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10581 then
10582 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10583 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10584 { (exit 1); exit 1; }; }
10585 fi
10586
10587 # Update the list of available tags.
10588 if test -n "$tagname"; then
10589 echo appending configuration tag \"$tagname\" to $ofile
10590
10591 case $tagname in
10592 CXX)
10593 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10594 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10595 (test "X$CXX" != "Xg++"))) ; then
10596 ac_ext=cpp
10597 ac_cpp='$CXXCPP $CPPFLAGS'
10598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10601
10602
10603
10604
10605 archive_cmds_need_lc_CXX=no
10606 allow_undefined_flag_CXX=
10607 always_export_symbols_CXX=no
10608 archive_expsym_cmds_CXX=
10609 export_dynamic_flag_spec_CXX=
10610 hardcode_direct_CXX=no
10611 hardcode_libdir_flag_spec_CXX=
10612 hardcode_libdir_flag_spec_ld_CXX=
10613 hardcode_libdir_separator_CXX=
10614 hardcode_minus_L_CXX=no
10615 hardcode_shlibpath_var_CXX=unsupported
10616 hardcode_automatic_CXX=no
10617 module_cmds_CXX=
10618 module_expsym_cmds_CXX=
10619 link_all_deplibs_CXX=unknown
10620 old_archive_cmds_CXX=$old_archive_cmds
10621 no_undefined_flag_CXX=
10622 whole_archive_flag_spec_CXX=
10623 enable_shared_with_static_runtimes_CXX=no
10624
10625 # Dependencies to place before and after the object being linked:
10626 predep_objects_CXX=
10627 postdep_objects_CXX=
10628 predeps_CXX=
10629 postdeps_CXX=
10630 compiler_lib_search_path_CXX=
10631
10632 # Source file extension for C++ test sources.
10633 ac_ext=cpp
10634
10635 # Object file extension for compiled C++ test sources.
10636 objext=o
10637 objext_CXX=$objext
10638
10639 # Code to be used in simple compile tests
10640 lt_simple_compile_test_code="int some_variable = 0;\n"
10641
10642 # Code to be used in simple link tests
10643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10644
10645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10646
10647 # If no C compiler was specified, use CC.
10648 LTCC=${LTCC-"$CC"}
10649
10650 # If no C compiler flags were specified, use CFLAGS.
10651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10652
10653 # Allow CC to be a program name with arguments.
10654 compiler=$CC
10655
10656
10657 # save warnings/boilerplate of simple test code
10658 ac_outfile=conftest.$ac_objext
10659 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10661 _lt_compiler_boilerplate=`cat conftest.err`
10662 $rm conftest*
10663
10664 ac_outfile=conftest.$ac_objext
10665 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667 _lt_linker_boilerplate=`cat conftest.err`
10668 $rm conftest*
10669
10670
10671 # Allow CC to be a program name with arguments.
10672 lt_save_CC=$CC
10673 lt_save_LD=$LD
10674 lt_save_GCC=$GCC
10675 GCC=$GXX
10676 lt_save_with_gnu_ld=$with_gnu_ld
10677 lt_save_path_LD=$lt_cv_path_LD
10678 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10679 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10680 else
10681 $as_unset lt_cv_prog_gnu_ld
10682 fi
10683 if test -n "${lt_cv_path_LDCXX+set}"; then
10684 lt_cv_path_LD=$lt_cv_path_LDCXX
10685 else
10686 $as_unset lt_cv_path_LD
10687 fi
10688 test -z "${LDCXX+set}" || LD=$LDCXX
10689 CC=${CXX-"c++"}
10690 compiler=$CC
10691 compiler_CXX=$CC
10692 for cc_temp in $compiler""; do
10693 case $cc_temp in
10694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10696 \-*) ;;
10697 *) break;;
10698 esac
10699 done
10700 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10701
10702
10703 # We don't want -fno-exception wen compiling C++ code, so set the
10704 # no_builtin_flag separately
10705 if test "$GXX" = yes; then
10706 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10707 else
10708 lt_prog_compiler_no_builtin_flag_CXX=
10709 fi
10710
10711 if test "$GXX" = yes; then
10712 # Set up default GNU C++ configuration
10713
10714
10715 # Check whether --with-gnu-ld was given.
10716 if test "${with_gnu_ld+set}" = set; then
10717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10718 else
10719 with_gnu_ld=no
10720 fi
10721
10722 ac_prog=ld
10723 if test "$GCC" = yes; then
10724 # Check if gcc -print-prog-name=ld gives a path.
10725 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10726 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10727 case $host in
10728 *-*-mingw*)
10729 # gcc leaves a trailing carriage return which upsets mingw
10730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10731 *)
10732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10733 esac
10734 case $ac_prog in
10735 # Accept absolute paths.
10736 [\\/]* | ?:[\\/]*)
10737 re_direlt='/[^/][^/]*/\.\./'
10738 # Canonicalize the pathname of ld
10739 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10740 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10741 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10742 done
10743 test -z "$LD" && LD="$ac_prog"
10744 ;;
10745 "")
10746 # If it fails, then pretend we aren't using GCC.
10747 ac_prog=ld
10748 ;;
10749 *)
10750 # If it is relative, then search for the first ld in PATH.
10751 with_gnu_ld=unknown
10752 ;;
10753 esac
10754 elif test "$with_gnu_ld" = yes; then
10755 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10756 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10757 else
10758 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10759 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10760 fi
10761 if test "${lt_cv_path_LD+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 if test -z "$LD"; then
10765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10766 for ac_dir in $PATH; do
10767 IFS="$lt_save_ifs"
10768 test -z "$ac_dir" && ac_dir=.
10769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10770 lt_cv_path_LD="$ac_dir/$ac_prog"
10771 # Check to see if the program is GNU ld. I'd rather use --version,
10772 # but apparently some variants of GNU ld only accept -v.
10773 # Break only if it was the GNU/non-GNU ld that we prefer.
10774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10775 *GNU* | *'with BFD'*)
10776 test "$with_gnu_ld" != no && break
10777 ;;
10778 *)
10779 test "$with_gnu_ld" != yes && break
10780 ;;
10781 esac
10782 fi
10783 done
10784 IFS="$lt_save_ifs"
10785 else
10786 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10787 fi
10788 fi
10789
10790 LD="$lt_cv_path_LD"
10791 if test -n "$LD"; then
10792 { echo "$as_me:$LINENO: result: $LD" >&5
10793 echo "${ECHO_T}$LD" >&6; }
10794 else
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10797 fi
10798 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10799 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10800 { (exit 1); exit 1; }; }
10801 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10802 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10803 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10807 case `$LD -v 2>&1 </dev/null` in
10808 *GNU* | *'with BFD'*)
10809 lt_cv_prog_gnu_ld=yes
10810 ;;
10811 *)
10812 lt_cv_prog_gnu_ld=no
10813 ;;
10814 esac
10815 fi
10816 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10817 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10818 with_gnu_ld=$lt_cv_prog_gnu_ld
10819
10820
10821
10822 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10823 # archiving commands below assume that GNU ld is being used.
10824 if test "$with_gnu_ld" = yes; then
10825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10826 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'
10827
10828 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10830
10831 # If archive_cmds runs LD, not CC, wlarc should be empty
10832 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10833 # investigate it a little bit more. (MM)
10834 wlarc='${wl}'
10835
10836 # ancient GNU ld didn't support --whole-archive et. al.
10837 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10838 grep 'no-whole-archive' > /dev/null; then
10839 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10840 else
10841 whole_archive_flag_spec_CXX=
10842 fi
10843 else
10844 with_gnu_ld=no
10845 wlarc=
10846
10847 # A generic and very simple default shared library creation
10848 # command for GNU C++ for the case where it uses the native
10849 # linker, instead of GNU ld. If possible, this setting should
10850 # overridden to take advantage of the native linker features on
10851 # the platform it is being used on.
10852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10853 fi
10854
10855 # Commands to make compiler produce verbose output that lists
10856 # what "hidden" libraries, object files and flags are used when
10857 # linking a shared library.
10858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10859
10860 else
10861 GXX=no
10862 with_gnu_ld=no
10863 wlarc=
10864 fi
10865
10866 # PORTME: fill in a description of your system's C++ link characteristics
10867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10869 ld_shlibs_CXX=yes
10870 case $host_os in
10871 aix3*)
10872 # FIXME: insert proper C++ library support
10873 ld_shlibs_CXX=no
10874 ;;
10875 aix4* | aix5*)
10876 if test "$host_cpu" = ia64; then
10877 # On IA64, the linker does run time linking by default, so we don't
10878 # have to do anything special.
10879 aix_use_runtimelinking=no
10880 exp_sym_flag='-Bexport'
10881 no_entry_flag=""
10882 else
10883 aix_use_runtimelinking=no
10884
10885 # Test if we are trying to use run time linking or normal
10886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10887 # need to do runtime linking.
10888 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10889 for ld_flag in $LDFLAGS; do
10890 case $ld_flag in
10891 *-brtl*)
10892 aix_use_runtimelinking=yes
10893 break
10894 ;;
10895 esac
10896 done
10897 ;;
10898 esac
10899
10900 exp_sym_flag='-bexport'
10901 no_entry_flag='-bnoentry'
10902 fi
10903
10904 # When large executables or shared objects are built, AIX ld can
10905 # have problems creating the table of contents. If linking a library
10906 # or program results in "error TOC overflow" add -mminimal-toc to
10907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10909
10910 archive_cmds_CXX=''
10911 hardcode_direct_CXX=yes
10912 hardcode_libdir_separator_CXX=':'
10913 link_all_deplibs_CXX=yes
10914
10915 if test "$GXX" = yes; then
10916 case $host_os in aix4.[012]|aix4.[012].*)
10917 # We only want to do this on AIX 4.2 and lower, the check
10918 # below for broken collect2 doesn't work under 4.3+
10919 collect2name=`${CC} -print-prog-name=collect2`
10920 if test -f "$collect2name" && \
10921 strings "$collect2name" | grep resolve_lib_name >/dev/null
10922 then
10923 # We have reworked collect2
10924 hardcode_direct_CXX=yes
10925 else
10926 # We have old collect2
10927 hardcode_direct_CXX=unsupported
10928 # It fails to find uninstalled libraries when the uninstalled
10929 # path is not listed in the libpath. Setting hardcode_minus_L
10930 # to unsupported forces relinking
10931 hardcode_minus_L_CXX=yes
10932 hardcode_libdir_flag_spec_CXX='-L$libdir'
10933 hardcode_libdir_separator_CXX=
10934 fi
10935 ;;
10936 esac
10937 shared_flag='-shared'
10938 if test "$aix_use_runtimelinking" = yes; then
10939 shared_flag="$shared_flag "'${wl}-G'
10940 fi
10941 else
10942 # not using gcc
10943 if test "$host_cpu" = ia64; then
10944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10945 # chokes on -Wl,-G. The following line is correct:
10946 shared_flag='-G'
10947 else
10948 if test "$aix_use_runtimelinking" = yes; then
10949 shared_flag='${wl}-G'
10950 else
10951 shared_flag='${wl}-bM:SRE'
10952 fi
10953 fi
10954 fi
10955
10956 # It seems that -bexpall does not export symbols beginning with
10957 # underscore (_), so it is better to generate a list of symbols to export.
10958 always_export_symbols_CXX=yes
10959 if test "$aix_use_runtimelinking" = yes; then
10960 # Warning - without using the other runtime loading flags (-brtl),
10961 # -berok will link without error, but may produce a broken library.
10962 allow_undefined_flag_CXX='-berok'
10963 # Determine the default libpath from the value encoded in an empty executable.
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970
10971 int
10972 main ()
10973 {
10974
10975 ;
10976 return 0;
10977 }
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_cxx_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest$ac_exeext &&
10996 $as_test_x conftest$ac_exeext; then
10997
10998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10999 }'`
11000 # Check for a 64-bit object if we didn't find anything.
11001 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11002 }'`; fi
11003 else
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007
11008 fi
11009
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11013
11014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11015
11016 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11017 else
11018 if test "$host_cpu" = ia64; then
11019 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11020 allow_undefined_flag_CXX="-z nodefs"
11021 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"
11022 else
11023 # Determine the default libpath from the value encoded in an empty executable.
11024 cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h. */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030
11031 int
11032 main ()
11033 {
11034
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_link") 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_cxx_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest$ac_exeext &&
11056 $as_test_x conftest$ac_exeext; then
11057
11058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11059 }'`
11060 # Check for a 64-bit object if we didn't find anything.
11061 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11062 }'`; fi
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11071 conftest$ac_exeext conftest.$ac_ext
11072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11073
11074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11075 # Warning - without using the other run time loading flags,
11076 # -berok will link without error, but may produce a broken library.
11077 no_undefined_flag_CXX=' ${wl}-bernotok'
11078 allow_undefined_flag_CXX=' ${wl}-berok'
11079 # Exported symbols can be pulled into shared objects from archives
11080 whole_archive_flag_spec_CXX='$convenience'
11081 archive_cmds_need_lc_CXX=yes
11082 # This is similar to how AIX traditionally builds its shared libraries.
11083 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'
11084 fi
11085 fi
11086 ;;
11087
11088 beos*)
11089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11090 allow_undefined_flag_CXX=unsupported
11091 # Joseph Beckenbach <[email protected]> says some releases of gcc
11092 # support --undefined. This deserves some investigation. FIXME
11093 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094 else
11095 ld_shlibs_CXX=no
11096 fi
11097 ;;
11098
11099 chorus*)
11100 case $cc_basename in
11101 *)
11102 # FIXME: insert proper C++ library support
11103 ld_shlibs_CXX=no
11104 ;;
11105 esac
11106 ;;
11107
11108 cygwin* | mingw* | pw32*)
11109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11110 # as there is no search path for DLLs.
11111 hardcode_libdir_flag_spec_CXX='-L$libdir'
11112 allow_undefined_flag_CXX=unsupported
11113 always_export_symbols_CXX=no
11114 enable_shared_with_static_runtimes_CXX=yes
11115
11116 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11117 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'
11118 # If the export-symbols file already is a .def file (1st line
11119 # is EXPORTS), use it as is; otherwise, prepend...
11120 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11121 cp $export_symbols $output_objdir/$soname.def;
11122 else
11123 echo EXPORTS > $output_objdir/$soname.def;
11124 cat $export_symbols >> $output_objdir/$soname.def;
11125 fi~
11126 $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'
11127 else
11128 ld_shlibs_CXX=no
11129 fi
11130 ;;
11131 darwin* | rhapsody*)
11132 case $host_os in
11133 rhapsody* | darwin1.[012])
11134 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11135 ;;
11136 *) # Darwin 1.3 on
11137 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11138 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11139 else
11140 case ${MACOSX_DEPLOYMENT_TARGET} in
11141 10.[012])
11142 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11143 ;;
11144 10.*)
11145 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11146 ;;
11147 esac
11148 fi
11149 ;;
11150 esac
11151 archive_cmds_need_lc_CXX=no
11152 hardcode_direct_CXX=no
11153 hardcode_automatic_CXX=yes
11154 hardcode_shlibpath_var_CXX=unsupported
11155 whole_archive_flag_spec_CXX=''
11156 link_all_deplibs_CXX=yes
11157
11158 if test "$GXX" = yes ; then
11159 lt_int_apple_cc_single_mod=no
11160 output_verbose_link_cmd='echo'
11161 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11162 lt_int_apple_cc_single_mod=yes
11163 fi
11164 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11165 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11166 else
11167 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'
11168 fi
11169 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11170 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11171 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11172 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11173 else
11174 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11175 fi
11176 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11177 else
11178 case $cc_basename in
11179 xlc*)
11180 output_verbose_link_cmd='echo'
11181 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11182 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11184 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11185 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11186 ;;
11187 *)
11188 ld_shlibs_CXX=no
11189 ;;
11190 esac
11191 fi
11192 ;;
11193
11194 dgux*)
11195 case $cc_basename in
11196 ec++*)
11197 # FIXME: insert proper C++ library support
11198 ld_shlibs_CXX=no
11199 ;;
11200 ghcx*)
11201 # Green Hills C++ Compiler
11202 # FIXME: insert proper C++ library support
11203 ld_shlibs_CXX=no
11204 ;;
11205 *)
11206 # FIXME: insert proper C++ library support
11207 ld_shlibs_CXX=no
11208 ;;
11209 esac
11210 ;;
11211 freebsd[12]*)
11212 # C++ shared libraries reported to be fairly broken before switch to ELF
11213 ld_shlibs_CXX=no
11214 ;;
11215 freebsd-elf*)
11216 archive_cmds_need_lc_CXX=no
11217 ;;
11218 freebsd* | dragonfly*)
11219 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11220 # conventions
11221 ld_shlibs_CXX=yes
11222 ;;
11223 gnu*)
11224 ;;
11225 hpux9*)
11226 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11227 hardcode_libdir_separator_CXX=:
11228 export_dynamic_flag_spec_CXX='${wl}-E'
11229 hardcode_direct_CXX=yes
11230 hardcode_minus_L_CXX=yes # Not in the search PATH,
11231 # but as the default
11232 # location of the library.
11233
11234 case $cc_basename in
11235 CC*)
11236 # FIXME: insert proper C++ library support
11237 ld_shlibs_CXX=no
11238 ;;
11239 aCC*)
11240 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'
11241 # Commands to make compiler produce verbose output that lists
11242 # what "hidden" libraries, object files and flags are used when
11243 # linking a shared library.
11244 #
11245 # There doesn't appear to be a way to prevent this compiler from
11246 # explicitly linking system object files so we need to strip them
11247 # from the output so that they don't get included in the library
11248 # dependencies.
11249 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 $list'
11250 ;;
11251 *)
11252 if test "$GXX" = yes; then
11253 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'
11254 else
11255 # FIXME: insert proper C++ library support
11256 ld_shlibs_CXX=no
11257 fi
11258 ;;
11259 esac
11260 ;;
11261 hpux10*|hpux11*)
11262 if test $with_gnu_ld = no; then
11263 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11264 hardcode_libdir_separator_CXX=:
11265
11266 case $host_cpu in
11267 hppa*64*|ia64*)
11268 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11269 ;;
11270 *)
11271 export_dynamic_flag_spec_CXX='${wl}-E'
11272 ;;
11273 esac
11274 fi
11275 case $host_cpu in
11276 hppa*64*|ia64*)
11277 hardcode_direct_CXX=no
11278 hardcode_shlibpath_var_CXX=no
11279 ;;
11280 *)
11281 hardcode_direct_CXX=yes
11282 hardcode_minus_L_CXX=yes # Not in the search PATH,
11283 # but as the default
11284 # location of the library.
11285 ;;
11286 esac
11287
11288 case $cc_basename in
11289 CC*)
11290 # FIXME: insert proper C++ library support
11291 ld_shlibs_CXX=no
11292 ;;
11293 aCC*)
11294 case $host_cpu in
11295 hppa*64*)
11296 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11297 ;;
11298 ia64*)
11299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11300 ;;
11301 *)
11302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11303 ;;
11304 esac
11305 # Commands to make compiler produce verbose output that lists
11306 # what "hidden" libraries, object files and flags are used when
11307 # linking a shared library.
11308 #
11309 # There doesn't appear to be a way to prevent this compiler from
11310 # explicitly linking system object files so we need to strip them
11311 # from the output so that they don't get included in the library
11312 # dependencies.
11313 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 $list'
11314 ;;
11315 *)
11316 if test "$GXX" = yes; then
11317 if test $with_gnu_ld = no; then
11318 case $host_cpu in
11319 hppa*64*)
11320 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321 ;;
11322 ia64*)
11323 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324 ;;
11325 *)
11326 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'
11327 ;;
11328 esac
11329 fi
11330 else
11331 # FIXME: insert proper C++ library support
11332 ld_shlibs_CXX=no
11333 fi
11334 ;;
11335 esac
11336 ;;
11337 interix3*)
11338 hardcode_direct_CXX=no
11339 hardcode_shlibpath_var_CXX=no
11340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11341 export_dynamic_flag_spec_CXX='${wl}-E'
11342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11343 # Instead, shared libraries are loaded at an image base (0x10000000 by
11344 # default) and relocated if they conflict, which is a slow very memory
11345 # consuming and fragmenting process. To avoid this, we pick a random,
11346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11348 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'
11349 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'
11350 ;;
11351 irix5* | irix6*)
11352 case $cc_basename in
11353 CC*)
11354 # SGI C++
11355 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11356
11357 # Archives containing C++ object files must be created using
11358 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11359 # necessary to make sure instantiated templates are included
11360 # in the archive.
11361 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11362 ;;
11363 *)
11364 if test "$GXX" = yes; then
11365 if test "$with_gnu_ld" = no; then
11366 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11367 else
11368 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11369 fi
11370 fi
11371 link_all_deplibs_CXX=yes
11372 ;;
11373 esac
11374 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11375 hardcode_libdir_separator_CXX=:
11376 ;;
11377 linux* | k*bsd*-gnu)
11378 case $cc_basename in
11379 KCC*)
11380 # Kuck and Associates, Inc. (KAI) C++ Compiler
11381
11382 # KCC will only create a shared library if the output file
11383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11384 # to its proper name (with version) after linking.
11385 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'
11386 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'
11387 # Commands to make compiler produce verbose output that lists
11388 # what "hidden" libraries, object files and flags are used when
11389 # linking a shared library.
11390 #
11391 # There doesn't appear to be a way to prevent this compiler from
11392 # explicitly linking system object files so we need to strip them
11393 # from the output so that they don't get included in the library
11394 # dependencies.
11395 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 $list'
11396
11397 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11399
11400 # Archives containing C++ object files must be created using
11401 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11402 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11403 ;;
11404 icpc*)
11405 # Intel C++
11406 with_gnu_ld=yes
11407 # version 8.0 and above of icpc choke on multiply defined symbols
11408 # if we add $predep_objects and $postdep_objects, however 7.1 and
11409 # earlier do not add the objects themselves.
11410 case `$CC -V 2>&1` in
11411 *"Version 7."*)
11412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413 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'
11414 ;;
11415 *) # Version 8.0 or newer
11416 tmp_idyn=
11417 case $host_cpu in
11418 ia64*) tmp_idyn=' -i_dynamic';;
11419 esac
11420 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11421 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'
11422 ;;
11423 esac
11424 archive_cmds_need_lc_CXX=no
11425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11427 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11428 ;;
11429 pgCC*)
11430 # Portland Group C++ compiler
11431 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11432 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'
11433
11434 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11436 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'
11437 ;;
11438 cxx*)
11439 # Compaq C++
11440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11441 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'
11442
11443 runpath_var=LD_RUN_PATH
11444 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11445 hardcode_libdir_separator_CXX=:
11446
11447 # Commands to make compiler produce verbose output that lists
11448 # what "hidden" libraries, object files and flags are used when
11449 # linking a shared library.
11450 #
11451 # There doesn't appear to be a way to prevent this compiler from
11452 # explicitly linking system object files so we need to strip them
11453 # from the output so that they don't get included in the library
11454 # dependencies.
11455 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11456 ;;
11457 esac
11458 ;;
11459 lynxos*)
11460 # FIXME: insert proper C++ library support
11461 ld_shlibs_CXX=no
11462 ;;
11463 m88k*)
11464 # FIXME: insert proper C++ library support
11465 ld_shlibs_CXX=no
11466 ;;
11467 mvs*)
11468 case $cc_basename in
11469 cxx*)
11470 # FIXME: insert proper C++ library support
11471 ld_shlibs_CXX=no
11472 ;;
11473 *)
11474 # FIXME: insert proper C++ library support
11475 ld_shlibs_CXX=no
11476 ;;
11477 esac
11478 ;;
11479 netbsd* | netbsdelf*-gnu)
11480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11481 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11482 wlarc=
11483 hardcode_libdir_flag_spec_CXX='-R$libdir'
11484 hardcode_direct_CXX=yes
11485 hardcode_shlibpath_var_CXX=no
11486 fi
11487 # Workaround some broken pre-1.5 toolchains
11488 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11489 ;;
11490 openbsd2*)
11491 # C++ shared libraries are fairly broken
11492 ld_shlibs_CXX=no
11493 ;;
11494 openbsd*)
11495 hardcode_direct_CXX=yes
11496 hardcode_shlibpath_var_CXX=no
11497 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11498 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11500 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11501 export_dynamic_flag_spec_CXX='${wl}-E'
11502 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11503 fi
11504 output_verbose_link_cmd='echo'
11505 ;;
11506 osf3*)
11507 case $cc_basename in
11508 KCC*)
11509 # Kuck and Associates, Inc. (KAI) C++ Compiler
11510
11511 # KCC will only create a shared library if the output file
11512 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11513 # to its proper name (with version) after linking.
11514 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'
11515
11516 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11517 hardcode_libdir_separator_CXX=:
11518
11519 # Archives containing C++ object files must be created using
11520 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11521 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11522
11523 ;;
11524 RCC*)
11525 # Rational C++ 2.4.1
11526 # FIXME: insert proper C++ library support
11527 ld_shlibs_CXX=no
11528 ;;
11529 cxx*)
11530 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11531 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11532
11533 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11534 hardcode_libdir_separator_CXX=:
11535
11536 # Commands to make compiler produce verbose output that lists
11537 # what "hidden" libraries, object files and flags are used when
11538 # linking a shared library.
11539 #
11540 # There doesn't appear to be a way to prevent this compiler from
11541 # explicitly linking system object files so we need to strip them
11542 # from the output so that they don't get included in the library
11543 # dependencies.
11544 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11545 ;;
11546 *)
11547 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11548 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11549 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11550
11551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11552 hardcode_libdir_separator_CXX=:
11553
11554 # Commands to make compiler produce verbose output that lists
11555 # what "hidden" libraries, object files and flags are used when
11556 # linking a shared library.
11557 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11558
11559 else
11560 # FIXME: insert proper C++ library support
11561 ld_shlibs_CXX=no
11562 fi
11563 ;;
11564 esac
11565 ;;
11566 osf4* | osf5*)
11567 case $cc_basename in
11568 KCC*)
11569 # Kuck and Associates, Inc. (KAI) C++ Compiler
11570
11571 # KCC will only create a shared library if the output file
11572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11573 # to its proper name (with version) after linking.
11574 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'
11575
11576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11577 hardcode_libdir_separator_CXX=:
11578
11579 # Archives containing C++ object files must be created using
11580 # the KAI C++ compiler.
11581 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11582 ;;
11583 RCC*)
11584 # Rational C++ 2.4.1
11585 # FIXME: insert proper C++ library support
11586 ld_shlibs_CXX=no
11587 ;;
11588 cxx*)
11589 allow_undefined_flag_CXX=' -expect_unresolved \*'
11590 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11591 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11592 echo "-hidden">> $lib.exp~
11593 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11594 $rm $lib.exp'
11595
11596 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11597 hardcode_libdir_separator_CXX=:
11598
11599 # Commands to make compiler produce verbose output that lists
11600 # what "hidden" libraries, object files and flags are used when
11601 # linking a shared library.
11602 #
11603 # There doesn't appear to be a way to prevent this compiler from
11604 # explicitly linking system object files so we need to strip them
11605 # from the output so that they don't get included in the library
11606 # dependencies.
11607 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11608 ;;
11609 *)
11610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11611 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11612 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11613
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11615 hardcode_libdir_separator_CXX=:
11616
11617 # Commands to make compiler produce verbose output that lists
11618 # what "hidden" libraries, object files and flags are used when
11619 # linking a shared library.
11620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11621
11622 else
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11625 fi
11626 ;;
11627 esac
11628 ;;
11629 psos*)
11630 # FIXME: insert proper C++ library support
11631 ld_shlibs_CXX=no
11632 ;;
11633 sunos4*)
11634 case $cc_basename in
11635 CC*)
11636 # Sun C++ 4.x
11637 # FIXME: insert proper C++ library support
11638 ld_shlibs_CXX=no
11639 ;;
11640 lcc*)
11641 # Lucid
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645 *)
11646 # FIXME: insert proper C++ library support
11647 ld_shlibs_CXX=no
11648 ;;
11649 esac
11650 ;;
11651 solaris*)
11652 case $cc_basename in
11653 CC*)
11654 # Sun C++ 4.2, 5.x and Centerline C++
11655 archive_cmds_need_lc_CXX=yes
11656 no_undefined_flag_CXX=' -zdefs'
11657 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11658 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11659 $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'
11660
11661 hardcode_libdir_flag_spec_CXX='-R$libdir'
11662 hardcode_shlibpath_var_CXX=no
11663 case $host_os in
11664 solaris2.[0-5] | solaris2.[0-5].*) ;;
11665 *)
11666 # The C++ compiler is used as linker so we must use $wl
11667 # flag to pass the commands to the underlying system
11668 # linker. We must also pass each convience library through
11669 # to the system linker between allextract/defaultextract.
11670 # The C++ compiler will combine linker options so we
11671 # cannot just pass the convience library names through
11672 # without $wl.
11673 # Supported since Solaris 2.6 (maybe 2.5.1?)
11674 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11675 ;;
11676 esac
11677 link_all_deplibs_CXX=yes
11678
11679 output_verbose_link_cmd='echo'
11680
11681 # Archives containing C++ object files must be created using
11682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11683 # necessary to make sure instantiated templates are included
11684 # in the archive.
11685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11686 ;;
11687 gcx*)
11688 # Green Hills C++ Compiler
11689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11690
11691 # The C++ compiler must be used to create the archive.
11692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11693 ;;
11694 *)
11695 # GNU C++ compiler with Solaris linker
11696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11698 if $CC --version | grep -v '^2\.7' > /dev/null; then
11699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11700 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11702
11703 # Commands to make compiler produce verbose output that lists
11704 # what "hidden" libraries, object files and flags are used when
11705 # linking a shared library.
11706 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11707 else
11708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11709 # platform.
11710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11718 fi
11719
11720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11721 fi
11722 ;;
11723 esac
11724 ;;
11725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11726 no_undefined_flag_CXX='${wl}-z,text'
11727 archive_cmds_need_lc_CXX=no
11728 hardcode_shlibpath_var_CXX=no
11729 runpath_var='LD_RUN_PATH'
11730
11731 case $cc_basename in
11732 CC*)
11733 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735 ;;
11736 *)
11737 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11738 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11739 ;;
11740 esac
11741 ;;
11742 sysv5* | sco3.2v5* | sco5v6*)
11743 # Note: We can NOT use -z defs as we might desire, because we do not
11744 # link with -lc, and that would cause any symbols used from libc to
11745 # always be unresolved, which means just about no library would
11746 # ever link correctly. If we're not using GNU ld we use -z text
11747 # though, which does catch some bad symbols but isn't as heavy-handed
11748 # as -z defs.
11749 # For security reasons, it is highly recommended that you always
11750 # use absolute paths for naming shared libraries, and exclude the
11751 # DT_RUNPATH tag from executables and libraries. But doing so
11752 # requires that you compile everything twice, which is a pain.
11753 # So that behaviour is only enabled if SCOABSPATH is set to a
11754 # non-empty value in the environment. Most likely only useful for
11755 # creating official distributions of packages.
11756 # This is a hack until libtool officially supports absolute path
11757 # names for shared libraries.
11758 no_undefined_flag_CXX='${wl}-z,text'
11759 allow_undefined_flag_CXX='${wl}-z,nodefs'
11760 archive_cmds_need_lc_CXX=no
11761 hardcode_shlibpath_var_CXX=no
11762 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11763 hardcode_libdir_separator_CXX=':'
11764 link_all_deplibs_CXX=yes
11765 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11766 runpath_var='LD_RUN_PATH'
11767
11768 case $cc_basename in
11769 CC*)
11770 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772 ;;
11773 *)
11774 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 ;;
11777 esac
11778 ;;
11779 tandem*)
11780 case $cc_basename in
11781 NCC*)
11782 # NonStop-UX NCC 3.20
11783 # FIXME: insert proper C++ library support
11784 ld_shlibs_CXX=no
11785 ;;
11786 *)
11787 # FIXME: insert proper C++ library support
11788 ld_shlibs_CXX=no
11789 ;;
11790 esac
11791 ;;
11792 vxworks*)
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 *)
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11799 ;;
11800 esac
11801 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11802 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11803 test "$ld_shlibs_CXX" = no && can_build_shared=no
11804
11805 GCC_CXX="$GXX"
11806 LD_CXX="$LD"
11807
11808
11809 cat > conftest.$ac_ext <<EOF
11810 class Foo
11811 {
11812 public:
11813 Foo (void) { a = 0; }
11814 private:
11815 int a;
11816 };
11817 EOF
11818
11819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820 (eval $ac_compile) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; then
11824 # Parse the compiler output and extract the necessary
11825 # objects, libraries and library flags.
11826
11827 # Sentinel used to keep track of whether or not we are before
11828 # the conftest object file.
11829 pre_test_object_deps_done=no
11830
11831 # The `*' in the case matches for architectures that use `case' in
11832 # $output_verbose_cmd can trigger glob expansion during the loop
11833 # eval without this substitution.
11834 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11835
11836 for p in `eval $output_verbose_link_cmd`; do
11837 case $p in
11838
11839 -L* | -R* | -l*)
11840 # Some compilers place space between "-{L,R}" and the path.
11841 # Remove the space.
11842 if test $p = "-L" \
11843 || test $p = "-R"; then
11844 prev=$p
11845 continue
11846 else
11847 prev=
11848 fi
11849
11850 if test "$pre_test_object_deps_done" = no; then
11851 case $p in
11852 -L* | -R*)
11853 # Internal compiler library paths should come after those
11854 # provided the user. The postdeps already come after the
11855 # user supplied libs so there is no need to process them.
11856 if test -z "$compiler_lib_search_path_CXX"; then
11857 compiler_lib_search_path_CXX="${prev}${p}"
11858 else
11859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11860 fi
11861 ;;
11862 # The "-l" case would never come before the object being
11863 # linked, so don't bother handling this case.
11864 esac
11865 else
11866 if test -z "$postdeps_CXX"; then
11867 postdeps_CXX="${prev}${p}"
11868 else
11869 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11870 fi
11871 fi
11872 ;;
11873
11874 *.$objext)
11875 # This assumes that the test object file only shows up
11876 # once in the compiler output.
11877 if test "$p" = "conftest.$objext"; then
11878 pre_test_object_deps_done=yes
11879 continue
11880 fi
11881
11882 if test "$pre_test_object_deps_done" = no; then
11883 if test -z "$predep_objects_CXX"; then
11884 predep_objects_CXX="$p"
11885 else
11886 predep_objects_CXX="$predep_objects_CXX $p"
11887 fi
11888 else
11889 if test -z "$postdep_objects_CXX"; then
11890 postdep_objects_CXX="$p"
11891 else
11892 postdep_objects_CXX="$postdep_objects_CXX $p"
11893 fi
11894 fi
11895 ;;
11896
11897 *) ;; # Ignore the rest.
11898
11899 esac
11900 done
11901
11902 # Clean up.
11903 rm -f a.out a.exe
11904 else
11905 echo "libtool.m4: error: problem compiling CXX test program"
11906 fi
11907
11908 $rm -f confest.$objext
11909
11910 # PORTME: override above test on systems where it is broken
11911 case $host_os in
11912 interix3*)
11913 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11914 # hack all around it, let's just trust "g++" to DTRT.
11915 predep_objects_CXX=
11916 postdep_objects_CXX=
11917 postdeps_CXX=
11918 ;;
11919
11920 solaris*)
11921 case $cc_basename in
11922 CC*)
11923 # Adding this requires a known-good setup of shared libraries for
11924 # Sun compiler versions before 5.6, else PIC objects from an old
11925 # archive will be linked into the output, leading to subtle bugs.
11926 postdeps_CXX='-lCstd -lCrun'
11927 ;;
11928 esac
11929 ;;
11930 esac
11931
11932
11933 case " $postdeps_CXX " in
11934 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11935 esac
11936
11937 lt_prog_compiler_wl_CXX=
11938 lt_prog_compiler_pic_CXX=
11939 lt_prog_compiler_static_CXX=
11940
11941 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11942 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11943
11944 # C++ specific cases for pic, static, wl, etc.
11945 if test "$GXX" = yes; then
11946 lt_prog_compiler_wl_CXX='-Wl,'
11947 lt_prog_compiler_static_CXX='-static'
11948
11949 case $host_os in
11950 aix*)
11951 # All AIX code is PIC.
11952 if test "$host_cpu" = ia64; then
11953 # AIX 5 now supports IA64 processor
11954 lt_prog_compiler_static_CXX='-Bstatic'
11955 fi
11956 ;;
11957 amigaos*)
11958 # FIXME: we need at least 68020 code to build shared libraries, but
11959 # adding the `-m68020' flag to GCC prevents building anything better,
11960 # like `-m68040'.
11961 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11962 ;;
11963 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11964 # PIC is the default for these OSes.
11965 ;;
11966 mingw* | os2* | pw32*)
11967 # This hack is so that the source file can tell whether it is being
11968 # built for inclusion in a dll (and should export symbols for example).
11969 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11970 ;;
11971 darwin* | rhapsody*)
11972 # PIC is the default on this platform
11973 # Common symbols not allowed in MH_DYLIB files
11974 lt_prog_compiler_pic_CXX='-fno-common'
11975 ;;
11976 *djgpp*)
11977 # DJGPP does not support shared libraries at all
11978 lt_prog_compiler_pic_CXX=
11979 ;;
11980 interix3*)
11981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11982 # Instead, we relocate shared libraries at runtime.
11983 ;;
11984 sysv4*MP*)
11985 if test -d /usr/nec; then
11986 lt_prog_compiler_pic_CXX=-Kconform_pic
11987 fi
11988 ;;
11989 hpux*)
11990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11991 # not for PA HP-UX.
11992 case $host_cpu in
11993 hppa*64*|ia64*)
11994 ;;
11995 *)
11996 lt_prog_compiler_pic_CXX='-fPIC'
11997 ;;
11998 esac
11999 ;;
12000 *)
12001 lt_prog_compiler_pic_CXX='-fPIC'
12002 ;;
12003 esac
12004 else
12005 case $host_os in
12006 aix4* | aix5*)
12007 # All AIX code is PIC.
12008 if test "$host_cpu" = ia64; then
12009 # AIX 5 now supports IA64 processor
12010 lt_prog_compiler_static_CXX='-Bstatic'
12011 else
12012 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12013 fi
12014 ;;
12015 chorus*)
12016 case $cc_basename in
12017 cxch68*)
12018 # Green Hills C++ Compiler
12019 # _LT_AC_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"
12020 ;;
12021 esac
12022 ;;
12023 darwin*)
12024 # PIC is the default on this platform
12025 # Common symbols not allowed in MH_DYLIB files
12026 case $cc_basename in
12027 xlc*)
12028 lt_prog_compiler_pic_CXX='-qnocommon'
12029 lt_prog_compiler_wl_CXX='-Wl,'
12030 ;;
12031 esac
12032 ;;
12033 dgux*)
12034 case $cc_basename in
12035 ec++*)
12036 lt_prog_compiler_pic_CXX='-KPIC'
12037 ;;
12038 ghcx*)
12039 # Green Hills C++ Compiler
12040 lt_prog_compiler_pic_CXX='-pic'
12041 ;;
12042 *)
12043 ;;
12044 esac
12045 ;;
12046 freebsd* | dragonfly*)
12047 # FreeBSD uses GNU C++
12048 ;;
12049 hpux9* | hpux10* | hpux11*)
12050 case $cc_basename in
12051 CC*)
12052 lt_prog_compiler_wl_CXX='-Wl,'
12053 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12054 if test "$host_cpu" != ia64; then
12055 lt_prog_compiler_pic_CXX='+Z'
12056 fi
12057 ;;
12058 aCC*)
12059 lt_prog_compiler_wl_CXX='-Wl,'
12060 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12061 case $host_cpu in
12062 hppa*64*|ia64*)
12063 # +Z the default
12064 ;;
12065 *)
12066 lt_prog_compiler_pic_CXX='+Z'
12067 ;;
12068 esac
12069 ;;
12070 *)
12071 ;;
12072 esac
12073 ;;
12074 interix*)
12075 # This is c89, which is MS Visual C++ (no shared libs)
12076 # Anyone wants to do a port?
12077 ;;
12078 irix5* | irix6* | nonstopux*)
12079 case $cc_basename in
12080 CC*)
12081 lt_prog_compiler_wl_CXX='-Wl,'
12082 lt_prog_compiler_static_CXX='-non_shared'
12083 # CC pic flag -KPIC is the default.
12084 ;;
12085 *)
12086 ;;
12087 esac
12088 ;;
12089 linux* | k*bsd*-gnu)
12090 case $cc_basename in
12091 KCC*)
12092 # KAI C++ Compiler
12093 lt_prog_compiler_wl_CXX='--backend -Wl,'
12094 lt_prog_compiler_pic_CXX='-fPIC'
12095 ;;
12096 icpc* | ecpc*)
12097 # Intel C++
12098 lt_prog_compiler_wl_CXX='-Wl,'
12099 lt_prog_compiler_pic_CXX='-KPIC'
12100 lt_prog_compiler_static_CXX='-static'
12101 ;;
12102 pgCC*)
12103 # Portland Group C++ compiler.
12104 lt_prog_compiler_wl_CXX='-Wl,'
12105 lt_prog_compiler_pic_CXX='-fpic'
12106 lt_prog_compiler_static_CXX='-Bstatic'
12107 ;;
12108 cxx*)
12109 # Compaq C++
12110 # Make sure the PIC flag is empty. It appears that all Alpha
12111 # Linux and Compaq Tru64 Unix objects are PIC.
12112 lt_prog_compiler_pic_CXX=
12113 lt_prog_compiler_static_CXX='-non_shared'
12114 ;;
12115 *)
12116 ;;
12117 esac
12118 ;;
12119 lynxos*)
12120 ;;
12121 m88k*)
12122 ;;
12123 mvs*)
12124 case $cc_basename in
12125 cxx*)
12126 lt_prog_compiler_pic_CXX='-W c,exportall'
12127 ;;
12128 *)
12129 ;;
12130 esac
12131 ;;
12132 netbsd* | netbsdelf*-gnu)
12133 ;;
12134 osf3* | osf4* | osf5*)
12135 case $cc_basename in
12136 KCC*)
12137 lt_prog_compiler_wl_CXX='--backend -Wl,'
12138 ;;
12139 RCC*)
12140 # Rational C++ 2.4.1
12141 lt_prog_compiler_pic_CXX='-pic'
12142 ;;
12143 cxx*)
12144 # Digital/Compaq C++
12145 lt_prog_compiler_wl_CXX='-Wl,'
12146 # Make sure the PIC flag is empty. It appears that all Alpha
12147 # Linux and Compaq Tru64 Unix objects are PIC.
12148 lt_prog_compiler_pic_CXX=
12149 lt_prog_compiler_static_CXX='-non_shared'
12150 ;;
12151 *)
12152 ;;
12153 esac
12154 ;;
12155 psos*)
12156 ;;
12157 solaris*)
12158 case $cc_basename in
12159 CC*)
12160 # Sun C++ 4.2, 5.x and Centerline C++
12161 lt_prog_compiler_pic_CXX='-KPIC'
12162 lt_prog_compiler_static_CXX='-Bstatic'
12163 lt_prog_compiler_wl_CXX='-Qoption ld '
12164 ;;
12165 gcx*)
12166 # Green Hills C++ Compiler
12167 lt_prog_compiler_pic_CXX='-PIC'
12168 ;;
12169 *)
12170 ;;
12171 esac
12172 ;;
12173 sunos4*)
12174 case $cc_basename in
12175 CC*)
12176 # Sun C++ 4.x
12177 lt_prog_compiler_pic_CXX='-pic'
12178 lt_prog_compiler_static_CXX='-Bstatic'
12179 ;;
12180 lcc*)
12181 # Lucid
12182 lt_prog_compiler_pic_CXX='-pic'
12183 ;;
12184 *)
12185 ;;
12186 esac
12187 ;;
12188 tandem*)
12189 case $cc_basename in
12190 NCC*)
12191 # NonStop-UX NCC 3.20
12192 lt_prog_compiler_pic_CXX='-KPIC'
12193 ;;
12194 *)
12195 ;;
12196 esac
12197 ;;
12198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12199 case $cc_basename in
12200 CC*)
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_pic_CXX='-KPIC'
12203 lt_prog_compiler_static_CXX='-Bstatic'
12204 ;;
12205 esac
12206 ;;
12207 vxworks*)
12208 ;;
12209 *)
12210 lt_prog_compiler_can_build_shared_CXX=no
12211 ;;
12212 esac
12213 fi
12214
12215 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12216 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12217
12218 #
12219 # Check to make sure the PIC flag actually works.
12220 #
12221 if test -n "$lt_prog_compiler_pic_CXX"; then
12222
12223 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12224 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12225 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 lt_prog_compiler_pic_works_CXX=no
12229 ac_outfile=conftest.$ac_objext
12230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12231 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12232 # Insert the option either (1) after the last *FLAGS variable, or
12233 # (2) before a word containing "conftest.", or (3) at the end.
12234 # Note that $ac_compile itself does not contain backslashes and begins
12235 # with a dollar sign (not a hyphen), so the echo should work correctly.
12236 # The option is referenced via a variable to avoid confusing sed.
12237 lt_compile=`echo "$ac_compile" | $SED \
12238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12240 -e 's:$: $lt_compiler_flag:'`
12241 (eval echo "\"\$as_me:12241: $lt_compile\"" >&5)
12242 (eval "$lt_compile" 2>conftest.err)
12243 ac_status=$?
12244 cat conftest.err >&5
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 if (exit $ac_status) && test -s "$ac_outfile"; then
12247 # The compiler can only warn and ignore the option if not recognized
12248 # So say no if there are warnings other than the usual output.
12249 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12252 lt_prog_compiler_pic_works_CXX=yes
12253 fi
12254 fi
12255 $rm conftest*
12256
12257 fi
12258 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12259 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12260
12261 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12262 case $lt_prog_compiler_pic_CXX in
12263 "" | " "*) ;;
12264 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12265 esac
12266 else
12267 lt_prog_compiler_pic_CXX=
12268 lt_prog_compiler_can_build_shared_CXX=no
12269 fi
12270
12271 fi
12272 case $host_os in
12273 # For platforms which do not support PIC, -DPIC is meaningless:
12274 *djgpp*)
12275 lt_prog_compiler_pic_CXX=
12276 ;;
12277 *)
12278 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12279 ;;
12280 esac
12281
12282 #
12283 # Check to make sure the static flag actually works.
12284 #
12285 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12286 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12287 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12288 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 lt_prog_compiler_static_works_CXX=no
12292 save_LDFLAGS="$LDFLAGS"
12293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12294 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12296 # The linker can only warn and ignore the option if not recognized
12297 # So say no if there are warnings
12298 if test -s conftest.err; then
12299 # Append any errors to the config.log.
12300 cat conftest.err 1>&5
12301 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303 if diff conftest.exp conftest.er2 >/dev/null; then
12304 lt_prog_compiler_static_works_CXX=yes
12305 fi
12306 else
12307 lt_prog_compiler_static_works_CXX=yes
12308 fi
12309 fi
12310 $rm conftest*
12311 LDFLAGS="$save_LDFLAGS"
12312
12313 fi
12314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12315 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12316
12317 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12318 :
12319 else
12320 lt_prog_compiler_static_CXX=
12321 fi
12322
12323
12324 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12325 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12326 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 lt_cv_prog_compiler_c_o_CXX=no
12330 $rm -r conftest 2>/dev/null
12331 mkdir conftest
12332 cd conftest
12333 mkdir out
12334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12335
12336 lt_compiler_flag="-o out/conftest2.$ac_objext"
12337 # Insert the option either (1) after the last *FLAGS variable, or
12338 # (2) before a word containing "conftest.", or (3) at the end.
12339 # Note that $ac_compile itself does not contain backslashes and begins
12340 # with a dollar sign (not a hyphen), so the echo should work correctly.
12341 lt_compile=`echo "$ac_compile" | $SED \
12342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12344 -e 's:$: $lt_compiler_flag:'`
12345 (eval echo "\"\$as_me:12345: $lt_compile\"" >&5)
12346 (eval "$lt_compile" 2>out/conftest.err)
12347 ac_status=$?
12348 cat out/conftest.err >&5
12349 echo "$as_me:12349: \$? = $ac_status" >&5
12350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12351 then
12352 # The compiler can only warn and ignore the option if not recognized
12353 # So say no if there are warnings
12354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12357 lt_cv_prog_compiler_c_o_CXX=yes
12358 fi
12359 fi
12360 chmod u+w . 2>&5
12361 $rm conftest*
12362 # SGI C++ compiler will create directory out/ii_files/ for
12363 # template instantiation
12364 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12365 $rm out/* && rmdir out
12366 cd ..
12367 rmdir conftest
12368 $rm conftest*
12369
12370 fi
12371 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12373
12374
12375 hard_links="nottested"
12376 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12377 # do not overwrite the value of need_locks provided by the user
12378 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12380 hard_links=yes
12381 $rm conftest*
12382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12383 touch conftest.a
12384 ln conftest.a conftest.b 2>&5 || hard_links=no
12385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12386 { echo "$as_me:$LINENO: result: $hard_links" >&5
12387 echo "${ECHO_T}$hard_links" >&6; }
12388 if test "$hard_links" = no; then
12389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12391 need_locks=warn
12392 fi
12393 else
12394 need_locks=no
12395 fi
12396
12397 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12399
12400 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12401 case $host_os in
12402 aix4* | aix5*)
12403 # If we're using GNU nm, then we don't want the "-C" option.
12404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12406 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'
12407 else
12408 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'
12409 fi
12410 ;;
12411 pw32*)
12412 export_symbols_cmds_CXX="$ltdll_cmds"
12413 ;;
12414 cygwin* | mingw*)
12415 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'
12416 ;;
12417 linux* | k*bsd*-gnu)
12418 link_all_deplibs_CXX=no
12419 ;;
12420 *)
12421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12422 ;;
12423 esac
12424
12425 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12426 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12427 test "$ld_shlibs_CXX" = no && can_build_shared=no
12428
12429 #
12430 # Do we need to explicitly link libc?
12431 #
12432 case "x$archive_cmds_need_lc_CXX" in
12433 x|xyes)
12434 # Assume -lc should be added
12435 archive_cmds_need_lc_CXX=yes
12436
12437 if test "$enable_shared" = yes && test "$GCC" = yes; then
12438 case $archive_cmds_CXX in
12439 *'~'*)
12440 # FIXME: we may have to deal with multi-command sequences.
12441 ;;
12442 '$CC '*)
12443 # Test whether the compiler implicitly links with -lc since on some
12444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12445 # to ld, don't add -lc before -lgcc.
12446 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12448 $rm conftest*
12449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12450
12451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12452 (eval $ac_compile) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } 2>conftest.err; then
12456 soname=conftest
12457 lib=conftest
12458 libobjs=conftest.$ac_objext
12459 deplibs=
12460 wl=$lt_prog_compiler_wl_CXX
12461 pic_flag=$lt_prog_compiler_pic_CXX
12462 compiler_flags=-v
12463 linker_flags=-v
12464 verstring=
12465 output_objdir=.
12466 libname=conftest
12467 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12468 allow_undefined_flag_CXX=
12469 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12470 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }
12474 then
12475 archive_cmds_need_lc_CXX=no
12476 else
12477 archive_cmds_need_lc_CXX=yes
12478 fi
12479 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12480 else
12481 cat conftest.err 1>&5
12482 fi
12483 $rm conftest*
12484 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12485 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12486 ;;
12487 esac
12488 fi
12489 ;;
12490 esac
12491
12492 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12494 library_names_spec=
12495 libname_spec='lib$name'
12496 soname_spec=
12497 shrext_cmds=".so"
12498 postinstall_cmds=
12499 postuninstall_cmds=
12500 finish_cmds=
12501 finish_eval=
12502 shlibpath_var=
12503 shlibpath_overrides_runpath=unknown
12504 version_type=none
12505 dynamic_linker="$host_os ld.so"
12506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12507 if test "$GCC" = yes; then
12508 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12509 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12510 # if the path contains ";" then we assume it to be the separator
12511 # otherwise default to the standard path separator (i.e. ":") - it is
12512 # assumed that no part of a normal pathname contains ";" but that should
12513 # okay in the real world where ";" in dirpaths is itself problematic.
12514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12515 else
12516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12517 fi
12518 else
12519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12520 fi
12521 need_lib_prefix=unknown
12522 hardcode_into_libs=no
12523
12524 # when you set need_version to no, make sure it does not cause -set_version
12525 # flags to be left without arguments
12526 need_version=unknown
12527
12528 case $host_os in
12529 aix3*)
12530 version_type=linux
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12532 shlibpath_var=LIBPATH
12533
12534 # AIX 3 has no versioning support, so we append a major version to the name.
12535 soname_spec='${libname}${release}${shared_ext}$major'
12536 ;;
12537
12538 aix4* | aix5*)
12539 version_type=linux
12540 need_lib_prefix=no
12541 need_version=no
12542 hardcode_into_libs=yes
12543 if test "$host_cpu" = ia64; then
12544 # AIX 5 supports IA64
12545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 else
12548 # With GCC up to 2.95.x, collect2 would create an import file
12549 # for dependence libraries. The import file would start with
12550 # the line `#! .'. This would cause the generated library to
12551 # depend on `.', always an invalid library. This was fixed in
12552 # development snapshots of GCC prior to 3.0.
12553 case $host_os in
12554 aix4 | aix4.[01] | aix4.[01].*)
12555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12556 echo ' yes '
12557 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12558 :
12559 else
12560 can_build_shared=no
12561 fi
12562 ;;
12563 esac
12564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12565 # soname into executable. Probably we can add versioning support to
12566 # collect2, so additional links can be useful in future.
12567 if test "$aix_use_runtimelinking" = yes; then
12568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12569 # instead of lib<name>.a to let people know that these are not
12570 # typical AIX shared libraries.
12571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572 else
12573 # We preserve .a as extension for shared libraries through AIX4.2
12574 # and later when we are not doing run time linking.
12575 library_names_spec='${libname}${release}.a $libname.a'
12576 soname_spec='${libname}${release}${shared_ext}$major'
12577 fi
12578 shlibpath_var=LIBPATH
12579 fi
12580 ;;
12581
12582 amigaos*)
12583 library_names_spec='$libname.ixlibrary $libname.a'
12584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12585 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'
12586 ;;
12587
12588 beos*)
12589 library_names_spec='${libname}${shared_ext}'
12590 dynamic_linker="$host_os ld.so"
12591 shlibpath_var=LIBRARY_PATH
12592 ;;
12593
12594 bsdi[45]*)
12595 version_type=linux
12596 need_version=no
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598 soname_spec='${libname}${release}${shared_ext}$major'
12599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12603 # the default ld.so.conf also contains /usr/contrib/lib and
12604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12605 # libtool to hard-code these into programs
12606 ;;
12607
12608 cygwin* | mingw* | pw32*)
12609 version_type=windows
12610 shrext_cmds=".dll"
12611 need_version=no
12612 need_lib_prefix=no
12613
12614 case $GCC,$host_os in
12615 yes,cygwin* | yes,mingw* | yes,pw32*)
12616 library_names_spec='$libname.dll.a'
12617 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12618 postinstall_cmds='base_file=`basename \${file}`~
12619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12620 dldir=$destdir/`dirname \$dlpath`~
12621 test -d \$dldir || mkdir -p \$dldir~
12622 $install_prog $dir/$dlname \$dldir/$dlname~
12623 chmod a+x \$dldir/$dlname'
12624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12625 dlpath=$dir/\$dldll~
12626 $rm \$dlpath'
12627 shlibpath_overrides_runpath=yes
12628
12629 case $host_os in
12630 cygwin*)
12631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12633 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12634 ;;
12635 mingw*)
12636 # MinGW DLLs use traditional 'lib' prefix
12637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12638 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12639 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12640 # It is most probably a Windows format PATH printed by
12641 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12642 # path with ; separators, and with drive letters. We can handle the
12643 # drive letters (cygwin fileutils understands them), so leave them,
12644 # especially as we might pass files found there to a mingw objdump,
12645 # which wouldn't understand a cygwinified path. Ahh.
12646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12647 else
12648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12649 fi
12650 ;;
12651 pw32*)
12652 # pw32 DLLs use 'pw' prefix rather than 'lib'
12653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12654 ;;
12655 esac
12656 ;;
12657
12658 *)
12659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12660 ;;
12661 esac
12662 dynamic_linker='Win32 ld.exe'
12663 # FIXME: first we should search . and the directory the executable is in
12664 shlibpath_var=PATH
12665 ;;
12666
12667 darwin* | rhapsody*)
12668 dynamic_linker="$host_os dyld"
12669 version_type=darwin
12670 need_lib_prefix=no
12671 need_version=no
12672 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12673 soname_spec='${libname}${release}${major}$shared_ext'
12674 shlibpath_overrides_runpath=yes
12675 shlibpath_var=DYLD_LIBRARY_PATH
12676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12677 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12678 if test "$GCC" = yes; then
12679 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12680 else
12681 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12682 fi
12683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12684 ;;
12685
12686 dgux*)
12687 version_type=linux
12688 need_lib_prefix=no
12689 need_version=no
12690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 shlibpath_var=LD_LIBRARY_PATH
12693 ;;
12694
12695 freebsd1*)
12696 dynamic_linker=no
12697 ;;
12698
12699 freebsd* | dragonfly*)
12700 # DragonFly does not have aout. When/if they implement a new
12701 # versioning mechanism, adjust this.
12702 if test -x /usr/bin/objformat; then
12703 objformat=`/usr/bin/objformat`
12704 else
12705 case $host_os in
12706 freebsd[123]*) objformat=aout ;;
12707 *) objformat=elf ;;
12708 esac
12709 fi
12710 version_type=freebsd-$objformat
12711 case $version_type in
12712 freebsd-elf*)
12713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12714 need_version=no
12715 need_lib_prefix=no
12716 ;;
12717 freebsd-*)
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12719 need_version=yes
12720 ;;
12721 esac
12722 shlibpath_var=LD_LIBRARY_PATH
12723 case $host_os in
12724 freebsd2*)
12725 shlibpath_overrides_runpath=yes
12726 ;;
12727 freebsd3.[01]* | freebsdelf3.[01]*)
12728 shlibpath_overrides_runpath=yes
12729 hardcode_into_libs=yes
12730 ;;
12731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12733 shlibpath_overrides_runpath=no
12734 hardcode_into_libs=yes
12735 ;;
12736 freebsd*) # from 4.6 on
12737 shlibpath_overrides_runpath=yes
12738 hardcode_into_libs=yes
12739 ;;
12740 esac
12741 ;;
12742
12743 gnu*)
12744 version_type=linux
12745 need_lib_prefix=no
12746 need_version=no
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12748 soname_spec='${libname}${release}${shared_ext}$major'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 hardcode_into_libs=yes
12751 ;;
12752
12753 hpux9* | hpux10* | hpux11*)
12754 # Give a soname corresponding to the major version so that dld.sl refuses to
12755 # link against other versions.
12756 version_type=sunos
12757 need_lib_prefix=no
12758 need_version=no
12759 case $host_cpu in
12760 ia64*)
12761 shrext_cmds='.so'
12762 hardcode_into_libs=yes
12763 dynamic_linker="$host_os dld.so"
12764 shlibpath_var=LD_LIBRARY_PATH
12765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12767 soname_spec='${libname}${release}${shared_ext}$major'
12768 if test "X$HPUX_IA64_MODE" = X32; then
12769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12770 else
12771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12772 fi
12773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12774 ;;
12775 hppa*64*)
12776 shrext_cmds='.sl'
12777 hardcode_into_libs=yes
12778 dynamic_linker="$host_os dld.sl"
12779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782 soname_spec='${libname}${release}${shared_ext}$major'
12783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12785 ;;
12786 *)
12787 shrext_cmds='.sl'
12788 dynamic_linker="$host_os dld.sl"
12789 shlibpath_var=SHLIB_PATH
12790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 ;;
12794 esac
12795 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12796 postinstall_cmds='chmod 555 $lib'
12797 ;;
12798
12799 interix3*)
12800 version_type=linux
12801 need_lib_prefix=no
12802 need_version=no
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 shlibpath_overrides_runpath=no
12808 hardcode_into_libs=yes
12809 ;;
12810
12811 irix5* | irix6* | nonstopux*)
12812 case $host_os in
12813 nonstopux*) version_type=nonstopux ;;
12814 *)
12815 if test "$lt_cv_prog_gnu_ld" = yes; then
12816 version_type=linux
12817 else
12818 version_type=irix
12819 fi ;;
12820 esac
12821 need_lib_prefix=no
12822 need_version=no
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12825 case $host_os in
12826 irix5* | nonstopux*)
12827 libsuff= shlibsuff=
12828 ;;
12829 *)
12830 case $LD in # libtool.m4 will add one of these switches to LD
12831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12832 libsuff= shlibsuff= libmagic=32-bit;;
12833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12834 libsuff=32 shlibsuff=N32 libmagic=N32;;
12835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12837 *) libsuff= shlibsuff= libmagic=never-match;;
12838 esac
12839 ;;
12840 esac
12841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12842 shlibpath_overrides_runpath=no
12843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12845 hardcode_into_libs=yes
12846 ;;
12847
12848 # No shared lib support for Linux oldld, aout, or coff.
12849 linux*oldld* | linux*aout* | linux*coff*)
12850 dynamic_linker=no
12851 ;;
12852
12853 # This must be Linux ELF.
12854 linux* | k*bsd*-gnu)
12855 version_type=linux
12856 need_lib_prefix=no
12857 need_version=no
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859 soname_spec='${libname}${release}${shared_ext}$major'
12860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12861 shlibpath_var=LD_LIBRARY_PATH
12862 shlibpath_overrides_runpath=no
12863 # This implies no fast_install, which is unacceptable.
12864 # Some rework will be needed to allow for fast_install
12865 # before this can be enabled.
12866 hardcode_into_libs=yes
12867
12868 # Append ld.so.conf contents to the search path
12869 if test -f /etc/ld.so.conf; then
12870 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12872 fi
12873
12874 # We used to test for /lib/ld.so.1 and disable shared libraries on
12875 # powerpc, because MkLinux only supported shared libraries with the
12876 # GNU dynamic linker. Since this was broken with cross compilers,
12877 # most powerpc-linux boxes support dynamic linking these days and
12878 # people can always --disable-shared, the test was removed, and we
12879 # assume the GNU/Linux dynamic linker is in use.
12880 dynamic_linker='GNU/Linux ld.so'
12881 ;;
12882
12883 netbsdelf*-gnu)
12884 version_type=linux
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath=no
12891 hardcode_into_libs=yes
12892 dynamic_linker='NetBSD ld.elf_so'
12893 ;;
12894
12895 netbsd*)
12896 version_type=sunos
12897 need_lib_prefix=no
12898 need_version=no
12899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12902 dynamic_linker='NetBSD (a.out) ld.so'
12903 else
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 dynamic_linker='NetBSD ld.elf_so'
12907 fi
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=yes
12910 hardcode_into_libs=yes
12911 ;;
12912
12913 newsos6)
12914 version_type=linux
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=yes
12918 ;;
12919
12920 nto-qnx*)
12921 version_type=linux
12922 need_lib_prefix=no
12923 need_version=no
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 shlibpath_var=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath=yes
12928 ;;
12929
12930 openbsd*)
12931 version_type=sunos
12932 sys_lib_dlsearch_path_spec="/usr/lib"
12933 need_lib_prefix=no
12934 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12935 case $host_os in
12936 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12937 *) need_version=no ;;
12938 esac
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12943 case $host_os in
12944 openbsd2.[89] | openbsd2.[89].*)
12945 shlibpath_overrides_runpath=no
12946 ;;
12947 *)
12948 shlibpath_overrides_runpath=yes
12949 ;;
12950 esac
12951 else
12952 shlibpath_overrides_runpath=yes
12953 fi
12954 ;;
12955
12956 os2*)
12957 libname_spec='$name'
12958 shrext_cmds=".dll"
12959 need_lib_prefix=no
12960 library_names_spec='$libname${shared_ext} $libname.a'
12961 dynamic_linker='OS/2 ld.exe'
12962 shlibpath_var=LIBPATH
12963 ;;
12964
12965 osf3* | osf4* | osf5*)
12966 version_type=osf
12967 need_lib_prefix=no
12968 need_version=no
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12974 ;;
12975
12976 solaris*)
12977 version_type=linux
12978 need_lib_prefix=no
12979 need_version=no
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=yes
12984 hardcode_into_libs=yes
12985 # ldd complains unless libraries are executable
12986 postinstall_cmds='chmod +x $lib'
12987 ;;
12988
12989 sunos4*)
12990 version_type=sunos
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 shlibpath_overrides_runpath=yes
12995 if test "$with_gnu_ld" = yes; then
12996 need_lib_prefix=no
12997 fi
12998 need_version=yes
12999 ;;
13000
13001 sysv4 | sysv4.3*)
13002 version_type=linux
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 case $host_vendor in
13007 sni)
13008 shlibpath_overrides_runpath=no
13009 need_lib_prefix=no
13010 export_dynamic_flag_spec='${wl}-Blargedynsym'
13011 runpath_var=LD_RUN_PATH
13012 ;;
13013 siemens)
13014 need_lib_prefix=no
13015 ;;
13016 motorola)
13017 need_lib_prefix=no
13018 need_version=no
13019 shlibpath_overrides_runpath=no
13020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13021 ;;
13022 esac
13023 ;;
13024
13025 sysv4*MP*)
13026 if test -d /usr/nec ;then
13027 version_type=linux
13028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13029 soname_spec='$libname${shared_ext}.$major'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 fi
13032 ;;
13033
13034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13035 version_type=freebsd-elf
13036 need_lib_prefix=no
13037 need_version=no
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 hardcode_into_libs=yes
13042 if test "$with_gnu_ld" = yes; then
13043 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13044 shlibpath_overrides_runpath=no
13045 else
13046 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13047 shlibpath_overrides_runpath=yes
13048 case $host_os in
13049 sco3.2v5*)
13050 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13051 ;;
13052 esac
13053 fi
13054 sys_lib_dlsearch_path_spec='/usr/lib'
13055 ;;
13056
13057 uts4*)
13058 version_type=linux
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13060 soname_spec='${libname}${release}${shared_ext}$major'
13061 shlibpath_var=LD_LIBRARY_PATH
13062 ;;
13063
13064 *)
13065 dynamic_linker=no
13066 ;;
13067 esac
13068 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13069 echo "${ECHO_T}$dynamic_linker" >&6; }
13070 test "$dynamic_linker" = no && can_build_shared=no
13071
13072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13073 if test "$GCC" = yes; then
13074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13075 fi
13076
13077 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13079 hardcode_action_CXX=
13080 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13081 test -n "$runpath_var_CXX" || \
13082 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13083
13084 # We can hardcode non-existant directories.
13085 if test "$hardcode_direct_CXX" != no &&
13086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13087 # have to relink, otherwise we might link with an installed library
13088 # when we should be linking with a yet-to-be-installed one
13089 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13090 test "$hardcode_minus_L_CXX" != no; then
13091 # Linking always hardcodes the temporary library directory.
13092 hardcode_action_CXX=relink
13093 else
13094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13095 hardcode_action_CXX=immediate
13096 fi
13097 else
13098 # We cannot hardcode anything, or else we can only hardcode existing
13099 # directories.
13100 hardcode_action_CXX=unsupported
13101 fi
13102 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13103 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13104
13105 if test "$hardcode_action_CXX" = relink; then
13106 # Fast installation is not supported
13107 enable_fast_install=no
13108 elif test "$shlibpath_overrides_runpath" = yes ||
13109 test "$enable_shared" = no; then
13110 # Fast installation is not necessary
13111 enable_fast_install=needless
13112 fi
13113
13114
13115 # The else clause should only fire when bootstrapping the
13116 # libtool distribution, otherwise you forgot to ship ltmain.sh
13117 # with your package, and you will get complaints that there are
13118 # no rules to generate ltmain.sh.
13119 if test -f "$ltmain"; then
13120 # See if we are running on zsh, and set the options which allow our commands through
13121 # without removal of \ escapes.
13122 if test -n "${ZSH_VERSION+set}" ; then
13123 setopt NO_GLOB_SUBST
13124 fi
13125 # Now quote all the things that may contain metacharacters while being
13126 # careful not to overquote the AC_SUBSTed values. We take copies of the
13127 # variables and quote the copies for generation of the libtool script.
13128 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13129 SED SHELL STRIP \
13130 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13131 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13132 deplibs_check_method reload_flag reload_cmds need_locks \
13133 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13134 lt_cv_sys_global_symbol_to_c_name_address \
13135 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13136 old_postinstall_cmds old_postuninstall_cmds \
13137 compiler_CXX \
13138 CC_CXX \
13139 LD_CXX \
13140 lt_prog_compiler_wl_CXX \
13141 lt_prog_compiler_pic_CXX \
13142 lt_prog_compiler_static_CXX \
13143 lt_prog_compiler_no_builtin_flag_CXX \
13144 export_dynamic_flag_spec_CXX \
13145 thread_safe_flag_spec_CXX \
13146 whole_archive_flag_spec_CXX \
13147 enable_shared_with_static_runtimes_CXX \
13148 old_archive_cmds_CXX \
13149 old_archive_from_new_cmds_CXX \
13150 predep_objects_CXX \
13151 postdep_objects_CXX \
13152 predeps_CXX \
13153 postdeps_CXX \
13154 compiler_lib_search_path_CXX \
13155 archive_cmds_CXX \
13156 archive_expsym_cmds_CXX \
13157 postinstall_cmds_CXX \
13158 postuninstall_cmds_CXX \
13159 old_archive_from_expsyms_cmds_CXX \
13160 allow_undefined_flag_CXX \
13161 no_undefined_flag_CXX \
13162 export_symbols_cmds_CXX \
13163 hardcode_libdir_flag_spec_CXX \
13164 hardcode_libdir_flag_spec_ld_CXX \
13165 hardcode_libdir_separator_CXX \
13166 hardcode_automatic_CXX \
13167 module_cmds_CXX \
13168 module_expsym_cmds_CXX \
13169 lt_cv_prog_compiler_c_o_CXX \
13170 exclude_expsyms_CXX \
13171 include_expsyms_CXX; do
13172
13173 case $var in
13174 old_archive_cmds_CXX | \
13175 old_archive_from_new_cmds_CXX | \
13176 archive_cmds_CXX | \
13177 archive_expsym_cmds_CXX | \
13178 module_cmds_CXX | \
13179 module_expsym_cmds_CXX | \
13180 old_archive_from_expsyms_cmds_CXX | \
13181 export_symbols_cmds_CXX | \
13182 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13183 postinstall_cmds | postuninstall_cmds | \
13184 old_postinstall_cmds | old_postuninstall_cmds | \
13185 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13186 # Double-quote double-evaled strings.
13187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13188 ;;
13189 *)
13190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13191 ;;
13192 esac
13193 done
13194
13195 case $lt_echo in
13196 *'\$0 --fallback-echo"')
13197 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13198 ;;
13199 esac
13200
13201 cfgfile="$ofile"
13202
13203 cat <<__EOF__ >> "$cfgfile"
13204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13205
13206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13207
13208 # Shell to use when invoking shell scripts.
13209 SHELL=$lt_SHELL
13210
13211 # Whether or not to build shared libraries.
13212 build_libtool_libs=$enable_shared
13213
13214 # Whether or not to build static libraries.
13215 build_old_libs=$enable_static
13216
13217 # Whether or not to add -lc for building shared libraries.
13218 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13219
13220 # Whether or not to disallow shared libs when runtime libs are static
13221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13222
13223 # Whether or not to optimize for fast installation.
13224 fast_install=$enable_fast_install
13225
13226 # The host system.
13227 host_alias=$host_alias
13228 host=$host
13229 host_os=$host_os
13230
13231 # The build system.
13232 build_alias=$build_alias
13233 build=$build
13234 build_os=$build_os
13235
13236 # An echo program that does not interpret backslashes.
13237 echo=$lt_echo
13238
13239 # The archiver.
13240 AR=$lt_AR
13241 AR_FLAGS=$lt_AR_FLAGS
13242
13243 # A C compiler.
13244 LTCC=$lt_LTCC
13245
13246 # LTCC compiler flags.
13247 LTCFLAGS=$lt_LTCFLAGS
13248
13249 # A language-specific compiler.
13250 CC=$lt_compiler_CXX
13251
13252 # Is the compiler the GNU C compiler?
13253 with_gcc=$GCC_CXX
13254
13255 # An ERE matcher.
13256 EGREP=$lt_EGREP
13257
13258 # The linker used to build libraries.
13259 LD=$lt_LD_CXX
13260
13261 # Whether we need hard or soft links.
13262 LN_S=$lt_LN_S
13263
13264 # A BSD-compatible nm program.
13265 NM=$lt_NM
13266
13267 # A symbol stripping program
13268 STRIP=$lt_STRIP
13269
13270 # Used to examine libraries when file_magic_cmd begins "file"
13271 MAGIC_CMD=$MAGIC_CMD
13272
13273 # Used on cygwin: DLL creation program.
13274 DLLTOOL="$DLLTOOL"
13275
13276 # Used on cygwin: object dumper.
13277 OBJDUMP="$OBJDUMP"
13278
13279 # Used on cygwin: assembler.
13280 AS="$AS"
13281
13282 # The name of the directory that contains temporary libtool files.
13283 objdir=$objdir
13284
13285 # How to create reloadable object files.
13286 reload_flag=$lt_reload_flag
13287 reload_cmds=$lt_reload_cmds
13288
13289 # How to pass a linker flag through the compiler.
13290 wl=$lt_lt_prog_compiler_wl_CXX
13291
13292 # Object file suffix (normally "o").
13293 objext="$ac_objext"
13294
13295 # Old archive suffix (normally "a").
13296 libext="$libext"
13297
13298 # Shared library suffix (normally ".so").
13299 shrext_cmds='$shrext_cmds'
13300
13301 # Executable file suffix (normally "").
13302 exeext="$exeext"
13303
13304 # Additional compiler flags for building library objects.
13305 pic_flag=$lt_lt_prog_compiler_pic_CXX
13306 pic_mode=$pic_mode
13307
13308 # What is the maximum length of a command?
13309 max_cmd_len=$lt_cv_sys_max_cmd_len
13310
13311 # Does compiler simultaneously support -c and -o options?
13312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13313
13314 # Must we lock files when doing compilation?
13315 need_locks=$lt_need_locks
13316
13317 # Do we need the lib prefix for modules?
13318 need_lib_prefix=$need_lib_prefix
13319
13320 # Do we need a version for libraries?
13321 need_version=$need_version
13322
13323 # Whether dlopen is supported.
13324 dlopen_support=$enable_dlopen
13325
13326 # Whether dlopen of programs is supported.
13327 dlopen_self=$enable_dlopen_self
13328
13329 # Whether dlopen of statically linked programs is supported.
13330 dlopen_self_static=$enable_dlopen_self_static
13331
13332 # Compiler flag to prevent dynamic linking.
13333 link_static_flag=$lt_lt_prog_compiler_static_CXX
13334
13335 # Compiler flag to turn off builtin functions.
13336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13337
13338 # Compiler flag to allow reflexive dlopens.
13339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13340
13341 # Compiler flag to generate shared objects directly from archives.
13342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13343
13344 # Compiler flag to generate thread-safe objects.
13345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13346
13347 # Library versioning type.
13348 version_type=$version_type
13349
13350 # Format of library name prefix.
13351 libname_spec=$lt_libname_spec
13352
13353 # List of archive names. First name is the real one, the rest are links.
13354 # The last name is the one that the linker finds with -lNAME.
13355 library_names_spec=$lt_library_names_spec
13356
13357 # The coded name of the library, if different from the real name.
13358 soname_spec=$lt_soname_spec
13359
13360 # Commands used to build and install an old-style archive.
13361 RANLIB=$lt_RANLIB
13362 old_archive_cmds=$lt_old_archive_cmds_CXX
13363 old_postinstall_cmds=$lt_old_postinstall_cmds
13364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13365
13366 # Create an old-style archive from a shared archive.
13367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13368
13369 # Create a temporary old-style archive to link instead of a shared archive.
13370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13371
13372 # Commands used to build and install a shared archive.
13373 archive_cmds=$lt_archive_cmds_CXX
13374 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13375 postinstall_cmds=$lt_postinstall_cmds
13376 postuninstall_cmds=$lt_postuninstall_cmds
13377
13378 # Commands used to build a loadable module (assumed same as above if empty)
13379 module_cmds=$lt_module_cmds_CXX
13380 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13381
13382 # Commands to strip libraries.
13383 old_striplib=$lt_old_striplib
13384 striplib=$lt_striplib
13385
13386 # Dependencies to place before the objects being linked to create a
13387 # shared library.
13388 predep_objects=$lt_predep_objects_CXX
13389
13390 # Dependencies to place after the objects being linked to create a
13391 # shared library.
13392 postdep_objects=$lt_postdep_objects_CXX
13393
13394 # Dependencies to place before the objects being linked to create a
13395 # shared library.
13396 predeps=$lt_predeps_CXX
13397
13398 # Dependencies to place after the objects being linked to create a
13399 # shared library.
13400 postdeps=$lt_postdeps_CXX
13401
13402 # The library search path used internally by the compiler when linking
13403 # a shared library.
13404 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13405
13406 # Method to check whether dependent libraries are shared objects.
13407 deplibs_check_method=$lt_deplibs_check_method
13408
13409 # Command to use when deplibs_check_method == file_magic.
13410 file_magic_cmd=$lt_file_magic_cmd
13411
13412 # Flag that allows shared libraries with undefined symbols to be built.
13413 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13414
13415 # Flag that forces no undefined symbols.
13416 no_undefined_flag=$lt_no_undefined_flag_CXX
13417
13418 # Commands used to finish a libtool library installation in a directory.
13419 finish_cmds=$lt_finish_cmds
13420
13421 # Same as above, but a single script fragment to be evaled but not shown.
13422 finish_eval=$lt_finish_eval
13423
13424 # Take the output of nm and produce a listing of raw symbols and C names.
13425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13426
13427 # Transform the output of nm in a proper C declaration
13428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13429
13430 # Transform the output of nm in a C name address pair
13431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13432
13433 # This is the shared library runtime path variable.
13434 runpath_var=$runpath_var
13435
13436 # This is the shared library path variable.
13437 shlibpath_var=$shlibpath_var
13438
13439 # Is shlibpath searched before the hard-coded library search path?
13440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13441
13442 # How to hardcode a shared library path into an executable.
13443 hardcode_action=$hardcode_action_CXX
13444
13445 # Whether we should hardcode library paths into libraries.
13446 hardcode_into_libs=$hardcode_into_libs
13447
13448 # Flag to hardcode \$libdir into a binary during linking.
13449 # This must work even if \$libdir does not exist.
13450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13451
13452 # If ld is used when linking, flag to hardcode \$libdir into
13453 # a binary during linking. This must work even if \$libdir does
13454 # not exist.
13455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13456
13457 # Whether we need a single -rpath flag with a separated argument.
13458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13459
13460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13461 # resulting binary.
13462 hardcode_direct=$hardcode_direct_CXX
13463
13464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13465 # resulting binary.
13466 hardcode_minus_L=$hardcode_minus_L_CXX
13467
13468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13469 # the resulting binary.
13470 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13471
13472 # Set to yes if building a shared library automatically hardcodes DIR into the library
13473 # and all subsequent libraries and executables linked against it.
13474 hardcode_automatic=$hardcode_automatic_CXX
13475
13476 # Variables whose values should be saved in libtool wrapper scripts and
13477 # restored at relink time.
13478 variables_saved_for_relink="$variables_saved_for_relink"
13479
13480 # Whether libtool must link a program against all its dependency libraries.
13481 link_all_deplibs=$link_all_deplibs_CXX
13482
13483 # Compile-time system search path for libraries
13484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13485
13486 # Run-time system search path for libraries
13487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13488
13489 # Fix the shell variable \$srcfile for the compiler.
13490 fix_srcfile_path="$fix_srcfile_path_CXX"
13491
13492 # Set to yes if exported symbols are required.
13493 always_export_symbols=$always_export_symbols_CXX
13494
13495 # The commands to list exported symbols.
13496 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13497
13498 # The commands to extract the exported symbol list from a shared archive.
13499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13500
13501 # Symbols that should not be listed in the preloaded symbols.
13502 exclude_expsyms=$lt_exclude_expsyms_CXX
13503
13504 # Symbols that must always be exported.
13505 include_expsyms=$lt_include_expsyms_CXX
13506
13507 # ### END LIBTOOL TAG CONFIG: $tagname
13508
13509 __EOF__
13510
13511
13512 else
13513 # If there is no Makefile yet, we rely on a make rule to execute
13514 # `config.status --recheck' to rerun these tests and create the
13515 # libtool script then.
13516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13517 if test -f "$ltmain_in"; then
13518 test -f Makefile && make "$ltmain"
13519 fi
13520 fi
13521
13522
13523 ac_ext=c
13524 ac_cpp='$CPP $CPPFLAGS'
13525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13528
13529 CC=$lt_save_CC
13530 LDCXX=$LD
13531 LD=$lt_save_LD
13532 GCC=$lt_save_GCC
13533 with_gnu_ldcxx=$with_gnu_ld
13534 with_gnu_ld=$lt_save_with_gnu_ld
13535 lt_cv_path_LDCXX=$lt_cv_path_LD
13536 lt_cv_path_LD=$lt_save_path_LD
13537 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13538 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13539
13540 else
13541 tagname=""
13542 fi
13543 ;;
13544
13545 F77)
13546 if test -n "$F77" && test "X$F77" != "Xno"; then
13547
13548 ac_ext=f
13549 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13550 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13552
13553
13554 archive_cmds_need_lc_F77=no
13555 allow_undefined_flag_F77=
13556 always_export_symbols_F77=no
13557 archive_expsym_cmds_F77=
13558 export_dynamic_flag_spec_F77=
13559 hardcode_direct_F77=no
13560 hardcode_libdir_flag_spec_F77=
13561 hardcode_libdir_flag_spec_ld_F77=
13562 hardcode_libdir_separator_F77=
13563 hardcode_minus_L_F77=no
13564 hardcode_automatic_F77=no
13565 module_cmds_F77=
13566 module_expsym_cmds_F77=
13567 link_all_deplibs_F77=unknown
13568 old_archive_cmds_F77=$old_archive_cmds
13569 no_undefined_flag_F77=
13570 whole_archive_flag_spec_F77=
13571 enable_shared_with_static_runtimes_F77=no
13572
13573 # Source file extension for f77 test sources.
13574 ac_ext=f
13575
13576 # Object file extension for compiled f77 test sources.
13577 objext=o
13578 objext_F77=$objext
13579
13580 # Code to be used in simple compile tests
13581 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13582
13583 # Code to be used in simple link tests
13584 lt_simple_link_test_code=" program t\n end\n"
13585
13586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13587
13588 # If no C compiler was specified, use CC.
13589 LTCC=${LTCC-"$CC"}
13590
13591 # If no C compiler flags were specified, use CFLAGS.
13592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13593
13594 # Allow CC to be a program name with arguments.
13595 compiler=$CC
13596
13597
13598 # save warnings/boilerplate of simple test code
13599 ac_outfile=conftest.$ac_objext
13600 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13602 _lt_compiler_boilerplate=`cat conftest.err`
13603 $rm conftest*
13604
13605 ac_outfile=conftest.$ac_objext
13606 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13608 _lt_linker_boilerplate=`cat conftest.err`
13609 $rm conftest*
13610
13611
13612 # Allow CC to be a program name with arguments.
13613 lt_save_CC="$CC"
13614 CC=${F77-"f77"}
13615 compiler=$CC
13616 compiler_F77=$CC
13617 for cc_temp in $compiler""; do
13618 case $cc_temp in
13619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13621 \-*) ;;
13622 *) break;;
13623 esac
13624 done
13625 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13626
13627
13628 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13629 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13630 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13631 echo "${ECHO_T}$can_build_shared" >&6; }
13632
13633 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13634 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13635 test "$can_build_shared" = "no" && enable_shared=no
13636
13637 # On AIX, shared libraries and static libraries use the same namespace, and
13638 # are all built from PIC.
13639 case $host_os in
13640 aix3*)
13641 test "$enable_shared" = yes && enable_static=no
13642 if test -n "$RANLIB"; then
13643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13644 postinstall_cmds='$RANLIB $lib'
13645 fi
13646 ;;
13647 aix4* | aix5*)
13648 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13649 test "$enable_shared" = yes && enable_static=no
13650 fi
13651 ;;
13652 esac
13653 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13654 echo "${ECHO_T}$enable_shared" >&6; }
13655
13656 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13657 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13658 # Make sure either enable_shared or enable_static is yes.
13659 test "$enable_shared" = yes || enable_static=yes
13660 { echo "$as_me:$LINENO: result: $enable_static" >&5
13661 echo "${ECHO_T}$enable_static" >&6; }
13662
13663 GCC_F77="$G77"
13664 LD_F77="$LD"
13665
13666 lt_prog_compiler_wl_F77=
13667 lt_prog_compiler_pic_F77=
13668 lt_prog_compiler_static_F77=
13669
13670 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13671 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13672
13673 if test "$GCC" = yes; then
13674 lt_prog_compiler_wl_F77='-Wl,'
13675 lt_prog_compiler_static_F77='-static'
13676
13677 case $host_os in
13678 aix*)
13679 # All AIX code is PIC.
13680 if test "$host_cpu" = ia64; then
13681 # AIX 5 now supports IA64 processor
13682 lt_prog_compiler_static_F77='-Bstatic'
13683 fi
13684 ;;
13685
13686 amigaos*)
13687 # FIXME: we need at least 68020 code to build shared libraries, but
13688 # adding the `-m68020' flag to GCC prevents building anything better,
13689 # like `-m68040'.
13690 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13691 ;;
13692
13693 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13694 # PIC is the default for these OSes.
13695 ;;
13696
13697 mingw* | pw32* | os2*)
13698 # This hack is so that the source file can tell whether it is being
13699 # built for inclusion in a dll (and should export symbols for example).
13700 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13701 ;;
13702
13703 darwin* | rhapsody*)
13704 # PIC is the default on this platform
13705 # Common symbols not allowed in MH_DYLIB files
13706 lt_prog_compiler_pic_F77='-fno-common'
13707 ;;
13708
13709 interix3*)
13710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13711 # Instead, we relocate shared libraries at runtime.
13712 ;;
13713
13714 msdosdjgpp*)
13715 # Just because we use GCC doesn't mean we suddenly get shared libraries
13716 # on systems that don't support them.
13717 lt_prog_compiler_can_build_shared_F77=no
13718 enable_shared=no
13719 ;;
13720
13721 sysv4*MP*)
13722 if test -d /usr/nec; then
13723 lt_prog_compiler_pic_F77=-Kconform_pic
13724 fi
13725 ;;
13726
13727 hpux*)
13728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13729 # not for PA HP-UX.
13730 case $host_cpu in
13731 hppa*64*|ia64*)
13732 # +Z the default
13733 ;;
13734 *)
13735 lt_prog_compiler_pic_F77='-fPIC'
13736 ;;
13737 esac
13738 ;;
13739
13740 *)
13741 lt_prog_compiler_pic_F77='-fPIC'
13742 ;;
13743 esac
13744 else
13745 # PORTME Check for flag to pass linker flags through the system compiler.
13746 case $host_os in
13747 aix*)
13748 lt_prog_compiler_wl_F77='-Wl,'
13749 if test "$host_cpu" = ia64; then
13750 # AIX 5 now supports IA64 processor
13751 lt_prog_compiler_static_F77='-Bstatic'
13752 else
13753 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13754 fi
13755 ;;
13756 darwin*)
13757 # PIC is the default on this platform
13758 # Common symbols not allowed in MH_DYLIB files
13759 case $cc_basename in
13760 xlc*)
13761 lt_prog_compiler_pic_F77='-qnocommon'
13762 lt_prog_compiler_wl_F77='-Wl,'
13763 ;;
13764 esac
13765 ;;
13766
13767 mingw* | pw32* | os2*)
13768 # This hack is so that the source file can tell whether it is being
13769 # built for inclusion in a dll (and should export symbols for example).
13770 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13771 ;;
13772
13773 hpux9* | hpux10* | hpux11*)
13774 lt_prog_compiler_wl_F77='-Wl,'
13775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13776 # not for PA HP-UX.
13777 case $host_cpu in
13778 hppa*64*|ia64*)
13779 # +Z the default
13780 ;;
13781 *)
13782 lt_prog_compiler_pic_F77='+Z'
13783 ;;
13784 esac
13785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13786 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13787 ;;
13788
13789 irix5* | irix6* | nonstopux*)
13790 lt_prog_compiler_wl_F77='-Wl,'
13791 # PIC (with -KPIC) is the default.
13792 lt_prog_compiler_static_F77='-non_shared'
13793 ;;
13794
13795 newsos6)
13796 lt_prog_compiler_pic_F77='-KPIC'
13797 lt_prog_compiler_static_F77='-Bstatic'
13798 ;;
13799
13800 linux* | k*bsd*-gnu)
13801 case $cc_basename in
13802 icc* | ecc*)
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 lt_prog_compiler_pic_F77='-KPIC'
13805 lt_prog_compiler_static_F77='-static'
13806 ;;
13807 pgcc* | pgf77* | pgf90* | pgf95*)
13808 # Portland Group compilers (*not* the Pentium gcc compiler,
13809 # which looks to be a dead project)
13810 lt_prog_compiler_wl_F77='-Wl,'
13811 lt_prog_compiler_pic_F77='-fpic'
13812 lt_prog_compiler_static_F77='-Bstatic'
13813 ;;
13814 ccc*)
13815 lt_prog_compiler_wl_F77='-Wl,'
13816 # All Alpha code is PIC.
13817 lt_prog_compiler_static_F77='-non_shared'
13818 ;;
13819 esac
13820 ;;
13821
13822 osf3* | osf4* | osf5*)
13823 lt_prog_compiler_wl_F77='-Wl,'
13824 # All OSF/1 code is PIC.
13825 lt_prog_compiler_static_F77='-non_shared'
13826 ;;
13827
13828 solaris*)
13829 lt_prog_compiler_pic_F77='-KPIC'
13830 lt_prog_compiler_static_F77='-Bstatic'
13831 case $cc_basename in
13832 f77* | f90* | f95*)
13833 lt_prog_compiler_wl_F77='-Qoption ld ';;
13834 *)
13835 lt_prog_compiler_wl_F77='-Wl,';;
13836 esac
13837 ;;
13838
13839 sunos4*)
13840 lt_prog_compiler_wl_F77='-Qoption ld '
13841 lt_prog_compiler_pic_F77='-PIC'
13842 lt_prog_compiler_static_F77='-Bstatic'
13843 ;;
13844
13845 sysv4 | sysv4.2uw2* | sysv4.3*)
13846 lt_prog_compiler_wl_F77='-Wl,'
13847 lt_prog_compiler_pic_F77='-KPIC'
13848 lt_prog_compiler_static_F77='-Bstatic'
13849 ;;
13850
13851 sysv4*MP*)
13852 if test -d /usr/nec ;then
13853 lt_prog_compiler_pic_F77='-Kconform_pic'
13854 lt_prog_compiler_static_F77='-Bstatic'
13855 fi
13856 ;;
13857
13858 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13859 lt_prog_compiler_wl_F77='-Wl,'
13860 lt_prog_compiler_pic_F77='-KPIC'
13861 lt_prog_compiler_static_F77='-Bstatic'
13862 ;;
13863
13864 unicos*)
13865 lt_prog_compiler_wl_F77='-Wl,'
13866 lt_prog_compiler_can_build_shared_F77=no
13867 ;;
13868
13869 uts4*)
13870 lt_prog_compiler_pic_F77='-pic'
13871 lt_prog_compiler_static_F77='-Bstatic'
13872 ;;
13873
13874 *)
13875 lt_prog_compiler_can_build_shared_F77=no
13876 ;;
13877 esac
13878 fi
13879
13880 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13881 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13882
13883 #
13884 # Check to make sure the PIC flag actually works.
13885 #
13886 if test -n "$lt_prog_compiler_pic_F77"; then
13887
13888 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13890 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 lt_prog_compiler_pic_works_F77=no
13894 ac_outfile=conftest.$ac_objext
13895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13896 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13897 # Insert the option either (1) after the last *FLAGS variable, or
13898 # (2) before a word containing "conftest.", or (3) at the end.
13899 # Note that $ac_compile itself does not contain backslashes and begins
13900 # with a dollar sign (not a hyphen), so the echo should work correctly.
13901 # The option is referenced via a variable to avoid confusing sed.
13902 lt_compile=`echo "$ac_compile" | $SED \
13903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13905 -e 's:$: $lt_compiler_flag:'`
13906 (eval echo "\"\$as_me:13906: $lt_compile\"" >&5)
13907 (eval "$lt_compile" 2>conftest.err)
13908 ac_status=$?
13909 cat conftest.err >&5
13910 echo "$as_me:13910: \$? = $ac_status" >&5
13911 if (exit $ac_status) && test -s "$ac_outfile"; then
13912 # The compiler can only warn and ignore the option if not recognized
13913 # So say no if there are warnings other than the usual output.
13914 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13917 lt_prog_compiler_pic_works_F77=yes
13918 fi
13919 fi
13920 $rm conftest*
13921
13922 fi
13923 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13924 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13925
13926 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13927 case $lt_prog_compiler_pic_F77 in
13928 "" | " "*) ;;
13929 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13930 esac
13931 else
13932 lt_prog_compiler_pic_F77=
13933 lt_prog_compiler_can_build_shared_F77=no
13934 fi
13935
13936 fi
13937 case $host_os in
13938 # For platforms which do not support PIC, -DPIC is meaningless:
13939 *djgpp*)
13940 lt_prog_compiler_pic_F77=
13941 ;;
13942 *)
13943 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13944 ;;
13945 esac
13946
13947 #
13948 # Check to make sure the static flag actually works.
13949 #
13950 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13951 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13952 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13953 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956 lt_prog_compiler_static_works_F77=no
13957 save_LDFLAGS="$LDFLAGS"
13958 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13959 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13960 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13961 # The linker can only warn and ignore the option if not recognized
13962 # So say no if there are warnings
13963 if test -s conftest.err; then
13964 # Append any errors to the config.log.
13965 cat conftest.err 1>&5
13966 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968 if diff conftest.exp conftest.er2 >/dev/null; then
13969 lt_prog_compiler_static_works_F77=yes
13970 fi
13971 else
13972 lt_prog_compiler_static_works_F77=yes
13973 fi
13974 fi
13975 $rm conftest*
13976 LDFLAGS="$save_LDFLAGS"
13977
13978 fi
13979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13980 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13981
13982 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13983 :
13984 else
13985 lt_prog_compiler_static_F77=
13986 fi
13987
13988
13989 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13990 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13991 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 lt_cv_prog_compiler_c_o_F77=no
13995 $rm -r conftest 2>/dev/null
13996 mkdir conftest
13997 cd conftest
13998 mkdir out
13999 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14000
14001 lt_compiler_flag="-o out/conftest2.$ac_objext"
14002 # Insert the option either (1) after the last *FLAGS variable, or
14003 # (2) before a word containing "conftest.", or (3) at the end.
14004 # Note that $ac_compile itself does not contain backslashes and begins
14005 # with a dollar sign (not a hyphen), so the echo should work correctly.
14006 lt_compile=`echo "$ac_compile" | $SED \
14007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14009 -e 's:$: $lt_compiler_flag:'`
14010 (eval echo "\"\$as_me:14010: $lt_compile\"" >&5)
14011 (eval "$lt_compile" 2>out/conftest.err)
14012 ac_status=$?
14013 cat out/conftest.err >&5
14014 echo "$as_me:14014: \$? = $ac_status" >&5
14015 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14016 then
14017 # The compiler can only warn and ignore the option if not recognized
14018 # So say no if there are warnings
14019 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14020 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14021 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14022 lt_cv_prog_compiler_c_o_F77=yes
14023 fi
14024 fi
14025 chmod u+w . 2>&5
14026 $rm conftest*
14027 # SGI C++ compiler will create directory out/ii_files/ for
14028 # template instantiation
14029 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14030 $rm out/* && rmdir out
14031 cd ..
14032 rmdir conftest
14033 $rm conftest*
14034
14035 fi
14036 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14037 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14038
14039
14040 hard_links="nottested"
14041 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14042 # do not overwrite the value of need_locks provided by the user
14043 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14044 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14045 hard_links=yes
14046 $rm conftest*
14047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14048 touch conftest.a
14049 ln conftest.a conftest.b 2>&5 || hard_links=no
14050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14051 { echo "$as_me:$LINENO: result: $hard_links" >&5
14052 echo "${ECHO_T}$hard_links" >&6; }
14053 if test "$hard_links" = no; then
14054 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14055 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14056 need_locks=warn
14057 fi
14058 else
14059 need_locks=no
14060 fi
14061
14062 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14064
14065 runpath_var=
14066 allow_undefined_flag_F77=
14067 enable_shared_with_static_runtimes_F77=no
14068 archive_cmds_F77=
14069 archive_expsym_cmds_F77=
14070 old_archive_From_new_cmds_F77=
14071 old_archive_from_expsyms_cmds_F77=
14072 export_dynamic_flag_spec_F77=
14073 whole_archive_flag_spec_F77=
14074 thread_safe_flag_spec_F77=
14075 hardcode_libdir_flag_spec_F77=
14076 hardcode_libdir_flag_spec_ld_F77=
14077 hardcode_libdir_separator_F77=
14078 hardcode_direct_F77=no
14079 hardcode_minus_L_F77=no
14080 hardcode_shlibpath_var_F77=unsupported
14081 link_all_deplibs_F77=unknown
14082 hardcode_automatic_F77=no
14083 module_cmds_F77=
14084 module_expsym_cmds_F77=
14085 always_export_symbols_F77=no
14086 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14087 # include_expsyms should be a list of space-separated symbols to be *always*
14088 # included in the symbol list
14089 include_expsyms_F77=
14090 # exclude_expsyms can be an extended regexp of symbols to exclude
14091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14093 # as well as any symbol that contains `d'.
14094 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14096 # platforms (ab)use it in PIC code, but their linkers get confused if
14097 # the symbol is explicitly referenced. Since portable code cannot
14098 # rely on this symbol name, it's probably fine to never include it in
14099 # preloaded symbol tables.
14100 extract_expsyms_cmds=
14101 # Just being paranoid about ensuring that cc_basename is set.
14102 for cc_temp in $compiler""; do
14103 case $cc_temp in
14104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14106 \-*) ;;
14107 *) break;;
14108 esac
14109 done
14110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14111
14112 case $host_os in
14113 cygwin* | mingw* | pw32*)
14114 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14115 # When not using gcc, we currently assume that we are using
14116 # Microsoft Visual C++.
14117 if test "$GCC" != yes; then
14118 with_gnu_ld=no
14119 fi
14120 ;;
14121 interix*)
14122 # we just hope/assume this is gcc and not c89 (= MSVC++)
14123 with_gnu_ld=yes
14124 ;;
14125 openbsd*)
14126 with_gnu_ld=no
14127 ;;
14128 esac
14129
14130 ld_shlibs_F77=yes
14131 if test "$with_gnu_ld" = yes; then
14132 # If archive_cmds runs LD, not CC, wlarc should be empty
14133 wlarc='${wl}'
14134
14135 # Set some defaults for GNU ld with shared library support. These
14136 # are reset later if shared libraries are not supported. Putting them
14137 # here allows them to be overridden if necessary.
14138 runpath_var=LD_RUN_PATH
14139 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14140 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14141 # ancient GNU ld didn't support --whole-archive et. al.
14142 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14143 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14144 else
14145 whole_archive_flag_spec_F77=
14146 fi
14147 supports_anon_versioning=no
14148 case `$LD -v 2>/dev/null` in
14149 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14150 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14151 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14152 *\ 2.11.*) ;; # other 2.11 versions
14153 *) supports_anon_versioning=yes ;;
14154 esac
14155
14156 # See if GNU ld supports shared libraries.
14157 case $host_os in
14158 aix3* | aix4* | aix5*)
14159 # On AIX/PPC, the GNU linker is very broken
14160 if test "$host_cpu" != ia64; then
14161 ld_shlibs_F77=no
14162 cat <<EOF 1>&2
14163
14164 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14165 *** to be unable to reliably create shared libraries on AIX.
14166 *** Therefore, libtool is disabling shared libraries support. If you
14167 *** really care for shared libraries, you may want to modify your PATH
14168 *** so that a non-GNU linker is found, and then restart.
14169
14170 EOF
14171 fi
14172 ;;
14173
14174 amigaos*)
14175 archive_cmds_F77='$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)'
14176 hardcode_libdir_flag_spec_F77='-L$libdir'
14177 hardcode_minus_L_F77=yes
14178
14179 # Samuel A. Falvo II <[email protected]> reports
14180 # that the semantics of dynamic libraries on AmigaOS, at least up
14181 # to version 4, is to share data among multiple programs linked
14182 # with the same dynamic library. Since this doesn't match the
14183 # behavior of shared libraries on other platforms, we can't use
14184 # them.
14185 ld_shlibs_F77=no
14186 ;;
14187
14188 beos*)
14189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14190 allow_undefined_flag_F77=unsupported
14191 # Joseph Beckenbach <[email protected]> says some releases of gcc
14192 # support --undefined. This deserves some investigation. FIXME
14193 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14194 else
14195 ld_shlibs_F77=no
14196 fi
14197 ;;
14198
14199 cygwin* | mingw* | pw32*)
14200 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14201 # as there is no search path for DLLs.
14202 hardcode_libdir_flag_spec_F77='-L$libdir'
14203 allow_undefined_flag_F77=unsupported
14204 always_export_symbols_F77=no
14205 enable_shared_with_static_runtimes_F77=yes
14206 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14207
14208 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14209 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14210 # If the export-symbols file already is a .def file (1st line
14211 # is EXPORTS), use it as is; otherwise, prepend...
14212 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14213 cp $export_symbols $output_objdir/$soname.def;
14214 else
14215 echo EXPORTS > $output_objdir/$soname.def;
14216 cat $export_symbols >> $output_objdir/$soname.def;
14217 fi~
14218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14219 else
14220 ld_shlibs_F77=no
14221 fi
14222 ;;
14223
14224 interix3*)
14225 hardcode_direct_F77=no
14226 hardcode_shlibpath_var_F77=no
14227 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14228 export_dynamic_flag_spec_F77='${wl}-E'
14229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14230 # Instead, shared libraries are loaded at an image base (0x10000000 by
14231 # default) and relocated if they conflict, which is a slow very memory
14232 # consuming and fragmenting process. To avoid this, we pick a random,
14233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14235 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14236 archive_expsym_cmds_F77='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'
14237 ;;
14238
14239 linux* | k*bsd*-gnu)
14240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14241 tmp_addflag=
14242 case $cc_basename,$host_cpu in
14243 pgcc*) # Portland Group C compiler
14244 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14245 tmp_addflag=' $pic_flag'
14246 ;;
14247 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14248 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14249 tmp_addflag=' $pic_flag -Mnomain' ;;
14250 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14251 tmp_addflag=' -i_dynamic' ;;
14252 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14253 tmp_addflag=' -i_dynamic -nofor_main' ;;
14254 ifc* | ifort*) # Intel Fortran compiler
14255 tmp_addflag=' -nofor_main' ;;
14256 esac
14257 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258
14259 if test $supports_anon_versioning = yes; then
14260 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14262 $echo "local: *; };" >> $output_objdir/$libname.ver~
14263 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14264 fi
14265 link_all_deplibs_F77=no
14266 else
14267 ld_shlibs_F77=no
14268 fi
14269 ;;
14270
14271 netbsd* | netbsdelf*-gnu)
14272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14273 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14274 wlarc=
14275 else
14276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14277 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14278 fi
14279 ;;
14280
14281 solaris*)
14282 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14283 ld_shlibs_F77=no
14284 cat <<EOF 1>&2
14285
14286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14287 *** create shared libraries on Solaris systems. Therefore, libtool
14288 *** is disabling shared libraries support. We urge you to upgrade GNU
14289 *** binutils to release 2.9.1 or newer. Another option is to modify
14290 *** your PATH or compiler configuration so that the native linker is
14291 *** used, and then restart.
14292
14293 EOF
14294 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14295 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14296 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14297 else
14298 ld_shlibs_F77=no
14299 fi
14300 ;;
14301
14302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14303 case `$LD -v 2>&1` in
14304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14305 ld_shlibs_F77=no
14306 cat <<_LT_EOF 1>&2
14307
14308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14309 *** reliably create shared libraries on SCO systems. Therefore, libtool
14310 *** is disabling shared libraries support. We urge you to upgrade GNU
14311 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14312 *** your PATH or compiler configuration so that the native linker is
14313 *** used, and then restart.
14314
14315 _LT_EOF
14316 ;;
14317 *)
14318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14319 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14322 else
14323 ld_shlibs_F77=no
14324 fi
14325 ;;
14326 esac
14327 ;;
14328
14329 sunos4*)
14330 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14331 wlarc=
14332 hardcode_direct_F77=yes
14333 hardcode_shlibpath_var_F77=no
14334 ;;
14335
14336 *)
14337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14338 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14339 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14340 else
14341 ld_shlibs_F77=no
14342 fi
14343 ;;
14344 esac
14345
14346 if test "$ld_shlibs_F77" = no; then
14347 runpath_var=
14348 hardcode_libdir_flag_spec_F77=
14349 export_dynamic_flag_spec_F77=
14350 whole_archive_flag_spec_F77=
14351 fi
14352 else
14353 # PORTME fill in a description of your system's linker (not GNU ld)
14354 case $host_os in
14355 aix3*)
14356 allow_undefined_flag_F77=unsupported
14357 always_export_symbols_F77=yes
14358 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14359 # Note: this linker hardcodes the directories in LIBPATH if there
14360 # are no directories specified by -L.
14361 hardcode_minus_L_F77=yes
14362 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14363 # Neither direct hardcoding nor static linking is supported with a
14364 # broken collect2.
14365 hardcode_direct_F77=unsupported
14366 fi
14367 ;;
14368
14369 aix4* | aix5*)
14370 if test "$host_cpu" = ia64; then
14371 # On IA64, the linker does run time linking by default, so we don't
14372 # have to do anything special.
14373 aix_use_runtimelinking=no
14374 exp_sym_flag='-Bexport'
14375 no_entry_flag=""
14376 else
14377 # If we're using GNU nm, then we don't want the "-C" option.
14378 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14379 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14380 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14381 else
14382 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14383 fi
14384 aix_use_runtimelinking=no
14385
14386 # Test if we are trying to use run time linking or normal
14387 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14388 # need to do runtime linking.
14389 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14390 for ld_flag in $LDFLAGS; do
14391 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14392 aix_use_runtimelinking=yes
14393 break
14394 fi
14395 done
14396 ;;
14397 esac
14398
14399 exp_sym_flag='-bexport'
14400 no_entry_flag='-bnoentry'
14401 fi
14402
14403 # When large executables or shared objects are built, AIX ld can
14404 # have problems creating the table of contents. If linking a library
14405 # or program results in "error TOC overflow" add -mminimal-toc to
14406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14408
14409 archive_cmds_F77=''
14410 hardcode_direct_F77=yes
14411 hardcode_libdir_separator_F77=':'
14412 link_all_deplibs_F77=yes
14413
14414 if test "$GCC" = yes; then
14415 case $host_os in aix4.[012]|aix4.[012].*)
14416 # We only want to do this on AIX 4.2 and lower, the check
14417 # below for broken collect2 doesn't work under 4.3+
14418 collect2name=`${CC} -print-prog-name=collect2`
14419 if test -f "$collect2name" && \
14420 strings "$collect2name" | grep resolve_lib_name >/dev/null
14421 then
14422 # We have reworked collect2
14423 hardcode_direct_F77=yes
14424 else
14425 # We have old collect2
14426 hardcode_direct_F77=unsupported
14427 # It fails to find uninstalled libraries when the uninstalled
14428 # path is not listed in the libpath. Setting hardcode_minus_L
14429 # to unsupported forces relinking
14430 hardcode_minus_L_F77=yes
14431 hardcode_libdir_flag_spec_F77='-L$libdir'
14432 hardcode_libdir_separator_F77=
14433 fi
14434 ;;
14435 esac
14436 shared_flag='-shared'
14437 if test "$aix_use_runtimelinking" = yes; then
14438 shared_flag="$shared_flag "'${wl}-G'
14439 fi
14440 else
14441 # not using gcc
14442 if test "$host_cpu" = ia64; then
14443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14444 # chokes on -Wl,-G. The following line is correct:
14445 shared_flag='-G'
14446 else
14447 if test "$aix_use_runtimelinking" = yes; then
14448 shared_flag='${wl}-G'
14449 else
14450 shared_flag='${wl}-bM:SRE'
14451 fi
14452 fi
14453 fi
14454
14455 # It seems that -bexpall does not export symbols beginning with
14456 # underscore (_), so it is better to generate a list of symbols to export.
14457 always_export_symbols_F77=yes
14458 if test "$aix_use_runtimelinking" = yes; then
14459 # Warning - without using the other runtime loading flags (-brtl),
14460 # -berok will link without error, but may produce a broken library.
14461 allow_undefined_flag_F77='-berok'
14462 # Determine the default libpath from the value encoded in an empty executable.
14463 cat >conftest.$ac_ext <<_ACEOF
14464 program main
14465
14466 end
14467 _ACEOF
14468 rm -f conftest.$ac_objext conftest$ac_exeext
14469 if { (ac_try="$ac_link"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_link") 2>conftest.er1
14476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_f77_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest$ac_exeext &&
14485 $as_test_x conftest$ac_exeext; then
14486
14487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14488 }'`
14489 # Check for a 64-bit object if we didn't find anything.
14490 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14491 }'`; fi
14492 else
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496
14497 fi
14498
14499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14500 conftest$ac_exeext conftest.$ac_ext
14501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14502
14503 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14504 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14505 else
14506 if test "$host_cpu" = ia64; then
14507 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14508 allow_undefined_flag_F77="-z nodefs"
14509 archive_expsym_cmds_F77="\$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"
14510 else
14511 # Determine the default libpath from the value encoded in an empty executable.
14512 cat >conftest.$ac_ext <<_ACEOF
14513 program main
14514
14515 end
14516 _ACEOF
14517 rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (ac_try="$ac_link"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_link") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } && {
14531 test -z "$ac_f77_werror_flag" ||
14532 test ! -s conftest.err
14533 } && test -s conftest$ac_exeext &&
14534 $as_test_x conftest$ac_exeext; then
14535
14536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14537 }'`
14538 # Check for a 64-bit object if we didn't find anything.
14539 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14540 }'`; fi
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545
14546 fi
14547
14548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14549 conftest$ac_exeext conftest.$ac_ext
14550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14551
14552 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14553 # Warning - without using the other run time loading flags,
14554 # -berok will link without error, but may produce a broken library.
14555 no_undefined_flag_F77=' ${wl}-bernotok'
14556 allow_undefined_flag_F77=' ${wl}-berok'
14557 # Exported symbols can be pulled into shared objects from archives
14558 whole_archive_flag_spec_F77='$convenience'
14559 archive_cmds_need_lc_F77=yes
14560 # This is similar to how AIX traditionally builds its shared libraries.
14561 archive_expsym_cmds_F77="\$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'
14562 fi
14563 fi
14564 ;;
14565
14566 amigaos*)
14567 archive_cmds_F77='$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)'
14568 hardcode_libdir_flag_spec_F77='-L$libdir'
14569 hardcode_minus_L_F77=yes
14570 # see comment about different semantics on the GNU ld section
14571 ld_shlibs_F77=no
14572 ;;
14573
14574 bsdi[45]*)
14575 export_dynamic_flag_spec_F77=-rdynamic
14576 ;;
14577
14578 cygwin* | mingw* | pw32*)
14579 # When not using gcc, we currently assume that we are using
14580 # Microsoft Visual C++.
14581 # hardcode_libdir_flag_spec is actually meaningless, as there is
14582 # no search path for DLLs.
14583 hardcode_libdir_flag_spec_F77=' '
14584 allow_undefined_flag_F77=unsupported
14585 # Tell ltmain to make .lib files, not .a files.
14586 libext=lib
14587 # Tell ltmain to make .dll files, not .so files.
14588 shrext_cmds=".dll"
14589 # FIXME: Setting linknames here is a bad hack.
14590 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14591 # The linker will automatically build a .lib file if we build a DLL.
14592 old_archive_From_new_cmds_F77='true'
14593 # FIXME: Should let the user specify the lib program.
14594 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14595 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14596 enable_shared_with_static_runtimes_F77=yes
14597 ;;
14598
14599 darwin* | rhapsody*)
14600 case $host_os in
14601 rhapsody* | darwin1.[012])
14602 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14603 ;;
14604 *) # Darwin 1.3 on
14605 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14606 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14607 else
14608 case ${MACOSX_DEPLOYMENT_TARGET} in
14609 10.[012])
14610 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14611 ;;
14612 10.*)
14613 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14614 ;;
14615 esac
14616 fi
14617 ;;
14618 esac
14619 archive_cmds_need_lc_F77=no
14620 hardcode_direct_F77=no
14621 hardcode_automatic_F77=yes
14622 hardcode_shlibpath_var_F77=unsupported
14623 whole_archive_flag_spec_F77=''
14624 link_all_deplibs_F77=yes
14625 if test "$GCC" = yes ; then
14626 output_verbose_link_cmd='echo'
14627 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14628 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14630 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14631 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14632 else
14633 case $cc_basename in
14634 xlc*)
14635 output_verbose_link_cmd='echo'
14636 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14637 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14639 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14640 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14641 ;;
14642 *)
14643 ld_shlibs_F77=no
14644 ;;
14645 esac
14646 fi
14647 ;;
14648
14649 dgux*)
14650 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14651 hardcode_libdir_flag_spec_F77='-L$libdir'
14652 hardcode_shlibpath_var_F77=no
14653 ;;
14654
14655 freebsd1*)
14656 ld_shlibs_F77=no
14657 ;;
14658
14659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14660 # support. Future versions do this automatically, but an explicit c++rt0.o
14661 # does not break anything, and helps significantly (at the cost of a little
14662 # extra space).
14663 freebsd2.2*)
14664 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14665 hardcode_libdir_flag_spec_F77='-R$libdir'
14666 hardcode_direct_F77=yes
14667 hardcode_shlibpath_var_F77=no
14668 ;;
14669
14670 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14671 freebsd2*)
14672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14673 hardcode_direct_F77=yes
14674 hardcode_minus_L_F77=yes
14675 hardcode_shlibpath_var_F77=no
14676 ;;
14677
14678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14679 freebsd* | dragonfly*)
14680 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14681 hardcode_libdir_flag_spec_F77='-R$libdir'
14682 hardcode_direct_F77=yes
14683 hardcode_shlibpath_var_F77=no
14684 ;;
14685
14686 hpux9*)
14687 if test "$GCC" = yes; then
14688 archive_cmds_F77='$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'
14689 else
14690 archive_cmds_F77='$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'
14691 fi
14692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14693 hardcode_libdir_separator_F77=:
14694 hardcode_direct_F77=yes
14695
14696 # hardcode_minus_L: Not really in the search PATH,
14697 # but as the default location of the library.
14698 hardcode_minus_L_F77=yes
14699 export_dynamic_flag_spec_F77='${wl}-E'
14700 ;;
14701
14702 hpux10*)
14703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14704 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705 else
14706 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14707 fi
14708 if test "$with_gnu_ld" = no; then
14709 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14710 hardcode_libdir_separator_F77=:
14711
14712 hardcode_direct_F77=yes
14713 export_dynamic_flag_spec_F77='${wl}-E'
14714
14715 # hardcode_minus_L: Not really in the search PATH,
14716 # but as the default location of the library.
14717 hardcode_minus_L_F77=yes
14718 fi
14719 ;;
14720
14721 hpux11*)
14722 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14723 case $host_cpu in
14724 hppa*64*)
14725 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 ;;
14727 ia64*)
14728 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14729 ;;
14730 *)
14731 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14732 ;;
14733 esac
14734 else
14735 case $host_cpu in
14736 hppa*64*)
14737 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 ;;
14739 ia64*)
14740 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14741 ;;
14742 *)
14743 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14744 ;;
14745 esac
14746 fi
14747 if test "$with_gnu_ld" = no; then
14748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14749 hardcode_libdir_separator_F77=:
14750
14751 case $host_cpu in
14752 hppa*64*|ia64*)
14753 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14754 hardcode_direct_F77=no
14755 hardcode_shlibpath_var_F77=no
14756 ;;
14757 *)
14758 hardcode_direct_F77=yes
14759 export_dynamic_flag_spec_F77='${wl}-E'
14760
14761 # hardcode_minus_L: Not really in the search PATH,
14762 # but as the default location of the library.
14763 hardcode_minus_L_F77=yes
14764 ;;
14765 esac
14766 fi
14767 ;;
14768
14769 irix5* | irix6* | nonstopux*)
14770 if test "$GCC" = yes; then
14771 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14772 else
14773 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14774 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14775 fi
14776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14777 hardcode_libdir_separator_F77=:
14778 link_all_deplibs_F77=yes
14779 ;;
14780
14781 netbsd* | netbsdelf*-gnu)
14782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14784 else
14785 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14786 fi
14787 hardcode_libdir_flag_spec_F77='-R$libdir'
14788 hardcode_direct_F77=yes
14789 hardcode_shlibpath_var_F77=no
14790 ;;
14791
14792 newsos6)
14793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_direct_F77=yes
14795 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14796 hardcode_libdir_separator_F77=:
14797 hardcode_shlibpath_var_F77=no
14798 ;;
14799
14800 openbsd*)
14801 hardcode_direct_F77=yes
14802 hardcode_shlibpath_var_F77=no
14803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14806 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14807 export_dynamic_flag_spec_F77='${wl}-E'
14808 else
14809 case $host_os in
14810 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14811 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812 hardcode_libdir_flag_spec_F77='-R$libdir'
14813 ;;
14814 *)
14815 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14816 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14817 ;;
14818 esac
14819 fi
14820 ;;
14821
14822 os2*)
14823 hardcode_libdir_flag_spec_F77='-L$libdir'
14824 hardcode_minus_L_F77=yes
14825 allow_undefined_flag_F77=unsupported
14826 archive_cmds_F77='$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'
14827 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14828 ;;
14829
14830 osf3*)
14831 if test "$GCC" = yes; then
14832 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14833 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14834 else
14835 allow_undefined_flag_F77=' -expect_unresolved \*'
14836 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14837 fi
14838 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14839 hardcode_libdir_separator_F77=:
14840 ;;
14841
14842 osf4* | osf5*) # as osf3* with the addition of -msym flag
14843 if test "$GCC" = yes; then
14844 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14845 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14847 else
14848 allow_undefined_flag_F77=' -expect_unresolved \*'
14849 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14850 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14851 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14852
14853 # Both c and cxx compiler support -rpath directly
14854 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14855 fi
14856 hardcode_libdir_separator_F77=:
14857 ;;
14858
14859 solaris*)
14860 no_undefined_flag_F77=' -z text'
14861 if test "$GCC" = yes; then
14862 wlarc='${wl}'
14863 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14864 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14865 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14866 else
14867 wlarc=''
14868 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14869 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14871 fi
14872 hardcode_libdir_flag_spec_F77='-R$libdir'
14873 hardcode_shlibpath_var_F77=no
14874 case $host_os in
14875 solaris2.[0-5] | solaris2.[0-5].*) ;;
14876 *)
14877 # The compiler driver will combine linker options so we
14878 # cannot just pass the convience library names through
14879 # without $wl, iff we do not link with $LD.
14880 # Luckily, gcc supports the same syntax we need for Sun Studio.
14881 # Supported since Solaris 2.6 (maybe 2.5.1?)
14882 case $wlarc in
14883 '')
14884 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14885 *)
14886 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14887 esac ;;
14888 esac
14889 link_all_deplibs_F77=yes
14890 ;;
14891
14892 sunos4*)
14893 if test "x$host_vendor" = xsequent; then
14894 # Use $CC to link under sequent, because it throws in some extra .o
14895 # files that make .init and .fini sections work.
14896 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14897 else
14898 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14899 fi
14900 hardcode_libdir_flag_spec_F77='-L$libdir'
14901 hardcode_direct_F77=yes
14902 hardcode_minus_L_F77=yes
14903 hardcode_shlibpath_var_F77=no
14904 ;;
14905
14906 sysv4)
14907 case $host_vendor in
14908 sni)
14909 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_direct_F77=yes # is this really true???
14911 ;;
14912 siemens)
14913 ## LD is ld it makes a PLAMLIB
14914 ## CC just makes a GrossModule.
14915 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14916 reload_cmds_F77='$CC -r -o $output$reload_objs'
14917 hardcode_direct_F77=no
14918 ;;
14919 motorola)
14920 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14922 ;;
14923 esac
14924 runpath_var='LD_RUN_PATH'
14925 hardcode_shlibpath_var_F77=no
14926 ;;
14927
14928 sysv4.3*)
14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14930 hardcode_shlibpath_var_F77=no
14931 export_dynamic_flag_spec_F77='-Bexport'
14932 ;;
14933
14934 sysv4*MP*)
14935 if test -d /usr/nec; then
14936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937 hardcode_shlibpath_var_F77=no
14938 runpath_var=LD_RUN_PATH
14939 hardcode_runpath_var=yes
14940 ld_shlibs_F77=yes
14941 fi
14942 ;;
14943
14944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14945 no_undefined_flag_F77='${wl}-z,text'
14946 archive_cmds_need_lc_F77=no
14947 hardcode_shlibpath_var_F77=no
14948 runpath_var='LD_RUN_PATH'
14949
14950 if test "$GCC" = yes; then
14951 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 else
14954 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 fi
14957 ;;
14958
14959 sysv5* | sco3.2v5* | sco5v6*)
14960 # Note: We can NOT use -z defs as we might desire, because we do not
14961 # link with -lc, and that would cause any symbols used from libc to
14962 # always be unresolved, which means just about no library would
14963 # ever link correctly. If we're not using GNU ld we use -z text
14964 # though, which does catch some bad symbols but isn't as heavy-handed
14965 # as -z defs.
14966 no_undefined_flag_F77='${wl}-z,text'
14967 allow_undefined_flag_F77='${wl}-z,nodefs'
14968 archive_cmds_need_lc_F77=no
14969 hardcode_shlibpath_var_F77=no
14970 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14971 hardcode_libdir_separator_F77=':'
14972 link_all_deplibs_F77=yes
14973 export_dynamic_flag_spec_F77='${wl}-Bexport'
14974 runpath_var='LD_RUN_PATH'
14975
14976 if test "$GCC" = yes; then
14977 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 else
14980 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 fi
14983 ;;
14984
14985 uts4*)
14986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_libdir_flag_spec_F77='-L$libdir'
14988 hardcode_shlibpath_var_F77=no
14989 ;;
14990
14991 *)
14992 ld_shlibs_F77=no
14993 ;;
14994 esac
14995 fi
14996
14997 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14998 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14999 test "$ld_shlibs_F77" = no && can_build_shared=no
15000
15001 #
15002 # Do we need to explicitly link libc?
15003 #
15004 case "x$archive_cmds_need_lc_F77" in
15005 x|xyes)
15006 # Assume -lc should be added
15007 archive_cmds_need_lc_F77=yes
15008
15009 if test "$enable_shared" = yes && test "$GCC" = yes; then
15010 case $archive_cmds_F77 in
15011 *'~'*)
15012 # FIXME: we may have to deal with multi-command sequences.
15013 ;;
15014 '$CC '*)
15015 # Test whether the compiler implicitly links with -lc since on some
15016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15017 # to ld, don't add -lc before -lgcc.
15018 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15019 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15020 $rm conftest*
15021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } 2>conftest.err; then
15028 soname=conftest
15029 lib=conftest
15030 libobjs=conftest.$ac_objext
15031 deplibs=
15032 wl=$lt_prog_compiler_wl_F77
15033 pic_flag=$lt_prog_compiler_pic_F77
15034 compiler_flags=-v
15035 linker_flags=-v
15036 verstring=
15037 output_objdir=.
15038 libname=conftest
15039 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15040 allow_undefined_flag_F77=
15041 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15042 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }
15046 then
15047 archive_cmds_need_lc_F77=no
15048 else
15049 archive_cmds_need_lc_F77=yes
15050 fi
15051 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15052 else
15053 cat conftest.err 1>&5
15054 fi
15055 $rm conftest*
15056 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15057 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15058 ;;
15059 esac
15060 fi
15061 ;;
15062 esac
15063
15064 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15065 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15066 library_names_spec=
15067 libname_spec='lib$name'
15068 soname_spec=
15069 shrext_cmds=".so"
15070 postinstall_cmds=
15071 postuninstall_cmds=
15072 finish_cmds=
15073 finish_eval=
15074 shlibpath_var=
15075 shlibpath_overrides_runpath=unknown
15076 version_type=none
15077 dynamic_linker="$host_os ld.so"
15078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15079 if test "$GCC" = yes; then
15080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15081 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15082 # if the path contains ";" then we assume it to be the separator
15083 # otherwise default to the standard path separator (i.e. ":") - it is
15084 # assumed that no part of a normal pathname contains ";" but that should
15085 # okay in the real world where ";" in dirpaths is itself problematic.
15086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15087 else
15088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15089 fi
15090 else
15091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15092 fi
15093 need_lib_prefix=unknown
15094 hardcode_into_libs=no
15095
15096 # when you set need_version to no, make sure it does not cause -set_version
15097 # flags to be left without arguments
15098 need_version=unknown
15099
15100 case $host_os in
15101 aix3*)
15102 version_type=linux
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15104 shlibpath_var=LIBPATH
15105
15106 # AIX 3 has no versioning support, so we append a major version to the name.
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 ;;
15109
15110 aix4* | aix5*)
15111 version_type=linux
15112 need_lib_prefix=no
15113 need_version=no
15114 hardcode_into_libs=yes
15115 if test "$host_cpu" = ia64; then
15116 # AIX 5 supports IA64
15117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 else
15120 # With GCC up to 2.95.x, collect2 would create an import file
15121 # for dependence libraries. The import file would start with
15122 # the line `#! .'. This would cause the generated library to
15123 # depend on `.', always an invalid library. This was fixed in
15124 # development snapshots of GCC prior to 3.0.
15125 case $host_os in
15126 aix4 | aix4.[01] | aix4.[01].*)
15127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15128 echo ' yes '
15129 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15130 :
15131 else
15132 can_build_shared=no
15133 fi
15134 ;;
15135 esac
15136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15137 # soname into executable. Probably we can add versioning support to
15138 # collect2, so additional links can be useful in future.
15139 if test "$aix_use_runtimelinking" = yes; then
15140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15141 # instead of lib<name>.a to let people know that these are not
15142 # typical AIX shared libraries.
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 else
15145 # We preserve .a as extension for shared libraries through AIX4.2
15146 # and later when we are not doing run time linking.
15147 library_names_spec='${libname}${release}.a $libname.a'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 fi
15150 shlibpath_var=LIBPATH
15151 fi
15152 ;;
15153
15154 amigaos*)
15155 library_names_spec='$libname.ixlibrary $libname.a'
15156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15157 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'
15158 ;;
15159
15160 beos*)
15161 library_names_spec='${libname}${shared_ext}'
15162 dynamic_linker="$host_os ld.so"
15163 shlibpath_var=LIBRARY_PATH
15164 ;;
15165
15166 bsdi[45]*)
15167 version_type=linux
15168 need_version=no
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15175 # the default ld.so.conf also contains /usr/contrib/lib and
15176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15177 # libtool to hard-code these into programs
15178 ;;
15179
15180 cygwin* | mingw* | pw32*)
15181 version_type=windows
15182 shrext_cmds=".dll"
15183 need_version=no
15184 need_lib_prefix=no
15185
15186 case $GCC,$host_os in
15187 yes,cygwin* | yes,mingw* | yes,pw32*)
15188 library_names_spec='$libname.dll.a'
15189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15190 postinstall_cmds='base_file=`basename \${file}`~
15191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15192 dldir=$destdir/`dirname \$dlpath`~
15193 test -d \$dldir || mkdir -p \$dldir~
15194 $install_prog $dir/$dlname \$dldir/$dlname~
15195 chmod a+x \$dldir/$dlname'
15196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15197 dlpath=$dir/\$dldll~
15198 $rm \$dlpath'
15199 shlibpath_overrides_runpath=yes
15200
15201 case $host_os in
15202 cygwin*)
15203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15205 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15206 ;;
15207 mingw*)
15208 # MinGW DLLs use traditional 'lib' prefix
15209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15210 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15211 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15212 # It is most probably a Windows format PATH printed by
15213 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15214 # path with ; separators, and with drive letters. We can handle the
15215 # drive letters (cygwin fileutils understands them), so leave them,
15216 # especially as we might pass files found there to a mingw objdump,
15217 # which wouldn't understand a cygwinified path. Ahh.
15218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15219 else
15220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15221 fi
15222 ;;
15223 pw32*)
15224 # pw32 DLLs use 'pw' prefix rather than 'lib'
15225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15226 ;;
15227 esac
15228 ;;
15229
15230 *)
15231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15232 ;;
15233 esac
15234 dynamic_linker='Win32 ld.exe'
15235 # FIXME: first we should search . and the directory the executable is in
15236 shlibpath_var=PATH
15237 ;;
15238
15239 darwin* | rhapsody*)
15240 dynamic_linker="$host_os dyld"
15241 version_type=darwin
15242 need_lib_prefix=no
15243 need_version=no
15244 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15245 soname_spec='${libname}${release}${major}$shared_ext'
15246 shlibpath_overrides_runpath=yes
15247 shlibpath_var=DYLD_LIBRARY_PATH
15248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15249 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15250 if test "$GCC" = yes; then
15251 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15252 else
15253 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15254 fi
15255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15256 ;;
15257
15258 dgux*)
15259 version_type=linux
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 ;;
15266
15267 freebsd1*)
15268 dynamic_linker=no
15269 ;;
15270
15271 freebsd* | dragonfly*)
15272 # DragonFly does not have aout. When/if they implement a new
15273 # versioning mechanism, adjust this.
15274 if test -x /usr/bin/objformat; then
15275 objformat=`/usr/bin/objformat`
15276 else
15277 case $host_os in
15278 freebsd[123]*) objformat=aout ;;
15279 *) objformat=elf ;;
15280 esac
15281 fi
15282 version_type=freebsd-$objformat
15283 case $version_type in
15284 freebsd-elf*)
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15286 need_version=no
15287 need_lib_prefix=no
15288 ;;
15289 freebsd-*)
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15291 need_version=yes
15292 ;;
15293 esac
15294 shlibpath_var=LD_LIBRARY_PATH
15295 case $host_os in
15296 freebsd2*)
15297 shlibpath_overrides_runpath=yes
15298 ;;
15299 freebsd3.[01]* | freebsdelf3.[01]*)
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15302 ;;
15303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15305 shlibpath_overrides_runpath=no
15306 hardcode_into_libs=yes
15307 ;;
15308 freebsd*) # from 4.6 on
15309 shlibpath_overrides_runpath=yes
15310 hardcode_into_libs=yes
15311 ;;
15312 esac
15313 ;;
15314
15315 gnu*)
15316 version_type=linux
15317 need_lib_prefix=no
15318 need_version=no
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 hardcode_into_libs=yes
15323 ;;
15324
15325 hpux9* | hpux10* | hpux11*)
15326 # Give a soname corresponding to the major version so that dld.sl refuses to
15327 # link against other versions.
15328 version_type=sunos
15329 need_lib_prefix=no
15330 need_version=no
15331 case $host_cpu in
15332 ia64*)
15333 shrext_cmds='.so'
15334 hardcode_into_libs=yes
15335 dynamic_linker="$host_os dld.so"
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 if test "X$HPUX_IA64_MODE" = X32; then
15341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15342 else
15343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15344 fi
15345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15346 ;;
15347 hppa*64*)
15348 shrext_cmds='.sl'
15349 hardcode_into_libs=yes
15350 dynamic_linker="$host_os dld.sl"
15351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15357 ;;
15358 *)
15359 shrext_cmds='.sl'
15360 dynamic_linker="$host_os dld.sl"
15361 shlibpath_var=SHLIB_PATH
15362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 ;;
15366 esac
15367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15368 postinstall_cmds='chmod 555 $lib'
15369 ;;
15370
15371 interix3*)
15372 version_type=linux
15373 need_lib_prefix=no
15374 need_version=no
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 shlibpath_overrides_runpath=no
15380 hardcode_into_libs=yes
15381 ;;
15382
15383 irix5* | irix6* | nonstopux*)
15384 case $host_os in
15385 nonstopux*) version_type=nonstopux ;;
15386 *)
15387 if test "$lt_cv_prog_gnu_ld" = yes; then
15388 version_type=linux
15389 else
15390 version_type=irix
15391 fi ;;
15392 esac
15393 need_lib_prefix=no
15394 need_version=no
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15397 case $host_os in
15398 irix5* | nonstopux*)
15399 libsuff= shlibsuff=
15400 ;;
15401 *)
15402 case $LD in # libtool.m4 will add one of these switches to LD
15403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15404 libsuff= shlibsuff= libmagic=32-bit;;
15405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15406 libsuff=32 shlibsuff=N32 libmagic=N32;;
15407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15409 *) libsuff= shlibsuff= libmagic=never-match;;
15410 esac
15411 ;;
15412 esac
15413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15414 shlibpath_overrides_runpath=no
15415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15417 hardcode_into_libs=yes
15418 ;;
15419
15420 # No shared lib support for Linux oldld, aout, or coff.
15421 linux*oldld* | linux*aout* | linux*coff*)
15422 dynamic_linker=no
15423 ;;
15424
15425 # This must be Linux ELF.
15426 linux* | k*bsd*-gnu)
15427 version_type=linux
15428 need_lib_prefix=no
15429 need_version=no
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=no
15435 # This implies no fast_install, which is unacceptable.
15436 # Some rework will be needed to allow for fast_install
15437 # before this can be enabled.
15438 hardcode_into_libs=yes
15439
15440 # Append ld.so.conf contents to the search path
15441 if test -f /etc/ld.so.conf; then
15442 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15444 fi
15445
15446 # We used to test for /lib/ld.so.1 and disable shared libraries on
15447 # powerpc, because MkLinux only supported shared libraries with the
15448 # GNU dynamic linker. Since this was broken with cross compilers,
15449 # most powerpc-linux boxes support dynamic linking these days and
15450 # people can always --disable-shared, the test was removed, and we
15451 # assume the GNU/Linux dynamic linker is in use.
15452 dynamic_linker='GNU/Linux ld.so'
15453 ;;
15454
15455 netbsdelf*-gnu)
15456 version_type=linux
15457 need_lib_prefix=no
15458 need_version=no
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 shlibpath_overrides_runpath=no
15463 hardcode_into_libs=yes
15464 dynamic_linker='NetBSD ld.elf_so'
15465 ;;
15466
15467 netbsd*)
15468 version_type=sunos
15469 need_lib_prefix=no
15470 need_version=no
15471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15474 dynamic_linker='NetBSD (a.out) ld.so'
15475 else
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 dynamic_linker='NetBSD ld.elf_so'
15479 fi
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=yes
15482 hardcode_into_libs=yes
15483 ;;
15484
15485 newsos6)
15486 version_type=linux
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=yes
15490 ;;
15491
15492 nto-qnx*)
15493 version_type=linux
15494 need_lib_prefix=no
15495 need_version=no
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 shlibpath_overrides_runpath=yes
15500 ;;
15501
15502 openbsd*)
15503 version_type=sunos
15504 sys_lib_dlsearch_path_spec="/usr/lib"
15505 need_lib_prefix=no
15506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15507 case $host_os in
15508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15509 *) need_version=no ;;
15510 esac
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15515 case $host_os in
15516 openbsd2.[89] | openbsd2.[89].*)
15517 shlibpath_overrides_runpath=no
15518 ;;
15519 *)
15520 shlibpath_overrides_runpath=yes
15521 ;;
15522 esac
15523 else
15524 shlibpath_overrides_runpath=yes
15525 fi
15526 ;;
15527
15528 os2*)
15529 libname_spec='$name'
15530 shrext_cmds=".dll"
15531 need_lib_prefix=no
15532 library_names_spec='$libname${shared_ext} $libname.a'
15533 dynamic_linker='OS/2 ld.exe'
15534 shlibpath_var=LIBPATH
15535 ;;
15536
15537 osf3* | osf4* | osf5*)
15538 version_type=osf
15539 need_lib_prefix=no
15540 need_version=no
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15546 ;;
15547
15548 solaris*)
15549 version_type=linux
15550 need_lib_prefix=no
15551 need_version=no
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 shlibpath_overrides_runpath=yes
15556 hardcode_into_libs=yes
15557 # ldd complains unless libraries are executable
15558 postinstall_cmds='chmod +x $lib'
15559 ;;
15560
15561 sunos4*)
15562 version_type=sunos
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15567 if test "$with_gnu_ld" = yes; then
15568 need_lib_prefix=no
15569 fi
15570 need_version=yes
15571 ;;
15572
15573 sysv4 | sysv4.3*)
15574 version_type=linux
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 case $host_vendor in
15579 sni)
15580 shlibpath_overrides_runpath=no
15581 need_lib_prefix=no
15582 export_dynamic_flag_spec='${wl}-Blargedynsym'
15583 runpath_var=LD_RUN_PATH
15584 ;;
15585 siemens)
15586 need_lib_prefix=no
15587 ;;
15588 motorola)
15589 need_lib_prefix=no
15590 need_version=no
15591 shlibpath_overrides_runpath=no
15592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15593 ;;
15594 esac
15595 ;;
15596
15597 sysv4*MP*)
15598 if test -d /usr/nec ;then
15599 version_type=linux
15600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15601 soname_spec='$libname${shared_ext}.$major'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 fi
15604 ;;
15605
15606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15607 version_type=freebsd-elf
15608 need_lib_prefix=no
15609 need_version=no
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 hardcode_into_libs=yes
15614 if test "$with_gnu_ld" = yes; then
15615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15616 shlibpath_overrides_runpath=no
15617 else
15618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15619 shlibpath_overrides_runpath=yes
15620 case $host_os in
15621 sco3.2v5*)
15622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15623 ;;
15624 esac
15625 fi
15626 sys_lib_dlsearch_path_spec='/usr/lib'
15627 ;;
15628
15629 uts4*)
15630 version_type=linux
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 ;;
15635
15636 *)
15637 dynamic_linker=no
15638 ;;
15639 esac
15640 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15641 echo "${ECHO_T}$dynamic_linker" >&6; }
15642 test "$dynamic_linker" = no && can_build_shared=no
15643
15644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15645 if test "$GCC" = yes; then
15646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15647 fi
15648
15649 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15651 hardcode_action_F77=
15652 if test -n "$hardcode_libdir_flag_spec_F77" || \
15653 test -n "$runpath_var_F77" || \
15654 test "X$hardcode_automatic_F77" = "Xyes" ; then
15655
15656 # We can hardcode non-existant directories.
15657 if test "$hardcode_direct_F77" != no &&
15658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15659 # have to relink, otherwise we might link with an installed library
15660 # when we should be linking with a yet-to-be-installed one
15661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15662 test "$hardcode_minus_L_F77" != no; then
15663 # Linking always hardcodes the temporary library directory.
15664 hardcode_action_F77=relink
15665 else
15666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15667 hardcode_action_F77=immediate
15668 fi
15669 else
15670 # We cannot hardcode anything, or else we can only hardcode existing
15671 # directories.
15672 hardcode_action_F77=unsupported
15673 fi
15674 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15675 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15676
15677 if test "$hardcode_action_F77" = relink; then
15678 # Fast installation is not supported
15679 enable_fast_install=no
15680 elif test "$shlibpath_overrides_runpath" = yes ||
15681 test "$enable_shared" = no; then
15682 # Fast installation is not necessary
15683 enable_fast_install=needless
15684 fi
15685
15686
15687 # The else clause should only fire when bootstrapping the
15688 # libtool distribution, otherwise you forgot to ship ltmain.sh
15689 # with your package, and you will get complaints that there are
15690 # no rules to generate ltmain.sh.
15691 if test -f "$ltmain"; then
15692 # See if we are running on zsh, and set the options which allow our commands through
15693 # without removal of \ escapes.
15694 if test -n "${ZSH_VERSION+set}" ; then
15695 setopt NO_GLOB_SUBST
15696 fi
15697 # Now quote all the things that may contain metacharacters while being
15698 # careful not to overquote the AC_SUBSTed values. We take copies of the
15699 # variables and quote the copies for generation of the libtool script.
15700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15701 SED SHELL STRIP \
15702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15704 deplibs_check_method reload_flag reload_cmds need_locks \
15705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15706 lt_cv_sys_global_symbol_to_c_name_address \
15707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15708 old_postinstall_cmds old_postuninstall_cmds \
15709 compiler_F77 \
15710 CC_F77 \
15711 LD_F77 \
15712 lt_prog_compiler_wl_F77 \
15713 lt_prog_compiler_pic_F77 \
15714 lt_prog_compiler_static_F77 \
15715 lt_prog_compiler_no_builtin_flag_F77 \
15716 export_dynamic_flag_spec_F77 \
15717 thread_safe_flag_spec_F77 \
15718 whole_archive_flag_spec_F77 \
15719 enable_shared_with_static_runtimes_F77 \
15720 old_archive_cmds_F77 \
15721 old_archive_from_new_cmds_F77 \
15722 predep_objects_F77 \
15723 postdep_objects_F77 \
15724 predeps_F77 \
15725 postdeps_F77 \
15726 compiler_lib_search_path_F77 \
15727 archive_cmds_F77 \
15728 archive_expsym_cmds_F77 \
15729 postinstall_cmds_F77 \
15730 postuninstall_cmds_F77 \
15731 old_archive_from_expsyms_cmds_F77 \
15732 allow_undefined_flag_F77 \
15733 no_undefined_flag_F77 \
15734 export_symbols_cmds_F77 \
15735 hardcode_libdir_flag_spec_F77 \
15736 hardcode_libdir_flag_spec_ld_F77 \
15737 hardcode_libdir_separator_F77 \
15738 hardcode_automatic_F77 \
15739 module_cmds_F77 \
15740 module_expsym_cmds_F77 \
15741 lt_cv_prog_compiler_c_o_F77 \
15742 exclude_expsyms_F77 \
15743 include_expsyms_F77; do
15744
15745 case $var in
15746 old_archive_cmds_F77 | \
15747 old_archive_from_new_cmds_F77 | \
15748 archive_cmds_F77 | \
15749 archive_expsym_cmds_F77 | \
15750 module_cmds_F77 | \
15751 module_expsym_cmds_F77 | \
15752 old_archive_from_expsyms_cmds_F77 | \
15753 export_symbols_cmds_F77 | \
15754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15755 postinstall_cmds | postuninstall_cmds | \
15756 old_postinstall_cmds | old_postuninstall_cmds | \
15757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15758 # Double-quote double-evaled strings.
15759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15760 ;;
15761 *)
15762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15763 ;;
15764 esac
15765 done
15766
15767 case $lt_echo in
15768 *'\$0 --fallback-echo"')
15769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15770 ;;
15771 esac
15772
15773 cfgfile="$ofile"
15774
15775 cat <<__EOF__ >> "$cfgfile"
15776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15777
15778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15779
15780 # Shell to use when invoking shell scripts.
15781 SHELL=$lt_SHELL
15782
15783 # Whether or not to build shared libraries.
15784 build_libtool_libs=$enable_shared
15785
15786 # Whether or not to build static libraries.
15787 build_old_libs=$enable_static
15788
15789 # Whether or not to add -lc for building shared libraries.
15790 build_libtool_need_lc=$archive_cmds_need_lc_F77
15791
15792 # Whether or not to disallow shared libs when runtime libs are static
15793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15794
15795 # Whether or not to optimize for fast installation.
15796 fast_install=$enable_fast_install
15797
15798 # The host system.
15799 host_alias=$host_alias
15800 host=$host
15801 host_os=$host_os
15802
15803 # The build system.
15804 build_alias=$build_alias
15805 build=$build
15806 build_os=$build_os
15807
15808 # An echo program that does not interpret backslashes.
15809 echo=$lt_echo
15810
15811 # The archiver.
15812 AR=$lt_AR
15813 AR_FLAGS=$lt_AR_FLAGS
15814
15815 # A C compiler.
15816 LTCC=$lt_LTCC
15817
15818 # LTCC compiler flags.
15819 LTCFLAGS=$lt_LTCFLAGS
15820
15821 # A language-specific compiler.
15822 CC=$lt_compiler_F77
15823
15824 # Is the compiler the GNU C compiler?
15825 with_gcc=$GCC_F77
15826
15827 # An ERE matcher.
15828 EGREP=$lt_EGREP
15829
15830 # The linker used to build libraries.
15831 LD=$lt_LD_F77
15832
15833 # Whether we need hard or soft links.
15834 LN_S=$lt_LN_S
15835
15836 # A BSD-compatible nm program.
15837 NM=$lt_NM
15838
15839 # A symbol stripping program
15840 STRIP=$lt_STRIP
15841
15842 # Used to examine libraries when file_magic_cmd begins "file"
15843 MAGIC_CMD=$MAGIC_CMD
15844
15845 # Used on cygwin: DLL creation program.
15846 DLLTOOL="$DLLTOOL"
15847
15848 # Used on cygwin: object dumper.
15849 OBJDUMP="$OBJDUMP"
15850
15851 # Used on cygwin: assembler.
15852 AS="$AS"
15853
15854 # The name of the directory that contains temporary libtool files.
15855 objdir=$objdir
15856
15857 # How to create reloadable object files.
15858 reload_flag=$lt_reload_flag
15859 reload_cmds=$lt_reload_cmds
15860
15861 # How to pass a linker flag through the compiler.
15862 wl=$lt_lt_prog_compiler_wl_F77
15863
15864 # Object file suffix (normally "o").
15865 objext="$ac_objext"
15866
15867 # Old archive suffix (normally "a").
15868 libext="$libext"
15869
15870 # Shared library suffix (normally ".so").
15871 shrext_cmds='$shrext_cmds'
15872
15873 # Executable file suffix (normally "").
15874 exeext="$exeext"
15875
15876 # Additional compiler flags for building library objects.
15877 pic_flag=$lt_lt_prog_compiler_pic_F77
15878 pic_mode=$pic_mode
15879
15880 # What is the maximum length of a command?
15881 max_cmd_len=$lt_cv_sys_max_cmd_len
15882
15883 # Does compiler simultaneously support -c and -o options?
15884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15885
15886 # Must we lock files when doing compilation?
15887 need_locks=$lt_need_locks
15888
15889 # Do we need the lib prefix for modules?
15890 need_lib_prefix=$need_lib_prefix
15891
15892 # Do we need a version for libraries?
15893 need_version=$need_version
15894
15895 # Whether dlopen is supported.
15896 dlopen_support=$enable_dlopen
15897
15898 # Whether dlopen of programs is supported.
15899 dlopen_self=$enable_dlopen_self
15900
15901 # Whether dlopen of statically linked programs is supported.
15902 dlopen_self_static=$enable_dlopen_self_static
15903
15904 # Compiler flag to prevent dynamic linking.
15905 link_static_flag=$lt_lt_prog_compiler_static_F77
15906
15907 # Compiler flag to turn off builtin functions.
15908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15909
15910 # Compiler flag to allow reflexive dlopens.
15911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15912
15913 # Compiler flag to generate shared objects directly from archives.
15914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15915
15916 # Compiler flag to generate thread-safe objects.
15917 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15918
15919 # Library versioning type.
15920 version_type=$version_type
15921
15922 # Format of library name prefix.
15923 libname_spec=$lt_libname_spec
15924
15925 # List of archive names. First name is the real one, the rest are links.
15926 # The last name is the one that the linker finds with -lNAME.
15927 library_names_spec=$lt_library_names_spec
15928
15929 # The coded name of the library, if different from the real name.
15930 soname_spec=$lt_soname_spec
15931
15932 # Commands used to build and install an old-style archive.
15933 RANLIB=$lt_RANLIB
15934 old_archive_cmds=$lt_old_archive_cmds_F77
15935 old_postinstall_cmds=$lt_old_postinstall_cmds
15936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15937
15938 # Create an old-style archive from a shared archive.
15939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15940
15941 # Create a temporary old-style archive to link instead of a shared archive.
15942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15943
15944 # Commands used to build and install a shared archive.
15945 archive_cmds=$lt_archive_cmds_F77
15946 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15947 postinstall_cmds=$lt_postinstall_cmds
15948 postuninstall_cmds=$lt_postuninstall_cmds
15949
15950 # Commands used to build a loadable module (assumed same as above if empty)
15951 module_cmds=$lt_module_cmds_F77
15952 module_expsym_cmds=$lt_module_expsym_cmds_F77
15953
15954 # Commands to strip libraries.
15955 old_striplib=$lt_old_striplib
15956 striplib=$lt_striplib
15957
15958 # Dependencies to place before the objects being linked to create a
15959 # shared library.
15960 predep_objects=$lt_predep_objects_F77
15961
15962 # Dependencies to place after the objects being linked to create a
15963 # shared library.
15964 postdep_objects=$lt_postdep_objects_F77
15965
15966 # Dependencies to place before the objects being linked to create a
15967 # shared library.
15968 predeps=$lt_predeps_F77
15969
15970 # Dependencies to place after the objects being linked to create a
15971 # shared library.
15972 postdeps=$lt_postdeps_F77
15973
15974 # The library search path used internally by the compiler when linking
15975 # a shared library.
15976 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15977
15978 # Method to check whether dependent libraries are shared objects.
15979 deplibs_check_method=$lt_deplibs_check_method
15980
15981 # Command to use when deplibs_check_method == file_magic.
15982 file_magic_cmd=$lt_file_magic_cmd
15983
15984 # Flag that allows shared libraries with undefined symbols to be built.
15985 allow_undefined_flag=$lt_allow_undefined_flag_F77
15986
15987 # Flag that forces no undefined symbols.
15988 no_undefined_flag=$lt_no_undefined_flag_F77
15989
15990 # Commands used to finish a libtool library installation in a directory.
15991 finish_cmds=$lt_finish_cmds
15992
15993 # Same as above, but a single script fragment to be evaled but not shown.
15994 finish_eval=$lt_finish_eval
15995
15996 # Take the output of nm and produce a listing of raw symbols and C names.
15997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15998
15999 # Transform the output of nm in a proper C declaration
16000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16001
16002 # Transform the output of nm in a C name address pair
16003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16004
16005 # This is the shared library runtime path variable.
16006 runpath_var=$runpath_var
16007
16008 # This is the shared library path variable.
16009 shlibpath_var=$shlibpath_var
16010
16011 # Is shlibpath searched before the hard-coded library search path?
16012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16013
16014 # How to hardcode a shared library path into an executable.
16015 hardcode_action=$hardcode_action_F77
16016
16017 # Whether we should hardcode library paths into libraries.
16018 hardcode_into_libs=$hardcode_into_libs
16019
16020 # Flag to hardcode \$libdir into a binary during linking.
16021 # This must work even if \$libdir does not exist.
16022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16023
16024 # If ld is used when linking, flag to hardcode \$libdir into
16025 # a binary during linking. This must work even if \$libdir does
16026 # not exist.
16027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16028
16029 # Whether we need a single -rpath flag with a separated argument.
16030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16031
16032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16033 # resulting binary.
16034 hardcode_direct=$hardcode_direct_F77
16035
16036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16037 # resulting binary.
16038 hardcode_minus_L=$hardcode_minus_L_F77
16039
16040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16041 # the resulting binary.
16042 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16043
16044 # Set to yes if building a shared library automatically hardcodes DIR into the library
16045 # and all subsequent libraries and executables linked against it.
16046 hardcode_automatic=$hardcode_automatic_F77
16047
16048 # Variables whose values should be saved in libtool wrapper scripts and
16049 # restored at relink time.
16050 variables_saved_for_relink="$variables_saved_for_relink"
16051
16052 # Whether libtool must link a program against all its dependency libraries.
16053 link_all_deplibs=$link_all_deplibs_F77
16054
16055 # Compile-time system search path for libraries
16056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16057
16058 # Run-time system search path for libraries
16059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16060
16061 # Fix the shell variable \$srcfile for the compiler.
16062 fix_srcfile_path="$fix_srcfile_path_F77"
16063
16064 # Set to yes if exported symbols are required.
16065 always_export_symbols=$always_export_symbols_F77
16066
16067 # The commands to list exported symbols.
16068 export_symbols_cmds=$lt_export_symbols_cmds_F77
16069
16070 # The commands to extract the exported symbol list from a shared archive.
16071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16072
16073 # Symbols that should not be listed in the preloaded symbols.
16074 exclude_expsyms=$lt_exclude_expsyms_F77
16075
16076 # Symbols that must always be exported.
16077 include_expsyms=$lt_include_expsyms_F77
16078
16079 # ### END LIBTOOL TAG CONFIG: $tagname
16080
16081 __EOF__
16082
16083
16084 else
16085 # If there is no Makefile yet, we rely on a make rule to execute
16086 # `config.status --recheck' to rerun these tests and create the
16087 # libtool script then.
16088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16089 if test -f "$ltmain_in"; then
16090 test -f Makefile && make "$ltmain"
16091 fi
16092 fi
16093
16094
16095 ac_ext=c
16096 ac_cpp='$CPP $CPPFLAGS'
16097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16100
16101 CC="$lt_save_CC"
16102
16103 else
16104 tagname=""
16105 fi
16106 ;;
16107
16108 GCJ)
16109 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16110
16111
16112 # Source file extension for Java test sources.
16113 ac_ext=java
16114
16115 # Object file extension for compiled Java test sources.
16116 objext=o
16117 objext_GCJ=$objext
16118
16119 # Code to be used in simple compile tests
16120 lt_simple_compile_test_code="class foo {}\n"
16121
16122 # Code to be used in simple link tests
16123 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16124
16125 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16126
16127 # If no C compiler was specified, use CC.
16128 LTCC=${LTCC-"$CC"}
16129
16130 # If no C compiler flags were specified, use CFLAGS.
16131 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16132
16133 # Allow CC to be a program name with arguments.
16134 compiler=$CC
16135
16136
16137 # save warnings/boilerplate of simple test code
16138 ac_outfile=conftest.$ac_objext
16139 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16140 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16141 _lt_compiler_boilerplate=`cat conftest.err`
16142 $rm conftest*
16143
16144 ac_outfile=conftest.$ac_objext
16145 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16146 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16147 _lt_linker_boilerplate=`cat conftest.err`
16148 $rm conftest*
16149
16150
16151 # Allow CC to be a program name with arguments.
16152 lt_save_CC="$CC"
16153 CC=${GCJ-"gcj"}
16154 compiler=$CC
16155 compiler_GCJ=$CC
16156 for cc_temp in $compiler""; do
16157 case $cc_temp in
16158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16160 \-*) ;;
16161 *) break;;
16162 esac
16163 done
16164 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16165
16166
16167 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16168 archive_cmds_need_lc_GCJ=no
16169
16170 old_archive_cmds_GCJ=$old_archive_cmds
16171
16172
16173 lt_prog_compiler_no_builtin_flag_GCJ=
16174
16175 if test "$GCC" = yes; then
16176 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16177
16178
16179 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16180 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16181 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184 lt_cv_prog_compiler_rtti_exceptions=no
16185 ac_outfile=conftest.$ac_objext
16186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16187 lt_compiler_flag="-fno-rtti -fno-exceptions"
16188 # Insert the option either (1) after the last *FLAGS variable, or
16189 # (2) before a word containing "conftest.", or (3) at the end.
16190 # Note that $ac_compile itself does not contain backslashes and begins
16191 # with a dollar sign (not a hyphen), so the echo should work correctly.
16192 # The option is referenced via a variable to avoid confusing sed.
16193 lt_compile=`echo "$ac_compile" | $SED \
16194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16196 -e 's:$: $lt_compiler_flag:'`
16197 (eval echo "\"\$as_me:16197: $lt_compile\"" >&5)
16198 (eval "$lt_compile" 2>conftest.err)
16199 ac_status=$?
16200 cat conftest.err >&5
16201 echo "$as_me:16201: \$? = $ac_status" >&5
16202 if (exit $ac_status) && test -s "$ac_outfile"; then
16203 # The compiler can only warn and ignore the option if not recognized
16204 # So say no if there are warnings other than the usual output.
16205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16208 lt_cv_prog_compiler_rtti_exceptions=yes
16209 fi
16210 fi
16211 $rm conftest*
16212
16213 fi
16214 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16216
16217 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16218 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16219 else
16220 :
16221 fi
16222
16223 fi
16224
16225 lt_prog_compiler_wl_GCJ=
16226 lt_prog_compiler_pic_GCJ=
16227 lt_prog_compiler_static_GCJ=
16228
16229 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16230 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16231
16232 if test "$GCC" = yes; then
16233 lt_prog_compiler_wl_GCJ='-Wl,'
16234 lt_prog_compiler_static_GCJ='-static'
16235
16236 case $host_os in
16237 aix*)
16238 # All AIX code is PIC.
16239 if test "$host_cpu" = ia64; then
16240 # AIX 5 now supports IA64 processor
16241 lt_prog_compiler_static_GCJ='-Bstatic'
16242 fi
16243 ;;
16244
16245 amigaos*)
16246 # FIXME: we need at least 68020 code to build shared libraries, but
16247 # adding the `-m68020' flag to GCC prevents building anything better,
16248 # like `-m68040'.
16249 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16250 ;;
16251
16252 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16253 # PIC is the default for these OSes.
16254 ;;
16255
16256 mingw* | pw32* | os2*)
16257 # This hack is so that the source file can tell whether it is being
16258 # built for inclusion in a dll (and should export symbols for example).
16259 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16260 ;;
16261
16262 darwin* | rhapsody*)
16263 # PIC is the default on this platform
16264 # Common symbols not allowed in MH_DYLIB files
16265 lt_prog_compiler_pic_GCJ='-fno-common'
16266 ;;
16267
16268 interix3*)
16269 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16270 # Instead, we relocate shared libraries at runtime.
16271 ;;
16272
16273 msdosdjgpp*)
16274 # Just because we use GCC doesn't mean we suddenly get shared libraries
16275 # on systems that don't support them.
16276 lt_prog_compiler_can_build_shared_GCJ=no
16277 enable_shared=no
16278 ;;
16279
16280 sysv4*MP*)
16281 if test -d /usr/nec; then
16282 lt_prog_compiler_pic_GCJ=-Kconform_pic
16283 fi
16284 ;;
16285
16286 hpux*)
16287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16288 # not for PA HP-UX.
16289 case $host_cpu in
16290 hppa*64*|ia64*)
16291 # +Z the default
16292 ;;
16293 *)
16294 lt_prog_compiler_pic_GCJ='-fPIC'
16295 ;;
16296 esac
16297 ;;
16298
16299 *)
16300 lt_prog_compiler_pic_GCJ='-fPIC'
16301 ;;
16302 esac
16303 else
16304 # PORTME Check for flag to pass linker flags through the system compiler.
16305 case $host_os in
16306 aix*)
16307 lt_prog_compiler_wl_GCJ='-Wl,'
16308 if test "$host_cpu" = ia64; then
16309 # AIX 5 now supports IA64 processor
16310 lt_prog_compiler_static_GCJ='-Bstatic'
16311 else
16312 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16313 fi
16314 ;;
16315 darwin*)
16316 # PIC is the default on this platform
16317 # Common symbols not allowed in MH_DYLIB files
16318 case $cc_basename in
16319 xlc*)
16320 lt_prog_compiler_pic_GCJ='-qnocommon'
16321 lt_prog_compiler_wl_GCJ='-Wl,'
16322 ;;
16323 esac
16324 ;;
16325
16326 mingw* | pw32* | os2*)
16327 # This hack is so that the source file can tell whether it is being
16328 # built for inclusion in a dll (and should export symbols for example).
16329 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16330 ;;
16331
16332 hpux9* | hpux10* | hpux11*)
16333 lt_prog_compiler_wl_GCJ='-Wl,'
16334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16335 # not for PA HP-UX.
16336 case $host_cpu in
16337 hppa*64*|ia64*)
16338 # +Z the default
16339 ;;
16340 *)
16341 lt_prog_compiler_pic_GCJ='+Z'
16342 ;;
16343 esac
16344 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16345 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16346 ;;
16347
16348 irix5* | irix6* | nonstopux*)
16349 lt_prog_compiler_wl_GCJ='-Wl,'
16350 # PIC (with -KPIC) is the default.
16351 lt_prog_compiler_static_GCJ='-non_shared'
16352 ;;
16353
16354 newsos6)
16355 lt_prog_compiler_pic_GCJ='-KPIC'
16356 lt_prog_compiler_static_GCJ='-Bstatic'
16357 ;;
16358
16359 linux* | k*bsd*-gnu)
16360 case $cc_basename in
16361 icc* | ecc*)
16362 lt_prog_compiler_wl_GCJ='-Wl,'
16363 lt_prog_compiler_pic_GCJ='-KPIC'
16364 lt_prog_compiler_static_GCJ='-static'
16365 ;;
16366 pgcc* | pgf77* | pgf90* | pgf95*)
16367 # Portland Group compilers (*not* the Pentium gcc compiler,
16368 # which looks to be a dead project)
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 lt_prog_compiler_pic_GCJ='-fpic'
16371 lt_prog_compiler_static_GCJ='-Bstatic'
16372 ;;
16373 ccc*)
16374 lt_prog_compiler_wl_GCJ='-Wl,'
16375 # All Alpha code is PIC.
16376 lt_prog_compiler_static_GCJ='-non_shared'
16377 ;;
16378 esac
16379 ;;
16380
16381 osf3* | osf4* | osf5*)
16382 lt_prog_compiler_wl_GCJ='-Wl,'
16383 # All OSF/1 code is PIC.
16384 lt_prog_compiler_static_GCJ='-non_shared'
16385 ;;
16386
16387 solaris*)
16388 lt_prog_compiler_pic_GCJ='-KPIC'
16389 lt_prog_compiler_static_GCJ='-Bstatic'
16390 case $cc_basename in
16391 f77* | f90* | f95*)
16392 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16393 *)
16394 lt_prog_compiler_wl_GCJ='-Wl,';;
16395 esac
16396 ;;
16397
16398 sunos4*)
16399 lt_prog_compiler_wl_GCJ='-Qoption ld '
16400 lt_prog_compiler_pic_GCJ='-PIC'
16401 lt_prog_compiler_static_GCJ='-Bstatic'
16402 ;;
16403
16404 sysv4 | sysv4.2uw2* | sysv4.3*)
16405 lt_prog_compiler_wl_GCJ='-Wl,'
16406 lt_prog_compiler_pic_GCJ='-KPIC'
16407 lt_prog_compiler_static_GCJ='-Bstatic'
16408 ;;
16409
16410 sysv4*MP*)
16411 if test -d /usr/nec ;then
16412 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16413 lt_prog_compiler_static_GCJ='-Bstatic'
16414 fi
16415 ;;
16416
16417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16418 lt_prog_compiler_wl_GCJ='-Wl,'
16419 lt_prog_compiler_pic_GCJ='-KPIC'
16420 lt_prog_compiler_static_GCJ='-Bstatic'
16421 ;;
16422
16423 unicos*)
16424 lt_prog_compiler_wl_GCJ='-Wl,'
16425 lt_prog_compiler_can_build_shared_GCJ=no
16426 ;;
16427
16428 uts4*)
16429 lt_prog_compiler_pic_GCJ='-pic'
16430 lt_prog_compiler_static_GCJ='-Bstatic'
16431 ;;
16432
16433 *)
16434 lt_prog_compiler_can_build_shared_GCJ=no
16435 ;;
16436 esac
16437 fi
16438
16439 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16440 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16441
16442 #
16443 # Check to make sure the PIC flag actually works.
16444 #
16445 if test -n "$lt_prog_compiler_pic_GCJ"; then
16446
16447 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16449 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452 lt_prog_compiler_pic_works_GCJ=no
16453 ac_outfile=conftest.$ac_objext
16454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16455 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16456 # Insert the option either (1) after the last *FLAGS variable, or
16457 # (2) before a word containing "conftest.", or (3) at the end.
16458 # Note that $ac_compile itself does not contain backslashes and begins
16459 # with a dollar sign (not a hyphen), so the echo should work correctly.
16460 # The option is referenced via a variable to avoid confusing sed.
16461 lt_compile=`echo "$ac_compile" | $SED \
16462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16464 -e 's:$: $lt_compiler_flag:'`
16465 (eval echo "\"\$as_me:16465: $lt_compile\"" >&5)
16466 (eval "$lt_compile" 2>conftest.err)
16467 ac_status=$?
16468 cat conftest.err >&5
16469 echo "$as_me:16469: \$? = $ac_status" >&5
16470 if (exit $ac_status) && test -s "$ac_outfile"; then
16471 # The compiler can only warn and ignore the option if not recognized
16472 # So say no if there are warnings other than the usual output.
16473 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16476 lt_prog_compiler_pic_works_GCJ=yes
16477 fi
16478 fi
16479 $rm conftest*
16480
16481 fi
16482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16483 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16484
16485 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16486 case $lt_prog_compiler_pic_GCJ in
16487 "" | " "*) ;;
16488 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16489 esac
16490 else
16491 lt_prog_compiler_pic_GCJ=
16492 lt_prog_compiler_can_build_shared_GCJ=no
16493 fi
16494
16495 fi
16496 case $host_os in
16497 # For platforms which do not support PIC, -DPIC is meaningless:
16498 *djgpp*)
16499 lt_prog_compiler_pic_GCJ=
16500 ;;
16501 *)
16502 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16503 ;;
16504 esac
16505
16506 #
16507 # Check to make sure the static flag actually works.
16508 #
16509 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16510 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16511 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16512 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515 lt_prog_compiler_static_works_GCJ=no
16516 save_LDFLAGS="$LDFLAGS"
16517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16518 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16520 # The linker can only warn and ignore the option if not recognized
16521 # So say no if there are warnings
16522 if test -s conftest.err; then
16523 # Append any errors to the config.log.
16524 cat conftest.err 1>&5
16525 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16527 if diff conftest.exp conftest.er2 >/dev/null; then
16528 lt_prog_compiler_static_works_GCJ=yes
16529 fi
16530 else
16531 lt_prog_compiler_static_works_GCJ=yes
16532 fi
16533 fi
16534 $rm conftest*
16535 LDFLAGS="$save_LDFLAGS"
16536
16537 fi
16538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16539 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16540
16541 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16542 :
16543 else
16544 lt_prog_compiler_static_GCJ=
16545 fi
16546
16547
16548 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16550 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553 lt_cv_prog_compiler_c_o_GCJ=no
16554 $rm -r conftest 2>/dev/null
16555 mkdir conftest
16556 cd conftest
16557 mkdir out
16558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16559
16560 lt_compiler_flag="-o out/conftest2.$ac_objext"
16561 # Insert the option either (1) after the last *FLAGS variable, or
16562 # (2) before a word containing "conftest.", or (3) at the end.
16563 # Note that $ac_compile itself does not contain backslashes and begins
16564 # with a dollar sign (not a hyphen), so the echo should work correctly.
16565 lt_compile=`echo "$ac_compile" | $SED \
16566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16568 -e 's:$: $lt_compiler_flag:'`
16569 (eval echo "\"\$as_me:16569: $lt_compile\"" >&5)
16570 (eval "$lt_compile" 2>out/conftest.err)
16571 ac_status=$?
16572 cat out/conftest.err >&5
16573 echo "$as_me:16573: \$? = $ac_status" >&5
16574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16575 then
16576 # The compiler can only warn and ignore the option if not recognized
16577 # So say no if there are warnings
16578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16581 lt_cv_prog_compiler_c_o_GCJ=yes
16582 fi
16583 fi
16584 chmod u+w . 2>&5
16585 $rm conftest*
16586 # SGI C++ compiler will create directory out/ii_files/ for
16587 # template instantiation
16588 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16589 $rm out/* && rmdir out
16590 cd ..
16591 rmdir conftest
16592 $rm conftest*
16593
16594 fi
16595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16597
16598
16599 hard_links="nottested"
16600 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16601 # do not overwrite the value of need_locks provided by the user
16602 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16604 hard_links=yes
16605 $rm conftest*
16606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16607 touch conftest.a
16608 ln conftest.a conftest.b 2>&5 || hard_links=no
16609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16610 { echo "$as_me:$LINENO: result: $hard_links" >&5
16611 echo "${ECHO_T}$hard_links" >&6; }
16612 if test "$hard_links" = no; then
16613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16615 need_locks=warn
16616 fi
16617 else
16618 need_locks=no
16619 fi
16620
16621 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16623
16624 runpath_var=
16625 allow_undefined_flag_GCJ=
16626 enable_shared_with_static_runtimes_GCJ=no
16627 archive_cmds_GCJ=
16628 archive_expsym_cmds_GCJ=
16629 old_archive_From_new_cmds_GCJ=
16630 old_archive_from_expsyms_cmds_GCJ=
16631 export_dynamic_flag_spec_GCJ=
16632 whole_archive_flag_spec_GCJ=
16633 thread_safe_flag_spec_GCJ=
16634 hardcode_libdir_flag_spec_GCJ=
16635 hardcode_libdir_flag_spec_ld_GCJ=
16636 hardcode_libdir_separator_GCJ=
16637 hardcode_direct_GCJ=no
16638 hardcode_minus_L_GCJ=no
16639 hardcode_shlibpath_var_GCJ=unsupported
16640 link_all_deplibs_GCJ=unknown
16641 hardcode_automatic_GCJ=no
16642 module_cmds_GCJ=
16643 module_expsym_cmds_GCJ=
16644 always_export_symbols_GCJ=no
16645 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646 # include_expsyms should be a list of space-separated symbols to be *always*
16647 # included in the symbol list
16648 include_expsyms_GCJ=
16649 # exclude_expsyms can be an extended regexp of symbols to exclude
16650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16652 # as well as any symbol that contains `d'.
16653 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16655 # platforms (ab)use it in PIC code, but their linkers get confused if
16656 # the symbol is explicitly referenced. Since portable code cannot
16657 # rely on this symbol name, it's probably fine to never include it in
16658 # preloaded symbol tables.
16659 extract_expsyms_cmds=
16660 # Just being paranoid about ensuring that cc_basename is set.
16661 for cc_temp in $compiler""; do
16662 case $cc_temp in
16663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16665 \-*) ;;
16666 *) break;;
16667 esac
16668 done
16669 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16670
16671 case $host_os in
16672 cygwin* | mingw* | pw32*)
16673 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16674 # When not using gcc, we currently assume that we are using
16675 # Microsoft Visual C++.
16676 if test "$GCC" != yes; then
16677 with_gnu_ld=no
16678 fi
16679 ;;
16680 interix*)
16681 # we just hope/assume this is gcc and not c89 (= MSVC++)
16682 with_gnu_ld=yes
16683 ;;
16684 openbsd*)
16685 with_gnu_ld=no
16686 ;;
16687 esac
16688
16689 ld_shlibs_GCJ=yes
16690 if test "$with_gnu_ld" = yes; then
16691 # If archive_cmds runs LD, not CC, wlarc should be empty
16692 wlarc='${wl}'
16693
16694 # Set some defaults for GNU ld with shared library support. These
16695 # are reset later if shared libraries are not supported. Putting them
16696 # here allows them to be overridden if necessary.
16697 runpath_var=LD_RUN_PATH
16698 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16699 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16700 # ancient GNU ld didn't support --whole-archive et. al.
16701 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16702 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16703 else
16704 whole_archive_flag_spec_GCJ=
16705 fi
16706 supports_anon_versioning=no
16707 case `$LD -v 2>/dev/null` in
16708 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16709 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16710 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16711 *\ 2.11.*) ;; # other 2.11 versions
16712 *) supports_anon_versioning=yes ;;
16713 esac
16714
16715 # See if GNU ld supports shared libraries.
16716 case $host_os in
16717 aix3* | aix4* | aix5*)
16718 # On AIX/PPC, the GNU linker is very broken
16719 if test "$host_cpu" != ia64; then
16720 ld_shlibs_GCJ=no
16721 cat <<EOF 1>&2
16722
16723 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16724 *** to be unable to reliably create shared libraries on AIX.
16725 *** Therefore, libtool is disabling shared libraries support. If you
16726 *** really care for shared libraries, you may want to modify your PATH
16727 *** so that a non-GNU linker is found, and then restart.
16728
16729 EOF
16730 fi
16731 ;;
16732
16733 amigaos*)
16734 archive_cmds_GCJ='$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)'
16735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16736 hardcode_minus_L_GCJ=yes
16737
16738 # Samuel A. Falvo II <[email protected]> reports
16739 # that the semantics of dynamic libraries on AmigaOS, at least up
16740 # to version 4, is to share data among multiple programs linked
16741 # with the same dynamic library. Since this doesn't match the
16742 # behavior of shared libraries on other platforms, we can't use
16743 # them.
16744 ld_shlibs_GCJ=no
16745 ;;
16746
16747 beos*)
16748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16749 allow_undefined_flag_GCJ=unsupported
16750 # Joseph Beckenbach <[email protected]> says some releases of gcc
16751 # support --undefined. This deserves some investigation. FIXME
16752 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16753 else
16754 ld_shlibs_GCJ=no
16755 fi
16756 ;;
16757
16758 cygwin* | mingw* | pw32*)
16759 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16760 # as there is no search path for DLLs.
16761 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16762 allow_undefined_flag_GCJ=unsupported
16763 always_export_symbols_GCJ=no
16764 enable_shared_with_static_runtimes_GCJ=yes
16765 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16766
16767 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16769 # If the export-symbols file already is a .def file (1st line
16770 # is EXPORTS), use it as is; otherwise, prepend...
16771 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16772 cp $export_symbols $output_objdir/$soname.def;
16773 else
16774 echo EXPORTS > $output_objdir/$soname.def;
16775 cat $export_symbols >> $output_objdir/$soname.def;
16776 fi~
16777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16778 else
16779 ld_shlibs_GCJ=no
16780 fi
16781 ;;
16782
16783 interix3*)
16784 hardcode_direct_GCJ=no
16785 hardcode_shlibpath_var_GCJ=no
16786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16787 export_dynamic_flag_spec_GCJ='${wl}-E'
16788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16789 # Instead, shared libraries are loaded at an image base (0x10000000 by
16790 # default) and relocated if they conflict, which is a slow very memory
16791 # consuming and fragmenting process. To avoid this, we pick a random,
16792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16794 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16795 archive_expsym_cmds_GCJ='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'
16796 ;;
16797
16798 linux* | k*bsd*-gnu)
16799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16800 tmp_addflag=
16801 case $cc_basename,$host_cpu in
16802 pgcc*) # Portland Group C compiler
16803 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16804 tmp_addflag=' $pic_flag'
16805 ;;
16806 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16807 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16808 tmp_addflag=' $pic_flag -Mnomain' ;;
16809 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16810 tmp_addflag=' -i_dynamic' ;;
16811 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16812 tmp_addflag=' -i_dynamic -nofor_main' ;;
16813 ifc* | ifort*) # Intel Fortran compiler
16814 tmp_addflag=' -nofor_main' ;;
16815 esac
16816 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16817
16818 if test $supports_anon_versioning = yes; then
16819 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16821 $echo "local: *; };" >> $output_objdir/$libname.ver~
16822 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16823 fi
16824 link_all_deplibs_GCJ=no
16825 else
16826 ld_shlibs_GCJ=no
16827 fi
16828 ;;
16829
16830 netbsd* | netbsdelf*-gnu)
16831 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16832 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16833 wlarc=
16834 else
16835 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16836 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16837 fi
16838 ;;
16839
16840 solaris*)
16841 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16842 ld_shlibs_GCJ=no
16843 cat <<EOF 1>&2
16844
16845 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16846 *** create shared libraries on Solaris systems. Therefore, libtool
16847 *** is disabling shared libraries support. We urge you to upgrade GNU
16848 *** binutils to release 2.9.1 or newer. Another option is to modify
16849 *** your PATH or compiler configuration so that the native linker is
16850 *** used, and then restart.
16851
16852 EOF
16853 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16854 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16855 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16856 else
16857 ld_shlibs_GCJ=no
16858 fi
16859 ;;
16860
16861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16862 case `$LD -v 2>&1` in
16863 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16864 ld_shlibs_GCJ=no
16865 cat <<_LT_EOF 1>&2
16866
16867 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16868 *** reliably create shared libraries on SCO systems. Therefore, libtool
16869 *** is disabling shared libraries support. We urge you to upgrade GNU
16870 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16871 *** your PATH or compiler configuration so that the native linker is
16872 *** used, and then restart.
16873
16874 _LT_EOF
16875 ;;
16876 *)
16877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16878 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16879 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16880 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16881 else
16882 ld_shlibs_GCJ=no
16883 fi
16884 ;;
16885 esac
16886 ;;
16887
16888 sunos4*)
16889 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16890 wlarc=
16891 hardcode_direct_GCJ=yes
16892 hardcode_shlibpath_var_GCJ=no
16893 ;;
16894
16895 *)
16896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16897 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16898 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16899 else
16900 ld_shlibs_GCJ=no
16901 fi
16902 ;;
16903 esac
16904
16905 if test "$ld_shlibs_GCJ" = no; then
16906 runpath_var=
16907 hardcode_libdir_flag_spec_GCJ=
16908 export_dynamic_flag_spec_GCJ=
16909 whole_archive_flag_spec_GCJ=
16910 fi
16911 else
16912 # PORTME fill in a description of your system's linker (not GNU ld)
16913 case $host_os in
16914 aix3*)
16915 allow_undefined_flag_GCJ=unsupported
16916 always_export_symbols_GCJ=yes
16917 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16918 # Note: this linker hardcodes the directories in LIBPATH if there
16919 # are no directories specified by -L.
16920 hardcode_minus_L_GCJ=yes
16921 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16922 # Neither direct hardcoding nor static linking is supported with a
16923 # broken collect2.
16924 hardcode_direct_GCJ=unsupported
16925 fi
16926 ;;
16927
16928 aix4* | aix5*)
16929 if test "$host_cpu" = ia64; then
16930 # On IA64, the linker does run time linking by default, so we don't
16931 # have to do anything special.
16932 aix_use_runtimelinking=no
16933 exp_sym_flag='-Bexport'
16934 no_entry_flag=""
16935 else
16936 # If we're using GNU nm, then we don't want the "-C" option.
16937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16939 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16940 else
16941 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16942 fi
16943 aix_use_runtimelinking=no
16944
16945 # Test if we are trying to use run time linking or normal
16946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16947 # need to do runtime linking.
16948 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16949 for ld_flag in $LDFLAGS; do
16950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16951 aix_use_runtimelinking=yes
16952 break
16953 fi
16954 done
16955 ;;
16956 esac
16957
16958 exp_sym_flag='-bexport'
16959 no_entry_flag='-bnoentry'
16960 fi
16961
16962 # When large executables or shared objects are built, AIX ld can
16963 # have problems creating the table of contents. If linking a library
16964 # or program results in "error TOC overflow" add -mminimal-toc to
16965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16967
16968 archive_cmds_GCJ=''
16969 hardcode_direct_GCJ=yes
16970 hardcode_libdir_separator_GCJ=':'
16971 link_all_deplibs_GCJ=yes
16972
16973 if test "$GCC" = yes; then
16974 case $host_os in aix4.[012]|aix4.[012].*)
16975 # We only want to do this on AIX 4.2 and lower, the check
16976 # below for broken collect2 doesn't work under 4.3+
16977 collect2name=`${CC} -print-prog-name=collect2`
16978 if test -f "$collect2name" && \
16979 strings "$collect2name" | grep resolve_lib_name >/dev/null
16980 then
16981 # We have reworked collect2
16982 hardcode_direct_GCJ=yes
16983 else
16984 # We have old collect2
16985 hardcode_direct_GCJ=unsupported
16986 # It fails to find uninstalled libraries when the uninstalled
16987 # path is not listed in the libpath. Setting hardcode_minus_L
16988 # to unsupported forces relinking
16989 hardcode_minus_L_GCJ=yes
16990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16991 hardcode_libdir_separator_GCJ=
16992 fi
16993 ;;
16994 esac
16995 shared_flag='-shared'
16996 if test "$aix_use_runtimelinking" = yes; then
16997 shared_flag="$shared_flag "'${wl}-G'
16998 fi
16999 else
17000 # not using gcc
17001 if test "$host_cpu" = ia64; then
17002 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17003 # chokes on -Wl,-G. The following line is correct:
17004 shared_flag='-G'
17005 else
17006 if test "$aix_use_runtimelinking" = yes; then
17007 shared_flag='${wl}-G'
17008 else
17009 shared_flag='${wl}-bM:SRE'
17010 fi
17011 fi
17012 fi
17013
17014 # It seems that -bexpall does not export symbols beginning with
17015 # underscore (_), so it is better to generate a list of symbols to export.
17016 always_export_symbols_GCJ=yes
17017 if test "$aix_use_runtimelinking" = yes; then
17018 # Warning - without using the other runtime loading flags (-brtl),
17019 # -berok will link without error, but may produce a broken library.
17020 allow_undefined_flag_GCJ='-berok'
17021 # Determine the default libpath from the value encoded in an empty executable.
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028
17029 int
17030 main ()
17031 {
17032
17033 ;
17034 return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } && {
17051 test -z "$ac_c_werror_flag" ||
17052 test ! -s conftest.err
17053 } && test -s conftest$ac_exeext &&
17054 $as_test_x conftest$ac_exeext; then
17055
17056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17057 }'`
17058 # Check for a 64-bit object if we didn't find anything.
17059 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17060 }'`; fi
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065
17066 fi
17067
17068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17069 conftest$ac_exeext conftest.$ac_ext
17070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17071
17072 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17073 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17074 else
17075 if test "$host_cpu" = ia64; then
17076 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17077 allow_undefined_flag_GCJ="-z nodefs"
17078 archive_expsym_cmds_GCJ="\$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"
17079 else
17080 # Determine the default libpath from the value encoded in an empty executable.
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087
17088 int
17089 main ()
17090 {
17091
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && {
17110 test -z "$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 } && test -s conftest$ac_exeext &&
17113 $as_test_x conftest$ac_exeext; then
17114
17115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17116 }'`
17117 # Check for a 64-bit object if we didn't find anything.
17118 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17119 }'`; fi
17120 else
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124
17125 fi
17126
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17129 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17130
17131 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17132 # Warning - without using the other run time loading flags,
17133 # -berok will link without error, but may produce a broken library.
17134 no_undefined_flag_GCJ=' ${wl}-bernotok'
17135 allow_undefined_flag_GCJ=' ${wl}-berok'
17136 # Exported symbols can be pulled into shared objects from archives
17137 whole_archive_flag_spec_GCJ='$convenience'
17138 archive_cmds_need_lc_GCJ=yes
17139 # This is similar to how AIX traditionally builds its shared libraries.
17140 archive_expsym_cmds_GCJ="\$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'
17141 fi
17142 fi
17143 ;;
17144
17145 amigaos*)
17146 archive_cmds_GCJ='$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)'
17147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17148 hardcode_minus_L_GCJ=yes
17149 # see comment about different semantics on the GNU ld section
17150 ld_shlibs_GCJ=no
17151 ;;
17152
17153 bsdi[45]*)
17154 export_dynamic_flag_spec_GCJ=-rdynamic
17155 ;;
17156
17157 cygwin* | mingw* | pw32*)
17158 # When not using gcc, we currently assume that we are using
17159 # Microsoft Visual C++.
17160 # hardcode_libdir_flag_spec is actually meaningless, as there is
17161 # no search path for DLLs.
17162 hardcode_libdir_flag_spec_GCJ=' '
17163 allow_undefined_flag_GCJ=unsupported
17164 # Tell ltmain to make .lib files, not .a files.
17165 libext=lib
17166 # Tell ltmain to make .dll files, not .so files.
17167 shrext_cmds=".dll"
17168 # FIXME: Setting linknames here is a bad hack.
17169 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17170 # The linker will automatically build a .lib file if we build a DLL.
17171 old_archive_From_new_cmds_GCJ='true'
17172 # FIXME: Should let the user specify the lib program.
17173 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17174 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17175 enable_shared_with_static_runtimes_GCJ=yes
17176 ;;
17177
17178 darwin* | rhapsody*)
17179 case $host_os in
17180 rhapsody* | darwin1.[012])
17181 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17182 ;;
17183 *) # Darwin 1.3 on
17184 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17185 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17186 else
17187 case ${MACOSX_DEPLOYMENT_TARGET} in
17188 10.[012])
17189 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17190 ;;
17191 10.*)
17192 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17193 ;;
17194 esac
17195 fi
17196 ;;
17197 esac
17198 archive_cmds_need_lc_GCJ=no
17199 hardcode_direct_GCJ=no
17200 hardcode_automatic_GCJ=yes
17201 hardcode_shlibpath_var_GCJ=unsupported
17202 whole_archive_flag_spec_GCJ=''
17203 link_all_deplibs_GCJ=yes
17204 if test "$GCC" = yes ; then
17205 output_verbose_link_cmd='echo'
17206 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17207 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17209 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17210 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17211 else
17212 case $cc_basename in
17213 xlc*)
17214 output_verbose_link_cmd='echo'
17215 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17216 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17217 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17218 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17219 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17220 ;;
17221 *)
17222 ld_shlibs_GCJ=no
17223 ;;
17224 esac
17225 fi
17226 ;;
17227
17228 dgux*)
17229 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17231 hardcode_shlibpath_var_GCJ=no
17232 ;;
17233
17234 freebsd1*)
17235 ld_shlibs_GCJ=no
17236 ;;
17237
17238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17239 # support. Future versions do this automatically, but an explicit c++rt0.o
17240 # does not break anything, and helps significantly (at the cost of a little
17241 # extra space).
17242 freebsd2.2*)
17243 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17244 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17245 hardcode_direct_GCJ=yes
17246 hardcode_shlibpath_var_GCJ=no
17247 ;;
17248
17249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17250 freebsd2*)
17251 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17252 hardcode_direct_GCJ=yes
17253 hardcode_minus_L_GCJ=yes
17254 hardcode_shlibpath_var_GCJ=no
17255 ;;
17256
17257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17258 freebsd* | dragonfly*)
17259 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17260 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17261 hardcode_direct_GCJ=yes
17262 hardcode_shlibpath_var_GCJ=no
17263 ;;
17264
17265 hpux9*)
17266 if test "$GCC" = yes; then
17267 archive_cmds_GCJ='$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'
17268 else
17269 archive_cmds_GCJ='$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'
17270 fi
17271 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17272 hardcode_libdir_separator_GCJ=:
17273 hardcode_direct_GCJ=yes
17274
17275 # hardcode_minus_L: Not really in the search PATH,
17276 # but as the default location of the library.
17277 hardcode_minus_L_GCJ=yes
17278 export_dynamic_flag_spec_GCJ='${wl}-E'
17279 ;;
17280
17281 hpux10*)
17282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17283 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17284 else
17285 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17286 fi
17287 if test "$with_gnu_ld" = no; then
17288 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17289 hardcode_libdir_separator_GCJ=:
17290
17291 hardcode_direct_GCJ=yes
17292 export_dynamic_flag_spec_GCJ='${wl}-E'
17293
17294 # hardcode_minus_L: Not really in the search PATH,
17295 # but as the default location of the library.
17296 hardcode_minus_L_GCJ=yes
17297 fi
17298 ;;
17299
17300 hpux11*)
17301 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17302 case $host_cpu in
17303 hppa*64*)
17304 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17305 ;;
17306 ia64*)
17307 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17308 ;;
17309 *)
17310 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17311 ;;
17312 esac
17313 else
17314 case $host_cpu in
17315 hppa*64*)
17316 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17317 ;;
17318 ia64*)
17319 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17320 ;;
17321 *)
17322 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17323 ;;
17324 esac
17325 fi
17326 if test "$with_gnu_ld" = no; then
17327 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17328 hardcode_libdir_separator_GCJ=:
17329
17330 case $host_cpu in
17331 hppa*64*|ia64*)
17332 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17333 hardcode_direct_GCJ=no
17334 hardcode_shlibpath_var_GCJ=no
17335 ;;
17336 *)
17337 hardcode_direct_GCJ=yes
17338 export_dynamic_flag_spec_GCJ='${wl}-E'
17339
17340 # hardcode_minus_L: Not really in the search PATH,
17341 # but as the default location of the library.
17342 hardcode_minus_L_GCJ=yes
17343 ;;
17344 esac
17345 fi
17346 ;;
17347
17348 irix5* | irix6* | nonstopux*)
17349 if test "$GCC" = yes; then
17350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17351 else
17352 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17353 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17354 fi
17355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17356 hardcode_libdir_separator_GCJ=:
17357 link_all_deplibs_GCJ=yes
17358 ;;
17359
17360 netbsd* | netbsdelf*-gnu)
17361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17362 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17363 else
17364 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17365 fi
17366 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17367 hardcode_direct_GCJ=yes
17368 hardcode_shlibpath_var_GCJ=no
17369 ;;
17370
17371 newsos6)
17372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_direct_GCJ=yes
17374 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17375 hardcode_libdir_separator_GCJ=:
17376 hardcode_shlibpath_var_GCJ=no
17377 ;;
17378
17379 openbsd*)
17380 hardcode_direct_GCJ=yes
17381 hardcode_shlibpath_var_GCJ=no
17382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17383 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17384 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17386 export_dynamic_flag_spec_GCJ='${wl}-E'
17387 else
17388 case $host_os in
17389 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17390 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17391 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17392 ;;
17393 *)
17394 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17396 ;;
17397 esac
17398 fi
17399 ;;
17400
17401 os2*)
17402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17403 hardcode_minus_L_GCJ=yes
17404 allow_undefined_flag_GCJ=unsupported
17405 archive_cmds_GCJ='$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'
17406 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17407 ;;
17408
17409 osf3*)
17410 if test "$GCC" = yes; then
17411 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17412 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17413 else
17414 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17415 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17416 fi
17417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17418 hardcode_libdir_separator_GCJ=:
17419 ;;
17420
17421 osf4* | osf5*) # as osf3* with the addition of -msym flag
17422 if test "$GCC" = yes; then
17423 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17424 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17426 else
17427 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17428 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17429 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17430 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17431
17432 # Both c and cxx compiler support -rpath directly
17433 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17434 fi
17435 hardcode_libdir_separator_GCJ=:
17436 ;;
17437
17438 solaris*)
17439 no_undefined_flag_GCJ=' -z text'
17440 if test "$GCC" = yes; then
17441 wlarc='${wl}'
17442 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17444 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17445 else
17446 wlarc=''
17447 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17448 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17450 fi
17451 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17452 hardcode_shlibpath_var_GCJ=no
17453 case $host_os in
17454 solaris2.[0-5] | solaris2.[0-5].*) ;;
17455 *)
17456 # The compiler driver will combine linker options so we
17457 # cannot just pass the convience library names through
17458 # without $wl, iff we do not link with $LD.
17459 # Luckily, gcc supports the same syntax we need for Sun Studio.
17460 # Supported since Solaris 2.6 (maybe 2.5.1?)
17461 case $wlarc in
17462 '')
17463 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17464 *)
17465 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17466 esac ;;
17467 esac
17468 link_all_deplibs_GCJ=yes
17469 ;;
17470
17471 sunos4*)
17472 if test "x$host_vendor" = xsequent; then
17473 # Use $CC to link under sequent, because it throws in some extra .o
17474 # files that make .init and .fini sections work.
17475 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17476 else
17477 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17478 fi
17479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480 hardcode_direct_GCJ=yes
17481 hardcode_minus_L_GCJ=yes
17482 hardcode_shlibpath_var_GCJ=no
17483 ;;
17484
17485 sysv4)
17486 case $host_vendor in
17487 sni)
17488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17489 hardcode_direct_GCJ=yes # is this really true???
17490 ;;
17491 siemens)
17492 ## LD is ld it makes a PLAMLIB
17493 ## CC just makes a GrossModule.
17494 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17495 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17496 hardcode_direct_GCJ=no
17497 ;;
17498 motorola)
17499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17501 ;;
17502 esac
17503 runpath_var='LD_RUN_PATH'
17504 hardcode_shlibpath_var_GCJ=no
17505 ;;
17506
17507 sysv4.3*)
17508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17509 hardcode_shlibpath_var_GCJ=no
17510 export_dynamic_flag_spec_GCJ='-Bexport'
17511 ;;
17512
17513 sysv4*MP*)
17514 if test -d /usr/nec; then
17515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17516 hardcode_shlibpath_var_GCJ=no
17517 runpath_var=LD_RUN_PATH
17518 hardcode_runpath_var=yes
17519 ld_shlibs_GCJ=yes
17520 fi
17521 ;;
17522
17523 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17524 no_undefined_flag_GCJ='${wl}-z,text'
17525 archive_cmds_need_lc_GCJ=no
17526 hardcode_shlibpath_var_GCJ=no
17527 runpath_var='LD_RUN_PATH'
17528
17529 if test "$GCC" = yes; then
17530 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17531 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17532 else
17533 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17535 fi
17536 ;;
17537
17538 sysv5* | sco3.2v5* | sco5v6*)
17539 # Note: We can NOT use -z defs as we might desire, because we do not
17540 # link with -lc, and that would cause any symbols used from libc to
17541 # always be unresolved, which means just about no library would
17542 # ever link correctly. If we're not using GNU ld we use -z text
17543 # though, which does catch some bad symbols but isn't as heavy-handed
17544 # as -z defs.
17545 no_undefined_flag_GCJ='${wl}-z,text'
17546 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17547 archive_cmds_need_lc_GCJ=no
17548 hardcode_shlibpath_var_GCJ=no
17549 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17550 hardcode_libdir_separator_GCJ=':'
17551 link_all_deplibs_GCJ=yes
17552 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17553 runpath_var='LD_RUN_PATH'
17554
17555 if test "$GCC" = yes; then
17556 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 else
17559 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17560 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17561 fi
17562 ;;
17563
17564 uts4*)
17565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567 hardcode_shlibpath_var_GCJ=no
17568 ;;
17569
17570 *)
17571 ld_shlibs_GCJ=no
17572 ;;
17573 esac
17574 fi
17575
17576 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17577 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17578 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17579
17580 #
17581 # Do we need to explicitly link libc?
17582 #
17583 case "x$archive_cmds_need_lc_GCJ" in
17584 x|xyes)
17585 # Assume -lc should be added
17586 archive_cmds_need_lc_GCJ=yes
17587
17588 if test "$enable_shared" = yes && test "$GCC" = yes; then
17589 case $archive_cmds_GCJ in
17590 *'~'*)
17591 # FIXME: we may have to deal with multi-command sequences.
17592 ;;
17593 '$CC '*)
17594 # Test whether the compiler implicitly links with -lc since on some
17595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17596 # to ld, don't add -lc before -lgcc.
17597 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17598 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17599 $rm conftest*
17600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17601
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603 (eval $ac_compile) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } 2>conftest.err; then
17607 soname=conftest
17608 lib=conftest
17609 libobjs=conftest.$ac_objext
17610 deplibs=
17611 wl=$lt_prog_compiler_wl_GCJ
17612 pic_flag=$lt_prog_compiler_pic_GCJ
17613 compiler_flags=-v
17614 linker_flags=-v
17615 verstring=
17616 output_objdir=.
17617 libname=conftest
17618 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17619 allow_undefined_flag_GCJ=
17620 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17621 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }
17625 then
17626 archive_cmds_need_lc_GCJ=no
17627 else
17628 archive_cmds_need_lc_GCJ=yes
17629 fi
17630 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17631 else
17632 cat conftest.err 1>&5
17633 fi
17634 $rm conftest*
17635 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17636 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17637 ;;
17638 esac
17639 fi
17640 ;;
17641 esac
17642
17643 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17644 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17645 library_names_spec=
17646 libname_spec='lib$name'
17647 soname_spec=
17648 shrext_cmds=".so"
17649 postinstall_cmds=
17650 postuninstall_cmds=
17651 finish_cmds=
17652 finish_eval=
17653 shlibpath_var=
17654 shlibpath_overrides_runpath=unknown
17655 version_type=none
17656 dynamic_linker="$host_os ld.so"
17657 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17658 if test "$GCC" = yes; then
17659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17660 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17661 # if the path contains ";" then we assume it to be the separator
17662 # otherwise default to the standard path separator (i.e. ":") - it is
17663 # assumed that no part of a normal pathname contains ";" but that should
17664 # okay in the real world where ";" in dirpaths is itself problematic.
17665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17666 else
17667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17668 fi
17669 else
17670 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17671 fi
17672 need_lib_prefix=unknown
17673 hardcode_into_libs=no
17674
17675 # when you set need_version to no, make sure it does not cause -set_version
17676 # flags to be left without arguments
17677 need_version=unknown
17678
17679 case $host_os in
17680 aix3*)
17681 version_type=linux
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17683 shlibpath_var=LIBPATH
17684
17685 # AIX 3 has no versioning support, so we append a major version to the name.
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 ;;
17688
17689 aix4* | aix5*)
17690 version_type=linux
17691 need_lib_prefix=no
17692 need_version=no
17693 hardcode_into_libs=yes
17694 if test "$host_cpu" = ia64; then
17695 # AIX 5 supports IA64
17696 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 else
17699 # With GCC up to 2.95.x, collect2 would create an import file
17700 # for dependence libraries. The import file would start with
17701 # the line `#! .'. This would cause the generated library to
17702 # depend on `.', always an invalid library. This was fixed in
17703 # development snapshots of GCC prior to 3.0.
17704 case $host_os in
17705 aix4 | aix4.[01] | aix4.[01].*)
17706 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17707 echo ' yes '
17708 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17709 :
17710 else
17711 can_build_shared=no
17712 fi
17713 ;;
17714 esac
17715 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17716 # soname into executable. Probably we can add versioning support to
17717 # collect2, so additional links can be useful in future.
17718 if test "$aix_use_runtimelinking" = yes; then
17719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17720 # instead of lib<name>.a to let people know that these are not
17721 # typical AIX shared libraries.
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723 else
17724 # We preserve .a as extension for shared libraries through AIX4.2
17725 # and later when we are not doing run time linking.
17726 library_names_spec='${libname}${release}.a $libname.a'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 fi
17729 shlibpath_var=LIBPATH
17730 fi
17731 ;;
17732
17733 amigaos*)
17734 library_names_spec='$libname.ixlibrary $libname.a'
17735 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17736 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'
17737 ;;
17738
17739 beos*)
17740 library_names_spec='${libname}${shared_ext}'
17741 dynamic_linker="$host_os ld.so"
17742 shlibpath_var=LIBRARY_PATH
17743 ;;
17744
17745 bsdi[45]*)
17746 version_type=linux
17747 need_version=no
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17753 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17754 # the default ld.so.conf also contains /usr/contrib/lib and
17755 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17756 # libtool to hard-code these into programs
17757 ;;
17758
17759 cygwin* | mingw* | pw32*)
17760 version_type=windows
17761 shrext_cmds=".dll"
17762 need_version=no
17763 need_lib_prefix=no
17764
17765 case $GCC,$host_os in
17766 yes,cygwin* | yes,mingw* | yes,pw32*)
17767 library_names_spec='$libname.dll.a'
17768 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17769 postinstall_cmds='base_file=`basename \${file}`~
17770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17771 dldir=$destdir/`dirname \$dlpath`~
17772 test -d \$dldir || mkdir -p \$dldir~
17773 $install_prog $dir/$dlname \$dldir/$dlname~
17774 chmod a+x \$dldir/$dlname'
17775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17776 dlpath=$dir/\$dldll~
17777 $rm \$dlpath'
17778 shlibpath_overrides_runpath=yes
17779
17780 case $host_os in
17781 cygwin*)
17782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17785 ;;
17786 mingw*)
17787 # MinGW DLLs use traditional 'lib' prefix
17788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17790 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17791 # It is most probably a Windows format PATH printed by
17792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17793 # path with ; separators, and with drive letters. We can handle the
17794 # drive letters (cygwin fileutils understands them), so leave them,
17795 # especially as we might pass files found there to a mingw objdump,
17796 # which wouldn't understand a cygwinified path. Ahh.
17797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17798 else
17799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17800 fi
17801 ;;
17802 pw32*)
17803 # pw32 DLLs use 'pw' prefix rather than 'lib'
17804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17805 ;;
17806 esac
17807 ;;
17808
17809 *)
17810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17811 ;;
17812 esac
17813 dynamic_linker='Win32 ld.exe'
17814 # FIXME: first we should search . and the directory the executable is in
17815 shlibpath_var=PATH
17816 ;;
17817
17818 darwin* | rhapsody*)
17819 dynamic_linker="$host_os dyld"
17820 version_type=darwin
17821 need_lib_prefix=no
17822 need_version=no
17823 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17824 soname_spec='${libname}${release}${major}$shared_ext'
17825 shlibpath_overrides_runpath=yes
17826 shlibpath_var=DYLD_LIBRARY_PATH
17827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17828 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17829 if test "$GCC" = yes; then
17830 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17831 else
17832 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17833 fi
17834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17835 ;;
17836
17837 dgux*)
17838 version_type=linux
17839 need_lib_prefix=no
17840 need_version=no
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17842 soname_spec='${libname}${release}${shared_ext}$major'
17843 shlibpath_var=LD_LIBRARY_PATH
17844 ;;
17845
17846 freebsd1*)
17847 dynamic_linker=no
17848 ;;
17849
17850 freebsd* | dragonfly*)
17851 # DragonFly does not have aout. When/if they implement a new
17852 # versioning mechanism, adjust this.
17853 if test -x /usr/bin/objformat; then
17854 objformat=`/usr/bin/objformat`
17855 else
17856 case $host_os in
17857 freebsd[123]*) objformat=aout ;;
17858 *) objformat=elf ;;
17859 esac
17860 fi
17861 version_type=freebsd-$objformat
17862 case $version_type in
17863 freebsd-elf*)
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17865 need_version=no
17866 need_lib_prefix=no
17867 ;;
17868 freebsd-*)
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17870 need_version=yes
17871 ;;
17872 esac
17873 shlibpath_var=LD_LIBRARY_PATH
17874 case $host_os in
17875 freebsd2*)
17876 shlibpath_overrides_runpath=yes
17877 ;;
17878 freebsd3.[01]* | freebsdelf3.[01]*)
17879 shlibpath_overrides_runpath=yes
17880 hardcode_into_libs=yes
17881 ;;
17882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17884 shlibpath_overrides_runpath=no
17885 hardcode_into_libs=yes
17886 ;;
17887 freebsd*) # from 4.6 on
17888 shlibpath_overrides_runpath=yes
17889 hardcode_into_libs=yes
17890 ;;
17891 esac
17892 ;;
17893
17894 gnu*)
17895 version_type=linux
17896 need_lib_prefix=no
17897 need_version=no
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17899 soname_spec='${libname}${release}${shared_ext}$major'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 hardcode_into_libs=yes
17902 ;;
17903
17904 hpux9* | hpux10* | hpux11*)
17905 # Give a soname corresponding to the major version so that dld.sl refuses to
17906 # link against other versions.
17907 version_type=sunos
17908 need_lib_prefix=no
17909 need_version=no
17910 case $host_cpu in
17911 ia64*)
17912 shrext_cmds='.so'
17913 hardcode_into_libs=yes
17914 dynamic_linker="$host_os dld.so"
17915 shlibpath_var=LD_LIBRARY_PATH
17916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec='${libname}${release}${shared_ext}$major'
17919 if test "X$HPUX_IA64_MODE" = X32; then
17920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17921 else
17922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17923 fi
17924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17925 ;;
17926 hppa*64*)
17927 shrext_cmds='.sl'
17928 hardcode_into_libs=yes
17929 dynamic_linker="$host_os dld.sl"
17930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17936 ;;
17937 *)
17938 shrext_cmds='.sl'
17939 dynamic_linker="$host_os dld.sl"
17940 shlibpath_var=SHLIB_PATH
17941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 ;;
17945 esac
17946 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17947 postinstall_cmds='chmod 555 $lib'
17948 ;;
17949
17950 interix3*)
17951 version_type=linux
17952 need_lib_prefix=no
17953 need_version=no
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17955 soname_spec='${libname}${release}${shared_ext}$major'
17956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=no
17959 hardcode_into_libs=yes
17960 ;;
17961
17962 irix5* | irix6* | nonstopux*)
17963 case $host_os in
17964 nonstopux*) version_type=nonstopux ;;
17965 *)
17966 if test "$lt_cv_prog_gnu_ld" = yes; then
17967 version_type=linux
17968 else
17969 version_type=irix
17970 fi ;;
17971 esac
17972 need_lib_prefix=no
17973 need_version=no
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17976 case $host_os in
17977 irix5* | nonstopux*)
17978 libsuff= shlibsuff=
17979 ;;
17980 *)
17981 case $LD in # libtool.m4 will add one of these switches to LD
17982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17983 libsuff= shlibsuff= libmagic=32-bit;;
17984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17985 libsuff=32 shlibsuff=N32 libmagic=N32;;
17986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17988 *) libsuff= shlibsuff= libmagic=never-match;;
17989 esac
17990 ;;
17991 esac
17992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17993 shlibpath_overrides_runpath=no
17994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17996 hardcode_into_libs=yes
17997 ;;
17998
17999 # No shared lib support for Linux oldld, aout, or coff.
18000 linux*oldld* | linux*aout* | linux*coff*)
18001 dynamic_linker=no
18002 ;;
18003
18004 # This must be Linux ELF.
18005 linux* | k*bsd*-gnu)
18006 version_type=linux
18007 need_lib_prefix=no
18008 need_version=no
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 soname_spec='${libname}${release}${shared_ext}$major'
18011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18012 shlibpath_var=LD_LIBRARY_PATH
18013 shlibpath_overrides_runpath=no
18014 # This implies no fast_install, which is unacceptable.
18015 # Some rework will be needed to allow for fast_install
18016 # before this can be enabled.
18017 hardcode_into_libs=yes
18018
18019 # Append ld.so.conf contents to the search path
18020 if test -f /etc/ld.so.conf; then
18021 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18023 fi
18024
18025 # We used to test for /lib/ld.so.1 and disable shared libraries on
18026 # powerpc, because MkLinux only supported shared libraries with the
18027 # GNU dynamic linker. Since this was broken with cross compilers,
18028 # most powerpc-linux boxes support dynamic linking these days and
18029 # people can always --disable-shared, the test was removed, and we
18030 # assume the GNU/Linux dynamic linker is in use.
18031 dynamic_linker='GNU/Linux ld.so'
18032 ;;
18033
18034 netbsdelf*-gnu)
18035 version_type=linux
18036 need_lib_prefix=no
18037 need_version=no
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18040 shlibpath_var=LD_LIBRARY_PATH
18041 shlibpath_overrides_runpath=no
18042 hardcode_into_libs=yes
18043 dynamic_linker='NetBSD ld.elf_so'
18044 ;;
18045
18046 netbsd*)
18047 version_type=sunos
18048 need_lib_prefix=no
18049 need_version=no
18050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18053 dynamic_linker='NetBSD (a.out) ld.so'
18054 else
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 dynamic_linker='NetBSD ld.elf_so'
18058 fi
18059 shlibpath_var=LD_LIBRARY_PATH
18060 shlibpath_overrides_runpath=yes
18061 hardcode_into_libs=yes
18062 ;;
18063
18064 newsos6)
18065 version_type=linux
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 shlibpath_overrides_runpath=yes
18069 ;;
18070
18071 nto-qnx*)
18072 version_type=linux
18073 need_lib_prefix=no
18074 need_version=no
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076 soname_spec='${libname}${release}${shared_ext}$major'
18077 shlibpath_var=LD_LIBRARY_PATH
18078 shlibpath_overrides_runpath=yes
18079 ;;
18080
18081 openbsd*)
18082 version_type=sunos
18083 sys_lib_dlsearch_path_spec="/usr/lib"
18084 need_lib_prefix=no
18085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18086 case $host_os in
18087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18088 *) need_version=no ;;
18089 esac
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18092 shlibpath_var=LD_LIBRARY_PATH
18093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18094 case $host_os in
18095 openbsd2.[89] | openbsd2.[89].*)
18096 shlibpath_overrides_runpath=no
18097 ;;
18098 *)
18099 shlibpath_overrides_runpath=yes
18100 ;;
18101 esac
18102 else
18103 shlibpath_overrides_runpath=yes
18104 fi
18105 ;;
18106
18107 os2*)
18108 libname_spec='$name'
18109 shrext_cmds=".dll"
18110 need_lib_prefix=no
18111 library_names_spec='$libname${shared_ext} $libname.a'
18112 dynamic_linker='OS/2 ld.exe'
18113 shlibpath_var=LIBPATH
18114 ;;
18115
18116 osf3* | osf4* | osf5*)
18117 version_type=osf
18118 need_lib_prefix=no
18119 need_version=no
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18125 ;;
18126
18127 solaris*)
18128 version_type=linux
18129 need_lib_prefix=no
18130 need_version=no
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132 soname_spec='${libname}${release}${shared_ext}$major'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 shlibpath_overrides_runpath=yes
18135 hardcode_into_libs=yes
18136 # ldd complains unless libraries are executable
18137 postinstall_cmds='chmod +x $lib'
18138 ;;
18139
18140 sunos4*)
18141 version_type=sunos
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 shlibpath_overrides_runpath=yes
18146 if test "$with_gnu_ld" = yes; then
18147 need_lib_prefix=no
18148 fi
18149 need_version=yes
18150 ;;
18151
18152 sysv4 | sysv4.3*)
18153 version_type=linux
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18156 shlibpath_var=LD_LIBRARY_PATH
18157 case $host_vendor in
18158 sni)
18159 shlibpath_overrides_runpath=no
18160 need_lib_prefix=no
18161 export_dynamic_flag_spec='${wl}-Blargedynsym'
18162 runpath_var=LD_RUN_PATH
18163 ;;
18164 siemens)
18165 need_lib_prefix=no
18166 ;;
18167 motorola)
18168 need_lib_prefix=no
18169 need_version=no
18170 shlibpath_overrides_runpath=no
18171 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18172 ;;
18173 esac
18174 ;;
18175
18176 sysv4*MP*)
18177 if test -d /usr/nec ;then
18178 version_type=linux
18179 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18180 soname_spec='$libname${shared_ext}.$major'
18181 shlibpath_var=LD_LIBRARY_PATH
18182 fi
18183 ;;
18184
18185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18186 version_type=freebsd-elf
18187 need_lib_prefix=no
18188 need_version=no
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 shlibpath_var=LD_LIBRARY_PATH
18192 hardcode_into_libs=yes
18193 if test "$with_gnu_ld" = yes; then
18194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18195 shlibpath_overrides_runpath=no
18196 else
18197 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18198 shlibpath_overrides_runpath=yes
18199 case $host_os in
18200 sco3.2v5*)
18201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18202 ;;
18203 esac
18204 fi
18205 sys_lib_dlsearch_path_spec='/usr/lib'
18206 ;;
18207
18208 uts4*)
18209 version_type=linux
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211 soname_spec='${libname}${release}${shared_ext}$major'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 ;;
18214
18215 *)
18216 dynamic_linker=no
18217 ;;
18218 esac
18219 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18220 echo "${ECHO_T}$dynamic_linker" >&6; }
18221 test "$dynamic_linker" = no && can_build_shared=no
18222
18223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18224 if test "$GCC" = yes; then
18225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18226 fi
18227
18228 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18229 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18230 hardcode_action_GCJ=
18231 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18232 test -n "$runpath_var_GCJ" || \
18233 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18234
18235 # We can hardcode non-existant directories.
18236 if test "$hardcode_direct_GCJ" != no &&
18237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18238 # have to relink, otherwise we might link with an installed library
18239 # when we should be linking with a yet-to-be-installed one
18240 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18241 test "$hardcode_minus_L_GCJ" != no; then
18242 # Linking always hardcodes the temporary library directory.
18243 hardcode_action_GCJ=relink
18244 else
18245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18246 hardcode_action_GCJ=immediate
18247 fi
18248 else
18249 # We cannot hardcode anything, or else we can only hardcode existing
18250 # directories.
18251 hardcode_action_GCJ=unsupported
18252 fi
18253 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18254 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18255
18256 if test "$hardcode_action_GCJ" = relink; then
18257 # Fast installation is not supported
18258 enable_fast_install=no
18259 elif test "$shlibpath_overrides_runpath" = yes ||
18260 test "$enable_shared" = no; then
18261 # Fast installation is not necessary
18262 enable_fast_install=needless
18263 fi
18264
18265
18266 # The else clause should only fire when bootstrapping the
18267 # libtool distribution, otherwise you forgot to ship ltmain.sh
18268 # with your package, and you will get complaints that there are
18269 # no rules to generate ltmain.sh.
18270 if test -f "$ltmain"; then
18271 # See if we are running on zsh, and set the options which allow our commands through
18272 # without removal of \ escapes.
18273 if test -n "${ZSH_VERSION+set}" ; then
18274 setopt NO_GLOB_SUBST
18275 fi
18276 # Now quote all the things that may contain metacharacters while being
18277 # careful not to overquote the AC_SUBSTed values. We take copies of the
18278 # variables and quote the copies for generation of the libtool script.
18279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18280 SED SHELL STRIP \
18281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18283 deplibs_check_method reload_flag reload_cmds need_locks \
18284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18285 lt_cv_sys_global_symbol_to_c_name_address \
18286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18287 old_postinstall_cmds old_postuninstall_cmds \
18288 compiler_GCJ \
18289 CC_GCJ \
18290 LD_GCJ \
18291 lt_prog_compiler_wl_GCJ \
18292 lt_prog_compiler_pic_GCJ \
18293 lt_prog_compiler_static_GCJ \
18294 lt_prog_compiler_no_builtin_flag_GCJ \
18295 export_dynamic_flag_spec_GCJ \
18296 thread_safe_flag_spec_GCJ \
18297 whole_archive_flag_spec_GCJ \
18298 enable_shared_with_static_runtimes_GCJ \
18299 old_archive_cmds_GCJ \
18300 old_archive_from_new_cmds_GCJ \
18301 predep_objects_GCJ \
18302 postdep_objects_GCJ \
18303 predeps_GCJ \
18304 postdeps_GCJ \
18305 compiler_lib_search_path_GCJ \
18306 archive_cmds_GCJ \
18307 archive_expsym_cmds_GCJ \
18308 postinstall_cmds_GCJ \
18309 postuninstall_cmds_GCJ \
18310 old_archive_from_expsyms_cmds_GCJ \
18311 allow_undefined_flag_GCJ \
18312 no_undefined_flag_GCJ \
18313 export_symbols_cmds_GCJ \
18314 hardcode_libdir_flag_spec_GCJ \
18315 hardcode_libdir_flag_spec_ld_GCJ \
18316 hardcode_libdir_separator_GCJ \
18317 hardcode_automatic_GCJ \
18318 module_cmds_GCJ \
18319 module_expsym_cmds_GCJ \
18320 lt_cv_prog_compiler_c_o_GCJ \
18321 exclude_expsyms_GCJ \
18322 include_expsyms_GCJ; do
18323
18324 case $var in
18325 old_archive_cmds_GCJ | \
18326 old_archive_from_new_cmds_GCJ | \
18327 archive_cmds_GCJ | \
18328 archive_expsym_cmds_GCJ | \
18329 module_cmds_GCJ | \
18330 module_expsym_cmds_GCJ | \
18331 old_archive_from_expsyms_cmds_GCJ | \
18332 export_symbols_cmds_GCJ | \
18333 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18334 postinstall_cmds | postuninstall_cmds | \
18335 old_postinstall_cmds | old_postuninstall_cmds | \
18336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18337 # Double-quote double-evaled strings.
18338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18339 ;;
18340 *)
18341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18342 ;;
18343 esac
18344 done
18345
18346 case $lt_echo in
18347 *'\$0 --fallback-echo"')
18348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18349 ;;
18350 esac
18351
18352 cfgfile="$ofile"
18353
18354 cat <<__EOF__ >> "$cfgfile"
18355 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18356
18357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18358
18359 # Shell to use when invoking shell scripts.
18360 SHELL=$lt_SHELL
18361
18362 # Whether or not to build shared libraries.
18363 build_libtool_libs=$enable_shared
18364
18365 # Whether or not to build static libraries.
18366 build_old_libs=$enable_static
18367
18368 # Whether or not to add -lc for building shared libraries.
18369 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18370
18371 # Whether or not to disallow shared libs when runtime libs are static
18372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18373
18374 # Whether or not to optimize for fast installation.
18375 fast_install=$enable_fast_install
18376
18377 # The host system.
18378 host_alias=$host_alias
18379 host=$host
18380 host_os=$host_os
18381
18382 # The build system.
18383 build_alias=$build_alias
18384 build=$build
18385 build_os=$build_os
18386
18387 # An echo program that does not interpret backslashes.
18388 echo=$lt_echo
18389
18390 # The archiver.
18391 AR=$lt_AR
18392 AR_FLAGS=$lt_AR_FLAGS
18393
18394 # A C compiler.
18395 LTCC=$lt_LTCC
18396
18397 # LTCC compiler flags.
18398 LTCFLAGS=$lt_LTCFLAGS
18399
18400 # A language-specific compiler.
18401 CC=$lt_compiler_GCJ
18402
18403 # Is the compiler the GNU C compiler?
18404 with_gcc=$GCC_GCJ
18405
18406 # An ERE matcher.
18407 EGREP=$lt_EGREP
18408
18409 # The linker used to build libraries.
18410 LD=$lt_LD_GCJ
18411
18412 # Whether we need hard or soft links.
18413 LN_S=$lt_LN_S
18414
18415 # A BSD-compatible nm program.
18416 NM=$lt_NM
18417
18418 # A symbol stripping program
18419 STRIP=$lt_STRIP
18420
18421 # Used to examine libraries when file_magic_cmd begins "file"
18422 MAGIC_CMD=$MAGIC_CMD
18423
18424 # Used on cygwin: DLL creation program.
18425 DLLTOOL="$DLLTOOL"
18426
18427 # Used on cygwin: object dumper.
18428 OBJDUMP="$OBJDUMP"
18429
18430 # Used on cygwin: assembler.
18431 AS="$AS"
18432
18433 # The name of the directory that contains temporary libtool files.
18434 objdir=$objdir
18435
18436 # How to create reloadable object files.
18437 reload_flag=$lt_reload_flag
18438 reload_cmds=$lt_reload_cmds
18439
18440 # How to pass a linker flag through the compiler.
18441 wl=$lt_lt_prog_compiler_wl_GCJ
18442
18443 # Object file suffix (normally "o").
18444 objext="$ac_objext"
18445
18446 # Old archive suffix (normally "a").
18447 libext="$libext"
18448
18449 # Shared library suffix (normally ".so").
18450 shrext_cmds='$shrext_cmds'
18451
18452 # Executable file suffix (normally "").
18453 exeext="$exeext"
18454
18455 # Additional compiler flags for building library objects.
18456 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18457 pic_mode=$pic_mode
18458
18459 # What is the maximum length of a command?
18460 max_cmd_len=$lt_cv_sys_max_cmd_len
18461
18462 # Does compiler simultaneously support -c and -o options?
18463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18464
18465 # Must we lock files when doing compilation?
18466 need_locks=$lt_need_locks
18467
18468 # Do we need the lib prefix for modules?
18469 need_lib_prefix=$need_lib_prefix
18470
18471 # Do we need a version for libraries?
18472 need_version=$need_version
18473
18474 # Whether dlopen is supported.
18475 dlopen_support=$enable_dlopen
18476
18477 # Whether dlopen of programs is supported.
18478 dlopen_self=$enable_dlopen_self
18479
18480 # Whether dlopen of statically linked programs is supported.
18481 dlopen_self_static=$enable_dlopen_self_static
18482
18483 # Compiler flag to prevent dynamic linking.
18484 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18485
18486 # Compiler flag to turn off builtin functions.
18487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18488
18489 # Compiler flag to allow reflexive dlopens.
18490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18491
18492 # Compiler flag to generate shared objects directly from archives.
18493 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18494
18495 # Compiler flag to generate thread-safe objects.
18496 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18497
18498 # Library versioning type.
18499 version_type=$version_type
18500
18501 # Format of library name prefix.
18502 libname_spec=$lt_libname_spec
18503
18504 # List of archive names. First name is the real one, the rest are links.
18505 # The last name is the one that the linker finds with -lNAME.
18506 library_names_spec=$lt_library_names_spec
18507
18508 # The coded name of the library, if different from the real name.
18509 soname_spec=$lt_soname_spec
18510
18511 # Commands used to build and install an old-style archive.
18512 RANLIB=$lt_RANLIB
18513 old_archive_cmds=$lt_old_archive_cmds_GCJ
18514 old_postinstall_cmds=$lt_old_postinstall_cmds
18515 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18516
18517 # Create an old-style archive from a shared archive.
18518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18519
18520 # Create a temporary old-style archive to link instead of a shared archive.
18521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18522
18523 # Commands used to build and install a shared archive.
18524 archive_cmds=$lt_archive_cmds_GCJ
18525 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18526 postinstall_cmds=$lt_postinstall_cmds
18527 postuninstall_cmds=$lt_postuninstall_cmds
18528
18529 # Commands used to build a loadable module (assumed same as above if empty)
18530 module_cmds=$lt_module_cmds_GCJ
18531 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18532
18533 # Commands to strip libraries.
18534 old_striplib=$lt_old_striplib
18535 striplib=$lt_striplib
18536
18537 # Dependencies to place before the objects being linked to create a
18538 # shared library.
18539 predep_objects=$lt_predep_objects_GCJ
18540
18541 # Dependencies to place after the objects being linked to create a
18542 # shared library.
18543 postdep_objects=$lt_postdep_objects_GCJ
18544
18545 # Dependencies to place before the objects being linked to create a
18546 # shared library.
18547 predeps=$lt_predeps_GCJ
18548
18549 # Dependencies to place after the objects being linked to create a
18550 # shared library.
18551 postdeps=$lt_postdeps_GCJ
18552
18553 # The library search path used internally by the compiler when linking
18554 # a shared library.
18555 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18556
18557 # Method to check whether dependent libraries are shared objects.
18558 deplibs_check_method=$lt_deplibs_check_method
18559
18560 # Command to use when deplibs_check_method == file_magic.
18561 file_magic_cmd=$lt_file_magic_cmd
18562
18563 # Flag that allows shared libraries with undefined symbols to be built.
18564 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18565
18566 # Flag that forces no undefined symbols.
18567 no_undefined_flag=$lt_no_undefined_flag_GCJ
18568
18569 # Commands used to finish a libtool library installation in a directory.
18570 finish_cmds=$lt_finish_cmds
18571
18572 # Same as above, but a single script fragment to be evaled but not shown.
18573 finish_eval=$lt_finish_eval
18574
18575 # Take the output of nm and produce a listing of raw symbols and C names.
18576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18577
18578 # Transform the output of nm in a proper C declaration
18579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18580
18581 # Transform the output of nm in a C name address pair
18582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18583
18584 # This is the shared library runtime path variable.
18585 runpath_var=$runpath_var
18586
18587 # This is the shared library path variable.
18588 shlibpath_var=$shlibpath_var
18589
18590 # Is shlibpath searched before the hard-coded library search path?
18591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18592
18593 # How to hardcode a shared library path into an executable.
18594 hardcode_action=$hardcode_action_GCJ
18595
18596 # Whether we should hardcode library paths into libraries.
18597 hardcode_into_libs=$hardcode_into_libs
18598
18599 # Flag to hardcode \$libdir into a binary during linking.
18600 # This must work even if \$libdir does not exist.
18601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18602
18603 # If ld is used when linking, flag to hardcode \$libdir into
18604 # a binary during linking. This must work even if \$libdir does
18605 # not exist.
18606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18607
18608 # Whether we need a single -rpath flag with a separated argument.
18609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18610
18611 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18612 # resulting binary.
18613 hardcode_direct=$hardcode_direct_GCJ
18614
18615 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18616 # resulting binary.
18617 hardcode_minus_L=$hardcode_minus_L_GCJ
18618
18619 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18620 # the resulting binary.
18621 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18622
18623 # Set to yes if building a shared library automatically hardcodes DIR into the library
18624 # and all subsequent libraries and executables linked against it.
18625 hardcode_automatic=$hardcode_automatic_GCJ
18626
18627 # Variables whose values should be saved in libtool wrapper scripts and
18628 # restored at relink time.
18629 variables_saved_for_relink="$variables_saved_for_relink"
18630
18631 # Whether libtool must link a program against all its dependency libraries.
18632 link_all_deplibs=$link_all_deplibs_GCJ
18633
18634 # Compile-time system search path for libraries
18635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18636
18637 # Run-time system search path for libraries
18638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18639
18640 # Fix the shell variable \$srcfile for the compiler.
18641 fix_srcfile_path="$fix_srcfile_path_GCJ"
18642
18643 # Set to yes if exported symbols are required.
18644 always_export_symbols=$always_export_symbols_GCJ
18645
18646 # The commands to list exported symbols.
18647 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18648
18649 # The commands to extract the exported symbol list from a shared archive.
18650 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18651
18652 # Symbols that should not be listed in the preloaded symbols.
18653 exclude_expsyms=$lt_exclude_expsyms_GCJ
18654
18655 # Symbols that must always be exported.
18656 include_expsyms=$lt_include_expsyms_GCJ
18657
18658 # ### END LIBTOOL TAG CONFIG: $tagname
18659
18660 __EOF__
18661
18662
18663 else
18664 # If there is no Makefile yet, we rely on a make rule to execute
18665 # `config.status --recheck' to rerun these tests and create the
18666 # libtool script then.
18667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18668 if test -f "$ltmain_in"; then
18669 test -f Makefile && make "$ltmain"
18670 fi
18671 fi
18672
18673
18674 ac_ext=c
18675 ac_cpp='$CPP $CPPFLAGS'
18676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18679
18680 CC="$lt_save_CC"
18681
18682 else
18683 tagname=""
18684 fi
18685 ;;
18686
18687 RC)
18688
18689
18690 # Source file extension for RC test sources.
18691 ac_ext=rc
18692
18693 # Object file extension for compiled RC test sources.
18694 objext=o
18695 objext_RC=$objext
18696
18697 # Code to be used in simple compile tests
18698 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18699
18700 # Code to be used in simple link tests
18701 lt_simple_link_test_code="$lt_simple_compile_test_code"
18702
18703 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18704
18705 # If no C compiler was specified, use CC.
18706 LTCC=${LTCC-"$CC"}
18707
18708 # If no C compiler flags were specified, use CFLAGS.
18709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18710
18711 # Allow CC to be a program name with arguments.
18712 compiler=$CC
18713
18714
18715 # save warnings/boilerplate of simple test code
18716 ac_outfile=conftest.$ac_objext
18717 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18719 _lt_compiler_boilerplate=`cat conftest.err`
18720 $rm conftest*
18721
18722 ac_outfile=conftest.$ac_objext
18723 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18725 _lt_linker_boilerplate=`cat conftest.err`
18726 $rm conftest*
18727
18728
18729 # Allow CC to be a program name with arguments.
18730 lt_save_CC="$CC"
18731 CC=${RC-"windres"}
18732 compiler=$CC
18733 compiler_RC=$CC
18734 for cc_temp in $compiler""; do
18735 case $cc_temp in
18736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18738 \-*) ;;
18739 *) break;;
18740 esac
18741 done
18742 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18743
18744 lt_cv_prog_compiler_c_o_RC=yes
18745
18746 # The else clause should only fire when bootstrapping the
18747 # libtool distribution, otherwise you forgot to ship ltmain.sh
18748 # with your package, and you will get complaints that there are
18749 # no rules to generate ltmain.sh.
18750 if test -f "$ltmain"; then
18751 # See if we are running on zsh, and set the options which allow our commands through
18752 # without removal of \ escapes.
18753 if test -n "${ZSH_VERSION+set}" ; then
18754 setopt NO_GLOB_SUBST
18755 fi
18756 # Now quote all the things that may contain metacharacters while being
18757 # careful not to overquote the AC_SUBSTed values. We take copies of the
18758 # variables and quote the copies for generation of the libtool script.
18759 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18760 SED SHELL STRIP \
18761 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18762 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18763 deplibs_check_method reload_flag reload_cmds need_locks \
18764 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18765 lt_cv_sys_global_symbol_to_c_name_address \
18766 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18767 old_postinstall_cmds old_postuninstall_cmds \
18768 compiler_RC \
18769 CC_RC \
18770 LD_RC \
18771 lt_prog_compiler_wl_RC \
18772 lt_prog_compiler_pic_RC \
18773 lt_prog_compiler_static_RC \
18774 lt_prog_compiler_no_builtin_flag_RC \
18775 export_dynamic_flag_spec_RC \
18776 thread_safe_flag_spec_RC \
18777 whole_archive_flag_spec_RC \
18778 enable_shared_with_static_runtimes_RC \
18779 old_archive_cmds_RC \
18780 old_archive_from_new_cmds_RC \
18781 predep_objects_RC \
18782 postdep_objects_RC \
18783 predeps_RC \
18784 postdeps_RC \
18785 compiler_lib_search_path_RC \
18786 archive_cmds_RC \
18787 archive_expsym_cmds_RC \
18788 postinstall_cmds_RC \
18789 postuninstall_cmds_RC \
18790 old_archive_from_expsyms_cmds_RC \
18791 allow_undefined_flag_RC \
18792 no_undefined_flag_RC \
18793 export_symbols_cmds_RC \
18794 hardcode_libdir_flag_spec_RC \
18795 hardcode_libdir_flag_spec_ld_RC \
18796 hardcode_libdir_separator_RC \
18797 hardcode_automatic_RC \
18798 module_cmds_RC \
18799 module_expsym_cmds_RC \
18800 lt_cv_prog_compiler_c_o_RC \
18801 exclude_expsyms_RC \
18802 include_expsyms_RC; do
18803
18804 case $var in
18805 old_archive_cmds_RC | \
18806 old_archive_from_new_cmds_RC | \
18807 archive_cmds_RC | \
18808 archive_expsym_cmds_RC | \
18809 module_cmds_RC | \
18810 module_expsym_cmds_RC | \
18811 old_archive_from_expsyms_cmds_RC | \
18812 export_symbols_cmds_RC | \
18813 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18814 postinstall_cmds | postuninstall_cmds | \
18815 old_postinstall_cmds | old_postuninstall_cmds | \
18816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18817 # Double-quote double-evaled strings.
18818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18819 ;;
18820 *)
18821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18822 ;;
18823 esac
18824 done
18825
18826 case $lt_echo in
18827 *'\$0 --fallback-echo"')
18828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18829 ;;
18830 esac
18831
18832 cfgfile="$ofile"
18833
18834 cat <<__EOF__ >> "$cfgfile"
18835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18836
18837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18838
18839 # Shell to use when invoking shell scripts.
18840 SHELL=$lt_SHELL
18841
18842 # Whether or not to build shared libraries.
18843 build_libtool_libs=$enable_shared
18844
18845 # Whether or not to build static libraries.
18846 build_old_libs=$enable_static
18847
18848 # Whether or not to add -lc for building shared libraries.
18849 build_libtool_need_lc=$archive_cmds_need_lc_RC
18850
18851 # Whether or not to disallow shared libs when runtime libs are static
18852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18853
18854 # Whether or not to optimize for fast installation.
18855 fast_install=$enable_fast_install
18856
18857 # The host system.
18858 host_alias=$host_alias
18859 host=$host
18860 host_os=$host_os
18861
18862 # The build system.
18863 build_alias=$build_alias
18864 build=$build
18865 build_os=$build_os
18866
18867 # An echo program that does not interpret backslashes.
18868 echo=$lt_echo
18869
18870 # The archiver.
18871 AR=$lt_AR
18872 AR_FLAGS=$lt_AR_FLAGS
18873
18874 # A C compiler.
18875 LTCC=$lt_LTCC
18876
18877 # LTCC compiler flags.
18878 LTCFLAGS=$lt_LTCFLAGS
18879
18880 # A language-specific compiler.
18881 CC=$lt_compiler_RC
18882
18883 # Is the compiler the GNU C compiler?
18884 with_gcc=$GCC_RC
18885
18886 # An ERE matcher.
18887 EGREP=$lt_EGREP
18888
18889 # The linker used to build libraries.
18890 LD=$lt_LD_RC
18891
18892 # Whether we need hard or soft links.
18893 LN_S=$lt_LN_S
18894
18895 # A BSD-compatible nm program.
18896 NM=$lt_NM
18897
18898 # A symbol stripping program
18899 STRIP=$lt_STRIP
18900
18901 # Used to examine libraries when file_magic_cmd begins "file"
18902 MAGIC_CMD=$MAGIC_CMD
18903
18904 # Used on cygwin: DLL creation program.
18905 DLLTOOL="$DLLTOOL"
18906
18907 # Used on cygwin: object dumper.
18908 OBJDUMP="$OBJDUMP"
18909
18910 # Used on cygwin: assembler.
18911 AS="$AS"
18912
18913 # The name of the directory that contains temporary libtool files.
18914 objdir=$objdir
18915
18916 # How to create reloadable object files.
18917 reload_flag=$lt_reload_flag
18918 reload_cmds=$lt_reload_cmds
18919
18920 # How to pass a linker flag through the compiler.
18921 wl=$lt_lt_prog_compiler_wl_RC
18922
18923 # Object file suffix (normally "o").
18924 objext="$ac_objext"
18925
18926 # Old archive suffix (normally "a").
18927 libext="$libext"
18928
18929 # Shared library suffix (normally ".so").
18930 shrext_cmds='$shrext_cmds'
18931
18932 # Executable file suffix (normally "").
18933 exeext="$exeext"
18934
18935 # Additional compiler flags for building library objects.
18936 pic_flag=$lt_lt_prog_compiler_pic_RC
18937 pic_mode=$pic_mode
18938
18939 # What is the maximum length of a command?
18940 max_cmd_len=$lt_cv_sys_max_cmd_len
18941
18942 # Does compiler simultaneously support -c and -o options?
18943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18944
18945 # Must we lock files when doing compilation?
18946 need_locks=$lt_need_locks
18947
18948 # Do we need the lib prefix for modules?
18949 need_lib_prefix=$need_lib_prefix
18950
18951 # Do we need a version for libraries?
18952 need_version=$need_version
18953
18954 # Whether dlopen is supported.
18955 dlopen_support=$enable_dlopen
18956
18957 # Whether dlopen of programs is supported.
18958 dlopen_self=$enable_dlopen_self
18959
18960 # Whether dlopen of statically linked programs is supported.
18961 dlopen_self_static=$enable_dlopen_self_static
18962
18963 # Compiler flag to prevent dynamic linking.
18964 link_static_flag=$lt_lt_prog_compiler_static_RC
18965
18966 # Compiler flag to turn off builtin functions.
18967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18968
18969 # Compiler flag to allow reflexive dlopens.
18970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18971
18972 # Compiler flag to generate shared objects directly from archives.
18973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18974
18975 # Compiler flag to generate thread-safe objects.
18976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18977
18978 # Library versioning type.
18979 version_type=$version_type
18980
18981 # Format of library name prefix.
18982 libname_spec=$lt_libname_spec
18983
18984 # List of archive names. First name is the real one, the rest are links.
18985 # The last name is the one that the linker finds with -lNAME.
18986 library_names_spec=$lt_library_names_spec
18987
18988 # The coded name of the library, if different from the real name.
18989 soname_spec=$lt_soname_spec
18990
18991 # Commands used to build and install an old-style archive.
18992 RANLIB=$lt_RANLIB
18993 old_archive_cmds=$lt_old_archive_cmds_RC
18994 old_postinstall_cmds=$lt_old_postinstall_cmds
18995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18996
18997 # Create an old-style archive from a shared archive.
18998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18999
19000 # Create a temporary old-style archive to link instead of a shared archive.
19001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19002
19003 # Commands used to build and install a shared archive.
19004 archive_cmds=$lt_archive_cmds_RC
19005 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19006 postinstall_cmds=$lt_postinstall_cmds
19007 postuninstall_cmds=$lt_postuninstall_cmds
19008
19009 # Commands used to build a loadable module (assumed same as above if empty)
19010 module_cmds=$lt_module_cmds_RC
19011 module_expsym_cmds=$lt_module_expsym_cmds_RC
19012
19013 # Commands to strip libraries.
19014 old_striplib=$lt_old_striplib
19015 striplib=$lt_striplib
19016
19017 # Dependencies to place before the objects being linked to create a
19018 # shared library.
19019 predep_objects=$lt_predep_objects_RC
19020
19021 # Dependencies to place after the objects being linked to create a
19022 # shared library.
19023 postdep_objects=$lt_postdep_objects_RC
19024
19025 # Dependencies to place before the objects being linked to create a
19026 # shared library.
19027 predeps=$lt_predeps_RC
19028
19029 # Dependencies to place after the objects being linked to create a
19030 # shared library.
19031 postdeps=$lt_postdeps_RC
19032
19033 # The library search path used internally by the compiler when linking
19034 # a shared library.
19035 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19036
19037 # Method to check whether dependent libraries are shared objects.
19038 deplibs_check_method=$lt_deplibs_check_method
19039
19040 # Command to use when deplibs_check_method == file_magic.
19041 file_magic_cmd=$lt_file_magic_cmd
19042
19043 # Flag that allows shared libraries with undefined symbols to be built.
19044 allow_undefined_flag=$lt_allow_undefined_flag_RC
19045
19046 # Flag that forces no undefined symbols.
19047 no_undefined_flag=$lt_no_undefined_flag_RC
19048
19049 # Commands used to finish a libtool library installation in a directory.
19050 finish_cmds=$lt_finish_cmds
19051
19052 # Same as above, but a single script fragment to be evaled but not shown.
19053 finish_eval=$lt_finish_eval
19054
19055 # Take the output of nm and produce a listing of raw symbols and C names.
19056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19057
19058 # Transform the output of nm in a proper C declaration
19059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19060
19061 # Transform the output of nm in a C name address pair
19062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19063
19064 # This is the shared library runtime path variable.
19065 runpath_var=$runpath_var
19066
19067 # This is the shared library path variable.
19068 shlibpath_var=$shlibpath_var
19069
19070 # Is shlibpath searched before the hard-coded library search path?
19071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19072
19073 # How to hardcode a shared library path into an executable.
19074 hardcode_action=$hardcode_action_RC
19075
19076 # Whether we should hardcode library paths into libraries.
19077 hardcode_into_libs=$hardcode_into_libs
19078
19079 # Flag to hardcode \$libdir into a binary during linking.
19080 # This must work even if \$libdir does not exist.
19081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19082
19083 # If ld is used when linking, flag to hardcode \$libdir into
19084 # a binary during linking. This must work even if \$libdir does
19085 # not exist.
19086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19087
19088 # Whether we need a single -rpath flag with a separated argument.
19089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19090
19091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19092 # resulting binary.
19093 hardcode_direct=$hardcode_direct_RC
19094
19095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19096 # resulting binary.
19097 hardcode_minus_L=$hardcode_minus_L_RC
19098
19099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19100 # the resulting binary.
19101 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19102
19103 # Set to yes if building a shared library automatically hardcodes DIR into the library
19104 # and all subsequent libraries and executables linked against it.
19105 hardcode_automatic=$hardcode_automatic_RC
19106
19107 # Variables whose values should be saved in libtool wrapper scripts and
19108 # restored at relink time.
19109 variables_saved_for_relink="$variables_saved_for_relink"
19110
19111 # Whether libtool must link a program against all its dependency libraries.
19112 link_all_deplibs=$link_all_deplibs_RC
19113
19114 # Compile-time system search path for libraries
19115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19116
19117 # Run-time system search path for libraries
19118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19119
19120 # Fix the shell variable \$srcfile for the compiler.
19121 fix_srcfile_path="$fix_srcfile_path_RC"
19122
19123 # Set to yes if exported symbols are required.
19124 always_export_symbols=$always_export_symbols_RC
19125
19126 # The commands to list exported symbols.
19127 export_symbols_cmds=$lt_export_symbols_cmds_RC
19128
19129 # The commands to extract the exported symbol list from a shared archive.
19130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19131
19132 # Symbols that should not be listed in the preloaded symbols.
19133 exclude_expsyms=$lt_exclude_expsyms_RC
19134
19135 # Symbols that must always be exported.
19136 include_expsyms=$lt_include_expsyms_RC
19137
19138 # ### END LIBTOOL TAG CONFIG: $tagname
19139
19140 __EOF__
19141
19142
19143 else
19144 # If there is no Makefile yet, we rely on a make rule to execute
19145 # `config.status --recheck' to rerun these tests and create the
19146 # libtool script then.
19147 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19148 if test -f "$ltmain_in"; then
19149 test -f Makefile && make "$ltmain"
19150 fi
19151 fi
19152
19153
19154 ac_ext=c
19155 ac_cpp='$CPP $CPPFLAGS'
19156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19159
19160 CC="$lt_save_CC"
19161
19162 ;;
19163
19164 *)
19165 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19166 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19167 { (exit 1); exit 1; }; }
19168 ;;
19169 esac
19170
19171 # Append the new tag name to the list of available tags.
19172 if test -n "$tagname" ; then
19173 available_tags="$available_tags $tagname"
19174 fi
19175 fi
19176 done
19177 IFS="$lt_save_ifs"
19178
19179 # Now substitute the updated list of available tags.
19180 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19181 mv "${ofile}T" "$ofile"
19182 chmod +x "$ofile"
19183 else
19184 rm -f "${ofile}T"
19185 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19186 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19187 { (exit 1); exit 1; }; }
19188 fi
19189 fi
19190
19191
19192
19193 # This can be used to rebuild libtool when needed
19194 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19195
19196 # Always use our own libtool.
19197 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19198
19199 # Prevent multiple expansion
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221 # Determine extension (e.g. ".exe") on executables, if any.
19222
19223
19224 # Compiler characteristics and typedefs.
19225 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19226 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19227 if test "${ac_cv_c_const+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236
19237 int
19238 main ()
19239 {
19240 /* FIXME: Include the comments suggested by Paul. */
19241 #ifndef __cplusplus
19242 /* Ultrix mips cc rejects this. */
19243 typedef int charset[2];
19244 const charset cs;
19245 /* SunOS 4.1.1 cc rejects this. */
19246 char const *const *pcpcc;
19247 char **ppc;
19248 /* NEC SVR4.0.2 mips cc rejects this. */
19249 struct point {int x, y;};
19250 static struct point const zero = {0,0};
19251 /* AIX XL C 1.02.0.0 rejects this.
19252 It does not let you subtract one const X* pointer from another in
19253 an arm of an if-expression whose if-part is not a constant
19254 expression */
19255 const char *g = "string";
19256 pcpcc = &g + (g ? g-g : 0);
19257 /* HPUX 7.0 cc rejects these. */
19258 ++pcpcc;
19259 ppc = (char**) pcpcc;
19260 pcpcc = (char const *const *) ppc;
19261 { /* SCO 3.2v4 cc rejects this. */
19262 char *t;
19263 char const *s = 0 ? (char *) 0 : (char const *) 0;
19264
19265 *t++ = 0;
19266 if (s) return 0;
19267 }
19268 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19269 int x[] = {25, 17};
19270 const int *foo = &x[0];
19271 ++foo;
19272 }
19273 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19274 typedef const int *iptr;
19275 iptr p = 0;
19276 ++p;
19277 }
19278 { /* AIX XL C 1.02.0.0 rejects this saying
19279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19280 struct s { int j; const int *ap[3]; };
19281 struct s *b; b->j = 5;
19282 }
19283 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19284 const int foo = 10;
19285 if (!foo) return 0;
19286 }
19287 return !cs[0] && !zero.x;
19288 #endif
19289
19290 ;
19291 return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_compile") 2>conftest.er1
19302 ac_status=$?
19303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } && {
19308 test -z "$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19310 } && test -s conftest.$ac_objext; then
19311 ac_cv_c_const=yes
19312 else
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 ac_cv_c_const=no
19317 fi
19318
19319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 fi
19321 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19322 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19323 if test $ac_cv_c_const = no; then
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define const
19327 _ACEOF
19328
19329 fi
19330
19331 { echo "$as_me:$LINENO: checking for size_t" >&5
19332 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19333 if test "${ac_cv_type_size_t+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h. */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 $ac_includes_default
19343 typedef size_t ac__type_new_;
19344 int
19345 main ()
19346 {
19347 if ((ac__type_new_ *) 0)
19348 return 0;
19349 if (sizeof (ac__type_new_))
19350 return 0;
19351 ;
19352 return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (ac_try="$ac_compile"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest.$ac_objext; then
19372 ac_cv_type_size_t=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 ac_cv_type_size_t=no
19378 fi
19379
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 fi
19382 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19383 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19384 if test $ac_cv_type_size_t = yes; then
19385 :
19386 else
19387
19388 cat >>confdefs.h <<_ACEOF
19389 #define size_t unsigned int
19390 _ACEOF
19391
19392 fi
19393
19394 { echo "$as_me:$LINENO: checking for pid_t" >&5
19395 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19396 if test "${ac_cv_type_pid_t+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 $ac_includes_default
19406 typedef pid_t ac__type_new_;
19407 int
19408 main ()
19409 {
19410 if ((ac__type_new_ *) 0)
19411 return 0;
19412 if (sizeof (ac__type_new_))
19413 return 0;
19414 ;
19415 return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_compile") 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && {
19432 test -z "$ac_c_werror_flag" ||
19433 test ! -s conftest.err
19434 } && test -s conftest.$ac_objext; then
19435 ac_cv_type_pid_t=yes
19436 else
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 ac_cv_type_pid_t=no
19441 fi
19442
19443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19444 fi
19445 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19446 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19447 if test $ac_cv_type_pid_t = yes; then
19448 :
19449 else
19450
19451 cat >>confdefs.h <<_ACEOF
19452 #define pid_t int
19453 _ACEOF
19454
19455 fi
19456
19457 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19458 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
19459 if test "${ac_cv_type_signal+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h. */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 #include <sys/types.h>
19469 #include <signal.h>
19470
19471 int
19472 main ()
19473 {
19474 return *(signal (0, 0)) (0) == 1;
19475 ;
19476 return 0;
19477 }
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (ac_try="$ac_compile"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_compile") 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest.$ac_objext; then
19496 ac_cv_type_signal=int
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 ac_cv_type_signal=void
19502 fi
19503
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505 fi
19506 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19507 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
19508
19509 cat >>confdefs.h <<_ACEOF
19510 #define RETSIGTYPE $ac_cv_type_signal
19511 _ACEOF
19512
19513
19514
19515 # Check whether fflush(NULL) works
19516 { echo "$as_me:$LINENO: checking whether flushing a null FILE pointer works" >&5
19517 echo $ECHO_N "checking whether flushing a null FILE pointer works... $ECHO_C" >&6; }
19518 if test "$cross_compiling" = yes; then
19519 { echo "$as_me:$LINENO: result: no" >&5
19520 echo "${ECHO_T}no" >&6; }
19521 else
19522 cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h. */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19528
19529 #include <stdio.h>
19530 int main()
19531 {
19532 FILE *fpw, *fpr;
19533 char test_array[7];
19534
19535 if ((fpw = fopen ("conftest0", "w")) == (FILE *)0
19536 || fwrite ("FOOBAR", 1, 7, fpw) != 7
19537 || fflush ((FILE *)0) < 0
19538 || (fpr = fopen ("conftest0", "r")) == (FILE *)0
19539 || fread (test_array, 1, 7, fpr) != 7)
19540 exit (1);
19541 else
19542 exit(0); }
19543 _ACEOF
19544 rm -f conftest$ac_exeext
19545 if { (ac_try="$ac_link"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_link") 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19555 { (case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_try") 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 { echo "$as_me:$LINENO: result: yes" >&5
19565 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_NULL_FLUSH 1
19567 _ACEOF
19568
19569 else
19570 echo "$as_me: program exited with status $ac_status" >&5
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 ( exit $ac_status )
19575 { echo "$as_me:$LINENO: result: no" >&5
19576 echo "${ECHO_T}no" >&6; }
19577 fi
19578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19579 fi
19580
19581
19582
19583 # Checks for header files: ANSI C, POSIX, and nonstandard Unix headers.
19584 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19585 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19586 if test "${ac_cv_header_stdc+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 else
19589 cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h. */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <stdlib.h>
19596 #include <stdarg.h>
19597 #include <string.h>
19598 #include <float.h>
19599
19600 int
19601 main ()
19602 {
19603
19604 ;
19605 return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.$ac_objext; then
19625 ac_cv_header_stdc=yes
19626 else
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_header_stdc=no
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634
19635 if test $ac_cv_header_stdc = yes; then
19636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h. */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 #include <string.h>
19644
19645 _ACEOF
19646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19647 $EGREP "memchr" >/dev/null 2>&1; then
19648 :
19649 else
19650 ac_cv_header_stdc=no
19651 fi
19652 rm -f conftest*
19653
19654 fi
19655
19656 if test $ac_cv_header_stdc = yes; then
19657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 #include <stdlib.h>
19665
19666 _ACEOF
19667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19668 $EGREP "free" >/dev/null 2>&1; then
19669 :
19670 else
19671 ac_cv_header_stdc=no
19672 fi
19673 rm -f conftest*
19674
19675 fi
19676
19677 if test $ac_cv_header_stdc = yes; then
19678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19679 if test "$cross_compiling" = yes; then
19680 :
19681 else
19682 cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h. */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19688 #include <ctype.h>
19689 #include <stdlib.h>
19690 #if ((' ' & 0x0FF) == 0x020)
19691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19693 #else
19694 # define ISLOWER(c) \
19695 (('a' <= (c) && (c) <= 'i') \
19696 || ('j' <= (c) && (c) <= 'r') \
19697 || ('s' <= (c) && (c) <= 'z'))
19698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19699 #endif
19700
19701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19702 int
19703 main ()
19704 {
19705 int i;
19706 for (i = 0; i < 256; i++)
19707 if (XOR (islower (i), ISLOWER (i))
19708 || toupper (i) != TOUPPER (i))
19709 return 2;
19710 return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 :
19734 else
19735 echo "$as_me: program exited with status $ac_status" >&5
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739 ( exit $ac_status )
19740 ac_cv_header_stdc=no
19741 fi
19742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19743 fi
19744
19745
19746 fi
19747 fi
19748 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19749 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19750 if test $ac_cv_header_stdc = yes; then
19751
19752 cat >>confdefs.h <<\_ACEOF
19753 #define STDC_HEADERS 1
19754 _ACEOF
19755
19756 fi
19757
19758
19759
19760
19761 for ac_header in string.h limits.h float.h
19762 do
19763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 fi
19770 ac_res=`eval echo '${'$as_ac_Header'}'`
19771 { echo "$as_me:$LINENO: result: $ac_res" >&5
19772 echo "${ECHO_T}$ac_res" >&6; }
19773 else
19774 # Is the header compilable?
19775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 #include <$ac_header>
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (ac_try="$ac_compile"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_compile") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest.$ac_objext; then
19803 ac_header_compiler=yes
19804 else
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 ac_header_compiler=no
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813 echo "${ECHO_T}$ac_header_compiler" >&6; }
19814
19815 # Is the header present?
19816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <$ac_header>
19825 _ACEOF
19826 if { (ac_try="$ac_cpp conftest.$ac_ext"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } >/dev/null && {
19839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 }; then
19842 ac_header_preproc=yes
19843 else
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 ac_header_preproc=no
19848 fi
19849
19850 rm -f conftest.err conftest.$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19852 echo "${ECHO_T}$ac_header_preproc" >&6; }
19853
19854 # So? What about this header?
19855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19856 yes:no: )
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19861 ac_header_preproc=yes
19862 ;;
19863 no:yes:* )
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19876 ( cat <<\_ASBOX
19877 ## ------------------------------------ ##
19878 ## Report this to [email protected] ##
19879 ## ------------------------------------ ##
19880 _ASBOX
19881 ) | sed "s/^/$as_me: WARNING: /" >&2
19882 ;;
19883 esac
19884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889 eval "$as_ac_Header=\$ac_header_preproc"
19890 fi
19891 ac_res=`eval echo '${'$as_ac_Header'}'`
19892 { echo "$as_me:$LINENO: result: $ac_res" >&5
19893 echo "${ECHO_T}$ac_res" >&6; }
19894
19895 fi
19896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19897 cat >>confdefs.h <<_ACEOF
19898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19899 _ACEOF
19900
19901 fi
19902
19903 done
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915 for ac_header in malloc.h pthread.h strings.h unistd.h values.h sys/select.h sys/stdtypes.h sys/time.h sys/types.h sys/wait.h
19916 do
19917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 fi
19924 ac_res=`eval echo '${'$as_ac_Header'}'`
19925 { echo "$as_me:$LINENO: result: $ac_res" >&5
19926 echo "${ECHO_T}$ac_res" >&6; }
19927 else
19928 # Is the header compilable?
19929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 $ac_includes_default
19938 #include <$ac_header>
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_compile") 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest.$ac_objext; then
19957 ac_header_compiler=yes
19958 else
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 ac_header_compiler=no
19963 fi
19964
19965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19967 echo "${ECHO_T}$ac_header_compiler" >&6; }
19968
19969 # Is the header present?
19970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h. */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 #include <$ac_header>
19979 _ACEOF
19980 if { (ac_try="$ac_cpp conftest.$ac_ext"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } >/dev/null && {
19993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 }; then
19996 ac_header_preproc=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_header_preproc=no
20002 fi
20003
20004 rm -f conftest.err conftest.$ac_ext
20005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20006 echo "${ECHO_T}$ac_header_preproc" >&6; }
20007
20008 # So? What about this header?
20009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20010 yes:no: )
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20015 ac_header_preproc=yes
20016 ;;
20017 no:yes:* )
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20030 ( cat <<\_ASBOX
20031 ## ------------------------------------ ##
20032 ## Report this to [email protected] ##
20033 ## ------------------------------------ ##
20034 _ASBOX
20035 ) | sed "s/^/$as_me: WARNING: /" >&2
20036 ;;
20037 esac
20038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043 eval "$as_ac_Header=\$ac_header_preproc"
20044 fi
20045 ac_res=`eval echo '${'$as_ac_Header'}'`
20046 { echo "$as_me:$LINENO: result: $ac_res" >&5
20047 echo "${ECHO_T}$ac_res" >&6; }
20048
20049 fi
20050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20051 cat >>confdefs.h <<_ACEOF
20052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20053 _ACEOF
20054
20055 fi
20056
20057 done
20058
20059 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20060 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20061 if test "${ac_cv_header_time+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h. */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 #include <sys/types.h>
20071 #include <sys/time.h>
20072 #include <time.h>
20073
20074 int
20075 main ()
20076 {
20077 if ((struct tm *) 0)
20078 return 0;
20079 ;
20080 return 0;
20081 }
20082 _ACEOF
20083 rm -f conftest.$ac_objext
20084 if { (ac_try="$ac_compile"
20085 case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088 esac
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_compile") 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } && {
20097 test -z "$ac_c_werror_flag" ||
20098 test ! -s conftest.err
20099 } && test -s conftest.$ac_objext; then
20100 ac_cv_header_time=yes
20101 else
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 ac_cv_header_time=no
20106 fi
20107
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 fi
20110 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20111 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20112 if test $ac_cv_header_time = yes; then
20113
20114 cat >>confdefs.h <<\_ACEOF
20115 #define TIME_WITH_SYS_TIME 1
20116 _ACEOF
20117
20118 fi
20119
20120
20121 # HP/UX needs a cpp definition for math.h to define matherr-related things
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h. */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 #include <math.h>
20129
20130 _ACEOF
20131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20132 $EGREP "_HPUX_SOURCE" >/dev/null 2>&1; then
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 #include <math.h>
20140
20141 _ACEOF
20142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20143 $EGREP "matherr" >/dev/null 2>&1; then
20144 cat >>confdefs.h <<\_ACEOF
20145 #define _HPUX_SOURCE 1
20146 _ACEOF
20147
20148 fi
20149 rm -f conftest*
20150
20151 fi
20152 rm -f conftest*
20153
20154
20155 # Sui generis.
20156 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20157 # for constant arguments. Useless!
20158 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20159 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20160 if test "${ac_cv_working_alloca_h+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h. */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <alloca.h>
20170 int
20171 main ()
20172 {
20173 char *p = (char *) alloca (2 * sizeof (int));
20174 if (p) return 0;
20175 ;
20176 return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest$ac_exeext &&
20196 $as_test_x conftest$ac_exeext; then
20197 ac_cv_working_alloca_h=yes
20198 else
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_cv_working_alloca_h=no
20203 fi
20204
20205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20206 conftest$ac_exeext conftest.$ac_ext
20207 fi
20208 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20209 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20210 if test $ac_cv_working_alloca_h = yes; then
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_ALLOCA_H 1
20214 _ACEOF
20215
20216 fi
20217
20218 { echo "$as_me:$LINENO: checking for alloca" >&5
20219 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
20220 if test "${ac_cv_func_alloca_works+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h. */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20229 #ifdef __GNUC__
20230 # define alloca __builtin_alloca
20231 #else
20232 # ifdef _MSC_VER
20233 # include <malloc.h>
20234 # define alloca _alloca
20235 # else
20236 # ifdef HAVE_ALLOCA_H
20237 # include <alloca.h>
20238 # else
20239 # ifdef _AIX
20240 #pragma alloca
20241 # else
20242 # ifndef alloca /* predefined by HP cc +Olibcalls */
20243 char *alloca ();
20244 # endif
20245 # endif
20246 # endif
20247 # endif
20248 #endif
20249
20250 int
20251 main ()
20252 {
20253 char *p = (char *) alloca (1);
20254 if (p) return 0;
20255 ;
20256 return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext &&
20276 $as_test_x conftest$ac_exeext; then
20277 ac_cv_func_alloca_works=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_cv_func_alloca_works=no
20283 fi
20284
20285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20286 conftest$ac_exeext conftest.$ac_ext
20287 fi
20288 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20289 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
20290
20291 if test $ac_cv_func_alloca_works = yes; then
20292
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_ALLOCA 1
20295 _ACEOF
20296
20297 else
20298 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20299 # that cause trouble. Some versions do not even contain alloca or
20300 # contain a buggy version. If you still want to use their alloca,
20301 # use ar to extract alloca.o from them instead of compiling alloca.c.
20302
20303 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20304
20305 cat >>confdefs.h <<\_ACEOF
20306 #define C_ALLOCA 1
20307 _ACEOF
20308
20309
20310 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20311 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
20312 if test "${ac_cv_os_cray+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #if defined CRAY && ! defined CRAY2
20322 webecray
20323 #else
20324 wenotbecray
20325 #endif
20326
20327 _ACEOF
20328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20329 $EGREP "webecray" >/dev/null 2>&1; then
20330 ac_cv_os_cray=yes
20331 else
20332 ac_cv_os_cray=no
20333 fi
20334 rm -f conftest*
20335
20336 fi
20337 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20338 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
20339 if test $ac_cv_os_cray = yes; then
20340 for ac_func in _getb67 GETB67 getb67; do
20341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h. */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20355 #define $ac_func innocuous_$ac_func
20356
20357 /* System header to define __stub macros and hopefully few prototypes,
20358 which can conflict with char $ac_func (); below.
20359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20360 <limits.h> exists even on freestanding compilers. */
20361
20362 #ifdef __STDC__
20363 # include <limits.h>
20364 #else
20365 # include <assert.h>
20366 #endif
20367
20368 #undef $ac_func
20369
20370 /* Override any GCC internal prototype to avoid an error.
20371 Use char because int might match the return type of a GCC
20372 builtin and then its argument prototype would still apply. */
20373 #ifdef __cplusplus
20374 extern "C"
20375 #endif
20376 char $ac_func ();
20377 /* The GNU C library defines this for functions which it implements
20378 to always fail with ENOSYS. Some functions are actually named
20379 something starting with __ and the normal name is an alias. */
20380 #if defined __stub_$ac_func || defined __stub___$ac_func
20381 choke me
20382 #endif
20383
20384 int
20385 main ()
20386 {
20387 return $ac_func ();
20388 ;
20389 return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && {
20406 test -z "$ac_c_werror_flag" ||
20407 test ! -s conftest.err
20408 } && test -s conftest$ac_exeext &&
20409 $as_test_x conftest$ac_exeext; then
20410 eval "$as_ac_var=yes"
20411 else
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 eval "$as_ac_var=no"
20416 fi
20417
20418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20419 conftest$ac_exeext conftest.$ac_ext
20420 fi
20421 ac_res=`eval echo '${'$as_ac_var'}'`
20422 { echo "$as_me:$LINENO: result: $ac_res" >&5
20423 echo "${ECHO_T}$ac_res" >&6; }
20424 if test `eval echo '${'$as_ac_var'}'` = yes; then
20425
20426 cat >>confdefs.h <<_ACEOF
20427 #define CRAY_STACKSEG_END $ac_func
20428 _ACEOF
20429
20430 break
20431 fi
20432
20433 done
20434 fi
20435
20436 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20437 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
20438 if test "${ac_cv_c_stack_direction+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441 if test "$cross_compiling" = yes; then
20442 ac_cv_c_stack_direction=0
20443 else
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 $ac_includes_default
20451 int
20452 find_stack_direction ()
20453 {
20454 static char *addr = 0;
20455 auto char dummy;
20456 if (addr == 0)
20457 {
20458 addr = &dummy;
20459 return find_stack_direction ();
20460 }
20461 else
20462 return (&dummy > addr) ? 1 : -1;
20463 }
20464
20465 int
20466 main ()
20467 {
20468 return find_stack_direction () < 0;
20469 }
20470 _ACEOF
20471 rm -f conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_link") 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_cv_c_stack_direction=1
20492 else
20493 echo "$as_me: program exited with status $ac_status" >&5
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ( exit $ac_status )
20498 ac_cv_c_stack_direction=-1
20499 fi
20500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20501 fi
20502
20503
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20506 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
20507
20508 cat >>confdefs.h <<_ACEOF
20509 #define STACK_DIRECTION $ac_cv_c_stack_direction
20510 _ACEOF
20511
20512
20513 fi
20514
20515
20516 # Checks for programs. Automake needs AM_PROG_LEX, not AC_PROG_LEX;
20517 # ignore the bogus warning about AC_PROG_LEX being invoked twice.
20518 for ac_prog in 'bison -y' byacc
20519 do
20520 # Extract the first word of "$ac_prog", so it can be a program name with args.
20521 set dummy $ac_prog; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_prog_YACC+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527 if test -n "$YACC"; then
20528 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20529 else
20530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20531 for as_dir in $PATH
20532 do
20533 IFS=$as_save_IFS
20534 test -z "$as_dir" && as_dir=.
20535 for ac_exec_ext in '' $ac_executable_extensions; do
20536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20537 ac_cv_prog_YACC="$ac_prog"
20538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20539 break 2
20540 fi
20541 done
20542 done
20543 IFS=$as_save_IFS
20544
20545 fi
20546 fi
20547 YACC=$ac_cv_prog_YACC
20548 if test -n "$YACC"; then
20549 { echo "$as_me:$LINENO: result: $YACC" >&5
20550 echo "${ECHO_T}$YACC" >&6; }
20551 else
20552 { echo "$as_me:$LINENO: result: no" >&5
20553 echo "${ECHO_T}no" >&6; }
20554 fi
20555
20556
20557 test -n "$YACC" && break
20558 done
20559 test -n "$YACC" || YACC="yacc"
20560
20561 for ac_prog in flex lex
20562 do
20563 # Extract the first word of "$ac_prog", so it can be a program name with args.
20564 set dummy $ac_prog; ac_word=$2
20565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20567 if test "${ac_cv_prog_LEX+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570 if test -n "$LEX"; then
20571 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20572 else
20573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20574 for as_dir in $PATH
20575 do
20576 IFS=$as_save_IFS
20577 test -z "$as_dir" && as_dir=.
20578 for ac_exec_ext in '' $ac_executable_extensions; do
20579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20580 ac_cv_prog_LEX="$ac_prog"
20581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20582 break 2
20583 fi
20584 done
20585 done
20586 IFS=$as_save_IFS
20587
20588 fi
20589 fi
20590 LEX=$ac_cv_prog_LEX
20591 if test -n "$LEX"; then
20592 { echo "$as_me:$LINENO: result: $LEX" >&5
20593 echo "${ECHO_T}$LEX" >&6; }
20594 else
20595 { echo "$as_me:$LINENO: result: no" >&5
20596 echo "${ECHO_T}no" >&6; }
20597 fi
20598
20599
20600 test -n "$LEX" && break
20601 done
20602 test -n "$LEX" || LEX=":"
20603
20604 if test "x$LEX" != "x:"; then
20605 cat >conftest.l <<_ACEOF
20606 %%
20607 a { ECHO; }
20608 b { REJECT; }
20609 c { yymore (); }
20610 d { yyless (1); }
20611 e { yyless (input () != 0); }
20612 f { unput (yytext[0]); }
20613 . { BEGIN INITIAL; }
20614 %%
20615 #ifdef YYTEXT_POINTER
20616 extern char *yytext;
20617 #endif
20618 int
20619 main (void)
20620 {
20621 return ! yylex () + ! yywrap ();
20622 }
20623 _ACEOF
20624 { (ac_try="$LEX conftest.l"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$LEX conftest.l") 2>&5
20631 ac_status=$?
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }
20634 { echo "$as_me:$LINENO: checking lex output file root" >&5
20635 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20636 if test "${ac_cv_prog_lex_root+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639
20640 if test -f lex.yy.c; then
20641 ac_cv_prog_lex_root=lex.yy
20642 elif test -f lexyy.c; then
20643 ac_cv_prog_lex_root=lexyy
20644 else
20645 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20646 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20647 { (exit 1); exit 1; }; }
20648 fi
20649 fi
20650 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20651 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20652 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20653
20654 if test -z "${LEXLIB+set}"; then
20655 { echo "$as_me:$LINENO: checking lex library" >&5
20656 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
20657 if test "${ac_cv_lib_lex+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660
20661 ac_save_LIBS=$LIBS
20662 ac_cv_lib_lex='none needed'
20663 for ac_lib in '' -lfl -ll; do
20664 LIBS="$ac_lib $ac_save_LIBS"
20665 cat >conftest.$ac_ext <<_ACEOF
20666 `cat $LEX_OUTPUT_ROOT.c`
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (ac_try="$ac_link"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_link") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest$ac_exeext &&
20685 $as_test_x conftest$ac_exeext; then
20686 ac_cv_lib_lex=$ac_lib
20687 else
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691
20692 fi
20693
20694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20695 conftest$ac_exeext conftest.$ac_ext
20696 test "$ac_cv_lib_lex" != 'none needed' && break
20697 done
20698 LIBS=$ac_save_LIBS
20699
20700 fi
20701 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
20702 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
20703 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
20704 fi
20705
20706
20707 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20708 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20709 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712 # POSIX says lex can declare yytext either as a pointer or an array; the
20713 # default is implementation-dependent. Figure out which it is, since
20714 # not all implementations provide the %pointer and %array declarations.
20715 ac_cv_prog_lex_yytext_pointer=no
20716 ac_save_LIBS=$LIBS
20717 LIBS="$LEXLIB $ac_save_LIBS"
20718 cat >conftest.$ac_ext <<_ACEOF
20719 #define YYTEXT_POINTER 1
20720 `cat $LEX_OUTPUT_ROOT.c`
20721 _ACEOF
20722 rm -f conftest.$ac_objext conftest$ac_exeext
20723 if { (ac_try="$ac_link"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20727 esac
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_link") 2>conftest.er1
20730 ac_status=$?
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } && {
20736 test -z "$ac_c_werror_flag" ||
20737 test ! -s conftest.err
20738 } && test -s conftest$ac_exeext &&
20739 $as_test_x conftest$ac_exeext; then
20740 ac_cv_prog_lex_yytext_pointer=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745
20746 fi
20747
20748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20749 conftest$ac_exeext conftest.$ac_ext
20750 LIBS=$ac_save_LIBS
20751
20752 fi
20753 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20754 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20755 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20756
20757 cat >>confdefs.h <<\_ACEOF
20758 #define YYTEXT_POINTER 1
20759 _ACEOF
20760
20761 fi
20762 rm -f conftest.l $LEX_OUTPUT_ROOT.c
20763
20764 fi
20765 if test "$LEX" = :; then
20766 LEX=${am_missing_run}flex
20767 fi
20768
20769 # Should libplot/libplotter support multithreading via pthread mutexes?
20770 # Check to see whether libc includes dummy ("weak") pthread functions, so
20771 # that executables may be linked with a library that uses mutexes without
20772 # also linking with -lpthread. (This is the case with glibc under
20773 # Linux.)
20774 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
20775 echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; }
20776 if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779 ac_check_lib_save_LIBS=$LIBS
20780 LIBS="-lc $LIBS"
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787
20788 /* Override any GCC internal prototype to avoid an error.
20789 Use char because int might match the return type of a GCC
20790 builtin and then its argument prototype would still apply. */
20791 #ifdef __cplusplus
20792 extern "C"
20793 #endif
20794 char pthread_mutex_init ();
20795 int
20796 main ()
20797 {
20798 return pthread_mutex_init ();
20799 ;
20800 return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_link") 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && {
20817 test -z "$ac_c_werror_flag" ||
20818 test ! -s conftest.err
20819 } && test -s conftest$ac_exeext &&
20820 $as_test_x conftest$ac_exeext; then
20821 ac_cv_lib_c_pthread_mutex_init=yes
20822 else
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826 ac_cv_lib_c_pthread_mutex_init=no
20827 fi
20828
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 conftest$ac_exeext conftest.$ac_ext
20831 LIBS=$ac_check_lib_save_LIBS
20832 fi
20833 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
20834 echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; }
20835 if test $ac_cv_lib_c_pthread_mutex_init = yes; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define PTHREAD_SUPPORT 1
20838 _ACEOF
20839
20840 fi
20841
20842
20843 # Do we have the thread-safe library functions ctime_r(), localtime_r()?
20844
20845
20846 for ac_func in ctime_r localtime_r
20847 do
20848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h. */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20862 #define $ac_func innocuous_$ac_func
20863
20864 /* System header to define __stub macros and hopefully few prototypes,
20865 which can conflict with char $ac_func (); below.
20866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20867 <limits.h> exists even on freestanding compilers. */
20868
20869 #ifdef __STDC__
20870 # include <limits.h>
20871 #else
20872 # include <assert.h>
20873 #endif
20874
20875 #undef $ac_func
20876
20877 /* Override any GCC internal prototype to avoid an error.
20878 Use char because int might match the return type of a GCC
20879 builtin and then its argument prototype would still apply. */
20880 #ifdef __cplusplus
20881 extern "C"
20882 #endif
20883 char $ac_func ();
20884 /* The GNU C library defines this for functions which it implements
20885 to always fail with ENOSYS. Some functions are actually named
20886 something starting with __ and the normal name is an alias. */
20887 #if defined __stub_$ac_func || defined __stub___$ac_func
20888 choke me
20889 #endif
20890
20891 int
20892 main ()
20893 {
20894 return $ac_func ();
20895 ;
20896 return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && {
20913 test -z "$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 } && test -s conftest$ac_exeext &&
20916 $as_test_x conftest$ac_exeext; then
20917 eval "$as_ac_var=yes"
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922 eval "$as_ac_var=no"
20923 fi
20924
20925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20926 conftest$ac_exeext conftest.$ac_ext
20927 fi
20928 ac_res=`eval echo '${'$as_ac_var'}'`
20929 { echo "$as_me:$LINENO: result: $ac_res" >&5
20930 echo "${ECHO_T}$ac_res" >&6; }
20931 if test `eval echo '${'$as_ac_var'}'` = yes; then
20932 cat >>confdefs.h <<_ACEOF
20933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20934 _ACEOF
20935
20936 fi
20937 done
20938
20939
20940 # Do we have the POSIX waitpid() function?
20941
20942 for ac_func in waitpid
20943 do
20944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20958 #define $ac_func innocuous_$ac_func
20959
20960 /* System header to define __stub macros and hopefully few prototypes,
20961 which can conflict with char $ac_func (); below.
20962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20963 <limits.h> exists even on freestanding compilers. */
20964
20965 #ifdef __STDC__
20966 # include <limits.h>
20967 #else
20968 # include <assert.h>
20969 #endif
20970
20971 #undef $ac_func
20972
20973 /* Override any GCC internal prototype to avoid an error.
20974 Use char because int might match the return type of a GCC
20975 builtin and then its argument prototype would still apply. */
20976 #ifdef __cplusplus
20977 extern "C"
20978 #endif
20979 char $ac_func ();
20980 /* The GNU C library defines this for functions which it implements
20981 to always fail with ENOSYS. Some functions are actually named
20982 something starting with __ and the normal name is an alias. */
20983 #if defined __stub_$ac_func || defined __stub___$ac_func
20984 choke me
20985 #endif
20986
20987 int
20988 main ()
20989 {
20990 return $ac_func ();
20991 ;
20992 return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext conftest$ac_exeext
20996 if { (ac_try="$ac_link"
20997 case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_link") 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } && {
21009 test -z "$ac_c_werror_flag" ||
21010 test ! -s conftest.err
21011 } && test -s conftest$ac_exeext &&
21012 $as_test_x conftest$ac_exeext; then
21013 eval "$as_ac_var=yes"
21014 else
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018 eval "$as_ac_var=no"
21019 fi
21020
21021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21022 conftest$ac_exeext conftest.$ac_ext
21023 fi
21024 ac_res=`eval echo '${'$as_ac_var'}'`
21025 { echo "$as_me:$LINENO: result: $ac_res" >&5
21026 echo "${ECHO_T}$ac_res" >&6; }
21027 if test `eval echo '${'$as_ac_var'}'` = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21030 _ACEOF
21031
21032 fi
21033 done
21034
21035
21036 # Other non-X library functions and auxiliary libraries.
21037 #
21038 # SGI's have matherr in libmx.a, not libm.a
21039 { echo "$as_me:$LINENO: checking for matherr in -lmx" >&5
21040 echo $ECHO_N "checking for matherr in -lmx... $ECHO_C" >&6; }
21041 if test "${ac_cv_lib_mx_matherr+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044 ac_check_lib_save_LIBS=$LIBS
21045 LIBS="-lmx $LIBS"
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052
21053 /* Override any GCC internal prototype to avoid an error.
21054 Use char because int might match the return type of a GCC
21055 builtin and then its argument prototype would still apply. */
21056 #ifdef __cplusplus
21057 extern "C"
21058 #endif
21059 char matherr ();
21060 int
21061 main ()
21062 {
21063 return matherr ();
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_link") 2>conftest.er1
21076 ac_status=$?
21077 grep -v '^ *+' conftest.er1 >conftest.err
21078 rm -f conftest.er1
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } && {
21082 test -z "$ac_c_werror_flag" ||
21083 test ! -s conftest.err
21084 } && test -s conftest$ac_exeext &&
21085 $as_test_x conftest$ac_exeext; then
21086 ac_cv_lib_mx_matherr=yes
21087 else
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_lib_mx_matherr=no
21092 fi
21093
21094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21095 conftest$ac_exeext conftest.$ac_ext
21096 LIBS=$ac_check_lib_save_LIBS
21097 fi
21098 { echo "$as_me:$LINENO: result: $ac_cv_lib_mx_matherr" >&5
21099 echo "${ECHO_T}$ac_cv_lib_mx_matherr" >&6; }
21100 if test $ac_cv_lib_mx_matherr = yes; then
21101 LIBS="$LIBS -lmx"
21102 else
21103 LIBS="$LIBS -lm"
21104 fi
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114 for ac_func in memcpy memmove strchr strcasecmp strerror matherr j0 erf
21115 do
21116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21130 #define $ac_func innocuous_$ac_func
21131
21132 /* System header to define __stub macros and hopefully few prototypes,
21133 which can conflict with char $ac_func (); below.
21134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21135 <limits.h> exists even on freestanding compilers. */
21136
21137 #ifdef __STDC__
21138 # include <limits.h>
21139 #else
21140 # include <assert.h>
21141 #endif
21142
21143 #undef $ac_func
21144
21145 /* Override any GCC internal prototype to avoid an error.
21146 Use char because int might match the return type of a GCC
21147 builtin and then its argument prototype would still apply. */
21148 #ifdef __cplusplus
21149 extern "C"
21150 #endif
21151 char $ac_func ();
21152 /* The GNU C library defines this for functions which it implements
21153 to always fail with ENOSYS. Some functions are actually named
21154 something starting with __ and the normal name is an alias. */
21155 #if defined __stub_$ac_func || defined __stub___$ac_func
21156 choke me
21157 #endif
21158
21159 int
21160 main ()
21161 {
21162 return $ac_func ();
21163 ;
21164 return 0;
21165 }
21166 _ACEOF
21167 rm -f conftest.$ac_objext conftest$ac_exeext
21168 if { (ac_try="$ac_link"
21169 case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_link") 2>conftest.er1
21175 ac_status=$?
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } && {
21181 test -z "$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21183 } && test -s conftest$ac_exeext &&
21184 $as_test_x conftest$ac_exeext; then
21185 eval "$as_ac_var=yes"
21186 else
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 eval "$as_ac_var=no"
21191 fi
21192
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21195 fi
21196 ac_res=`eval echo '${'$as_ac_var'}'`
21197 { echo "$as_me:$LINENO: result: $ac_res" >&5
21198 echo "${ECHO_T}$ac_res" >&6; }
21199 if test `eval echo '${'$as_ac_var'}'` = yes; then
21200 cat >>confdefs.h <<_ACEOF
21201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21202 _ACEOF
21203
21204 fi
21205 done
21206
21207 # lgamma() and gamma() both compute the log of the gamma function. There
21208 # are old systems out there which do not have lgamma (the name was
21209 # introduced after BSD 4.2), but which do have gamma. Also some systems,
21210 # new and old, have lgamma but not gamma.
21211
21212
21213 for ac_func in lgamma gamma
21214 do
21215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h. */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21229 #define $ac_func innocuous_$ac_func
21230
21231 /* System header to define __stub macros and hopefully few prototypes,
21232 which can conflict with char $ac_func (); below.
21233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21234 <limits.h> exists even on freestanding compilers. */
21235
21236 #ifdef __STDC__
21237 # include <limits.h>
21238 #else
21239 # include <assert.h>
21240 #endif
21241
21242 #undef $ac_func
21243
21244 /* Override any GCC internal prototype to avoid an error.
21245 Use char because int might match the return type of a GCC
21246 builtin and then its argument prototype would still apply. */
21247 #ifdef __cplusplus
21248 extern "C"
21249 #endif
21250 char $ac_func ();
21251 /* The GNU C library defines this for functions which it implements
21252 to always fail with ENOSYS. Some functions are actually named
21253 something starting with __ and the normal name is an alias. */
21254 #if defined __stub_$ac_func || defined __stub___$ac_func
21255 choke me
21256 #endif
21257
21258 int
21259 main ()
21260 {
21261 return $ac_func ();
21262 ;
21263 return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest.$ac_objext conftest$ac_exeext
21267 if { (ac_try="$ac_link"
21268 case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_link") 2>conftest.er1
21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest$ac_exeext &&
21283 $as_test_x conftest$ac_exeext; then
21284 eval "$as_ac_var=yes"
21285 else
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289 eval "$as_ac_var=no"
21290 fi
21291
21292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21293 conftest$ac_exeext conftest.$ac_ext
21294 fi
21295 ac_res=`eval echo '${'$as_ac_var'}'`
21296 { echo "$as_me:$LINENO: result: $ac_res" >&5
21297 echo "${ECHO_T}$ac_res" >&6; }
21298 if test `eval echo '${'$as_ac_var'}'` = yes; then
21299 cat >>confdefs.h <<_ACEOF
21300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21301 _ACEOF
21302
21303 fi
21304 done
21305
21306
21307 # Prepare to support X. If the user gave the command-line option
21308 # --without-x, AC_PATH_XTRA will set no_x to "yes". Otherwise, it will
21309 # add appropriate preprocessor flags to X_CFLAGS, and appropriate linker
21310 # flags to X_LIBS. It also checks for system-specific X libraries, and
21311 # adds them to X_PRE_LIBS or X_EXTRA_LIBS, as appropriate. (The former
21312 # is where "-lSM -lICE" goes, in X11R6.) We define the X_TOOLKIT_LIBS
21313 # and X_BASIC_LIBS argument vectors ourselves, and if X is to be
21314 # supported, we'll concatenate the whole lot of these into a command line
21315 # for libtool. See, e.g., the libplot_la_LIBADD line in
21316 # libplot/Makefile.am.
21317
21318 { echo "$as_me:$LINENO: checking for X" >&5
21319 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21320
21321
21322 # Check whether --with-x was given.
21323 if test "${with_x+set}" = set; then
21324 withval=$with_x;
21325 fi
21326
21327 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21328 if test "x$with_x" = xno; then
21329 # The user explicitly disabled X.
21330 have_x=disabled
21331 else
21332 case $x_includes,$x_libraries in #(
21333 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21334 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21335 { (exit 1); exit 1; }; };; #(
21336 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339 # One or both of the vars are not set, and there is no cached value.
21340 ac_x_includes=no ac_x_libraries=no
21341 rm -f -r conftest.dir
21342 if mkdir conftest.dir; then
21343 cd conftest.dir
21344 cat >Imakefile <<'_ACEOF'
21345 incroot:
21346 @echo incroot='${INCROOT}'
21347 usrlibdir:
21348 @echo usrlibdir='${USRLIBDIR}'
21349 libdir:
21350 @echo libdir='${LIBDIR}'
21351 _ACEOF
21352 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21354 for ac_var in incroot usrlibdir libdir; do
21355 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21356 done
21357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21358 for ac_extension in a so sl; do
21359 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21360 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21361 ac_im_usrlibdir=$ac_im_libdir; break
21362 fi
21363 done
21364 # Screen out bogus values from the imake configuration. They are
21365 # bogus both because they are the default anyway, and because
21366 # using them would break gcc on systems where it needs fixed includes.
21367 case $ac_im_incroot in
21368 /usr/include) ac_x_includes= ;;
21369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21370 esac
21371 case $ac_im_usrlibdir in
21372 /usr/lib | /lib) ;;
21373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21374 esac
21375 fi
21376 cd ..
21377 rm -f -r conftest.dir
21378 fi
21379
21380 # Standard set of common directories for X headers.
21381 # Check X11 before X11Rn because it is often a symlink to the current release.
21382 ac_x_header_dirs='
21383 /usr/X11/include
21384 /usr/X11R6/include
21385 /usr/X11R5/include
21386 /usr/X11R4/include
21387
21388 /usr/include/X11
21389 /usr/include/X11R6
21390 /usr/include/X11R5
21391 /usr/include/X11R4
21392
21393 /usr/local/X11/include
21394 /usr/local/X11R6/include
21395 /usr/local/X11R5/include
21396 /usr/local/X11R4/include
21397
21398 /usr/local/include/X11
21399 /usr/local/include/X11R6
21400 /usr/local/include/X11R5
21401 /usr/local/include/X11R4
21402
21403 /usr/X386/include
21404 /usr/x386/include
21405 /usr/XFree86/include/X11
21406
21407 /usr/include
21408 /usr/local/include
21409 /usr/unsupported/include
21410 /usr/athena/include
21411 /usr/local/x11r5/include
21412 /usr/lpp/Xamples/include
21413
21414 /usr/openwin/include
21415 /usr/openwin/share/include'
21416
21417 if test "$ac_x_includes" = no; then
21418 # Guess where to find include files, by looking for Xlib.h.
21419 # First, try using that file with no special directory specified.
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 #include <X11/Xlib.h>
21427 _ACEOF
21428 if { (ac_try="$ac_cpp conftest.$ac_ext"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } >/dev/null && {
21441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 }; then
21444 # We can compile using X headers with no special include directory.
21445 ac_x_includes=
21446 else
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450 for ac_dir in $ac_x_header_dirs; do
21451 if test -r "$ac_dir/X11/Xlib.h"; then
21452 ac_x_includes=$ac_dir
21453 break
21454 fi
21455 done
21456 fi
21457
21458 rm -f conftest.err conftest.$ac_ext
21459 fi # $ac_x_includes = no
21460
21461 if test "$ac_x_libraries" = no; then
21462 # Check for the libraries.
21463 # See if we find them without any special options.
21464 # Don't add to $LIBS permanently.
21465 ac_save_LIBS=$LIBS
21466 LIBS="-lX11 $LIBS"
21467 cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h. */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <X11/Xlib.h>
21474 int
21475 main ()
21476 {
21477 XrmInitialize ()
21478 ;
21479 return 0;
21480 }
21481 _ACEOF
21482 rm -f conftest.$ac_objext conftest$ac_exeext
21483 if { (ac_try="$ac_link"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_link") 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest$ac_exeext &&
21499 $as_test_x conftest$ac_exeext; then
21500 LIBS=$ac_save_LIBS
21501 # We can link X programs with no special library path.
21502 ac_x_libraries=
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 LIBS=$ac_save_LIBS
21508 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21509 do
21510 # Don't even attempt the hair of trying to link an X program!
21511 for ac_extension in a so sl; do
21512 if test -r "$ac_dir/libX11.$ac_extension"; then
21513 ac_x_libraries=$ac_dir
21514 break 2
21515 fi
21516 done
21517 done
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521 conftest$ac_exeext conftest.$ac_ext
21522 fi # $ac_x_libraries = no
21523
21524 case $ac_x_includes,$ac_x_libraries in #(
21525 no,* | *,no | *\'*)
21526 # Didn't find X, or a directory has "'" in its name.
21527 ac_cv_have_x="have_x=no";; #(
21528 *)
21529 # Record where we found X for the cache.
21530 ac_cv_have_x="have_x=yes\
21531 ac_x_includes='$ac_x_includes'\
21532 ac_x_libraries='$ac_x_libraries'"
21533 esac
21534 fi
21535 ;; #(
21536 *) have_x=yes;;
21537 esac
21538 eval "$ac_cv_have_x"
21539 fi # $with_x != no
21540
21541 if test "$have_x" != yes; then
21542 { echo "$as_me:$LINENO: result: $have_x" >&5
21543 echo "${ECHO_T}$have_x" >&6; }
21544 no_x=yes
21545 else
21546 # If each of the values was on the command line, it overrides each guess.
21547 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21548 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21549 # Update the cache value to reflect the command line values.
21550 ac_cv_have_x="have_x=yes\
21551 ac_x_includes='$x_includes'\
21552 ac_x_libraries='$x_libraries'"
21553 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21554 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
21555 fi
21556
21557 if test "$no_x" = yes; then
21558 # Not all programs may use this symbol, but it does not hurt to define it.
21559
21560 cat >>confdefs.h <<\_ACEOF
21561 #define X_DISPLAY_MISSING 1
21562 _ACEOF
21563
21564 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21565 else
21566 if test -n "$x_includes"; then
21567 X_CFLAGS="$X_CFLAGS -I$x_includes"
21568 fi
21569
21570 # It would also be nice to do this for all -L options, not just this one.
21571 if test -n "$x_libraries"; then
21572 X_LIBS="$X_LIBS -L$x_libraries"
21573 # For Solaris; some versions of Sun CC require a space after -R and
21574 # others require no space. Words are not sufficient . . . .
21575 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21576 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
21577 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21578 ac_xsave_c_werror_flag=$ac_c_werror_flag
21579 ac_c_werror_flag=yes
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h. */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21586
21587 int
21588 main ()
21589 {
21590
21591 ;
21592 return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext conftest$ac_exeext
21596 if { (ac_try="$ac_link"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_link") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest$ac_exeext &&
21612 $as_test_x conftest$ac_exeext; then
21613 { echo "$as_me:$LINENO: result: no" >&5
21614 echo "${ECHO_T}no" >&6; }
21615 X_LIBS="$X_LIBS -R$x_libraries"
21616 else
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620 LIBS="$ac_xsave_LIBS -R $x_libraries"
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h. */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627
21628 int
21629 main ()
21630 {
21631
21632 ;
21633 return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (ac_try="$ac_link"
21638 case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_link") 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } && {
21650 test -z "$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 } && test -s conftest$ac_exeext &&
21653 $as_test_x conftest$ac_exeext; then
21654 { echo "$as_me:$LINENO: result: yes" >&5
21655 echo "${ECHO_T}yes" >&6; }
21656 X_LIBS="$X_LIBS -R $x_libraries"
21657 else
21658 echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21660
21661 { echo "$as_me:$LINENO: result: neither works" >&5
21662 echo "${ECHO_T}neither works" >&6; }
21663 fi
21664
21665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21666 conftest$ac_exeext conftest.$ac_ext
21667 fi
21668
21669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21670 conftest$ac_exeext conftest.$ac_ext
21671 ac_c_werror_flag=$ac_xsave_c_werror_flag
21672 LIBS=$ac_xsave_LIBS
21673 fi
21674
21675 # Check for system-dependent libraries X programs must link with.
21676 # Do this before checking for the system-independent R6 libraries
21677 # (-lICE), since we may need -lsocket or whatever for X linking.
21678
21679 if test "$ISC" = yes; then
21680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21681 else
21682 # Martyn Johnson says this is needed for Ultrix, if the X
21683 # libraries were built with DECnet support. And Karl Berry says
21684 # the Alpha needs dnet_stub (dnet does not exist).
21685 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21686 cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h. */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692
21693 /* Override any GCC internal prototype to avoid an error.
21694 Use char because int might match the return type of a GCC
21695 builtin and then its argument prototype would still apply. */
21696 #ifdef __cplusplus
21697 extern "C"
21698 #endif
21699 char XOpenDisplay ();
21700 int
21701 main ()
21702 {
21703 return XOpenDisplay ();
21704 ;
21705 return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest.$ac_objext conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_link") 2>conftest.er1
21716 ac_status=$?
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } && {
21722 test -z "$ac_c_werror_flag" ||
21723 test ! -s conftest.err
21724 } && test -s conftest$ac_exeext &&
21725 $as_test_x conftest$ac_exeext; then
21726 :
21727 else
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21732 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
21733 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 ac_check_lib_save_LIBS=$LIBS
21737 LIBS="-ldnet $LIBS"
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744
21745 /* Override any GCC internal prototype to avoid an error.
21746 Use char because int might match the return type of a GCC
21747 builtin and then its argument prototype would still apply. */
21748 #ifdef __cplusplus
21749 extern "C"
21750 #endif
21751 char dnet_ntoa ();
21752 int
21753 main ()
21754 {
21755 return dnet_ntoa ();
21756 ;
21757 return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (ac_try="$ac_link"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_link") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest$ac_exeext &&
21777 $as_test_x conftest$ac_exeext; then
21778 ac_cv_lib_dnet_dnet_ntoa=yes
21779 else
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ac_cv_lib_dnet_dnet_ntoa=no
21784 fi
21785
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787 conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_lib_save_LIBS
21789 fi
21790 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21791 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
21792 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21794 fi
21795
21796 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21797 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21798 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
21799 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802 ac_check_lib_save_LIBS=$LIBS
21803 LIBS="-ldnet_stub $LIBS"
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h. */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810
21811 /* Override any GCC internal prototype to avoid an error.
21812 Use char because int might match the return type of a GCC
21813 builtin and then its argument prototype would still apply. */
21814 #ifdef __cplusplus
21815 extern "C"
21816 #endif
21817 char dnet_ntoa ();
21818 int
21819 main ()
21820 {
21821 return dnet_ntoa ();
21822 ;
21823 return 0;
21824 }
21825 _ACEOF
21826 rm -f conftest.$ac_objext conftest$ac_exeext
21827 if { (ac_try="$ac_link"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_link") 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest$ac_exeext &&
21843 $as_test_x conftest$ac_exeext; then
21844 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 ac_cv_lib_dnet_stub_dnet_ntoa=no
21850 fi
21851
21852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21853 conftest$ac_exeext conftest.$ac_ext
21854 LIBS=$ac_check_lib_save_LIBS
21855 fi
21856 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21857 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
21858 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21859 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21860 fi
21861
21862 fi
21863 fi
21864
21865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21866 conftest$ac_exeext conftest.$ac_ext
21867 LIBS="$ac_xsave_LIBS"
21868
21869 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
21870 # to get the SysV transport functions.
21871 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21872 # needs -lnsl.
21873 # The nsl library prevents programs from opening the X display
21874 # on Irix 5.2, according to T.E. Dickey.
21875 # The functions gethostbyname, getservbyname, and inet_addr are
21876 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21877 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21878 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21879 if test "${ac_cv_func_gethostbyname+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882 cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h. */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21890 #define gethostbyname innocuous_gethostbyname
21891
21892 /* System header to define __stub macros and hopefully few prototypes,
21893 which can conflict with char gethostbyname (); below.
21894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21895 <limits.h> exists even on freestanding compilers. */
21896
21897 #ifdef __STDC__
21898 # include <limits.h>
21899 #else
21900 # include <assert.h>
21901 #endif
21902
21903 #undef gethostbyname
21904
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char gethostbyname ();
21912 /* The GNU C library defines this for functions which it implements
21913 to always fail with ENOSYS. Some functions are actually named
21914 something starting with __ and the normal name is an alias. */
21915 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21916 choke me
21917 #endif
21918
21919 int
21920 main ()
21921 {
21922 return gethostbyname ();
21923 ;
21924 return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext conftest$ac_exeext
21928 if { (ac_try="$ac_link"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_link") 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && {
21941 test -z "$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 } && test -s conftest$ac_exeext &&
21944 $as_test_x conftest$ac_exeext; then
21945 ac_cv_func_gethostbyname=yes
21946 else
21947 echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21949
21950 ac_cv_func_gethostbyname=no
21951 fi
21952
21953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21954 conftest$ac_exeext conftest.$ac_ext
21955 fi
21956 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21957 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21958
21959 if test $ac_cv_func_gethostbyname = no; then
21960 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21961 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21962 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965 ac_check_lib_save_LIBS=$LIBS
21966 LIBS="-lnsl $LIBS"
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h. */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973
21974 /* Override any GCC internal prototype to avoid an error.
21975 Use char because int might match the return type of a GCC
21976 builtin and then its argument prototype would still apply. */
21977 #ifdef __cplusplus
21978 extern "C"
21979 #endif
21980 char gethostbyname ();
21981 int
21982 main ()
21983 {
21984 return gethostbyname ();
21985 ;
21986 return 0;
21987 }
21988 _ACEOF
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (ac_try="$ac_link"
21991 case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_link") 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest$ac_exeext &&
22006 $as_test_x conftest$ac_exeext; then
22007 ac_cv_lib_nsl_gethostbyname=yes
22008 else
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22011
22012 ac_cv_lib_nsl_gethostbyname=no
22013 fi
22014
22015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22016 conftest$ac_exeext conftest.$ac_ext
22017 LIBS=$ac_check_lib_save_LIBS
22018 fi
22019 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22020 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22021 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22022 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22023 fi
22024
22025 if test $ac_cv_lib_nsl_gethostbyname = no; then
22026 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22027 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22028 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031 ac_check_lib_save_LIBS=$LIBS
22032 LIBS="-lbsd $LIBS"
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22043 #ifdef __cplusplus
22044 extern "C"
22045 #endif
22046 char gethostbyname ();
22047 int
22048 main ()
22049 {
22050 return gethostbyname ();
22051 ;
22052 return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (ac_try="$ac_link"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_link") 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest$ac_exeext &&
22072 $as_test_x conftest$ac_exeext; then
22073 ac_cv_lib_bsd_gethostbyname=yes
22074 else
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 ac_cv_lib_bsd_gethostbyname=no
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082 conftest$ac_exeext conftest.$ac_ext
22083 LIBS=$ac_check_lib_save_LIBS
22084 fi
22085 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22086 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22087 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22088 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22089 fi
22090
22091 fi
22092 fi
22093
22094 # [email protected] says without -lsocket,
22095 # socket/setsockopt and other routines are undefined under SCO ODT
22096 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22097 # on later versions), says Simon Leinen: it contains gethostby*
22098 # variants that don't use the name server (or something). -lsocket
22099 # must be given before -lnsl if both are needed. We assume that
22100 # if connect needs -lnsl, so does gethostbyname.
22101 { echo "$as_me:$LINENO: checking for connect" >&5
22102 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22103 if test "${ac_cv_func_connect+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h. */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22114 #define connect innocuous_connect
22115
22116 /* System header to define __stub macros and hopefully few prototypes,
22117 which can conflict with char connect (); below.
22118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22119 <limits.h> exists even on freestanding compilers. */
22120
22121 #ifdef __STDC__
22122 # include <limits.h>
22123 #else
22124 # include <assert.h>
22125 #endif
22126
22127 #undef connect
22128
22129 /* Override any GCC internal prototype to avoid an error.
22130 Use char because int might match the return type of a GCC
22131 builtin and then its argument prototype would still apply. */
22132 #ifdef __cplusplus
22133 extern "C"
22134 #endif
22135 char connect ();
22136 /* The GNU C library defines this for functions which it implements
22137 to always fail with ENOSYS. Some functions are actually named
22138 something starting with __ and the normal name is an alias. */
22139 #if defined __stub_connect || defined __stub___connect
22140 choke me
22141 #endif
22142
22143 int
22144 main ()
22145 {
22146 return connect ();
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_link") 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && {
22165 test -z "$ac_c_werror_flag" ||
22166 test ! -s conftest.err
22167 } && test -s conftest$ac_exeext &&
22168 $as_test_x conftest$ac_exeext; then
22169 ac_cv_func_connect=yes
22170 else
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174 ac_cv_func_connect=no
22175 fi
22176
22177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22178 conftest$ac_exeext conftest.$ac_ext
22179 fi
22180 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22181 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22182
22183 if test $ac_cv_func_connect = no; then
22184 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22185 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22186 if test "${ac_cv_lib_socket_connect+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189 ac_check_lib_save_LIBS=$LIBS
22190 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22191 cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h. */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197
22198 /* Override any GCC internal prototype to avoid an error.
22199 Use char because int might match the return type of a GCC
22200 builtin and then its argument prototype would still apply. */
22201 #ifdef __cplusplus
22202 extern "C"
22203 #endif
22204 char connect ();
22205 int
22206 main ()
22207 {
22208 return connect ();
22209 ;
22210 return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest.$ac_objext conftest$ac_exeext
22214 if { (ac_try="$ac_link"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_link") 2>conftest.er1
22221 ac_status=$?
22222 grep -v '^ *+' conftest.er1 >conftest.err
22223 rm -f conftest.er1
22224 cat conftest.err >&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest$ac_exeext &&
22230 $as_test_x conftest$ac_exeext; then
22231 ac_cv_lib_socket_connect=yes
22232 else
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ac_cv_lib_socket_connect=no
22237 fi
22238
22239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22240 conftest$ac_exeext conftest.$ac_ext
22241 LIBS=$ac_check_lib_save_LIBS
22242 fi
22243 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22244 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22245 if test $ac_cv_lib_socket_connect = yes; then
22246 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22247 fi
22248
22249 fi
22250
22251 # Guillermo Gomez says -lposix is necessary on A/UX.
22252 { echo "$as_me:$LINENO: checking for remove" >&5
22253 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22254 if test "${ac_cv_func_remove+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22265 #define remove innocuous_remove
22266
22267 /* System header to define __stub macros and hopefully few prototypes,
22268 which can conflict with char remove (); below.
22269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22270 <limits.h> exists even on freestanding compilers. */
22271
22272 #ifdef __STDC__
22273 # include <limits.h>
22274 #else
22275 # include <assert.h>
22276 #endif
22277
22278 #undef remove
22279
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22283 #ifdef __cplusplus
22284 extern "C"
22285 #endif
22286 char remove ();
22287 /* The GNU C library defines this for functions which it implements
22288 to always fail with ENOSYS. Some functions are actually named
22289 something starting with __ and the normal name is an alias. */
22290 #if defined __stub_remove || defined __stub___remove
22291 choke me
22292 #endif
22293
22294 int
22295 main ()
22296 {
22297 return remove ();
22298 ;
22299 return 0;
22300 }
22301 _ACEOF
22302 rm -f conftest.$ac_objext conftest$ac_exeext
22303 if { (ac_try="$ac_link"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_link") 2>conftest.er1
22310 ac_status=$?
22311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest$ac_exeext &&
22319 $as_test_x conftest$ac_exeext; then
22320 ac_cv_func_remove=yes
22321 else
22322 echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22324
22325 ac_cv_func_remove=no
22326 fi
22327
22328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22329 conftest$ac_exeext conftest.$ac_ext
22330 fi
22331 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22332 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22333
22334 if test $ac_cv_func_remove = no; then
22335 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22336 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22337 if test "${ac_cv_lib_posix_remove+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340 ac_check_lib_save_LIBS=$LIBS
22341 LIBS="-lposix $LIBS"
22342 cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h. */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348
22349 /* Override any GCC internal prototype to avoid an error.
22350 Use char because int might match the return type of a GCC
22351 builtin and then its argument prototype would still apply. */
22352 #ifdef __cplusplus
22353 extern "C"
22354 #endif
22355 char remove ();
22356 int
22357 main ()
22358 {
22359 return remove ();
22360 ;
22361 return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
22372 ac_status=$?
22373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && {
22378 test -z "$ac_c_werror_flag" ||
22379 test ! -s conftest.err
22380 } && test -s conftest$ac_exeext &&
22381 $as_test_x conftest$ac_exeext; then
22382 ac_cv_lib_posix_remove=yes
22383 else
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ac_cv_lib_posix_remove=no
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22391 conftest$ac_exeext conftest.$ac_ext
22392 LIBS=$ac_check_lib_save_LIBS
22393 fi
22394 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22395 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22396 if test $ac_cv_lib_posix_remove = yes; then
22397 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22398 fi
22399
22400 fi
22401
22402 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22403 { echo "$as_me:$LINENO: checking for shmat" >&5
22404 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22405 if test "${ac_cv_func_shmat+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22416 #define shmat innocuous_shmat
22417
22418 /* System header to define __stub macros and hopefully few prototypes,
22419 which can conflict with char shmat (); below.
22420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22421 <limits.h> exists even on freestanding compilers. */
22422
22423 #ifdef __STDC__
22424 # include <limits.h>
22425 #else
22426 # include <assert.h>
22427 #endif
22428
22429 #undef shmat
22430
22431 /* Override any GCC internal prototype to avoid an error.
22432 Use char because int might match the return type of a GCC
22433 builtin and then its argument prototype would still apply. */
22434 #ifdef __cplusplus
22435 extern "C"
22436 #endif
22437 char shmat ();
22438 /* The GNU C library defines this for functions which it implements
22439 to always fail with ENOSYS. Some functions are actually named
22440 something starting with __ and the normal name is an alias. */
22441 #if defined __stub_shmat || defined __stub___shmat
22442 choke me
22443 #endif
22444
22445 int
22446 main ()
22447 {
22448 return shmat ();
22449 ;
22450 return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_link") 2>conftest.er1
22461 ac_status=$?
22462 grep -v '^ *+' conftest.er1 >conftest.err
22463 rm -f conftest.er1
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest$ac_exeext &&
22470 $as_test_x conftest$ac_exeext; then
22471 ac_cv_func_shmat=yes
22472 else
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476 ac_cv_func_shmat=no
22477 fi
22478
22479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22480 conftest$ac_exeext conftest.$ac_ext
22481 fi
22482 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22483 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22484
22485 if test $ac_cv_func_shmat = no; then
22486 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22487 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22488 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491 ac_check_lib_save_LIBS=$LIBS
22492 LIBS="-lipc $LIBS"
22493 cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h. */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499
22500 /* Override any GCC internal prototype to avoid an error.
22501 Use char because int might match the return type of a GCC
22502 builtin and then its argument prototype would still apply. */
22503 #ifdef __cplusplus
22504 extern "C"
22505 #endif
22506 char shmat ();
22507 int
22508 main ()
22509 {
22510 return shmat ();
22511 ;
22512 return 0;
22513 }
22514 _ACEOF
22515 rm -f conftest.$ac_objext conftest$ac_exeext
22516 if { (ac_try="$ac_link"
22517 case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22520 esac
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_link") 2>conftest.er1
22523 ac_status=$?
22524 grep -v '^ *+' conftest.er1 >conftest.err
22525 rm -f conftest.er1
22526 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } && {
22529 test -z "$ac_c_werror_flag" ||
22530 test ! -s conftest.err
22531 } && test -s conftest$ac_exeext &&
22532 $as_test_x conftest$ac_exeext; then
22533 ac_cv_lib_ipc_shmat=yes
22534 else
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22537
22538 ac_cv_lib_ipc_shmat=no
22539 fi
22540
22541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22542 conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22544 fi
22545 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22546 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
22547 if test $ac_cv_lib_ipc_shmat = yes; then
22548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22549 fi
22550
22551 fi
22552 fi
22553
22554 # Check for libraries that X11R6 Xt/Xaw programs need.
22555 ac_save_LDFLAGS=$LDFLAGS
22556 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22557 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22558 # check for ICE first), but we must link in the order -lSM -lICE or
22559 # we get undefined symbols. So assume we have SM if we have ICE.
22560 # These have to be linked with before -lX11, unlike the other
22561 # libraries we check for below, so use a different variable.
22562 # John Interrante, Karl Berry
22563 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22564 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
22565 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 else
22568 ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22570 cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h. */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576
22577 /* Override any GCC internal prototype to avoid an error.
22578 Use char because int might match the return type of a GCC
22579 builtin and then its argument prototype would still apply. */
22580 #ifdef __cplusplus
22581 extern "C"
22582 #endif
22583 char IceConnectionNumber ();
22584 int
22585 main ()
22586 {
22587 return IceConnectionNumber ();
22588 ;
22589 return 0;
22590 }
22591 _ACEOF
22592 rm -f conftest.$ac_objext conftest$ac_exeext
22593 if { (ac_try="$ac_link"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_link") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest$ac_exeext &&
22609 $as_test_x conftest$ac_exeext; then
22610 ac_cv_lib_ICE_IceConnectionNumber=yes
22611 else
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615 ac_cv_lib_ICE_IceConnectionNumber=no
22616 fi
22617
22618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22619 conftest$ac_exeext conftest.$ac_ext
22620 LIBS=$ac_check_lib_save_LIBS
22621 fi
22622 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22623 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
22624 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22625 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22626 fi
22627
22628 LDFLAGS=$ac_save_LDFLAGS
22629
22630 fi
22631
22632
22633 # Following five are concatenated together into a linker specification.
22634
22635
22636
22637
22638
22639
22640 X_TOOLKIT_LIBS="-lXt"
22641 X_BASIC_LIBS="-lXext -lX11"
22642
22643 # Check whether libXt has thread support. Some platforms may have
22644 # pthread support in libc, but no thread support in libXt/libX11.
22645 our_saved_LDFLAGS="$LDFLAGS"
22646 LDFLAGS="$X_LIBS $LDFLAGS"
22647 { echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
22648 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6; }
22649 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 ac_check_lib_save_LIBS=$LIBS
22653 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
22654 cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h. */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660
22661 /* Override any GCC internal prototype to avoid an error.
22662 Use char because int might match the return type of a GCC
22663 builtin and then its argument prototype would still apply. */
22664 #ifdef __cplusplus
22665 extern "C"
22666 #endif
22667 char XtToolkitThreadInitialize ();
22668 int
22669 main ()
22670 {
22671 return XtToolkitThreadInitialize ();
22672 ;
22673 return 0;
22674 }
22675 _ACEOF
22676 rm -f conftest.$ac_objext conftest$ac_exeext
22677 if { (ac_try="$ac_link"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_link") 2>conftest.er1
22684 ac_status=$?
22685 grep -v '^ *+' conftest.er1 >conftest.err
22686 rm -f conftest.er1
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest$ac_exeext &&
22693 $as_test_x conftest$ac_exeext; then
22694 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
22695 else
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
22700 fi
22701
22702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22703 conftest$ac_exeext conftest.$ac_ext
22704 LIBS=$ac_check_lib_save_LIBS
22705 fi
22706 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
22707 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6; }
22708 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
22709 cat >>confdefs.h <<\_ACEOF
22710 #define X_THREAD_SUPPORT 1
22711 _ACEOF
22712
22713 fi
22714
22715 LDFLAGS="$our_saved_LDFLAGS"
22716
22717 # Check in -lXext for double buffering extensions to X11, and check
22718 # also whether appropriate header files are present. (Some systems have one
22719 # but not the other.)
22720 our_saved_LDFLAGS="$LDFLAGS"
22721 LDFLAGS="$X_LIBS $LDFLAGS"
22722 { echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
22723 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6; }
22724 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22727 ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735
22736 /* Override any GCC internal prototype to avoid an error.
22737 Use char because int might match the return type of a GCC
22738 builtin and then its argument prototype would still apply. */
22739 #ifdef __cplusplus
22740 extern "C"
22741 #endif
22742 char XdbeQueryExtension ();
22743 int
22744 main ()
22745 {
22746 return XdbeQueryExtension ();
22747 ;
22748 return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (ac_try="$ac_link"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22756 esac
22757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_link") 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest$ac_exeext &&
22768 $as_test_x conftest$ac_exeext; then
22769 ac_cv_lib_Xext_XdbeQueryExtension=yes
22770 else
22771 echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22773
22774 ac_cv_lib_Xext_XdbeQueryExtension=no
22775 fi
22776
22777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22778 conftest$ac_exeext conftest.$ac_ext
22779 LIBS=$ac_check_lib_save_LIBS
22780 fi
22781 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
22782 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
22783 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_DBE_SUPPORT 1
22786 _ACEOF
22787
22788 fi
22789
22790 { echo "$as_me:$LINENO: checking for XmbufQueryExtension in -lXext" >&5
22791 echo $ECHO_N "checking for XmbufQueryExtension in -lXext... $ECHO_C" >&6; }
22792 if test "${ac_cv_lib_Xext_XmbufQueryExtension+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795 ac_check_lib_save_LIBS=$LIBS
22796 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h. */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803
22804 /* Override any GCC internal prototype to avoid an error.
22805 Use char because int might match the return type of a GCC
22806 builtin and then its argument prototype would still apply. */
22807 #ifdef __cplusplus
22808 extern "C"
22809 #endif
22810 char XmbufQueryExtension ();
22811 int
22812 main ()
22813 {
22814 return XmbufQueryExtension ();
22815 ;
22816 return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (ac_try="$ac_link"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22824 esac
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_link") 2>conftest.er1
22827 ac_status=$?
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest$ac_exeext &&
22836 $as_test_x conftest$ac_exeext; then
22837 ac_cv_lib_Xext_XmbufQueryExtension=yes
22838 else
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22841
22842 ac_cv_lib_Xext_XmbufQueryExtension=no
22843 fi
22844
22845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22846 conftest$ac_exeext conftest.$ac_ext
22847 LIBS=$ac_check_lib_save_LIBS
22848 fi
22849 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XmbufQueryExtension" >&5
22850 echo "${ECHO_T}$ac_cv_lib_Xext_XmbufQueryExtension" >&6; }
22851 if test $ac_cv_lib_Xext_XmbufQueryExtension = yes; then
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_MBX_SUPPORT 1
22854 _ACEOF
22855
22856 fi
22857
22858 LDFLAGS="$our_saved_LDFLAGS"
22859
22860 our_saved_CPPFLAGS="$CPPFLAGS"
22861 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
22862
22863
22864 for ac_header in X11/Xlib.h
22865 do
22866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22872 fi
22873 ac_res=`eval echo '${'$as_ac_Header'}'`
22874 { echo "$as_me:$LINENO: result: $ac_res" >&5
22875 echo "${ECHO_T}$ac_res" >&6; }
22876 else
22877 # Is the header compilable?
22878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22887 #include <$ac_header>
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22894 esac
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896 (eval "$ac_compile") 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
22905 } && test -s conftest.$ac_objext; then
22906 ac_header_compiler=yes
22907 else
22908 echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22910
22911 ac_header_compiler=no
22912 fi
22913
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22916 echo "${ECHO_T}$ac_header_compiler" >&6; }
22917
22918 # Is the header present?
22919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22921 cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h. */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 #include <$ac_header>
22928 _ACEOF
22929 if { (ac_try="$ac_cpp conftest.$ac_ext"
22930 case "(($ac_try" in
22931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22936 ac_status=$?
22937 grep -v '^ *+' conftest.er1 >conftest.err
22938 rm -f conftest.er1
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } >/dev/null && {
22942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22943 test ! -s conftest.err
22944 }; then
22945 ac_header_preproc=yes
22946 else
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 ac_header_preproc=no
22951 fi
22952
22953 rm -f conftest.err conftest.$ac_ext
22954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22955 echo "${ECHO_T}$ac_header_preproc" >&6; }
22956
22957 # So? What about this header?
22958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22959 yes:no: )
22960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22964 ac_header_preproc=yes
22965 ;;
22966 no:yes:* )
22967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22979 ( cat <<\_ASBOX
22980 ## ------------------------------------ ##
22981 ## Report this to [email protected] ##
22982 ## ------------------------------------ ##
22983 _ASBOX
22984 ) | sed "s/^/$as_me: WARNING: /" >&2
22985 ;;
22986 esac
22987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 else
22992 eval "$as_ac_Header=\$ac_header_preproc"
22993 fi
22994 ac_res=`eval echo '${'$as_ac_Header'}'`
22995 { echo "$as_me:$LINENO: result: $ac_res" >&5
22996 echo "${ECHO_T}$ac_res" >&6; }
22997
22998 fi
22999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23000 cat >>confdefs.h <<_ACEOF
23001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23002 _ACEOF
23003
23004 fi
23005
23006 done
23007
23008
23009 for ac_header in X11/extensions/Xdbe.h
23010 do
23011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h. */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 #if HAVE_X11_XLIB_H
23024 # include <X11/Xlib.h>
23025 # endif
23026
23027
23028 #include <$ac_header>
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23035 esac
23036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23037 (eval "$ac_compile") 2>conftest.er1
23038 ac_status=$?
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } && {
23044 test -z "$ac_c_werror_flag" ||
23045 test ! -s conftest.err
23046 } && test -s conftest.$ac_objext; then
23047 eval "$as_ac_Header=yes"
23048 else
23049 echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23051
23052 eval "$as_ac_Header=no"
23053 fi
23054
23055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056 fi
23057 ac_res=`eval echo '${'$as_ac_Header'}'`
23058 { echo "$as_me:$LINENO: result: $ac_res" >&5
23059 echo "${ECHO_T}$ac_res" >&6; }
23060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23063 _ACEOF
23064
23065 fi
23066
23067 done
23068
23069
23070 for ac_header in X11/extensions/multibuf.h
23071 do
23072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #if HAVE_X11_XLIB_H
23085 # include <X11/Xlib.h>
23086 # endif
23087
23088
23089 #include <$ac_header>
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23108 eval "$as_ac_Header=yes"
23109 else
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 eval "$as_ac_Header=no"
23114 fi
23115
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 fi
23118 ac_res=`eval echo '${'$as_ac_Header'}'`
23119 { echo "$as_me:$LINENO: result: $ac_res" >&5
23120 echo "${ECHO_T}$ac_res" >&6; }
23121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23122 cat >>confdefs.h <<_ACEOF
23123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23124 _ACEOF
23125
23126 fi
23127
23128 done
23129
23130
23131 CPPFLAGS="$our_saved_CPPFLAGS"
23132
23133 # Allow installer to specify location of Athena widgets (i.e. location of
23134 # libraries lib/libXaw.so and lib/libXmu.so, and header files). If the
23135 # argument of --with-athena is a directory DIR, we'll add an `-L DIR/lib'
23136 # option to the head of X_LIBS and an `-I DIR/include' option to the head
23137 # of X_CFLAGS.
23138
23139
23140 # Check whether --with-athena was given.
23141 if test "${with_athena+set}" = set; then
23142 withval=$with_athena;
23143 fi
23144
23145
23146 # If --with-motif is specified, then `-lXm' will be added to the head of
23147 # X_TOOLKIT_LIBS, instead of `-lXaw -lXmu', and --with-athena will be
23148 # ignored. We allow the installer to specify DIR, the location of Motif.
23149 # If the argument of --with-motif is a directory, an `-L DIR/lib' option
23150 # will be added to the head of X_LIBS and an `-I DIR/include' option to
23151 # the head of C_FLAGS.
23152
23153
23154 # Check whether --with-motif was given.
23155 if test "${with_motif+set}" = set; then
23156 withval=$with_motif;
23157 fi
23158
23159
23160 # If --with-motif is specified, we always check for the Xpm image
23161 # library, and if we find it, then we place it at the beginning of
23162 # X_BASIC_LIBS, since Motif 2.x requires it (it may be included in -lXm
23163 # already, though). We also allow the installer to specify a location
23164 # for Xpm. If DIR is specified as an argument to --with-xpm, DIR/include
23165 # should contain xpm.h, and DIR/lib should contain the library libxpm.
23166
23167
23168 # Check whether --with-xpm was given.
23169 if test "${with_xpm+set}" = set; then
23170 withval=$with_xpm;
23171 fi
23172
23173
23174 # NOTE: Motif 2.x also seems to require the extension library -lXp for
23175 # printing, so if --with-motif is specified we always check for libXp.
23176 # If we find it, we'll place `-lXp' before `-lXext -lX11' in
23177 # X_BASIC_LIBS. Also, Motif on Sys-V derived systems requires `-lPW'.
23178 # If we find libPW, we'll add `-lPW' to LIBS, but precede it by -lc
23179 # because some of its definitions may conflict with the standard library.
23180 # Similarly we always check for libgen, which some versions of Motif on
23181 # Solaris need.
23182
23183 # NOTE: For each `with' option, there are four possible values for the
23184 # associated shell variable, all of which we must handle:
23185 #
23186 # 1. "" (if neither `--with-foo' nor `--without-foo' was specified)
23187 # 2. "no" (obtained if `--without-foo' was specified)
23188 # 3. "yes" (obtained if `--with-foo' was specified, without an argument)
23189 # 4. DIR (obtained if `--with-foo DIR' was specified)
23190
23191 case "x$with_motif" in
23192 xno|x)
23193 case "x$with_athena" in
23194 xyes|x)
23195 X_TOOLKIT_LIBS="-lXaw -lXmu $X_TOOLKIT_LIBS"
23196 ;;
23197 xno) ;;
23198 *)
23199 X_TOOLKIT_LIBS="-lXaw -lXmu $X_TOOLKIT_LIBS"
23200 X_CFLAGS="$X_CFLAGS -I$with_athena/include"
23201 X_LIBS="$X_LIBS -L$with_athena/lib"
23202 ;;
23203 esac
23204 ;;
23205 *)
23206 if test "x$with_motif" != "xyes"; then
23207 X_CFLAGS="$X_CFLAGS -I$with_motif/include"
23208 X_LIBS="$X_LIBS -L$with_motif/lib"
23209 fi
23210
23211 X_TOOLKIT_LIBS="-lXm $X_TOOLKIT_LIBS"
23212
23213 our_saved_LDFLAGS="$LDFLAGS"
23214 LDFLAGS="$LDFLAGS $X_LIBS"
23215 case "x$with_xpm" in
23216 xno|x)
23217 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
23218 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
23219 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
23221 else
23222 ac_check_lib_save_LIBS=$LIBS
23223 LIBS="-lXpm -lXext -lX11 $LIBS"
23224 cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h. */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23230
23231 /* Override any GCC internal prototype to avoid an error.
23232 Use char because int might match the return type of a GCC
23233 builtin and then its argument prototype would still apply. */
23234 #ifdef __cplusplus
23235 extern "C"
23236 #endif
23237 char XpmReadFileToPixmap ();
23238 int
23239 main ()
23240 {
23241 return XpmReadFileToPixmap ();
23242 ;
23243 return 0;
23244 }
23245 _ACEOF
23246 rm -f conftest.$ac_objext conftest$ac_exeext
23247 if { (ac_try="$ac_link"
23248 case "(($ac_try" in
23249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250 *) ac_try_echo=$ac_try;;
23251 esac
23252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23253 (eval "$ac_link") 2>conftest.er1
23254 ac_status=$?
23255 grep -v '^ *+' conftest.er1 >conftest.err
23256 rm -f conftest.er1
23257 cat conftest.err >&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } && {
23260 test -z "$ac_c_werror_flag" ||
23261 test ! -s conftest.err
23262 } && test -s conftest$ac_exeext &&
23263 $as_test_x conftest$ac_exeext; then
23264 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
23265 else
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23268
23269 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
23270 fi
23271
23272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23273 conftest$ac_exeext conftest.$ac_ext
23274 LIBS=$ac_check_lib_save_LIBS
23275 fi
23276 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
23277 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
23278 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
23279 X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
23280 fi
23281
23282 ;;
23283 xyes)
23284 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
23285 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
23286 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289 ac_check_lib_save_LIBS=$LIBS
23290 LIBS="-lXpm -lXext -lX11 $LIBS"
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h. */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297
23298 /* Override any GCC internal prototype to avoid an error.
23299 Use char because int might match the return type of a GCC
23300 builtin and then its argument prototype would still apply. */
23301 #ifdef __cplusplus
23302 extern "C"
23303 #endif
23304 char XpmReadFileToPixmap ();
23305 int
23306 main ()
23307 {
23308 return XpmReadFileToPixmap ();
23309 ;
23310 return 0;
23311 }
23312 _ACEOF
23313 rm -f conftest.$ac_objext conftest$ac_exeext
23314 if { (ac_try="$ac_link"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318 esac
23319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_link") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } && {
23327 test -z "$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 } && test -s conftest$ac_exeext &&
23330 $as_test_x conftest$ac_exeext; then
23331 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
23332 else
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23335
23336 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
23337 fi
23338
23339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23340 conftest$ac_exeext conftest.$ac_ext
23341 LIBS=$ac_check_lib_save_LIBS
23342 fi
23343 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
23344 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
23345 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
23346 X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
23347 fi
23348
23349 ;;
23350 *)
23351 LDFLAGS="$LDFLAGS -L$with_xpm/lib"
23352 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
23353 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
23354 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23356 else
23357 ac_check_lib_save_LIBS=$LIBS
23358 LIBS="-lXpm -lXext -lX11 $LIBS"
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h. */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365
23366 /* Override any GCC internal prototype to avoid an error.
23367 Use char because int might match the return type of a GCC
23368 builtin and then its argument prototype would still apply. */
23369 #ifdef __cplusplus
23370 extern "C"
23371 #endif
23372 char XpmReadFileToPixmap ();
23373 int
23374 main ()
23375 {
23376 return XpmReadFileToPixmap ();
23377 ;
23378 return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext conftest$ac_exeext
23382 if { (ac_try="$ac_link"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_link") 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } && {
23395 test -z "$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 } && test -s conftest$ac_exeext &&
23398 $as_test_x conftest$ac_exeext; then
23399 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
23400 else
23401 echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23403
23404 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
23405 fi
23406
23407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23408 conftest$ac_exeext conftest.$ac_ext
23409 LIBS=$ac_check_lib_save_LIBS
23410 fi
23411 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
23412 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
23413 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
23414 X_CFLAGS="$X_CFLAGS -I$with_xpm/include"; X_LIBS="$X_LIBS -L$with_xpm/lib"; X_BASIC_LIBS="-lXpm $X_BASIC_LIBS"
23415 fi
23416
23417 ;;
23418 esac
23419 LDFLAGS="$our_saved_LDFLAGS"
23420
23421 our_saved_LDFLAGS="$LDFLAGS"
23422 LDFLAGS="$LDFLAGS $X_LIBS"
23423 { echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
23424 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6; }
23425 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23427 else
23428 ac_check_lib_save_LIBS=$LIBS
23429 LIBS="-lXp -lXext -lX11 $LIBS"
23430 cat >conftest.$ac_ext <<_ACEOF
23431 /* confdefs.h. */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23436
23437 /* Override any GCC internal prototype to avoid an error.
23438 Use char because int might match the return type of a GCC
23439 builtin and then its argument prototype would still apply. */
23440 #ifdef __cplusplus
23441 extern "C"
23442 #endif
23443 char XpQueryExtension ();
23444 int
23445 main ()
23446 {
23447 return XpQueryExtension ();
23448 ;
23449 return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext conftest$ac_exeext
23453 if { (ac_try="$ac_link"
23454 case "(($ac_try" in
23455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456 *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459 (eval "$ac_link") 2>conftest.er1
23460 ac_status=$?
23461 grep -v '^ *+' conftest.er1 >conftest.err
23462 rm -f conftest.er1
23463 cat conftest.err >&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && {
23466 test -z "$ac_c_werror_flag" ||
23467 test ! -s conftest.err
23468 } && test -s conftest$ac_exeext &&
23469 $as_test_x conftest$ac_exeext; then
23470 ac_cv_lib_Xp_XpQueryExtension=yes
23471 else
23472 echo "$as_me: failed program was:" >&5
23473 sed 's/^/| /' conftest.$ac_ext >&5
23474
23475 ac_cv_lib_Xp_XpQueryExtension=no
23476 fi
23477
23478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23479 conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23481 fi
23482 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
23483 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6; }
23484 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
23485 X_BASIC_LIBS="-lXp $X_BASIC_LIBS"
23486 fi
23487
23488 { echo "$as_me:$LINENO: checking for regex in -lgen" >&5
23489 echo $ECHO_N "checking for regex in -lgen... $ECHO_C" >&6; }
23490 if test "${ac_cv_lib_gen_regex+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493 ac_check_lib_save_LIBS=$LIBS
23494 LIBS="-lgen $LIBS"
23495 cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h. */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501
23502 /* Override any GCC internal prototype to avoid an error.
23503 Use char because int might match the return type of a GCC
23504 builtin and then its argument prototype would still apply. */
23505 #ifdef __cplusplus
23506 extern "C"
23507 #endif
23508 char regex ();
23509 int
23510 main ()
23511 {
23512 return regex ();
23513 ;
23514 return 0;
23515 }
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (ac_try="$ac_link"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23522 esac
23523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_link") 2>conftest.er1
23525 ac_status=$?
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest$ac_exeext &&
23534 $as_test_x conftest$ac_exeext; then
23535 ac_cv_lib_gen_regex=yes
23536 else
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540 ac_cv_lib_gen_regex=no
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544 conftest$ac_exeext conftest.$ac_ext
23545 LIBS=$ac_check_lib_save_LIBS
23546 fi
23547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regex" >&5
23548 echo "${ECHO_T}$ac_cv_lib_gen_regex" >&6; }
23549 if test $ac_cv_lib_gen_regex = yes; then
23550 LIBS="$LIBS -lc -lgen"
23551 else
23552 LIBS="$LIBS"
23553 fi
23554
23555 { echo "$as_me:$LINENO: checking for regex in -lPW" >&5
23556 echo $ECHO_N "checking for regex in -lPW... $ECHO_C" >&6; }
23557 if test "${ac_cv_lib_PW_regex+set}" = set; then
23558 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 else
23560 ac_check_lib_save_LIBS=$LIBS
23561 LIBS="-lPW $LIBS"
23562 cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h. */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568
23569 /* Override any GCC internal prototype to avoid an error.
23570 Use char because int might match the return type of a GCC
23571 builtin and then its argument prototype would still apply. */
23572 #ifdef __cplusplus
23573 extern "C"
23574 #endif
23575 char regex ();
23576 int
23577 main ()
23578 {
23579 return regex ();
23580 ;
23581 return 0;
23582 }
23583 _ACEOF
23584 rm -f conftest.$ac_objext conftest$ac_exeext
23585 if { (ac_try="$ac_link"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_link") 2>conftest.er1
23592 ac_status=$?
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest$ac_exeext &&
23601 $as_test_x conftest$ac_exeext; then
23602 ac_cv_lib_PW_regex=yes
23603 else
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607 ac_cv_lib_PW_regex=no
23608 fi
23609
23610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23611 conftest$ac_exeext conftest.$ac_ext
23612 LIBS=$ac_check_lib_save_LIBS
23613 fi
23614 { echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regex" >&5
23615 echo "${ECHO_T}$ac_cv_lib_PW_regex" >&6; }
23616 if test $ac_cv_lib_PW_regex = yes; then
23617 LIBS="$LIBS -lc -lPW"
23618 else
23619 LIBS="$LIBS"
23620 fi
23621
23622 LDFLAGS="$our_saved_LDFLAGS"
23623
23624 cat >>confdefs.h <<\_ACEOF
23625 #define USE_MOTIF 1
23626 _ACEOF
23627
23628 ;;
23629 esac
23630
23631 # The libplot/libplotter Makefile.am files test the automake variable
23632 # NO_X to determine whether X should be supported.
23633 if test "x$no_x" = "xyes"; then
23634 NO_X_TRUE=
23635 NO_X_FALSE='#'
23636 else
23637 NO_X_TRUE='#'
23638 NO_X_FALSE=
23639 fi
23640
23641
23642 # Check for libpng and png.h, and if both are available, define the
23643 # config.h variable INCLUDE_PNG_SUPPORT; otherwise define the automake
23644 # variable NO_PNG. The latter is used in libplot/Makefile.am and
23645 # libplotter/Makefile.am.
23646
23647 # NOTE: the test for libpng checks for the function png_set_tRNS(),
23648 # because it was added to libpng in version 0.95, which is the minimum
23649 # version that we can use.
23650
23651 # ALSO NOTE: the test for libpng automatically checks for zlib, since it
23652 # supplies the `-lz' argument to the linker.
23653
23654
23655 for ac_header in png.h
23656 do
23657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23663 fi
23664 ac_res=`eval echo '${'$as_ac_Header'}'`
23665 { echo "$as_me:$LINENO: result: $ac_res" >&5
23666 echo "${ECHO_T}$ac_res" >&6; }
23667 else
23668 # Is the header compilable?
23669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23671 cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h. */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677 $ac_includes_default
23678 #include <$ac_header>
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
23688 ac_status=$?
23689 grep -v '^ *+' conftest.er1 >conftest.err
23690 rm -f conftest.er1
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } && {
23694 test -z "$ac_c_werror_flag" ||
23695 test ! -s conftest.err
23696 } && test -s conftest.$ac_objext; then
23697 ac_header_compiler=yes
23698 else
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23701
23702 ac_header_compiler=no
23703 fi
23704
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23707 echo "${ECHO_T}$ac_header_compiler" >&6; }
23708
23709 # Is the header present?
23710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h. */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include <$ac_header>
23719 _ACEOF
23720 if { (ac_try="$ac_cpp conftest.$ac_ext"
23721 case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23724 esac
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23727 ac_status=$?
23728 grep -v '^ *+' conftest.er1 >conftest.err
23729 rm -f conftest.er1
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } >/dev/null && {
23733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23734 test ! -s conftest.err
23735 }; then
23736 ac_header_preproc=yes
23737 else
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741 ac_header_preproc=no
23742 fi
23743
23744 rm -f conftest.err conftest.$ac_ext
23745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23746 echo "${ECHO_T}$ac_header_preproc" >&6; }
23747
23748 # So? What about this header?
23749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23750 yes:no: )
23751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23755 ac_header_preproc=yes
23756 ;;
23757 no:yes:* )
23758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23770 ( cat <<\_ASBOX
23771 ## ------------------------------------ ##
23772 ## Report this to [email protected] ##
23773 ## ------------------------------------ ##
23774 _ASBOX
23775 ) | sed "s/^/$as_me: WARNING: /" >&2
23776 ;;
23777 esac
23778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783 eval "$as_ac_Header=\$ac_header_preproc"
23784 fi
23785 ac_res=`eval echo '${'$as_ac_Header'}'`
23786 { echo "$as_me:$LINENO: result: $ac_res" >&5
23787 echo "${ECHO_T}$ac_res" >&6; }
23788
23789 fi
23790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23793 _ACEOF
23794 png_support="yes"
23795 else
23796 png_support="no"
23797 fi
23798
23799 done
23800
23801 { echo "$as_me:$LINENO: checking for png_set_tRNS in -lpng" >&5
23802 echo $ECHO_N "checking for png_set_tRNS in -lpng... $ECHO_C" >&6; }
23803 if test "${ac_cv_lib_png_png_set_tRNS+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lpng -lz -lm $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814
23815 /* Override any GCC internal prototype to avoid an error.
23816 Use char because int might match the return type of a GCC
23817 builtin and then its argument prototype would still apply. */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 char png_set_tRNS ();
23822 int
23823 main ()
23824 {
23825 return png_set_tRNS ();
23826 ;
23827 return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_link") 2>conftest.er1
23838 ac_status=$?
23839 grep -v '^ *+' conftest.er1 >conftest.err
23840 rm -f conftest.er1
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest$ac_exeext &&
23847 $as_test_x conftest$ac_exeext; then
23848 ac_cv_lib_png_png_set_tRNS=yes
23849 else
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853 ac_cv_lib_png_png_set_tRNS=no
23854 fi
23855
23856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23857 conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23859 fi
23860 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_tRNS" >&5
23861 echo "${ECHO_T}$ac_cv_lib_png_png_set_tRNS" >&6; }
23862 if test $ac_cv_lib_png_png_set_tRNS = yes; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define HAVE_LIBPNG 1
23865 _ACEOF
23866
23867 else
23868 png_support="no"
23869 fi
23870
23871
23872 # Check whether --with-libpng was given.
23873 if test "${with_libpng+set}" = set; then
23874 withval=$with_libpng; if test "x${with_libpng}" = "xno"; then png_support="no"; fi
23875 fi
23876
23877 if test "x${png_support}" = "xyes"; then cat >>confdefs.h <<\_ACEOF
23878 #define INCLUDE_PNG_SUPPORT 1
23879 _ACEOF
23880 fi
23881 if test "x${png_support}" = "xno"; then
23882 NO_PNG_TRUE=
23883 NO_PNG_FALSE='#'
23884 else
23885 NO_PNG_TRUE='#'
23886 NO_PNG_FALSE=
23887 fi
23888
23889
23890 # Font options. The ps_fonts_in_pcl variable is used by test/plot2hpgl.test.
23891 # Check whether --enable-ps-fonts-in-pcl was given.
23892 if test "${enable_ps_fonts_in_pcl+set}" = set; then
23893 enableval=$enable_ps_fonts_in_pcl; if test "x$enableval" = "xyes"; then
23894 echo enabling support for the 35 PS fonts in PCL 5 and HP-GL/2 output
23895 ps_fonts_in_pcl=1
23896 cat >>confdefs.h <<\_ACEOF
23897 #define USE_PS_FONTS_IN_PCL 1
23898 _ACEOF
23899
23900 else
23901 ps_fonts_in_pcl=0
23902 fi
23903 else
23904 ps_fonts_in_pcl=0
23905 fi
23906
23907
23908
23909 # Check whether --enable-lj-fonts-in-ps was given.
23910 if test "${enable_lj_fonts_in_ps+set}" = set; then
23911 enableval=$enable_lj_fonts_in_ps; if test "x$enableval" = "xyes"; then
23912 echo enabling support for the 45 LaserJet fonts in PS output
23913 cat >>confdefs.h <<\_ACEOF
23914 #define USE_LJ_FONTS_IN_PS 1
23915 _ACEOF
23916
23917 fi
23918 fi
23919
23920
23921 # Check whether --enable-lj-fonts-in-x was given.
23922 if test "${enable_lj_fonts_in_x+set}" = set; then
23923 enableval=$enable_lj_fonts_in_x; if test "x$enableval" = "xyes"; then
23924 echo enabling support for the 45 LaserJet fonts on X displays
23925 cat >>confdefs.h <<\_ACEOF
23926 #define USE_LJ_FONTS_IN_X 1
23927 _ACEOF
23928
23929 fi
23930 fi
23931
23932
23933 # Do we build libplotter, the C++ library, and other C++ software?
23934 # Check whether --enable-libplotter was given.
23935 if test "${enable_libplotter+set}" = set; then
23936 enableval=$enable_libplotter; echo enabling construction of the C++ class library; no_libplotter="no"
23937 else
23938 no_libplotter="yes"; extralib=""
23939 fi
23940
23941 if test "x$no_libplotter" = "xyes"; then
23942 NO_LIBPLOTTER_TRUE=
23943 NO_LIBPLOTTER_FALSE='#'
23944 else
23945 NO_LIBPLOTTER_TRUE='#'
23946 NO_LIBPLOTTER_FALSE=
23947 fi
23948
23949
23950 # Do we build and install a standalone version of the libxmi
23951 # scan-conversion library? (Not done by default because it's separately
23952 # distributed.)
23953 # Check whether --enable-libxmi was given.
23954 if test "${enable_libxmi+set}" = set; then
23955 enableval=$enable_libxmi; echo enabling construction of the libxmi scan-conversion library; no_libxmi="no"
23956 else
23957 no_libxmi="yes"
23958 fi
23959
23960 if test "x$no_libxmi" = "xyes"; then
23961 NO_LIBXMI_TRUE=
23962 NO_LIBXMI_FALSE='#'
23963 else
23964 NO_LIBXMI_TRUE='#'
23965 NO_LIBXMI_FALSE=
23966 fi
23967
23968
23969 # Override default autoconf value "-g -O2" or "-g" for CFLAGS and
23970 # CXXFLAGS, set by AC_PROG_CC and AC_PROG_CXX. Provided, that is,
23971 # installer didn't set CFLAGS via an environment variable before running
23972 # configure. We don't use "-g" when compiling libplot or libplotter,
23973 # since debugging versions of those libraries would be huge. Perhaps we
23974 # should use it when compiling the executables, though?
23975
23976 # Note: on a very few platforms where libtool adds a command-line option
23977 # to CFLAGS (see above; this includes SCO OpenServer 5, where "-belf" is
23978 # added), this way of doing things will not work, i.e., the installer
23979 # will need to add by hand the option that libtool would have added.
23980 # E.g., on SCO OpenServer5 the installer may need to set the environment
23981 # variable CFLAGS to "-O -belf" or "-O2 -belf".
23982
23983 if test "x$CFLAGS_NOT_SET_BY_INSTALLER" = "xyes"; then
23984 if test "x$GCC" = "xyes"; then
23985 CFLAGS="-O2"
23986 else
23987 CFLAGS="-O"
23988 fi
23989 fi
23990
23991 if test "x$CXXFLAGS_NOT_SET_BY_INSTALLER" = "xyes"; then
23992 if test "x$GXX" = "xyes"; then
23993 CXXFLAGS="-O2"
23994 else
23995 CXXFLAGS="-O"
23996 fi
23997 fi
23998
23999 # Check for gcc strength-reduce bug (taken from WINE config). Could do
24000 # the same for g++, but we'll assume anyone doing any C++ compiling has
24001 # installed a modern compiler.
24002 if test "x${GCC}" = "xyes"; then
24003 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
24004 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
24005 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 else
24008 if test "$cross_compiling" = yes; then
24009 ac_cv_c_gcc_strength_bug="yes"
24010 else
24011 cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h. */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h. */
24017
24018 int main()
24019 {
24020 static int Array[3];
24021 unsigned int B = 3;
24022 int i;
24023 for (i=0; i < B; i++)
24024 Array[i] = i - 3;
24025 exit (Array[1] != -2);
24026 }
24027 _ACEOF
24028 rm -f conftest$ac_exeext
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033 esac
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_link") 2>&5
24036 ac_status=$?
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24039 { (case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24042 esac
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_try") 2>&5
24045 ac_status=$?
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; }; then
24048 ac_cv_c_gcc_strength_bug="no"
24049 else
24050 echo "$as_me: program exited with status $ac_status" >&5
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24053
24054 ( exit $ac_status )
24055 ac_cv_c_gcc_strength_bug="yes"
24056 fi
24057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24058 fi
24059
24060
24061 fi
24062 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
24063 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
24064 if test "$ac_cv_c_gcc_strength_bug" = "yes"
24065 then
24066 CFLAGS="$CFLAGS -fno-strength-reduce"
24067 fi
24068 fi
24069
24070 ac_config_files="$ac_config_files Makefile double/Makefile graph/Makefile hersheydemo/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile"
24071
24072 cat >confcache <<\_ACEOF
24073 # This file is a shell script that caches the results of configure
24074 # tests run on this system so they can be shared between configure
24075 # scripts and configure runs, see configure's option --config-cache.
24076 # It is not useful on other systems. If it contains results you don't
24077 # want to keep, you may remove or edit it.
24078 #
24079 # config.status only pays attention to the cache file if you give it
24080 # the --recheck option to rerun configure.
24081 #
24082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24084 # following values.
24085
24086 _ACEOF
24087
24088 # The following way of writing the cache mishandles newlines in values,
24089 # but we know of no workaround that is simple, portable, and efficient.
24090 # So, we kill variables containing newlines.
24091 # Ultrix sh set writes to stderr and can't be redirected directly,
24092 # and sets the high bit in the cache file unless we assign to the vars.
24093 (
24094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24095 eval ac_val=\$$ac_var
24096 case $ac_val in #(
24097 *${as_nl}*)
24098 case $ac_var in #(
24099 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24100 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24101 esac
24102 case $ac_var in #(
24103 _ | IFS | as_nl) ;; #(
24104 *) $as_unset $ac_var ;;
24105 esac ;;
24106 esac
24107 done
24108
24109 (set) 2>&1 |
24110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24111 *${as_nl}ac_space=\ *)
24112 # `set' does not quote correctly, so add quotes (double-quote
24113 # substitution turns \\\\ into \\, and sed turns \\ into \).
24114 sed -n \
24115 "s/'/'\\\\''/g;
24116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24117 ;; #(
24118 *)
24119 # `set' quotes correctly as required by POSIX, so do not add quotes.
24120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24121 ;;
24122 esac |
24123 sort
24124 ) |
24125 sed '
24126 /^ac_cv_env_/b end
24127 t clear
24128 :clear
24129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24130 t end
24131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24132 :end' >>confcache
24133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24134 if test -w "$cache_file"; then
24135 test "x$cache_file" != "x/dev/null" &&
24136 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24137 echo "$as_me: updating cache $cache_file" >&6;}
24138 cat confcache >$cache_file
24139 else
24140 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24141 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24142 fi
24143 fi
24144 rm -f confcache
24145
24146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24147 # Let make expand exec_prefix.
24148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24149
24150 DEFS=-DHAVE_CONFIG_H
24151
24152 ac_libobjs=
24153 ac_ltlibobjs=
24154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24155 # 1. Remove the extension, and $U if already installed.
24156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24157 ac_i=`echo "$ac_i" | sed "$ac_script"`
24158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24159 # will be set to the directory where LIBOBJS objects are built.
24160 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24161 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24162 done
24163 LIBOBJS=$ac_libobjs
24164
24165 LTLIBOBJS=$ac_ltlibobjs
24166
24167
24168 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24169 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24170 Usually this means the macro was only invoked conditionally." >&5
24171 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24172 Usually this means the macro was only invoked conditionally." >&2;}
24173 { (exit 1); exit 1; }; }
24174 fi
24175 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24176 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24177 Usually this means the macro was only invoked conditionally." >&5
24178 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24179 Usually this means the macro was only invoked conditionally." >&2;}
24180 { (exit 1); exit 1; }; }
24181 fi
24182 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24183 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24184 Usually this means the macro was only invoked conditionally." >&5
24185 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24186 Usually this means the macro was only invoked conditionally." >&2;}
24187 { (exit 1); exit 1; }; }
24188 fi
24189 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
24190 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
24191 Usually this means the macro was only invoked conditionally." >&5
24192 echo "$as_me: error: conditional \"NO_X\" was never defined.
24193 Usually this means the macro was only invoked conditionally." >&2;}
24194 { (exit 1); exit 1; }; }
24195 fi
24196 if test -z "${NO_PNG_TRUE}" && test -z "${NO_PNG_FALSE}"; then
24197 { { echo "$as_me:$LINENO: error: conditional \"NO_PNG\" was never defined.
24198 Usually this means the macro was only invoked conditionally." >&5
24199 echo "$as_me: error: conditional \"NO_PNG\" was never defined.
24200 Usually this means the macro was only invoked conditionally." >&2;}
24201 { (exit 1); exit 1; }; }
24202 fi
24203 if test -z "${NO_LIBPLOTTER_TRUE}" && test -z "${NO_LIBPLOTTER_FALSE}"; then
24204 { { echo "$as_me:$LINENO: error: conditional \"NO_LIBPLOTTER\" was never defined.
24205 Usually this means the macro was only invoked conditionally." >&5
24206 echo "$as_me: error: conditional \"NO_LIBPLOTTER\" was never defined.
24207 Usually this means the macro was only invoked conditionally." >&2;}
24208 { (exit 1); exit 1; }; }
24209 fi
24210 if test -z "${NO_LIBXMI_TRUE}" && test -z "${NO_LIBXMI_FALSE}"; then
24211 { { echo "$as_me:$LINENO: error: conditional \"NO_LIBXMI\" was never defined.
24212 Usually this means the macro was only invoked conditionally." >&5
24213 echo "$as_me: error: conditional \"NO_LIBXMI\" was never defined.
24214 Usually this means the macro was only invoked conditionally." >&2;}
24215 { (exit 1); exit 1; }; }
24216 fi
24217
24218 : ${CONFIG_STATUS=./config.status}
24219 ac_clean_files_save=$ac_clean_files
24220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24221 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24222 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24223 cat >$CONFIG_STATUS <<_ACEOF
24224 #! $SHELL
24225 # Generated by $as_me.
24226 # Run this file to recreate the current configuration.
24227 # Compiler output produced by configure, useful for debugging
24228 # configure, is in config.log if it exists.
24229
24230 debug=false
24231 ac_cs_recheck=false
24232 ac_cs_silent=false
24233 SHELL=\${CONFIG_SHELL-$SHELL}
24234 _ACEOF
24235
24236 cat >>$CONFIG_STATUS <<\_ACEOF
24237 ## --------------------- ##
24238 ## M4sh Initialization. ##
24239 ## --------------------- ##
24240
24241 # Be more Bourne compatible
24242 DUALCASE=1; export DUALCASE # for MKS sh
24243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24244 emulate sh
24245 NULLCMD=:
24246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24247 # is contrary to our usage. Disable this feature.
24248 alias -g '${1+"$@"}'='"$@"'
24249 setopt NO_GLOB_SUBST
24250 else
24251 case `(set -o) 2>/dev/null` in
24252 *posix*) set -o posix ;;
24253 esac
24254
24255 fi
24256
24257
24258
24259
24260 # PATH needs CR
24261 # Avoid depending upon Character Ranges.
24262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24265 as_cr_digits='0123456789'
24266 as_cr_alnum=$as_cr_Letters$as_cr_digits
24267
24268 # The user is always right.
24269 if test "${PATH_SEPARATOR+set}" != set; then
24270 echo "#! /bin/sh" >conf$$.sh
24271 echo "exit 0" >>conf$$.sh
24272 chmod +x conf$$.sh
24273 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24274 PATH_SEPARATOR=';'
24275 else
24276 PATH_SEPARATOR=:
24277 fi
24278 rm -f conf$$.sh
24279 fi
24280
24281 # Support unset when possible.
24282 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24283 as_unset=unset
24284 else
24285 as_unset=false
24286 fi
24287
24288
24289 # IFS
24290 # We need space, tab and new line, in precisely that order. Quoting is
24291 # there to prevent editors from complaining about space-tab.
24292 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24293 # splitting by setting IFS to empty value.)
24294 as_nl='
24295 '
24296 IFS=" "" $as_nl"
24297
24298 # Find who we are. Look in the path if we contain no directory separator.
24299 case $0 in
24300 *[\\/]* ) as_myself=$0 ;;
24301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24302 for as_dir in $PATH
24303 do
24304 IFS=$as_save_IFS
24305 test -z "$as_dir" && as_dir=.
24306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24307 done
24308 IFS=$as_save_IFS
24309
24310 ;;
24311 esac
24312 # We did not find ourselves, most probably we were run as `sh COMMAND'
24313 # in which case we are not to be found in the path.
24314 if test "x$as_myself" = x; then
24315 as_myself=$0
24316 fi
24317 if test ! -f "$as_myself"; then
24318 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24319 { (exit 1); exit 1; }
24320 fi
24321
24322 # Work around bugs in pre-3.0 UWIN ksh.
24323 for as_var in ENV MAIL MAILPATH
24324 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24325 done
24326 PS1='$ '
24327 PS2='> '
24328 PS4='+ '
24329
24330 # NLS nuisances.
24331 for as_var in \
24332 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24333 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24334 LC_TELEPHONE LC_TIME
24335 do
24336 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24337 eval $as_var=C; export $as_var
24338 else
24339 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24340 fi
24341 done
24342
24343 # Required to use basename.
24344 if expr a : '\(a\)' >/dev/null 2>&1 &&
24345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24346 as_expr=expr
24347 else
24348 as_expr=false
24349 fi
24350
24351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24352 as_basename=basename
24353 else
24354 as_basename=false
24355 fi
24356
24357
24358 # Name of the executable.
24359 as_me=`$as_basename -- "$0" ||
24360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24361 X"$0" : 'X\(//\)$' \| \
24362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24363 echo X/"$0" |
24364 sed '/^.*\/\([^/][^/]*\)\/*$/{
24365 s//\1/
24366 q
24367 }
24368 /^X\/\(\/\/\)$/{
24369 s//\1/
24370 q
24371 }
24372 /^X\/\(\/\).*/{
24373 s//\1/
24374 q
24375 }
24376 s/.*/./; q'`
24377
24378 # CDPATH.
24379 $as_unset CDPATH
24380
24381
24382
24383 as_lineno_1=$LINENO
24384 as_lineno_2=$LINENO
24385 test "x$as_lineno_1" != "x$as_lineno_2" &&
24386 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24387
24388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24389 # uniformly replaced by the line number. The first 'sed' inserts a
24390 # line-number line after each line using $LINENO; the second 'sed'
24391 # does the real work. The second script uses 'N' to pair each
24392 # line-number line with the line containing $LINENO, and appends
24393 # trailing '-' during substitution so that $LINENO is not a special
24394 # case at line end.
24395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24396 # scripts with optimization help from Paolo Bonzini. Blame Lee
24397 # E. McMahon (1931-1989) for sed's syntax. :-)
24398 sed -n '
24399 p
24400 /[$]LINENO/=
24401 ' <$as_myself |
24402 sed '
24403 s/[$]LINENO.*/&-/
24404 t lineno
24405 b
24406 :lineno
24407 N
24408 :loop
24409 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24410 t loop
24411 s/-\n.*//
24412 ' >$as_me.lineno &&
24413 chmod +x "$as_me.lineno" ||
24414 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24415 { (exit 1); exit 1; }; }
24416
24417 # Don't try to exec as it changes $[0], causing all sort of problems
24418 # (the dirname of $[0] is not the place where we might find the
24419 # original and so on. Autoconf is especially sensitive to this).
24420 . "./$as_me.lineno"
24421 # Exit status is that of the last command.
24422 exit
24423 }
24424
24425
24426 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24427 as_dirname=dirname
24428 else
24429 as_dirname=false
24430 fi
24431
24432 ECHO_C= ECHO_N= ECHO_T=
24433 case `echo -n x` in
24434 -n*)
24435 case `echo 'x\c'` in
24436 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24437 *) ECHO_C='\c';;
24438 esac;;
24439 *)
24440 ECHO_N='-n';;
24441 esac
24442
24443 if expr a : '\(a\)' >/dev/null 2>&1 &&
24444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24445 as_expr=expr
24446 else
24447 as_expr=false
24448 fi
24449
24450 rm -f conf$$ conf$$.exe conf$$.file
24451 if test -d conf$$.dir; then
24452 rm -f conf$$.dir/conf$$.file
24453 else
24454 rm -f conf$$.dir
24455 mkdir conf$$.dir
24456 fi
24457 echo >conf$$.file
24458 if ln -s conf$$.file conf$$ 2>/dev/null; then
24459 as_ln_s='ln -s'
24460 # ... but there are two gotchas:
24461 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24462 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24463 # In both cases, we have to default to `cp -p'.
24464 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24465 as_ln_s='cp -p'
24466 elif ln conf$$.file conf$$ 2>/dev/null; then
24467 as_ln_s=ln
24468 else
24469 as_ln_s='cp -p'
24470 fi
24471 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24472 rmdir conf$$.dir 2>/dev/null
24473
24474 if mkdir -p . 2>/dev/null; then
24475 as_mkdir_p=:
24476 else
24477 test -d ./-p && rmdir ./-p
24478 as_mkdir_p=false
24479 fi
24480
24481 if test -x / >/dev/null 2>&1; then
24482 as_test_x='test -x'
24483 else
24484 if ls -dL / >/dev/null 2>&1; then
24485 as_ls_L_option=L
24486 else
24487 as_ls_L_option=
24488 fi
24489 as_test_x='
24490 eval sh -c '\''
24491 if test -d "$1"; then
24492 test -d "$1/.";
24493 else
24494 case $1 in
24495 -*)set "./$1";;
24496 esac;
24497 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24498 ???[sx]*):;;*)false;;esac;fi
24499 '\'' sh
24500 '
24501 fi
24502 as_executable_p=$as_test_x
24503
24504 # Sed expression to map a string onto a valid CPP name.
24505 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24506
24507 # Sed expression to map a string onto a valid variable name.
24508 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24509
24510
24511 exec 6>&1
24512
24513 # Save the log message, to keep $[0] and so on meaningful, and to
24514 # report actual input values of CONFIG_FILES etc. instead of their
24515 # values after options handling.
24516 ac_log="
24517 This file was extended by GNU plotutils $as_me 2.6, which was
24518 generated by GNU Autoconf 2.61. Invocation command line was
24519
24520 CONFIG_FILES = $CONFIG_FILES
24521 CONFIG_HEADERS = $CONFIG_HEADERS
24522 CONFIG_LINKS = $CONFIG_LINKS
24523 CONFIG_COMMANDS = $CONFIG_COMMANDS
24524 $ $0 $@
24525
24526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24527 "
24528
24529 _ACEOF
24530
24531 cat >>$CONFIG_STATUS <<_ACEOF
24532 # Files that config.status was made for.
24533 config_files="$ac_config_files"
24534 config_headers="$ac_config_headers"
24535 config_commands="$ac_config_commands"
24536
24537 _ACEOF
24538
24539 cat >>$CONFIG_STATUS <<\_ACEOF
24540 ac_cs_usage="\
24541 \`$as_me' instantiates files from templates according to the
24542 current configuration.
24543
24544 Usage: $0 [OPTIONS] [FILE]...
24545
24546 -h, --help print this help, then exit
24547 -V, --version print version number and configuration settings, then exit
24548 -q, --quiet do not print progress messages
24549 -d, --debug don't remove temporary files
24550 --recheck update $as_me by reconfiguring in the same conditions
24551 --file=FILE[:TEMPLATE]
24552 instantiate the configuration file FILE
24553 --header=FILE[:TEMPLATE]
24554 instantiate the configuration header FILE
24555
24556 Configuration files:
24557 $config_files
24558
24559 Configuration headers:
24560 $config_headers
24561
24562 Configuration commands:
24563 $config_commands
24564
24565 Report bugs to <[email protected]>."
24566
24567 _ACEOF
24568 cat >>$CONFIG_STATUS <<_ACEOF
24569 ac_cs_version="\\
24570 GNU plotutils config.status 2.6
24571 configured by $0, generated by GNU Autoconf 2.61,
24572 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24573
24574 Copyright (C) 2006 Free Software Foundation, Inc.
24575 This config.status script is free software; the Free Software Foundation
24576 gives unlimited permission to copy, distribute and modify it."
24577
24578 ac_pwd='$ac_pwd'
24579 srcdir='$srcdir'
24580 INSTALL='$INSTALL'
24581 MKDIR_P='$MKDIR_P'
24582 _ACEOF
24583
24584 cat >>$CONFIG_STATUS <<\_ACEOF
24585 # If no file are specified by the user, then we need to provide default
24586 # value. By we need to know if files were specified by the user.
24587 ac_need_defaults=:
24588 while test $# != 0
24589 do
24590 case $1 in
24591 --*=*)
24592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24594 ac_shift=:
24595 ;;
24596 *)
24597 ac_option=$1
24598 ac_optarg=$2
24599 ac_shift=shift
24600 ;;
24601 esac
24602
24603 case $ac_option in
24604 # Handling of the options.
24605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24606 ac_cs_recheck=: ;;
24607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24608 echo "$ac_cs_version"; exit ;;
24609 --debug | --debu | --deb | --de | --d | -d )
24610 debug=: ;;
24611 --file | --fil | --fi | --f )
24612 $ac_shift
24613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24614 ac_need_defaults=false;;
24615 --header | --heade | --head | --hea )
24616 $ac_shift
24617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24618 ac_need_defaults=false;;
24619 --he | --h)
24620 # Conflict between --help and --header
24621 { echo "$as_me: error: ambiguous option: $1
24622 Try \`$0 --help' for more information." >&2
24623 { (exit 1); exit 1; }; };;
24624 --help | --hel | -h )
24625 echo "$ac_cs_usage"; exit ;;
24626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24628 ac_cs_silent=: ;;
24629
24630 # This is an error.
24631 -*) { echo "$as_me: error: unrecognized option: $1
24632 Try \`$0 --help' for more information." >&2
24633 { (exit 1); exit 1; }; } ;;
24634
24635 *) ac_config_targets="$ac_config_targets $1"
24636 ac_need_defaults=false ;;
24637
24638 esac
24639 shift
24640 done
24641
24642 ac_configure_extra_args=
24643
24644 if $ac_cs_silent; then
24645 exec 6>/dev/null
24646 ac_configure_extra_args="$ac_configure_extra_args --silent"
24647 fi
24648
24649 _ACEOF
24650 cat >>$CONFIG_STATUS <<_ACEOF
24651 if \$ac_cs_recheck; then
24652 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24653 CONFIG_SHELL=$SHELL
24654 export CONFIG_SHELL
24655 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24656 fi
24657
24658 _ACEOF
24659 cat >>$CONFIG_STATUS <<\_ACEOF
24660 exec 5>>config.log
24661 {
24662 echo
24663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24664 ## Running $as_me. ##
24665 _ASBOX
24666 echo "$ac_log"
24667 } >&5
24668
24669 _ACEOF
24670 cat >>$CONFIG_STATUS <<_ACEOF
24671 #
24672 # INIT-COMMANDS
24673 #
24674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24675
24676 _ACEOF
24677
24678 cat >>$CONFIG_STATUS <<\_ACEOF
24679
24680 # Handling of arguments.
24681 for ac_config_target in $ac_config_targets
24682 do
24683 case $ac_config_target in
24684 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
24685 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24687 "double/Makefile") CONFIG_FILES="$CONFIG_FILES double/Makefile" ;;
24688 "graph/Makefile") CONFIG_FILES="$CONFIG_FILES graph/Makefile" ;;
24689 "hersheydemo/Makefile") CONFIG_FILES="$CONFIG_FILES hersheydemo/Makefile" ;;
24690 "pic2plot/Makefile") CONFIG_FILES="$CONFIG_FILES pic2plot/Makefile" ;;
24691 "pic2plot/doc/Makefile") CONFIG_FILES="$CONFIG_FILES pic2plot/doc/Makefile" ;;
24692 "pic2plot/libgroff/Makefile") CONFIG_FILES="$CONFIG_FILES pic2plot/libgroff/Makefile" ;;
24693 "pic2plot/include/Makefile") CONFIG_FILES="$CONFIG_FILES pic2plot/include/Makefile" ;;
24694 "info/Makefile") CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
24695 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24696 "libplot/Makefile") CONFIG_FILES="$CONFIG_FILES libplot/Makefile" ;;
24697 "libplotter/Makefile") CONFIG_FILES="$CONFIG_FILES libplotter/Makefile" ;;
24698 "libxmi/Makefile") CONFIG_FILES="$CONFIG_FILES libxmi/Makefile" ;;
24699 "libxmi/info/Makefile") CONFIG_FILES="$CONFIG_FILES libxmi/info/Makefile" ;;
24700 "plot/Makefile") CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
24701 "tek2plot/Makefile") CONFIG_FILES="$CONFIG_FILES tek2plot/Makefile" ;;
24702 "tek2plot/teksamples/Makefile") CONFIG_FILES="$CONFIG_FILES tek2plot/teksamples/Makefile" ;;
24703 "plotfont/Makefile") CONFIG_FILES="$CONFIG_FILES plotfont/Makefile" ;;
24704 "spline/Makefile") CONFIG_FILES="$CONFIG_FILES spline/Makefile" ;;
24705 "ode/Makefile") CONFIG_FILES="$CONFIG_FILES ode/Makefile" ;;
24706 "ode-examples/Makefile") CONFIG_FILES="$CONFIG_FILES ode-examples/Makefile" ;;
24707 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24708 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24709 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
24710 "fonts/bdf/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/bdf/Makefile" ;;
24711 "fonts/pcf/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/pcf/Makefile" ;;
24712 "fonts/pfb/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/pfb/Makefile" ;;
24713 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24714
24715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24717 { (exit 1); exit 1; }; };;
24718 esac
24719 done
24720
24721
24722 # If the user did not use the arguments to specify the items to instantiate,
24723 # then the envvar interface is used. Set only those that are not.
24724 # We use the long form for the default assignment because of an extremely
24725 # bizarre bug on SunOS 4.1.3.
24726 if $ac_need_defaults; then
24727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24730 fi
24731
24732 # Have a temporary directory for convenience. Make it in the build tree
24733 # simply because there is no reason against having it here, and in addition,
24734 # creating and moving files from /tmp can sometimes cause problems.
24735 # Hook for its removal unless debugging.
24736 # Note that there is a small window in which the directory will not be cleaned:
24737 # after its creation but before its name has been assigned to `$tmp'.
24738 $debug ||
24739 {
24740 tmp=
24741 trap 'exit_status=$?
24742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24743 ' 0
24744 trap '{ (exit 1); exit 1; }' 1 2 13 15
24745 }
24746 # Create a (secure) tmp directory for tmp files.
24747
24748 {
24749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24750 test -n "$tmp" && test -d "$tmp"
24751 } ||
24752 {
24753 tmp=./conf$$-$RANDOM
24754 (umask 077 && mkdir "$tmp")
24755 } ||
24756 {
24757 echo "$me: cannot create a temporary directory in ." >&2
24758 { (exit 1); exit 1; }
24759 }
24760
24761 #
24762 # Set up the sed scripts for CONFIG_FILES section.
24763 #
24764
24765 # No need to generate the scripts if there are no CONFIG_FILES.
24766 # This happens for instance when ./config.status config.h
24767 if test -n "$CONFIG_FILES"; then
24768
24769 _ACEOF
24770
24771
24772
24773 ac_delim='%!_!# '
24774 for ac_last_try in false false false false false :; do
24775 cat >conf$$subs.sed <<_ACEOF
24776 SHELL!$SHELL$ac_delim
24777 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24778 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24779 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24780 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24781 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24782 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24783 exec_prefix!$exec_prefix$ac_delim
24784 prefix!$prefix$ac_delim
24785 program_transform_name!$program_transform_name$ac_delim
24786 bindir!$bindir$ac_delim
24787 sbindir!$sbindir$ac_delim
24788 libexecdir!$libexecdir$ac_delim
24789 datarootdir!$datarootdir$ac_delim
24790 datadir!$datadir$ac_delim
24791 sysconfdir!$sysconfdir$ac_delim
24792 sharedstatedir!$sharedstatedir$ac_delim
24793 localstatedir!$localstatedir$ac_delim
24794 includedir!$includedir$ac_delim
24795 oldincludedir!$oldincludedir$ac_delim
24796 docdir!$docdir$ac_delim
24797 infodir!$infodir$ac_delim
24798 htmldir!$htmldir$ac_delim
24799 dvidir!$dvidir$ac_delim
24800 pdfdir!$pdfdir$ac_delim
24801 psdir!$psdir$ac_delim
24802 libdir!$libdir$ac_delim
24803 localedir!$localedir$ac_delim
24804 mandir!$mandir$ac_delim
24805 DEFS!$DEFS$ac_delim
24806 ECHO_C!$ECHO_C$ac_delim
24807 ECHO_N!$ECHO_N$ac_delim
24808 ECHO_T!$ECHO_T$ac_delim
24809 LIBS!$LIBS$ac_delim
24810 build_alias!$build_alias$ac_delim
24811 host_alias!$host_alias$ac_delim
24812 target_alias!$target_alias$ac_delim
24813 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24814 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24815 INSTALL_DATA!$INSTALL_DATA$ac_delim
24816 am__isrc!$am__isrc$ac_delim
24817 CYGPATH_W!$CYGPATH_W$ac_delim
24818 PACKAGE!$PACKAGE$ac_delim
24819 VERSION!$VERSION$ac_delim
24820 ACLOCAL!$ACLOCAL$ac_delim
24821 AUTOCONF!$AUTOCONF$ac_delim
24822 AUTOMAKE!$AUTOMAKE$ac_delim
24823 AUTOHEADER!$AUTOHEADER$ac_delim
24824 MAKEINFO!$MAKEINFO$ac_delim
24825 install_sh!$install_sh$ac_delim
24826 STRIP!$STRIP$ac_delim
24827 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24828 mkdir_p!$mkdir_p$ac_delim
24829 AWK!$AWK$ac_delim
24830 SET_MAKE!$SET_MAKE$ac_delim
24831 am__leading_dot!$am__leading_dot$ac_delim
24832 AMTAR!$AMTAR$ac_delim
24833 am__tar!$am__tar$ac_delim
24834 am__untar!$am__untar$ac_delim
24835 build!$build$ac_delim
24836 build_cpu!$build_cpu$ac_delim
24837 build_vendor!$build_vendor$ac_delim
24838 build_os!$build_os$ac_delim
24839 host!$host$ac_delim
24840 host_cpu!$host_cpu$ac_delim
24841 host_vendor!$host_vendor$ac_delim
24842 host_os!$host_os$ac_delim
24843 CC!$CC$ac_delim
24844 CFLAGS!$CFLAGS$ac_delim
24845 LDFLAGS!$LDFLAGS$ac_delim
24846 CPPFLAGS!$CPPFLAGS$ac_delim
24847 ac_ct_CC!$ac_ct_CC$ac_delim
24848 EXEEXT!$EXEEXT$ac_delim
24849 OBJEXT!$OBJEXT$ac_delim
24850 DEPDIR!$DEPDIR$ac_delim
24851 am__include!$am__include$ac_delim
24852 am__quote!$am__quote$ac_delim
24853 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24854 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24855 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24856 CCDEPMODE!$CCDEPMODE$ac_delim
24857 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24858 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24859 GREP!$GREP$ac_delim
24860 EGREP!$EGREP$ac_delim
24861 LN_S!$LN_S$ac_delim
24862 ECHO!$ECHO$ac_delim
24863 AR!$AR$ac_delim
24864 RANLIB!$RANLIB$ac_delim
24865 CPP!$CPP$ac_delim
24866 CXX!$CXX$ac_delim
24867 CXXFLAGS!$CXXFLAGS$ac_delim
24868 ac_ct_CXX!$ac_ct_CXX$ac_delim
24869 CXXDEPMODE!$CXXDEPMODE$ac_delim
24870 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24871 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24872 CXXCPP!$CXXCPP$ac_delim
24873 _ACEOF
24874
24875 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24876 break
24877 elif $ac_last_try; then
24878 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24879 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24880 { (exit 1); exit 1; }; }
24881 else
24882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24883 fi
24884 done
24885
24886 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24887 if test -n "$ac_eof"; then
24888 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24889 ac_eof=`expr $ac_eof + 1`
24890 fi
24891
24892 cat >>$CONFIG_STATUS <<_ACEOF
24893 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24895 _ACEOF
24896 sed '
24897 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24898 s/^/s,@/; s/!/@,|#_!!_#|/
24899 :n
24900 t n
24901 s/'"$ac_delim"'$/,g/; t
24902 s/$/\\/; p
24903 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24904 ' >>$CONFIG_STATUS <conf$$subs.sed
24905 rm -f conf$$subs.sed
24906 cat >>$CONFIG_STATUS <<_ACEOF
24907 CEOF$ac_eof
24908 _ACEOF
24909
24910
24911 ac_delim='%!_!# '
24912 for ac_last_try in false false false false false :; do
24913 cat >conf$$subs.sed <<_ACEOF
24914 F77!$F77$ac_delim
24915 FFLAGS!$FFLAGS$ac_delim
24916 ac_ct_F77!$ac_ct_F77$ac_delim
24917 LIBTOOL!$LIBTOOL$ac_delim
24918 ALLOCA!$ALLOCA$ac_delim
24919 YACC!$YACC$ac_delim
24920 YFLAGS!$YFLAGS$ac_delim
24921 LEX!$LEX$ac_delim
24922 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24923 LEXLIB!$LEXLIB$ac_delim
24924 XMKMF!$XMKMF$ac_delim
24925 X_CFLAGS!$X_CFLAGS$ac_delim
24926 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
24927 X_LIBS!$X_LIBS$ac_delim
24928 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
24929 X_TOOLKIT_LIBS!$X_TOOLKIT_LIBS$ac_delim
24930 X_BASIC_LIBS!$X_BASIC_LIBS$ac_delim
24931 NO_X_TRUE!$NO_X_TRUE$ac_delim
24932 NO_X_FALSE!$NO_X_FALSE$ac_delim
24933 NO_PNG_TRUE!$NO_PNG_TRUE$ac_delim
24934 NO_PNG_FALSE!$NO_PNG_FALSE$ac_delim
24935 ps_fonts_in_pcl!$ps_fonts_in_pcl$ac_delim
24936 NO_LIBPLOTTER_TRUE!$NO_LIBPLOTTER_TRUE$ac_delim
24937 NO_LIBPLOTTER_FALSE!$NO_LIBPLOTTER_FALSE$ac_delim
24938 NO_LIBXMI_TRUE!$NO_LIBXMI_TRUE$ac_delim
24939 NO_LIBXMI_FALSE!$NO_LIBXMI_FALSE$ac_delim
24940 LIBOBJS!$LIBOBJS$ac_delim
24941 LTLIBOBJS!$LTLIBOBJS$ac_delim
24942 _ACEOF
24943
24944 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
24945 break
24946 elif $ac_last_try; then
24947 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24948 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24949 { (exit 1); exit 1; }; }
24950 else
24951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24952 fi
24953 done
24954
24955 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24956 if test -n "$ac_eof"; then
24957 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24958 ac_eof=`expr $ac_eof + 1`
24959 fi
24960
24961 cat >>$CONFIG_STATUS <<_ACEOF
24962 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24964 _ACEOF
24965 sed '
24966 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24967 s/^/s,@/; s/!/@,|#_!!_#|/
24968 :n
24969 t n
24970 s/'"$ac_delim"'$/,g/; t
24971 s/$/\\/; p
24972 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24973 ' >>$CONFIG_STATUS <conf$$subs.sed
24974 rm -f conf$$subs.sed
24975 cat >>$CONFIG_STATUS <<_ACEOF
24976 :end
24977 s/|#_!!_#|//g
24978 CEOF$ac_eof
24979 _ACEOF
24980
24981
24982 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24983 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24984 # trailing colons and then remove the whole line if VPATH becomes empty
24985 # (actually we leave an empty line to preserve line numbers).
24986 if test "x$srcdir" = x.; then
24987 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24988 s/:*\$(srcdir):*/:/
24989 s/:*\${srcdir}:*/:/
24990 s/:*@srcdir@:*/:/
24991 s/^\([^=]*=[ ]*\):*/\1/
24992 s/:*$//
24993 s/^[^=]*=[ ]*$//
24994 }'
24995 fi
24996
24997 cat >>$CONFIG_STATUS <<\_ACEOF
24998 fi # test -n "$CONFIG_FILES"
24999
25000
25001 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25002 do
25003 case $ac_tag in
25004 :[FHLC]) ac_mode=$ac_tag; continue;;
25005 esac
25006 case $ac_mode$ac_tag in
25007 :[FHL]*:*);;
25008 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25009 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25010 { (exit 1); exit 1; }; };;
25011 :[FH]-) ac_tag=-:-;;
25012 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25013 esac
25014 ac_save_IFS=$IFS
25015 IFS=:
25016 set x $ac_tag
25017 IFS=$ac_save_IFS
25018 shift
25019 ac_file=$1
25020 shift
25021
25022 case $ac_mode in
25023 :L) ac_source=$1;;
25024 :[FH])
25025 ac_file_inputs=
25026 for ac_f
25027 do
25028 case $ac_f in
25029 -) ac_f="$tmp/stdin";;
25030 *) # Look for the file first in the build tree, then in the source tree
25031 # (if the path is not absolute). The absolute path cannot be DOS-style,
25032 # because $ac_f cannot contain `:'.
25033 test -f "$ac_f" ||
25034 case $ac_f in
25035 [\\/$]*) false;;
25036 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25037 esac ||
25038 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25039 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25040 { (exit 1); exit 1; }; };;
25041 esac
25042 ac_file_inputs="$ac_file_inputs $ac_f"
25043 done
25044
25045 # Let's still pretend it is `configure' which instantiates (i.e., don't
25046 # use $as_me), people would be surprised to read:
25047 # /* config.h. Generated by config.status. */
25048 configure_input="Generated from "`IFS=:
25049 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25050 if test x"$ac_file" != x-; then
25051 configure_input="$ac_file. $configure_input"
25052 { echo "$as_me:$LINENO: creating $ac_file" >&5
25053 echo "$as_me: creating $ac_file" >&6;}
25054 fi
25055
25056 case $ac_tag in
25057 *:-:* | *:-) cat >"$tmp/stdin";;
25058 esac
25059 ;;
25060 esac
25061
25062 ac_dir=`$as_dirname -- "$ac_file" ||
25063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25064 X"$ac_file" : 'X\(//\)[^/]' \| \
25065 X"$ac_file" : 'X\(//\)$' \| \
25066 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25067 echo X"$ac_file" |
25068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25069 s//\1/
25070 q
25071 }
25072 /^X\(\/\/\)[^/].*/{
25073 s//\1/
25074 q
25075 }
25076 /^X\(\/\/\)$/{
25077 s//\1/
25078 q
25079 }
25080 /^X\(\/\).*/{
25081 s//\1/
25082 q
25083 }
25084 s/.*/./; q'`
25085 { as_dir="$ac_dir"
25086 case $as_dir in #(
25087 -*) as_dir=./$as_dir;;
25088 esac
25089 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25090 as_dirs=
25091 while :; do
25092 case $as_dir in #(
25093 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25094 *) as_qdir=$as_dir;;
25095 esac
25096 as_dirs="'$as_qdir' $as_dirs"
25097 as_dir=`$as_dirname -- "$as_dir" ||
25098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25099 X"$as_dir" : 'X\(//\)[^/]' \| \
25100 X"$as_dir" : 'X\(//\)$' \| \
25101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25102 echo X"$as_dir" |
25103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25104 s//\1/
25105 q
25106 }
25107 /^X\(\/\/\)[^/].*/{
25108 s//\1/
25109 q
25110 }
25111 /^X\(\/\/\)$/{
25112 s//\1/
25113 q
25114 }
25115 /^X\(\/\).*/{
25116 s//\1/
25117 q
25118 }
25119 s/.*/./; q'`
25120 test -d "$as_dir" && break
25121 done
25122 test -z "$as_dirs" || eval "mkdir $as_dirs"
25123 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25124 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25125 { (exit 1); exit 1; }; }; }
25126 ac_builddir=.
25127
25128 case "$ac_dir" in
25129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25130 *)
25131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25132 # A ".." for each directory in $ac_dir_suffix.
25133 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25134 case $ac_top_builddir_sub in
25135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25137 esac ;;
25138 esac
25139 ac_abs_top_builddir=$ac_pwd
25140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25141 # for backward compatibility:
25142 ac_top_builddir=$ac_top_build_prefix
25143
25144 case $srcdir in
25145 .) # We are building in place.
25146 ac_srcdir=.
25147 ac_top_srcdir=$ac_top_builddir_sub
25148 ac_abs_top_srcdir=$ac_pwd ;;
25149 [\\/]* | ?:[\\/]* ) # Absolute name.
25150 ac_srcdir=$srcdir$ac_dir_suffix;
25151 ac_top_srcdir=$srcdir
25152 ac_abs_top_srcdir=$srcdir ;;
25153 *) # Relative name.
25154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25155 ac_top_srcdir=$ac_top_build_prefix$srcdir
25156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25157 esac
25158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25159
25160
25161 case $ac_mode in
25162 :F)
25163 #
25164 # CONFIG_FILE
25165 #
25166
25167 case $INSTALL in
25168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25170 esac
25171 ac_MKDIR_P=$MKDIR_P
25172 case $MKDIR_P in
25173 [\\/$]* | ?:[\\/]* ) ;;
25174 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25175 esac
25176 _ACEOF
25177
25178 cat >>$CONFIG_STATUS <<\_ACEOF
25179 # If the template does not know about datarootdir, expand it.
25180 # FIXME: This hack should be removed a few years after 2.60.
25181 ac_datarootdir_hack=; ac_datarootdir_seen=
25182
25183 case `sed -n '/datarootdir/ {
25184 p
25185 q
25186 }
25187 /@datadir@/p
25188 /@docdir@/p
25189 /@infodir@/p
25190 /@localedir@/p
25191 /@mandir@/p
25192 ' $ac_file_inputs` in
25193 *datarootdir*) ac_datarootdir_seen=yes;;
25194 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25195 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25196 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25197 _ACEOF
25198 cat >>$CONFIG_STATUS <<_ACEOF
25199 ac_datarootdir_hack='
25200 s&@datadir@&$datadir&g
25201 s&@docdir@&$docdir&g
25202 s&@infodir@&$infodir&g
25203 s&@localedir@&$localedir&g
25204 s&@mandir@&$mandir&g
25205 s&\\\${datarootdir}&$datarootdir&g' ;;
25206 esac
25207 _ACEOF
25208
25209 # Neutralize VPATH when `$srcdir' = `.'.
25210 # Shell code in configure.ac might set extrasub.
25211 # FIXME: do we really want to maintain this feature?
25212 cat >>$CONFIG_STATUS <<_ACEOF
25213 sed "$ac_vpsub
25214 $extrasub
25215 _ACEOF
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25217 :t
25218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25219 s&@configure_input@&$configure_input&;t t
25220 s&@top_builddir@&$ac_top_builddir_sub&;t t
25221 s&@srcdir@&$ac_srcdir&;t t
25222 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25223 s&@top_srcdir@&$ac_top_srcdir&;t t
25224 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25225 s&@builddir@&$ac_builddir&;t t
25226 s&@abs_builddir@&$ac_abs_builddir&;t t
25227 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25228 s&@INSTALL@&$ac_INSTALL&;t t
25229 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25230 $ac_datarootdir_hack
25231 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25232
25233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25234 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25236 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25237 which seems to be undefined. Please make sure it is defined." >&5
25238 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25239 which seems to be undefined. Please make sure it is defined." >&2;}
25240
25241 rm -f "$tmp/stdin"
25242 case $ac_file in
25243 -) cat "$tmp/out"; rm -f "$tmp/out";;
25244 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25245 esac
25246 ;;
25247 :H)
25248 #
25249 # CONFIG_HEADER
25250 #
25251 _ACEOF
25252
25253 # Transform confdefs.h into a sed script `conftest.defines', that
25254 # substitutes the proper values into config.h.in to produce config.h.
25255 rm -f conftest.defines conftest.tail
25256 # First, append a space to every undef/define line, to ease matching.
25257 echo 's/$/ /' >conftest.defines
25258 # Then, protect against being on the right side of a sed subst, or in
25259 # an unquoted here document, in config.status. If some macros were
25260 # called several times there might be several #defines for the same
25261 # symbol, which is useless. But do not sort them, since the last
25262 # AC_DEFINE must be honored.
25263 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25264 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25265 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25266 # PARAMS is the parameter list in the macro definition--in most cases, it's
25267 # just an empty string.
25268 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25269 ac_dB='\\)[ (].*,\\1define\\2'
25270 ac_dC=' '
25271 ac_dD=' ,'
25272
25273 uniq confdefs.h |
25274 sed -n '
25275 t rset
25276 :rset
25277 s/^[ ]*#[ ]*define[ ][ ]*//
25278 t ok
25279 d
25280 :ok
25281 s/[\\&,]/\\&/g
25282 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25283 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25284 ' >>conftest.defines
25285
25286 # Remove the space that was appended to ease matching.
25287 # Then replace #undef with comments. This is necessary, for
25288 # example, in the case of _POSIX_SOURCE, which is predefined and required
25289 # on some systems where configure will not decide to define it.
25290 # (The regexp can be short, since the line contains either #define or #undef.)
25291 echo 's/ $//
25292 s,^[ #]*u.*,/* & */,' >>conftest.defines
25293
25294 # Break up conftest.defines:
25295 ac_max_sed_lines=50
25296
25297 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25298 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25299 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25300 # et cetera.
25301 ac_in='$ac_file_inputs'
25302 ac_out='"$tmp/out1"'
25303 ac_nxt='"$tmp/out2"'
25304
25305 while :
25306 do
25307 # Write a here document:
25308 cat >>$CONFIG_STATUS <<_ACEOF
25309 # First, check the format of the line:
25310 cat >"\$tmp/defines.sed" <<\\CEOF
25311 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25312 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25313 b
25314 :def
25315 _ACEOF
25316 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25317 echo 'CEOF
25318 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25319 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25320 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25321 grep . conftest.tail >/dev/null || break
25322 rm -f conftest.defines
25323 mv conftest.tail conftest.defines
25324 done
25325 rm -f conftest.defines conftest.tail
25326
25327 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25328 cat >>$CONFIG_STATUS <<\_ACEOF
25329 if test x"$ac_file" != x-; then
25330 echo "/* $configure_input */" >"$tmp/config.h"
25331 cat "$ac_result" >>"$tmp/config.h"
25332 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25333 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25334 echo "$as_me: $ac_file is unchanged" >&6;}
25335 else
25336 rm -f $ac_file
25337 mv "$tmp/config.h" $ac_file
25338 fi
25339 else
25340 echo "/* $configure_input */"
25341 cat "$ac_result"
25342 fi
25343 rm -f "$tmp/out12"
25344 # Compute $ac_file's index in $config_headers.
25345 _am_stamp_count=1
25346 for _am_header in $config_headers :; do
25347 case $_am_header in
25348 $ac_file | $ac_file:* )
25349 break ;;
25350 * )
25351 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25352 esac
25353 done
25354 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25355 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25356 X$ac_file : 'X\(//\)[^/]' \| \
25357 X$ac_file : 'X\(//\)$' \| \
25358 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25359 echo X$ac_file |
25360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25361 s//\1/
25362 q
25363 }
25364 /^X\(\/\/\)[^/].*/{
25365 s//\1/
25366 q
25367 }
25368 /^X\(\/\/\)$/{
25369 s//\1/
25370 q
25371 }
25372 /^X\(\/\).*/{
25373 s//\1/
25374 q
25375 }
25376 s/.*/./; q'`/stamp-h$_am_stamp_count
25377 ;;
25378
25379 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25380 echo "$as_me: executing $ac_file commands" >&6;}
25381 ;;
25382 esac
25383
25384
25385 case $ac_file$ac_mode in
25386 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25387 # Strip MF so we end up with the name of the file.
25388 mf=`echo "$mf" | sed -e 's/:.*$//'`
25389 # Check whether this is an Automake generated Makefile or not.
25390 # We used to match only the files named `Makefile.in', but
25391 # some people rename them; so instead we look at the file content.
25392 # Grep'ing the first line is not enough: some people post-process
25393 # each Makefile.in and add a new line on top of each file to say so.
25394 # Grep'ing the whole file is not good either: AIX grep has a line
25395 # limit of 2048, but all sed's we know have understand at least 4000.
25396 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25397 dirpart=`$as_dirname -- "$mf" ||
25398 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25399 X"$mf" : 'X\(//\)[^/]' \| \
25400 X"$mf" : 'X\(//\)$' \| \
25401 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25402 echo X"$mf" |
25403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25404 s//\1/
25405 q
25406 }
25407 /^X\(\/\/\)[^/].*/{
25408 s//\1/
25409 q
25410 }
25411 /^X\(\/\/\)$/{
25412 s//\1/
25413 q
25414 }
25415 /^X\(\/\).*/{
25416 s//\1/
25417 q
25418 }
25419 s/.*/./; q'`
25420 else
25421 continue
25422 fi
25423 # Extract the definition of DEPDIR, am__include, and am__quote
25424 # from the Makefile without running `make'.
25425 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25426 test -z "$DEPDIR" && continue
25427 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25428 test -z "am__include" && continue
25429 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25430 # When using ansi2knr, U may be empty or an underscore; expand it
25431 U=`sed -n 's/^U = //p' < "$mf"`
25432 # Find all dependency output files, they are included files with
25433 # $(DEPDIR) in their names. We invoke sed twice because it is the
25434 # simplest approach to changing $(DEPDIR) to its actual value in the
25435 # expansion.
25436 for file in `sed -n "
25437 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25438 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25439 # Make sure the directory exists.
25440 test -f "$dirpart/$file" && continue
25441 fdir=`$as_dirname -- "$file" ||
25442 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25443 X"$file" : 'X\(//\)[^/]' \| \
25444 X"$file" : 'X\(//\)$' \| \
25445 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25446 echo X"$file" |
25447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25448 s//\1/
25449 q
25450 }
25451 /^X\(\/\/\)[^/].*/{
25452 s//\1/
25453 q
25454 }
25455 /^X\(\/\/\)$/{
25456 s//\1/
25457 q
25458 }
25459 /^X\(\/\).*/{
25460 s//\1/
25461 q
25462 }
25463 s/.*/./; q'`
25464 { as_dir=$dirpart/$fdir
25465 case $as_dir in #(
25466 -*) as_dir=./$as_dir;;
25467 esac
25468 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25469 as_dirs=
25470 while :; do
25471 case $as_dir in #(
25472 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25473 *) as_qdir=$as_dir;;
25474 esac
25475 as_dirs="'$as_qdir' $as_dirs"
25476 as_dir=`$as_dirname -- "$as_dir" ||
25477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25478 X"$as_dir" : 'X\(//\)[^/]' \| \
25479 X"$as_dir" : 'X\(//\)$' \| \
25480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25481 echo X"$as_dir" |
25482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25483 s//\1/
25484 q
25485 }
25486 /^X\(\/\/\)[^/].*/{
25487 s//\1/
25488 q
25489 }
25490 /^X\(\/\/\)$/{
25491 s//\1/
25492 q
25493 }
25494 /^X\(\/\).*/{
25495 s//\1/
25496 q
25497 }
25498 s/.*/./; q'`
25499 test -d "$as_dir" && break
25500 done
25501 test -z "$as_dirs" || eval "mkdir $as_dirs"
25502 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25503 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25504 { (exit 1); exit 1; }; }; }
25505 # echo "creating $dirpart/$file"
25506 echo '# dummy' > "$dirpart/$file"
25507 done
25508 done
25509 ;;
25510
25511 esac
25512 done # for ac_tag
25513
25514
25515 { (exit 0); exit 0; }
25516 _ACEOF
25517 chmod +x $CONFIG_STATUS
25518 ac_clean_files=$ac_clean_files_save
25519
25520
25521 # configure is writing to config.log, and then calls config.status.
25522 # config.status does its own redirection, appending to config.log.
25523 # Unfortunately, on DOS this fails, as config.log is still kept open
25524 # by configure, so config.status won't be able to write to it; its
25525 # output is simply discarded. So we exec the FD to /dev/null,
25526 # effectively closing config.log, so it can be properly (re)opened and
25527 # appended to by config.status. When coming back to configure, we
25528 # need to make the FD available again.
25529 if test "$no_create" != yes; then
25530 ac_cs_success=:
25531 ac_config_status_args=
25532 test "$silent" = yes &&
25533 ac_config_status_args="$ac_config_status_args --quiet"
25534 exec 5>/dev/null
25535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25536 exec 5>>config.log
25537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25538 # would make configure fail if this is the last instruction.
25539 $ac_cs_success || { (exit 1); exit 1; }
25540 fi
25541