]> jfr.im git - irc/evilnet/x3.git/blame - configure
make regex case sensitive, and old memoserv fix
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
ff3b058a 2# From configure.in Id: configure.in 1961 2007-05-08 00:29:15Z sirvulcan .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
ff3b058a 4# Generated by GNU Autoconf 2.61 for X3 2.0-rc1.
b3076f16 5#
63c95a47 6# Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 7#
a8b2ad8d 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
ff3b058a 16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 24 setopt NO_GLOB_SUBST
25else
ff3b058a 26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
b3076f16 30fi
ff3b058a 31
32
b3076f16 33
a8b2ad8d 34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
b3076f16 56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
a8b2ad8d 64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
b3076f16 97# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
b3076f16 101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
a8b2ad8d 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 115 fi
116done
117
118# Required to use basename.
a8b2ad8d 119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 121 as_expr=expr
122else
123 as_expr=false
124fi
125
a8b2ad8d 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
a8b2ad8d 134as_me=`$as_basename -- "$0" ||
b3076f16 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 138echo X/"$0" |
a8b2ad8d 139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
b3076f16 152
a8b2ad8d 153# CDPATH.
154$as_unset CDPATH
b3076f16 155
b3076f16 156
a8b2ad8d 157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
b3076f16 162fi
163
a8b2ad8d 164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
b3076f16 180
a8b2ad8d 181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
b3076f16 188
a8b2ad8d 189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
b3076f16 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ff3b058a 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16 226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
a8b2ad8d 229 case $as_dir in
b3076f16 230 /*)
a8b2ad8d 231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
a8b2ad8d 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
ff3b058a 251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
a8b2ad8d 255fi
ff3b058a 256
a8b2ad8d 257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
a8b2ad8d 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
ff3b058a 272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
a8b2ad8d 276fi
ff3b058a 277
a8b2ad8d 278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
b3076f16 331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
b3076f16 333 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
b3076f16 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
b3076f16 445 sed '
a8b2ad8d 446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
b3076f16 450 N
a8b2ad8d 451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 453 t loop
a8b2ad8d 454 s/-\n.*//
b3076f16 455 ' >$as_me.lineno &&
a8b2ad8d 456 chmod +x "$as_me.lineno" ||
b3076f16 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
b3076f16 464 # Exit status is that of the last command.
465 exit
466}
467
468
a8b2ad8d 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
b3076f16 484esac
485
a8b2ad8d 486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
b3076f16 500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 508 as_ln_s='cp -p'
b3076f16 509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
a8b2ad8d 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
b3076f16 516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
ff3b058a 524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
a8b2ad8d 526else
ff3b058a 527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
a8b2ad8d 544fi
ff3b058a 545as_executable_p=$as_test_x
b3076f16 546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
b3076f16 554
ff3b058a 555
556# Check that we are running under the correct shell.
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559case X$ECHO in
560X*--fallback-echo)
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 ;;
564esac
565
566echo=${ECHO-echo}
567if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
569 shift
570elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
572 :
573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
575 :
576else
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
579fi
580
581if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
583 shift
584 cat <<EOF
585$*
586EOF
587 exit 0
588fi
589
590# The HP-UX ksh and POSIX shell print the target directory to stdout
591# if CDPATH is set.
592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594if test -z "$ECHO"; then
595if test "X${echo_test_string+set}" != Xset; then
596# find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602 then
603 break
604 fi
605 done
606fi
607
608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 :
612else
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
616 #
617 # So, first we look for a working echo in the user's PATH.
618
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
621 IFS="$lt_save_ifs"
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 echo="$dir/echo"
627 break
628 fi
629 done
630 IFS="$lt_save_ifs"
631
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
638 echo='print -r'
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
645 export CONFIG_SHELL
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 else
648 # Try using printf.
649 echo='printf %s\n'
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
653 # Cool, printf works
654 :
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 export CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
662 export SHELL
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 else
670 # maybe with a smaller string...
671 prev=:
672
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675 then
676 break
677 fi
678 prev="$cmd"
679 done
680
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 else
686 # Oops. We lost completely, so just stick with echo.
687 echo=echo
688 fi
689 fi
690 fi
691 fi
692fi
693fi
694
695# Copy echo and quote the copy suitably for passing to libtool from
696# the Makefile, instead of quoting the original, which is used later.
697ECHO=$echo
698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700fi
701
702
703
704
705tagnames=${tagnames+${tagnames},}CXX
706
707tagnames=${tagnames+${tagnames},}F77
708
a8b2ad8d 709exec 7<&0 </dev/null 6>&1
b3076f16 710
711# Name of the host.
712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713# so uname gets run too.
714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
b3076f16 716#
717# Initializations.
718#
719ac_default_prefix=/usr/local
a8b2ad8d 720ac_clean_files=
b3076f16 721ac_config_libobj_dir=.
a8b2ad8d 722LIBOBJS=
b3076f16 723cross_compiling=no
724subdirs=
725MFLAGS=
726MAKEFLAGS=
727SHELL=${CONFIG_SHELL-/bin/sh}
728
b3076f16 729# Identity of this package.
ceafd592 730PACKAGE_NAME='X3'
731PACKAGE_TARNAME='x3'
ff3b058a 732PACKAGE_VERSION='2.0-rc1'
733PACKAGE_STRING='X3 2.0-rc1'
63c95a47 734PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
b3076f16 735
736ac_unique_file="src/opserv.c"
737# Factoring default headers for most tests.
738ac_includes_default="\
739#include <stdio.h>
ff3b058a 740#ifdef HAVE_SYS_TYPES_H
b3076f16 741# include <sys/types.h>
742#endif
ff3b058a 743#ifdef HAVE_SYS_STAT_H
b3076f16 744# include <sys/stat.h>
745#endif
ff3b058a 746#ifdef STDC_HEADERS
b3076f16 747# include <stdlib.h>
748# include <stddef.h>
749#else
ff3b058a 750# ifdef HAVE_STDLIB_H
b3076f16 751# include <stdlib.h>
752# endif
753#endif
ff3b058a 754#ifdef HAVE_STRING_H
755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b3076f16 756# include <memory.h>
757# endif
758# include <string.h>
759#endif
ff3b058a 760#ifdef HAVE_STRINGS_H
b3076f16 761# include <strings.h>
762#endif
ff3b058a 763#ifdef HAVE_INTTYPES_H
b3076f16 764# include <inttypes.h>
a8b2ad8d 765#endif
ff3b058a 766#ifdef HAVE_STDINT_H
a8b2ad8d 767# include <stdint.h>
b3076f16 768#endif
ff3b058a 769#ifdef HAVE_UNISTD_H
b3076f16 770# include <unistd.h>
771#endif"
772
a8b2ad8d 773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810build
811build_cpu
812build_vendor
813build_os
814host
815host_cpu
816host_vendor
817host_os
818target
819target_cpu
820target_vendor
821target_os
822INSTALL_PROGRAM
823INSTALL_SCRIPT
824INSTALL_DATA
ff3b058a 825am__isrc
a8b2ad8d 826CYGPATH_W
827PACKAGE
828VERSION
829ACLOCAL
830AUTOCONF
831AUTOMAKE
832AUTOHEADER
833MAKEINFO
834install_sh
835STRIP
836INSTALL_STRIP_PROGRAM
837mkdir_p
838AWK
839SET_MAKE
840am__leading_dot
841AMTAR
842am__tar
843am__untar
844MAINTAINER_MODE_TRUE
845MAINTAINER_MODE_FALSE
846MAINT
847CC
848CFLAGS
849LDFLAGS
850CPPFLAGS
851ac_ct_CC
852EXEEXT
853OBJEXT
854DEPDIR
855am__include
856am__quote
857AMDEP_TRUE
858AMDEP_FALSE
859AMDEPBACKSLASH
860CCDEPMODE
861am__fastdepCC_TRUE
862am__fastdepCC_FALSE
863RANLIB
ff3b058a 864SED
a8b2ad8d 865GREP
866EGREP
ff3b058a 867LN_S
868ECHO
869AR
870CPP
871CXX
872CXXFLAGS
873ac_ct_CXX
874CXXDEPMODE
875am__fastdepCXX_TRUE
876am__fastdepCXX_FALSE
877CXXCPP
878F77
879FFLAGS
880ac_ct_F77
881LIBTOOL
a8b2ad8d 882MAKER
883ALLOCA
884MODULE_OBJS
885MY_SUBDIRS
886RX_INCLUDES
887RX_LIBS
888TRACK
889LIBOBJS
890LTLIBOBJS'
b3076f16 891ac_subst_files=''
a8b2ad8d 892 ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
ff3b058a 898LIBS
a8b2ad8d 899CPPFLAGS
ff3b058a 900CPP
901CXX
902CXXFLAGS
903CCC
904CXXCPP
905F77
906FFLAGS'
a8b2ad8d 907
b3076f16 908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
a8b2ad8d 934# (The list follows the same order as the GNU Coding Standards.)
b3076f16 935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
a8b2ad8d 938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
b3076f16 940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
b3076f16 943includedir='${prefix}/include'
944oldincludedir='/usr/include'
a8b2ad8d 945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
b3076f16 954
955ac_prev=
a8b2ad8d 956ac_dashdash=
b3076f16 957for ac_option
958do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
a8b2ad8d 961 eval $ac_prev=\$ac_option
b3076f16 962 ac_prev=
963 continue
964 fi
965
a8b2ad8d 966 case $ac_option in
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *) ac_optarg=yes ;;
969 esac
b3076f16 970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
a8b2ad8d 973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
b3076f16 976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
981
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
996
a8b2ad8d 997 -datadir | --datadir | --datadi | --datad)
b3076f16 998 ac_prev=datadir ;;
a8b2ad8d 999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16 1000 datadir=$ac_optarg ;;
1001
a8b2ad8d 1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
b3076f16 1009 -disable-* | --disable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
ff3b058a 1012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
ff3b058a 1015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
a8b2ad8d 1016 eval enable_$ac_feature=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
b3076f16 1027
1028 -enable-* | --enable-*)
1029 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
ff3b058a 1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033 { (exit 1); exit 1; }; }
ff3b058a 1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
a8b2ad8d 1035 eval enable_$ac_feature=\$ac_optarg ;;
b3076f16 1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
a8b2ad8d 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
b3076f16 1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
a8b2ad8d 1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
b3076f16 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 1098 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16 1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
a8b2ad8d 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
b3076f16 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1185
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1196
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1201
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1206
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1213
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1218
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1221
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1224
1225 -with-* | --with-*)
1226 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
ff3b058a 1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1229 { echo "$as_me: error: invalid package name: $ac_package" >&2
1230 { (exit 1); exit 1; }; }
ff3b058a 1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
a8b2ad8d 1232 eval with_$ac_package=\$ac_optarg ;;
b3076f16 1233
1234 -without-* | --without-*)
1235 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
ff3b058a 1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
ff3b058a 1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
a8b2ad8d 1241 eval with_$ac_package=no ;;
b3076f16 1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) { echo "$as_me: error: unrecognized option: $ac_option
1262Try \`$0 --help' for more information." >&2
1263 { (exit 1); exit 1; }; }
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271 { (exit 1); exit 1; }; }
a8b2ad8d 1272 eval $ac_envvar=\$ac_optarg
b3076f16 1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281 ;;
1282
1283 esac
1284done
1285
1286if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 { echo "$as_me: error: missing argument to $ac_option" >&2
1289 { (exit 1); exit 1; }; }
1290fi
1291
a8b2ad8d 1292# Be sure to have absolute directory names.
1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
b3076f16 1297do
a8b2ad8d 1298 eval ac_val=\$$ac_var
b3076f16 1299 case $ac_val in
a8b2ad8d 1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1302 esac
a8b2ad8d 1303 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304 { (exit 1); exit 1; }; }
b3076f16 1305done
1306
1307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
1313
1314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used." >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323fi
1324
1325ac_tool_prefix=
1326test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328test "$silent" = yes && exec 6>/dev/null
1329
1330
a8b2ad8d 1331ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332ac_ls_di=`ls -di .` &&
1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 { echo "$as_me: error: Working directory cannot be determined" >&2
1335 { (exit 1); exit 1; }; }
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 { echo "$as_me: error: pwd does not report name of working directory" >&2
1338 { (exit 1); exit 1; }; }
1339
1340
b3076f16 1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
a8b2ad8d 1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$0" ||
b3076f16 1346$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$0" : 'X\(//\)[^/]' \| \
1348 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 1349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 1350echo X"$0" |
a8b2ad8d 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
b3076f16 1368 srcdir=$ac_confdir
a8b2ad8d 1369 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16 1370 srcdir=..
1371 fi
1372else
1373 ac_srcdir_defaulted=no
1374fi
a8b2ad8d 1375if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b3076f16 1378 { (exit 1); exit 1; }; }
b3076f16 1379fi
a8b2ad8d 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
b3076f16 1383 { (exit 1); exit 1; }; }
a8b2ad8d 1384 pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
b3076f16 1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
ff3b058a 1409\`configure' configures X3 2.0-rc1 to adapt to many kinds of systems.
b3076f16 1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE. See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428
b3076f16 1429Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
b3076f16 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
a8b2ad8d 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
b3076f16 1462_ACEOF
1463
1464 cat <<\_ACEOF
1465
1466Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 --target=TARGET configure for building compilers for TARGET [HOST]
1475_ACEOF
1476fi
1477
1478if test -n "$ac_init_help"; then
1479 case $ac_init_help in
ff3b058a 1480 short | recursive ) echo "Configuration of X3 2.0-rc1:";;
b3076f16 1481 esac
1482 cat <<\_ACEOF
1483
1484Optional Features:
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1487 --enable-maintainer-mode enable make rules and dependencies not useful
1488 (and sometimes confusing) to the casual installer
1489 --disable-dependency-tracking speeds up one-time build
1490 --enable-dependency-tracking do not reject slow dependency extractors
ff3b058a 1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
b3076f16 1496 --disable-tokens Disables tokenization of P10 protocol output
1497 (tokens required if linking to ircu 2.10.11)
1498 --enable-debug Enables debugging behaviors
1499 --enable-modules=list,of,modules Enable extra modules
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ff3b058a 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-pic try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --with-tags[=TAGS] include additional configurations [automatic]
b3076f16 1508 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1509 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1510 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1511 p10 (the default)
ff3b058a 1512 --with-mail=name How to send mail; one of:
1513 sendmail (the default)
1514 --without-epoll Disables the epoll_*() I/O backend
b3076f16 1515 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1516 --with-tre=PATH Base path to where libtre is installed, such that
1517 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1518 --with-coredumper=PATH Base path to where core dumper is installed, such
1519 that PATH/lib/libcoredumper.so and
1520 PATH/include/google/coredumper.h exist.
73d4cc91 1521 --with-ssl=PATH Base path to where openssl is installed
8da89711 1522 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1523 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1524
1525Some 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>
ff3b058a 1530 LIBS libraries to pass to the linker, e.g. -l<library>
a8b2ad8d 1531 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
b3076f16 1533 CPP C preprocessor
ff3b058a 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
b3076f16 1539
1540Use these variables to override the choices made by `configure' or to help
1541it to find libraries and programs with nonstandard names/locations.
1542
63c95a47 1543Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1544_ACEOF
a8b2ad8d 1545ac_status=$?
b3076f16 1546fi
1547
1548if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
b3076f16 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1551 test -d "$ac_dir" || continue
b3076f16 1552 ac_builddir=.
1553
a8b2ad8d 1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
b3076f16 1557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
b3076f16 1569
1570case $srcdir in
a8b2ad8d 1571 .) # We are building in place.
b3076f16 1572 ac_srcdir=.
a8b2ad8d 1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1576 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1583esac
a8b2ad8d 1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1594 else
1595 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1598 done
1599fi
1600
a8b2ad8d 1601test -n "$ac_init_help" && exit $ac_status
b3076f16 1602if $ac_init_version; then
1603 cat <<\_ACEOF
ff3b058a 1604X3 configure 2.0-rc1
1605generated by GNU Autoconf 2.61
b3076f16 1606
a8b2ad8d 1607Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1609This configure script is free software; the Free Software Foundation
1610gives unlimited permission to copy, distribute and modify it.
1611_ACEOF
a8b2ad8d 1612 exit
b3076f16 1613fi
a8b2ad8d 1614cat >config.log <<_ACEOF
b3076f16 1615This file contains any messages produced by compilers while
1616running configure, to aid debugging if configure makes a mistake.
1617
ff3b058a 1618It was created by X3 $as_me 2.0-rc1, which was
1619generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 1620
1621 $ $0 $@
1622
1623_ACEOF
a8b2ad8d 1624exec 5>>config.log
b3076f16 1625{
1626cat <<_ASUNAME
1627## --------- ##
1628## Platform. ##
1629## --------- ##
1630
1631hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1632uname -m = `(uname -m) 2>/dev/null || echo unknown`
1633uname -r = `(uname -r) 2>/dev/null || echo unknown`
1634uname -s = `(uname -s) 2>/dev/null || echo unknown`
1635uname -v = `(uname -v) 2>/dev/null || echo unknown`
1636
1637/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1638/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1639
1640/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1641/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1642/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1643/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1644/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1645/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1646/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1647
1648_ASUNAME
1649
1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 echo "PATH: $as_dir"
1656done
a8b2ad8d 1657IFS=$as_save_IFS
b3076f16 1658
1659} >&5
1660
1661cat >&5 <<_ACEOF
1662
1663
1664## ----------- ##
1665## Core tests. ##
1666## ----------- ##
1667
1668_ACEOF
1669
1670
1671# Keep a trace of the command line.
1672# Strip out --no-create and --no-recursion so they do not pile up.
1673# Strip out --silent because we don't want to record it for future runs.
1674# Also quote any args containing shell meta-characters.
1675# Make two passes to allow for proper duplicate-argument suppression.
1676ac_configure_args=
1677ac_configure_args0=
1678ac_configure_args1=
b3076f16 1679ac_must_keep_next=false
1680for ac_pass in 1 2
1681do
1682 for ac_arg
1683 do
1684 case $ac_arg in
1685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1687 | -silent | --silent | --silen | --sile | --sil)
1688 continue ;;
a8b2ad8d 1689 *\'*)
b3076f16 1690 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 esac
1692 case $ac_pass in
1693 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1694 2)
1695 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1696 if test $ac_must_keep_next = true; then
1697 ac_must_keep_next=false # Got value, back to normal.
1698 else
1699 case $ac_arg in
1700 *=* | --config-cache | -C | -disable-* | --disable-* \
1701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1703 | -with-* | --with-* | -without-* | --without-* | --x)
1704 case "$ac_configure_args0 " in
1705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 esac
1707 ;;
1708 -* ) ac_must_keep_next=true ;;
1709 esac
1710 fi
a8b2ad8d 1711 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1712 ;;
1713 esac
1714 done
1715done
1716$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1717$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1718
1719# When interrupted or exit'd, cleanup temporary files, and complete
1720# config.log. We remove comments because anyway the quotes in there
1721# would cause problems or look ugly.
a8b2ad8d 1722# WARNING: Use '\'' to represent an apostrophe within the trap.
1723# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1724trap 'exit_status=$?
1725 # Save into config.log some information that might help in debugging.
1726 {
1727 echo
1728
1729 cat <<\_ASBOX
1730## ---------------- ##
1731## Cache variables. ##
1732## ---------------- ##
1733_ASBOX
1734 echo
1735 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1736(
1737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1738 eval ac_val=\$$ac_var
1739 case $ac_val in #(
1740 *${as_nl}*)
1741 case $ac_var in #(
1742 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1743echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744 esac
1745 case $ac_var in #(
1746 _ | IFS | as_nl) ;; #(
1747 *) $as_unset $ac_var ;;
1748 esac ;;
1749 esac
1750 done
b3076f16 1751 (set) 2>&1 |
a8b2ad8d 1752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1753 *${as_nl}ac_space=\ *)
b3076f16 1754 sed -n \
a8b2ad8d 1755 "s/'\''/'\''\\\\'\'''\''/g;
1756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 ;; #(
b3076f16 1758 *)
a8b2ad8d 1759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1760 ;;
a8b2ad8d 1761 esac |
1762 sort
1763)
b3076f16 1764 echo
1765
1766 cat <<\_ASBOX
1767## ----------------- ##
1768## Output variables. ##
1769## ----------------- ##
1770_ASBOX
1771 echo
1772 for ac_var in $ac_subst_vars
1773 do
a8b2ad8d 1774 eval ac_val=\$$ac_var
1775 case $ac_val in
1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 esac
1778 echo "$ac_var='\''$ac_val'\''"
b3076f16 1779 done | sort
1780 echo
1781
1782 if test -n "$ac_subst_files"; then
1783 cat <<\_ASBOX
a8b2ad8d 1784## ------------------- ##
1785## File substitutions. ##
1786## ------------------- ##
b3076f16 1787_ASBOX
1788 echo
1789 for ac_var in $ac_subst_files
1790 do
a8b2ad8d 1791 eval ac_val=\$$ac_var
1792 case $ac_val in
1793 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 esac
1795 echo "$ac_var='\''$ac_val'\''"
b3076f16 1796 done | sort
1797 echo
1798 fi
1799
1800 if test -s confdefs.h; then
1801 cat <<\_ASBOX
1802## ----------- ##
1803## confdefs.h. ##
1804## ----------- ##
1805_ASBOX
1806 echo
a8b2ad8d 1807 cat confdefs.h
b3076f16 1808 echo
1809 fi
1810 test "$ac_signal" != 0 &&
1811 echo "$as_me: caught signal $ac_signal"
1812 echo "$as_me: exit $exit_status"
1813 } >&5
a8b2ad8d 1814 rm -f core *.core core.conftest.* &&
1815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1816 exit $exit_status
a8b2ad8d 1817' 0
b3076f16 1818for ac_signal in 1 2 13 15; do
1819 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820done
1821ac_signal=0
1822
1823# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1824rm -f -r conftest* confdefs.h
b3076f16 1825
1826# Predefined preprocessor variables.
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_NAME "$PACKAGE_NAME"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_VERSION "$PACKAGE_VERSION"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE_STRING "$PACKAGE_STRING"
1845_ACEOF
1846
1847
1848cat >>confdefs.h <<_ACEOF
1849#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850_ACEOF
1851
1852
1853# Let the site file select an alternate cache file if it wants to.
1854# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1855if test -n "$CONFIG_SITE"; then
1856 set x "$CONFIG_SITE"
1857elif test "x$prefix" != xNONE; then
1858 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859else
1860 set x "$ac_default_prefix/share/config.site" \
1861 "$ac_default_prefix/etc/config.site"
b3076f16 1862fi
a8b2ad8d 1863shift
1864for ac_site_file
1865do
b3076f16 1866 if test -r "$ac_site_file"; then
1867 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1870 . "$ac_site_file"
1871 fi
1872done
1873
1874if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879echo "$as_me: loading cache $cache_file" >&6;}
1880 case $cache_file in
a8b2ad8d 1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
b3076f16 1883 esac
1884 fi
1885else
1886 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887echo "$as_me: creating cache $cache_file" >&6;}
1888 >$cache_file
1889fi
1890
1891# Check that the precious variables saved in the cache have kept the same
1892# value.
1893ac_cache_corrupted=false
a8b2ad8d 1894for ac_var in $ac_precious_vars; do
b3076f16 1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1899 case $ac_old_set,$ac_new_set in
1900 set,)
1901 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,set)
1905 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1908 ,);;
1909 *)
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1914echo "$as_me: former value: $ac_old_val" >&2;}
1915 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1916echo "$as_me: current value: $ac_new_val" >&2;}
1917 ac_cache_corrupted=:
1918 fi;;
1919 esac
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1922 case $ac_new_val in
a8b2ad8d 1923 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1924 *) ac_arg=$ac_var=$ac_new_val ;;
1925 esac
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929 esac
1930 fi
1931done
1932if $ac_cache_corrupted; then
1933 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1934echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1935 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1936echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1937 { (exit 1); exit 1; }; }
1938fi
1939
b3076f16 1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
a8b2ad8d 1964ac_ext=c
1965ac_cpp='$CPP $CPPFLAGS'
1966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1969
1970
ceafd592 1971CODENAME=X3
a8b2ad8d 1972ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1973
1974
1975ac_aux_dir=
a8b2ad8d 1976for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1977 if test -f "$ac_dir/install-sh"; then
b3076f16 1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 break
a8b2ad8d 1981 elif test -f "$ac_dir/install.sh"; then
b3076f16 1982 ac_aux_dir=$ac_dir
1983 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 break
a8b2ad8d 1985 elif test -f "$ac_dir/shtool"; then
b3076f16 1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 break
1989 fi
1990done
1991if test -z "$ac_aux_dir"; then
a8b2ad8d 1992 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1993echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1994 { (exit 1); exit 1; }; }
1995fi
a8b2ad8d 1996
1997# These three variables are undocumented and unsupported,
1998# and are intended to be withdrawn in a future Autoconf release.
1999# They can cause serious problems if a builder's source tree is in a directory
2000# whose full name contains unusual characters.
2001ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2002ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2003ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004
b3076f16 2005
2006# Make sure we can run config.sub.
a8b2ad8d 2007$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2008 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2009echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 2010 { (exit 1); exit 1; }; }
2011
a8b2ad8d 2012{ echo "$as_me:$LINENO: checking build system type" >&5
2013echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 2014if test "${ac_cv_build+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
a8b2ad8d 2017 ac_build_alias=$build_alias
2018test "x$ac_build_alias" = x &&
2019 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2020test "x$ac_build_alias" = x &&
b3076f16 2021 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2022echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2023 { (exit 1); exit 1; }; }
a8b2ad8d 2024ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2025 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2026echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 2027 { (exit 1); exit 1; }; }
2028
2029fi
a8b2ad8d 2030{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2031echo "${ECHO_T}$ac_cv_build" >&6; }
2032case $ac_cv_build in
2033*-*-*) ;;
2034*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2035echo "$as_me: error: invalid value of canonical build" >&2;}
2036 { (exit 1); exit 1; }; };;
2037esac
b3076f16 2038build=$ac_cv_build
a8b2ad8d 2039ac_save_IFS=$IFS; IFS='-'
2040set x $ac_cv_build
2041shift
2042build_cpu=$1
2043build_vendor=$2
2044shift; shift
2045# Remember, the first character of IFS is used to create $*,
2046# except with old shells:
2047build_os=$*
2048IFS=$ac_save_IFS
2049case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2050
2051
2052{ echo "$as_me:$LINENO: checking host system type" >&5
2053echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 2054if test "${ac_cv_host+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
a8b2ad8d 2057 if test "x$host_alias" = x; then
2058 ac_cv_host=$ac_cv_build
2059else
2060 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2061 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2062echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 2063 { (exit 1); exit 1; }; }
a8b2ad8d 2064fi
b3076f16 2065
2066fi
a8b2ad8d 2067{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2068echo "${ECHO_T}$ac_cv_host" >&6; }
2069case $ac_cv_host in
2070*-*-*) ;;
2071*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2072echo "$as_me: error: invalid value of canonical host" >&2;}
2073 { (exit 1); exit 1; }; };;
2074esac
b3076f16 2075host=$ac_cv_host
a8b2ad8d 2076ac_save_IFS=$IFS; IFS='-'
2077set x $ac_cv_host
2078shift
2079host_cpu=$1
2080host_vendor=$2
2081shift; shift
2082# Remember, the first character of IFS is used to create $*,
2083# except with old shells:
2084host_os=$*
2085IFS=$ac_save_IFS
2086case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2087
2088
2089{ echo "$as_me:$LINENO: checking target system type" >&5
2090echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 2091if test "${ac_cv_target+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
a8b2ad8d 2094 if test "x$target_alias" = x; then
2095 ac_cv_target=$ac_cv_host
2096else
2097 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2098 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2099echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 2100 { (exit 1); exit 1; }; }
a8b2ad8d 2101fi
b3076f16 2102
2103fi
a8b2ad8d 2104{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2105echo "${ECHO_T}$ac_cv_target" >&6; }
2106case $ac_cv_target in
2107*-*-*) ;;
2108*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2109echo "$as_me: error: invalid value of canonical target" >&2;}
2110 { (exit 1); exit 1; }; };;
2111esac
b3076f16 2112target=$ac_cv_target
a8b2ad8d 2113ac_save_IFS=$IFS; IFS='-'
2114set x $ac_cv_target
2115shift
2116target_cpu=$1
2117target_vendor=$2
2118shift; shift
2119# Remember, the first character of IFS is used to create $*,
2120# except with old shells:
2121target_os=$*
2122IFS=$ac_save_IFS
2123case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 2124
2125
2126# The aliases save the names the user supplied, while $host etc.
2127# will get canonicalized.
2128test -n "$target_alias" &&
2129 test "$program_prefix$program_suffix$program_transform_name" = \
2130 NONENONEs,x,x, &&
2131 program_prefix=${target_alias}-
ff3b058a 2132am__api_version='1.10'
2133
b3076f16 2134# Find a good install program. We prefer a C program (faster),
2135# so one script is as good as another. But avoid the broken or
2136# incompatible versions:
2137# SysV /etc/install, /usr/sbin/install
2138# SunOS /usr/etc/install
2139# IRIX /sbin/install
2140# AIX /bin/install
2141# AmigaOS /C/install, which installs bootblocks on floppy discs
2142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2143# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2145# OS/2's system install, which has a completely different semantic
2146# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 2147{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2148echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 2149if test -z "$INSTALL"; then
2150if test "${ac_cv_path_install+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154for as_dir in $PATH
2155do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 # Account for people who put trailing slashes in PATH elements.
2159case $as_dir/ in
2160 ./ | .// | /cC/* | \
2161 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2162 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2163 /usr/ucb/* ) ;;
2164 *)
2165 # OSF1 and SCO ODT 3.0 have their own names for install.
2166 # Don't use installbsd from OSF since it installs stuff as root
2167 # by default.
2168 for ac_prog in ginstall scoinst install; do
2169 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2170 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 2171 if test $ac_prog = install &&
2172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173 # AIX install. It has an incompatible calling convention.
2174 :
2175 elif test $ac_prog = install &&
2176 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177 # program-specific install script used by HP pwplus--don't use.
2178 :
2179 else
2180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 break 3
2182 fi
2183 fi
2184 done
2185 done
2186 ;;
2187esac
2188done
a8b2ad8d 2189IFS=$as_save_IFS
b3076f16 2190
2191
2192fi
2193 if test "${ac_cv_path_install+set}" = set; then
2194 INSTALL=$ac_cv_path_install
2195 else
a8b2ad8d 2196 # As a last resort, use the slow shell script. Don't cache a
2197 # value for INSTALL within a source directory, because that will
b3076f16 2198 # break other packages using the cache if that directory is
a8b2ad8d 2199 # removed, or if the value is a relative name.
b3076f16 2200 INSTALL=$ac_install_sh
2201 fi
2202fi
a8b2ad8d 2203{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2204echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 2205
2206# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207# It thinks the first close brace ends the variable substitution.
2208test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
2210test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
2212test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
a8b2ad8d 2214{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2215echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2216# Just in case
2217sleep 1
ec1a68c8 2218echo timestamp > conftest.file
b3076f16 2219# Do `set' in a subshell so we don't clobber the current shell's
2220# arguments. Must try -L first in case configure is actually a
2221# symlink; some systems play weird games with the mod time of symlinks
2222# (eg FreeBSD returns the mod time of the symlink's containing
2223# directory).
2224if (
ec1a68c8 2225 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2226 if test "$*" = "X"; then
2227 # -L didn't work.
ec1a68c8 2228 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2229 fi
ec1a68c8 2230 rm -f conftest.file
2231 if test "$*" != "X $srcdir/configure conftest.file" \
2232 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2233
2234 # If neither matched, then we have a broken ls. This can happen
2235 # if, for instance, CONFIG_SHELL is bash and it inherits a
2236 # broken ls alias from the environment. This has actually
2237 # happened. Such a system could not be considered "sane".
2238 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2239alias in your environment" >&5
2240echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2241alias in your environment" >&2;}
2242 { (exit 1); exit 1; }; }
2243 fi
2244
ec1a68c8 2245 test "$2" = conftest.file
b3076f16 2246 )
2247then
2248 # Ok.
2249 :
2250else
2251 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2252Check your system clock" >&5
2253echo "$as_me: error: newly created file is older than distributed files!
2254Check your system clock" >&2;}
2255 { (exit 1); exit 1; }; }
2256fi
a8b2ad8d 2257{ echo "$as_me:$LINENO: result: yes" >&5
2258echo "${ECHO_T}yes" >&6; }
b3076f16 2259test "$program_prefix" != NONE &&
a8b2ad8d 2260 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2261# Use a double $ so make ignores it.
2262test "$program_suffix" != NONE &&
a8b2ad8d 2263 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2264# Double any \ or $. echo might interpret backslashes.
2265# By default was `s,x,x', remove it if useless.
2266cat <<\_ACEOF >conftest.sed
2267s/[\\$]/&&/g;s/;s,x,x,$//
2268_ACEOF
2269program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2270rm -f conftest.sed
b3076f16 2271
ec1a68c8 2272# expand $ac_aux_dir to an absolute path
2273am_aux_dir=`cd $ac_aux_dir && pwd`
2274
2275test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2276# Use eval to expand $SHELL
2277if eval "$MISSING --run true"; then
2278 am_missing_run="$MISSING --run "
2279else
2280 am_missing_run=
2281 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2282echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2283fi
2284
ff3b058a 2285{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2286echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2287if test -z "$MKDIR_P"; then
2288 if test "${ac_cv_path_mkdir+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2293do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_prog in mkdir gmkdir; do
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2299 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2300 'mkdir (GNU coreutils) '* | \
2301 'mkdir (coreutils) '* | \
2302 'mkdir (fileutils) '4.1*)
2303 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2304 break 3;;
2305 esac
2306 done
2307 done
2308done
2309IFS=$as_save_IFS
2310
2311fi
2312
2313 if test "${ac_cv_path_mkdir+set}" = set; then
2314 MKDIR_P="$ac_cv_path_mkdir -p"
ec1a68c8 2315 else
ff3b058a 2316 # As a last resort, use the slow shell script. Don't cache a
2317 # value for MKDIR_P within a source directory, because that will
2318 # break other packages using the cache if that directory is
2319 # removed, or if the value is a relative name.
2320 test -d ./--version && rmdir ./--version
2321 MKDIR_P="$ac_install_sh -d"
ec1a68c8 2322 fi
2323fi
ff3b058a 2324{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2325echo "${ECHO_T}$MKDIR_P" >&6; }
2326
2327mkdir_p="$MKDIR_P"
2328case $mkdir_p in
2329 [\\/$]* | ?:[\\/]*) ;;
2330 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2331esac
ec1a68c8 2332
2333for ac_prog in gawk mawk nawk awk
2334do
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336set dummy $ac_prog; ac_word=$2
a8b2ad8d 2337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2339if test "${ac_cv_prog_AWK+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342 if test -n "$AWK"; then
2343 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2352 ac_cv_prog_AWK="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357done
a8b2ad8d 2358IFS=$as_save_IFS
ec1a68c8 2359
2360fi
2361fi
2362AWK=$ac_cv_prog_AWK
2363if test -n "$AWK"; then
a8b2ad8d 2364 { echo "$as_me:$LINENO: result: $AWK" >&5
2365echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2366else
a8b2ad8d 2367 { echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6; }
ec1a68c8 2369fi
2370
a8b2ad8d 2371
ec1a68c8 2372 test -n "$AWK" && break
2373done
2374
a8b2ad8d 2375{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2376echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2377set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2378if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 cat >conftest.make <<\_ACEOF
a8b2ad8d 2382SHELL = /bin/sh
b3076f16 2383all:
a8b2ad8d 2384 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2385_ACEOF
2386# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2387case `${MAKE-make} -f conftest.make 2>/dev/null` in
2388 *@@@%%%=?*=@@@%%%*)
2389 eval ac_cv_prog_make_${ac_make}_set=yes;;
2390 *)
2391 eval ac_cv_prog_make_${ac_make}_set=no;;
2392esac
b3076f16 2393rm -f conftest.make
2394fi
a8b2ad8d 2395if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2396 { echo "$as_me:$LINENO: result: yes" >&5
2397echo "${ECHO_T}yes" >&6; }
b3076f16 2398 SET_MAKE=
2399else
a8b2ad8d 2400 { echo "$as_me:$LINENO: result: no" >&5
2401echo "${ECHO_T}no" >&6; }
b3076f16 2402 SET_MAKE="MAKE=${MAKE-make}"
2403fi
2404
ec1a68c8 2405rm -rf .tst 2>/dev/null
2406mkdir .tst 2>/dev/null
2407if test -d .tst; then
2408 am__leading_dot=.
2409else
2410 am__leading_dot=_
2411fi
2412rmdir .tst 2>/dev/null
b3076f16 2413
ff3b058a 2414if test "`cd $srcdir && pwd`" != "`pwd`"; then
2415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2416 # is not polluted with repeated "-I."
2417 am__isrc=' -I$(srcdir)'
2418 # test to see if srcdir already configured
2419 if test -f $srcdir/config.status; then
2420 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
b3076f16 2421echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2422 { (exit 1); exit 1; }; }
ff3b058a 2423 fi
b3076f16 2424fi
2425
ec1a68c8 2426# test whether we have cygpath
2427if test -z "$CYGPATH_W"; then
2428 if (cygpath --version) >/dev/null 2>/dev/null; then
2429 CYGPATH_W='cygpath -w'
2430 else
2431 CYGPATH_W=echo
2432 fi
2433fi
2434
2435
2436# Define the identity of the package.
ceafd592 2437 PACKAGE='x3'
ff3b058a 2438 VERSION='2.0-rc1'
ec1a68c8 2439
2440
b3076f16 2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE "$PACKAGE"
2443_ACEOF
2444
2445
2446cat >>confdefs.h <<_ACEOF
2447#define VERSION "$VERSION"
2448_ACEOF
2449
ec1a68c8 2450# Some tools Automake needs.
b3076f16 2451
ec1a68c8 2452ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2453
ec1a68c8 2454
2455AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2456
2457
2458AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2459
2460
2461AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2462
2463
2464MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2465
ff3b058a 2466install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
ec1a68c8 2467
2468# Installed binaries are usually stripped using `strip' when the user
2469# run `make install-strip'. However `strip' might not be the right
2470# tool to use in cross-compilation environments, therefore Automake
2471# will honor the `STRIP' environment variable to overrule this program.
2472if test "$cross_compiling" != no; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2478if test "${ac_cv_prog_STRIP+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2480else
ec1a68c8 2481 if test -n "$STRIP"; then
2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
a8b2ad8d 2497IFS=$as_save_IFS
b3076f16 2498
ec1a68c8 2499fi
2500fi
2501STRIP=$ac_cv_prog_STRIP
2502if test -n "$STRIP"; then
a8b2ad8d 2503 { echo "$as_me:$LINENO: result: $STRIP" >&5
2504echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2505else
a8b2ad8d 2506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
b3076f16 2508fi
b2cf3d66 2509
a8b2ad8d 2510
b3076f16 2511fi
ec1a68c8 2512if test -z "$ac_cv_prog_STRIP"; then
2513 ac_ct_STRIP=$STRIP
2514 # Extract the first word of "strip", so it can be a program name with args.
2515set dummy strip; ac_word=$2
a8b2ad8d 2516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 if test -n "$ac_ct_STRIP"; then
2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2531 ac_cv_prog_ac_ct_STRIP="strip"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535done
2536done
a8b2ad8d 2537IFS=$as_save_IFS
b3076f16 2538
ec1a68c8 2539fi
2540fi
2541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2543 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2544echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2545else
a8b2ad8d 2546 { echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6; }
b3076f16 2548fi
2549
a8b2ad8d 2550 if test "x$ac_ct_STRIP" = x; then
2551 STRIP=":"
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554yes:)
2555{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2556whose name does not start with the host triplet. If you think this
2557configuration is useful to you, please write to autoconf@gnu.org." >&5
2558echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2559whose name does not start with the host triplet. If you think this
2560configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2561ac_tool_warned=yes ;;
2562esac
2563 STRIP=$ac_ct_STRIP
2564 fi
b2cf3d66 2565else
ec1a68c8 2566 STRIP="$ac_cv_prog_STRIP"
b3076f16 2567fi
b3076f16 2568
ec1a68c8 2569fi
ff3b058a 2570INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
ec1a68c8 2571
2572# We need awk for the "check" target. The system "awk" is bad on
2573# some platforms.
2574# Always define AMTAR for backward compatibility.
2575
2576AMTAR=${AMTAR-"${am_missing_run}tar"}
2577
2578am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2579
2580
2581
2582
b3076f16 2583
a8b2ad8d 2584{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2585echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2586 # Check whether --enable-maintainer-mode was given.
b3076f16 2587if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2588 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2589else
2590 USE_MAINTAINER_MODE=no
a8b2ad8d 2591fi
2592
2593 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2594echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
ff3b058a 2595 if test $USE_MAINTAINER_MODE = yes; then
b3076f16 2596 MAINTAINER_MODE_TRUE=
2597 MAINTAINER_MODE_FALSE='#'
2598else
2599 MAINTAINER_MODE_TRUE='#'
2600 MAINTAINER_MODE_FALSE=
2601fi
ec1a68c8 2602
b3076f16 2603 MAINT=$MAINTAINER_MODE_TRUE
2604
2605
2606
ec1a68c8 2607DEPDIR="${am__leading_dot}deps"
2608
a8b2ad8d 2609ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2610
2611
2612am_make=${MAKE-make}
2613cat > confinc << 'END'
2614am__doit:
2615 @echo done
2616.PHONY: am__doit
2617END
2618# If we don't find an include directive, just comment out the code.
a8b2ad8d 2619{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2620echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2621am__include="#"
2622am__quote=
2623_am_result=none
2624# First try GNU make style include.
2625echo "include confinc" > confmf
2626# We grep out `Entering directory' and `Leaving directory'
2627# messages which can occur if `w' ends up in MAKEFLAGS.
2628# In particular we don't look at `^make:' because GNU make might
2629# be invoked under some other name (usually "gmake"), in which
2630# case it prints its new name instead of `make'.
2631if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2632 am__include=include
2633 am__quote=
2634 _am_result=GNU
2635fi
2636# Now try BSD make style include.
2637if test "$am__include" = "#"; then
2638 echo '.include "confinc"' > confmf
2639 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2640 am__include=.include
2641 am__quote="\""
2642 _am_result=BSD
2643 fi
2644fi
2645
2646
a8b2ad8d 2647{ echo "$as_me:$LINENO: result: $_am_result" >&5
2648echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2649rm -f confinc confmf
2650
a8b2ad8d 2651# Check whether --enable-dependency-tracking was given.
ec1a68c8 2652if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2653 enableval=$enable_dependency_tracking;
2654fi
ec1a68c8 2655
ec1a68c8 2656if test "x$enable_dependency_tracking" != xno; then
2657 am_depcomp="$ac_aux_dir/depcomp"
2658 AMDEPBACKSLASH='\'
2659fi
ff3b058a 2660 if test "x$enable_dependency_tracking" != xno; then
ec1a68c8 2661 AMDEP_TRUE=
2662 AMDEP_FALSE='#'
2663else
2664 AMDEP_TRUE='#'
2665 AMDEP_FALSE=
2666fi
2667
2668
b3076f16 2669ac_ext=c
2670ac_cpp='$CPP $CPPFLAGS'
2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2679if test "${ac_cv_prog_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697done
a8b2ad8d 2698IFS=$as_save_IFS
b3076f16 2699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
a8b2ad8d 2704 { echo "$as_me:$LINENO: result: $CC" >&5
2705echo "${ECHO_T}$CC" >&6; }
b3076f16 2706else
a8b2ad8d 2707 { echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6; }
b3076f16 2709fi
2710
a8b2ad8d 2711
b3076f16 2712fi
2713if test -z "$ac_cv_prog_CC"; then
2714 ac_ct_CC=$CC
2715 # Extract the first word of "gcc", so it can be a program name with args.
2716set dummy gcc; ac_word=$2
a8b2ad8d 2717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2732 ac_cv_prog_ac_ct_CC="gcc"
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736done
2737done
a8b2ad8d 2738IFS=$as_save_IFS
b3076f16 2739
2740fi
2741fi
2742ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743if test -n "$ac_ct_CC"; then
a8b2ad8d 2744 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2746else
a8b2ad8d 2747 { echo "$as_me:$LINENO: result: no" >&5
2748echo "${ECHO_T}no" >&6; }
b3076f16 2749fi
2750
a8b2ad8d 2751 if test "x$ac_ct_CC" = x; then
2752 CC=""
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2757whose name does not start with the host triplet. If you think this
2758configuration is useful to you, please write to autoconf@gnu.org." >&5
2759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2760whose name does not start with the host triplet. If you think this
2761configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2762ac_tool_warned=yes ;;
2763esac
2764 CC=$ac_ct_CC
2765 fi
b3076f16 2766else
2767 CC="$ac_cv_prog_CC"
2768fi
2769
2770if test -z "$CC"; then
a8b2ad8d 2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2773set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2776if test "${ac_cv_prog_CC+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2789 ac_cv_prog_CC="${ac_tool_prefix}cc"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794done
a8b2ad8d 2795IFS=$as_save_IFS
b3076f16 2796
2797fi
2798fi
2799CC=$ac_cv_prog_CC
2800if test -n "$CC"; then
a8b2ad8d 2801 { echo "$as_me:$LINENO: result: $CC" >&5
2802echo "${ECHO_T}$CC" >&6; }
b3076f16 2803else
a8b2ad8d 2804 { echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6; }
b3076f16 2806fi
2807
b3076f16 2808
a8b2ad8d 2809 fi
b3076f16 2810fi
2811if test -z "$CC"; then
2812 # Extract the first word of "cc", so it can be a program name with args.
2813set dummy cc; ac_word=$2
a8b2ad8d 2814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2816if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822 ac_prog_rejected=no
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2831 ac_prog_rejected=yes
2832 continue
2833 fi
2834 ac_cv_prog_CC="cc"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839done
a8b2ad8d 2840IFS=$as_save_IFS
b3076f16 2841
2842if test $ac_prog_rejected = yes; then
2843 # We found a bogon in the path, so make sure we never use it.
2844 set dummy $ac_cv_prog_CC
2845 shift
2846 if test $# != 0; then
2847 # We chose a different compiler from the bogus one.
2848 # However, it has the same basename, so the bogon will be chosen
2849 # first if we set CC to just the basename; use the full file name.
2850 shift
2851 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852 fi
2853fi
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
a8b2ad8d 2858 { echo "$as_me:$LINENO: result: $CC" >&5
2859echo "${ECHO_T}$CC" >&6; }
b3076f16 2860else
a8b2ad8d 2861 { echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6; }
b3076f16 2863fi
2864
a8b2ad8d 2865
b3076f16 2866fi
2867if test -z "$CC"; then
2868 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2869 for ac_prog in cl.exe
b3076f16 2870 do
2871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2875if test "${ac_cv_prog_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893done
a8b2ad8d 2894IFS=$as_save_IFS
b3076f16 2895
2896fi
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
a8b2ad8d 2900 { echo "$as_me:$LINENO: result: $CC" >&5
2901echo "${ECHO_T}$CC" >&6; }
b3076f16 2902else
a8b2ad8d 2903 { echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6; }
b3076f16 2905fi
2906
a8b2ad8d 2907
b3076f16 2908 test -n "$CC" && break
2909 done
2910fi
2911if test -z "$CC"; then
2912 ac_ct_CC=$CC
a8b2ad8d 2913 for ac_prog in cl.exe
b3076f16 2914do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916set dummy $ac_prog; ac_word=$2
a8b2ad8d 2917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2919if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2932 ac_cv_prog_ac_ct_CC="$ac_prog"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936done
2937done
a8b2ad8d 2938IFS=$as_save_IFS
b3076f16 2939
2940fi
2941fi
2942ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943if test -n "$ac_ct_CC"; then
a8b2ad8d 2944 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2945echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2946else
a8b2ad8d 2947 { echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6; }
b3076f16 2949fi
2950
a8b2ad8d 2951
b3076f16 2952 test -n "$ac_ct_CC" && break
2953done
2954
a8b2ad8d 2955 if test "x$ac_ct_CC" = x; then
2956 CC=""
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2961whose name does not start with the host triplet. If you think this
2962configuration is useful to you, please write to autoconf@gnu.org." >&5
2963echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2964whose name does not start with the host triplet. If you think this
2965configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2966ac_tool_warned=yes ;;
2967esac
2968 CC=$ac_ct_CC
2969 fi
b3076f16 2970fi
2971
2972fi
2973
2974
2975test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: no acceptable C compiler found in \$PATH
2978See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2980
2981# Provide some information about the compiler.
a8b2ad8d 2982echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2983ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2984{ (ac_try="$ac_compiler --version >&5"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }
a8b2ad8d 2994{ (ac_try="$ac_compiler -v >&5"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }
a8b2ad8d 3004{ (ac_try="$ac_compiler -V >&5"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014
3015cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030ac_clean_files_save=$ac_clean_files
3031ac_clean_files="$ac_clean_files a.out a.exe b.out"
3032# Try to create an executable without -o first, disregard a.out.
3033# It will help us diagnose broken compilers, and finding out an intuition
3034# of exeext.
a8b2ad8d 3035{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3036echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 3037ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 3038#
3039# List of possible output files, starting from the most likely.
3040# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3041# only as a last resort. b.out is created by i960 compilers.
3042ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3043#
3044# The IRIX 6 linker writes into existing files which may not be
3045# executable, retaining their permissions. Remove them first so a
3046# subsequent execution test works.
3047ac_rmfiles=
3048for ac_file in $ac_files
3049do
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3053 esac
3054done
3055rm -f $ac_rmfiles
3056
3057if { (ac_try="$ac_link_default"
3058case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_link_default") 2>&5
b3076f16 3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; then
a8b2ad8d 3067 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3068# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3069# in a Makefile. We should not override ac_cv_exeext if it was cached,
3070# so that the user can short-circuit this test for compilers unknown to
3071# Autoconf.
ff3b058a 3072for ac_file in $ac_files ''
b3076f16 3073do
3074 test -f "$ac_file" || continue
3075 case $ac_file in
a8b2ad8d 3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 3077 ;;
3078 [ab].out )
3079 # We found the default executable, but exeext='' is most
3080 # certainly right.
3081 break;;
3082 *.* )
a8b2ad8d 3083 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084 then :; else
3085 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 fi
3087 # We set ac_cv_exeext here because the later test for it is not
3088 # safe: cross compilers may not add the suffix if given an `-o'
3089 # argument, so we may need to know it at that point already.
3090 # Even if this section looks crufty: it has the advantage of
3091 # actually working.
b3076f16 3092 break;;
3093 * )
3094 break;;
3095 esac
3096done
a8b2ad8d 3097test "$ac_cv_exeext" = no && ac_cv_exeext=
3098
b3076f16 3099else
ff3b058a 3100 ac_file=''
3101fi
3102
3103{ echo "$as_me:$LINENO: result: $ac_file" >&5
3104echo "${ECHO_T}$ac_file" >&6; }
3105if test -z "$ac_file"; then
b3076f16 3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3110See \`config.log' for more details." >&5
3111echo "$as_me: error: C compiler cannot create executables
3112See \`config.log' for more details." >&2;}
3113 { (exit 77); exit 77; }; }
3114fi
3115
3116ac_exeext=$ac_cv_exeext
b3076f16 3117
a8b2ad8d 3118# Check that the compiler produces executables we can run. If not, either
b3076f16 3119# the compiler is broken, or we cross compile.
a8b2ad8d 3120{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3121echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 3122# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3123# If not cross compiling, check that we can run a simple program.
3124if test "$cross_compiling" != yes; then
3125 if { ac_try='./$ac_file'
a8b2ad8d 3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
b3076f16 3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 cross_compiling=no
3136 else
3137 if test "$cross_compiling" = maybe; then
3138 cross_compiling=yes
3139 else
3140 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3141If you meant to cross compile, use \`--host'.
3142See \`config.log' for more details." >&5
3143echo "$as_me: error: cannot run C compiled programs.
3144If you meant to cross compile, use \`--host'.
3145See \`config.log' for more details." >&2;}
3146 { (exit 1); exit 1; }; }
3147 fi
3148 fi
3149fi
a8b2ad8d 3150{ echo "$as_me:$LINENO: result: yes" >&5
3151echo "${ECHO_T}yes" >&6; }
b3076f16 3152
3153rm -f a.out a.exe conftest$ac_cv_exeext b.out
3154ac_clean_files=$ac_clean_files_save
a8b2ad8d 3155# Check that the compiler produces executables we can run. If not, either
b3076f16 3156# the compiler is broken, or we cross compile.
a8b2ad8d 3157{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3158echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3159{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3160echo "${ECHO_T}$cross_compiling" >&6; }
3161
3162{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3163echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3164if { (ac_try="$ac_link"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_link") 2>&5
b3076f16 3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176# work properly (i.e., refer to `conftest.exe'), while it won't with
3177# `rm'.
3178for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
a8b2ad8d 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 3183 break;;
3184 * ) break;;
3185 esac
3186done
3187else
3188 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3189See \`config.log' for more details." >&5
3190echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3191See \`config.log' for more details." >&2;}
3192 { (exit 1); exit 1; }; }
3193fi
3194
3195rm -f conftest$ac_cv_exeext
a8b2ad8d 3196{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3197echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 3198
3199rm -f conftest.$ac_ext
3200EXEEXT=$ac_cv_exeext
3201ac_exeext=$EXEEXT
a8b2ad8d 3202{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3203echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 3204if test "${ac_cv_objext+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207 cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h. */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h. */
3213
3214int
3215main ()
3216{
3217
3218 ;
3219 return 0;
3220}
3221_ACEOF
3222rm -f conftest.o conftest.obj
a8b2ad8d 3223if { (ac_try="$ac_compile"
3224case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
3228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>&5
b3076f16 3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; then
a8b2ad8d 3233 for ac_file in conftest.o conftest.obj conftest.*; do
3234 test -f "$ac_file" || continue;
b3076f16 3235 case $ac_file in
a8b2ad8d 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3238 break;;
3239 esac
3240done
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3246See \`config.log' for more details." >&5
3247echo "$as_me: error: cannot compute suffix of object files: cannot compile
3248See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3250fi
3251
3252rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253fi
a8b2ad8d 3254{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3255echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3256OBJEXT=$ac_cv_objext
3257ac_objext=$OBJEXT
a8b2ad8d 3258{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3259echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3260if test "${ac_cv_c_compiler_gnu+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h. */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h. */
3269
3270int
3271main ()
3272{
3273#ifndef __GNUC__
3274 choke me
3275#endif
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281rm -f conftest.$ac_objext
a8b2ad8d 3282if { (ac_try="$ac_compile"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
b3076f16 3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3294 (exit $ac_status); } && {
3295 test -z "$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 } && test -s conftest.$ac_objext; then
b3076f16 3298 ac_compiler_gnu=yes
3299else
3300 echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
a8b2ad8d 3303 ac_compiler_gnu=no
b3076f16 3304fi
a8b2ad8d 3305
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3307ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309fi
a8b2ad8d 3310{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3312GCC=`test $ac_compiler_gnu = yes && echo yes`
3313ac_test_CFLAGS=${CFLAGS+set}
3314ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3315{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3317if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
a8b2ad8d 3320 ac_save_c_werror_flag=$ac_c_werror_flag
3321 ac_c_werror_flag=yes
3322 ac_cv_prog_cc_g=no
3323 CFLAGS="-g"
3324 cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h. */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
3330
3331int
3332main ()
3333{
3334
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext
3340if { (ac_try="$ac_compile"
3341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest.$ac_objext; then
a8b2ad8d 3356 ac_cv_prog_cc_g=yes
3357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 CFLAGS=""
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368
3369int
3370main ()
3371{
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (ac_try="$ac_compile"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
a8b2ad8d 3394 :
3395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 ac_c_werror_flag=$ac_save_c_werror_flag
3400 CFLAGS="-g"
3401 cat >conftest.$ac_ext <<_ACEOF
b3076f16 3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
3407
3408int
3409main ()
3410{
3411
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
a8b2ad8d 3417if { (ac_try="$ac_compile"
3418case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421esac
3422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_compile") 2>conftest.er1
b3076f16 3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3429 (exit $ac_status); } && {
3430 test -z "$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 } && test -s conftest.$ac_objext; then
b3076f16 3433 ac_cv_prog_cc_g=yes
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
a8b2ad8d 3438
3439fi
3440
3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442fi
3443
3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3445fi
a8b2ad8d 3446
3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3449fi
a8b2ad8d 3450{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3451echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3452if test "$ac_test_CFLAGS" = set; then
3453 CFLAGS=$ac_save_CFLAGS
3454elif test $ac_cv_prog_cc_g = yes; then
3455 if test "$GCC" = yes; then
3456 CFLAGS="-g -O2"
3457 else
3458 CFLAGS="-g"
3459 fi
3460else
3461 if test "$GCC" = yes; then
3462 CFLAGS="-O2"
3463 else
3464 CFLAGS=
3465 fi
3466fi
a8b2ad8d 3467{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3468echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3469if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
a8b2ad8d 3472 ac_cv_prog_cc_c89=no
b3076f16 3473ac_save_CC=$CC
3474cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
3480#include <stdarg.h>
3481#include <stdio.h>
3482#include <sys/types.h>
3483#include <sys/stat.h>
3484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485struct buf { int x; };
3486FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487static char *e (p, i)
3488 char **p;
3489 int i;
3490{
3491 return p[i];
3492}
3493static char *f (char * (*g) (char **, int), char **p, ...)
3494{
3495 char *s;
3496 va_list v;
3497 va_start (v,p);
3498 s = g (p, va_arg (v,int));
3499 va_end (v);
3500 return s;
3501}
3502
3503/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3506 as 'x'. The following induces an error, until -std is added to get
b3076f16 3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3509 that's true only with -std. */
b3076f16 3510int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511
a8b2ad8d 3512/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513 inside strings and character constants. */
3514#define FOO(x) 'x'
3515int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516
b3076f16 3517int test (int i, double x);
3518struct s1 {int (*f) (int a);};
3519struct s2 {int (*f) (double a);};
3520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521int argc;
3522char **argv;
3523int
3524main ()
3525{
3526return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 ;
3528 return 0;
3529}
3530_ACEOF
a8b2ad8d 3531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3533do
3534 CC="$ac_save_CC $ac_arg"
3535 rm -f conftest.$ac_objext
a8b2ad8d 3536if { (ac_try="$ac_compile"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
b3076f16 3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
a8b2ad8d 3552 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
a8b2ad8d 3557
b3076f16 3558fi
a8b2ad8d 3559
3560rm -f core conftest.err conftest.$ac_objext
3561 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3562done
a8b2ad8d 3563rm -f conftest.$ac_ext
b3076f16 3564CC=$ac_save_CC
3565
3566fi
a8b2ad8d 3567# AC_CACHE_VAL
3568case "x$ac_cv_prog_cc_c89" in
3569 x)
3570 { echo "$as_me:$LINENO: result: none needed" >&5
3571echo "${ECHO_T}none needed" >&6; } ;;
3572 xno)
3573 { echo "$as_me:$LINENO: result: unsupported" >&5
3574echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3575 *)
a8b2ad8d 3576 CC="$CC $ac_cv_prog_cc_c89"
3577 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3578echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3579esac
3580
b3076f16 3581
b3076f16 3582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
ec1a68c8 3588depcc="$CC" am_compiler_list=
3589
a8b2ad8d 3590{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3591echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3592if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3596 # We make a subdir and do the tests there. Otherwise we can end up
3597 # making bogus files that we don't know about and never remove. For
3598 # instance it was reported that on HP-UX the gcc test will end up
3599 # making a dummy file named `D' -- because `-MD' means `put the output
3600 # in D'.
3601 mkdir conftest.dir
3602 # Copy depcomp to subdir because otherwise we won't find it if we're
3603 # using a relative directory.
3604 cp "$am_depcomp" conftest.dir
3605 cd conftest.dir
3606 # We will build objects and dependencies in a subdirectory because
3607 # it helps to detect inapplicable dependency modes. For instance
3608 # both Tru64's cc and ICC support -MD to output dependencies as a
3609 # side effect of compilation, but ICC will put the dependencies in
3610 # the current directory while Tru64 will put them in the object
3611 # directory.
3612 mkdir sub
3613
3614 am_cv_CC_dependencies_compiler_type=none
3615 if test "$am_compiler_list" = ""; then
3616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3617 fi
3618 for depmode in $am_compiler_list; do
3619 # Setup a source with many dependencies, because some compilers
3620 # like to wrap large dependency lists on column 80 (with \), and
3621 # we should not choose a depcomp mode which is confused by this.
3622 #
3623 # We need to recreate these files for each test, as the compiler may
3624 # overwrite some of them when testing with obscure command lines.
3625 # This happens at least with the AIX C compiler.
3626 : > sub/conftest.c
3627 for i in 1 2 3 4 5 6; do
3628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630 # Solaris 8's {/usr,}/bin/sh.
3631 touch sub/conftst$i.h
3632 done
3633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3634
3635 case $depmode in
3636 nosideeffect)
3637 # after this tag, mechanisms are not by side-effect, so they'll
3638 # only be used when explicitly requested
3639 if test "x$enable_dependency_tracking" = xyes; then
3640 continue
3641 else
3642 break
3643 fi
3644 ;;
3645 none) break ;;
3646 esac
3647 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3648 # mode. It turns out that the SunPro C++ compiler does not properly
3649 # handle `-M -o', and we need to detect this.
3650 if depmode=$depmode \
3651 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3652 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3653 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3654 >/dev/null 2>conftest.err &&
ff3b058a 3655 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 3656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3657 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3659 # icc doesn't choke on unknown options, it will just issue warnings
3660 # or remarks (even with -Werror). So we grep stderr for any message
3661 # that says an option was ignored or not supported.
3662 # When given -MP, icc 7.0 and 7.1 complain thusly:
3663 # icc: Command line warning: ignoring option '-M'; no argument required
3664 # The diagnosis changed in icc 8.0:
3665 # icc: Command line remark: option '-MP' not supported
3666 if (grep 'ignoring option' conftest.err ||
3667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3668 am_cv_CC_dependencies_compiler_type=$depmode
3669 break
3670 fi
3671 fi
3672 done
3673
3674 cd ..
3675 rm -rf conftest.dir
3676else
3677 am_cv_CC_dependencies_compiler_type=none
3678fi
3679
3680fi
a8b2ad8d 3681{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3682echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3683CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3684
ff3b058a 3685 if
ec1a68c8 3686 test "x$enable_dependency_tracking" != xno \
3687 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3688 am__fastdepCC_TRUE=
3689 am__fastdepCC_FALSE='#'
3690else
3691 am__fastdepCC_TRUE='#'
3692 am__fastdepCC_FALSE=
3693fi
3694
3695
b3076f16 3696
a8b2ad8d 3697{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3698echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3699if test "${ac_cv_type_signal+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708#include <sys/types.h>
3709#include <signal.h>
b3076f16 3710
3711int
3712main ()
3713{
a8b2ad8d 3714return *(signal (0, 0)) (0) == 1;
b3076f16 3715 ;
3716 return 0;
3717}
3718_ACEOF
3719rm -f conftest.$ac_objext
a8b2ad8d 3720if { (ac_try="$ac_compile"
3721case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724esac
3725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_compile") 2>conftest.er1
b3076f16 3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3732 (exit $ac_status); } && {
3733 test -z "$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 } && test -s conftest.$ac_objext; then
a8b2ad8d 3736 ac_cv_type_signal=int
b3076f16 3737else
3738 echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
a8b2ad8d 3741 ac_cv_type_signal=void
b3076f16 3742fi
a8b2ad8d 3743
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3745fi
a8b2ad8d 3746{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3747echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3748
3749cat >>confdefs.h <<_ACEOF
3750#define RETSIGTYPE $ac_cv_type_signal
3751_ACEOF
3752
3753
a8b2ad8d 3754{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3755echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3756if test "${ac_cv_c_const+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765
3766int
3767main ()
3768{
3769/* FIXME: Include the comments suggested by Paul. */
3770#ifndef __cplusplus
3771 /* Ultrix mips cc rejects this. */
3772 typedef int charset[2];
ff3b058a 3773 const charset cs;
b3076f16 3774 /* SunOS 4.1.1 cc rejects this. */
ff3b058a 3775 char const *const *pcpcc;
3776 char **ppc;
b3076f16 3777 /* NEC SVR4.0.2 mips cc rejects this. */
3778 struct point {int x, y;};
3779 static struct point const zero = {0,0};
3780 /* AIX XL C 1.02.0.0 rejects this.
3781 It does not let you subtract one const X* pointer from another in
3782 an arm of an if-expression whose if-part is not a constant
3783 expression */
3784 const char *g = "string";
ff3b058a 3785 pcpcc = &g + (g ? g-g : 0);
b3076f16 3786 /* HPUX 7.0 cc rejects these. */
ff3b058a 3787 ++pcpcc;
3788 ppc = (char**) pcpcc;
3789 pcpcc = (char const *const *) ppc;
b3076f16 3790 { /* SCO 3.2v4 cc rejects this. */
3791 char *t;
3792 char const *s = 0 ? (char *) 0 : (char const *) 0;
3793
3794 *t++ = 0;
a8b2ad8d 3795 if (s) return 0;
b3076f16 3796 }
3797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3798 int x[] = {25, 17};
3799 const int *foo = &x[0];
3800 ++foo;
3801 }
3802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3803 typedef const int *iptr;
3804 iptr p = 0;
3805 ++p;
3806 }
3807 { /* AIX XL C 1.02.0.0 rejects this saying
3808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3809 struct s { int j; const int *ap[3]; };
3810 struct s *b; b->j = 5;
3811 }
3812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3813 const int foo = 10;
a8b2ad8d 3814 if (!foo) return 0;
b3076f16 3815 }
ff3b058a 3816 return !cs[0] && !zero.x;
b3076f16 3817#endif
3818
3819 ;
3820 return 0;
3821}
3822_ACEOF
3823rm -f conftest.$ac_objext
a8b2ad8d 3824if { (ac_try="$ac_compile"
3825case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compile") 2>conftest.er1
b3076f16 3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest.$ac_objext; then
b3076f16 3840 ac_cv_c_const=yes
3841else
3842 echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
a8b2ad8d 3845 ac_cv_c_const=no
b3076f16 3846fi
a8b2ad8d 3847
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3849fi
a8b2ad8d 3850{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3851echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3852if test $ac_cv_c_const = no; then
3853
3854cat >>confdefs.h <<\_ACEOF
3855#define const
3856_ACEOF
3857
3858fi
3859
ff3b058a 3860
3861for ac_prog in gawk mawk nawk awk
3862do
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864set dummy $ac_prog; ac_word=$2
3865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3867if test "${ac_cv_prog_AWK+set}" = set; then
b3076f16 3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 if test -n "$AWK"; then
3871 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3880 ac_cv_prog_AWK="$ac_prog"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884done
3885done
a8b2ad8d 3886IFS=$as_save_IFS
b3076f16 3887
3888fi
3889fi
3890AWK=$ac_cv_prog_AWK
3891if test -n "$AWK"; then
a8b2ad8d 3892 { echo "$as_me:$LINENO: result: $AWK" >&5
3893echo "${ECHO_T}$AWK" >&6; }
b3076f16 3894else
a8b2ad8d 3895 { echo "$as_me:$LINENO: result: no" >&5
3896echo "${ECHO_T}no" >&6; }
b3076f16 3897fi
3898
a8b2ad8d 3899
b3076f16 3900 test -n "$AWK" && break
3901done
3902
3903ac_ext=c
3904ac_cpp='$CPP $CPPFLAGS'
3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3910set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3913if test "${ac_cv_prog_CC+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930done
3931done
a8b2ad8d 3932IFS=$as_save_IFS
b3076f16 3933
3934fi
3935fi
3936CC=$ac_cv_prog_CC
3937if test -n "$CC"; then
a8b2ad8d 3938 { echo "$as_me:$LINENO: result: $CC" >&5
3939echo "${ECHO_T}$CC" >&6; }
b3076f16 3940else
a8b2ad8d 3941 { echo "$as_me:$LINENO: result: no" >&5
3942echo "${ECHO_T}no" >&6; }
b3076f16 3943fi
3944
a8b2ad8d 3945
b3076f16 3946fi
3947if test -z "$ac_cv_prog_CC"; then
3948 ac_ct_CC=$CC
3949 # Extract the first word of "gcc", so it can be a program name with args.
3950set dummy gcc; ac_word=$2
a8b2ad8d 3951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3953if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 if test -n "$ac_ct_CC"; then
3957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3966 ac_cv_prog_ac_ct_CC="gcc"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971done
a8b2ad8d 3972IFS=$as_save_IFS
b3076f16 3973
3974fi
3975fi
3976ac_ct_CC=$ac_cv_prog_ac_ct_CC
3977if test -n "$ac_ct_CC"; then
a8b2ad8d 3978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3979echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3980else
a8b2ad8d 3981 { echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6; }
b3076f16 3983fi
3984
a8b2ad8d 3985 if test "x$ac_ct_CC" = x; then
3986 CC=""
3987 else
3988 case $cross_compiling:$ac_tool_warned in
3989yes:)
3990{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3991whose name does not start with the host triplet. If you think this
3992configuration is useful to you, please write to autoconf@gnu.org." >&5
3993echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3994whose name does not start with the host triplet. If you think this
3995configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 CC=$ac_ct_CC
3999 fi
b3076f16 4000else
4001 CC="$ac_cv_prog_CC"
4002fi
4003
4004if test -z "$CC"; then
a8b2ad8d 4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 4007set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 4008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4010if test "${ac_cv_prog_CC+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4023 ac_cv_prog_CC="${ac_tool_prefix}cc"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028done
a8b2ad8d 4029IFS=$as_save_IFS
b3076f16 4030
4031fi
4032fi
4033CC=$ac_cv_prog_CC
4034if test -n "$CC"; then
a8b2ad8d 4035 { echo "$as_me:$LINENO: result: $CC" >&5
4036echo "${ECHO_T}$CC" >&6; }
b3076f16 4037else
a8b2ad8d 4038 { echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6; }
b3076f16 4040fi
4041
b3076f16 4042
a8b2ad8d 4043 fi
b3076f16 4044fi
4045if test -z "$CC"; then
4046 # Extract the first word of "cc", so it can be a program name with args.
4047set dummy cc; ac_word=$2
a8b2ad8d 4048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4050if test "${ac_cv_prog_CC+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055else
4056 ac_prog_rejected=no
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4065 ac_prog_rejected=yes
4066 continue
4067 fi
4068 ac_cv_prog_CC="cc"
4069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073done
a8b2ad8d 4074IFS=$as_save_IFS
b3076f16 4075
4076if test $ac_prog_rejected = yes; then
4077 # We found a bogon in the path, so make sure we never use it.
4078 set dummy $ac_cv_prog_CC
4079 shift
4080 if test $# != 0; then
4081 # We chose a different compiler from the bogus one.
4082 # However, it has the same basename, so the bogon will be chosen
4083 # first if we set CC to just the basename; use the full file name.
4084 shift
4085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4086 fi
4087fi
4088fi
4089fi
4090CC=$ac_cv_prog_CC
4091if test -n "$CC"; then
a8b2ad8d 4092 { echo "$as_me:$LINENO: result: $CC" >&5
4093echo "${ECHO_T}$CC" >&6; }
b3076f16 4094else
a8b2ad8d 4095 { echo "$as_me:$LINENO: result: no" >&5
4096echo "${ECHO_T}no" >&6; }
b3076f16 4097fi
4098
a8b2ad8d 4099
b3076f16 4100fi
4101if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4103 for ac_prog in cl.exe
b3076f16 4104 do
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 4107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4109if test "${ac_cv_prog_CC+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126done
4127done
a8b2ad8d 4128IFS=$as_save_IFS
b3076f16 4129
4130fi
4131fi
4132CC=$ac_cv_prog_CC
4133if test -n "$CC"; then
a8b2ad8d 4134 { echo "$as_me:$LINENO: result: $CC" >&5
4135echo "${ECHO_T}$CC" >&6; }
b3076f16 4136else
a8b2ad8d 4137 { echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6; }
b3076f16 4139fi
4140
a8b2ad8d 4141
b3076f16 4142 test -n "$CC" && break
4143 done
4144fi
4145if test -z "$CC"; then
4146 ac_ct_CC=$CC
a8b2ad8d 4147 for ac_prog in cl.exe
b3076f16 4148do
4149 # Extract the first word of "$ac_prog", so it can be a program name with args.
4150set dummy $ac_prog; ac_word=$2
a8b2ad8d 4151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4153if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 if test -n "$ac_ct_CC"; then
4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4166 ac_cv_prog_ac_ct_CC="$ac_prog"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171done
a8b2ad8d 4172IFS=$as_save_IFS
b3076f16 4173
4174fi
4175fi
4176ac_ct_CC=$ac_cv_prog_ac_ct_CC
4177if test -n "$ac_ct_CC"; then
a8b2ad8d 4178 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4179echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4180else
a8b2ad8d 4181 { echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6; }
b3076f16 4183fi
4184
a8b2ad8d 4185
b3076f16 4186 test -n "$ac_ct_CC" && break
4187done
4188
a8b2ad8d 4189 if test "x$ac_ct_CC" = x; then
4190 CC=""
4191 else
4192 case $cross_compiling:$ac_tool_warned in
4193yes:)
4194{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4195whose name does not start with the host triplet. If you think this
4196configuration is useful to you, please write to autoconf@gnu.org." >&5
4197echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4198whose name does not start with the host triplet. If you think this
4199configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4200ac_tool_warned=yes ;;
4201esac
4202 CC=$ac_ct_CC
4203 fi
b3076f16 4204fi
4205
4206fi
4207
4208
4209test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4210See \`config.log' for more details." >&5
4211echo "$as_me: error: no acceptable C compiler found in \$PATH
4212See \`config.log' for more details." >&2;}
4213 { (exit 1); exit 1; }; }
4214
4215# Provide some information about the compiler.
a8b2ad8d 4216echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4217ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4218{ (ac_try="$ac_compiler --version >&5"
4219case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }
a8b2ad8d 4228{ (ac_try="$ac_compiler -v >&5"
4229case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }
a8b2ad8d 4238{ (ac_try="$ac_compiler -V >&5"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }
4248
a8b2ad8d 4249{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4250echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4251if test "${ac_cv_c_compiler_gnu+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
4260
4261int
4262main ()
4263{
4264#ifndef __GNUC__
4265 choke me
4266#endif
4267
4268 ;
4269 return 0;
4270}
4271_ACEOF
4272rm -f conftest.$ac_objext
a8b2ad8d 4273if { (ac_try="$ac_compile"
4274case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
b3076f16 4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest.$ac_objext; then
b3076f16 4289 ac_compiler_gnu=yes
4290else
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
a8b2ad8d 4294 ac_compiler_gnu=no
b3076f16 4295fi
a8b2ad8d 4296
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4298ac_cv_c_compiler_gnu=$ac_compiler_gnu
4299
4300fi
a8b2ad8d 4301{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4302echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4303GCC=`test $ac_compiler_gnu = yes && echo yes`
4304ac_test_CFLAGS=${CFLAGS+set}
4305ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4306{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4307echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4308if test "${ac_cv_prog_cc_g+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
a8b2ad8d 4311 ac_save_c_werror_flag=$ac_c_werror_flag
4312 ac_c_werror_flag=yes
4313 ac_cv_prog_cc_g=no
4314 CFLAGS="-g"
4315 cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321
4322int
4323main ()
4324{
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext
4331if { (ac_try="$ac_compile"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest.$ac_objext; then
a8b2ad8d 4347 ac_cv_prog_cc_g=yes
4348else
4349 echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 CFLAGS=""
4353 cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */
4359
4360int
4361main ()
4362{
4363
4364 ;
4365 return 0;
4366}
4367_ACEOF
4368rm -f conftest.$ac_objext
4369if { (ac_try="$ac_compile"
4370case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_compile") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 4381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest.$ac_objext; then
a8b2ad8d 4385 :
4386else
4387 echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391 CFLAGS="-g"
4392 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
4398
4399int
4400main ()
4401{
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407rm -f conftest.$ac_objext
a8b2ad8d 4408if { (ac_try="$ac_compile"
4409case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_compile") 2>conftest.er1
b3076f16 4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest.$ac_objext; then
b3076f16 4424 ac_cv_prog_cc_g=yes
4425else
4426 echo "$as_me: failed program was:" >&5
4427sed 's/^/| /' conftest.$ac_ext >&5
4428
a8b2ad8d 4429
4430fi
4431
4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433fi
4434
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4436fi
a8b2ad8d 4437
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4440fi
a8b2ad8d 4441{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4442echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4443if test "$ac_test_CFLAGS" = set; then
4444 CFLAGS=$ac_save_CFLAGS
4445elif test $ac_cv_prog_cc_g = yes; then
4446 if test "$GCC" = yes; then
4447 CFLAGS="-g -O2"
4448 else
4449 CFLAGS="-g"
4450 fi
4451else
4452 if test "$GCC" = yes; then
4453 CFLAGS="-O2"
4454 else
4455 CFLAGS=
4456 fi
4457fi
a8b2ad8d 4458{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4459echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4460if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
a8b2ad8d 4463 ac_cv_prog_cc_c89=no
b3076f16 4464ac_save_CC=$CC
4465cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471#include <stdarg.h>
4472#include <stdio.h>
4473#include <sys/types.h>
4474#include <sys/stat.h>
4475/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4476struct buf { int x; };
4477FILE * (*rcsopen) (struct buf *, struct stat *, int);
4478static char *e (p, i)
4479 char **p;
4480 int i;
4481{
4482 return p[i];
4483}
4484static char *f (char * (*g) (char **, int), char **p, ...)
4485{
4486 char *s;
4487 va_list v;
4488 va_start (v,p);
4489 s = g (p, va_arg (v,int));
4490 va_end (v);
4491 return s;
4492}
4493
4494/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4495 function prototypes and stuff, but not '\xHH' hex character constants.
4496 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4497 as 'x'. The following induces an error, until -std is added to get
b3076f16 4498 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4499 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4500 that's true only with -std. */
b3076f16 4501int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4502
a8b2ad8d 4503/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4504 inside strings and character constants. */
4505#define FOO(x) 'x'
4506int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4507
b3076f16 4508int test (int i, double x);
4509struct s1 {int (*f) (int a);};
4510struct s2 {int (*f) (double a);};
4511int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4512int argc;
4513char **argv;
4514int
4515main ()
4516{
4517return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4518 ;
4519 return 0;
4520}
4521_ACEOF
a8b2ad8d 4522for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4523 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4524do
4525 CC="$ac_save_CC $ac_arg"
4526 rm -f conftest.$ac_objext
a8b2ad8d 4527if { (ac_try="$ac_compile"
4528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
b3076f16 4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 4539 (exit $ac_status); } && {
4540 test -z "$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 } && test -s conftest.$ac_objext; then
a8b2ad8d 4543 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4544else
4545 echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
a8b2ad8d 4548
b3076f16 4549fi
a8b2ad8d 4550
4551rm -f core conftest.err conftest.$ac_objext
4552 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4553done
a8b2ad8d 4554rm -f conftest.$ac_ext
b3076f16 4555CC=$ac_save_CC
4556
4557fi
a8b2ad8d 4558# AC_CACHE_VAL
4559case "x$ac_cv_prog_cc_c89" in
4560 x)
4561 { echo "$as_me:$LINENO: result: none needed" >&5
4562echo "${ECHO_T}none needed" >&6; } ;;
4563 xno)
4564 { echo "$as_me:$LINENO: result: unsupported" >&5
4565echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4566 *)
a8b2ad8d 4567 CC="$CC $ac_cv_prog_cc_c89"
4568 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4569echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4570esac
4571
b3076f16 4572
b3076f16 4573ac_ext=c
4574ac_cpp='$CPP $CPPFLAGS'
4575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
ec1a68c8 4579depcc="$CC" am_compiler_list=
4580
a8b2ad8d 4581{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4582echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4583if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4587 # We make a subdir and do the tests there. Otherwise we can end up
4588 # making bogus files that we don't know about and never remove. For
4589 # instance it was reported that on HP-UX the gcc test will end up
4590 # making a dummy file named `D' -- because `-MD' means `put the output
4591 # in D'.
4592 mkdir conftest.dir
4593 # Copy depcomp to subdir because otherwise we won't find it if we're
4594 # using a relative directory.
4595 cp "$am_depcomp" conftest.dir
4596 cd conftest.dir
4597 # We will build objects and dependencies in a subdirectory because
4598 # it helps to detect inapplicable dependency modes. For instance
4599 # both Tru64's cc and ICC support -MD to output dependencies as a
4600 # side effect of compilation, but ICC will put the dependencies in
4601 # the current directory while Tru64 will put them in the object
4602 # directory.
4603 mkdir sub
4604
4605 am_cv_CC_dependencies_compiler_type=none
4606 if test "$am_compiler_list" = ""; then
4607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4608 fi
4609 for depmode in $am_compiler_list; do
4610 # Setup a source with many dependencies, because some compilers
4611 # like to wrap large dependency lists on column 80 (with \), and
4612 # we should not choose a depcomp mode which is confused by this.
4613 #
4614 # We need to recreate these files for each test, as the compiler may
4615 # overwrite some of them when testing with obscure command lines.
4616 # This happens at least with the AIX C compiler.
4617 : > sub/conftest.c
4618 for i in 1 2 3 4 5 6; do
4619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4620 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4621 # Solaris 8's {/usr,}/bin/sh.
4622 touch sub/conftst$i.h
4623 done
4624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4625
4626 case $depmode in
4627 nosideeffect)
4628 # after this tag, mechanisms are not by side-effect, so they'll
4629 # only be used when explicitly requested
4630 if test "x$enable_dependency_tracking" = xyes; then
4631 continue
4632 else
4633 break
4634 fi
4635 ;;
4636 none) break ;;
4637 esac
4638 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4639 # mode. It turns out that the SunPro C++ compiler does not properly
4640 # handle `-M -o', and we need to detect this.
4641 if depmode=$depmode \
4642 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4643 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4645 >/dev/null 2>conftest.err &&
ff3b058a 4646 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ec1a68c8 4647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650 # icc doesn't choke on unknown options, it will just issue warnings
4651 # or remarks (even with -Werror). So we grep stderr for any message
4652 # that says an option was ignored or not supported.
4653 # When given -MP, icc 7.0 and 7.1 complain thusly:
4654 # icc: Command line warning: ignoring option '-M'; no argument required
4655 # The diagnosis changed in icc 8.0:
4656 # icc: Command line remark: option '-MP' not supported
4657 if (grep 'ignoring option' conftest.err ||
4658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659 am_cv_CC_dependencies_compiler_type=$depmode
4660 break
4661 fi
4662 fi
4663 done
4664
4665 cd ..
4666 rm -rf conftest.dir
4667else
4668 am_cv_CC_dependencies_compiler_type=none
4669fi
4670
4671fi
a8b2ad8d 4672{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4673echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4674CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4675
ff3b058a 4676 if
ec1a68c8 4677 test "x$enable_dependency_tracking" != xno \
4678 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4679 am__fastdepCC_TRUE=
4680 am__fastdepCC_FALSE='#'
4681else
4682 am__fastdepCC_TRUE='#'
4683 am__fastdepCC_FALSE=
4684fi
4685
4686
b3076f16 4687# Find a good install program. We prefer a C program (faster),
4688# so one script is as good as another. But avoid the broken or
4689# incompatible versions:
4690# SysV /etc/install, /usr/sbin/install
4691# SunOS /usr/etc/install
4692# IRIX /sbin/install
4693# AIX /bin/install
4694# AmigaOS /C/install, which installs bootblocks on floppy discs
4695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4696# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4698# OS/2's system install, which has a completely different semantic
4699# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4700{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4701echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4702if test -z "$INSTALL"; then
4703if test "${ac_cv_path_install+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 # Account for people who put trailing slashes in PATH elements.
4712case $as_dir/ in
4713 ./ | .// | /cC/* | \
4714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4715 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4716 /usr/ucb/* ) ;;
4717 *)
4718 # OSF1 and SCO ODT 3.0 have their own names for install.
4719 # Don't use installbsd from OSF since it installs stuff as root
4720 # by default.
4721 for ac_prog in ginstall scoinst install; do
4722 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4723 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4724 if test $ac_prog = install &&
4725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4726 # AIX install. It has an incompatible calling convention.
4727 :
4728 elif test $ac_prog = install &&
4729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4730 # program-specific install script used by HP pwplus--don't use.
4731 :
4732 else
4733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4734 break 3
4735 fi
4736 fi
4737 done
4738 done
4739 ;;
4740esac
4741done
a8b2ad8d 4742IFS=$as_save_IFS
b3076f16 4743
4744
4745fi
4746 if test "${ac_cv_path_install+set}" = set; then
4747 INSTALL=$ac_cv_path_install
4748 else
a8b2ad8d 4749 # As a last resort, use the slow shell script. Don't cache a
4750 # value for INSTALL within a source directory, because that will
b3076f16 4751 # break other packages using the cache if that directory is
a8b2ad8d 4752 # removed, or if the value is a relative name.
b3076f16 4753 INSTALL=$ac_install_sh
4754 fi
4755fi
a8b2ad8d 4756{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4757echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4758
4759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4760# It thinks the first close brace ends the variable substitution.
4761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4762
4763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4764
4765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4766
35305a49 4767if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4769set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4772if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
35305a49 4775 if test -n "$RANLIB"; then
4776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4777else
2f61d1d7 4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
35305a49 4783 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
2f61d1d7 4788 fi
35305a49 4789done
2f61d1d7 4790done
a8b2ad8d 4791IFS=$as_save_IFS
2f61d1d7 4792
b3076f16 4793fi
35305a49 4794fi
4795RANLIB=$ac_cv_prog_RANLIB
4796if test -n "$RANLIB"; then
a8b2ad8d 4797 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4798echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4799else
a8b2ad8d 4800 { echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6; }
2f61d1d7 4802fi
2f61d1d7 4803
a8b2ad8d 4804
b3076f16 4805fi
35305a49 4806if test -z "$ac_cv_prog_RANLIB"; then
4807 ac_ct_RANLIB=$RANLIB
4808 # Extract the first word of "ranlib", so it can be a program name with args.
4809set dummy ranlib; ac_word=$2
a8b2ad8d 4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4812if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
35305a49 4815 if test -n "$ac_ct_RANLIB"; then
4816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4817else
35305a49 4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4825 ac_cv_prog_ac_ct_RANLIB="ranlib"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830done
a8b2ad8d 4831IFS=$as_save_IFS
35305a49 4832
b3076f16 4833fi
2f61d1d7 4834fi
35305a49 4835ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4836if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4837 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4838echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4839else
a8b2ad8d 4840 { echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6; }
b3076f16 4842fi
4843
a8b2ad8d 4844 if test "x$ac_ct_RANLIB" = x; then
4845 RANLIB=":"
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848yes:)
4849{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4850whose name does not start with the host triplet. If you think this
4851configuration is useful to you, please write to autoconf@gnu.org." >&5
4852echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4853whose name does not start with the host triplet. If you think this
4854configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4855ac_tool_warned=yes ;;
4856esac
4857 RANLIB=$ac_ct_RANLIB
4858 fi
2f61d1d7 4859else
35305a49 4860 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4861fi
2f61d1d7 4862
ff3b058a 4863# Check whether --enable-shared was given.
4864if test "${enable_shared+set}" = set; then
4865 enableval=$enable_shared; p=${PACKAGE-default}
4866 case $enableval in
4867 yes) enable_shared=yes ;;
4868 no) enable_shared=no ;;
4869 *)
4870 enable_shared=no
4871 # Look at the argument we got. We use all the common list separators.
4872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4873 for pkg in $enableval; do
4874 IFS="$lt_save_ifs"
4875 if test "X$pkg" = "X$p"; then
4876 enable_shared=yes
4877 fi
4878 done
4879 IFS="$lt_save_ifs"
4880 ;;
4881 esac
2f61d1d7 4882else
ff3b058a 4883 enable_shared=yes
2f61d1d7 4884fi
4885
ff3b058a 4886
4887# Check whether --enable-static was given.
4888if test "${enable_static+set}" = set; then
4889 enableval=$enable_static; p=${PACKAGE-default}
4890 case $enableval in
4891 yes) enable_static=yes ;;
4892 no) enable_static=no ;;
4893 *)
4894 enable_static=no
4895 # Look at the argument we got. We use all the common list separators.
4896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4897 for pkg in $enableval; do
4898 IFS="$lt_save_ifs"
4899 if test "X$pkg" = "X$p"; then
4900 enable_static=yes
4901 fi
4902 done
4903 IFS="$lt_save_ifs"
4904 ;;
4905 esac
2f61d1d7 4906else
ff3b058a 4907 enable_static=yes
35305a49 4908fi
ff3b058a 4909
4910
4911# Check whether --enable-fast-install was given.
4912if test "${enable_fast_install+set}" = set; then
4913 enableval=$enable_fast_install; p=${PACKAGE-default}
4914 case $enableval in
4915 yes) enable_fast_install=yes ;;
4916 no) enable_fast_install=no ;;
4917 *)
4918 enable_fast_install=no
4919 # Look at the argument we got. We use all the common list separators.
4920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4921 for pkg in $enableval; do
4922 IFS="$lt_save_ifs"
4923 if test "X$pkg" = "X$p"; then
4924 enable_fast_install=yes
4925 fi
4926 done
4927 IFS="$lt_save_ifs"
4928 ;;
4929 esac
35305a49 4930else
ff3b058a 4931 enable_fast_install=yes
2f61d1d7 4932fi
2f61d1d7 4933
ff3b058a 4934
4935{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4936echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4937if test "${lt_cv_path_SED+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 # Loop through the user's path and test for sed and gsed.
4941# Then use that list of sed's as ones to test for truncation.
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for lt_ac_prog in sed gsed; do
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4950 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4951 fi
4952 done
4953 done
4954done
4955IFS=$as_save_IFS
4956lt_ac_max=0
4957lt_ac_count=0
4958# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4959# along with /bin/sed that truncates output.
4960for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4961 test ! -f $lt_ac_sed && continue
4962 cat /dev/null > conftest.in
4963 lt_ac_count=0
4964 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4965 # Check for GNU sed and select it if it is found.
4966 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4967 lt_cv_path_SED=$lt_ac_sed
4968 break
4969 fi
4970 while true; do
4971 cat conftest.in conftest.in >conftest.tmp
4972 mv conftest.tmp conftest.in
4973 cp conftest.in conftest.nl
4974 echo >>conftest.nl
4975 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4976 cmp -s conftest.out conftest.nl || break
4977 # 10000 chars as input seems more than enough
4978 test $lt_ac_count -gt 10 && break
4979 lt_ac_count=`expr $lt_ac_count + 1`
4980 if test $lt_ac_count -gt $lt_ac_max; then
4981 lt_ac_max=$lt_ac_count
4982 lt_cv_path_SED=$lt_ac_sed
4983 fi
4984 done
4985done
4986
2f61d1d7 4987fi
ff3b058a 4988
4989SED=$lt_cv_path_SED
4990
4991{ echo "$as_me:$LINENO: result: $SED" >&5
4992echo "${ECHO_T}$SED" >&6; }
4993
4994{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4995echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4996if test "${ac_cv_path_GREP+set}" = set; then
2f61d1d7 4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
ff3b058a 4999 # Extract the first word of "grep ggrep" to use in msg output
5000if test -z "$GREP"; then
5001set dummy grep ggrep; ac_prog_name=$2
5002if test "${ac_cv_path_GREP+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 ac_path_GREP_found=false
5006# Loop through the user's path and test for each of PROGNAME-LIST
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
a8b2ad8d 5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_prog in grep ggrep; do
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
ff3b058a 5015 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
a8b2ad8d 5016 # Check for GNU ac_path_GREP and select it if it is found.
5017 # Check for GNU $ac_path_GREP
5018case `"$ac_path_GREP" --version 2>&1` in
5019*GNU*)
5020 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5021*)
5022 ac_count=0
5023 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5024 while :
5025 do
5026 cat "conftest.in" "conftest.in" >"conftest.tmp"
5027 mv "conftest.tmp" "conftest.in"
5028 cp "conftest.in" "conftest.nl"
5029 echo 'GREP' >> "conftest.nl"
5030 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5032 ac_count=`expr $ac_count + 1`
5033 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5034 # Best one so far, save it but keep looking for a better one
5035 ac_cv_path_GREP="$ac_path_GREP"
5036 ac_path_GREP_max=$ac_count
5037 fi
5038 # 10*(2^10) chars as input seems more than enough
5039 test $ac_count -gt 10 && break
5040 done
5041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042esac
5043
5044
5045 $ac_path_GREP_found && break 3
5046 done
5047done
5048
5049done
5050IFS=$as_save_IFS
5051
5052
5053fi
5054
5055GREP="$ac_cv_path_GREP"
5056if test -z "$GREP"; then
5057 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5058echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5059 { (exit 1); exit 1; }; }
5060fi
5061
5062else
5063 ac_cv_path_GREP=$GREP
5064fi
5065
5066
5067fi
5068{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5069echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5070 GREP="$ac_cv_path_GREP"
5071
5072
5073{ echo "$as_me:$LINENO: checking for egrep" >&5
5074echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5075if test "${ac_cv_path_EGREP+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5079 then ac_cv_path_EGREP="$GREP -E"
5080 else
5081 # Extract the first word of "egrep" to use in msg output
5082if test -z "$EGREP"; then
5083set dummy egrep; ac_prog_name=$2
5084if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
a8b2ad8d 5087 ac_path_EGREP_found=false
5088# Loop through the user's path and test for each of PROGNAME-LIST
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5091do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_prog in egrep; do
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
ff3b058a 5097 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
a8b2ad8d 5098 # Check for GNU ac_path_EGREP and select it if it is found.
5099 # Check for GNU $ac_path_EGREP
5100case `"$ac_path_EGREP" --version 2>&1` in
5101*GNU*)
5102 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5103*)
5104 ac_count=0
5105 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5106 while :
5107 do
5108 cat "conftest.in" "conftest.in" >"conftest.tmp"
5109 mv "conftest.tmp" "conftest.in"
5110 cp "conftest.in" "conftest.nl"
5111 echo 'EGREP' >> "conftest.nl"
5112 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5114 ac_count=`expr $ac_count + 1`
5115 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5116 # Best one so far, save it but keep looking for a better one
5117 ac_cv_path_EGREP="$ac_path_EGREP"
5118 ac_path_EGREP_max=$ac_count
35305a49 5119 fi
a8b2ad8d 5120 # 10*(2^10) chars as input seems more than enough
5121 test $ac_count -gt 10 && break
5122 done
5123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5124esac
5125
5126
5127 $ac_path_EGREP_found && break 3
5128 done
5129done
5130
5131done
5132IFS=$as_save_IFS
5133
5134
5135fi
5136
ff3b058a 5137EGREP="$ac_cv_path_EGREP"
5138if test -z "$EGREP"; then
5139 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5140echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5141 { (exit 1); exit 1; }; }
5142fi
5143
5144else
5145 ac_cv_path_EGREP=$EGREP
5146fi
5147
5148
5149 fi
5150fi
5151{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5152echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5153 EGREP="$ac_cv_path_EGREP"
5154
5155
5156
5157# Check whether --with-gnu-ld was given.
5158if test "${with_gnu_ld+set}" = set; then
5159 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5160else
5161 with_gnu_ld=no
5162fi
5163
5164ac_prog=ld
5165if test "$GCC" = yes; then
5166 # Check if gcc -print-prog-name=ld gives a path.
5167 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5168echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5169 case $host in
5170 *-*-mingw*)
5171 # gcc leaves a trailing carriage return which upsets mingw
5172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5173 *)
5174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5175 esac
5176 case $ac_prog in
5177 # Accept absolute paths.
5178 [\\/]* | ?:[\\/]*)
5179 re_direlt='/[^/][^/]*/\.\./'
5180 # Canonicalize the pathname of ld
5181 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5183 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5184 done
5185 test -z "$LD" && LD="$ac_prog"
5186 ;;
5187 "")
5188 # If it fails, then pretend we aren't using GCC.
5189 ac_prog=ld
5190 ;;
5191 *)
5192 # If it is relative, then search for the first ld in PATH.
5193 with_gnu_ld=unknown
5194 ;;
5195 esac
5196elif test "$with_gnu_ld" = yes; then
5197 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5198echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5199else
5200 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5201echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5202fi
5203if test "${lt_cv_path_LD+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 if test -z "$LD"; then
5207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5208 for ac_dir in $PATH; do
5209 IFS="$lt_save_ifs"
5210 test -z "$ac_dir" && ac_dir=.
5211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5212 lt_cv_path_LD="$ac_dir/$ac_prog"
5213 # Check to see if the program is GNU ld. I'd rather use --version,
5214 # but apparently some variants of GNU ld only accept -v.
5215 # Break only if it was the GNU/non-GNU ld that we prefer.
5216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218 test "$with_gnu_ld" != no && break
5219 ;;
5220 *)
5221 test "$with_gnu_ld" != yes && break
5222 ;;
5223 esac
5224 fi
5225 done
5226 IFS="$lt_save_ifs"
5227else
5228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5229fi
5230fi
5231
5232LD="$lt_cv_path_LD"
5233if test -n "$LD"; then
5234 { echo "$as_me:$LINENO: result: $LD" >&5
5235echo "${ECHO_T}$LD" >&6; }
5236else
5237 { echo "$as_me:$LINENO: result: no" >&5
5238echo "${ECHO_T}no" >&6; }
5239fi
5240test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5241echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5242 { (exit 1); exit 1; }; }
5243{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5244echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5245if test "${lt_cv_prog_gnu_ld+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5249case `$LD -v 2>&1 </dev/null` in
5250*GNU* | *'with BFD'*)
5251 lt_cv_prog_gnu_ld=yes
5252 ;;
5253*)
5254 lt_cv_prog_gnu_ld=no
5255 ;;
5256esac
5257fi
5258{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5259echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5260with_gnu_ld=$lt_cv_prog_gnu_ld
5261
5262
5263{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5264echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5265if test "${lt_cv_ld_reload_flag+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 lt_cv_ld_reload_flag='-r'
5269fi
5270{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5271echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5272reload_flag=$lt_cv_ld_reload_flag
5273case $reload_flag in
5274"" | " "*) ;;
5275*) reload_flag=" $reload_flag" ;;
5276esac
5277reload_cmds='$LD$reload_flag -o $output$reload_objs'
5278case $host_os in
5279 darwin*)
5280 if test "$GCC" = yes; then
5281 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5282 else
5283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5284 fi
5285 ;;
5286esac
5287
5288{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5289echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5290if test "${lt_cv_path_NM+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293 if test -n "$NM"; then
5294 # Let the user override the test.
5295 lt_cv_path_NM="$NM"
5296else
5297 lt_nm_to_check="${ac_tool_prefix}nm"
5298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5299 lt_nm_to_check="$lt_nm_to_check nm"
5300 fi
5301 for lt_tmp_nm in $lt_nm_to_check; do
5302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5304 IFS="$lt_save_ifs"
5305 test -z "$ac_dir" && ac_dir=.
5306 tmp_nm="$ac_dir/$lt_tmp_nm"
5307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5308 # Check to see if the nm accepts a BSD-compat flag.
5309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5310 # nm: unknown option "B" ignored
5311 # Tru64's nm complains that /dev/null is an invalid object file
5312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5313 */dev/null* | *'Invalid file or object type'*)
5314 lt_cv_path_NM="$tmp_nm -B"
5315 break
5316 ;;
5317 *)
5318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5319 */dev/null*)
5320 lt_cv_path_NM="$tmp_nm -p"
5321 break
5322 ;;
5323 *)
5324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5325 continue # so that we can try to find one that supports BSD flags
5326 ;;
5327 esac
5328 ;;
5329 esac
5330 fi
5331 done
5332 IFS="$lt_save_ifs"
5333 done
5334 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5335fi
5336fi
5337{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5338echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5339NM="$lt_cv_path_NM"
5340
5341{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5342echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5343LN_S=$as_ln_s
5344if test "$LN_S" = "ln -s"; then
5345 { echo "$as_me:$LINENO: result: yes" >&5
5346echo "${ECHO_T}yes" >&6; }
5347else
5348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5349echo "${ECHO_T}no, using $LN_S" >&6; }
5350fi
5351
5352{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5353echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5354if test "${lt_cv_deplibs_check_method+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 lt_cv_file_magic_cmd='$MAGIC_CMD'
5358lt_cv_file_magic_test_file=
5359lt_cv_deplibs_check_method='unknown'
5360# Need to set the preceding variable on all platforms that support
5361# interlibrary dependencies.
5362# 'none' -- dependencies not supported.
5363# `unknown' -- same as none, but documents that we really don't know.
5364# 'pass_all' -- all dependencies passed with no checks.
5365# 'test_compile' -- check by making test program.
5366# 'file_magic [[regex]]' -- check by looking for files in library path
5367# which responds to the $file_magic_cmd with a given extended regex.
5368# If you have `file' or equivalent on your system and you're not sure
5369# whether `pass_all' will *always* work, you probably want this one.
5370
5371case $host_os in
5372aix4* | aix5*)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375
5376beos*)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379
5380bsdi[45]*)
5381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5382 lt_cv_file_magic_cmd='/usr/bin/file -L'
5383 lt_cv_file_magic_test_file=/shlib/libc.so
5384 ;;
5385
5386cygwin*)
5387 # func_win32_libid is a shell function defined in ltmain.sh
5388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5389 lt_cv_file_magic_cmd='func_win32_libid'
5390 ;;
5391
5392mingw* | pw32*)
5393 # Base MSYS/MinGW do not provide the 'file' command needed by
5394 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5395 # unless we find 'file', for example because we are cross-compiling.
5396 if ( file / ) >/dev/null 2>&1; then
5397 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5398 lt_cv_file_magic_cmd='func_win32_libid'
5399 else
5400 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5401 lt_cv_file_magic_cmd='$OBJDUMP -f'
5402 fi
5403 ;;
5404
5405darwin* | rhapsody*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409freebsd* | dragonfly*)
5410 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5411 case $host_cpu in
5412 i*86 )
5413 # Not sure whether the presence of OpenBSD here was a mistake.
5414 # Let's accept both of them until this is cleared up.
5415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5416 lt_cv_file_magic_cmd=/usr/bin/file
5417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5418 ;;
5419 esac
5420 else
5421 lt_cv_deplibs_check_method=pass_all
5422 fi
5423 ;;
5424
5425gnu*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428
5429hpux10.20* | hpux11*)
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 case $host_cpu in
5432 ia64*)
5433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5435 ;;
5436 hppa*64*)
5437 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]'
5438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5439 ;;
5440 *)
5441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5443 ;;
5444 esac
5445 ;;
5446
5447interix[3-9]*)
5448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5450 ;;
5451
5452irix5* | irix6* | nonstopux*)
5453 case $LD in
5454 *-32|*"-32 ") libmagic=32-bit;;
5455 *-n32|*"-n32 ") libmagic=N32;;
5456 *-64|*"-64 ") libmagic=64-bit;;
5457 *) libmagic=never-match;;
5458 esac
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461
5462# This must be Linux ELF.
5463linux* | k*bsd*-gnu)
5464 lt_cv_deplibs_check_method=pass_all
5465 ;;
5466
5467netbsd*)
5468 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5470 else
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5472 fi
5473 ;;
5474
5475newos6*)
5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5479 ;;
5480
5481nto-qnx*)
5482 lt_cv_deplibs_check_method=unknown
5483 ;;
5484
5485openbsd*)
5486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5488 else
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490 fi
5491 ;;
5492
5493osf3* | osf4* | osf5*)
5494 lt_cv_deplibs_check_method=pass_all
5495 ;;
5496
5497rdos*)
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
5500
5501solaris*)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505sysv4 | sysv4.3*)
5506 case $host_vendor in
5507 motorola)
5508 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]'
5509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5510 ;;
5511 ncr)
5512 lt_cv_deplibs_check_method=pass_all
5513 ;;
5514 sequent)
5515 lt_cv_file_magic_cmd='/bin/file'
5516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5517 ;;
5518 sni)
5519 lt_cv_file_magic_cmd='/bin/file'
5520 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5521 lt_cv_file_magic_test_file=/lib/libc.so
5522 ;;
5523 siemens)
5524 lt_cv_deplibs_check_method=pass_all
5525 ;;
5526 pc)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529 esac
5530 ;;
5531
5532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535esac
5536
5537fi
5538{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5539echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5540file_magic_cmd=$lt_cv_file_magic_cmd
5541deplibs_check_method=$lt_cv_deplibs_check_method
5542test -z "$deplibs_check_method" && deplibs_check_method=unknown
5543
5544
5545
5546
5547# If no C compiler was specified, use CC.
5548LTCC=${LTCC-"$CC"}
5549
5550# If no C compiler flags were specified, use CFLAGS.
5551LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5552
5553# Allow CC to be a program name with arguments.
5554compiler=$CC
5555
5556# Check whether --enable-libtool-lock was given.
5557if test "${enable_libtool_lock+set}" = set; then
5558 enableval=$enable_libtool_lock;
5559fi
5560
5561test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5562
5563# Some flags need to be propagated to the compiler or linker for good
5564# libtool support.
5565case $host in
5566ia64-*-hpux*)
5567 # Find out which ABI we are using.
5568 echo 'int i;' > conftest.$ac_ext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5570 (eval $ac_compile) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; then
5574 case `/usr/bin/file conftest.$ac_objext` in
5575 *ELF-32*)
5576 HPUX_IA64_MODE="32"
5577 ;;
5578 *ELF-64*)
5579 HPUX_IA64_MODE="64"
5580 ;;
5581 esac
5582 fi
5583 rm -rf conftest*
5584 ;;
5585*-*-irix6*)
5586 # Find out which ABI we are using.
5587 echo '#line 5587 "configure"' > conftest.$ac_ext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 if test "$lt_cv_prog_gnu_ld" = yes; then
5594 case `/usr/bin/file conftest.$ac_objext` in
5595 *32-bit*)
5596 LD="${LD-ld} -melf32bsmip"
5597 ;;
5598 *N32*)
5599 LD="${LD-ld} -melf32bmipn32"
5600 ;;
5601 *64-bit*)
5602 LD="${LD-ld} -melf64bmip"
5603 ;;
5604 esac
5605 else
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *32-bit*)
5608 LD="${LD-ld} -32"
5609 ;;
5610 *N32*)
5611 LD="${LD-ld} -n32"
5612 ;;
5613 *64-bit*)
5614 LD="${LD-ld} -64"
5615 ;;
5616 esac
5617 fi
5618 fi
5619 rm -rf conftest*
5620 ;;
5621
5622x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5623s390*-*linux*|sparc*-*linux*)
5624 # Find out which ABI we are using.
5625 echo 'int i;' > conftest.$ac_ext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; then
5631 case `/usr/bin/file conftest.o` in
5632 *32-bit*)
5633 case $host in
5634 x86_64-*kfreebsd*-gnu)
5635 LD="${LD-ld} -m elf_i386_fbsd"
5636 ;;
5637 x86_64-*linux*)
5638 LD="${LD-ld} -m elf_i386"
5639 ;;
5640 ppc64-*linux*|powerpc64-*linux*)
5641 LD="${LD-ld} -m elf32ppclinux"
5642 ;;
5643 s390x-*linux*)
5644 LD="${LD-ld} -m elf_s390"
5645 ;;
5646 sparc64-*linux*)
5647 LD="${LD-ld} -m elf32_sparc"
5648 ;;
5649 esac
5650 ;;
5651 *64-bit*)
5652 case $host in
5653 x86_64-*kfreebsd*-gnu)
5654 LD="${LD-ld} -m elf_x86_64_fbsd"
5655 ;;
5656 x86_64-*linux*)
5657 LD="${LD-ld} -m elf_x86_64"
5658 ;;
5659 ppc*-*linux*|powerpc*-*linux*)
5660 LD="${LD-ld} -m elf64ppc"
5661 ;;
5662 s390*-*linux*)
5663 LD="${LD-ld} -m elf64_s390"
5664 ;;
5665 sparc*-*linux*)
5666 LD="${LD-ld} -m elf64_sparc"
5667 ;;
5668 esac
5669 ;;
5670 esac
5671 fi
5672 rm -rf conftest*
5673 ;;
5674
5675*-*-sco3.2v5*)
5676 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5677 SAVE_CFLAGS="$CFLAGS"
5678 CFLAGS="$CFLAGS -belf"
5679 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5680echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5681if test "${lt_cv_cc_needs_belf+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 ac_ext=c
5685ac_cpp='$CPP $CPPFLAGS'
5686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689
5690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696
5697int
5698main ()
5699{
5700
5701 ;
5702 return 0;
5703}
5704_ACEOF
5705rm -f conftest.$ac_objext conftest$ac_exeext
5706if { (ac_try="$ac_link"
5707case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_link") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest$ac_exeext &&
5722 $as_test_x conftest$ac_exeext; then
5723 lt_cv_cc_needs_belf=yes
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 lt_cv_cc_needs_belf=no
5729fi
5730
5731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5732 conftest$ac_exeext conftest.$ac_ext
5733 ac_ext=c
5734ac_cpp='$CPP $CPPFLAGS'
5735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738
5739fi
5740{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5741echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5742 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5744 CFLAGS="$SAVE_CFLAGS"
5745 fi
5746 ;;
5747sparc*-*solaris*)
5748 # Find out which ABI we are using.
5749 echo 'int i;' > conftest.$ac_ext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; then
5755 case `/usr/bin/file conftest.o` in
5756 *64-bit*)
5757 case $lt_cv_prog_gnu_ld in
5758 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5759 *) LD="${LD-ld} -64" ;;
5760 esac
5761 ;;
5762 esac
5763 fi
5764 rm -rf conftest*
5765 ;;
5766
5767
5768esac
5769
5770need_locks="$enable_libtool_lock"
5771
5772
5773ac_ext=c
5774ac_cpp='$CPP $CPPFLAGS'
5775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5779echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5780# On Suns, sometimes $CPP names a directory.
5781if test -n "$CPP" && test -d "$CPP"; then
5782 CPP=
5783fi
5784if test -z "$CPP"; then
5785 if test "${ac_cv_prog_CPP+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 # Double quotes because CPP needs to be expanded
5789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5790 do
5791 ac_preproc_ok=false
5792for ac_c_preproc_warn_flag in '' yes
5793do
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806#ifdef __STDC__
5807# include <limits.h>
5808#else
5809# include <assert.h>
5810#endif
5811 Syntax error
5812_ACEOF
5813if { (ac_try="$ac_cpp conftest.$ac_ext"
5814case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 }; then
5829 :
5830else
5831 echo "$as_me: failed program was:" >&5
5832sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 # Broken: fails on valid input.
5835continue
5836fi
5837
5838rm -f conftest.err conftest.$ac_ext
5839
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
5848#include <ac_nonexistent.h>
5849_ACEOF
5850if { (ac_try="$ac_cpp conftest.$ac_ext"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 }; then
5866 # Broken: success on invalid input.
5867continue
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872 # Passes both tests.
5873ac_preproc_ok=:
5874break
5875fi
5876
5877rm -f conftest.err conftest.$ac_ext
5878
5879done
5880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881rm -f conftest.err conftest.$ac_ext
5882if $ac_preproc_ok; then
5883 break
5884fi
5885
5886 done
5887 ac_cv_prog_CPP=$CPP
5888
5889fi
5890 CPP=$ac_cv_prog_CPP
5891else
5892 ac_cv_prog_CPP=$CPP
5893fi
5894{ echo "$as_me:$LINENO: result: $CPP" >&5
5895echo "${ECHO_T}$CPP" >&6; }
5896ac_preproc_ok=false
5897for ac_c_preproc_warn_flag in '' yes
5898do
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h. */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h. */
5911#ifdef __STDC__
5912# include <limits.h>
5913#else
5914# include <assert.h>
5915#endif
5916 Syntax error
5917_ACEOF
5918if { (ac_try="$ac_cpp conftest.$ac_ext"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } >/dev/null && {
5931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 }; then
5934 :
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 # Broken: fails on valid input.
5940continue
5941fi
5942
5943rm -f conftest.err conftest.$ac_ext
5944
5945 # OK, works on sane cases. Now check whether nonexistent headers
5946 # can be detected and how.
5947 cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953#include <ac_nonexistent.h>
5954_ACEOF
5955if { (ac_try="$ac_cpp conftest.$ac_ext"
5956case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 # Broken: success on invalid input.
5972continue
5973else
5974 echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 # Passes both tests.
5978ac_preproc_ok=:
5979break
5980fi
5981
5982rm -f conftest.err conftest.$ac_ext
5983
5984done
5985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986rm -f conftest.err conftest.$ac_ext
5987if $ac_preproc_ok; then
5988 :
5989else
5990 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5991See \`config.log' for more details." >&5
5992echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5993See \`config.log' for more details." >&2;}
5994 { (exit 1); exit 1; }; }
5995fi
5996
5997ac_ext=c
5998ac_cpp='$CPP $CPPFLAGS'
5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001ac_compiler_gnu=$ac_cv_c_compiler_gnu
6002
6003
6004{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6005echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6006if test "${ac_cv_header_stdc+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009 cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h. */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h. */
6015#include <stdlib.h>
6016#include <stdarg.h>
6017#include <string.h>
6018#include <float.h>
6019
6020int
6021main ()
6022{
6023
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 ac_cv_header_stdc=yes
6046else
6047 echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ac_cv_header_stdc=no
6051fi
6052
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054
6055if test $ac_cv_header_stdc = yes; then
6056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063#include <string.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "memchr" >/dev/null 2>&1; then
6068 :
6069else
6070 ac_cv_header_stdc=no
6071fi
6072rm -f conftest*
6073
6074fi
6075
6076if test $ac_cv_header_stdc = yes; then
6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084#include <stdlib.h>
6085
6086_ACEOF
6087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev/null 2>&1; then
6089 :
6090else
6091 ac_cv_header_stdc=no
6092fi
6093rm -f conftest*
6094
6095fi
6096
6097if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then
6100 :
6101else
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108#include <ctype.h>
6109#include <stdlib.h>
6110#if ((' ' & 0x0FF) == 0x020)
6111# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6112# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6113#else
6114# define ISLOWER(c) \
6115 (('a' <= (c) && (c) <= 'i') \
6116 || ('j' <= (c) && (c) <= 'r') \
6117 || ('s' <= (c) && (c) <= 'z'))
6118# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6119#endif
6120
6121#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6122int
6123main ()
6124{
6125 int i;
6126 for (i = 0; i < 256; i++)
6127 if (XOR (islower (i), ISLOWER (i))
6128 || toupper (i) != TOUPPER (i))
6129 return 2;
6130 return 0;
6131}
6132_ACEOF
6133rm -f conftest$ac_exeext
6134if { (ac_try="$ac_link"
6135case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 :
6154else
6155 echo "$as_me: program exited with status $ac_status" >&5
6156echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159( exit $ac_status )
6160ac_cv_header_stdc=no
6161fi
6162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6163fi
6164
6165
6166fi
6167fi
6168{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6169echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6170if test $ac_cv_header_stdc = yes; then
6171
6172cat >>confdefs.h <<\_ACEOF
6173#define STDC_HEADERS 1
6174_ACEOF
6175
6176fi
6177
6178# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6189 inttypes.h stdint.h unistd.h
6190do
6191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 cat >conftest.$ac_ext <<_ACEOF
6198/* confdefs.h. */
6199_ACEOF
6200cat confdefs.h >>conftest.$ac_ext
6201cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h. */
6203$ac_includes_default
6204
6205#include <$ac_header>
6206_ACEOF
6207rm -f conftest.$ac_objext
6208if { (ac_try="$ac_compile"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest.$ac_objext; then
6224 eval "$as_ac_Header=yes"
6225else
6226 echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 eval "$as_ac_Header=no"
6230fi
6231
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233fi
6234ac_res=`eval echo '${'$as_ac_Header'}'`
6235 { echo "$as_me:$LINENO: result: $ac_res" >&5
6236echo "${ECHO_T}$ac_res" >&6; }
6237if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240_ACEOF
6241
6242fi
6243
6244done
6245
6246
6247
6248for ac_header in dlfcn.h
6249do
6250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256fi
6257ac_res=`eval echo '${'$as_ac_Header'}'`
6258 { echo "$as_me:$LINENO: result: $ac_res" >&5
6259echo "${ECHO_T}$ac_res" >&6; }
6260else
6261 # Is the header compilable?
6262{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6264cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h. */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h. */
6270$ac_includes_default
6271#include <$ac_header>
6272_ACEOF
6273rm -f conftest.$ac_objext
6274if { (ac_try="$ac_compile"
6275case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 ac_header_compiler=yes
6291else
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 ac_header_compiler=no
6296fi
6297
6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6300echo "${ECHO_T}$ac_header_compiler" >&6; }
6301
6302# Is the header present?
6303{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6305cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311#include <$ac_header>
6312_ACEOF
6313if { (ac_try="$ac_cpp conftest.$ac_ext"
6314case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } >/dev/null && {
6326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 }; then
6329 ac_header_preproc=yes
6330else
6331 echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 ac_header_preproc=no
6335fi
6336
6337rm -f conftest.err conftest.$ac_ext
6338{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6339echo "${ECHO_T}$ac_header_preproc" >&6; }
6340
6341# So? What about this header?
6342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6343 yes:no: )
6344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6348 ac_header_preproc=yes
6349 ;;
6350 no:yes:* )
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6363 ( cat <<\_ASBOX
6364## -------------------------------------------------- ##
6365## Report this to evilnet-devel@lists.sourceforge.net ##
6366## -------------------------------------------------- ##
6367_ASBOX
6368 ) | sed "s/^/$as_me: WARNING: /" >&2
6369 ;;
6370esac
6371{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 eval "$as_ac_Header=\$ac_header_preproc"
6377fi
6378ac_res=`eval echo '${'$as_ac_Header'}'`
6379 { echo "$as_me:$LINENO: result: $ac_res" >&5
6380echo "${ECHO_T}$ac_res" >&6; }
6381
6382fi
6383if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386_ACEOF
6387
6388fi
6389
6390done
6391
6392ac_ext=cpp
6393ac_cpp='$CXXCPP $CPPFLAGS'
6394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6397if test -z "$CXX"; then
6398 if test -n "$CCC"; then
6399 CXX=$CCC
6400 else
6401 if test -n "$ac_tool_prefix"; then
6402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6403 do
6404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6408if test "${ac_cv_prog_CXX+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411 if test -n "$CXX"; then
6412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425done
6426done
6427IFS=$as_save_IFS
6428
6429fi
6430fi
6431CXX=$ac_cv_prog_CXX
6432if test -n "$CXX"; then
6433 { echo "$as_me:$LINENO: result: $CXX" >&5
6434echo "${ECHO_T}$CXX" >&6; }
6435else
6436 { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
6438fi
6439
6440
6441 test -n "$CXX" && break
6442 done
6443fi
6444if test -z "$CXX"; then
6445 ac_ct_CXX=$CXX
6446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6447do
6448 # Extract the first word of "$ac_prog", so it can be a program name with args.
6449set dummy $ac_prog; ac_word=$2
6450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455 if test -n "$ac_ct_CXX"; then
6456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_ac_ct_CXX="$ac_prog"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469done
6470done
6471IFS=$as_save_IFS
6472
6473fi
6474fi
6475ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6476if test -n "$ac_ct_CXX"; then
6477 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6478echo "${ECHO_T}$ac_ct_CXX" >&6; }
6479else
6480 { echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6; }
6482fi
6483
6484
6485 test -n "$ac_ct_CXX" && break
6486done
6487
6488 if test "x$ac_ct_CXX" = x; then
6489 CXX="g++"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492yes:)
6493{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6494whose name does not start with the host triplet. If you think this
6495configuration is useful to you, please write to autoconf@gnu.org." >&5
6496echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6497whose name does not start with the host triplet. If you think this
6498configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6499ac_tool_warned=yes ;;
6500esac
6501 CXX=$ac_ct_CXX
6502 fi
6503fi
6504
6505 fi
6506fi
6507# Provide some information about the compiler.
6508echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6509ac_compiler=`set X $ac_compile; echo $2`
6510{ (ac_try="$ac_compiler --version >&5"
6511case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514esac
6515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compiler --version >&5") 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }
6520{ (ac_try="$ac_compiler -v >&5"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compiler -v >&5") 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }
6530{ (ac_try="$ac_compiler -V >&5"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_compiler -V >&5") 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }
6540
6541{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6542echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6543if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 cat >conftest.$ac_ext <<_ACEOF
6547/* confdefs.h. */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h. */
6552
6553int
6554main ()
6555{
6556#ifndef __GNUC__
6557 choke me
6558#endif
6559
6560 ;
6561 return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext
6565if { (ac_try="$ac_compile"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && {
6578 test -z "$ac_cxx_werror_flag" ||
6579 test ! -s conftest.err
6580 } && test -s conftest.$ac_objext; then
6581 ac_compiler_gnu=yes
6582else
6583 echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_compiler_gnu=no
6587fi
6588
6589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6591
6592fi
6593{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6594echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6595GXX=`test $ac_compiler_gnu = yes && echo yes`
6596ac_test_CXXFLAGS=${CXXFLAGS+set}
6597ac_save_CXXFLAGS=$CXXFLAGS
6598{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6599echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6600if test "${ac_cv_prog_cxx_g+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6604 ac_cxx_werror_flag=yes
6605 ac_cv_prog_cxx_g=no
6606 CXXFLAGS="-g"
6607 cat >conftest.$ac_ext <<_ACEOF
6608/* confdefs.h. */
6609_ACEOF
6610cat confdefs.h >>conftest.$ac_ext
6611cat >>conftest.$ac_ext <<_ACEOF
6612/* end confdefs.h. */
6613
6614int
6615main ()
6616{
6617
6618 ;
6619 return 0;
6620}
6621_ACEOF
6622rm -f conftest.$ac_objext
6623if { (ac_try="$ac_compile"
6624case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627esac
6628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_compile") 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_cxx_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest.$ac_objext; then
6639 ac_cv_prog_cxx_g=yes
6640else
6641 echo "$as_me: failed program was:" >&5
6642sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 CXXFLAGS=""
6645 cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
6651
6652int
6653main ()
6654{
6655
6656 ;
6657 return 0;
6658}
6659_ACEOF
6660rm -f conftest.$ac_objext
6661if { (ac_try="$ac_compile"
6662case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665esac
6666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_cxx_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
6677 :
6678else
6679 echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
6682 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6683 CXXFLAGS="-g"
6684 cat >conftest.$ac_ext <<_ACEOF
6685/* confdefs.h. */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h. */
6690
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext
6700if { (ac_try="$ac_compile"
6701case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704esac
6705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_cxx_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ac_cv_prog_cxx_g=yes
6717else
6718 echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721
6722fi
6723
6724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725fi
6726
6727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728fi
6729
6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6732fi
6733{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6734echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6735if test "$ac_test_CXXFLAGS" = set; then
6736 CXXFLAGS=$ac_save_CXXFLAGS
6737elif test $ac_cv_prog_cxx_g = yes; then
6738 if test "$GXX" = yes; then
6739 CXXFLAGS="-g -O2"
6740 else
6741 CXXFLAGS="-g"
6742 fi
6743else
6744 if test "$GXX" = yes; then
6745 CXXFLAGS="-O2"
6746 else
6747 CXXFLAGS=
6748 fi
6749fi
6750ac_ext=cpp
6751ac_cpp='$CXXCPP $CPPFLAGS'
6752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6755
6756depcc="$CXX" am_compiler_list=
6757
6758{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6759echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6760if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6764 # We make a subdir and do the tests there. Otherwise we can end up
6765 # making bogus files that we don't know about and never remove. For
6766 # instance it was reported that on HP-UX the gcc test will end up
6767 # making a dummy file named `D' -- because `-MD' means `put the output
6768 # in D'.
6769 mkdir conftest.dir
6770 # Copy depcomp to subdir because otherwise we won't find it if we're
6771 # using a relative directory.
6772 cp "$am_depcomp" conftest.dir
6773 cd conftest.dir
6774 # We will build objects and dependencies in a subdirectory because
6775 # it helps to detect inapplicable dependency modes. For instance
6776 # both Tru64's cc and ICC support -MD to output dependencies as a
6777 # side effect of compilation, but ICC will put the dependencies in
6778 # the current directory while Tru64 will put them in the object
6779 # directory.
6780 mkdir sub
6781
6782 am_cv_CXX_dependencies_compiler_type=none
6783 if test "$am_compiler_list" = ""; then
6784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6785 fi
6786 for depmode in $am_compiler_list; do
6787 # Setup a source with many dependencies, because some compilers
6788 # like to wrap large dependency lists on column 80 (with \), and
6789 # we should not choose a depcomp mode which is confused by this.
6790 #
6791 # We need to recreate these files for each test, as the compiler may
6792 # overwrite some of them when testing with obscure command lines.
6793 # This happens at least with the AIX C compiler.
6794 : > sub/conftest.c
6795 for i in 1 2 3 4 5 6; do
6796 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6797 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6798 # Solaris 8's {/usr,}/bin/sh.
6799 touch sub/conftst$i.h
6800 done
6801 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6802
6803 case $depmode in
6804 nosideeffect)
6805 # after this tag, mechanisms are not by side-effect, so they'll
6806 # only be used when explicitly requested
6807 if test "x$enable_dependency_tracking" = xyes; then
6808 continue
6809 else
6810 break
6811 fi
6812 ;;
6813 none) break ;;
6814 esac
6815 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6816 # mode. It turns out that the SunPro C++ compiler does not properly
6817 # handle `-M -o', and we need to detect this.
6818 if depmode=$depmode \
6819 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6821 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6822 >/dev/null 2>conftest.err &&
6823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6825 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6827 # icc doesn't choke on unknown options, it will just issue warnings
6828 # or remarks (even with -Werror). So we grep stderr for any message
6829 # that says an option was ignored or not supported.
6830 # When given -MP, icc 7.0 and 7.1 complain thusly:
6831 # icc: Command line warning: ignoring option '-M'; no argument required
6832 # The diagnosis changed in icc 8.0:
6833 # icc: Command line remark: option '-MP' not supported
6834 if (grep 'ignoring option' conftest.err ||
6835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6836 am_cv_CXX_dependencies_compiler_type=$depmode
6837 break
6838 fi
6839 fi
6840 done
6841
6842 cd ..
6843 rm -rf conftest.dir
6844else
6845 am_cv_CXX_dependencies_compiler_type=none
6846fi
6847
6848fi
6849{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6850echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6851CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6852
6853 if
6854 test "x$enable_dependency_tracking" != xno \
6855 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6856 am__fastdepCXX_TRUE=
6857 am__fastdepCXX_FALSE='#'
6858else
6859 am__fastdepCXX_TRUE='#'
6860 am__fastdepCXX_FALSE=
6861fi
6862
6863
6864
6865
6866if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6867 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6868 (test "X$CXX" != "Xg++"))) ; then
6869 ac_ext=cpp
6870ac_cpp='$CXXCPP $CPPFLAGS'
6871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6874{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6875echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6876if test -z "$CXXCPP"; then
6877 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 # Double quotes because CXXCPP needs to be expanded
6881 for CXXCPP in "$CXX -E" "/lib/cpp"
6882 do
6883 ac_preproc_ok=false
6884for ac_cxx_preproc_warn_flag in '' yes
6885do
6886 # Use a header file that comes with gcc, so configuring glibc
6887 # with a fresh cross-compiler works.
6888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889 # <limits.h> exists even on freestanding compilers.
6890 # On the NeXT, cc -E runs the code through the compiler's parser,
6891 # not just through cpp. "Syntax error" is here to catch this case.
6892 cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h. */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h. */
6898#ifdef __STDC__
6899# include <limits.h>
6900#else
6901# include <assert.h>
6902#endif
6903 Syntax error
6904_ACEOF
6905if { (ac_try="$ac_cpp conftest.$ac_ext"
6906case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909esac
6910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } >/dev/null && {
6918 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6919 test ! -s conftest.err
6920 }; then
6921 :
6922else
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 # Broken: fails on valid input.
6927continue
6928fi
6929
6930rm -f conftest.err conftest.$ac_ext
6931
6932 # OK, works on sane cases. Now check whether nonexistent headers
6933 # can be detected and how.
6934 cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
6940#include <ac_nonexistent.h>
6941_ACEOF
6942if { (ac_try="$ac_cpp conftest.$ac_ext"
6943case "(($ac_try" in
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6946esac
6947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } >/dev/null && {
6955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6956 test ! -s conftest.err
6957 }; then
6958 # Broken: success on invalid input.
6959continue
6960else
6961 echo "$as_me: failed program was:" >&5
6962sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 # Passes both tests.
6965ac_preproc_ok=:
6966break
6967fi
6968
6969rm -f conftest.err conftest.$ac_ext
6970
6971done
6972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973rm -f conftest.err conftest.$ac_ext
6974if $ac_preproc_ok; then
6975 break
6976fi
6977
6978 done
6979 ac_cv_prog_CXXCPP=$CXXCPP
6980
6981fi
6982 CXXCPP=$ac_cv_prog_CXXCPP
6983else
6984 ac_cv_prog_CXXCPP=$CXXCPP
6985fi
6986{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6987echo "${ECHO_T}$CXXCPP" >&6; }
6988ac_preproc_ok=false
6989for ac_cxx_preproc_warn_flag in '' yes
6990do
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
7003#ifdef __STDC__
7004# include <limits.h>
7005#else
7006# include <assert.h>
7007#endif
7008 Syntax error
7009_ACEOF
7010if { (ac_try="$ac_cpp conftest.$ac_ext"
7011case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7014esac
7015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } >/dev/null && {
7023 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7024 test ! -s conftest.err
7025 }; then
7026 :
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 # Broken: fails on valid input.
7032continue
7033fi
7034
7035rm -f conftest.err conftest.$ac_ext
7036
7037 # OK, works on sane cases. Now check whether nonexistent headers
7038 # can be detected and how.
7039 cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
7045#include <ac_nonexistent.h>
7046_ACEOF
7047if { (ac_try="$ac_cpp conftest.$ac_ext"
7048case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051esac
7052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } >/dev/null && {
7060 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7061 test ! -s conftest.err
7062 }; then
7063 # Broken: success on invalid input.
7064continue
7065else
7066 echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 # Passes both tests.
7070ac_preproc_ok=:
7071break
7072fi
7073
7074rm -f conftest.err conftest.$ac_ext
7075
7076done
7077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7078rm -f conftest.err conftest.$ac_ext
7079if $ac_preproc_ok; then
7080 :
7081else
7082 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7083See \`config.log' for more details." >&5
7084echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7085See \`config.log' for more details." >&2;}
7086 { (exit 1); exit 1; }; }
7087fi
7088
7089ac_ext=cpp
7090ac_cpp='$CXXCPP $CPPFLAGS'
7091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7094
7095fi
7096
7097
7098ac_ext=f
7099ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7100ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7102if test -n "$ac_tool_prefix"; then
7103 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
7104 do
7105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_prog_F77+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 if test -n "$F77"; then
7113 ac_cv_prog_F77="$F77" # Let the user override the test.
7114else
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127done
7128IFS=$as_save_IFS
7129
7130fi
7131fi
7132F77=$ac_cv_prog_F77
7133if test -n "$F77"; then
7134 { echo "$as_me:$LINENO: result: $F77" >&5
7135echo "${ECHO_T}$F77" >&6; }
7136else
7137 { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
7139fi
7140
7141
7142 test -n "$F77" && break
7143 done
7144fi
7145if test -z "$F77"; then
7146 ac_ct_F77=$F77
7147 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
7148do
7149 # Extract the first word of "$ac_prog", so it can be a program name with args.
7150set dummy $ac_prog; ac_word=$2
7151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 if test -n "$ac_ct_F77"; then
7157 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_ac_ct_F77="$ac_prog"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170done
7171done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176ac_ct_F77=$ac_cv_prog_ac_ct_F77
7177if test -n "$ac_ct_F77"; then
7178 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7179echo "${ECHO_T}$ac_ct_F77" >&6; }
7180else
7181 { echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6; }
7183fi
7184
7185
7186 test -n "$ac_ct_F77" && break
7187done
7188
7189 if test "x$ac_ct_F77" = x; then
7190 F77=""
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193yes:)
7194{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7195whose name does not start with the host triplet. If you think this
7196configuration is useful to you, please write to autoconf@gnu.org." >&5
7197echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7198whose name does not start with the host triplet. If you think this
7199configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7200ac_tool_warned=yes ;;
7201esac
7202 F77=$ac_ct_F77
7203 fi
7204fi
7205
7206
7207# Provide some information about the compiler.
7208echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7209ac_compiler=`set X $ac_compile; echo $2`
7210{ (ac_try="$ac_compiler --version >&5"
7211case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214esac
7215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_compiler --version >&5") 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }
7220{ (ac_try="$ac_compiler -v >&5"
7221case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224esac
7225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compiler -v >&5") 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }
7230{ (ac_try="$ac_compiler -V >&5"
7231case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234esac
7235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compiler -V >&5") 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }
7240rm -f a.out
7241
7242# If we don't use `.F' as extension, the preprocessor is not run on the
7243# input file. (Note that this only needs to work for GNU compilers.)
7244ac_save_ext=$ac_ext
7245ac_ext=F
7246{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7247echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7248if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 cat >conftest.$ac_ext <<_ACEOF
7252 program main
7253#ifndef __GNUC__
7254 choke me
7255#endif
7256
7257 end
7258_ACEOF
7259rm -f conftest.$ac_objext
7260if { (ac_try="$ac_compile"
7261case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264esac
7265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_f77_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 ac_compiler_gnu=yes
7277else
7278 echo "$as_me: failed program was:" >&5
7279sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 ac_compiler_gnu=no
7282fi
7283
7284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7286
7287fi
7288{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7289echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7290ac_ext=$ac_save_ext
7291ac_test_FFLAGS=${FFLAGS+set}
7292ac_save_FFLAGS=$FFLAGS
7293FFLAGS=
7294{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7295echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7296if test "${ac_cv_prog_f77_g+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299 FFLAGS=-g
7300cat >conftest.$ac_ext <<_ACEOF
7301 program main
7302
7303 end
7304_ACEOF
7305rm -f conftest.$ac_objext
7306if { (ac_try="$ac_compile"
7307case "(($ac_try" in
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7310esac
7311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_compile") 2>conftest.er1
7313 ac_status=$?
7314 grep -v '^ *+' conftest.er1 >conftest.err
7315 rm -f conftest.er1
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && {
7319 test -z "$ac_f77_werror_flag" ||
7320 test ! -s conftest.err
7321 } && test -s conftest.$ac_objext; then
7322 ac_cv_prog_f77_g=yes
7323else
7324 echo "$as_me: failed program was:" >&5
7325sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ac_cv_prog_f77_g=no
7328fi
7329
7330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331
7332fi
7333{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7334echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7335if test "$ac_test_FFLAGS" = set; then
7336 FFLAGS=$ac_save_FFLAGS
7337elif test $ac_cv_prog_f77_g = yes; then
7338 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7339 FFLAGS="-g -O2"
7340 else
7341 FFLAGS="-g"
7342 fi
7343else
7344 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7345 FFLAGS="-O2"
7346 else
7347 FFLAGS=
7348 fi
7349fi
7350
7351G77=`test $ac_compiler_gnu = yes && echo yes`
7352ac_ext=c
7353ac_cpp='$CPP $CPPFLAGS'
7354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357
7358
7359
7360# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7361
7362# find the maximum length of command line arguments
7363{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7364echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7365if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368 i=0
7369 teststring="ABCD"
7370
7371 case $build_os in
7372 msdosdjgpp*)
7373 # On DJGPP, this test can blow up pretty badly due to problems in libc
7374 # (any single argument exceeding 2000 bytes causes a buffer overrun
7375 # during glob expansion). Even if it were fixed, the result of this
7376 # check would be larger than it should be.
7377 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7378 ;;
7379
7380 gnu*)
7381 # Under GNU Hurd, this test is not required because there is
7382 # no limit to the length of command line arguments.
7383 # Libtool will interpret -1 as no limit whatsoever
7384 lt_cv_sys_max_cmd_len=-1;
7385 ;;
7386
7387 cygwin* | mingw*)
7388 # On Win9x/ME, this test blows up -- it succeeds, but takes
7389 # about 5 minutes as the teststring grows exponentially.
7390 # Worse, since 9x/ME are not pre-emptively multitasking,
7391 # you end up with a "frozen" computer, even though with patience
7392 # the test eventually succeeds (with a max line length of 256k).
7393 # Instead, let's just punt: use the minimum linelength reported by
7394 # all of the supported platforms: 8192 (on NT/2K/XP).
7395 lt_cv_sys_max_cmd_len=8192;
7396 ;;
7397
7398 amigaos*)
7399 # On AmigaOS with pdksh, this test takes hours, literally.
7400 # So we just punt and use a minimum line length of 8192.
7401 lt_cv_sys_max_cmd_len=8192;
7402 ;;
7403
7404 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7405 # This has been around since 386BSD, at least. Likely further.
7406 if test -x /sbin/sysctl; then
7407 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7408 elif test -x /usr/sbin/sysctl; then
7409 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7410 else
7411 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7412 fi
7413 # And add a safety zone
7414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7416 ;;
7417
7418 interix*)
7419 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7420 lt_cv_sys_max_cmd_len=196608
7421 ;;
7422
7423 osf*)
7424 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7425 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7426 # nice to cause kernel panics so lets avoid the loop below.
7427 # First set a reasonable default.
7428 lt_cv_sys_max_cmd_len=16384
7429 #
7430 if test -x /sbin/sysconfig; then
7431 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7432 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7433 esac
7434 fi
7435 ;;
7436 sco3.2v5*)
7437 lt_cv_sys_max_cmd_len=102400
7438 ;;
7439 sysv5* | sco5v6* | sysv4.2uw2*)
7440 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7441 if test -n "$kargmax"; then
7442 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7443 else
7444 lt_cv_sys_max_cmd_len=32768
7445 fi
7446 ;;
7447 *)
7448 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7449 if test -n "$lt_cv_sys_max_cmd_len"; then
7450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7452 else
7453 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7454 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7455 = "XX$teststring") >/dev/null 2>&1 &&
7456 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7457 lt_cv_sys_max_cmd_len=$new_result &&
7458 test $i != 17 # 1/2 MB should be enough
7459 do
7460 i=`expr $i + 1`
7461 teststring=$teststring$teststring
7462 done
7463 teststring=
7464 # Add a significant safety factor because C++ compilers can tack on massive
7465 # amounts of additional arguments before passing them to the linker.
7466 # It appears as though 1/2 is a usable value.
7467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7468 fi
7469 ;;
7470 esac
7471
7472fi
7473
7474if test -n $lt_cv_sys_max_cmd_len ; then
7475 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7476echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7477else
7478 { echo "$as_me:$LINENO: result: none" >&5
7479echo "${ECHO_T}none" >&6; }
7480fi
7481
7482
7483
7484
7485
7486# Check for command to grab the raw symbol name followed by C symbol from nm.
7487{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7488echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7489if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492
7493# These are sane defaults that work on at least a few old systems.
7494# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7495
7496# Character class describing NM global symbol codes.
7497symcode='[BCDEGRST]'
7498
7499# Regexp to match symbols that can be accessed directly from C.
7500sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7501
7502# Transform an extracted symbol line into a proper C declaration
7503lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7504
7505# Transform an extracted symbol line into symbol name and symbol address
7506lt_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'"
7507
7508# Define system-specific variables.
7509case $host_os in
7510aix*)
7511 symcode='[BCDT]'
7512 ;;
7513cygwin* | mingw* | pw32*)
7514 symcode='[ABCDGISTW]'
7515 ;;
7516hpux*) # Its linker distinguishes data from code symbols
7517 if test "$host_cpu" = ia64; then
7518 symcode='[ABCDEGRST]'
7519 fi
7520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7521 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'"
7522 ;;
7523linux* | k*bsd*-gnu)
7524 if test "$host_cpu" = ia64; then
7525 symcode='[ABCDGIRSTW]'
7526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7527 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'"
7528 fi
7529 ;;
7530irix* | nonstopux*)
7531 symcode='[BCDEGRST]'
7532 ;;
7533osf*)
7534 symcode='[BCDEGQRST]'
7535 ;;
7536solaris*)
7537 symcode='[BDRT]'
7538 ;;
7539sco3.2v5*)
7540 symcode='[DT]'
7541 ;;
7542sysv4.2uw2*)
7543 symcode='[DT]'
7544 ;;
7545sysv5* | sco5v6* | unixware* | OpenUNIX*)
7546 symcode='[ABDT]'
7547 ;;
7548sysv4)
7549 symcode='[DFNSTU]'
7550 ;;
7551esac
7552
7553# Handle CRLF in mingw tool chain
7554opt_cr=
7555case $build_os in
7556mingw*)
7557 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7558 ;;
7559esac
7560
7561# If we're using GNU nm, then use its standard symbol codes.
7562case `$NM -V 2>&1` in
7563*GNU* | *'with BFD'*)
7564 symcode='[ABCDGIRSTW]' ;;
7565esac
7566
7567# Try without a prefix undercore, then with it.
7568for ac_symprfx in "" "_"; do
7569
7570 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7571 symxfrm="\\1 $ac_symprfx\\2 \\2"
7572
7573 # Write the raw and C identifiers.
7574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7575
7576 # Check to see that the pipe works correctly.
7577 pipe_works=no
7578
7579 rm -f conftest*
7580 cat > conftest.$ac_ext <<EOF
7581#ifdef __cplusplus
7582extern "C" {
7583#endif
7584char nm_test_var;
7585void nm_test_func(){}
7586#ifdef __cplusplus
7587}
7588#endif
7589int main(){nm_test_var='a';nm_test_func();return(0);}
7590EOF
7591
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; then
7597 # Now try to grab the symbols.
7598 nlist=conftest.nm
7599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && test -s "$nlist"; then
7604 # Try sorting and uniquifying the output.
7605 if sort "$nlist" | uniq > "$nlist"T; then
7606 mv -f "$nlist"T "$nlist"
7607 else
7608 rm -f "$nlist"T
7609 fi
7610
7611 # Make sure that we snagged all the symbols we need.
7612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7614 cat <<EOF > conftest.$ac_ext
7615#ifdef __cplusplus
7616extern "C" {
7617#endif
7618
7619EOF
7620 # Now generate the symbol file.
7621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7622
7623 cat <<EOF >> conftest.$ac_ext
7624#if defined (__STDC__) && __STDC__
7625# define lt_ptr_t void *
7626#else
7627# define lt_ptr_t char *
7628# define const
7629#endif
7630
7631/* The mapping between symbol names and symbols. */
7632const struct {
7633 const char *name;
7634 lt_ptr_t address;
7635}
7636lt_preloaded_symbols[] =
7637{
7638EOF
7639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7640 cat <<\EOF >> conftest.$ac_ext
7641 {0, (lt_ptr_t) 0}
7642};
7643
7644#ifdef __cplusplus
7645}
7646#endif
7647EOF
7648 # Now try linking the two files.
7649 mv conftest.$ac_objext conftstm.$ac_objext
7650 lt_save_LIBS="$LIBS"
7651 lt_save_CFLAGS="$CFLAGS"
7652 LIBS="conftstm.$ac_objext"
7653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655 (eval $ac_link) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7659 pipe_works=yes
7660 fi
7661 LIBS="$lt_save_LIBS"
7662 CFLAGS="$lt_save_CFLAGS"
7663 else
7664 echo "cannot find nm_test_func in $nlist" >&5
7665 fi
7666 else
7667 echo "cannot find nm_test_var in $nlist" >&5
7668 fi
7669 else
7670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7671 fi
7672 else
7673 echo "$progname: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 fi
7676 rm -f conftest* conftst*
7677
7678 # Do not use the global_symbol_pipe unless it works.
7679 if test "$pipe_works" = yes; then
7680 break
7681 else
7682 lt_cv_sys_global_symbol_pipe=
7683 fi
7684done
7685
7686fi
7687
7688if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689 lt_cv_sys_global_symbol_to_cdecl=
7690fi
7691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692 { echo "$as_me:$LINENO: result: failed" >&5
7693echo "${ECHO_T}failed" >&6; }
7694else
7695 { echo "$as_me:$LINENO: result: ok" >&5
7696echo "${ECHO_T}ok" >&6; }
7697fi
7698
7699{ echo "$as_me:$LINENO: checking for objdir" >&5
7700echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7701if test "${lt_cv_objdir+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704 rm -f .libs 2>/dev/null
7705mkdir .libs 2>/dev/null
7706if test -d .libs; then
7707 lt_cv_objdir=.libs
7708else
7709 # MS-DOS does not allow filenames that begin with a dot.
7710 lt_cv_objdir=_libs
7711fi
7712rmdir .libs 2>/dev/null
7713fi
7714{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7715echo "${ECHO_T}$lt_cv_objdir" >&6; }
7716objdir=$lt_cv_objdir
7717
7718
7719
7720
7721
7722case $host_os in
7723aix3*)
7724 # AIX sometimes has problems with the GCC collect2 program. For some
7725 # reason, if we set the COLLECT_NAMES environment variable, the problems
7726 # vanish in a puff of smoke.
7727 if test "X${COLLECT_NAMES+set}" != Xset; then
7728 COLLECT_NAMES=
7729 export COLLECT_NAMES
7730 fi
7731 ;;
7732esac
7733
7734# Sed substitution that helps us do robust quoting. It backslashifies
7735# metacharacters that are still active within double-quoted strings.
7736Xsed='sed -e 1s/^X//'
7737sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7738
7739# Same as above, but do not quote variable references.
7740double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7741
7742# Sed substitution to delay expansion of an escaped shell variable in a
7743# double_quote_subst'ed string.
7744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7745
7746# Sed substitution to avoid accidental globbing in evaled expressions
7747no_glob_subst='s/\*/\\\*/g'
7748
7749# Constants:
7750rm="rm -f"
7751
7752# Global variables:
7753default_ofile=libtool
7754can_build_shared=yes
7755
7756# All known linkers require a `.a' archive for static linking (except MSVC,
7757# which needs '.lib').
7758libext=a
7759ltmain="$ac_aux_dir/ltmain.sh"
7760ofile="$default_ofile"
7761with_gnu_ld="$lt_cv_prog_gnu_ld"
7762
7763if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7765set dummy ${ac_tool_prefix}ar; ac_word=$2
7766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768if test "${ac_cv_prog_AR+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770else
7771 if test -n "$AR"; then
7772 ac_cv_prog_AR="$AR" # Let the user override the test.
7773else
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_AR="${ac_tool_prefix}ar"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785done
7786done
7787IFS=$as_save_IFS
7788
7789fi
7790fi
7791AR=$ac_cv_prog_AR
7792if test -n "$AR"; then
7793 { echo "$as_me:$LINENO: result: $AR" >&5
7794echo "${ECHO_T}$AR" >&6; }
7795else
7796 { echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6; }
7798fi
7799
7800
7801fi
7802if test -z "$ac_cv_prog_AR"; then
7803 ac_ct_AR=$AR
7804 # Extract the first word of "ar", so it can be a program name with args.
7805set dummy ar; ac_word=$2
7806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811 if test -n "$ac_ct_AR"; then
7812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_ac_ct_AR="ar"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826done
7827IFS=$as_save_IFS
7828
7829fi
7830fi
7831ac_ct_AR=$ac_cv_prog_ac_ct_AR
7832if test -n "$ac_ct_AR"; then
7833 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7834echo "${ECHO_T}$ac_ct_AR" >&6; }
7835else
7836 { echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6; }
7838fi
7839
7840 if test "x$ac_ct_AR" = x; then
7841 AR="false"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844yes:)
7845{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7846whose name does not start with the host triplet. If you think this
7847configuration is useful to you, please write to autoconf@gnu.org." >&5
7848echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7849whose name does not start with the host triplet. If you think this
7850configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7851ac_tool_warned=yes ;;
7852esac
7853 AR=$ac_ct_AR
7854 fi
7855else
7856 AR="$ac_cv_prog_AR"
7857fi
7858
7859if test -n "$ac_tool_prefix"; then
7860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864if test "${ac_cv_prog_RANLIB+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867 if test -n "$RANLIB"; then
7868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887RANLIB=$ac_cv_prog_RANLIB
7888if test -n "$RANLIB"; then
7889 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7890echo "${ECHO_T}$RANLIB" >&6; }
7891else
7892 { echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6; }
7894fi
7895
7896
7897fi
7898if test -z "$ac_cv_prog_RANLIB"; then
7899 ac_ct_RANLIB=$RANLIB
7900 # Extract the first word of "ranlib", so it can be a program name with args.
7901set dummy ranlib; ac_word=$2
7902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 if test -n "$ac_ct_RANLIB"; then
7908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7909else
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_ac_ct_RANLIB="ranlib"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921done
7922done
7923IFS=$as_save_IFS
7924
7925fi
7926fi
7927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7928if test -n "$ac_ct_RANLIB"; then
7929 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7930echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7931else
7932 { echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6; }
7934fi
7935
7936 if test "x$ac_ct_RANLIB" = x; then
7937 RANLIB=":"
7938 else
7939 case $cross_compiling:$ac_tool_warned in
7940yes:)
7941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7942whose name does not start with the host triplet. If you think this
7943configuration is useful to you, please write to autoconf@gnu.org." >&5
7944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7945whose name does not start with the host triplet. If you think this
7946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7947ac_tool_warned=yes ;;
7948esac
7949 RANLIB=$ac_ct_RANLIB
7950 fi
7951else
7952 RANLIB="$ac_cv_prog_RANLIB"
7953fi
7954
7955if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7957set dummy ${ac_tool_prefix}strip; ac_word=$2
7958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960if test "${ac_cv_prog_STRIP+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963 if test -n "$STRIP"; then
7964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978done
7979IFS=$as_save_IFS
7980
7981fi
7982fi
7983STRIP=$ac_cv_prog_STRIP
7984if test -n "$STRIP"; then
7985 { echo "$as_me:$LINENO: result: $STRIP" >&5
7986echo "${ECHO_T}$STRIP" >&6; }
7987else
7988 { echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6; }
7990fi
7991
7992
7993fi
7994if test -z "$ac_cv_prog_STRIP"; then
7995 ac_ct_STRIP=$STRIP
7996 # Extract the first word of "strip", so it can be a program name with args.
7997set dummy strip; ac_word=$2
7998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8000if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002else
8003 if test -n "$ac_ct_STRIP"; then
8004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8005else
8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_ac_ct_STRIP="strip"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019IFS=$as_save_IFS
8020
8021fi
8022fi
8023ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8024if test -n "$ac_ct_STRIP"; then
8025 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8026echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8027else
8028 { echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6; }
8030fi
8031
8032 if test "x$ac_ct_STRIP" = x; then
8033 STRIP=":"
8034 else
8035 case $cross_compiling:$ac_tool_warned in
8036yes:)
8037{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8038whose name does not start with the host triplet. If you think this
8039configuration is useful to you, please write to autoconf@gnu.org." >&5
8040echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8041whose name does not start with the host triplet. If you think this
8042configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8043ac_tool_warned=yes ;;
8044esac
8045 STRIP=$ac_ct_STRIP
8046 fi
8047else
8048 STRIP="$ac_cv_prog_STRIP"
8049fi
8050
8051
8052old_CC="$CC"
8053old_CFLAGS="$CFLAGS"
8054
8055# Set sane defaults for various variables
8056test -z "$AR" && AR=ar
8057test -z "$AR_FLAGS" && AR_FLAGS=cru
8058test -z "$AS" && AS=as
8059test -z "$CC" && CC=cc
8060test -z "$LTCC" && LTCC=$CC
8061test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8062test -z "$DLLTOOL" && DLLTOOL=dlltool
8063test -z "$LD" && LD=ld
8064test -z "$LN_S" && LN_S="ln -s"
8065test -z "$MAGIC_CMD" && MAGIC_CMD=file
8066test -z "$NM" && NM=nm
8067test -z "$SED" && SED=sed
8068test -z "$OBJDUMP" && OBJDUMP=objdump
8069test -z "$RANLIB" && RANLIB=:
8070test -z "$STRIP" && STRIP=:
8071test -z "$ac_objext" && ac_objext=o
8072
8073# Determine commands to create old-style static archives.
8074old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8075old_postinstall_cmds='chmod 644 $oldlib'
8076old_postuninstall_cmds=
8077
8078if test -n "$RANLIB"; then
8079 case $host_os in
8080 openbsd*)
8081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8082 ;;
8083 *)
8084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8085 ;;
8086 esac
8087 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8088fi
8089
8090for cc_temp in $compiler""; do
8091 case $cc_temp in
8092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8094 \-*) ;;
8095 *) break;;
8096 esac
8097done
8098cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8099
8100
8101# Only perform the check for file, if the check method requires it
8102case $deplibs_check_method in
8103file_magic*)
8104 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8105 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8106echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8107if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110 case $MAGIC_CMD in
8111[\\/*] | ?:[\\/]*)
8112 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8113 ;;
8114*)
8115 lt_save_MAGIC_CMD="$MAGIC_CMD"
8116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8117 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8118 for ac_dir in $ac_dummy; do
8119 IFS="$lt_save_ifs"
8120 test -z "$ac_dir" && ac_dir=.
8121 if test -f $ac_dir/${ac_tool_prefix}file; then
8122 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8123 if test -n "$file_magic_test_file"; then
8124 case $deplibs_check_method in
8125 "file_magic "*)
8126 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8128 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8129 $EGREP "$file_magic_regex" > /dev/null; then
8130 :
8131 else
8132 cat <<EOF 1>&2
8133
8134*** Warning: the command libtool uses to detect shared libraries,
8135*** $file_magic_cmd, produces output that libtool cannot recognize.
8136*** The result is that libtool may fail to recognize shared libraries
8137*** as such. This will affect the creation of libtool libraries that
8138*** depend on shared libraries, but programs linked with such libtool
8139*** libraries will work regardless of this problem. Nevertheless, you
8140*** may want to report the problem to your system manager and/or to
8141*** bug-libtool@gnu.org
8142
8143EOF
8144 fi ;;
8145 esac
8146 fi
8147 break
8148 fi
8149 done
8150 IFS="$lt_save_ifs"
8151 MAGIC_CMD="$lt_save_MAGIC_CMD"
8152 ;;
8153esac
8154fi
8155
8156MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8157if test -n "$MAGIC_CMD"; then
8158 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8159echo "${ECHO_T}$MAGIC_CMD" >&6; }
8160else
8161 { echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6; }
8163fi
8164
8165if test -z "$lt_cv_path_MAGIC_CMD"; then
8166 if test -n "$ac_tool_prefix"; then
8167 { echo "$as_me:$LINENO: checking for file" >&5
8168echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8169if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171else
8172 case $MAGIC_CMD in
8173[\\/*] | ?:[\\/]*)
8174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 ;;
8176*)
8177 lt_save_MAGIC_CMD="$MAGIC_CMD"
8178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180 for ac_dir in $ac_dummy; do
8181 IFS="$lt_save_ifs"
8182 test -z "$ac_dir" && ac_dir=.
8183 if test -f $ac_dir/file; then
8184 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8185 if test -n "$file_magic_test_file"; then
8186 case $deplibs_check_method in
8187 "file_magic "*)
8188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191 $EGREP "$file_magic_regex" > /dev/null; then
8192 :
8193 else
8194 cat <<EOF 1>&2
8195
8196*** Warning: the command libtool uses to detect shared libraries,
8197*** $file_magic_cmd, produces output that libtool cannot recognize.
8198*** The result is that libtool may fail to recognize shared libraries
8199*** as such. This will affect the creation of libtool libraries that
8200*** depend on shared libraries, but programs linked with such libtool
8201*** libraries will work regardless of this problem. Nevertheless, you
8202*** may want to report the problem to your system manager and/or to
8203*** bug-libtool@gnu.org
8204
8205EOF
8206 fi ;;
8207 esac
8208 fi
8209 break
8210 fi
8211 done
8212 IFS="$lt_save_ifs"
8213 MAGIC_CMD="$lt_save_MAGIC_CMD"
8214 ;;
8215esac
8216fi
8217
8218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219if test -n "$MAGIC_CMD"; then
8220 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8221echo "${ECHO_T}$MAGIC_CMD" >&6; }
8222else
8223 { echo "$as_me:$LINENO: result: no" >&5
8224echo "${ECHO_T}no" >&6; }
8225fi
8226
8227 else
8228 MAGIC_CMD=:
8229 fi
8230fi
8231
8232 fi
8233 ;;
8234esac
8235
8236enable_dlopen=no
8237enable_win32_dll=no
8238
8239# Check whether --enable-libtool-lock was given.
8240if test "${enable_libtool_lock+set}" = set; then
8241 enableval=$enable_libtool_lock;
8242fi
8243
8244test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8245
8246
8247# Check whether --with-pic was given.
8248if test "${with_pic+set}" = set; then
8249 withval=$with_pic; pic_mode="$withval"
8250else
8251 pic_mode=default
8252fi
8253
8254test -z "$pic_mode" && pic_mode=default
8255
8256# Use C for the default configuration in the libtool script
8257tagname=
8258lt_save_CC="$CC"
8259ac_ext=c
8260ac_cpp='$CPP $CPPFLAGS'
8261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264
8265
8266# Source file extension for C test sources.
8267ac_ext=c
8268
8269# Object file extension for compiled C test sources.
8270objext=o
8271objext=$objext
8272
8273# Code to be used in simple compile tests
8274lt_simple_compile_test_code="int some_variable = 0;"
8275
8276# Code to be used in simple link tests
8277lt_simple_link_test_code='int main(){return(0);}'
8278
8279
8280# If no C compiler was specified, use CC.
8281LTCC=${LTCC-"$CC"}
8282
8283# If no C compiler flags were specified, use CFLAGS.
8284LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8285
8286# Allow CC to be a program name with arguments.
8287compiler=$CC
8288
8289
8290# save warnings/boilerplate of simple test code
8291ac_outfile=conftest.$ac_objext
8292echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8293eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8294_lt_compiler_boilerplate=`cat conftest.err`
8295$rm conftest*
8296
8297ac_outfile=conftest.$ac_objext
8298echo "$lt_simple_link_test_code" >conftest.$ac_ext
8299eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8300_lt_linker_boilerplate=`cat conftest.err`
8301$rm conftest*
8302
8303
8304
8305lt_prog_compiler_no_builtin_flag=
8306
8307if test "$GCC" = yes; then
8308 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8309
8310
8311{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8312echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8313if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316 lt_cv_prog_compiler_rtti_exceptions=no
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319 lt_compiler_flag="-fno-rtti -fno-exceptions"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 # The option is referenced via a variable to avoid confusing sed.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>conftest.err)
8331 ac_status=$?
8332 cat conftest.err >&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s "$ac_outfile"; then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings other than the usual output.
8337 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_rtti_exceptions=yes
8341 fi
8342 fi
8343 $rm conftest*
8344
8345fi
8346{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8347echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8348
8349if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8350 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8351else
8352 :
8353fi
8354
8355fi
8356
8357lt_prog_compiler_wl=
8358lt_prog_compiler_pic=
8359lt_prog_compiler_static=
8360
8361{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8362echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8363
8364 if test "$GCC" = yes; then
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_static='-static'
8367
8368 case $host_os in
8369 aix*)
8370 # All AIX code is PIC.
8371 if test "$host_cpu" = ia64; then
8372 # AIX 5 now supports IA64 processor
8373 lt_prog_compiler_static='-Bstatic'
8374 fi
8375 ;;
8376
8377 amigaos*)
8378 # FIXME: we need at least 68020 code to build shared libraries, but
8379 # adding the `-m68020' flag to GCC prevents building anything better,
8380 # like `-m68040'.
8381 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8382 ;;
8383
8384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8385 # PIC is the default for these OSes.
8386 ;;
8387
8388 mingw* | cygwin* | pw32* | os2*)
8389 # This hack is so that the source file can tell whether it is being
8390 # built for inclusion in a dll (and should export symbols for example).
8391 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8392 # (--disable-auto-import) libraries
8393 lt_prog_compiler_pic='-DDLL_EXPORT'
8394 ;;
8395
8396 darwin* | rhapsody*)
8397 # PIC is the default on this platform
8398 # Common symbols not allowed in MH_DYLIB files
8399 lt_prog_compiler_pic='-fno-common'
8400 ;;
8401
8402 interix[3-9]*)
8403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8404 # Instead, we relocate shared libraries at runtime.
8405 ;;
8406
8407 msdosdjgpp*)
8408 # Just because we use GCC doesn't mean we suddenly get shared libraries
8409 # on systems that don't support them.
8410 lt_prog_compiler_can_build_shared=no
8411 enable_shared=no
8412 ;;
8413
8414 sysv4*MP*)
8415 if test -d /usr/nec; then
8416 lt_prog_compiler_pic=-Kconform_pic
8417 fi
8418 ;;
8419
8420 hpux*)
8421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8422 # not for PA HP-UX.
8423 case $host_cpu in
8424 hppa*64*|ia64*)
8425 # +Z the default
8426 ;;
8427 *)
8428 lt_prog_compiler_pic='-fPIC'
8429 ;;
8430 esac
8431 ;;
8432
8433 *)
8434 lt_prog_compiler_pic='-fPIC'
8435 ;;
8436 esac
8437 else
8438 # PORTME Check for flag to pass linker flags through the system compiler.
8439 case $host_os in
8440 aix*)
8441 lt_prog_compiler_wl='-Wl,'
8442 if test "$host_cpu" = ia64; then
8443 # AIX 5 now supports IA64 processor
8444 lt_prog_compiler_static='-Bstatic'
8445 else
8446 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8447 fi
8448 ;;
8449 darwin*)
8450 # PIC is the default on this platform
8451 # Common symbols not allowed in MH_DYLIB files
8452 case $cc_basename in
8453 xlc*)
8454 lt_prog_compiler_pic='-qnocommon'
8455 lt_prog_compiler_wl='-Wl,'
8456 ;;
8457 esac
8458 ;;
8459
8460 mingw* | cygwin* | pw32* | os2*)
8461 # This hack is so that the source file can tell whether it is being
8462 # built for inclusion in a dll (and should export symbols for example).
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8464 ;;
8465
8466 hpux9* | hpux10* | hpux11*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8469 # not for PA HP-UX.
8470 case $host_cpu in
8471 hppa*64*|ia64*)
8472 # +Z the default
8473 ;;
8474 *)
8475 lt_prog_compiler_pic='+Z'
8476 ;;
8477 esac
8478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8479 lt_prog_compiler_static='${wl}-a ${wl}archive'
8480 ;;
8481
8482 irix5* | irix6* | nonstopux*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # PIC (with -KPIC) is the default.
8485 lt_prog_compiler_static='-non_shared'
8486 ;;
8487
8488 newsos6)
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492
8493 linux* | k*bsd*-gnu)
8494 case $cc_basename in
8495 icc* | ecc*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_pic='-KPIC'
8498 lt_prog_compiler_static='-static'
8499 ;;
8500 pgcc* | pgf77* | pgf90* | pgf95*)
8501 # Portland Group compilers (*not* the Pentium gcc compiler,
8502 # which looks to be a dead project)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-fpic'
8505 lt_prog_compiler_static='-Bstatic'
8506 ;;
8507 ccc*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # All Alpha code is PIC.
8510 lt_prog_compiler_static='-non_shared'
8511 ;;
8512 *)
8513 case `$CC -V 2>&1 | sed 5q` in
8514 *Sun\ C*)
8515 # Sun C 5.9
8516 lt_prog_compiler_pic='-KPIC'
8517 lt_prog_compiler_static='-Bstatic'
8518 lt_prog_compiler_wl='-Wl,'
8519 ;;
8520 *Sun\ F*)
8521 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8522 lt_prog_compiler_pic='-KPIC'
8523 lt_prog_compiler_static='-Bstatic'
8524 lt_prog_compiler_wl=''
8525 ;;
8526 esac
8527 ;;
8528 esac
8529 ;;
8530
8531 osf3* | osf4* | osf5*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # All OSF/1 code is PIC.
8534 lt_prog_compiler_static='-non_shared'
8535 ;;
8536
8537 rdos*)
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
8540
8541 solaris*)
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 case $cc_basename in
8545 f77* | f90* | f95*)
8546 lt_prog_compiler_wl='-Qoption ld ';;
8547 *)
8548 lt_prog_compiler_wl='-Wl,';;
8549 esac
8550 ;;
8551
8552 sunos4*)
8553 lt_prog_compiler_wl='-Qoption ld '
8554 lt_prog_compiler_pic='-PIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557
8558 sysv4 | sysv4.2uw2* | sysv4.3*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563
8564 sysv4*MP*)
8565 if test -d /usr/nec ;then
8566 lt_prog_compiler_pic='-Kconform_pic'
8567 lt_prog_compiler_static='-Bstatic'
8568 fi
8569 ;;
8570
8571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576
8577 unicos*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_can_build_shared=no
8580 ;;
8581
8582 uts4*)
8583 lt_prog_compiler_pic='-pic'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 *)
8588 lt_prog_compiler_can_build_shared=no
8589 ;;
8590 esac
8591 fi
8592
8593{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8594echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8595
8596#
8597# Check to make sure the PIC flag actually works.
8598#
8599if test -n "$lt_prog_compiler_pic"; then
8600
8601{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8602echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8603if test "${lt_prog_compiler_pic_works+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605else
8606 lt_prog_compiler_pic_works=no
8607 ac_outfile=conftest.$ac_objext
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8610 # Insert the option either (1) after the last *FLAGS variable, or
8611 # (2) before a word containing "conftest.", or (3) at the end.
8612 # Note that $ac_compile itself does not contain backslashes and begins
8613 # with a dollar sign (not a hyphen), so the echo should work correctly.
8614 # The option is referenced via a variable to avoid confusing sed.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>conftest.err)
8621 ac_status=$?
8622 cat conftest.err >&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s "$ac_outfile"; then
8625 # The compiler can only warn and ignore the option if not recognized
8626 # So say no if there are warnings other than the usual output.
8627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8630 lt_prog_compiler_pic_works=yes
8631 fi
8632 fi
8633 $rm conftest*
8634
8635fi
8636{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8637echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8638
8639if test x"$lt_prog_compiler_pic_works" = xyes; then
8640 case $lt_prog_compiler_pic in
8641 "" | " "*) ;;
8642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8643 esac
8644else
8645 lt_prog_compiler_pic=
8646 lt_prog_compiler_can_build_shared=no
8647fi
8648
8649fi
8650case $host_os in
8651 # For platforms which do not support PIC, -DPIC is meaningless:
8652 *djgpp*)
8653 lt_prog_compiler_pic=
8654 ;;
8655 *)
8656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8657 ;;
8658esac
8659
8660#
8661# Check to make sure the static flag actually works.
8662#
8663wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8664{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8665echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8666if test "${lt_prog_compiler_static_works+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669 lt_prog_compiler_static_works=no
8670 save_LDFLAGS="$LDFLAGS"
8671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8674 # The linker can only warn and ignore the option if not recognized
8675 # So say no if there are warnings
8676 if test -s conftest.err; then
8677 # Append any errors to the config.log.
8678 cat conftest.err 1>&5
8679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8681 if diff conftest.exp conftest.er2 >/dev/null; then
8682 lt_prog_compiler_static_works=yes
8683 fi
8684 else
8685 lt_prog_compiler_static_works=yes
8686 fi
8687 fi
8688 $rm conftest*
8689 LDFLAGS="$save_LDFLAGS"
8690
8691fi
8692{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8693echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8694
8695if test x"$lt_prog_compiler_static_works" = xyes; then
8696 :
8697else
8698 lt_prog_compiler_static=
8699fi
8700
8701
8702{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8703echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8704if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707 lt_cv_prog_compiler_c_o=no
8708 $rm -r conftest 2>/dev/null
8709 mkdir conftest
8710 cd conftest
8711 mkdir out
8712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8713
8714 lt_compiler_flag="-o out/conftest2.$ac_objext"
8715 # Insert the option either (1) after the last *FLAGS variable, or
8716 # (2) before a word containing "conftest.", or (3) at the end.
8717 # Note that $ac_compile itself does not contain backslashes and begins
8718 # with a dollar sign (not a hyphen), so the echo should work correctly.
8719 lt_compile=`echo "$ac_compile" | $SED \
8720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8722 -e 's:$: $lt_compiler_flag:'`
8723 (eval echo "\"\$as_me:8723: $lt_compile\"" >&5)
8724 (eval "$lt_compile" 2>out/conftest.err)
8725 ac_status=$?
8726 cat out/conftest.err >&5
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8729 then
8730 # The compiler can only warn and ignore the option if not recognized
8731 # So say no if there are warnings
8732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8735 lt_cv_prog_compiler_c_o=yes
8736 fi
8737 fi
8738 chmod u+w . 2>&5
8739 $rm conftest*
8740 # SGI C++ compiler will create directory out/ii_files/ for
8741 # template instantiation
8742 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8743 $rm out/* && rmdir out
8744 cd ..
8745 rmdir conftest
8746 $rm conftest*
8747
8748fi
8749{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8750echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8751
8752
8753hard_links="nottested"
8754if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8755 # do not overwrite the value of need_locks provided by the user
8756 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8757echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8758 hard_links=yes
8759 $rm conftest*
8760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8761 touch conftest.a
8762 ln conftest.a conftest.b 2>&5 || hard_links=no
8763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764 { echo "$as_me:$LINENO: result: $hard_links" >&5
8765echo "${ECHO_T}$hard_links" >&6; }
8766 if test "$hard_links" = no; then
8767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8768echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8769 need_locks=warn
8770 fi
8771else
8772 need_locks=no
8773fi
8774
8775{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8776echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8777
8778 runpath_var=
8779 allow_undefined_flag=
8780 enable_shared_with_static_runtimes=no
8781 archive_cmds=
8782 archive_expsym_cmds=
8783 old_archive_From_new_cmds=
8784 old_archive_from_expsyms_cmds=
8785 export_dynamic_flag_spec=
8786 whole_archive_flag_spec=
8787 thread_safe_flag_spec=
8788 hardcode_libdir_flag_spec=
8789 hardcode_libdir_flag_spec_ld=
8790 hardcode_libdir_separator=
8791 hardcode_direct=no
8792 hardcode_minus_L=no
8793 hardcode_shlibpath_var=unsupported
8794 link_all_deplibs=unknown
8795 hardcode_automatic=no
8796 module_cmds=
8797 module_expsym_cmds=
8798 always_export_symbols=no
8799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8800 # include_expsyms should be a list of space-separated symbols to be *always*
8801 # included in the symbol list
8802 include_expsyms=
8803 # exclude_expsyms can be an extended regexp of symbols to exclude
8804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8806 # as well as any symbol that contains `d'.
8807 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8809 # platforms (ab)use it in PIC code, but their linkers get confused if
8810 # the symbol is explicitly referenced. Since portable code cannot
8811 # rely on this symbol name, it's probably fine to never include it in
8812 # preloaded symbol tables.
8813 extract_expsyms_cmds=
8814 # Just being paranoid about ensuring that cc_basename is set.
8815 for cc_temp in $compiler""; do
8816 case $cc_temp in
8817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8819 \-*) ;;
8820 *) break;;
8821 esac
8822done
8823cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8824
8825 case $host_os in
8826 cygwin* | mingw* | pw32*)
8827 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8828 # When not using gcc, we currently assume that we are using
8829 # Microsoft Visual C++.
8830 if test "$GCC" != yes; then
8831 with_gnu_ld=no
8832 fi
8833 ;;
8834 interix*)
8835 # we just hope/assume this is gcc and not c89 (= MSVC++)
8836 with_gnu_ld=yes
8837 ;;
8838 openbsd*)
8839 with_gnu_ld=no
8840 ;;
8841 esac
8842
8843 ld_shlibs=yes
8844 if test "$with_gnu_ld" = yes; then
8845 # If archive_cmds runs LD, not CC, wlarc should be empty
8846 wlarc='${wl}'
8847
8848 # Set some defaults for GNU ld with shared library support. These
8849 # are reset later if shared libraries are not supported. Putting them
8850 # here allows them to be overridden if necessary.
8851 runpath_var=LD_RUN_PATH
8852 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8853 export_dynamic_flag_spec='${wl}--export-dynamic'
8854 # ancient GNU ld didn't support --whole-archive et. al.
8855 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8856 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8857 else
8858 whole_archive_flag_spec=
8859 fi
8860 supports_anon_versioning=no
8861 case `$LD -v 2>/dev/null` in
8862 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8863 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8864 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8865 *\ 2.11.*) ;; # other 2.11 versions
8866 *) supports_anon_versioning=yes ;;
8867 esac
8868
8869 # See if GNU ld supports shared libraries.
8870 case $host_os in
8871 aix3* | aix4* | aix5*)
8872 # On AIX/PPC, the GNU linker is very broken
8873 if test "$host_cpu" != ia64; then
8874 ld_shlibs=no
8875 cat <<EOF 1>&2
8876
8877*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8878*** to be unable to reliably create shared libraries on AIX.
8879*** Therefore, libtool is disabling shared libraries support. If you
8880*** really care for shared libraries, you may want to modify your PATH
8881*** so that a non-GNU linker is found, and then restart.
8882
8883EOF
8884 fi
8885 ;;
8886
8887 amigaos*)
8888 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)'
8889 hardcode_libdir_flag_spec='-L$libdir'
8890 hardcode_minus_L=yes
8891
8892 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8893 # that the semantics of dynamic libraries on AmigaOS, at least up
8894 # to version 4, is to share data among multiple programs linked
8895 # with the same dynamic library. Since this doesn't match the
8896 # behavior of shared libraries on other platforms, we can't use
8897 # them.
8898 ld_shlibs=no
8899 ;;
8900
8901 beos*)
8902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8903 allow_undefined_flag=unsupported
8904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8905 # support --undefined. This deserves some investigation. FIXME
8906 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 else
8908 ld_shlibs=no
8909 fi
8910 ;;
8911
8912 cygwin* | mingw* | pw32*)
8913 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8914 # as there is no search path for DLLs.
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 allow_undefined_flag=unsupported
8917 always_export_symbols=no
8918 enable_shared_with_static_runtimes=yes
8919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8920
8921 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8923 # If the export-symbols file already is a .def file (1st line
8924 # is EXPORTS), use it as is; otherwise, prepend...
8925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8926 cp $export_symbols $output_objdir/$soname.def;
8927 else
8928 echo EXPORTS > $output_objdir/$soname.def;
8929 cat $export_symbols >> $output_objdir/$soname.def;
8930 fi~
8931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8932 else
8933 ld_shlibs=no
8934 fi
8935 ;;
8936
8937 interix[3-9]*)
8938 hardcode_direct=no
8939 hardcode_shlibpath_var=no
8940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8941 export_dynamic_flag_spec='${wl}-E'
8942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8943 # Instead, shared libraries are loaded at an image base (0x10000000 by
8944 # default) and relocated if they conflict, which is a slow very memory
8945 # consuming and fragmenting process. To avoid this, we pick a random,
8946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8949 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'
8950 ;;
8951
8952 gnu* | linux* | k*bsd*-gnu)
8953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8954 tmp_addflag=
8955 case $cc_basename,$host_cpu in
8956 pgcc*) # Portland Group C compiler
8957 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'
8958 tmp_addflag=' $pic_flag'
8959 ;;
8960 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8961 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'
8962 tmp_addflag=' $pic_flag -Mnomain' ;;
8963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8964 tmp_addflag=' -i_dynamic' ;;
8965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8966 tmp_addflag=' -i_dynamic -nofor_main' ;;
8967 ifc* | ifort*) # Intel Fortran compiler
8968 tmp_addflag=' -nofor_main' ;;
8969 esac
8970 case `$CC -V 2>&1 | sed 5q` in
8971 *Sun\ C*) # Sun C 5.9
8972 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8973 tmp_sharedflag='-G' ;;
8974 *Sun\ F*) # Sun Fortran 8.3
8975 tmp_sharedflag='-G' ;;
8976 *)
8977 tmp_sharedflag='-shared' ;;
8978 esac
8979 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980
8981 if test $supports_anon_versioning = yes; then
8982 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984 $echo "local: *; };" >> $output_objdir/$libname.ver~
8985 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8986 fi
8987 else
8988 ld_shlibs=no
8989 fi
8990 ;;
8991
8992 netbsd*)
8993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8994 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8995 wlarc=
8996 else
8997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8999 fi
9000 ;;
9001
9002 solaris*)
9003 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9004 ld_shlibs=no
9005 cat <<EOF 1>&2
9006
9007*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9008*** create shared libraries on Solaris systems. Therefore, libtool
9009*** is disabling shared libraries support. We urge you to upgrade GNU
9010*** binutils to release 2.9.1 or newer. Another option is to modify
9011*** your PATH or compiler configuration so that the native linker is
9012*** used, and then restart.
9013
9014EOF
9015 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 else
9019 ld_shlibs=no
9020 fi
9021 ;;
9022
9023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9024 case `$LD -v 2>&1` in
9025 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9026 ld_shlibs=no
9027 cat <<_LT_EOF 1>&2
9028
9029*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9030*** reliably create shared libraries on SCO systems. Therefore, libtool
9031*** is disabling shared libraries support. We urge you to upgrade GNU
9032*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9033*** your PATH or compiler configuration so that the native linker is
9034*** used, and then restart.
9035
9036_LT_EOF
9037 ;;
9038 *)
9039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9040 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9043 else
9044 ld_shlibs=no
9045 fi
9046 ;;
9047 esac
9048 ;;
9049
9050 sunos4*)
9051 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9052 wlarc=
9053 hardcode_direct=yes
9054 hardcode_shlibpath_var=no
9055 ;;
9056
9057 *)
9058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061 else
9062 ld_shlibs=no
9063 fi
9064 ;;
9065 esac
9066
9067 if test "$ld_shlibs" = no; then
9068 runpath_var=
9069 hardcode_libdir_flag_spec=
9070 export_dynamic_flag_spec=
9071 whole_archive_flag_spec=
9072 fi
9073 else
9074 # PORTME fill in a description of your system's linker (not GNU ld)
9075 case $host_os in
9076 aix3*)
9077 allow_undefined_flag=unsupported
9078 always_export_symbols=yes
9079 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'
9080 # Note: this linker hardcodes the directories in LIBPATH if there
9081 # are no directories specified by -L.
9082 hardcode_minus_L=yes
9083 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9084 # Neither direct hardcoding nor static linking is supported with a
9085 # broken collect2.
9086 hardcode_direct=unsupported
9087 fi
9088 ;;
9089
9090 aix4* | aix5*)
9091 if test "$host_cpu" = ia64; then
9092 # On IA64, the linker does run time linking by default, so we don't
9093 # have to do anything special.
9094 aix_use_runtimelinking=no
9095 exp_sym_flag='-Bexport'
9096 no_entry_flag=""
9097 else
9098 # If we're using GNU nm, then we don't want the "-C" option.
9099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9100 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9101 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'
9102 else
9103 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'
9104 fi
9105 aix_use_runtimelinking=no
9106
9107 # Test if we are trying to use run time linking or normal
9108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9109 # need to do runtime linking.
9110 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9111 for ld_flag in $LDFLAGS; do
9112 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9113 aix_use_runtimelinking=yes
9114 break
9115 fi
9116 done
9117 ;;
9118 esac
9119
9120 exp_sym_flag='-bexport'
9121 no_entry_flag='-bnoentry'
9122 fi
9123
9124 # When large executables or shared objects are built, AIX ld can
9125 # have problems creating the table of contents. If linking a library
9126 # or program results in "error TOC overflow" add -mminimal-toc to
9127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9129
9130 archive_cmds=''
9131 hardcode_direct=yes
9132 hardcode_libdir_separator=':'
9133 link_all_deplibs=yes
9134
9135 if test "$GCC" = yes; then
9136 case $host_os in aix4.[012]|aix4.[012].*)
9137 # We only want to do this on AIX 4.2 and lower, the check
9138 # below for broken collect2 doesn't work under 4.3+
9139 collect2name=`${CC} -print-prog-name=collect2`
9140 if test -f "$collect2name" && \
9141 strings "$collect2name" | grep resolve_lib_name >/dev/null
9142 then
9143 # We have reworked collect2
9144 :
9145 else
9146 # We have old collect2
9147 hardcode_direct=unsupported
9148 # It fails to find uninstalled libraries when the uninstalled
9149 # path is not listed in the libpath. Setting hardcode_minus_L
9150 # to unsupported forces relinking
9151 hardcode_minus_L=yes
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 hardcode_libdir_separator=
9154 fi
9155 ;;
9156 esac
9157 shared_flag='-shared'
9158 if test "$aix_use_runtimelinking" = yes; then
9159 shared_flag="$shared_flag "'${wl}-G'
9160 fi
9161 else
9162 # not using gcc
9163 if test "$host_cpu" = ia64; then
9164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9165 # chokes on -Wl,-G. The following line is correct:
9166 shared_flag='-G'
9167 else
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag='${wl}-G'
9170 else
9171 shared_flag='${wl}-bM:SRE'
9172 fi
9173 fi
9174 fi
9175
9176 # It seems that -bexpall does not export symbols beginning with
9177 # underscore (_), so it is better to generate a list of symbols to export.
9178 always_export_symbols=yes
9179 if test "$aix_use_runtimelinking" = yes; then
9180 # Warning - without using the other runtime loading flags (-brtl),
9181 # -berok will link without error, but may produce a broken library.
9182 allow_undefined_flag='-berok'
9183 # Determine the default libpath from the value encoded in an empty executable.
9184 cat >conftest.$ac_ext <<_ACEOF
9185/* confdefs.h. */
9186_ACEOF
9187cat confdefs.h >>conftest.$ac_ext
9188cat >>conftest.$ac_ext <<_ACEOF
9189/* end confdefs.h. */
9190
9191int
9192main ()
9193{
9194
9195 ;
9196 return 0;
9197}
9198_ACEOF
9199rm -f conftest.$ac_objext conftest$ac_exeext
9200if { (ac_try="$ac_link"
9201case "(($ac_try" in
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9204esac
9205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 (eval "$ac_link") 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest$ac_exeext &&
9216 $as_test_x conftest$ac_exeext; then
9217
9218lt_aix_libpath_sed='
9219 /Import File Strings/,/^$/ {
9220 /^0/ {
9221 s/^0 *\(.*\)$/\1/
9222 p
9223 }
9224 }'
9225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226# Check for a 64-bit object if we didn't find anything.
9227if test -z "$aix_libpath"; then
9228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229fi
9230else
9231 echo "$as_me: failed program was:" >&5
9232sed 's/^/| /' conftest.$ac_ext >&5
9233
9234
9235fi
9236
9237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9238 conftest$ac_exeext conftest.$ac_ext
9239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9240
9241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9242 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"
9243 else
9244 if test "$host_cpu" = ia64; then
9245 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9246 allow_undefined_flag="-z nodefs"
9247 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"
9248 else
9249 # Determine the default libpath from the value encoded in an empty executable.
9250 cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
9256
9257int
9258main ()
9259{
9260
9261 ;
9262 return 0;
9263}
9264_ACEOF
9265rm -f conftest.$ac_objext conftest$ac_exeext
9266if { (ac_try="$ac_link"
9267case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270esac
9271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_link") 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } && {
9279 test -z "$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9281 } && test -s conftest$ac_exeext &&
9282 $as_test_x conftest$ac_exeext; then
9283
9284lt_aix_libpath_sed='
9285 /Import File Strings/,/^$/ {
9286 /^0/ {
9287 s/^0 *\(.*\)$/\1/
9288 p
9289 }
9290 }'
9291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9292# Check for a 64-bit object if we didn't find anything.
9293if test -z "$aix_libpath"; then
9294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9295fi
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300
9301fi
9302
9303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304 conftest$ac_exeext conftest.$ac_ext
9305if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9306
9307 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9308 # Warning - without using the other run time loading flags,
9309 # -berok will link without error, but may produce a broken library.
9310 no_undefined_flag=' ${wl}-bernotok'
9311 allow_undefined_flag=' ${wl}-berok'
9312 # Exported symbols can be pulled into shared objects from archives
9313 whole_archive_flag_spec='$convenience'
9314 archive_cmds_need_lc=yes
9315 # This is similar to how AIX traditionally builds its shared libraries.
9316 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'
9317 fi
9318 fi
9319 ;;
9320
9321 amigaos*)
9322 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)'
9323 hardcode_libdir_flag_spec='-L$libdir'
9324 hardcode_minus_L=yes
9325 # see comment about different semantics on the GNU ld section
9326 ld_shlibs=no
9327 ;;
9328
9329 bsdi[45]*)
9330 export_dynamic_flag_spec=-rdynamic
9331 ;;
9332
9333 cygwin* | mingw* | pw32*)
9334 # When not using gcc, we currently assume that we are using
9335 # Microsoft Visual C++.
9336 # hardcode_libdir_flag_spec is actually meaningless, as there is
9337 # no search path for DLLs.
9338 hardcode_libdir_flag_spec=' '
9339 allow_undefined_flag=unsupported
9340 # Tell ltmain to make .lib files, not .a files.
9341 libext=lib
9342 # Tell ltmain to make .dll files, not .so files.
9343 shrext_cmds=".dll"
9344 # FIXME: Setting linknames here is a bad hack.
9345 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9346 # The linker will automatically build a .lib file if we build a DLL.
9347 old_archive_From_new_cmds='true'
9348 # FIXME: Should let the user specify the lib program.
9349 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9350 fix_srcfile_path='`cygpath -w "$srcfile"`'
9351 enable_shared_with_static_runtimes=yes
9352 ;;
9353
9354 darwin* | rhapsody*)
9355 case $host_os in
9356 rhapsody* | darwin1.[012])
9357 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9358 ;;
9359 *) # Darwin 1.3 on
9360 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9361 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9362 else
9363 case ${MACOSX_DEPLOYMENT_TARGET} in
9364 10.[012])
9365 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9366 ;;
9367 10.*)
9368 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9369 ;;
9370 esac
9371 fi
9372 ;;
9373 esac
9374 archive_cmds_need_lc=no
9375 hardcode_direct=no
9376 hardcode_automatic=yes
9377 hardcode_shlibpath_var=unsupported
9378 whole_archive_flag_spec=''
9379 link_all_deplibs=yes
9380 if test "$GCC" = yes ; then
9381 output_verbose_link_cmd='echo'
9382 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9383 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9385 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}'
9386 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}'
9387 else
9388 case $cc_basename in
9389 xlc*)
9390 output_verbose_link_cmd='echo'
9391 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9392 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9393 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9394 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9395 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}'
9396 ;;
9397 *)
9398 ld_shlibs=no
9399 ;;
9400 esac
9401 fi
9402 ;;
9403
9404 dgux*)
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_libdir_flag_spec='-L$libdir'
9407 hardcode_shlibpath_var=no
9408 ;;
9409
9410 freebsd1*)
9411 ld_shlibs=no
9412 ;;
9413
9414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9415 # support. Future versions do this automatically, but an explicit c++rt0.o
9416 # does not break anything, and helps significantly (at the cost of a little
9417 # extra space).
9418 freebsd2.2*)
9419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9420 hardcode_libdir_flag_spec='-R$libdir'
9421 hardcode_direct=yes
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9426 freebsd2*)
9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_direct=yes
9429 hardcode_minus_L=yes
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9434 freebsd* | dragonfly*)
9435 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9436 hardcode_libdir_flag_spec='-R$libdir'
9437 hardcode_direct=yes
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 hpux9*)
9442 if test "$GCC" = yes; then
9443 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'
9444 else
9445 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'
9446 fi
9447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9448 hardcode_libdir_separator=:
9449 hardcode_direct=yes
9450
9451 # hardcode_minus_L: Not really in the search PATH,
9452 # but as the default location of the library.
9453 hardcode_minus_L=yes
9454 export_dynamic_flag_spec='${wl}-E'
9455 ;;
9456
9457 hpux10*)
9458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460 else
9461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9462 fi
9463 if test "$with_gnu_ld" = no; then
9464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465 hardcode_libdir_separator=:
9466
9467 hardcode_direct=yes
9468 export_dynamic_flag_spec='${wl}-E'
9469
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9473 fi
9474 ;;
9475
9476 hpux11*)
9477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9478 case $host_cpu in
9479 hppa*64*)
9480 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 ;;
9482 ia64*)
9483 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9484 ;;
9485 *)
9486 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9487 ;;
9488 esac
9489 else
9490 case $host_cpu in
9491 hppa*64*)
9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 ;;
9494 ia64*)
9495 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9496 ;;
9497 *)
9498 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9499 ;;
9500 esac
9501 fi
9502 if test "$with_gnu_ld" = no; then
9503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505
9506 case $host_cpu in
9507 hppa*64*|ia64*)
9508 hardcode_libdir_flag_spec_ld='+b $libdir'
9509 hardcode_direct=no
9510 hardcode_shlibpath_var=no
9511 ;;
9512 *)
9513 hardcode_direct=yes
9514 export_dynamic_flag_spec='${wl}-E'
9515
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9519 ;;
9520 esac
9521 fi
9522 ;;
9523
9524 irix5* | irix6* | nonstopux*)
9525 if test "$GCC" = yes; then
9526 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'
9527 else
9528 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'
9529 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9530 fi
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 hardcode_libdir_separator=:
9533 link_all_deplibs=yes
9534 ;;
9535
9536 netbsd*)
9537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9539 else
9540 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9541 fi
9542 hardcode_libdir_flag_spec='-R$libdir'
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 newsos6)
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_direct=yes
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552 hardcode_shlibpath_var=no
9553 ;;
9554
9555 openbsd*)
9556 if test -f /usr/libexec/ld.so; then
9557 hardcode_direct=yes
9558 hardcode_shlibpath_var=no
9559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563 export_dynamic_flag_spec='${wl}-E'
9564 else
9565 case $host_os in
9566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_libdir_flag_spec='-R$libdir'
9569 ;;
9570 *)
9571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573 ;;
9574 esac
9575 fi
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
9580
9581 os2*)
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_minus_L=yes
9584 allow_undefined_flag=unsupported
9585 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'
9586 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9587 ;;
9588
9589 osf3*)
9590 if test "$GCC" = yes; then
9591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592 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'
9593 else
9594 allow_undefined_flag=' -expect_unresolved \*'
9595 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'
9596 fi
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 hardcode_libdir_separator=:
9599 ;;
9600
9601 osf4* | osf5*) # as osf3* with the addition of -msym flag
9602 if test "$GCC" = yes; then
9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604 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'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9609 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9610 $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'
9611
9612 # Both c and cxx compiler support -rpath directly
9613 hardcode_libdir_flag_spec='-rpath $libdir'
9614 fi
9615 hardcode_libdir_separator=:
9616 ;;
9617
9618 solaris*)
9619 no_undefined_flag=' -z text'
9620 if test "$GCC" = yes; then
9621 wlarc='${wl}'
9622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9625 else
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9630 fi
9631 hardcode_libdir_flag_spec='-R$libdir'
9632 hardcode_shlibpath_var=no
9633 case $host_os in
9634 solaris2.[0-5] | solaris2.[0-5].*) ;;
9635 *)
9636 # The compiler driver will combine and reorder linker options,
9637 # but understands `-z linker_flag'. GCC discards it without `$wl',
9638 # but is careful enough not to reorder.
9639 # Supported since Solaris 2.6 (maybe 2.5.1?)
9640 if test "$GCC" = yes; then
9641 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9642 else
9643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9644 fi
9645 ;;
9646 esac
9647 link_all_deplibs=yes
9648 ;;
9649
9650 sunos4*)
9651 if test "x$host_vendor" = xsequent; then
9652 # Use $CC to link under sequent, because it throws in some extra .o
9653 # files that make .init and .fini sections work.
9654 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655 else
9656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9657 fi
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_direct=yes
9660 hardcode_minus_L=yes
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 sysv4)
9665 case $host_vendor in
9666 sni)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_direct=yes # is this really true???
9669 ;;
9670 siemens)
9671 ## LD is ld it makes a PLAMLIB
9672 ## CC just makes a GrossModule.
9673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9674 reload_cmds='$CC -r -o $output$reload_objs'
9675 hardcode_direct=no
9676 ;;
9677 motorola)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9680 ;;
9681 esac
9682 runpath_var='LD_RUN_PATH'
9683 hardcode_shlibpath_var=no
9684 ;;
9685
9686 sysv4.3*)
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_shlibpath_var=no
9689 export_dynamic_flag_spec='-Bexport'
9690 ;;
9691
9692 sysv4*MP*)
9693 if test -d /usr/nec; then
9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_shlibpath_var=no
9696 runpath_var=LD_RUN_PATH
9697 hardcode_runpath_var=yes
9698 ld_shlibs=yes
9699 fi
9700 ;;
9701
9702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9703 no_undefined_flag='${wl}-z,text'
9704 archive_cmds_need_lc=no
9705 hardcode_shlibpath_var=no
9706 runpath_var='LD_RUN_PATH'
9707
9708 if test "$GCC" = yes; then
9709 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 else
9712 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 fi
9715 ;;
9716
9717 sysv5* | sco3.2v5* | sco5v6*)
9718 # Note: We can NOT use -z defs as we might desire, because we do not
9719 # link with -lc, and that would cause any symbols used from libc to
9720 # always be unresolved, which means just about no library would
9721 # ever link correctly. If we're not using GNU ld we use -z text
9722 # though, which does catch some bad symbols but isn't as heavy-handed
9723 # as -z defs.
9724 no_undefined_flag='${wl}-z,text'
9725 allow_undefined_flag='${wl}-z,nodefs'
9726 archive_cmds_need_lc=no
9727 hardcode_shlibpath_var=no
9728 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9729 hardcode_libdir_separator=':'
9730 link_all_deplibs=yes
9731 export_dynamic_flag_spec='${wl}-Bexport'
9732 runpath_var='LD_RUN_PATH'
9733
9734 if test "$GCC" = yes; then
9735 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 else
9738 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 fi
9741 ;;
9742
9743 uts4*)
9744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_libdir_flag_spec='-L$libdir'
9746 hardcode_shlibpath_var=no
9747 ;;
9748
9749 *)
9750 ld_shlibs=no
9751 ;;
9752 esac
9753 fi
9754
9755{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9756echo "${ECHO_T}$ld_shlibs" >&6; }
9757test "$ld_shlibs" = no && can_build_shared=no
9758
9759#
9760# Do we need to explicitly link libc?
9761#
9762case "x$archive_cmds_need_lc" in
9763x|xyes)
9764 # Assume -lc should be added
9765 archive_cmds_need_lc=yes
9766
9767 if test "$enable_shared" = yes && test "$GCC" = yes; then
9768 case $archive_cmds in
9769 *'~'*)
9770 # FIXME: we may have to deal with multi-command sequences.
9771 ;;
9772 '$CC '*)
9773 # Test whether the compiler implicitly links with -lc since on some
9774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9775 # to ld, don't add -lc before -lgcc.
9776 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9778 $rm conftest*
9779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9780
9781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782 (eval $ac_compile) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } 2>conftest.err; then
9786 soname=conftest
9787 lib=conftest
9788 libobjs=conftest.$ac_objext
9789 deplibs=
9790 wl=$lt_prog_compiler_wl
9791 pic_flag=$lt_prog_compiler_pic
9792 compiler_flags=-v
9793 linker_flags=-v
9794 verstring=
9795 output_objdir=.
9796 libname=conftest
9797 lt_save_allow_undefined_flag=$allow_undefined_flag
9798 allow_undefined_flag=
9799 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9800 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }
9804 then
9805 archive_cmds_need_lc=no
9806 else
9807 archive_cmds_need_lc=yes
9808 fi
9809 allow_undefined_flag=$lt_save_allow_undefined_flag
9810 else
9811 cat conftest.err 1>&5
9812 fi
9813 $rm conftest*
9814 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9815echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9816 ;;
9817 esac
9818 fi
9819 ;;
9820esac
9821
9822{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9823echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9824library_names_spec=
9825libname_spec='lib$name'
9826soname_spec=
9827shrext_cmds=".so"
9828postinstall_cmds=
9829postuninstall_cmds=
9830finish_cmds=
9831finish_eval=
9832shlibpath_var=
9833shlibpath_overrides_runpath=unknown
9834version_type=none
9835dynamic_linker="$host_os ld.so"
9836sys_lib_dlsearch_path_spec="/lib /usr/lib"
9837
9838if test "$GCC" = yes; then
9839 case $host_os in
9840 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9841 *) lt_awk_arg="/^libraries:/" ;;
9842 esac
9843 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9844 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9845 # if the path contains ";" then we assume it to be the separator
9846 # otherwise default to the standard path separator (i.e. ":") - it is
9847 # assumed that no part of a normal pathname contains ";" but that should
9848 # okay in the real world where ";" in dirpaths is itself problematic.
9849 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9850 else
9851 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9852 fi
9853 # Ok, now we have the path, separated by spaces, we can step through it
9854 # and add multilib dir if necessary.
9855 lt_tmp_lt_search_path_spec=
9856 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9857 for lt_sys_path in $lt_search_path_spec; do
9858 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9859 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9860 else
9861 test -d "$lt_sys_path" && \
9862 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9863 fi
9864 done
9865 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9866BEGIN {RS=" "; FS="/|\n";} {
9867 lt_foo="";
9868 lt_count=0;
9869 for (lt_i = NF; lt_i > 0; lt_i--) {
9870 if ($lt_i != "" && $lt_i != ".") {
9871 if ($lt_i == "..") {
9872 lt_count++;
9873 } else {
9874 if (lt_count == 0) {
9875 lt_foo="/" $lt_i lt_foo;
9876 } else {
9877 lt_count--;
9878 }
9879 }
9880 }
9881 }
9882 if (lt_foo != "") { lt_freq[lt_foo]++; }
9883 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9884}'`
9885 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9886else
9887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9888fi
9889need_lib_prefix=unknown
9890hardcode_into_libs=no
9891
9892# when you set need_version to no, make sure it does not cause -set_version
9893# flags to be left without arguments
9894need_version=unknown
9895
9896case $host_os in
9897aix3*)
9898 version_type=linux
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9900 shlibpath_var=LIBPATH
9901
9902 # AIX 3 has no versioning support, so we append a major version to the name.
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 ;;
9905
9906aix4* | aix5*)
9907 version_type=linux
9908 need_lib_prefix=no
9909 need_version=no
9910 hardcode_into_libs=yes
9911 if test "$host_cpu" = ia64; then
9912 # AIX 5 supports IA64
9913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 else
9916 # With GCC up to 2.95.x, collect2 would create an import file
9917 # for dependence libraries. The import file would start with
9918 # the line `#! .'. This would cause the generated library to
9919 # depend on `.', always an invalid library. This was fixed in
9920 # development snapshots of GCC prior to 3.0.
9921 case $host_os in
9922 aix4 | aix4.[01] | aix4.[01].*)
9923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9924 echo ' yes '
9925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9926 :
9927 else
9928 can_build_shared=no
9929 fi
9930 ;;
9931 esac
9932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9933 # soname into executable. Probably we can add versioning support to
9934 # collect2, so additional links can be useful in future.
9935 if test "$aix_use_runtimelinking" = yes; then
9936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9937 # instead of lib<name>.a to let people know that these are not
9938 # typical AIX shared libraries.
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 else
9941 # We preserve .a as extension for shared libraries through AIX4.2
9942 # and later when we are not doing run time linking.
9943 library_names_spec='${libname}${release}.a $libname.a'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 fi
9946 shlibpath_var=LIBPATH
9947 fi
9948 ;;
9949
9950amigaos*)
9951 library_names_spec='$libname.ixlibrary $libname.a'
9952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9953 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'
9954 ;;
9955
9956beos*)
9957 library_names_spec='${libname}${shared_ext}'
9958 dynamic_linker="$host_os ld.so"
9959 shlibpath_var=LIBRARY_PATH
9960 ;;
9961
9962bsdi[45]*)
9963 version_type=linux
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971 # the default ld.so.conf also contains /usr/contrib/lib and
9972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973 # libtool to hard-code these into programs
9974 ;;
9975
9976cygwin* | mingw* | pw32*)
9977 version_type=windows
9978 shrext_cmds=".dll"
9979 need_version=no
9980 need_lib_prefix=no
9981
9982 case $GCC,$host_os in
9983 yes,cygwin* | yes,mingw* | yes,pw32*)
9984 library_names_spec='$libname.dll.a'
9985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986 postinstall_cmds='base_file=`basename \${file}`~
9987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9988 dldir=$destdir/`dirname \$dlpath`~
9989 test -d \$dldir || mkdir -p \$dldir~
9990 $install_prog $dir/$dlname \$dldir/$dlname~
9991 chmod a+x \$dldir/$dlname'
9992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9993 dlpath=$dir/\$dldll~
9994 $rm \$dlpath'
9995 shlibpath_overrides_runpath=yes
9996
9997 case $host_os in
9998 cygwin*)
9999 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10000 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10001 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10002 ;;
10003 mingw*)
10004 # MinGW DLLs use traditional 'lib' prefix
10005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10007 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10008 # It is most probably a Windows format PATH printed by
10009 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10010 # path with ; separators, and with drive letters. We can handle the
10011 # drive letters (cygwin fileutils understands them), so leave them,
10012 # especially as we might pass files found there to a mingw objdump,
10013 # which wouldn't understand a cygwinified path. Ahh.
10014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10015 else
10016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10017 fi
10018 ;;
10019 pw32*)
10020 # pw32 DLLs use 'pw' prefix rather than 'lib'
10021 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10022 ;;
10023 esac
10024 ;;
10025
10026 *)
10027 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10028 ;;
10029 esac
10030 dynamic_linker='Win32 ld.exe'
10031 # FIXME: first we should search . and the directory the executable is in
10032 shlibpath_var=PATH
10033 ;;
10034
10035darwin* | rhapsody*)
10036 dynamic_linker="$host_os dyld"
10037 version_type=darwin
10038 need_lib_prefix=no
10039 need_version=no
10040 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10041 soname_spec='${libname}${release}${major}$shared_ext'
10042 shlibpath_overrides_runpath=yes
10043 shlibpath_var=DYLD_LIBRARY_PATH
10044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10045
10046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10048 ;;
10049
10050dgux*)
10051 version_type=linux
10052 need_lib_prefix=no
10053 need_version=no
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 ;;
10058
10059freebsd1*)
10060 dynamic_linker=no
10061 ;;
10062
10063freebsd* | dragonfly*)
10064 # DragonFly does not have aout. When/if they implement a new
10065 # versioning mechanism, adjust this.
10066 if test -x /usr/bin/objformat; then
10067 objformat=`/usr/bin/objformat`
10068 else
10069 case $host_os in
10070 freebsd[123]*) objformat=aout ;;
10071 *) objformat=elf ;;
10072 esac
10073 fi
10074 version_type=freebsd-$objformat
10075 case $version_type in
10076 freebsd-elf*)
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 need_version=no
10079 need_lib_prefix=no
10080 ;;
10081 freebsd-*)
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10083 need_version=yes
10084 ;;
10085 esac
10086 shlibpath_var=LD_LIBRARY_PATH
10087 case $host_os in
10088 freebsd2*)
10089 shlibpath_overrides_runpath=yes
10090 ;;
10091 freebsd3.[01]* | freebsdelf3.[01]*)
10092 shlibpath_overrides_runpath=yes
10093 hardcode_into_libs=yes
10094 ;;
10095 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10096 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10097 shlibpath_overrides_runpath=no
10098 hardcode_into_libs=yes
10099 ;;
10100 *) # from 4.6 on, and DragonFly
10101 shlibpath_overrides_runpath=yes
10102 hardcode_into_libs=yes
10103 ;;
10104 esac
10105 ;;
10106
10107gnu*)
10108 version_type=linux
10109 need_lib_prefix=no
10110 need_version=no
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 hardcode_into_libs=yes
10115 ;;
10116
10117hpux9* | hpux10* | hpux11*)
10118 # Give a soname corresponding to the major version so that dld.sl refuses to
10119 # link against other versions.
10120 version_type=sunos
10121 need_lib_prefix=no
10122 need_version=no
10123 case $host_cpu in
10124 ia64*)
10125 shrext_cmds='.so'
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.so"
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 if test "X$HPUX_IA64_MODE" = X32; then
10133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134 else
10135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10136 fi
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 ;;
10139 hppa*64*)
10140 shrext_cmds='.sl'
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149 ;;
10150 *)
10151 shrext_cmds='.sl'
10152 dynamic_linker="$host_os dld.sl"
10153 shlibpath_var=SHLIB_PATH
10154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 ;;
10158 esac
10159 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10160 postinstall_cmds='chmod 555 $lib'
10161 ;;
10162
10163interix[3-9]*)
10164 version_type=linux
10165 need_lib_prefix=no
10166 need_version=no
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=no
10172 hardcode_into_libs=yes
10173 ;;
10174
10175irix5* | irix6* | nonstopux*)
10176 case $host_os in
10177 nonstopux*) version_type=nonstopux ;;
10178 *)
10179 if test "$lt_cv_prog_gnu_ld" = yes; then
10180 version_type=linux
10181 else
10182 version_type=irix
10183 fi ;;
10184 esac
10185 need_lib_prefix=no
10186 need_version=no
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10189 case $host_os in
10190 irix5* | nonstopux*)
10191 libsuff= shlibsuff=
10192 ;;
10193 *)
10194 case $LD in # libtool.m4 will add one of these switches to LD
10195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10196 libsuff= shlibsuff= libmagic=32-bit;;
10197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10198 libsuff=32 shlibsuff=N32 libmagic=N32;;
10199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10201 *) libsuff= shlibsuff= libmagic=never-match;;
10202 esac
10203 ;;
10204 esac
10205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10206 shlibpath_overrides_runpath=no
10207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10209 hardcode_into_libs=yes
10210 ;;
10211
10212# No shared lib support for Linux oldld, aout, or coff.
10213linux*oldld* | linux*aout* | linux*coff*)
10214 dynamic_linker=no
10215 ;;
10216
10217# This must be Linux ELF.
10218linux* | k*bsd*-gnu)
10219 version_type=linux
10220 need_lib_prefix=no
10221 need_version=no
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=no
10227 # This implies no fast_install, which is unacceptable.
10228 # Some rework will be needed to allow for fast_install
10229 # before this can be enabled.
10230 hardcode_into_libs=yes
10231
10232 # Append ld.so.conf contents to the search path
10233 if test -f /etc/ld.so.conf; then
10234 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10236 fi
10237
10238 # We used to test for /lib/ld.so.1 and disable shared libraries on
10239 # powerpc, because MkLinux only supported shared libraries with the
10240 # GNU dynamic linker. Since this was broken with cross compilers,
10241 # most powerpc-linux boxes support dynamic linking these days and
10242 # people can always --disable-shared, the test was removed, and we
10243 # assume the GNU/Linux dynamic linker is in use.
10244 dynamic_linker='GNU/Linux ld.so'
10245 ;;
10246
10247netbsd*)
10248 version_type=sunos
10249 need_lib_prefix=no
10250 need_version=no
10251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 dynamic_linker='NetBSD (a.out) ld.so'
10255 else
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 dynamic_linker='NetBSD ld.elf_so'
10259 fi
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 hardcode_into_libs=yes
10263 ;;
10264
10265newsos6)
10266 version_type=linux
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10270 ;;
10271
10272nto-qnx*)
10273 version_type=linux
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 ;;
10281
10282openbsd*)
10283 version_type=sunos
10284 sys_lib_dlsearch_path_spec="/usr/lib"
10285 need_lib_prefix=no
10286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10287 case $host_os in
10288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10289 *) need_version=no ;;
10290 esac
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10295 case $host_os in
10296 openbsd2.[89] | openbsd2.[89].*)
10297 shlibpath_overrides_runpath=no
10298 ;;
10299 *)
10300 shlibpath_overrides_runpath=yes
10301 ;;
10302 esac
10303 else
10304 shlibpath_overrides_runpath=yes
10305 fi
10306 ;;
10307
10308os2*)
10309 libname_spec='$name'
10310 shrext_cmds=".dll"
10311 need_lib_prefix=no
10312 library_names_spec='$libname${shared_ext} $libname.a'
10313 dynamic_linker='OS/2 ld.exe'
10314 shlibpath_var=LIBPATH
10315 ;;
10316
10317osf3* | osf4* | osf5*)
10318 version_type=osf
10319 need_lib_prefix=no
10320 need_version=no
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10326 ;;
10327
10328rdos*)
10329 dynamic_linker=no
10330 ;;
10331
10332solaris*)
10333 version_type=linux
10334 need_lib_prefix=no
10335 need_version=no
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 shlibpath_overrides_runpath=yes
10340 hardcode_into_libs=yes
10341 # ldd complains unless libraries are executable
10342 postinstall_cmds='chmod +x $lib'
10343 ;;
10344
10345sunos4*)
10346 version_type=sunos
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 if test "$with_gnu_ld" = yes; then
10352 need_lib_prefix=no
10353 fi
10354 need_version=yes
10355 ;;
10356
10357sysv4 | sysv4.3*)
10358 version_type=linux
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 case $host_vendor in
10363 sni)
10364 shlibpath_overrides_runpath=no
10365 need_lib_prefix=no
10366 export_dynamic_flag_spec='${wl}-Blargedynsym'
10367 runpath_var=LD_RUN_PATH
10368 ;;
10369 siemens)
10370 need_lib_prefix=no
10371 ;;
10372 motorola)
10373 need_lib_prefix=no
10374 need_version=no
10375 shlibpath_overrides_runpath=no
10376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377 ;;
10378 esac
10379 ;;
10380
10381sysv4*MP*)
10382 if test -d /usr/nec ;then
10383 version_type=linux
10384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385 soname_spec='$libname${shared_ext}.$major'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 fi
10388 ;;
10389
10390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10391 version_type=freebsd-elf
10392 need_lib_prefix=no
10393 need_version=no
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 hardcode_into_libs=yes
10398 if test "$with_gnu_ld" = yes; then
10399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10400 shlibpath_overrides_runpath=no
10401 else
10402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10403 shlibpath_overrides_runpath=yes
10404 case $host_os in
10405 sco3.2v5*)
10406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10407 ;;
10408 esac
10409 fi
10410 sys_lib_dlsearch_path_spec='/usr/lib'
10411 ;;
10412
10413uts4*)
10414 version_type=linux
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 ;;
10419
10420*)
10421 dynamic_linker=no
10422 ;;
10423esac
10424{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10425echo "${ECHO_T}$dynamic_linker" >&6; }
10426test "$dynamic_linker" = no && can_build_shared=no
10427
10428variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10429if test "$GCC" = yes; then
10430 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10431fi
10432
10433{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10435hardcode_action=
10436if test -n "$hardcode_libdir_flag_spec" || \
10437 test -n "$runpath_var" || \
10438 test "X$hardcode_automatic" = "Xyes" ; then
10439
10440 # We can hardcode non-existant directories.
10441 if test "$hardcode_direct" != no &&
10442 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443 # have to relink, otherwise we might link with an installed library
10444 # when we should be linking with a yet-to-be-installed one
10445 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446 test "$hardcode_minus_L" != no; then
10447 # Linking always hardcodes the temporary library directory.
10448 hardcode_action=relink
10449 else
10450 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451 hardcode_action=immediate
10452 fi
10453else
10454 # We cannot hardcode anything, or else we can only hardcode existing
10455 # directories.
10456 hardcode_action=unsupported
10457fi
10458{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459echo "${ECHO_T}$hardcode_action" >&6; }
10460
10461if test "$hardcode_action" = relink; then
10462 # Fast installation is not supported
10463 enable_fast_install=no
10464elif test "$shlibpath_overrides_runpath" = yes ||
10465 test "$enable_shared" = no; then
10466 # Fast installation is not necessary
10467 enable_fast_install=needless
10468fi
10469
10470striplib=
10471old_striplib=
10472{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10474if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477 { echo "$as_me:$LINENO: result: yes" >&5
10478echo "${ECHO_T}yes" >&6; }
10479else
10480# FIXME - insert some real tests, host_os isn't really good enough
10481 case $host_os in
10482 darwin*)
10483 if test -n "$STRIP" ; then
10484 striplib="$STRIP -x"
10485 old_striplib="$STRIP -S"
10486 { echo "$as_me:$LINENO: result: yes" >&5
10487echo "${ECHO_T}yes" >&6; }
10488 else
10489 { echo "$as_me:$LINENO: result: no" >&5
10490echo "${ECHO_T}no" >&6; }
10491fi
10492 ;;
10493 *)
10494 { echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6; }
10496 ;;
10497 esac
10498fi
10499
10500if test "x$enable_dlopen" != xyes; then
10501 enable_dlopen=unknown
10502 enable_dlopen_self=unknown
10503 enable_dlopen_self_static=unknown
10504else
10505 lt_cv_dlopen=no
10506 lt_cv_dlopen_libs=
10507
10508 case $host_os in
10509 beos*)
10510 lt_cv_dlopen="load_add_on"
10511 lt_cv_dlopen_libs=
10512 lt_cv_dlopen_self=yes
10513 ;;
10514
10515 mingw* | pw32*)
10516 lt_cv_dlopen="LoadLibrary"
10517 lt_cv_dlopen_libs=
10518 ;;
10519
10520 cygwin*)
10521 lt_cv_dlopen="dlopen"
10522 lt_cv_dlopen_libs=
10523 ;;
10524
10525 darwin*)
10526 # if libdl is installed we need to link against it
10527 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10528echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10529if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532 ac_check_lib_save_LIBS=$LIBS
10533LIBS="-ldl $LIBS"
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
10540
10541/* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544#ifdef __cplusplus
10545extern "C"
10546#endif
10547char dlopen ();
10548int
10549main ()
10550{
10551return dlopen ();
10552 ;
10553 return 0;
10554}
10555_ACEOF
10556rm -f conftest.$ac_objext conftest$ac_exeext
10557if { (ac_try="$ac_link"
10558case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_link") 2>conftest.er1
10564 ac_status=$?
10565 grep -v '^ *+' conftest.er1 >conftest.err
10566 rm -f conftest.er1
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && {
10570 test -z "$ac_c_werror_flag" ||
10571 test ! -s conftest.err
10572 } && test -s conftest$ac_exeext &&
10573 $as_test_x conftest$ac_exeext; then
10574 ac_cv_lib_dl_dlopen=yes
10575else
10576 echo "$as_me: failed program was:" >&5
10577sed 's/^/| /' conftest.$ac_ext >&5
10578
10579 ac_cv_lib_dl_dlopen=no
10580fi
10581
10582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10583 conftest$ac_exeext conftest.$ac_ext
10584LIBS=$ac_check_lib_save_LIBS
10585fi
10586{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10587echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10588if test $ac_cv_lib_dl_dlopen = yes; then
10589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10590else
10591
10592 lt_cv_dlopen="dyld"
10593 lt_cv_dlopen_libs=
10594 lt_cv_dlopen_self=yes
10595
10596fi
10597
10598 ;;
10599
10600 *)
10601 { echo "$as_me:$LINENO: checking for shl_load" >&5
10602echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10603if test "${ac_cv_func_shl_load+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605else
10606 cat >conftest.$ac_ext <<_ACEOF
10607/* confdefs.h. */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h. */
10612/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10614#define shl_load innocuous_shl_load
10615
10616/* System header to define __stub macros and hopefully few prototypes,
10617 which can conflict with char shl_load (); below.
10618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10619 <limits.h> exists even on freestanding compilers. */
10620
10621#ifdef __STDC__
10622# include <limits.h>
10623#else
10624# include <assert.h>
10625#endif
10626
10627#undef shl_load
10628
10629/* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632#ifdef __cplusplus
10633extern "C"
10634#endif
10635char shl_load ();
10636/* The GNU C library defines this for functions which it implements
10637 to always fail with ENOSYS. Some functions are actually named
10638 something starting with __ and the normal name is an alias. */
10639#if defined __stub_shl_load || defined __stub___shl_load
10640choke me
10641#endif
10642
10643int
10644main ()
10645{
10646return shl_load ();
10647 ;
10648 return 0;
10649}
10650_ACEOF
10651rm -f conftest.$ac_objext conftest$ac_exeext
10652if { (ac_try="$ac_link"
10653case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_link") 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest$ac_exeext &&
10668 $as_test_x conftest$ac_exeext; then
10669 ac_cv_func_shl_load=yes
10670else
10671 echo "$as_me: failed program was:" >&5
10672sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 ac_cv_func_shl_load=no
10675fi
10676
10677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10678 conftest$ac_exeext conftest.$ac_ext
10679fi
10680{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10681echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10682if test $ac_cv_func_shl_load = yes; then
10683 lt_cv_dlopen="shl_load"
10684else
10685 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10686echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10687if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689else
10690 ac_check_lib_save_LIBS=$LIBS
10691LIBS="-ldld $LIBS"
10692cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698
10699/* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702#ifdef __cplusplus
10703extern "C"
10704#endif
10705char shl_load ();
10706int
10707main ()
10708{
10709return shl_load ();
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext conftest$ac_exeext
10715if { (ac_try="$ac_link"
10716case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10719esac
10720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_link") 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } && {
10728 test -z "$ac_c_werror_flag" ||
10729 test ! -s conftest.err
10730 } && test -s conftest$ac_exeext &&
10731 $as_test_x conftest$ac_exeext; then
10732 ac_cv_lib_dld_shl_load=yes
10733else
10734 echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
10736
10737 ac_cv_lib_dld_shl_load=no
10738fi
10739
10740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741 conftest$ac_exeext conftest.$ac_ext
10742LIBS=$ac_check_lib_save_LIBS
10743fi
10744{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10745echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10746if test $ac_cv_lib_dld_shl_load = yes; then
10747 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10748else
10749 { echo "$as_me:$LINENO: checking for dlopen" >&5
10750echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10751if test "${ac_cv_func_dlopen+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762#define dlopen innocuous_dlopen
10763
10764/* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char dlopen (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
10768
10769#ifdef __STDC__
10770# include <limits.h>
10771#else
10772# include <assert.h>
10773#endif
10774
10775#undef dlopen
10776
10777/* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780#ifdef __cplusplus
10781extern "C"
10782#endif
10783char dlopen ();
10784/* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
10787#if defined __stub_dlopen || defined __stub___dlopen
10788choke me
10789#endif
10790
10791int
10792main ()
10793{
10794return dlopen ();
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799rm -f conftest.$ac_objext conftest$ac_exeext
10800if { (ac_try="$ac_link"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_link") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest$ac_exeext &&
10816 $as_test_x conftest$ac_exeext; then
10817 ac_cv_func_dlopen=yes
10818else
10819 echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_cv_func_dlopen=no
10823fi
10824
10825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10826 conftest$ac_exeext conftest.$ac_ext
10827fi
10828{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10829echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10830if test $ac_cv_func_dlopen = yes; then
10831 lt_cv_dlopen="dlopen"
10832else
10833 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10835if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838 ac_check_lib_save_LIBS=$LIBS
10839LIBS="-ldl $LIBS"
10840cat >conftest.$ac_ext <<_ACEOF
10841/* confdefs.h. */
10842_ACEOF
10843cat confdefs.h >>conftest.$ac_ext
10844cat >>conftest.$ac_ext <<_ACEOF
10845/* end confdefs.h. */
10846
10847/* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10850#ifdef __cplusplus
10851extern "C"
10852#endif
10853char dlopen ();
10854int
10855main ()
10856{
10857return dlopen ();
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862rm -f conftest.$ac_objext conftest$ac_exeext
10863if { (ac_try="$ac_link"
10864case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_link") 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest$ac_exeext &&
10879 $as_test_x conftest$ac_exeext; then
10880 ac_cv_lib_dl_dlopen=yes
10881else
10882 echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ac_cv_lib_dl_dlopen=no
10886fi
10887
10888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10889 conftest$ac_exeext conftest.$ac_ext
10890LIBS=$ac_check_lib_save_LIBS
10891fi
10892{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10893echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10894if test $ac_cv_lib_dl_dlopen = yes; then
10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896else
10897 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10898echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10899if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901else
10902 ac_check_lib_save_LIBS=$LIBS
10903LIBS="-lsvld $LIBS"
10904cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h. */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
10909/* end confdefs.h. */
10910
10911/* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914#ifdef __cplusplus
10915extern "C"
10916#endif
10917char dlopen ();
10918int
10919main ()
10920{
10921return dlopen ();
10922 ;
10923 return 0;
10924}
10925_ACEOF
10926rm -f conftest.$ac_objext conftest$ac_exeext
10927if { (ac_try="$ac_link"
10928case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_link") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } && {
10940 test -z "$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 } && test -s conftest$ac_exeext &&
10943 $as_test_x conftest$ac_exeext; then
10944 ac_cv_lib_svld_dlopen=yes
10945else
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 ac_cv_lib_svld_dlopen=no
10950fi
10951
10952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10953 conftest$ac_exeext conftest.$ac_ext
10954LIBS=$ac_check_lib_save_LIBS
10955fi
10956{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10957echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10958if test $ac_cv_lib_svld_dlopen = yes; then
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10960else
10961 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10962echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10963if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 ac_check_lib_save_LIBS=$LIBS
10967LIBS="-ldld $LIBS"
10968cat >conftest.$ac_ext <<_ACEOF
10969/* confdefs.h. */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h. */
10974
10975/* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978#ifdef __cplusplus
10979extern "C"
10980#endif
10981char dld_link ();
10982int
10983main ()
10984{
10985return dld_link ();
10986 ;
10987 return 0;
10988}
10989_ACEOF
10990rm -f conftest.$ac_objext conftest$ac_exeext
10991if { (ac_try="$ac_link"
10992case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995esac
10996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_link") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext &&
11007 $as_test_x conftest$ac_exeext; then
11008 ac_cv_lib_dld_dld_link=yes
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 ac_cv_lib_dld_dld_link=no
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11017 conftest$ac_exeext conftest.$ac_ext
11018LIBS=$ac_check_lib_save_LIBS
11019fi
11020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11021echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11022if test $ac_cv_lib_dld_dld_link = yes; then
11023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11024fi
11025
11026
11027fi
11028
11029
11030fi
11031
11032
11033fi
11034
11035
11036fi
11037
11038
11039fi
11040
11041 ;;
11042 esac
11043
11044 if test "x$lt_cv_dlopen" != xno; then
11045 enable_dlopen=yes
11046 else
11047 enable_dlopen=no
11048 fi
11049
11050 case $lt_cv_dlopen in
11051 dlopen)
11052 save_CPPFLAGS="$CPPFLAGS"
11053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11054
11055 save_LDFLAGS="$LDFLAGS"
11056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11057
11058 save_LIBS="$LIBS"
11059 LIBS="$lt_cv_dlopen_libs $LIBS"
11060
11061 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11062echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11063if test "${lt_cv_dlopen_self+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065else
11066 if test "$cross_compiling" = yes; then :
11067 lt_cv_dlopen_self=cross
11068else
11069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11070 lt_status=$lt_dlunknown
11071 cat > conftest.$ac_ext <<EOF
11072#line 11072 "configure"
11073#include "confdefs.h"
11074
11075#if HAVE_DLFCN_H
11076#include <dlfcn.h>
11077#endif
11078
11079#include <stdio.h>
11080
11081#ifdef RTLD_GLOBAL
11082# define LT_DLGLOBAL RTLD_GLOBAL
11083#else
11084# ifdef DL_GLOBAL
11085# define LT_DLGLOBAL DL_GLOBAL
11086# else
11087# define LT_DLGLOBAL 0
11088# endif
11089#endif
11090
11091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11092 find out it does not work in some platform. */
11093#ifndef LT_DLLAZY_OR_NOW
11094# ifdef RTLD_LAZY
11095# define LT_DLLAZY_OR_NOW RTLD_LAZY
11096# else
11097# ifdef DL_LAZY
11098# define LT_DLLAZY_OR_NOW DL_LAZY
11099# else
11100# ifdef RTLD_NOW
11101# define LT_DLLAZY_OR_NOW RTLD_NOW
11102# else
11103# ifdef DL_NOW
11104# define LT_DLLAZY_OR_NOW DL_NOW
11105# else
11106# define LT_DLLAZY_OR_NOW 0
11107# endif
11108# endif
11109# endif
11110# endif
11111#endif
11112
11113#ifdef __cplusplus
11114extern "C" void exit (int);
11115#endif
11116
11117void fnord() { int i=42;}
11118int main ()
11119{
11120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121 int status = $lt_dlunknown;
11122
11123 if (self)
11124 {
11125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11127 /* dlclose (self); */
11128 }
11129 else
11130 puts (dlerror ());
11131
11132 exit (status);
11133}
11134EOF
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11140 (./conftest; exit; ) >&5 2>/dev/null
11141 lt_status=$?
11142 case x$lt_status in
11143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11146 esac
11147 else :
11148 # compilation failed
11149 lt_cv_dlopen_self=no
11150 fi
11151fi
11152rm -fr conftest*
11153
11154
11155fi
11156{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11157echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11158
11159 if test "x$lt_cv_dlopen_self" = xyes; then
11160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11161 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11162echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11163if test "${lt_cv_dlopen_self_static+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11165else
11166 if test "$cross_compiling" = yes; then :
11167 lt_cv_dlopen_self_static=cross
11168else
11169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11170 lt_status=$lt_dlunknown
11171 cat > conftest.$ac_ext <<EOF
11172#line 11172 "configure"
11173#include "confdefs.h"
11174
11175#if HAVE_DLFCN_H
11176#include <dlfcn.h>
11177#endif
11178
11179#include <stdio.h>
11180
11181#ifdef RTLD_GLOBAL
11182# define LT_DLGLOBAL RTLD_GLOBAL
11183#else
11184# ifdef DL_GLOBAL
11185# define LT_DLGLOBAL DL_GLOBAL
11186# else
11187# define LT_DLGLOBAL 0
11188# endif
11189#endif
11190
11191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11192 find out it does not work in some platform. */
11193#ifndef LT_DLLAZY_OR_NOW
11194# ifdef RTLD_LAZY
11195# define LT_DLLAZY_OR_NOW RTLD_LAZY
11196# else
11197# ifdef DL_LAZY
11198# define LT_DLLAZY_OR_NOW DL_LAZY
11199# else
11200# ifdef RTLD_NOW
11201# define LT_DLLAZY_OR_NOW RTLD_NOW
11202# else
11203# ifdef DL_NOW
11204# define LT_DLLAZY_OR_NOW DL_NOW
11205# else
11206# define LT_DLLAZY_OR_NOW 0
11207# endif
11208# endif
11209# endif
11210# endif
11211#endif
11212
11213#ifdef __cplusplus
11214extern "C" void exit (int);
11215#endif
11216
11217void fnord() { int i=42;}
11218int main ()
11219{
11220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11221 int status = $lt_dlunknown;
11222
11223 if (self)
11224 {
11225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11227 /* dlclose (self); */
11228 }
11229 else
11230 puts (dlerror ());
11231
11232 exit (status);
11233}
11234EOF
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11240 (./conftest; exit; ) >&5 2>/dev/null
11241 lt_status=$?
11242 case x$lt_status in
11243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11246 esac
11247 else :
11248 # compilation failed
11249 lt_cv_dlopen_self_static=no
11250 fi
11251fi
11252rm -fr conftest*
11253
11254
11255fi
11256{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11257echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11258 fi
11259
11260 CPPFLAGS="$save_CPPFLAGS"
11261 LDFLAGS="$save_LDFLAGS"
11262 LIBS="$save_LIBS"
11263 ;;
11264 esac
11265
11266 case $lt_cv_dlopen_self in
11267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11268 *) enable_dlopen_self=unknown ;;
11269 esac
11270
11271 case $lt_cv_dlopen_self_static in
11272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11273 *) enable_dlopen_self_static=unknown ;;
11274 esac
11275fi
11276
11277
11278# Report which library types will actually be built
11279{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11280echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11281{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11282echo "${ECHO_T}$can_build_shared" >&6; }
11283
11284{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11285echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11286test "$can_build_shared" = "no" && enable_shared=no
11287
11288# On AIX, shared libraries and static libraries use the same namespace, and
11289# are all built from PIC.
11290case $host_os in
11291aix3*)
11292 test "$enable_shared" = yes && enable_static=no
11293 if test -n "$RANLIB"; then
11294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11295 postinstall_cmds='$RANLIB $lib'
11296 fi
11297 ;;
11298
11299aix4* | aix5*)
11300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11301 test "$enable_shared" = yes && enable_static=no
11302 fi
11303 ;;
11304esac
11305{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11306echo "${ECHO_T}$enable_shared" >&6; }
11307
11308{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11309echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11310# Make sure either enable_shared or enable_static is yes.
11311test "$enable_shared" = yes || enable_static=yes
11312{ echo "$as_me:$LINENO: result: $enable_static" >&5
11313echo "${ECHO_T}$enable_static" >&6; }
11314
11315# The else clause should only fire when bootstrapping the
11316# libtool distribution, otherwise you forgot to ship ltmain.sh
11317# with your package, and you will get complaints that there are
11318# no rules to generate ltmain.sh.
11319if test -f "$ltmain"; then
11320 # See if we are running on zsh, and set the options which allow our commands through
11321 # without removal of \ escapes.
11322 if test -n "${ZSH_VERSION+set}" ; then
11323 setopt NO_GLOB_SUBST
11324 fi
11325 # Now quote all the things that may contain metacharacters while being
11326 # careful not to overquote the AC_SUBSTed values. We take copies of the
11327 # variables and quote the copies for generation of the libtool script.
11328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11329 SED SHELL STRIP \
11330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11332 deplibs_check_method reload_flag reload_cmds need_locks \
11333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11334 lt_cv_sys_global_symbol_to_c_name_address \
11335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11336 old_postinstall_cmds old_postuninstall_cmds \
11337 compiler \
11338 CC \
11339 LD \
11340 lt_prog_compiler_wl \
11341 lt_prog_compiler_pic \
11342 lt_prog_compiler_static \
11343 lt_prog_compiler_no_builtin_flag \
11344 export_dynamic_flag_spec \
11345 thread_safe_flag_spec \
11346 whole_archive_flag_spec \
11347 enable_shared_with_static_runtimes \
11348 old_archive_cmds \
11349 old_archive_from_new_cmds \
11350 predep_objects \
11351 postdep_objects \
11352 predeps \
11353 postdeps \
11354 compiler_lib_search_path \
11355 archive_cmds \
11356 archive_expsym_cmds \
11357 postinstall_cmds \
11358 postuninstall_cmds \
11359 old_archive_from_expsyms_cmds \
11360 allow_undefined_flag \
11361 no_undefined_flag \
11362 export_symbols_cmds \
11363 hardcode_libdir_flag_spec \
11364 hardcode_libdir_flag_spec_ld \
11365 hardcode_libdir_separator \
11366 hardcode_automatic \
11367 module_cmds \
11368 module_expsym_cmds \
11369 lt_cv_prog_compiler_c_o \
11370 fix_srcfile_path \
11371 exclude_expsyms \
11372 include_expsyms; do
11373
11374 case $var in
11375 old_archive_cmds | \
11376 old_archive_from_new_cmds | \
11377 archive_cmds | \
11378 archive_expsym_cmds | \
11379 module_cmds | \
11380 module_expsym_cmds | \
11381 old_archive_from_expsyms_cmds | \
11382 export_symbols_cmds | \
11383 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11384 postinstall_cmds | postuninstall_cmds | \
11385 old_postinstall_cmds | old_postuninstall_cmds | \
11386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11387 # Double-quote double-evaled strings.
11388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11389 ;;
11390 *)
11391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11392 ;;
11393 esac
11394 done
11395
11396 case $lt_echo in
11397 *'\$0 --fallback-echo"')
11398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11399 ;;
11400 esac
11401
11402cfgfile="${ofile}T"
11403 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11404 $rm -f "$cfgfile"
11405 { echo "$as_me:$LINENO: creating $ofile" >&5
11406echo "$as_me: creating $ofile" >&6;}
11407
11408 cat <<__EOF__ >> "$cfgfile"
11409#! $SHELL
11410
11411# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11412# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11413# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11414#
11415# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11416# Free Software Foundation, Inc.
11417#
11418# This file is part of GNU Libtool:
11419# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11420#
11421# This program is free software; you can redistribute it and/or modify
11422# it under the terms of the GNU General Public License as published by
11423# the Free Software Foundation; either version 2 of the License, or
11424# (at your option) any later version.
11425#
11426# This program is distributed in the hope that it will be useful, but
11427# WITHOUT ANY WARRANTY; without even the implied warranty of
11428# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11429# General Public License for more details.
11430#
11431# You should have received a copy of the GNU General Public License
11432# along with this program; if not, write to the Free Software
11433# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11434#
11435# As a special exception to the GNU General Public License, if you
11436# distribute this file as part of a program that contains a
11437# configuration script generated by Autoconf, you may include it under
11438# the same distribution terms that you use for the rest of that program.
11439
11440# A sed program that does not truncate output.
11441SED=$lt_SED
11442
11443# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11444Xsed="$SED -e 1s/^X//"
11445
11446# The HP-UX ksh and POSIX shell print the target directory to stdout
11447# if CDPATH is set.
11448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11449
11450# The names of the tagged configurations supported by this script.
11451available_tags=
11452
11453# ### BEGIN LIBTOOL CONFIG
11454
11455# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11456
11457# Shell to use when invoking shell scripts.
11458SHELL=$lt_SHELL
11459
11460# Whether or not to build shared libraries.
11461build_libtool_libs=$enable_shared
11462
11463# Whether or not to build static libraries.
11464build_old_libs=$enable_static
11465
11466# Whether or not to add -lc for building shared libraries.
11467build_libtool_need_lc=$archive_cmds_need_lc
11468
11469# Whether or not to disallow shared libs when runtime libs are static
11470allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11471
11472# Whether or not to optimize for fast installation.
11473fast_install=$enable_fast_install
11474
11475# The host system.
11476host_alias=$host_alias
11477host=$host
11478host_os=$host_os
11479
11480# The build system.
11481build_alias=$build_alias
11482build=$build
11483build_os=$build_os
11484
11485# An echo program that does not interpret backslashes.
11486echo=$lt_echo
11487
11488# The archiver.
11489AR=$lt_AR
11490AR_FLAGS=$lt_AR_FLAGS
11491
11492# A C compiler.
11493LTCC=$lt_LTCC
11494
11495# LTCC compiler flags.
11496LTCFLAGS=$lt_LTCFLAGS
11497
11498# A language-specific compiler.
11499CC=$lt_compiler
11500
11501# Is the compiler the GNU C compiler?
11502with_gcc=$GCC
11503
11504# An ERE matcher.
11505EGREP=$lt_EGREP
11506
11507# The linker used to build libraries.
11508LD=$lt_LD
11509
11510# Whether we need hard or soft links.
11511LN_S=$lt_LN_S
11512
11513# A BSD-compatible nm program.
11514NM=$lt_NM
11515
11516# A symbol stripping program
11517STRIP=$lt_STRIP
11518
11519# Used to examine libraries when file_magic_cmd begins "file"
11520MAGIC_CMD=$MAGIC_CMD
11521
11522# Used on cygwin: DLL creation program.
11523DLLTOOL="$DLLTOOL"
11524
11525# Used on cygwin: object dumper.
11526OBJDUMP="$OBJDUMP"
11527
11528# Used on cygwin: assembler.
11529AS="$AS"
11530
11531# The name of the directory that contains temporary libtool files.
11532objdir=$objdir
11533
11534# How to create reloadable object files.
11535reload_flag=$lt_reload_flag
11536reload_cmds=$lt_reload_cmds
11537
11538# How to pass a linker flag through the compiler.
11539wl=$lt_lt_prog_compiler_wl
11540
11541# Object file suffix (normally "o").
11542objext="$ac_objext"
11543
11544# Old archive suffix (normally "a").
11545libext="$libext"
11546
11547# Shared library suffix (normally ".so").
11548shrext_cmds='$shrext_cmds'
11549
11550# Executable file suffix (normally "").
11551exeext="$exeext"
11552
11553# Additional compiler flags for building library objects.
11554pic_flag=$lt_lt_prog_compiler_pic
11555pic_mode=$pic_mode
11556
11557# What is the maximum length of a command?
11558max_cmd_len=$lt_cv_sys_max_cmd_len
11559
11560# Does compiler simultaneously support -c and -o options?
11561compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11562
11563# Must we lock files when doing compilation?
11564need_locks=$lt_need_locks
11565
11566# Do we need the lib prefix for modules?
11567need_lib_prefix=$need_lib_prefix
11568
11569# Do we need a version for libraries?
11570need_version=$need_version
11571
11572# Whether dlopen is supported.
11573dlopen_support=$enable_dlopen
11574
11575# Whether dlopen of programs is supported.
11576dlopen_self=$enable_dlopen_self
11577
11578# Whether dlopen of statically linked programs is supported.
11579dlopen_self_static=$enable_dlopen_self_static
11580
11581# Compiler flag to prevent dynamic linking.
11582link_static_flag=$lt_lt_prog_compiler_static
11583
11584# Compiler flag to turn off builtin functions.
11585no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11586
11587# Compiler flag to allow reflexive dlopens.
11588export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11589
11590# Compiler flag to generate shared objects directly from archives.
11591whole_archive_flag_spec=$lt_whole_archive_flag_spec
11592
11593# Compiler flag to generate thread-safe objects.
11594thread_safe_flag_spec=$lt_thread_safe_flag_spec
11595
11596# Library versioning type.
11597version_type=$version_type
11598
11599# Format of library name prefix.
11600libname_spec=$lt_libname_spec
11601
11602# List of archive names. First name is the real one, the rest are links.
11603# The last name is the one that the linker finds with -lNAME.
11604library_names_spec=$lt_library_names_spec
11605
11606# The coded name of the library, if different from the real name.
11607soname_spec=$lt_soname_spec
11608
11609# Commands used to build and install an old-style archive.
11610RANLIB=$lt_RANLIB
11611old_archive_cmds=$lt_old_archive_cmds
11612old_postinstall_cmds=$lt_old_postinstall_cmds
11613old_postuninstall_cmds=$lt_old_postuninstall_cmds
11614
11615# Create an old-style archive from a shared archive.
11616old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11617
11618# Create a temporary old-style archive to link instead of a shared archive.
11619old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11620
11621# Commands used to build and install a shared archive.
11622archive_cmds=$lt_archive_cmds
11623archive_expsym_cmds=$lt_archive_expsym_cmds
11624postinstall_cmds=$lt_postinstall_cmds
11625postuninstall_cmds=$lt_postuninstall_cmds
11626
11627# Commands used to build a loadable module (assumed same as above if empty)
11628module_cmds=$lt_module_cmds
11629module_expsym_cmds=$lt_module_expsym_cmds
11630
11631# Commands to strip libraries.
11632old_striplib=$lt_old_striplib
11633striplib=$lt_striplib
11634
11635# Dependencies to place before the objects being linked to create a
11636# shared library.
11637predep_objects=$lt_predep_objects
11638
11639# Dependencies to place after the objects being linked to create a
11640# shared library.
11641postdep_objects=$lt_postdep_objects
11642
11643# Dependencies to place before the objects being linked to create a
11644# shared library.
11645predeps=$lt_predeps
11646
11647# Dependencies to place after the objects being linked to create a
11648# shared library.
11649postdeps=$lt_postdeps
11650
11651# The library search path used internally by the compiler when linking
11652# a shared library.
11653compiler_lib_search_path=$lt_compiler_lib_search_path
11654
11655# Method to check whether dependent libraries are shared objects.
11656deplibs_check_method=$lt_deplibs_check_method
11657
11658# Command to use when deplibs_check_method == file_magic.
11659file_magic_cmd=$lt_file_magic_cmd
11660
11661# Flag that allows shared libraries with undefined symbols to be built.
11662allow_undefined_flag=$lt_allow_undefined_flag
11663
11664# Flag that forces no undefined symbols.
11665no_undefined_flag=$lt_no_undefined_flag
11666
11667# Commands used to finish a libtool library installation in a directory.
11668finish_cmds=$lt_finish_cmds
11669
11670# Same as above, but a single script fragment to be evaled but not shown.
11671finish_eval=$lt_finish_eval
11672
11673# Take the output of nm and produce a listing of raw symbols and C names.
11674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11675
11676# Transform the output of nm in a proper C declaration
11677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11678
11679# Transform the output of nm in a C name address pair
11680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11681
11682# This is the shared library runtime path variable.
11683runpath_var=$runpath_var
11684
11685# This is the shared library path variable.
11686shlibpath_var=$shlibpath_var
11687
11688# Is shlibpath searched before the hard-coded library search path?
11689shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11690
11691# How to hardcode a shared library path into an executable.
11692hardcode_action=$hardcode_action
11693
11694# Whether we should hardcode library paths into libraries.
11695hardcode_into_libs=$hardcode_into_libs
11696
11697# Flag to hardcode \$libdir into a binary during linking.
11698# This must work even if \$libdir does not exist.
11699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11700
11701# If ld is used when linking, flag to hardcode \$libdir into
11702# a binary during linking. This must work even if \$libdir does
11703# not exist.
11704hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11705
11706# Whether we need a single -rpath flag with a separated argument.
11707hardcode_libdir_separator=$lt_hardcode_libdir_separator
11708
11709# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11710# resulting binary.
11711hardcode_direct=$hardcode_direct
11712
11713# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11714# resulting binary.
11715hardcode_minus_L=$hardcode_minus_L
11716
11717# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11718# the resulting binary.
11719hardcode_shlibpath_var=$hardcode_shlibpath_var
11720
11721# Set to yes if building a shared library automatically hardcodes DIR into the library
11722# and all subsequent libraries and executables linked against it.
11723hardcode_automatic=$hardcode_automatic
11724
11725# Variables whose values should be saved in libtool wrapper scripts and
11726# restored at relink time.
11727variables_saved_for_relink="$variables_saved_for_relink"
11728
11729# Whether libtool must link a program against all its dependency libraries.
11730link_all_deplibs=$link_all_deplibs
11731
11732# Compile-time system search path for libraries
11733sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11734
11735# Run-time system search path for libraries
11736sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11737
11738# Fix the shell variable \$srcfile for the compiler.
11739fix_srcfile_path=$lt_fix_srcfile_path
11740
11741# Set to yes if exported symbols are required.
11742always_export_symbols=$always_export_symbols
11743
11744# The commands to list exported symbols.
11745export_symbols_cmds=$lt_export_symbols_cmds
11746
11747# The commands to extract the exported symbol list from a shared archive.
11748extract_expsyms_cmds=$lt_extract_expsyms_cmds
11749
11750# Symbols that should not be listed in the preloaded symbols.
11751exclude_expsyms=$lt_exclude_expsyms
11752
11753# Symbols that must always be exported.
11754include_expsyms=$lt_include_expsyms
11755
11756# ### END LIBTOOL CONFIG
11757
11758__EOF__
11759
11760
11761 case $host_os in
11762 aix3*)
11763 cat <<\EOF >> "$cfgfile"
11764
11765# AIX sometimes has problems with the GCC collect2 program. For some
11766# reason, if we set the COLLECT_NAMES environment variable, the problems
11767# vanish in a puff of smoke.
11768if test "X${COLLECT_NAMES+set}" != Xset; then
11769 COLLECT_NAMES=
11770 export COLLECT_NAMES
11771fi
11772EOF
11773 ;;
11774 esac
11775
11776 # We use sed instead of cat because bash on DJGPP gets confused if
11777 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11778 # text mode, it properly converts lines to CR/LF. This bash problem
11779 # is reportedly fixed, but why not run on old versions too?
11780 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11781
11782 mv -f "$cfgfile" "$ofile" || \
11783 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11784 chmod +x "$ofile"
11785
11786else
11787 # If there is no Makefile yet, we rely on a make rule to execute
11788 # `config.status --recheck' to rerun these tests and create the
11789 # libtool script then.
11790 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11791 if test -f "$ltmain_in"; then
11792 test -f Makefile && make "$ltmain"
11793 fi
11794fi
11795
11796
11797ac_ext=c
11798ac_cpp='$CPP $CPPFLAGS'
11799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11801ac_compiler_gnu=$ac_cv_c_compiler_gnu
11802
11803CC="$lt_save_CC"
11804
11805
11806# Check whether --with-tags was given.
11807if test "${with_tags+set}" = set; then
11808 withval=$with_tags; tagnames="$withval"
11809fi
11810
11811
11812if test -f "$ltmain" && test -n "$tagnames"; then
11813 if test ! -f "${ofile}"; then
11814 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11815echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11816 fi
11817
11818 if test -z "$LTCC"; then
11819 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11820 if test -z "$LTCC"; then
11821 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11822echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11823 else
11824 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11825echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11826 fi
11827 fi
11828 if test -z "$LTCFLAGS"; then
11829 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11830 fi
11831
11832 # Extract list of available tagged configurations in $ofile.
11833 # Note that this assumes the entire list is on one line.
11834 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11835
11836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11837 for tagname in $tagnames; do
11838 IFS="$lt_save_ifs"
11839 # Check whether tagname contains only valid characters
11840 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11841 "") ;;
11842 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11843echo "$as_me: error: invalid tag name: $tagname" >&2;}
11844 { (exit 1); exit 1; }; }
11845 ;;
11846 esac
11847
11848 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11849 then
11850 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11851echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11852 { (exit 1); exit 1; }; }
11853 fi
11854
11855 # Update the list of available tags.
11856 if test -n "$tagname"; then
11857 echo appending configuration tag \"$tagname\" to $ofile
11858
11859 case $tagname in
11860 CXX)
11861 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11862 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11863 (test "X$CXX" != "Xg++"))) ; then
11864 ac_ext=cpp
11865ac_cpp='$CXXCPP $CPPFLAGS'
11866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11869
11870
11871
11872
11873archive_cmds_need_lc_CXX=no
11874allow_undefined_flag_CXX=
11875always_export_symbols_CXX=no
11876archive_expsym_cmds_CXX=
11877export_dynamic_flag_spec_CXX=
11878hardcode_direct_CXX=no
11879hardcode_libdir_flag_spec_CXX=
11880hardcode_libdir_flag_spec_ld_CXX=
11881hardcode_libdir_separator_CXX=
11882hardcode_minus_L_CXX=no
11883hardcode_shlibpath_var_CXX=unsupported
11884hardcode_automatic_CXX=no
11885module_cmds_CXX=
11886module_expsym_cmds_CXX=
11887link_all_deplibs_CXX=unknown
11888old_archive_cmds_CXX=$old_archive_cmds
11889no_undefined_flag_CXX=
11890whole_archive_flag_spec_CXX=
11891enable_shared_with_static_runtimes_CXX=no
11892
11893# Dependencies to place before and after the object being linked:
11894predep_objects_CXX=
11895postdep_objects_CXX=
11896predeps_CXX=
11897postdeps_CXX=
11898compiler_lib_search_path_CXX=
11899
11900# Source file extension for C++ test sources.
11901ac_ext=cpp
11902
11903# Object file extension for compiled C++ test sources.
11904objext=o
11905objext_CXX=$objext
11906
11907# Code to be used in simple compile tests
11908lt_simple_compile_test_code="int some_variable = 0;"
11909
11910# Code to be used in simple link tests
11911lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11912
11913# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11914
11915# If no C compiler was specified, use CC.
11916LTCC=${LTCC-"$CC"}
11917
11918# If no C compiler flags were specified, use CFLAGS.
11919LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11920
11921# Allow CC to be a program name with arguments.
11922compiler=$CC
11923
11924
11925# save warnings/boilerplate of simple test code
11926ac_outfile=conftest.$ac_objext
11927echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11929_lt_compiler_boilerplate=`cat conftest.err`
11930$rm conftest*
11931
11932ac_outfile=conftest.$ac_objext
11933echo "$lt_simple_link_test_code" >conftest.$ac_ext
11934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11935_lt_linker_boilerplate=`cat conftest.err`
11936$rm conftest*
11937
11938
11939# Allow CC to be a program name with arguments.
11940lt_save_CC=$CC
11941lt_save_LD=$LD
11942lt_save_GCC=$GCC
11943GCC=$GXX
11944lt_save_with_gnu_ld=$with_gnu_ld
11945lt_save_path_LD=$lt_cv_path_LD
11946if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11947 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11948else
11949 $as_unset lt_cv_prog_gnu_ld
11950fi
11951if test -n "${lt_cv_path_LDCXX+set}"; then
11952 lt_cv_path_LD=$lt_cv_path_LDCXX
11953else
11954 $as_unset lt_cv_path_LD
11955fi
11956test -z "${LDCXX+set}" || LD=$LDCXX
11957CC=${CXX-"c++"}
11958compiler=$CC
11959compiler_CXX=$CC
11960for cc_temp in $compiler""; do
11961 case $cc_temp in
11962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11964 \-*) ;;
11965 *) break;;
11966 esac
11967done
11968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11969
11970
11971# We don't want -fno-exception wen compiling C++ code, so set the
11972# no_builtin_flag separately
11973if test "$GXX" = yes; then
11974 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11975else
11976 lt_prog_compiler_no_builtin_flag_CXX=
11977fi
11978
11979if test "$GXX" = yes; then
11980 # Set up default GNU C++ configuration
11981
11982
11983# Check whether --with-gnu-ld was given.
11984if test "${with_gnu_ld+set}" = set; then
11985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11986else
11987 with_gnu_ld=no
11988fi
11989
11990ac_prog=ld
11991if test "$GCC" = yes; then
11992 # Check if gcc -print-prog-name=ld gives a path.
11993 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11994echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11995 case $host in
11996 *-*-mingw*)
11997 # gcc leaves a trailing carriage return which upsets mingw
11998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11999 *)
12000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12001 esac
12002 case $ac_prog in
12003 # Accept absolute paths.
12004 [\\/]* | ?:[\\/]*)
12005 re_direlt='/[^/][^/]*/\.\./'
12006 # Canonicalize the pathname of ld
12007 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12008 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12009 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12010 done
12011 test -z "$LD" && LD="$ac_prog"
12012 ;;
12013 "")
12014 # If it fails, then pretend we aren't using GCC.
12015 ac_prog=ld
12016 ;;
12017 *)
12018 # If it is relative, then search for the first ld in PATH.
12019 with_gnu_ld=unknown
12020 ;;
12021 esac
12022elif test "$with_gnu_ld" = yes; then
12023 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12024echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12025else
12026 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12027echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12028fi
12029if test "${lt_cv_path_LD+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 if test -z "$LD"; then
12033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12034 for ac_dir in $PATH; do
12035 IFS="$lt_save_ifs"
12036 test -z "$ac_dir" && ac_dir=.
12037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12038 lt_cv_path_LD="$ac_dir/$ac_prog"
12039 # Check to see if the program is GNU ld. I'd rather use --version,
12040 # but apparently some variants of GNU ld only accept -v.
12041 # Break only if it was the GNU/non-GNU ld that we prefer.
12042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12043 *GNU* | *'with BFD'*)
12044 test "$with_gnu_ld" != no && break
12045 ;;
12046 *)
12047 test "$with_gnu_ld" != yes && break
12048 ;;
12049 esac
12050 fi
12051 done
12052 IFS="$lt_save_ifs"
12053else
12054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12055fi
12056fi
12057
12058LD="$lt_cv_path_LD"
12059if test -n "$LD"; then
12060 { echo "$as_me:$LINENO: result: $LD" >&5
12061echo "${ECHO_T}$LD" >&6; }
12062else
12063 { echo "$as_me:$LINENO: result: no" >&5
12064echo "${ECHO_T}no" >&6; }
12065fi
12066test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12067echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12068 { (exit 1); exit 1; }; }
12069{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12070echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12071if test "${lt_cv_prog_gnu_ld+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12075case `$LD -v 2>&1 </dev/null` in
12076*GNU* | *'with BFD'*)
12077 lt_cv_prog_gnu_ld=yes
12078 ;;
12079*)
12080 lt_cv_prog_gnu_ld=no
12081 ;;
12082esac
12083fi
12084{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12085echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12086with_gnu_ld=$lt_cv_prog_gnu_ld
12087
12088
12089
12090 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12091 # archiving commands below assume that GNU ld is being used.
12092 if test "$with_gnu_ld" = yes; then
12093 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12094 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'
12095
12096 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12097 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12098
12099 # If archive_cmds runs LD, not CC, wlarc should be empty
12100 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12101 # investigate it a little bit more. (MM)
12102 wlarc='${wl}'
12103
12104 # ancient GNU ld didn't support --whole-archive et. al.
12105 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12106 grep 'no-whole-archive' > /dev/null; then
12107 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12108 else
12109 whole_archive_flag_spec_CXX=
12110 fi
12111 else
12112 with_gnu_ld=no
12113 wlarc=
12114
12115 # A generic and very simple default shared library creation
12116 # command for GNU C++ for the case where it uses the native
12117 # linker, instead of GNU ld. If possible, this setting should
12118 # overridden to take advantage of the native linker features on
12119 # the platform it is being used on.
12120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12121 fi
12122
12123 # Commands to make compiler produce verbose output that lists
12124 # what "hidden" libraries, object files and flags are used when
12125 # linking a shared library.
12126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12127
12128else
12129 GXX=no
12130 with_gnu_ld=no
12131 wlarc=
12132fi
12133
12134# PORTME: fill in a description of your system's C++ link characteristics
12135{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12136echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12137ld_shlibs_CXX=yes
12138case $host_os in
12139 aix3*)
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 ;;
12143 aix4* | aix5*)
12144 if test "$host_cpu" = ia64; then
12145 # On IA64, the linker does run time linking by default, so we don't
12146 # have to do anything special.
12147 aix_use_runtimelinking=no
12148 exp_sym_flag='-Bexport'
12149 no_entry_flag=""
12150 else
12151 aix_use_runtimelinking=no
12152
12153 # Test if we are trying to use run time linking or normal
12154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12155 # need to do runtime linking.
12156 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12157 for ld_flag in $LDFLAGS; do
12158 case $ld_flag in
12159 *-brtl*)
12160 aix_use_runtimelinking=yes
12161 break
12162 ;;
12163 esac
12164 done
12165 ;;
12166 esac
12167
12168 exp_sym_flag='-bexport'
12169 no_entry_flag='-bnoentry'
12170 fi
12171
12172 # When large executables or shared objects are built, AIX ld can
12173 # have problems creating the table of contents. If linking a library
12174 # or program results in "error TOC overflow" add -mminimal-toc to
12175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12177
12178 archive_cmds_CXX=''
12179 hardcode_direct_CXX=yes
12180 hardcode_libdir_separator_CXX=':'
12181 link_all_deplibs_CXX=yes
12182
12183 if test "$GXX" = yes; then
12184 case $host_os in aix4.[012]|aix4.[012].*)
12185 # We only want to do this on AIX 4.2 and lower, the check
12186 # below for broken collect2 doesn't work under 4.3+
12187 collect2name=`${CC} -print-prog-name=collect2`
12188 if test -f "$collect2name" && \
12189 strings "$collect2name" | grep resolve_lib_name >/dev/null
12190 then
12191 # We have reworked collect2
12192 :
12193 else
12194 # We have old collect2
12195 hardcode_direct_CXX=unsupported
12196 # It fails to find uninstalled libraries when the uninstalled
12197 # path is not listed in the libpath. Setting hardcode_minus_L
12198 # to unsupported forces relinking
12199 hardcode_minus_L_CXX=yes
12200 hardcode_libdir_flag_spec_CXX='-L$libdir'
12201 hardcode_libdir_separator_CXX=
12202 fi
12203 ;;
12204 esac
12205 shared_flag='-shared'
12206 if test "$aix_use_runtimelinking" = yes; then
12207 shared_flag="$shared_flag "'${wl}-G'
12208 fi
12209 else
12210 # not using gcc
12211 if test "$host_cpu" = ia64; then
12212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12213 # chokes on -Wl,-G. The following line is correct:
12214 shared_flag='-G'
12215 else
12216 if test "$aix_use_runtimelinking" = yes; then
12217 shared_flag='${wl}-G'
12218 else
12219 shared_flag='${wl}-bM:SRE'
12220 fi
12221 fi
12222 fi
12223
12224 # It seems that -bexpall does not export symbols beginning with
12225 # underscore (_), so it is better to generate a list of symbols to export.
12226 always_export_symbols_CXX=yes
12227 if test "$aix_use_runtimelinking" = yes; then
12228 # Warning - without using the other runtime loading flags (-brtl),
12229 # -berok will link without error, but may produce a broken library.
12230 allow_undefined_flag_CXX='-berok'
12231 # Determine the default libpath from the value encoded in an empty executable.
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238
12239int
12240main ()
12241{
12242
12243 ;
12244 return 0;
12245}
12246_ACEOF
12247rm -f conftest.$ac_objext conftest$ac_exeext
12248if { (ac_try="$ac_link"
12249case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252esac
12253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_cxx_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest$ac_exeext &&
12264 $as_test_x conftest$ac_exeext; then
12265
12266lt_aix_libpath_sed='
12267 /Import File Strings/,/^$/ {
12268 /^0/ {
12269 s/^0 *\(.*\)$/\1/
12270 p
12271 }
12272 }'
12273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12274# Check for a 64-bit object if we didn't find anything.
12275if test -z "$aix_libpath"; then
12276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12277fi
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282
12283fi
12284
12285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286 conftest$ac_exeext conftest.$ac_ext
12287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12288
12289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12290
12291 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"
12292 else
12293 if test "$host_cpu" = ia64; then
12294 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12295 allow_undefined_flag_CXX="-z nodefs"
12296 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"
12297 else
12298 # Determine the default libpath from the value encoded in an empty executable.
12299 cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h. */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h. */
12305
12306int
12307main ()
12308{
12309
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_cxx_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332
12333lt_aix_libpath_sed='
12334 /Import File Strings/,/^$/ {
12335 /^0/ {
12336 s/^0 *\(.*\)$/\1/
12337 p
12338 }
12339 }'
12340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12341# Check for a 64-bit object if we didn't find anything.
12342if test -z "$aix_libpath"; then
12343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12344fi
12345else
12346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349
12350fi
12351
12352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12353 conftest$ac_exeext conftest.$ac_ext
12354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12355
12356 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12357 # Warning - without using the other run time loading flags,
12358 # -berok will link without error, but may produce a broken library.
12359 no_undefined_flag_CXX=' ${wl}-bernotok'
12360 allow_undefined_flag_CXX=' ${wl}-berok'
12361 # Exported symbols can be pulled into shared objects from archives
12362 whole_archive_flag_spec_CXX='$convenience'
12363 archive_cmds_need_lc_CXX=yes
12364 # This is similar to how AIX traditionally builds its shared libraries.
12365 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'
12366 fi
12367 fi
12368 ;;
12369
12370 beos*)
12371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12372 allow_undefined_flag_CXX=unsupported
12373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12374 # support --undefined. This deserves some investigation. FIXME
12375 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12376 else
12377 ld_shlibs_CXX=no
12378 fi
12379 ;;
12380
12381 chorus*)
12382 case $cc_basename in
12383 *)
12384 # FIXME: insert proper C++ library support
12385 ld_shlibs_CXX=no
12386 ;;
12387 esac
12388 ;;
12389
12390 cygwin* | mingw* | pw32*)
12391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12392 # as there is no search path for DLLs.
12393 hardcode_libdir_flag_spec_CXX='-L$libdir'
12394 allow_undefined_flag_CXX=unsupported
12395 always_export_symbols_CXX=no
12396 enable_shared_with_static_runtimes_CXX=yes
12397
12398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12399 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'
12400 # If the export-symbols file already is a .def file (1st line
12401 # is EXPORTS), use it as is; otherwise, prepend...
12402 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12403 cp $export_symbols $output_objdir/$soname.def;
12404 else
12405 echo EXPORTS > $output_objdir/$soname.def;
12406 cat $export_symbols >> $output_objdir/$soname.def;
12407 fi~
12408 $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'
12409 else
12410 ld_shlibs_CXX=no
12411 fi
12412 ;;
12413 darwin* | rhapsody*)
12414 case $host_os in
12415 rhapsody* | darwin1.[012])
12416 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12417 ;;
12418 *) # Darwin 1.3 on
12419 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12421 else
12422 case ${MACOSX_DEPLOYMENT_TARGET} in
12423 10.[012])
12424 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12425 ;;
12426 10.*)
12427 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12428 ;;
12429 esac
12430 fi
12431 ;;
12432 esac
12433 archive_cmds_need_lc_CXX=no
12434 hardcode_direct_CXX=no
12435 hardcode_automatic_CXX=yes
12436 hardcode_shlibpath_var_CXX=unsupported
12437 whole_archive_flag_spec_CXX=''
12438 link_all_deplibs_CXX=yes
12439
12440 if test "$GXX" = yes ; then
12441 lt_int_apple_cc_single_mod=no
12442 output_verbose_link_cmd='echo'
12443 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12444 lt_int_apple_cc_single_mod=yes
12445 fi
12446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12447 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12448 else
12449 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'
12450 fi
12451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12454 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}'
12455 else
12456 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}'
12457 fi
12458 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}'
12459 else
12460 case $cc_basename in
12461 xlc*)
12462 output_verbose_link_cmd='echo'
12463 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12466 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12467 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}'
12468 ;;
12469 *)
12470 ld_shlibs_CXX=no
12471 ;;
12472 esac
12473 fi
12474 ;;
12475
12476 dgux*)
12477 case $cc_basename in
12478 ec++*)
12479 # FIXME: insert proper C++ library support
12480 ld_shlibs_CXX=no
12481 ;;
12482 ghcx*)
12483 # Green Hills C++ Compiler
12484 # FIXME: insert proper C++ library support
12485 ld_shlibs_CXX=no
12486 ;;
12487 *)
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 ;;
12491 esac
12492 ;;
12493 freebsd[12]*)
12494 # C++ shared libraries reported to be fairly broken before switch to ELF
12495 ld_shlibs_CXX=no
12496 ;;
12497 freebsd-elf*)
12498 archive_cmds_need_lc_CXX=no
12499 ;;
12500 freebsd* | dragonfly*)
12501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12502 # conventions
12503 ld_shlibs_CXX=yes
12504 ;;
12505 gnu*)
12506 ;;
12507 hpux9*)
12508 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12509 hardcode_libdir_separator_CXX=:
12510 export_dynamic_flag_spec_CXX='${wl}-E'
12511 hardcode_direct_CXX=yes
12512 hardcode_minus_L_CXX=yes # Not in the search PATH,
12513 # but as the default
12514 # location of the library.
12515
12516 case $cc_basename in
12517 CC*)
12518 # FIXME: insert proper C++ library support
12519 ld_shlibs_CXX=no
12520 ;;
12521 aCC*)
12522 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'
12523 # Commands to make compiler produce verbose output that lists
12524 # what "hidden" libraries, object files and flags are used when
12525 # linking a shared library.
12526 #
12527 # There doesn't appear to be a way to prevent this compiler from
12528 # explicitly linking system object files so we need to strip them
12529 # from the output so that they don't get included in the library
12530 # dependencies.
12531 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'
12532 ;;
12533 *)
12534 if test "$GXX" = yes; then
12535 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'
12536 else
12537 # FIXME: insert proper C++ library support
12538 ld_shlibs_CXX=no
12539 fi
12540 ;;
12541 esac
12542 ;;
12543 hpux10*|hpux11*)
12544 if test $with_gnu_ld = no; then
12545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12546 hardcode_libdir_separator_CXX=:
12547
12548 case $host_cpu in
12549 hppa*64*|ia64*) ;;
12550 *)
12551 export_dynamic_flag_spec_CXX='${wl}-E'
12552 ;;
12553 esac
12554 fi
12555 case $host_cpu in
12556 hppa*64*|ia64*)
12557 hardcode_direct_CXX=no
12558 hardcode_shlibpath_var_CXX=no
12559 ;;
12560 *)
12561 hardcode_direct_CXX=yes
12562 hardcode_minus_L_CXX=yes # Not in the search PATH,
12563 # but as the default
12564 # location of the library.
12565 ;;
12566 esac
12567
12568 case $cc_basename in
12569 CC*)
12570 # FIXME: insert proper C++ library support
12571 ld_shlibs_CXX=no
12572 ;;
12573 aCC*)
12574 case $host_cpu in
12575 hppa*64*)
12576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12577 ;;
12578 ia64*)
12579 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12580 ;;
12581 *)
12582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12583 ;;
12584 esac
12585 # Commands to make compiler produce verbose output that lists
12586 # what "hidden" libraries, object files and flags are used when
12587 # linking a shared library.
12588 #
12589 # There doesn't appear to be a way to prevent this compiler from
12590 # explicitly linking system object files so we need to strip them
12591 # from the output so that they don't get included in the library
12592 # dependencies.
12593 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'
12594 ;;
12595 *)
12596 if test "$GXX" = yes; then
12597 if test $with_gnu_ld = no; then
12598 case $host_cpu in
12599 hppa*64*)
12600 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12601 ;;
12602 ia64*)
12603 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12604 ;;
12605 *)
12606 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'
12607 ;;
12608 esac
12609 fi
12610 else
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12613 fi
12614 ;;
12615 esac
12616 ;;
12617 interix[3-9]*)
12618 hardcode_direct_CXX=no
12619 hardcode_shlibpath_var_CXX=no
12620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12621 export_dynamic_flag_spec_CXX='${wl}-E'
12622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12623 # Instead, shared libraries are loaded at an image base (0x10000000 by
12624 # default) and relocated if they conflict, which is a slow very memory
12625 # consuming and fragmenting process. To avoid this, we pick a random,
12626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12628 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'
12629 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'
12630 ;;
12631 irix5* | irix6*)
12632 case $cc_basename in
12633 CC*)
12634 # SGI C++
12635 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'
12636
12637 # Archives containing C++ object files must be created using
12638 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12639 # necessary to make sure instantiated templates are included
12640 # in the archive.
12641 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12642 ;;
12643 *)
12644 if test "$GXX" = yes; then
12645 if test "$with_gnu_ld" = no; then
12646 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'
12647 else
12648 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'
12649 fi
12650 fi
12651 link_all_deplibs_CXX=yes
12652 ;;
12653 esac
12654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12655 hardcode_libdir_separator_CXX=:
12656 ;;
12657 linux* | k*bsd*-gnu)
12658 case $cc_basename in
12659 KCC*)
12660 # Kuck and Associates, Inc. (KAI) C++ Compiler
12661
12662 # KCC will only create a shared library if the output file
12663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12664 # to its proper name (with version) after linking.
12665 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'
12666 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'
12667 # Commands to make compiler produce verbose output that lists
12668 # what "hidden" libraries, object files and flags are used when
12669 # linking a shared library.
12670 #
12671 # There doesn't appear to be a way to prevent this compiler from
12672 # explicitly linking system object files so we need to strip them
12673 # from the output so that they don't get included in the library
12674 # dependencies.
12675 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'
12676
12677 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12679
12680 # Archives containing C++ object files must be created using
12681 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12682 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12683 ;;
12684 icpc*)
12685 # Intel C++
12686 with_gnu_ld=yes
12687 # version 8.0 and above of icpc choke on multiply defined symbols
12688 # if we add $predep_objects and $postdep_objects, however 7.1 and
12689 # earlier do not add the objects themselves.
12690 case `$CC -V 2>&1` in
12691 *"Version 7."*)
12692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 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'
12694 ;;
12695 *) # Version 8.0 or newer
12696 tmp_idyn=
12697 case $host_cpu in
12698 ia64*) tmp_idyn=' -i_dynamic';;
12699 esac
12700 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701 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'
12702 ;;
12703 esac
12704 archive_cmds_need_lc_CXX=no
12705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12708 ;;
12709 pgCC*)
12710 # Portland Group C++ compiler
12711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12712 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'
12713
12714 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12716 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'
12717 ;;
12718 cxx*)
12719 # Compaq C++
12720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 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'
12722
12723 runpath_var=LD_RUN_PATH
12724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12725 hardcode_libdir_separator_CXX=:
12726
12727 # Commands to make compiler produce verbose output that lists
12728 # what "hidden" libraries, object files and flags are used when
12729 # linking a shared library.
12730 #
12731 # There doesn't appear to be a way to prevent this compiler from
12732 # explicitly linking system object files so we need to strip them
12733 # from the output so that they don't get included in the library
12734 # dependencies.
12735 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'
12736 ;;
12737 *)
12738 case `$CC -V 2>&1 | sed 5q` in
12739 *Sun\ C*)
12740 # Sun C++ 5.9
12741 no_undefined_flag_CXX=' -zdefs'
12742 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12743 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12744 hardcode_libdir_flag_spec_CXX='-R$libdir'
12745 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12746
12747 # Not sure whether something based on
12748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12749 # would be better.
12750 output_verbose_link_cmd='echo'
12751
12752 # Archives containing C++ object files must be created using
12753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12754 # necessary to make sure instantiated templates are included
12755 # in the archive.
12756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12757 ;;
12758 esac
12759 ;;
12760 esac
12761 ;;
12762 lynxos*)
12763 # FIXME: insert proper C++ library support
12764 ld_shlibs_CXX=no
12765 ;;
12766 m88k*)
12767 # FIXME: insert proper C++ library support
12768 ld_shlibs_CXX=no
12769 ;;
12770 mvs*)
12771 case $cc_basename in
12772 cxx*)
12773 # FIXME: insert proper C++ library support
12774 ld_shlibs_CXX=no
12775 ;;
12776 *)
12777 # FIXME: insert proper C++ library support
12778 ld_shlibs_CXX=no
12779 ;;
12780 esac
12781 ;;
12782 netbsd*)
12783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12784 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12785 wlarc=
12786 hardcode_libdir_flag_spec_CXX='-R$libdir'
12787 hardcode_direct_CXX=yes
12788 hardcode_shlibpath_var_CXX=no
12789 fi
12790 # Workaround some broken pre-1.5 toolchains
12791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12792 ;;
12793 openbsd2*)
12794 # C++ shared libraries are fairly broken
12795 ld_shlibs_CXX=no
12796 ;;
12797 openbsd*)
12798 if test -f /usr/libexec/ld.so; then
12799 hardcode_direct_CXX=yes
12800 hardcode_shlibpath_var_CXX=no
12801 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12804 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12805 export_dynamic_flag_spec_CXX='${wl}-E'
12806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12807 fi
12808 output_verbose_link_cmd='echo'
12809 else
12810 ld_shlibs_CXX=no
12811 fi
12812 ;;
12813 osf3*)
12814 case $cc_basename in
12815 KCC*)
12816 # Kuck and Associates, Inc. (KAI) C++ Compiler
12817
12818 # KCC will only create a shared library if the output file
12819 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12820 # to its proper name (with version) after linking.
12821 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'
12822
12823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12824 hardcode_libdir_separator_CXX=:
12825
12826 # Archives containing C++ object files must be created using
12827 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12828 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12829
12830 ;;
12831 RCC*)
12832 # Rational C++ 2.4.1
12833 # FIXME: insert proper C++ library support
12834 ld_shlibs_CXX=no
12835 ;;
12836 cxx*)
12837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12838 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'
12839
12840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12841 hardcode_libdir_separator_CXX=:
12842
12843 # Commands to make compiler produce verbose output that lists
12844 # what "hidden" libraries, object files and flags are used when
12845 # linking a shared library.
12846 #
12847 # There doesn't appear to be a way to prevent this compiler from
12848 # explicitly linking system object files so we need to strip them
12849 # from the output so that they don't get included in the library
12850 # dependencies.
12851 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'
12852 ;;
12853 *)
12854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12856 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'
12857
12858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12859 hardcode_libdir_separator_CXX=:
12860
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12865
12866 else
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 fi
12870 ;;
12871 esac
12872 ;;
12873 osf4* | osf5*)
12874 case $cc_basename in
12875 KCC*)
12876 # Kuck and Associates, Inc. (KAI) C++ Compiler
12877
12878 # KCC will only create a shared library if the output file
12879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12880 # to its proper name (with version) after linking.
12881 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'
12882
12883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12884 hardcode_libdir_separator_CXX=:
12885
12886 # Archives containing C++ object files must be created using
12887 # the KAI C++ compiler.
12888 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12889 ;;
12890 RCC*)
12891 # Rational C++ 2.4.1
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12894 ;;
12895 cxx*)
12896 allow_undefined_flag_CXX=' -expect_unresolved \*'
12897 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'
12898 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12899 echo "-hidden">> $lib.exp~
12900 $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~
12901 $rm $lib.exp'
12902
12903 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12904 hardcode_libdir_separator_CXX=:
12905
12906 # Commands to make compiler produce verbose output that lists
12907 # what "hidden" libraries, object files and flags are used when
12908 # linking a shared library.
12909 #
12910 # There doesn't appear to be a way to prevent this compiler from
12911 # explicitly linking system object files so we need to strip them
12912 # from the output so that they don't get included in the library
12913 # dependencies.
12914 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'
12915 ;;
12916 *)
12917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12919 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'
12920
12921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12922 hardcode_libdir_separator_CXX=:
12923
12924 # Commands to make compiler produce verbose output that lists
12925 # what "hidden" libraries, object files and flags are used when
12926 # linking a shared library.
12927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12928
12929 else
12930 # FIXME: insert proper C++ library support
12931 ld_shlibs_CXX=no
12932 fi
12933 ;;
12934 esac
12935 ;;
12936 psos*)
12937 # FIXME: insert proper C++ library support
12938 ld_shlibs_CXX=no
12939 ;;
12940 sunos4*)
12941 case $cc_basename in
12942 CC*)
12943 # Sun C++ 4.x
12944 # FIXME: insert proper C++ library support
12945 ld_shlibs_CXX=no
12946 ;;
12947 lcc*)
12948 # Lucid
12949 # FIXME: insert proper C++ library support
12950 ld_shlibs_CXX=no
12951 ;;
12952 *)
12953 # FIXME: insert proper C++ library support
12954 ld_shlibs_CXX=no
12955 ;;
12956 esac
12957 ;;
12958 solaris*)
12959 case $cc_basename in
12960 CC*)
12961 # Sun C++ 4.2, 5.x and Centerline C++
12962 archive_cmds_need_lc_CXX=yes
12963 no_undefined_flag_CXX=' -zdefs'
12964 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12965 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12966 $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'
12967
12968 hardcode_libdir_flag_spec_CXX='-R$libdir'
12969 hardcode_shlibpath_var_CXX=no
12970 case $host_os in
12971 solaris2.[0-5] | solaris2.[0-5].*) ;;
12972 *)
12973 # The compiler driver will combine and reorder linker options,
12974 # but understands `-z linker_flag'.
12975 # Supported since Solaris 2.6 (maybe 2.5.1?)
12976 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12977 ;;
12978 esac
12979 link_all_deplibs_CXX=yes
12980
12981 output_verbose_link_cmd='echo'
12982
12983 # Archives containing C++ object files must be created using
12984 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12985 # necessary to make sure instantiated templates are included
12986 # in the archive.
12987 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12988 ;;
12989 gcx*)
12990 # Green Hills C++ Compiler
12991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12992
12993 # The C++ compiler must be used to create the archive.
12994 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12995 ;;
12996 *)
12997 # GNU C++ compiler with Solaris linker
12998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12999 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13000 if $CC --version | grep -v '^2\.7' > /dev/null; then
13001 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13002 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13004
13005 # Commands to make compiler produce verbose output that lists
13006 # what "hidden" libraries, object files and flags are used when
13007 # linking a shared library.
13008 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13009 else
13010 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13011 # platform.
13012 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13013 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13014 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13015
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13019 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13020 fi
13021
13022 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13023 case $host_os in
13024 solaris2.[0-5] | solaris2.[0-5].*) ;;
13025 *)
13026 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13027 ;;
13028 esac
13029 fi
13030 ;;
13031 esac
13032 ;;
13033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13034 no_undefined_flag_CXX='${wl}-z,text'
13035 archive_cmds_need_lc_CXX=no
13036 hardcode_shlibpath_var_CXX=no
13037 runpath_var='LD_RUN_PATH'
13038
13039 case $cc_basename in
13040 CC*)
13041 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13042 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13043 ;;
13044 *)
13045 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13047 ;;
13048 esac
13049 ;;
13050 sysv5* | sco3.2v5* | sco5v6*)
13051 # Note: We can NOT use -z defs as we might desire, because we do not
13052 # link with -lc, and that would cause any symbols used from libc to
13053 # always be unresolved, which means just about no library would
13054 # ever link correctly. If we're not using GNU ld we use -z text
13055 # though, which does catch some bad symbols but isn't as heavy-handed
13056 # as -z defs.
13057 # For security reasons, it is highly recommended that you always
13058 # use absolute paths for naming shared libraries, and exclude the
13059 # DT_RUNPATH tag from executables and libraries. But doing so
13060 # requires that you compile everything twice, which is a pain.
13061 # So that behaviour is only enabled if SCOABSPATH is set to a
13062 # non-empty value in the environment. Most likely only useful for
13063 # creating official distributions of packages.
13064 # This is a hack until libtool officially supports absolute path
13065 # names for shared libraries.
13066 no_undefined_flag_CXX='${wl}-z,text'
13067 allow_undefined_flag_CXX='${wl}-z,nodefs'
13068 archive_cmds_need_lc_CXX=no
13069 hardcode_shlibpath_var_CXX=no
13070 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13071 hardcode_libdir_separator_CXX=':'
13072 link_all_deplibs_CXX=yes
13073 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13074 runpath_var='LD_RUN_PATH'
13075
13076 case $cc_basename in
13077 CC*)
13078 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 ;;
13081 *)
13082 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13084 ;;
13085 esac
13086 ;;
13087 tandem*)
13088 case $cc_basename in
13089 NCC*)
13090 # NonStop-UX NCC 3.20
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 *)
13095 # FIXME: insert proper C++ library support
13096 ld_shlibs_CXX=no
13097 ;;
13098 esac
13099 ;;
13100 vxworks*)
13101 # FIXME: insert proper C++ library support
13102 ld_shlibs_CXX=no
13103 ;;
13104 *)
13105 # FIXME: insert proper C++ library support
13106 ld_shlibs_CXX=no
13107 ;;
13108esac
13109{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13110echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13111test "$ld_shlibs_CXX" = no && can_build_shared=no
13112
13113GCC_CXX="$GXX"
13114LD_CXX="$LD"
13115
13116
13117cat > conftest.$ac_ext <<EOF
13118class Foo
13119{
13120public:
13121 Foo (void) { a = 0; }
13122private:
13123 int a;
13124};
13125EOF
13126
13127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13128 (eval $ac_compile) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; then
13132 # Parse the compiler output and extract the necessary
13133 # objects, libraries and library flags.
13134
13135 # Sentinel used to keep track of whether or not we are before
13136 # the conftest object file.
13137 pre_test_object_deps_done=no
13138
13139 # The `*' in the case matches for architectures that use `case' in
13140 # $output_verbose_cmd can trigger glob expansion during the loop
13141 # eval without this substitution.
13142 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13143
13144 for p in `eval $output_verbose_link_cmd`; do
13145 case $p in
13146
13147 -L* | -R* | -l*)
13148 # Some compilers place space between "-{L,R}" and the path.
13149 # Remove the space.
13150 if test $p = "-L" \
13151 || test $p = "-R"; then
13152 prev=$p
13153 continue
13154 else
13155 prev=
13156 fi
13157
13158 if test "$pre_test_object_deps_done" = no; then
13159 case $p in
13160 -L* | -R*)
13161 # Internal compiler library paths should come after those
13162 # provided the user. The postdeps already come after the
13163 # user supplied libs so there is no need to process them.
13164 if test -z "$compiler_lib_search_path_CXX"; then
13165 compiler_lib_search_path_CXX="${prev}${p}"
13166 else
13167 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13168 fi
13169 ;;
13170 # The "-l" case would never come before the object being
13171 # linked, so don't bother handling this case.
13172 esac
13173 else
13174 if test -z "$postdeps_CXX"; then
13175 postdeps_CXX="${prev}${p}"
13176 else
13177 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13178 fi
13179 fi
13180 ;;
13181
13182 *.$objext)
13183 # This assumes that the test object file only shows up
13184 # once in the compiler output.
13185 if test "$p" = "conftest.$objext"; then
13186 pre_test_object_deps_done=yes
13187 continue
13188 fi
13189
13190 if test "$pre_test_object_deps_done" = no; then
13191 if test -z "$predep_objects_CXX"; then
13192 predep_objects_CXX="$p"
13193 else
13194 predep_objects_CXX="$predep_objects_CXX $p"
13195 fi
13196 else
13197 if test -z "$postdep_objects_CXX"; then
13198 postdep_objects_CXX="$p"
13199 else
13200 postdep_objects_CXX="$postdep_objects_CXX $p"
13201 fi
13202 fi
13203 ;;
13204
13205 *) ;; # Ignore the rest.
13206
13207 esac
13208 done
13209
13210 # Clean up.
13211 rm -f a.out a.exe
13212else
13213 echo "libtool.m4: error: problem compiling CXX test program"
13214fi
13215
13216$rm -f confest.$objext
13217
13218# PORTME: override above test on systems where it is broken
13219case $host_os in
13220interix[3-9]*)
13221 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13222 # hack all around it, let's just trust "g++" to DTRT.
13223 predep_objects_CXX=
13224 postdep_objects_CXX=
13225 postdeps_CXX=
13226 ;;
13227
13228linux*)
13229 case `$CC -V 2>&1 | sed 5q` in
13230 *Sun\ C*)
13231 # Sun C++ 5.9
13232 #
13233 # The more standards-conforming stlport4 library is
13234 # incompatible with the Cstd library. Avoid specifying
13235 # it if it's in CXXFLAGS. Ignore libCrun as
13236 # -library=stlport4 depends on it.
13237 case " $CXX $CXXFLAGS " in
13238 *" -library=stlport4 "*)
13239 solaris_use_stlport4=yes
13240 ;;
13241 esac
13242 if test "$solaris_use_stlport4" != yes; then
13243 postdeps_CXX='-library=Cstd -library=Crun'
13244 fi
13245 ;;
13246 esac
13247 ;;
13248
13249solaris*)
13250 case $cc_basename in
13251 CC*)
13252 # The more standards-conforming stlport4 library is
13253 # incompatible with the Cstd library. Avoid specifying
13254 # it if it's in CXXFLAGS. Ignore libCrun as
13255 # -library=stlport4 depends on it.
13256 case " $CXX $CXXFLAGS " in
13257 *" -library=stlport4 "*)
13258 solaris_use_stlport4=yes
13259 ;;
13260 esac
13261
13262 # Adding this requires a known-good setup of shared libraries for
13263 # Sun compiler versions before 5.6, else PIC objects from an old
13264 # archive will be linked into the output, leading to subtle bugs.
13265 if test "$solaris_use_stlport4" != yes; then
13266 postdeps_CXX='-library=Cstd -library=Crun'
13267 fi
13268 ;;
13269 esac
13270 ;;
13271esac
13272
13273
13274case " $postdeps_CXX " in
13275*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13276esac
13277
13278lt_prog_compiler_wl_CXX=
13279lt_prog_compiler_pic_CXX=
13280lt_prog_compiler_static_CXX=
13281
13282{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13283echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13284
13285 # C++ specific cases for pic, static, wl, etc.
13286 if test "$GXX" = yes; then
13287 lt_prog_compiler_wl_CXX='-Wl,'
13288 lt_prog_compiler_static_CXX='-static'
13289
13290 case $host_os in
13291 aix*)
13292 # All AIX code is PIC.
13293 if test "$host_cpu" = ia64; then
13294 # AIX 5 now supports IA64 processor
13295 lt_prog_compiler_static_CXX='-Bstatic'
13296 fi
13297 ;;
13298 amigaos*)
13299 # FIXME: we need at least 68020 code to build shared libraries, but
13300 # adding the `-m68020' flag to GCC prevents building anything better,
13301 # like `-m68040'.
13302 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13303 ;;
13304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13305 # PIC is the default for these OSes.
13306 ;;
13307 mingw* | cygwin* | os2* | pw32*)
13308 # This hack is so that the source file can tell whether it is being
13309 # built for inclusion in a dll (and should export symbols for example).
13310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13311 # (--disable-auto-import) libraries
13312 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13313 ;;
13314 darwin* | rhapsody*)
13315 # PIC is the default on this platform
13316 # Common symbols not allowed in MH_DYLIB files
13317 lt_prog_compiler_pic_CXX='-fno-common'
13318 ;;
13319 *djgpp*)
13320 # DJGPP does not support shared libraries at all
13321 lt_prog_compiler_pic_CXX=
13322 ;;
13323 interix[3-9]*)
13324 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13325 # Instead, we relocate shared libraries at runtime.
13326 ;;
13327 sysv4*MP*)
13328 if test -d /usr/nec; then
13329 lt_prog_compiler_pic_CXX=-Kconform_pic
13330 fi
13331 ;;
13332 hpux*)
13333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13334 # not for PA HP-UX.
13335 case $host_cpu in
13336 hppa*64*|ia64*)
13337 ;;
13338 *)
13339 lt_prog_compiler_pic_CXX='-fPIC'
13340 ;;
13341 esac
13342 ;;
13343 *)
13344 lt_prog_compiler_pic_CXX='-fPIC'
13345 ;;
13346 esac
13347 else
13348 case $host_os in
13349 aix4* | aix5*)
13350 # All AIX code is PIC.
13351 if test "$host_cpu" = ia64; then
13352 # AIX 5 now supports IA64 processor
13353 lt_prog_compiler_static_CXX='-Bstatic'
13354 else
13355 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13356 fi
13357 ;;
13358 chorus*)
13359 case $cc_basename in
13360 cxch68*)
13361 # Green Hills C++ Compiler
13362 # _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"
13363 ;;
13364 esac
13365 ;;
13366 darwin*)
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 case $cc_basename in
13370 xlc*)
13371 lt_prog_compiler_pic_CXX='-qnocommon'
13372 lt_prog_compiler_wl_CXX='-Wl,'
13373 ;;
13374 esac
13375 ;;
13376 dgux*)
13377 case $cc_basename in
13378 ec++*)
13379 lt_prog_compiler_pic_CXX='-KPIC'
13380 ;;
13381 ghcx*)
13382 # Green Hills C++ Compiler
13383 lt_prog_compiler_pic_CXX='-pic'
13384 ;;
13385 *)
13386 ;;
13387 esac
13388 ;;
13389 freebsd* | dragonfly*)
13390 # FreeBSD uses GNU C++
13391 ;;
13392 hpux9* | hpux10* | hpux11*)
13393 case $cc_basename in
13394 CC*)
13395 lt_prog_compiler_wl_CXX='-Wl,'
13396 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13397 if test "$host_cpu" != ia64; then
13398 lt_prog_compiler_pic_CXX='+Z'
13399 fi
13400 ;;
13401 aCC*)
13402 lt_prog_compiler_wl_CXX='-Wl,'
13403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13404 case $host_cpu in
13405 hppa*64*|ia64*)
13406 # +Z the default
13407 ;;
13408 *)
13409 lt_prog_compiler_pic_CXX='+Z'
13410 ;;
13411 esac
13412 ;;
13413 *)
13414 ;;
13415 esac
13416 ;;
13417 interix*)
13418 # This is c89, which is MS Visual C++ (no shared libs)
13419 # Anyone wants to do a port?
13420 ;;
13421 irix5* | irix6* | nonstopux*)
13422 case $cc_basename in
13423 CC*)
13424 lt_prog_compiler_wl_CXX='-Wl,'
13425 lt_prog_compiler_static_CXX='-non_shared'
13426 # CC pic flag -KPIC is the default.
13427 ;;
13428 *)
13429 ;;
13430 esac
13431 ;;
13432 linux* | k*bsd*-gnu)
13433 case $cc_basename in
13434 KCC*)
13435 # KAI C++ Compiler
13436 lt_prog_compiler_wl_CXX='--backend -Wl,'
13437 lt_prog_compiler_pic_CXX='-fPIC'
13438 ;;
13439 icpc* | ecpc*)
13440 # Intel C++
13441 lt_prog_compiler_wl_CXX='-Wl,'
13442 lt_prog_compiler_pic_CXX='-KPIC'
13443 lt_prog_compiler_static_CXX='-static'
13444 ;;
13445 pgCC*)
13446 # Portland Group C++ compiler.
13447 lt_prog_compiler_wl_CXX='-Wl,'
13448 lt_prog_compiler_pic_CXX='-fpic'
13449 lt_prog_compiler_static_CXX='-Bstatic'
13450 ;;
13451 cxx*)
13452 # Compaq C++
13453 # Make sure the PIC flag is empty. It appears that all Alpha
13454 # Linux and Compaq Tru64 Unix objects are PIC.
13455 lt_prog_compiler_pic_CXX=
13456 lt_prog_compiler_static_CXX='-non_shared'
13457 ;;
13458 *)
13459 case `$CC -V 2>&1 | sed 5q` in
13460 *Sun\ C*)
13461 # Sun C++ 5.9
13462 lt_prog_compiler_pic_CXX='-KPIC'
13463 lt_prog_compiler_static_CXX='-Bstatic'
13464 lt_prog_compiler_wl_CXX='-Qoption ld '
13465 ;;
13466 esac
13467 ;;
13468 esac
13469 ;;
13470 lynxos*)
13471 ;;
13472 m88k*)
13473 ;;
13474 mvs*)
13475 case $cc_basename in
13476 cxx*)
13477 lt_prog_compiler_pic_CXX='-W c,exportall'
13478 ;;
13479 *)
13480 ;;
13481 esac
13482 ;;
13483 netbsd*)
13484 ;;
13485 osf3* | osf4* | osf5*)
13486 case $cc_basename in
13487 KCC*)
13488 lt_prog_compiler_wl_CXX='--backend -Wl,'
13489 ;;
13490 RCC*)
13491 # Rational C++ 2.4.1
13492 lt_prog_compiler_pic_CXX='-pic'
13493 ;;
13494 cxx*)
13495 # Digital/Compaq C++
13496 lt_prog_compiler_wl_CXX='-Wl,'
13497 # Make sure the PIC flag is empty. It appears that all Alpha
13498 # Linux and Compaq Tru64 Unix objects are PIC.
13499 lt_prog_compiler_pic_CXX=
13500 lt_prog_compiler_static_CXX='-non_shared'
13501 ;;
13502 *)
13503 ;;
13504 esac
13505 ;;
13506 psos*)
13507 ;;
13508 solaris*)
13509 case $cc_basename in
13510 CC*)
13511 # Sun C++ 4.2, 5.x and Centerline C++
13512 lt_prog_compiler_pic_CXX='-KPIC'
13513 lt_prog_compiler_static_CXX='-Bstatic'
13514 lt_prog_compiler_wl_CXX='-Qoption ld '
13515 ;;
13516 gcx*)
13517 # Green Hills C++ Compiler
13518 lt_prog_compiler_pic_CXX='-PIC'
13519 ;;
13520 *)
13521 ;;
13522 esac
13523 ;;
13524 sunos4*)
13525 case $cc_basename in
13526 CC*)
13527 # Sun C++ 4.x
13528 lt_prog_compiler_pic_CXX='-pic'
13529 lt_prog_compiler_static_CXX='-Bstatic'
13530 ;;
13531 lcc*)
13532 # Lucid
13533 lt_prog_compiler_pic_CXX='-pic'
13534 ;;
13535 *)
13536 ;;
13537 esac
13538 ;;
13539 tandem*)
13540 case $cc_basename in
13541 NCC*)
13542 # NonStop-UX NCC 3.20
13543 lt_prog_compiler_pic_CXX='-KPIC'
13544 ;;
13545 *)
13546 ;;
13547 esac
13548 ;;
13549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13550 case $cc_basename in
13551 CC*)
13552 lt_prog_compiler_wl_CXX='-Wl,'
13553 lt_prog_compiler_pic_CXX='-KPIC'
13554 lt_prog_compiler_static_CXX='-Bstatic'
13555 ;;
13556 esac
13557 ;;
13558 vxworks*)
13559 ;;
13560 *)
13561 lt_prog_compiler_can_build_shared_CXX=no
13562 ;;
13563 esac
13564 fi
13565
13566{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13567echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13568
13569#
13570# Check to make sure the PIC flag actually works.
13571#
13572if test -n "$lt_prog_compiler_pic_CXX"; then
13573
13574{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13575echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13576if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579 lt_prog_compiler_pic_works_CXX=no
13580 ac_outfile=conftest.$ac_objext
13581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13582 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13583 # Insert the option either (1) after the last *FLAGS variable, or
13584 # (2) before a word containing "conftest.", or (3) at the end.
13585 # Note that $ac_compile itself does not contain backslashes and begins
13586 # with a dollar sign (not a hyphen), so the echo should work correctly.
13587 # The option is referenced via a variable to avoid confusing sed.
13588 lt_compile=`echo "$ac_compile" | $SED \
13589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13591 -e 's:$: $lt_compiler_flag:'`
13592 (eval echo "\"\$as_me:13592: $lt_compile\"" >&5)
13593 (eval "$lt_compile" 2>conftest.err)
13594 ac_status=$?
13595 cat conftest.err >&5
13596 echo "$as_me:13596: \$? = $ac_status" >&5
13597 if (exit $ac_status) && test -s "$ac_outfile"; then
13598 # The compiler can only warn and ignore the option if not recognized
13599 # So say no if there are warnings other than the usual output.
13600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13603 lt_prog_compiler_pic_works_CXX=yes
13604 fi
13605 fi
13606 $rm conftest*
13607
13608fi
13609{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13610echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13611
13612if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13613 case $lt_prog_compiler_pic_CXX in
13614 "" | " "*) ;;
13615 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13616 esac
13617else
13618 lt_prog_compiler_pic_CXX=
13619 lt_prog_compiler_can_build_shared_CXX=no
13620fi
13621
13622fi
13623case $host_os in
13624 # For platforms which do not support PIC, -DPIC is meaningless:
13625 *djgpp*)
13626 lt_prog_compiler_pic_CXX=
13627 ;;
13628 *)
13629 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13630 ;;
13631esac
13632
13633#
13634# Check to make sure the static flag actually works.
13635#
13636wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13637{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13638echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13639if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
13642 lt_prog_compiler_static_works_CXX=no
13643 save_LDFLAGS="$LDFLAGS"
13644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13647 # The linker can only warn and ignore the option if not recognized
13648 # So say no if there are warnings
13649 if test -s conftest.err; then
13650 # Append any errors to the config.log.
13651 cat conftest.err 1>&5
13652 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654 if diff conftest.exp conftest.er2 >/dev/null; then
13655 lt_prog_compiler_static_works_CXX=yes
13656 fi
13657 else
13658 lt_prog_compiler_static_works_CXX=yes
13659 fi
13660 fi
13661 $rm conftest*
13662 LDFLAGS="$save_LDFLAGS"
13663
13664fi
13665{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13666echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13667
13668if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13669 :
13670else
13671 lt_prog_compiler_static_CXX=
13672fi
13673
13674
13675{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13676echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13677if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 lt_cv_prog_compiler_c_o_CXX=no
13681 $rm -r conftest 2>/dev/null
13682 mkdir conftest
13683 cd conftest
13684 mkdir out
13685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13686
13687 lt_compiler_flag="-o out/conftest2.$ac_objext"
13688 # Insert the option either (1) after the last *FLAGS variable, or
13689 # (2) before a word containing "conftest.", or (3) at the end.
13690 # Note that $ac_compile itself does not contain backslashes and begins
13691 # with a dollar sign (not a hyphen), so the echo should work correctly.
13692 lt_compile=`echo "$ac_compile" | $SED \
13693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13695 -e 's:$: $lt_compiler_flag:'`
13696 (eval echo "\"\$as_me:13696: $lt_compile\"" >&5)
13697 (eval "$lt_compile" 2>out/conftest.err)
13698 ac_status=$?
13699 cat out/conftest.err >&5
13700 echo "$as_me:13700: \$? = $ac_status" >&5
13701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13702 then
13703 # The compiler can only warn and ignore the option if not recognized
13704 # So say no if there are warnings
13705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13708 lt_cv_prog_compiler_c_o_CXX=yes
13709 fi
13710 fi
13711 chmod u+w . 2>&5
13712 $rm conftest*
13713 # SGI C++ compiler will create directory out/ii_files/ for
13714 # template instantiation
13715 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13716 $rm out/* && rmdir out
13717 cd ..
13718 rmdir conftest
13719 $rm conftest*
13720
13721fi
13722{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13723echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13724
13725
13726hard_links="nottested"
13727if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13728 # do not overwrite the value of need_locks provided by the user
13729 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13730echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13731 hard_links=yes
13732 $rm conftest*
13733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13734 touch conftest.a
13735 ln conftest.a conftest.b 2>&5 || hard_links=no
13736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13737 { echo "$as_me:$LINENO: result: $hard_links" >&5
13738echo "${ECHO_T}$hard_links" >&6; }
13739 if test "$hard_links" = no; then
13740 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13741echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13742 need_locks=warn
13743 fi
13744else
13745 need_locks=no
13746fi
13747
13748{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13749echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13750
13751 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13752 case $host_os in
13753 aix4* | aix5*)
13754 # If we're using GNU nm, then we don't want the "-C" option.
13755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13756 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13757 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'
13758 else
13759 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'
13760 fi
13761 ;;
13762 pw32*)
13763 export_symbols_cmds_CXX="$ltdll_cmds"
13764 ;;
13765 cygwin* | mingw*)
13766 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'
13767 ;;
13768 *)
13769 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13770 ;;
13771 esac
13772
13773{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13774echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13775test "$ld_shlibs_CXX" = no && can_build_shared=no
13776
13777#
13778# Do we need to explicitly link libc?
13779#
13780case "x$archive_cmds_need_lc_CXX" in
13781x|xyes)
13782 # Assume -lc should be added
13783 archive_cmds_need_lc_CXX=yes
13784
13785 if test "$enable_shared" = yes && test "$GCC" = yes; then
13786 case $archive_cmds_CXX in
13787 *'~'*)
13788 # FIXME: we may have to deal with multi-command sequences.
13789 ;;
13790 '$CC '*)
13791 # Test whether the compiler implicitly links with -lc since on some
13792 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13793 # to ld, don't add -lc before -lgcc.
13794 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13795echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13796 $rm conftest*
13797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13798
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } 2>conftest.err; then
13804 soname=conftest
13805 lib=conftest
13806 libobjs=conftest.$ac_objext
13807 deplibs=
13808 wl=$lt_prog_compiler_wl_CXX
13809 pic_flag=$lt_prog_compiler_pic_CXX
13810 compiler_flags=-v
13811 linker_flags=-v
13812 verstring=
13813 output_objdir=.
13814 libname=conftest
13815 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13816 allow_undefined_flag_CXX=
13817 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13818 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }
13822 then
13823 archive_cmds_need_lc_CXX=no
13824 else
13825 archive_cmds_need_lc_CXX=yes
13826 fi
13827 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13828 else
13829 cat conftest.err 1>&5
13830 fi
13831 $rm conftest*
13832 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13833echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13834 ;;
13835 esac
13836 fi
13837 ;;
13838esac
13839
13840{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13841echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13842library_names_spec=
13843libname_spec='lib$name'
13844soname_spec=
13845shrext_cmds=".so"
13846postinstall_cmds=
13847postuninstall_cmds=
13848finish_cmds=
13849finish_eval=
13850shlibpath_var=
13851shlibpath_overrides_runpath=unknown
13852version_type=none
13853dynamic_linker="$host_os ld.so"
13854sys_lib_dlsearch_path_spec="/lib /usr/lib"
13855
13856need_lib_prefix=unknown
13857hardcode_into_libs=no
13858
13859# when you set need_version to no, make sure it does not cause -set_version
13860# flags to be left without arguments
13861need_version=unknown
13862
13863case $host_os in
13864aix3*)
13865 version_type=linux
13866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13867 shlibpath_var=LIBPATH
13868
13869 # AIX 3 has no versioning support, so we append a major version to the name.
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 ;;
13872
13873aix4* | aix5*)
13874 version_type=linux
13875 need_lib_prefix=no
13876 need_version=no
13877 hardcode_into_libs=yes
13878 if test "$host_cpu" = ia64; then
13879 # AIX 5 supports IA64
13880 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13881 shlibpath_var=LD_LIBRARY_PATH
13882 else
13883 # With GCC up to 2.95.x, collect2 would create an import file
13884 # for dependence libraries. The import file would start with
13885 # the line `#! .'. This would cause the generated library to
13886 # depend on `.', always an invalid library. This was fixed in
13887 # development snapshots of GCC prior to 3.0.
13888 case $host_os in
13889 aix4 | aix4.[01] | aix4.[01].*)
13890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13891 echo ' yes '
13892 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13893 :
13894 else
13895 can_build_shared=no
13896 fi
13897 ;;
13898 esac
13899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13900 # soname into executable. Probably we can add versioning support to
13901 # collect2, so additional links can be useful in future.
13902 if test "$aix_use_runtimelinking" = yes; then
13903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13904 # instead of lib<name>.a to let people know that these are not
13905 # typical AIX shared libraries.
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 else
13908 # We preserve .a as extension for shared libraries through AIX4.2
13909 # and later when we are not doing run time linking.
13910 library_names_spec='${libname}${release}.a $libname.a'
13911 soname_spec='${libname}${release}${shared_ext}$major'
13912 fi
13913 shlibpath_var=LIBPATH
13914 fi
13915 ;;
13916
13917amigaos*)
13918 library_names_spec='$libname.ixlibrary $libname.a'
13919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13920 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'
13921 ;;
13922
13923beos*)
13924 library_names_spec='${libname}${shared_ext}'
13925 dynamic_linker="$host_os ld.so"
13926 shlibpath_var=LIBRARY_PATH
13927 ;;
13928
13929bsdi[45]*)
13930 version_type=linux
13931 need_version=no
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13938 # the default ld.so.conf also contains /usr/contrib/lib and
13939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13940 # libtool to hard-code these into programs
13941 ;;
13942
13943cygwin* | mingw* | pw32*)
13944 version_type=windows
13945 shrext_cmds=".dll"
13946 need_version=no
13947 need_lib_prefix=no
13948
13949 case $GCC,$host_os in
13950 yes,cygwin* | yes,mingw* | yes,pw32*)
13951 library_names_spec='$libname.dll.a'
13952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13953 postinstall_cmds='base_file=`basename \${file}`~
13954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13955 dldir=$destdir/`dirname \$dlpath`~
13956 test -d \$dldir || mkdir -p \$dldir~
13957 $install_prog $dir/$dlname \$dldir/$dlname~
13958 chmod a+x \$dldir/$dlname'
13959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13960 dlpath=$dir/\$dldll~
13961 $rm \$dlpath'
13962 shlibpath_overrides_runpath=yes
13963
13964 case $host_os in
13965 cygwin*)
13966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13969 ;;
13970 mingw*)
13971 # MinGW DLLs use traditional 'lib' prefix
13972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13974 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13975 # It is most probably a Windows format PATH printed by
13976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13977 # path with ; separators, and with drive letters. We can handle the
13978 # drive letters (cygwin fileutils understands them), so leave them,
13979 # especially as we might pass files found there to a mingw objdump,
13980 # which wouldn't understand a cygwinified path. Ahh.
13981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13982 else
13983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13984 fi
13985 ;;
13986 pw32*)
13987 # pw32 DLLs use 'pw' prefix rather than 'lib'
13988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13989 ;;
13990 esac
13991 ;;
13992
13993 *)
13994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13995 ;;
13996 esac
13997 dynamic_linker='Win32 ld.exe'
13998 # FIXME: first we should search . and the directory the executable is in
13999 shlibpath_var=PATH
14000 ;;
14001
14002darwin* | rhapsody*)
14003 dynamic_linker="$host_os dyld"
14004 version_type=darwin
14005 need_lib_prefix=no
14006 need_version=no
14007 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14008 soname_spec='${libname}${release}${major}$shared_ext'
14009 shlibpath_overrides_runpath=yes
14010 shlibpath_var=DYLD_LIBRARY_PATH
14011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14012
14013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14014 ;;
14015
14016dgux*)
14017 version_type=linux
14018 need_lib_prefix=no
14019 need_version=no
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14021 soname_spec='${libname}${release}${shared_ext}$major'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 ;;
14024
14025freebsd1*)
14026 dynamic_linker=no
14027 ;;
14028
14029freebsd* | dragonfly*)
14030 # DragonFly does not have aout. When/if they implement a new
14031 # versioning mechanism, adjust this.
14032 if test -x /usr/bin/objformat; then
14033 objformat=`/usr/bin/objformat`
14034 else
14035 case $host_os in
14036 freebsd[123]*) objformat=aout ;;
14037 *) objformat=elf ;;
14038 esac
14039 fi
14040 version_type=freebsd-$objformat
14041 case $version_type in
14042 freebsd-elf*)
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14044 need_version=no
14045 need_lib_prefix=no
14046 ;;
14047 freebsd-*)
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14049 need_version=yes
14050 ;;
14051 esac
14052 shlibpath_var=LD_LIBRARY_PATH
14053 case $host_os in
14054 freebsd2*)
14055 shlibpath_overrides_runpath=yes
14056 ;;
14057 freebsd3.[01]* | freebsdelf3.[01]*)
14058 shlibpath_overrides_runpath=yes
14059 hardcode_into_libs=yes
14060 ;;
14061 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14062 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14063 shlibpath_overrides_runpath=no
14064 hardcode_into_libs=yes
14065 ;;
14066 *) # from 4.6 on, and DragonFly
14067 shlibpath_overrides_runpath=yes
14068 hardcode_into_libs=yes
14069 ;;
14070 esac
14071 ;;
14072
14073gnu*)
14074 version_type=linux
14075 need_lib_prefix=no
14076 need_version=no
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14078 soname_spec='${libname}${release}${shared_ext}$major'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 hardcode_into_libs=yes
14081 ;;
14082
14083hpux9* | hpux10* | hpux11*)
14084 # Give a soname corresponding to the major version so that dld.sl refuses to
14085 # link against other versions.
14086 version_type=sunos
14087 need_lib_prefix=no
14088 need_version=no
14089 case $host_cpu in
14090 ia64*)
14091 shrext_cmds='.so'
14092 hardcode_into_libs=yes
14093 dynamic_linker="$host_os dld.so"
14094 shlibpath_var=LD_LIBRARY_PATH
14095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097 soname_spec='${libname}${release}${shared_ext}$major'
14098 if test "X$HPUX_IA64_MODE" = X32; then
14099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14100 else
14101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14102 fi
14103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14104 ;;
14105 hppa*64*)
14106 shrext_cmds='.sl'
14107 hardcode_into_libs=yes
14108 dynamic_linker="$host_os dld.sl"
14109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14115 ;;
14116 *)
14117 shrext_cmds='.sl'
14118 dynamic_linker="$host_os dld.sl"
14119 shlibpath_var=SHLIB_PATH
14120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 ;;
14124 esac
14125 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14126 postinstall_cmds='chmod 555 $lib'
14127 ;;
14128
14129interix[3-9]*)
14130 version_type=linux
14131 need_lib_prefix=no
14132 need_version=no
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14136 shlibpath_var=LD_LIBRARY_PATH
14137 shlibpath_overrides_runpath=no
14138 hardcode_into_libs=yes
14139 ;;
14140
14141irix5* | irix6* | nonstopux*)
14142 case $host_os in
14143 nonstopux*) version_type=nonstopux ;;
14144 *)
14145 if test "$lt_cv_prog_gnu_ld" = yes; then
14146 version_type=linux
14147 else
14148 version_type=irix
14149 fi ;;
14150 esac
14151 need_lib_prefix=no
14152 need_version=no
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14155 case $host_os in
14156 irix5* | nonstopux*)
14157 libsuff= shlibsuff=
14158 ;;
14159 *)
14160 case $LD in # libtool.m4 will add one of these switches to LD
14161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14162 libsuff= shlibsuff= libmagic=32-bit;;
14163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14164 libsuff=32 shlibsuff=N32 libmagic=N32;;
14165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14167 *) libsuff= shlibsuff= libmagic=never-match;;
14168 esac
14169 ;;
14170 esac
14171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14172 shlibpath_overrides_runpath=no
14173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14175 hardcode_into_libs=yes
14176 ;;
14177
14178# No shared lib support for Linux oldld, aout, or coff.
14179linux*oldld* | linux*aout* | linux*coff*)
14180 dynamic_linker=no
14181 ;;
14182
14183# This must be Linux ELF.
14184linux* | k*bsd*-gnu)
14185 version_type=linux
14186 need_lib_prefix=no
14187 need_version=no
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14189 soname_spec='${libname}${release}${shared_ext}$major'
14190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=no
14193 # This implies no fast_install, which is unacceptable.
14194 # Some rework will be needed to allow for fast_install
14195 # before this can be enabled.
14196 hardcode_into_libs=yes
14197
14198 # Append ld.so.conf contents to the search path
14199 if test -f /etc/ld.so.conf; then
14200 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14201 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14202 fi
14203
14204 # We used to test for /lib/ld.so.1 and disable shared libraries on
14205 # powerpc, because MkLinux only supported shared libraries with the
14206 # GNU dynamic linker. Since this was broken with cross compilers,
14207 # most powerpc-linux boxes support dynamic linking these days and
14208 # people can always --disable-shared, the test was removed, and we
14209 # assume the GNU/Linux dynamic linker is in use.
14210 dynamic_linker='GNU/Linux ld.so'
14211 ;;
14212
14213netbsd*)
14214 version_type=sunos
14215 need_lib_prefix=no
14216 need_version=no
14217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14220 dynamic_linker='NetBSD (a.out) ld.so'
14221 else
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14223 soname_spec='${libname}${release}${shared_ext}$major'
14224 dynamic_linker='NetBSD ld.elf_so'
14225 fi
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=yes
14228 hardcode_into_libs=yes
14229 ;;
14230
14231newsos6)
14232 version_type=linux
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 shlibpath_overrides_runpath=yes
14236 ;;
14237
14238nto-qnx*)
14239 version_type=linux
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 shlibpath_overrides_runpath=yes
14246 ;;
14247
14248openbsd*)
14249 version_type=sunos
14250 sys_lib_dlsearch_path_spec="/usr/lib"
14251 need_lib_prefix=no
14252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14253 case $host_os in
14254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14255 *) need_version=no ;;
14256 esac
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14259 shlibpath_var=LD_LIBRARY_PATH
14260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14261 case $host_os in
14262 openbsd2.[89] | openbsd2.[89].*)
14263 shlibpath_overrides_runpath=no
14264 ;;
14265 *)
14266 shlibpath_overrides_runpath=yes
14267 ;;
14268 esac
14269 else
14270 shlibpath_overrides_runpath=yes
14271 fi
14272 ;;
14273
14274os2*)
14275 libname_spec='$name'
14276 shrext_cmds=".dll"
14277 need_lib_prefix=no
14278 library_names_spec='$libname${shared_ext} $libname.a'
14279 dynamic_linker='OS/2 ld.exe'
14280 shlibpath_var=LIBPATH
14281 ;;
14282
14283osf3* | osf4* | osf5*)
14284 version_type=osf
14285 need_lib_prefix=no
14286 need_version=no
14287 soname_spec='${libname}${release}${shared_ext}$major'
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 shlibpath_var=LD_LIBRARY_PATH
14290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14292 ;;
14293
14294rdos*)
14295 dynamic_linker=no
14296 ;;
14297
14298solaris*)
14299 version_type=linux
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 shlibpath_overrides_runpath=yes
14306 hardcode_into_libs=yes
14307 # ldd complains unless libraries are executable
14308 postinstall_cmds='chmod +x $lib'
14309 ;;
14310
14311sunos4*)
14312 version_type=sunos
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14315 shlibpath_var=LD_LIBRARY_PATH
14316 shlibpath_overrides_runpath=yes
14317 if test "$with_gnu_ld" = yes; then
14318 need_lib_prefix=no
14319 fi
14320 need_version=yes
14321 ;;
14322
14323sysv4 | sysv4.3*)
14324 version_type=linux
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 case $host_vendor in
14329 sni)
14330 shlibpath_overrides_runpath=no
14331 need_lib_prefix=no
14332 export_dynamic_flag_spec='${wl}-Blargedynsym'
14333 runpath_var=LD_RUN_PATH
14334 ;;
14335 siemens)
14336 need_lib_prefix=no
14337 ;;
14338 motorola)
14339 need_lib_prefix=no
14340 need_version=no
14341 shlibpath_overrides_runpath=no
14342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14343 ;;
14344 esac
14345 ;;
14346
14347sysv4*MP*)
14348 if test -d /usr/nec ;then
14349 version_type=linux
14350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14351 soname_spec='$libname${shared_ext}.$major'
14352 shlibpath_var=LD_LIBRARY_PATH
14353 fi
14354 ;;
14355
14356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14357 version_type=freebsd-elf
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 hardcode_into_libs=yes
14364 if test "$with_gnu_ld" = yes; then
14365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14366 shlibpath_overrides_runpath=no
14367 else
14368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14369 shlibpath_overrides_runpath=yes
14370 case $host_os in
14371 sco3.2v5*)
14372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14373 ;;
14374 esac
14375 fi
14376 sys_lib_dlsearch_path_spec='/usr/lib'
14377 ;;
14378
14379uts4*)
14380 version_type=linux
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 shlibpath_var=LD_LIBRARY_PATH
14384 ;;
14385
14386*)
14387 dynamic_linker=no
14388 ;;
14389esac
14390{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14391echo "${ECHO_T}$dynamic_linker" >&6; }
14392test "$dynamic_linker" = no && can_build_shared=no
14393
14394variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14395if test "$GCC" = yes; then
14396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14397fi
14398
14399{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14400echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14401hardcode_action_CXX=
14402if test -n "$hardcode_libdir_flag_spec_CXX" || \
14403 test -n "$runpath_var_CXX" || \
14404 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14405
14406 # We can hardcode non-existant directories.
14407 if test "$hardcode_direct_CXX" != no &&
14408 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14409 # have to relink, otherwise we might link with an installed library
14410 # when we should be linking with a yet-to-be-installed one
14411 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14412 test "$hardcode_minus_L_CXX" != no; then
14413 # Linking always hardcodes the temporary library directory.
14414 hardcode_action_CXX=relink
14415 else
14416 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14417 hardcode_action_CXX=immediate
14418 fi
14419else
14420 # We cannot hardcode anything, or else we can only hardcode existing
14421 # directories.
14422 hardcode_action_CXX=unsupported
14423fi
14424{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14425echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14426
14427if test "$hardcode_action_CXX" = relink; then
14428 # Fast installation is not supported
14429 enable_fast_install=no
14430elif test "$shlibpath_overrides_runpath" = yes ||
14431 test "$enable_shared" = no; then
14432 # Fast installation is not necessary
14433 enable_fast_install=needless
14434fi
14435
14436
14437# The else clause should only fire when bootstrapping the
14438# libtool distribution, otherwise you forgot to ship ltmain.sh
14439# with your package, and you will get complaints that there are
14440# no rules to generate ltmain.sh.
14441if test -f "$ltmain"; then
14442 # See if we are running on zsh, and set the options which allow our commands through
14443 # without removal of \ escapes.
14444 if test -n "${ZSH_VERSION+set}" ; then
14445 setopt NO_GLOB_SUBST
14446 fi
14447 # Now quote all the things that may contain metacharacters while being
14448 # careful not to overquote the AC_SUBSTed values. We take copies of the
14449 # variables and quote the copies for generation of the libtool script.
14450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14451 SED SHELL STRIP \
14452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14454 deplibs_check_method reload_flag reload_cmds need_locks \
14455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14456 lt_cv_sys_global_symbol_to_c_name_address \
14457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14458 old_postinstall_cmds old_postuninstall_cmds \
14459 compiler_CXX \
14460 CC_CXX \
14461 LD_CXX \
14462 lt_prog_compiler_wl_CXX \
14463 lt_prog_compiler_pic_CXX \
14464 lt_prog_compiler_static_CXX \
14465 lt_prog_compiler_no_builtin_flag_CXX \
14466 export_dynamic_flag_spec_CXX \
14467 thread_safe_flag_spec_CXX \
14468 whole_archive_flag_spec_CXX \
14469 enable_shared_with_static_runtimes_CXX \
14470 old_archive_cmds_CXX \
14471 old_archive_from_new_cmds_CXX \
14472 predep_objects_CXX \
14473 postdep_objects_CXX \
14474 predeps_CXX \
14475 postdeps_CXX \
14476 compiler_lib_search_path_CXX \
14477 archive_cmds_CXX \
14478 archive_expsym_cmds_CXX \
14479 postinstall_cmds_CXX \
14480 postuninstall_cmds_CXX \
14481 old_archive_from_expsyms_cmds_CXX \
14482 allow_undefined_flag_CXX \
14483 no_undefined_flag_CXX \
14484 export_symbols_cmds_CXX \
14485 hardcode_libdir_flag_spec_CXX \
14486 hardcode_libdir_flag_spec_ld_CXX \
14487 hardcode_libdir_separator_CXX \
14488 hardcode_automatic_CXX \
14489 module_cmds_CXX \
14490 module_expsym_cmds_CXX \
14491 lt_cv_prog_compiler_c_o_CXX \
14492 fix_srcfile_path_CXX \
14493 exclude_expsyms_CXX \
14494 include_expsyms_CXX; do
14495
14496 case $var in
14497 old_archive_cmds_CXX | \
14498 old_archive_from_new_cmds_CXX | \
14499 archive_cmds_CXX | \
14500 archive_expsym_cmds_CXX | \
14501 module_cmds_CXX | \
14502 module_expsym_cmds_CXX | \
14503 old_archive_from_expsyms_cmds_CXX | \
14504 export_symbols_cmds_CXX | \
14505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14506 postinstall_cmds | postuninstall_cmds | \
14507 old_postinstall_cmds | old_postuninstall_cmds | \
14508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14509 # Double-quote double-evaled strings.
14510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14511 ;;
14512 *)
14513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14514 ;;
14515 esac
14516 done
14517
14518 case $lt_echo in
14519 *'\$0 --fallback-echo"')
14520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14521 ;;
14522 esac
14523
14524cfgfile="$ofile"
14525
14526 cat <<__EOF__ >> "$cfgfile"
14527# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14528
14529# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14530
14531# Shell to use when invoking shell scripts.
14532SHELL=$lt_SHELL
14533
14534# Whether or not to build shared libraries.
14535build_libtool_libs=$enable_shared
14536
14537# Whether or not to build static libraries.
14538build_old_libs=$enable_static
14539
14540# Whether or not to add -lc for building shared libraries.
14541build_libtool_need_lc=$archive_cmds_need_lc_CXX
14542
14543# Whether or not to disallow shared libs when runtime libs are static
14544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14545
14546# Whether or not to optimize for fast installation.
14547fast_install=$enable_fast_install
14548
14549# The host system.
14550host_alias=$host_alias
14551host=$host
14552host_os=$host_os
14553
14554# The build system.
14555build_alias=$build_alias
14556build=$build
14557build_os=$build_os
14558
14559# An echo program that does not interpret backslashes.
14560echo=$lt_echo
14561
14562# The archiver.
14563AR=$lt_AR
14564AR_FLAGS=$lt_AR_FLAGS
14565
14566# A C compiler.
14567LTCC=$lt_LTCC
14568
14569# LTCC compiler flags.
14570LTCFLAGS=$lt_LTCFLAGS
14571
14572# A language-specific compiler.
14573CC=$lt_compiler_CXX
14574
14575# Is the compiler the GNU C compiler?
14576with_gcc=$GCC_CXX
14577
14578# An ERE matcher.
14579EGREP=$lt_EGREP
14580
14581# The linker used to build libraries.
14582LD=$lt_LD_CXX
14583
14584# Whether we need hard or soft links.
14585LN_S=$lt_LN_S
14586
14587# A BSD-compatible nm program.
14588NM=$lt_NM
14589
14590# A symbol stripping program
14591STRIP=$lt_STRIP
14592
14593# Used to examine libraries when file_magic_cmd begins "file"
14594MAGIC_CMD=$MAGIC_CMD
14595
14596# Used on cygwin: DLL creation program.
14597DLLTOOL="$DLLTOOL"
14598
14599# Used on cygwin: object dumper.
14600OBJDUMP="$OBJDUMP"
14601
14602# Used on cygwin: assembler.
14603AS="$AS"
14604
14605# The name of the directory that contains temporary libtool files.
14606objdir=$objdir
14607
14608# How to create reloadable object files.
14609reload_flag=$lt_reload_flag
14610reload_cmds=$lt_reload_cmds
14611
14612# How to pass a linker flag through the compiler.
14613wl=$lt_lt_prog_compiler_wl_CXX
14614
14615# Object file suffix (normally "o").
14616objext="$ac_objext"
14617
14618# Old archive suffix (normally "a").
14619libext="$libext"
14620
14621# Shared library suffix (normally ".so").
14622shrext_cmds='$shrext_cmds'
14623
14624# Executable file suffix (normally "").
14625exeext="$exeext"
14626
14627# Additional compiler flags for building library objects.
14628pic_flag=$lt_lt_prog_compiler_pic_CXX
14629pic_mode=$pic_mode
14630
14631# What is the maximum length of a command?
14632max_cmd_len=$lt_cv_sys_max_cmd_len
14633
14634# Does compiler simultaneously support -c and -o options?
14635compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14636
14637# Must we lock files when doing compilation?
14638need_locks=$lt_need_locks
14639
14640# Do we need the lib prefix for modules?
14641need_lib_prefix=$need_lib_prefix
14642
14643# Do we need a version for libraries?
14644need_version=$need_version
14645
14646# Whether dlopen is supported.
14647dlopen_support=$enable_dlopen
14648
14649# Whether dlopen of programs is supported.
14650dlopen_self=$enable_dlopen_self
14651
14652# Whether dlopen of statically linked programs is supported.
14653dlopen_self_static=$enable_dlopen_self_static
14654
14655# Compiler flag to prevent dynamic linking.
14656link_static_flag=$lt_lt_prog_compiler_static_CXX
14657
14658# Compiler flag to turn off builtin functions.
14659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14660
14661# Compiler flag to allow reflexive dlopens.
14662export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14663
14664# Compiler flag to generate shared objects directly from archives.
14665whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14666
14667# Compiler flag to generate thread-safe objects.
14668thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14669
14670# Library versioning type.
14671version_type=$version_type
14672
14673# Format of library name prefix.
14674libname_spec=$lt_libname_spec
14675
14676# List of archive names. First name is the real one, the rest are links.
14677# The last name is the one that the linker finds with -lNAME.
14678library_names_spec=$lt_library_names_spec
14679
14680# The coded name of the library, if different from the real name.
14681soname_spec=$lt_soname_spec
14682
14683# Commands used to build and install an old-style archive.
14684RANLIB=$lt_RANLIB
14685old_archive_cmds=$lt_old_archive_cmds_CXX
14686old_postinstall_cmds=$lt_old_postinstall_cmds
14687old_postuninstall_cmds=$lt_old_postuninstall_cmds
14688
14689# Create an old-style archive from a shared archive.
14690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14691
14692# Create a temporary old-style archive to link instead of a shared archive.
14693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14694
14695# Commands used to build and install a shared archive.
14696archive_cmds=$lt_archive_cmds_CXX
14697archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14698postinstall_cmds=$lt_postinstall_cmds
14699postuninstall_cmds=$lt_postuninstall_cmds
14700
14701# Commands used to build a loadable module (assumed same as above if empty)
14702module_cmds=$lt_module_cmds_CXX
14703module_expsym_cmds=$lt_module_expsym_cmds_CXX
14704
14705# Commands to strip libraries.
14706old_striplib=$lt_old_striplib
14707striplib=$lt_striplib
14708
14709# Dependencies to place before the objects being linked to create a
14710# shared library.
14711predep_objects=$lt_predep_objects_CXX
14712
14713# Dependencies to place after the objects being linked to create a
14714# shared library.
14715postdep_objects=$lt_postdep_objects_CXX
14716
14717# Dependencies to place before the objects being linked to create a
14718# shared library.
14719predeps=$lt_predeps_CXX
14720
14721# Dependencies to place after the objects being linked to create a
14722# shared library.
14723postdeps=$lt_postdeps_CXX
14724
14725# The library search path used internally by the compiler when linking
14726# a shared library.
14727compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14728
14729# Method to check whether dependent libraries are shared objects.
14730deplibs_check_method=$lt_deplibs_check_method
14731
14732# Command to use when deplibs_check_method == file_magic.
14733file_magic_cmd=$lt_file_magic_cmd
14734
14735# Flag that allows shared libraries with undefined symbols to be built.
14736allow_undefined_flag=$lt_allow_undefined_flag_CXX
14737
14738# Flag that forces no undefined symbols.
14739no_undefined_flag=$lt_no_undefined_flag_CXX
14740
14741# Commands used to finish a libtool library installation in a directory.
14742finish_cmds=$lt_finish_cmds
14743
14744# Same as above, but a single script fragment to be evaled but not shown.
14745finish_eval=$lt_finish_eval
14746
14747# Take the output of nm and produce a listing of raw symbols and C names.
14748global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14749
14750# Transform the output of nm in a proper C declaration
14751global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14752
14753# Transform the output of nm in a C name address pair
14754global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14755
14756# This is the shared library runtime path variable.
14757runpath_var=$runpath_var
14758
14759# This is the shared library path variable.
14760shlibpath_var=$shlibpath_var
14761
14762# Is shlibpath searched before the hard-coded library search path?
14763shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14764
14765# How to hardcode a shared library path into an executable.
14766hardcode_action=$hardcode_action_CXX
14767
14768# Whether we should hardcode library paths into libraries.
14769hardcode_into_libs=$hardcode_into_libs
14770
14771# Flag to hardcode \$libdir into a binary during linking.
14772# This must work even if \$libdir does not exist.
14773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14774
14775# If ld is used when linking, flag to hardcode \$libdir into
14776# a binary during linking. This must work even if \$libdir does
14777# not exist.
14778hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14779
14780# Whether we need a single -rpath flag with a separated argument.
14781hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14782
14783# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14784# resulting binary.
14785hardcode_direct=$hardcode_direct_CXX
14786
14787# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14788# resulting binary.
14789hardcode_minus_L=$hardcode_minus_L_CXX
14790
14791# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14792# the resulting binary.
14793hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14794
14795# Set to yes if building a shared library automatically hardcodes DIR into the library
14796# and all subsequent libraries and executables linked against it.
14797hardcode_automatic=$hardcode_automatic_CXX
14798
14799# Variables whose values should be saved in libtool wrapper scripts and
14800# restored at relink time.
14801variables_saved_for_relink="$variables_saved_for_relink"
14802
14803# Whether libtool must link a program against all its dependency libraries.
14804link_all_deplibs=$link_all_deplibs_CXX
14805
14806# Compile-time system search path for libraries
14807sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14808
14809# Run-time system search path for libraries
14810sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14811
14812# Fix the shell variable \$srcfile for the compiler.
14813fix_srcfile_path=$lt_fix_srcfile_path
14814
14815# Set to yes if exported symbols are required.
14816always_export_symbols=$always_export_symbols_CXX
14817
14818# The commands to list exported symbols.
14819export_symbols_cmds=$lt_export_symbols_cmds_CXX
14820
14821# The commands to extract the exported symbol list from a shared archive.
14822extract_expsyms_cmds=$lt_extract_expsyms_cmds
14823
14824# Symbols that should not be listed in the preloaded symbols.
14825exclude_expsyms=$lt_exclude_expsyms_CXX
14826
14827# Symbols that must always be exported.
14828include_expsyms=$lt_include_expsyms_CXX
14829
14830# ### END LIBTOOL TAG CONFIG: $tagname
14831
14832__EOF__
14833
14834
14835else
14836 # If there is no Makefile yet, we rely on a make rule to execute
14837 # `config.status --recheck' to rerun these tests and create the
14838 # libtool script then.
14839 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14840 if test -f "$ltmain_in"; then
14841 test -f Makefile && make "$ltmain"
14842 fi
14843fi
14844
14845
14846ac_ext=c
14847ac_cpp='$CPP $CPPFLAGS'
14848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850ac_compiler_gnu=$ac_cv_c_compiler_gnu
14851
14852CC=$lt_save_CC
14853LDCXX=$LD
14854LD=$lt_save_LD
14855GCC=$lt_save_GCC
14856with_gnu_ldcxx=$with_gnu_ld
14857with_gnu_ld=$lt_save_with_gnu_ld
14858lt_cv_path_LDCXX=$lt_cv_path_LD
14859lt_cv_path_LD=$lt_save_path_LD
14860lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14861lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14862
14863 else
14864 tagname=""
14865 fi
14866 ;;
14867
14868 F77)
14869 if test -n "$F77" && test "X$F77" != "Xno"; then
14870
14871ac_ext=f
14872ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14873ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14874ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14875
14876
14877archive_cmds_need_lc_F77=no
14878allow_undefined_flag_F77=
14879always_export_symbols_F77=no
14880archive_expsym_cmds_F77=
14881export_dynamic_flag_spec_F77=
14882hardcode_direct_F77=no
14883hardcode_libdir_flag_spec_F77=
14884hardcode_libdir_flag_spec_ld_F77=
14885hardcode_libdir_separator_F77=
14886hardcode_minus_L_F77=no
14887hardcode_automatic_F77=no
14888module_cmds_F77=
14889module_expsym_cmds_F77=
14890link_all_deplibs_F77=unknown
14891old_archive_cmds_F77=$old_archive_cmds
14892no_undefined_flag_F77=
14893whole_archive_flag_spec_F77=
14894enable_shared_with_static_runtimes_F77=no
14895
14896# Source file extension for f77 test sources.
14897ac_ext=f
14898
14899# Object file extension for compiled f77 test sources.
14900objext=o
14901objext_F77=$objext
14902
14903# Code to be used in simple compile tests
14904lt_simple_compile_test_code="\
14905 subroutine t
14906 return
14907 end
14908"
14909
14910# Code to be used in simple link tests
14911lt_simple_link_test_code="\
14912 program t
14913 end
14914"
14915
14916# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14917
14918# If no C compiler was specified, use CC.
14919LTCC=${LTCC-"$CC"}
14920
14921# If no C compiler flags were specified, use CFLAGS.
14922LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14923
14924# Allow CC to be a program name with arguments.
14925compiler=$CC
14926
14927
14928# save warnings/boilerplate of simple test code
14929ac_outfile=conftest.$ac_objext
14930echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14931eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14932_lt_compiler_boilerplate=`cat conftest.err`
14933$rm conftest*
14934
14935ac_outfile=conftest.$ac_objext
14936echo "$lt_simple_link_test_code" >conftest.$ac_ext
14937eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14938_lt_linker_boilerplate=`cat conftest.err`
14939$rm conftest*
14940
14941
14942# Allow CC to be a program name with arguments.
14943lt_save_CC="$CC"
14944CC=${F77-"f77"}
14945compiler=$CC
14946compiler_F77=$CC
14947for cc_temp in $compiler""; do
14948 case $cc_temp in
14949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14951 \-*) ;;
14952 *) break;;
14953 esac
14954done
14955cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14956
14957
14958{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14959echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14960{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14961echo "${ECHO_T}$can_build_shared" >&6; }
14962
14963{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14964echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14965test "$can_build_shared" = "no" && enable_shared=no
14966
14967# On AIX, shared libraries and static libraries use the same namespace, and
14968# are all built from PIC.
14969case $host_os in
14970aix3*)
14971 test "$enable_shared" = yes && enable_static=no
14972 if test -n "$RANLIB"; then
14973 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14974 postinstall_cmds='$RANLIB $lib'
14975 fi
14976 ;;
14977aix4* | aix5*)
14978 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14979 test "$enable_shared" = yes && enable_static=no
14980 fi
14981 ;;
14982esac
14983{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14984echo "${ECHO_T}$enable_shared" >&6; }
14985
14986{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14987echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14988# Make sure either enable_shared or enable_static is yes.
14989test "$enable_shared" = yes || enable_static=yes
14990{ echo "$as_me:$LINENO: result: $enable_static" >&5
14991echo "${ECHO_T}$enable_static" >&6; }
14992
14993GCC_F77="$G77"
14994LD_F77="$LD"
14995
14996lt_prog_compiler_wl_F77=
14997lt_prog_compiler_pic_F77=
14998lt_prog_compiler_static_F77=
14999
15000{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15001echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15002
15003 if test "$GCC" = yes; then
15004 lt_prog_compiler_wl_F77='-Wl,'
15005 lt_prog_compiler_static_F77='-static'
15006
15007 case $host_os in
15008 aix*)
15009 # All AIX code is PIC.
15010 if test "$host_cpu" = ia64; then
15011 # AIX 5 now supports IA64 processor
15012 lt_prog_compiler_static_F77='-Bstatic'
15013 fi
15014 ;;
15015
15016 amigaos*)
15017 # FIXME: we need at least 68020 code to build shared libraries, but
15018 # adding the `-m68020' flag to GCC prevents building anything better,
15019 # like `-m68040'.
15020 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15021 ;;
15022
15023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15024 # PIC is the default for these OSes.
15025 ;;
15026
15027 mingw* | cygwin* | pw32* | os2*)
15028 # This hack is so that the source file can tell whether it is being
15029 # built for inclusion in a dll (and should export symbols for example).
15030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15031 # (--disable-auto-import) libraries
15032 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15033 ;;
15034
15035 darwin* | rhapsody*)
15036 # PIC is the default on this platform
15037 # Common symbols not allowed in MH_DYLIB files
15038 lt_prog_compiler_pic_F77='-fno-common'
15039 ;;
15040
15041 interix[3-9]*)
15042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15043 # Instead, we relocate shared libraries at runtime.
15044 ;;
15045
15046 msdosdjgpp*)
15047 # Just because we use GCC doesn't mean we suddenly get shared libraries
15048 # on systems that don't support them.
15049 lt_prog_compiler_can_build_shared_F77=no
15050 enable_shared=no
15051 ;;
15052
15053 sysv4*MP*)
15054 if test -d /usr/nec; then
15055 lt_prog_compiler_pic_F77=-Kconform_pic
15056 fi
15057 ;;
15058
15059 hpux*)
15060 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15061 # not for PA HP-UX.
15062 case $host_cpu in
15063 hppa*64*|ia64*)
15064 # +Z the default
15065 ;;
15066 *)
15067 lt_prog_compiler_pic_F77='-fPIC'
15068 ;;
15069 esac
15070 ;;
15071
15072 *)
15073 lt_prog_compiler_pic_F77='-fPIC'
15074 ;;
15075 esac
15076 else
15077 # PORTME Check for flag to pass linker flags through the system compiler.
15078 case $host_os in
15079 aix*)
15080 lt_prog_compiler_wl_F77='-Wl,'
15081 if test "$host_cpu" = ia64; then
15082 # AIX 5 now supports IA64 processor
15083 lt_prog_compiler_static_F77='-Bstatic'
15084 else
15085 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15086 fi
15087 ;;
15088 darwin*)
15089 # PIC is the default on this platform
15090 # Common symbols not allowed in MH_DYLIB files
15091 case $cc_basename in
15092 xlc*)
15093 lt_prog_compiler_pic_F77='-qnocommon'
15094 lt_prog_compiler_wl_F77='-Wl,'
15095 ;;
15096 esac
15097 ;;
15098
15099 mingw* | cygwin* | pw32* | os2*)
15100 # This hack is so that the source file can tell whether it is being
15101 # built for inclusion in a dll (and should export symbols for example).
15102 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15103 ;;
15104
15105 hpux9* | hpux10* | hpux11*)
15106 lt_prog_compiler_wl_F77='-Wl,'
15107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15108 # not for PA HP-UX.
15109 case $host_cpu in
15110 hppa*64*|ia64*)
15111 # +Z the default
15112 ;;
15113 *)
15114 lt_prog_compiler_pic_F77='+Z'
15115 ;;
15116 esac
15117 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15118 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15119 ;;
15120
15121 irix5* | irix6* | nonstopux*)
15122 lt_prog_compiler_wl_F77='-Wl,'
15123 # PIC (with -KPIC) is the default.
15124 lt_prog_compiler_static_F77='-non_shared'
15125 ;;
15126
15127 newsos6)
15128 lt_prog_compiler_pic_F77='-KPIC'
15129 lt_prog_compiler_static_F77='-Bstatic'
15130 ;;
15131
15132 linux* | k*bsd*-gnu)
15133 case $cc_basename in
15134 icc* | ecc*)
15135 lt_prog_compiler_wl_F77='-Wl,'
15136 lt_prog_compiler_pic_F77='-KPIC'
15137 lt_prog_compiler_static_F77='-static'
15138 ;;
15139 pgcc* | pgf77* | pgf90* | pgf95*)
15140 # Portland Group compilers (*not* the Pentium gcc compiler,
15141 # which looks to be a dead project)
15142 lt_prog_compiler_wl_F77='-Wl,'
15143 lt_prog_compiler_pic_F77='-fpic'
15144 lt_prog_compiler_static_F77='-Bstatic'
15145 ;;
15146 ccc*)
15147 lt_prog_compiler_wl_F77='-Wl,'
15148 # All Alpha code is PIC.
15149 lt_prog_compiler_static_F77='-non_shared'
15150 ;;
15151 *)
15152 case `$CC -V 2>&1 | sed 5q` in
15153 *Sun\ C*)
15154 # Sun C 5.9
15155 lt_prog_compiler_pic_F77='-KPIC'
15156 lt_prog_compiler_static_F77='-Bstatic'
15157 lt_prog_compiler_wl_F77='-Wl,'
15158 ;;
15159 *Sun\ F*)
15160 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15161 lt_prog_compiler_pic_F77='-KPIC'
15162 lt_prog_compiler_static_F77='-Bstatic'
15163 lt_prog_compiler_wl_F77=''
15164 ;;
15165 esac
15166 ;;
15167 esac
15168 ;;
15169
15170 osf3* | osf4* | osf5*)
15171 lt_prog_compiler_wl_F77='-Wl,'
15172 # All OSF/1 code is PIC.
15173 lt_prog_compiler_static_F77='-non_shared'
15174 ;;
15175
15176 rdos*)
15177 lt_prog_compiler_static_F77='-non_shared'
15178 ;;
15179
15180 solaris*)
15181 lt_prog_compiler_pic_F77='-KPIC'
15182 lt_prog_compiler_static_F77='-Bstatic'
15183 case $cc_basename in
15184 f77* | f90* | f95*)
15185 lt_prog_compiler_wl_F77='-Qoption ld ';;
15186 *)
15187 lt_prog_compiler_wl_F77='-Wl,';;
15188 esac
15189 ;;
15190
15191 sunos4*)
15192 lt_prog_compiler_wl_F77='-Qoption ld '
15193 lt_prog_compiler_pic_F77='-PIC'
15194 lt_prog_compiler_static_F77='-Bstatic'
15195 ;;
15196
15197 sysv4 | sysv4.2uw2* | sysv4.3*)
15198 lt_prog_compiler_wl_F77='-Wl,'
15199 lt_prog_compiler_pic_F77='-KPIC'
15200 lt_prog_compiler_static_F77='-Bstatic'
15201 ;;
15202
15203 sysv4*MP*)
15204 if test -d /usr/nec ;then
15205 lt_prog_compiler_pic_F77='-Kconform_pic'
15206 lt_prog_compiler_static_F77='-Bstatic'
15207 fi
15208 ;;
15209
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 lt_prog_compiler_wl_F77='-Wl,'
15212 lt_prog_compiler_pic_F77='-KPIC'
15213 lt_prog_compiler_static_F77='-Bstatic'
15214 ;;
15215
15216 unicos*)
15217 lt_prog_compiler_wl_F77='-Wl,'
15218 lt_prog_compiler_can_build_shared_F77=no
15219 ;;
15220
15221 uts4*)
15222 lt_prog_compiler_pic_F77='-pic'
15223 lt_prog_compiler_static_F77='-Bstatic'
15224 ;;
15225
15226 *)
15227 lt_prog_compiler_can_build_shared_F77=no
15228 ;;
15229 esac
15230 fi
15231
15232{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15233echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15234
15235#
15236# Check to make sure the PIC flag actually works.
15237#
15238if test -n "$lt_prog_compiler_pic_F77"; then
15239
15240{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15241echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15242if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 lt_prog_compiler_pic_works_F77=no
15246 ac_outfile=conftest.$ac_objext
15247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 # The option is referenced via a variable to avoid confusing sed.
15254 lt_compile=`echo "$ac_compile" | $SED \
15255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257 -e 's:$: $lt_compiler_flag:'`
15258 (eval echo "\"\$as_me:15258: $lt_compile\"" >&5)
15259 (eval "$lt_compile" 2>conftest.err)
15260 ac_status=$?
15261 cat conftest.err >&5
15262 echo "$as_me:15262: \$? = $ac_status" >&5
15263 if (exit $ac_status) && test -s "$ac_outfile"; then
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings other than the usual output.
15266 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15269 lt_prog_compiler_pic_works_F77=yes
15270 fi
15271 fi
15272 $rm conftest*
15273
15274fi
15275{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15276echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15277
15278if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15279 case $lt_prog_compiler_pic_F77 in
15280 "" | " "*) ;;
15281 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15282 esac
15283else
15284 lt_prog_compiler_pic_F77=
15285 lt_prog_compiler_can_build_shared_F77=no
15286fi
15287
15288fi
15289case $host_os in
15290 # For platforms which do not support PIC, -DPIC is meaningless:
15291 *djgpp*)
15292 lt_prog_compiler_pic_F77=
15293 ;;
15294 *)
15295 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15296 ;;
15297esac
15298
15299#
15300# Check to make sure the static flag actually works.
15301#
15302wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15303{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15304echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15305if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307else
15308 lt_prog_compiler_static_works_F77=no
15309 save_LDFLAGS="$LDFLAGS"
15310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15313 # The linker can only warn and ignore the option if not recognized
15314 # So say no if there are warnings
15315 if test -s conftest.err; then
15316 # Append any errors to the config.log.
15317 cat conftest.err 1>&5
15318 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15320 if diff conftest.exp conftest.er2 >/dev/null; then
15321 lt_prog_compiler_static_works_F77=yes
15322 fi
15323 else
15324 lt_prog_compiler_static_works_F77=yes
15325 fi
15326 fi
15327 $rm conftest*
15328 LDFLAGS="$save_LDFLAGS"
15329
15330fi
15331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15332echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15333
15334if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15335 :
15336else
15337 lt_prog_compiler_static_F77=
15338fi
15339
15340
15341{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15342echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15343if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345else
15346 lt_cv_prog_compiler_c_o_F77=no
15347 $rm -r conftest 2>/dev/null
15348 mkdir conftest
15349 cd conftest
15350 mkdir out
15351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15352
15353 lt_compiler_flag="-o out/conftest2.$ac_objext"
15354 # Insert the option either (1) after the last *FLAGS variable, or
15355 # (2) before a word containing "conftest.", or (3) at the end.
15356 # Note that $ac_compile itself does not contain backslashes and begins
15357 # with a dollar sign (not a hyphen), so the echo should work correctly.
15358 lt_compile=`echo "$ac_compile" | $SED \
15359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15361 -e 's:$: $lt_compiler_flag:'`
15362 (eval echo "\"\$as_me:15362: $lt_compile\"" >&5)
15363 (eval "$lt_compile" 2>out/conftest.err)
15364 ac_status=$?
15365 cat out/conftest.err >&5
15366 echo "$as_me:15366: \$? = $ac_status" >&5
15367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15368 then
15369 # The compiler can only warn and ignore the option if not recognized
15370 # So say no if there are warnings
15371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15374 lt_cv_prog_compiler_c_o_F77=yes
15375 fi
15376 fi
15377 chmod u+w . 2>&5
15378 $rm conftest*
15379 # SGI C++ compiler will create directory out/ii_files/ for
15380 # template instantiation
15381 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15382 $rm out/* && rmdir out
15383 cd ..
15384 rmdir conftest
15385 $rm conftest*
15386
15387fi
15388{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15389echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15390
15391
15392hard_links="nottested"
15393if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15394 # do not overwrite the value of need_locks provided by the user
15395 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15396echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15397 hard_links=yes
15398 $rm conftest*
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 touch conftest.a
15401 ln conftest.a conftest.b 2>&5 || hard_links=no
15402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403 { echo "$as_me:$LINENO: result: $hard_links" >&5
15404echo "${ECHO_T}$hard_links" >&6; }
15405 if test "$hard_links" = no; then
15406 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15407echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15408 need_locks=warn
15409 fi
15410else
15411 need_locks=no
15412fi
15413
15414{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15415echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15416
15417 runpath_var=
15418 allow_undefined_flag_F77=
15419 enable_shared_with_static_runtimes_F77=no
15420 archive_cmds_F77=
15421 archive_expsym_cmds_F77=
15422 old_archive_From_new_cmds_F77=
15423 old_archive_from_expsyms_cmds_F77=
15424 export_dynamic_flag_spec_F77=
15425 whole_archive_flag_spec_F77=
15426 thread_safe_flag_spec_F77=
15427 hardcode_libdir_flag_spec_F77=
15428 hardcode_libdir_flag_spec_ld_F77=
15429 hardcode_libdir_separator_F77=
15430 hardcode_direct_F77=no
15431 hardcode_minus_L_F77=no
15432 hardcode_shlibpath_var_F77=unsupported
15433 link_all_deplibs_F77=unknown
15434 hardcode_automatic_F77=no
15435 module_cmds_F77=
15436 module_expsym_cmds_F77=
15437 always_export_symbols_F77=no
15438 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439 # include_expsyms should be a list of space-separated symbols to be *always*
15440 # included in the symbol list
15441 include_expsyms_F77=
15442 # exclude_expsyms can be an extended regexp of symbols to exclude
15443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445 # as well as any symbol that contains `d'.
15446 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448 # platforms (ab)use it in PIC code, but their linkers get confused if
15449 # the symbol is explicitly referenced. Since portable code cannot
15450 # rely on this symbol name, it's probably fine to never include it in
15451 # preloaded symbol tables.
15452 extract_expsyms_cmds=
15453 # Just being paranoid about ensuring that cc_basename is set.
15454 for cc_temp in $compiler""; do
15455 case $cc_temp in
15456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15458 \-*) ;;
15459 *) break;;
15460 esac
15461done
15462cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15463
15464 case $host_os in
15465 cygwin* | mingw* | pw32*)
15466 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15467 # When not using gcc, we currently assume that we are using
15468 # Microsoft Visual C++.
15469 if test "$GCC" != yes; then
15470 with_gnu_ld=no
15471 fi
15472 ;;
15473 interix*)
15474 # we just hope/assume this is gcc and not c89 (= MSVC++)
15475 with_gnu_ld=yes
15476 ;;
15477 openbsd*)
15478 with_gnu_ld=no
15479 ;;
15480 esac
15481
15482 ld_shlibs_F77=yes
15483 if test "$with_gnu_ld" = yes; then
15484 # If archive_cmds runs LD, not CC, wlarc should be empty
15485 wlarc='${wl}'
15486
15487 # Set some defaults for GNU ld with shared library support. These
15488 # are reset later if shared libraries are not supported. Putting them
15489 # here allows them to be overridden if necessary.
15490 runpath_var=LD_RUN_PATH
15491 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15492 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15493 # ancient GNU ld didn't support --whole-archive et. al.
15494 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15495 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15496 else
15497 whole_archive_flag_spec_F77=
15498 fi
15499 supports_anon_versioning=no
15500 case `$LD -v 2>/dev/null` in
15501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15504 *\ 2.11.*) ;; # other 2.11 versions
15505 *) supports_anon_versioning=yes ;;
15506 esac
15507
15508 # See if GNU ld supports shared libraries.
15509 case $host_os in
15510 aix3* | aix4* | aix5*)
15511 # On AIX/PPC, the GNU linker is very broken
15512 if test "$host_cpu" != ia64; then
15513 ld_shlibs_F77=no
15514 cat <<EOF 1>&2
15515
15516*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15517*** to be unable to reliably create shared libraries on AIX.
15518*** Therefore, libtool is disabling shared libraries support. If you
15519*** really care for shared libraries, you may want to modify your PATH
15520*** so that a non-GNU linker is found, and then restart.
15521
15522EOF
15523 fi
15524 ;;
15525
15526 amigaos*)
15527 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)'
15528 hardcode_libdir_flag_spec_F77='-L$libdir'
15529 hardcode_minus_L_F77=yes
15530
15531 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15532 # that the semantics of dynamic libraries on AmigaOS, at least up
15533 # to version 4, is to share data among multiple programs linked
15534 # with the same dynamic library. Since this doesn't match the
15535 # behavior of shared libraries on other platforms, we can't use
15536 # them.
15537 ld_shlibs_F77=no
15538 ;;
15539
15540 beos*)
15541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15542 allow_undefined_flag_F77=unsupported
15543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15544 # support --undefined. This deserves some investigation. FIXME
15545 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15546 else
15547 ld_shlibs_F77=no
15548 fi
15549 ;;
15550
15551 cygwin* | mingw* | pw32*)
15552 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15553 # as there is no search path for DLLs.
15554 hardcode_libdir_flag_spec_F77='-L$libdir'
15555 allow_undefined_flag_F77=unsupported
15556 always_export_symbols_F77=no
15557 enable_shared_with_static_runtimes_F77=yes
15558 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15559
15560 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15562 # If the export-symbols file already is a .def file (1st line
15563 # is EXPORTS), use it as is; otherwise, prepend...
15564 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15565 cp $export_symbols $output_objdir/$soname.def;
15566 else
15567 echo EXPORTS > $output_objdir/$soname.def;
15568 cat $export_symbols >> $output_objdir/$soname.def;
15569 fi~
15570 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15571 else
15572 ld_shlibs_F77=no
15573 fi
15574 ;;
15575
15576 interix[3-9]*)
15577 hardcode_direct_F77=no
15578 hardcode_shlibpath_var_F77=no
15579 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580 export_dynamic_flag_spec_F77='${wl}-E'
15581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15582 # Instead, shared libraries are loaded at an image base (0x10000000 by
15583 # default) and relocated if they conflict, which is a slow very memory
15584 # consuming and fragmenting process. To avoid this, we pick a random,
15585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15587 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'
15588 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'
15589 ;;
15590
15591 gnu* | linux* | k*bsd*-gnu)
15592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15593 tmp_addflag=
15594 case $cc_basename,$host_cpu in
15595 pgcc*) # Portland Group C compiler
15596 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'
15597 tmp_addflag=' $pic_flag'
15598 ;;
15599 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15600 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'
15601 tmp_addflag=' $pic_flag -Mnomain' ;;
15602 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15603 tmp_addflag=' -i_dynamic' ;;
15604 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15605 tmp_addflag=' -i_dynamic -nofor_main' ;;
15606 ifc* | ifort*) # Intel Fortran compiler
15607 tmp_addflag=' -nofor_main' ;;
15608 esac
15609 case `$CC -V 2>&1 | sed 5q` in
15610 *Sun\ C*) # Sun C 5.9
15611 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15612 tmp_sharedflag='-G' ;;
15613 *Sun\ F*) # Sun Fortran 8.3
15614 tmp_sharedflag='-G' ;;
15615 *)
15616 tmp_sharedflag='-shared' ;;
15617 esac
15618 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15619
15620 if test $supports_anon_versioning = yes; then
15621 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15623 $echo "local: *; };" >> $output_objdir/$libname.ver~
15624 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15625 fi
15626 else
15627 ld_shlibs_F77=no
15628 fi
15629 ;;
15630
15631 netbsd*)
15632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15633 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15634 wlarc=
15635 else
15636 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15637 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15638 fi
15639 ;;
15640
15641 solaris*)
15642 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15643 ld_shlibs_F77=no
15644 cat <<EOF 1>&2
15645
15646*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15647*** create shared libraries on Solaris systems. Therefore, libtool
15648*** is disabling shared libraries support. We urge you to upgrade GNU
15649*** binutils to release 2.9.1 or newer. Another option is to modify
15650*** your PATH or compiler configuration so that the native linker is
15651*** used, and then restart.
15652
15653EOF
15654 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15655 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15656 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15657 else
15658 ld_shlibs_F77=no
15659 fi
15660 ;;
15661
15662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15663 case `$LD -v 2>&1` in
15664 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15665 ld_shlibs_F77=no
15666 cat <<_LT_EOF 1>&2
15667
15668*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15669*** reliably create shared libraries on SCO systems. Therefore, libtool
15670*** is disabling shared libraries support. We urge you to upgrade GNU
15671*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15672*** your PATH or compiler configuration so that the native linker is
15673*** used, and then restart.
15674
15675_LT_EOF
15676 ;;
15677 *)
15678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15679 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15680 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15681 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15682 else
15683 ld_shlibs_F77=no
15684 fi
15685 ;;
15686 esac
15687 ;;
15688
15689 sunos4*)
15690 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15691 wlarc=
15692 hardcode_direct_F77=yes
15693 hardcode_shlibpath_var_F77=no
15694 ;;
15695
15696 *)
15697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15699 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15700 else
15701 ld_shlibs_F77=no
15702 fi
15703 ;;
15704 esac
15705
15706 if test "$ld_shlibs_F77" = no; then
15707 runpath_var=
15708 hardcode_libdir_flag_spec_F77=
15709 export_dynamic_flag_spec_F77=
15710 whole_archive_flag_spec_F77=
15711 fi
15712 else
15713 # PORTME fill in a description of your system's linker (not GNU ld)
15714 case $host_os in
15715 aix3*)
15716 allow_undefined_flag_F77=unsupported
15717 always_export_symbols_F77=yes
15718 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'
15719 # Note: this linker hardcodes the directories in LIBPATH if there
15720 # are no directories specified by -L.
15721 hardcode_minus_L_F77=yes
15722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15723 # Neither direct hardcoding nor static linking is supported with a
15724 # broken collect2.
15725 hardcode_direct_F77=unsupported
15726 fi
15727 ;;
15728
15729 aix4* | aix5*)
15730 if test "$host_cpu" = ia64; then
15731 # On IA64, the linker does run time linking by default, so we don't
15732 # have to do anything special.
15733 aix_use_runtimelinking=no
15734 exp_sym_flag='-Bexport'
15735 no_entry_flag=""
15736 else
15737 # If we're using GNU nm, then we don't want the "-C" option.
15738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15740 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'
15741 else
15742 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'
15743 fi
15744 aix_use_runtimelinking=no
15745
15746 # Test if we are trying to use run time linking or normal
15747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15748 # need to do runtime linking.
15749 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15750 for ld_flag in $LDFLAGS; do
15751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15752 aix_use_runtimelinking=yes
15753 break
15754 fi
15755 done
15756 ;;
15757 esac
15758
15759 exp_sym_flag='-bexport'
15760 no_entry_flag='-bnoentry'
15761 fi
15762
15763 # When large executables or shared objects are built, AIX ld can
15764 # have problems creating the table of contents. If linking a library
15765 # or program results in "error TOC overflow" add -mminimal-toc to
15766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15768
15769 archive_cmds_F77=''
15770 hardcode_direct_F77=yes
15771 hardcode_libdir_separator_F77=':'
15772 link_all_deplibs_F77=yes
15773
15774 if test "$GCC" = yes; then
15775 case $host_os in aix4.[012]|aix4.[012].*)
15776 # We only want to do this on AIX 4.2 and lower, the check
15777 # below for broken collect2 doesn't work under 4.3+
15778 collect2name=`${CC} -print-prog-name=collect2`
15779 if test -f "$collect2name" && \
15780 strings "$collect2name" | grep resolve_lib_name >/dev/null
15781 then
15782 # We have reworked collect2
15783 :
15784 else
15785 # We have old collect2
15786 hardcode_direct_F77=unsupported
15787 # It fails to find uninstalled libraries when the uninstalled
15788 # path is not listed in the libpath. Setting hardcode_minus_L
15789 # to unsupported forces relinking
15790 hardcode_minus_L_F77=yes
15791 hardcode_libdir_flag_spec_F77='-L$libdir'
15792 hardcode_libdir_separator_F77=
15793 fi
15794 ;;
15795 esac
15796 shared_flag='-shared'
15797 if test "$aix_use_runtimelinking" = yes; then
15798 shared_flag="$shared_flag "'${wl}-G'
15799 fi
15800 else
15801 # not using gcc
15802 if test "$host_cpu" = ia64; then
15803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15804 # chokes on -Wl,-G. The following line is correct:
15805 shared_flag='-G'
15806 else
15807 if test "$aix_use_runtimelinking" = yes; then
15808 shared_flag='${wl}-G'
15809 else
15810 shared_flag='${wl}-bM:SRE'
15811 fi
15812 fi
15813 fi
15814
15815 # It seems that -bexpall does not export symbols beginning with
15816 # underscore (_), so it is better to generate a list of symbols to export.
15817 always_export_symbols_F77=yes
15818 if test "$aix_use_runtimelinking" = yes; then
15819 # Warning - without using the other runtime loading flags (-brtl),
15820 # -berok will link without error, but may produce a broken library.
15821 allow_undefined_flag_F77='-berok'
15822 # Determine the default libpath from the value encoded in an empty executable.
15823 cat >conftest.$ac_ext <<_ACEOF
15824 program main
15825
15826 end
15827_ACEOF
15828rm -f conftest.$ac_objext conftest$ac_exeext
15829if { (ac_try="$ac_link"
15830case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15833esac
15834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_link") 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } && {
15842 test -z "$ac_f77_werror_flag" ||
15843 test ! -s conftest.err
15844 } && test -s conftest$ac_exeext &&
15845 $as_test_x conftest$ac_exeext; then
15846
15847lt_aix_libpath_sed='
15848 /Import File Strings/,/^$/ {
15849 /^0/ {
15850 s/^0 *\(.*\)$/\1/
15851 p
15852 }
15853 }'
15854aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15855# Check for a 64-bit object if we didn't find anything.
15856if test -z "$aix_libpath"; then
15857 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15858fi
15859else
15860 echo "$as_me: failed program was:" >&5
15861sed 's/^/| /' conftest.$ac_ext >&5
15862
15863
15864fi
15865
15866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15867 conftest$ac_exeext conftest.$ac_ext
15868if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15869
15870 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15871 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"
15872 else
15873 if test "$host_cpu" = ia64; then
15874 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15875 allow_undefined_flag_F77="-z nodefs"
15876 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"
15877 else
15878 # Determine the default libpath from the value encoded in an empty executable.
15879 cat >conftest.$ac_ext <<_ACEOF
15880 program main
15881
15882 end
15883_ACEOF
15884rm -f conftest.$ac_objext conftest$ac_exeext
15885if { (ac_try="$ac_link"
15886case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15889esac
15890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_link") 2>conftest.er1
15892 ac_status=$?
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } && {
15898 test -z "$ac_f77_werror_flag" ||
15899 test ! -s conftest.err
15900 } && test -s conftest$ac_exeext &&
15901 $as_test_x conftest$ac_exeext; then
15902
15903lt_aix_libpath_sed='
15904 /Import File Strings/,/^$/ {
15905 /^0/ {
15906 s/^0 *\(.*\)$/\1/
15907 p
15908 }
15909 }'
15910aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15911# Check for a 64-bit object if we didn't find anything.
15912if test -z "$aix_libpath"; then
15913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15914fi
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919
15920fi
15921
15922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15923 conftest$ac_exeext conftest.$ac_ext
15924if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15925
15926 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15927 # Warning - without using the other run time loading flags,
15928 # -berok will link without error, but may produce a broken library.
15929 no_undefined_flag_F77=' ${wl}-bernotok'
15930 allow_undefined_flag_F77=' ${wl}-berok'
15931 # Exported symbols can be pulled into shared objects from archives
15932 whole_archive_flag_spec_F77='$convenience'
15933 archive_cmds_need_lc_F77=yes
15934 # This is similar to how AIX traditionally builds its shared libraries.
15935 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'
15936 fi
15937 fi
15938 ;;
15939
15940 amigaos*)
15941 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)'
15942 hardcode_libdir_flag_spec_F77='-L$libdir'
15943 hardcode_minus_L_F77=yes
15944 # see comment about different semantics on the GNU ld section
15945 ld_shlibs_F77=no
15946 ;;
15947
15948 bsdi[45]*)
15949 export_dynamic_flag_spec_F77=-rdynamic
15950 ;;
15951
15952 cygwin* | mingw* | pw32*)
15953 # When not using gcc, we currently assume that we are using
15954 # Microsoft Visual C++.
15955 # hardcode_libdir_flag_spec is actually meaningless, as there is
15956 # no search path for DLLs.
15957 hardcode_libdir_flag_spec_F77=' '
15958 allow_undefined_flag_F77=unsupported
15959 # Tell ltmain to make .lib files, not .a files.
15960 libext=lib
15961 # Tell ltmain to make .dll files, not .so files.
15962 shrext_cmds=".dll"
15963 # FIXME: Setting linknames here is a bad hack.
15964 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15965 # The linker will automatically build a .lib file if we build a DLL.
15966 old_archive_From_new_cmds_F77='true'
15967 # FIXME: Should let the user specify the lib program.
15968 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15969 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15970 enable_shared_with_static_runtimes_F77=yes
15971 ;;
15972
15973 darwin* | rhapsody*)
15974 case $host_os in
15975 rhapsody* | darwin1.[012])
15976 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15977 ;;
15978 *) # Darwin 1.3 on
15979 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15980 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15981 else
15982 case ${MACOSX_DEPLOYMENT_TARGET} in
15983 10.[012])
15984 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15985 ;;
15986 10.*)
15987 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15988 ;;
15989 esac
15990 fi
15991 ;;
15992 esac
15993 archive_cmds_need_lc_F77=no
15994 hardcode_direct_F77=no
15995 hardcode_automatic_F77=yes
15996 hardcode_shlibpath_var_F77=unsupported
15997 whole_archive_flag_spec_F77=''
15998 link_all_deplibs_F77=yes
15999 if test "$GCC" = yes ; then
16000 output_verbose_link_cmd='echo'
16001 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16002 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16003 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16004 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}'
16005 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}'
16006 else
16007 case $cc_basename in
16008 xlc*)
16009 output_verbose_link_cmd='echo'
16010 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16011 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16012 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16013 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16014 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}'
16015 ;;
16016 *)
16017 ld_shlibs_F77=no
16018 ;;
16019 esac
16020 fi
16021 ;;
16022
16023 dgux*)
16024 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025 hardcode_libdir_flag_spec_F77='-L$libdir'
16026 hardcode_shlibpath_var_F77=no
16027 ;;
16028
16029 freebsd1*)
16030 ld_shlibs_F77=no
16031 ;;
16032
16033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16034 # support. Future versions do this automatically, but an explicit c++rt0.o
16035 # does not break anything, and helps significantly (at the cost of a little
16036 # extra space).
16037 freebsd2.2*)
16038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16039 hardcode_libdir_flag_spec_F77='-R$libdir'
16040 hardcode_direct_F77=yes
16041 hardcode_shlibpath_var_F77=no
16042 ;;
16043
16044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16045 freebsd2*)
16046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_direct_F77=yes
16048 hardcode_minus_L_F77=yes
16049 hardcode_shlibpath_var_F77=no
16050 ;;
16051
16052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16053 freebsd* | dragonfly*)
16054 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16055 hardcode_libdir_flag_spec_F77='-R$libdir'
16056 hardcode_direct_F77=yes
16057 hardcode_shlibpath_var_F77=no
16058 ;;
16059
16060 hpux9*)
16061 if test "$GCC" = yes; then
16062 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'
16063 else
16064 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'
16065 fi
16066 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16067 hardcode_libdir_separator_F77=:
16068 hardcode_direct_F77=yes
16069
16070 # hardcode_minus_L: Not really in the search PATH,
16071 # but as the default location of the library.
16072 hardcode_minus_L_F77=yes
16073 export_dynamic_flag_spec_F77='${wl}-E'
16074 ;;
16075
16076 hpux10*)
16077 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16078 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16079 else
16080 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16081 fi
16082 if test "$with_gnu_ld" = no; then
16083 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16084 hardcode_libdir_separator_F77=:
16085
16086 hardcode_direct_F77=yes
16087 export_dynamic_flag_spec_F77='${wl}-E'
16088
16089 # hardcode_minus_L: Not really in the search PATH,
16090 # but as the default location of the library.
16091 hardcode_minus_L_F77=yes
16092 fi
16093 ;;
16094
16095 hpux11*)
16096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16097 case $host_cpu in
16098 hppa*64*)
16099 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16100 ;;
16101 ia64*)
16102 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16103 ;;
16104 *)
16105 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16106 ;;
16107 esac
16108 else
16109 case $host_cpu in
16110 hppa*64*)
16111 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16112 ;;
16113 ia64*)
16114 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16115 ;;
16116 *)
16117 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16118 ;;
16119 esac
16120 fi
16121 if test "$with_gnu_ld" = no; then
16122 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16123 hardcode_libdir_separator_F77=:
16124
16125 case $host_cpu in
16126 hppa*64*|ia64*)
16127 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16128 hardcode_direct_F77=no
16129 hardcode_shlibpath_var_F77=no
16130 ;;
16131 *)
16132 hardcode_direct_F77=yes
16133 export_dynamic_flag_spec_F77='${wl}-E'
16134
16135 # hardcode_minus_L: Not really in the search PATH,
16136 # but as the default location of the library.
16137 hardcode_minus_L_F77=yes
16138 ;;
16139 esac
16140 fi
16141 ;;
16142
16143 irix5* | irix6* | nonstopux*)
16144 if test "$GCC" = yes; then
16145 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'
16146 else
16147 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'
16148 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16149 fi
16150 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16151 hardcode_libdir_separator_F77=:
16152 link_all_deplibs_F77=yes
16153 ;;
16154
16155 netbsd*)
16156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16157 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16158 else
16159 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16160 fi
16161 hardcode_libdir_flag_spec_F77='-R$libdir'
16162 hardcode_direct_F77=yes
16163 hardcode_shlibpath_var_F77=no
16164 ;;
16165
16166 newsos6)
16167 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168 hardcode_direct_F77=yes
16169 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16170 hardcode_libdir_separator_F77=:
16171 hardcode_shlibpath_var_F77=no
16172 ;;
16173
16174 openbsd*)
16175 if test -f /usr/libexec/ld.so; then
16176 hardcode_direct_F77=yes
16177 hardcode_shlibpath_var_F77=no
16178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16179 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16180 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16182 export_dynamic_flag_spec_F77='${wl}-E'
16183 else
16184 case $host_os in
16185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_libdir_flag_spec_F77='-R$libdir'
16188 ;;
16189 *)
16190 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16191 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16192 ;;
16193 esac
16194 fi
16195 else
16196 ld_shlibs_F77=no
16197 fi
16198 ;;
16199
16200 os2*)
16201 hardcode_libdir_flag_spec_F77='-L$libdir'
16202 hardcode_minus_L_F77=yes
16203 allow_undefined_flag_F77=unsupported
16204 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'
16205 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16206 ;;
16207
16208 osf3*)
16209 if test "$GCC" = yes; then
16210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16211 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'
16212 else
16213 allow_undefined_flag_F77=' -expect_unresolved \*'
16214 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'
16215 fi
16216 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16217 hardcode_libdir_separator_F77=:
16218 ;;
16219
16220 osf4* | osf5*) # as osf3* with the addition of -msym flag
16221 if test "$GCC" = yes; then
16222 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16223 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'
16224 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16225 else
16226 allow_undefined_flag_F77=' -expect_unresolved \*'
16227 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'
16228 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~
16229 $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'
16230
16231 # Both c and cxx compiler support -rpath directly
16232 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16233 fi
16234 hardcode_libdir_separator_F77=:
16235 ;;
16236
16237 solaris*)
16238 no_undefined_flag_F77=' -z text'
16239 if test "$GCC" = yes; then
16240 wlarc='${wl}'
16241 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16242 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16243 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16244 else
16245 wlarc=''
16246 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16249 fi
16250 hardcode_libdir_flag_spec_F77='-R$libdir'
16251 hardcode_shlibpath_var_F77=no
16252 case $host_os in
16253 solaris2.[0-5] | solaris2.[0-5].*) ;;
16254 *)
16255 # The compiler driver will combine and reorder linker options,
16256 # but understands `-z linker_flag'. GCC discards it without `$wl',
16257 # but is careful enough not to reorder.
16258 # Supported since Solaris 2.6 (maybe 2.5.1?)
16259 if test "$GCC" = yes; then
16260 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16261 else
16262 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16263 fi
16264 ;;
16265 esac
16266 link_all_deplibs_F77=yes
16267 ;;
16268
16269 sunos4*)
16270 if test "x$host_vendor" = xsequent; then
16271 # Use $CC to link under sequent, because it throws in some extra .o
16272 # files that make .init and .fini sections work.
16273 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16274 else
16275 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16276 fi
16277 hardcode_libdir_flag_spec_F77='-L$libdir'
16278 hardcode_direct_F77=yes
16279 hardcode_minus_L_F77=yes
16280 hardcode_shlibpath_var_F77=no
16281 ;;
16282
16283 sysv4)
16284 case $host_vendor in
16285 sni)
16286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287 hardcode_direct_F77=yes # is this really true???
16288 ;;
16289 siemens)
16290 ## LD is ld it makes a PLAMLIB
16291 ## CC just makes a GrossModule.
16292 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16293 reload_cmds_F77='$CC -r -o $output$reload_objs'
16294 hardcode_direct_F77=no
16295 ;;
16296 motorola)
16297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16299 ;;
16300 esac
16301 runpath_var='LD_RUN_PATH'
16302 hardcode_shlibpath_var_F77=no
16303 ;;
16304
16305 sysv4.3*)
16306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16307 hardcode_shlibpath_var_F77=no
16308 export_dynamic_flag_spec_F77='-Bexport'
16309 ;;
16310
16311 sysv4*MP*)
16312 if test -d /usr/nec; then
16313 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314 hardcode_shlibpath_var_F77=no
16315 runpath_var=LD_RUN_PATH
16316 hardcode_runpath_var=yes
16317 ld_shlibs_F77=yes
16318 fi
16319 ;;
16320
16321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16322 no_undefined_flag_F77='${wl}-z,text'
16323 archive_cmds_need_lc_F77=no
16324 hardcode_shlibpath_var_F77=no
16325 runpath_var='LD_RUN_PATH'
16326
16327 if test "$GCC" = yes; then
16328 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16329 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16330 else
16331 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16332 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16333 fi
16334 ;;
16335
16336 sysv5* | sco3.2v5* | sco5v6*)
16337 # Note: We can NOT use -z defs as we might desire, because we do not
16338 # link with -lc, and that would cause any symbols used from libc to
16339 # always be unresolved, which means just about no library would
16340 # ever link correctly. If we're not using GNU ld we use -z text
16341 # though, which does catch some bad symbols but isn't as heavy-handed
16342 # as -z defs.
16343 no_undefined_flag_F77='${wl}-z,text'
16344 allow_undefined_flag_F77='${wl}-z,nodefs'
16345 archive_cmds_need_lc_F77=no
16346 hardcode_shlibpath_var_F77=no
16347 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16348 hardcode_libdir_separator_F77=':'
16349 link_all_deplibs_F77=yes
16350 export_dynamic_flag_spec_F77='${wl}-Bexport'
16351 runpath_var='LD_RUN_PATH'
16352
16353 if test "$GCC" = yes; then
16354 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16355 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16356 else
16357 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16358 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16359 fi
16360 ;;
16361
16362 uts4*)
16363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_libdir_flag_spec_F77='-L$libdir'
16365 hardcode_shlibpath_var_F77=no
16366 ;;
16367
16368 *)
16369 ld_shlibs_F77=no
16370 ;;
16371 esac
16372 fi
16373
16374{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16375echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16376test "$ld_shlibs_F77" = no && can_build_shared=no
16377
16378#
16379# Do we need to explicitly link libc?
16380#
16381case "x$archive_cmds_need_lc_F77" in
16382x|xyes)
16383 # Assume -lc should be added
16384 archive_cmds_need_lc_F77=yes
16385
16386 if test "$enable_shared" = yes && test "$GCC" = yes; then
16387 case $archive_cmds_F77 in
16388 *'~'*)
16389 # FIXME: we may have to deal with multi-command sequences.
16390 ;;
16391 '$CC '*)
16392 # Test whether the compiler implicitly links with -lc since on some
16393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16394 # to ld, don't add -lc before -lgcc.
16395 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16396echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16397 $rm conftest*
16398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16399
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } 2>conftest.err; then
16405 soname=conftest
16406 lib=conftest
16407 libobjs=conftest.$ac_objext
16408 deplibs=
16409 wl=$lt_prog_compiler_wl_F77
16410 pic_flag=$lt_prog_compiler_pic_F77
16411 compiler_flags=-v
16412 linker_flags=-v
16413 verstring=
16414 output_objdir=.
16415 libname=conftest
16416 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16417 allow_undefined_flag_F77=
16418 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16419 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }
16423 then
16424 archive_cmds_need_lc_F77=no
16425 else
16426 archive_cmds_need_lc_F77=yes
16427 fi
16428 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16429 else
16430 cat conftest.err 1>&5
16431 fi
16432 $rm conftest*
16433 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16434echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16435 ;;
16436 esac
16437 fi
16438 ;;
16439esac
16440
16441{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16442echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16443library_names_spec=
16444libname_spec='lib$name'
16445soname_spec=
16446shrext_cmds=".so"
16447postinstall_cmds=
16448postuninstall_cmds=
16449finish_cmds=
16450finish_eval=
16451shlibpath_var=
16452shlibpath_overrides_runpath=unknown
16453version_type=none
16454dynamic_linker="$host_os ld.so"
16455sys_lib_dlsearch_path_spec="/lib /usr/lib"
16456
16457need_lib_prefix=unknown
16458hardcode_into_libs=no
16459
16460# when you set need_version to no, make sure it does not cause -set_version
16461# flags to be left without arguments
16462need_version=unknown
16463
16464case $host_os in
16465aix3*)
16466 version_type=linux
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16468 shlibpath_var=LIBPATH
16469
16470 # AIX 3 has no versioning support, so we append a major version to the name.
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 ;;
16473
16474aix4* | aix5*)
16475 version_type=linux
16476 need_lib_prefix=no
16477 need_version=no
16478 hardcode_into_libs=yes
16479 if test "$host_cpu" = ia64; then
16480 # AIX 5 supports IA64
16481 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 else
16484 # With GCC up to 2.95.x, collect2 would create an import file
16485 # for dependence libraries. The import file would start with
16486 # the line `#! .'. This would cause the generated library to
16487 # depend on `.', always an invalid library. This was fixed in
16488 # development snapshots of GCC prior to 3.0.
16489 case $host_os in
16490 aix4 | aix4.[01] | aix4.[01].*)
16491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16492 echo ' yes '
16493 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16494 :
16495 else
16496 can_build_shared=no
16497 fi
16498 ;;
16499 esac
16500 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16501 # soname into executable. Probably we can add versioning support to
16502 # collect2, so additional links can be useful in future.
16503 if test "$aix_use_runtimelinking" = yes; then
16504 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16505 # instead of lib<name>.a to let people know that these are not
16506 # typical AIX shared libraries.
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 else
16509 # We preserve .a as extension for shared libraries through AIX4.2
16510 # and later when we are not doing run time linking.
16511 library_names_spec='${libname}${release}.a $libname.a'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 fi
16514 shlibpath_var=LIBPATH
16515 fi
16516 ;;
16517
16518amigaos*)
16519 library_names_spec='$libname.ixlibrary $libname.a'
16520 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16521 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'
16522 ;;
16523
16524beos*)
16525 library_names_spec='${libname}${shared_ext}'
16526 dynamic_linker="$host_os ld.so"
16527 shlibpath_var=LIBRARY_PATH
16528 ;;
16529
16530bsdi[45]*)
16531 version_type=linux
16532 need_version=no
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16534 soname_spec='${libname}${release}${shared_ext}$major'
16535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16539 # the default ld.so.conf also contains /usr/contrib/lib and
16540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16541 # libtool to hard-code these into programs
16542 ;;
16543
16544cygwin* | mingw* | pw32*)
16545 version_type=windows
16546 shrext_cmds=".dll"
16547 need_version=no
16548 need_lib_prefix=no
16549
16550 case $GCC,$host_os in
16551 yes,cygwin* | yes,mingw* | yes,pw32*)
16552 library_names_spec='$libname.dll.a'
16553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16554 postinstall_cmds='base_file=`basename \${file}`~
16555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16556 dldir=$destdir/`dirname \$dlpath`~
16557 test -d \$dldir || mkdir -p \$dldir~
16558 $install_prog $dir/$dlname \$dldir/$dlname~
16559 chmod a+x \$dldir/$dlname'
16560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16561 dlpath=$dir/\$dldll~
16562 $rm \$dlpath'
16563 shlibpath_overrides_runpath=yes
16564
16565 case $host_os in
16566 cygwin*)
16567 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16568 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16569 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16570 ;;
16571 mingw*)
16572 # MinGW DLLs use traditional 'lib' prefix
16573 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16575 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16576 # It is most probably a Windows format PATH printed by
16577 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16578 # path with ; separators, and with drive letters. We can handle the
16579 # drive letters (cygwin fileutils understands them), so leave them,
16580 # especially as we might pass files found there to a mingw objdump,
16581 # which wouldn't understand a cygwinified path. Ahh.
16582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16583 else
16584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16585 fi
16586 ;;
16587 pw32*)
16588 # pw32 DLLs use 'pw' prefix rather than 'lib'
16589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16590 ;;
16591 esac
16592 ;;
16593
16594 *)
16595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16596 ;;
16597 esac
16598 dynamic_linker='Win32 ld.exe'
16599 # FIXME: first we should search . and the directory the executable is in
16600 shlibpath_var=PATH
16601 ;;
16602
16603darwin* | rhapsody*)
16604 dynamic_linker="$host_os dyld"
16605 version_type=darwin
16606 need_lib_prefix=no
16607 need_version=no
16608 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16609 soname_spec='${libname}${release}${major}$shared_ext'
16610 shlibpath_overrides_runpath=yes
16611 shlibpath_var=DYLD_LIBRARY_PATH
16612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16613
16614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16615 ;;
16616
16617dgux*)
16618 version_type=linux
16619 need_lib_prefix=no
16620 need_version=no
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 shlibpath_var=LD_LIBRARY_PATH
16624 ;;
16625
16626freebsd1*)
16627 dynamic_linker=no
16628 ;;
16629
16630freebsd* | dragonfly*)
16631 # DragonFly does not have aout. When/if they implement a new
16632 # versioning mechanism, adjust this.
16633 if test -x /usr/bin/objformat; then
16634 objformat=`/usr/bin/objformat`
16635 else
16636 case $host_os in
16637 freebsd[123]*) objformat=aout ;;
16638 *) objformat=elf ;;
16639 esac
16640 fi
16641 version_type=freebsd-$objformat
16642 case $version_type in
16643 freebsd-elf*)
16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16645 need_version=no
16646 need_lib_prefix=no
16647 ;;
16648 freebsd-*)
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16650 need_version=yes
16651 ;;
16652 esac
16653 shlibpath_var=LD_LIBRARY_PATH
16654 case $host_os in
16655 freebsd2*)
16656 shlibpath_overrides_runpath=yes
16657 ;;
16658 freebsd3.[01]* | freebsdelf3.[01]*)
16659 shlibpath_overrides_runpath=yes
16660 hardcode_into_libs=yes
16661 ;;
16662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16664 shlibpath_overrides_runpath=no
16665 hardcode_into_libs=yes
16666 ;;
16667 *) # from 4.6 on, and DragonFly
16668 shlibpath_overrides_runpath=yes
16669 hardcode_into_libs=yes
16670 ;;
16671 esac
16672 ;;
16673
16674gnu*)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 hardcode_into_libs=yes
16682 ;;
16683
16684hpux9* | hpux10* | hpux11*)
16685 # Give a soname corresponding to the major version so that dld.sl refuses to
16686 # link against other versions.
16687 version_type=sunos
16688 need_lib_prefix=no
16689 need_version=no
16690 case $host_cpu in
16691 ia64*)
16692 shrext_cmds='.so'
16693 hardcode_into_libs=yes
16694 dynamic_linker="$host_os dld.so"
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 if test "X$HPUX_IA64_MODE" = X32; then
16700 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16701 else
16702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16703 fi
16704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16705 ;;
16706 hppa*64*)
16707 shrext_cmds='.sl'
16708 hardcode_into_libs=yes
16709 dynamic_linker="$host_os dld.sl"
16710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16716 ;;
16717 *)
16718 shrext_cmds='.sl'
16719 dynamic_linker="$host_os dld.sl"
16720 shlibpath_var=SHLIB_PATH
16721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 ;;
16725 esac
16726 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16727 postinstall_cmds='chmod 555 $lib'
16728 ;;
16729
16730interix[3-9]*)
16731 version_type=linux
16732 need_lib_prefix=no
16733 need_version=no
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16735 soname_spec='${libname}${release}${shared_ext}$major'
16736 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 shlibpath_overrides_runpath=no
16739 hardcode_into_libs=yes
16740 ;;
16741
16742irix5* | irix6* | nonstopux*)
16743 case $host_os in
16744 nonstopux*) version_type=nonstopux ;;
16745 *)
16746 if test "$lt_cv_prog_gnu_ld" = yes; then
16747 version_type=linux
16748 else
16749 version_type=irix
16750 fi ;;
16751 esac
16752 need_lib_prefix=no
16753 need_version=no
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16756 case $host_os in
16757 irix5* | nonstopux*)
16758 libsuff= shlibsuff=
16759 ;;
16760 *)
16761 case $LD in # libtool.m4 will add one of these switches to LD
16762 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16763 libsuff= shlibsuff= libmagic=32-bit;;
16764 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16765 libsuff=32 shlibsuff=N32 libmagic=N32;;
16766 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16767 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16768 *) libsuff= shlibsuff= libmagic=never-match;;
16769 esac
16770 ;;
16771 esac
16772 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16773 shlibpath_overrides_runpath=no
16774 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16775 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16776 hardcode_into_libs=yes
16777 ;;
16778
16779# No shared lib support for Linux oldld, aout, or coff.
16780linux*oldld* | linux*aout* | linux*coff*)
16781 dynamic_linker=no
16782 ;;
16783
16784# This must be Linux ELF.
16785linux* | k*bsd*-gnu)
16786 version_type=linux
16787 need_lib_prefix=no
16788 need_version=no
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=no
16794 # This implies no fast_install, which is unacceptable.
16795 # Some rework will be needed to allow for fast_install
16796 # before this can be enabled.
16797 hardcode_into_libs=yes
16798
16799 # Append ld.so.conf contents to the search path
16800 if test -f /etc/ld.so.conf; then
16801 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16803 fi
16804
16805 # We used to test for /lib/ld.so.1 and disable shared libraries on
16806 # powerpc, because MkLinux only supported shared libraries with the
16807 # GNU dynamic linker. Since this was broken with cross compilers,
16808 # most powerpc-linux boxes support dynamic linking these days and
16809 # people can always --disable-shared, the test was removed, and we
16810 # assume the GNU/Linux dynamic linker is in use.
16811 dynamic_linker='GNU/Linux ld.so'
16812 ;;
16813
16814netbsd*)
16815 version_type=sunos
16816 need_lib_prefix=no
16817 need_version=no
16818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16821 dynamic_linker='NetBSD (a.out) ld.so'
16822 else
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 dynamic_linker='NetBSD ld.elf_so'
16826 fi
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 hardcode_into_libs=yes
16830 ;;
16831
16832newsos6)
16833 version_type=linux
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath=yes
16837 ;;
16838
16839nto-qnx*)
16840 version_type=linux
16841 need_lib_prefix=no
16842 need_version=no
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 ;;
16848
16849openbsd*)
16850 version_type=sunos
16851 sys_lib_dlsearch_path_spec="/usr/lib"
16852 need_lib_prefix=no
16853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16854 case $host_os in
16855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16856 *) need_version=no ;;
16857 esac
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16862 case $host_os in
16863 openbsd2.[89] | openbsd2.[89].*)
16864 shlibpath_overrides_runpath=no
16865 ;;
16866 *)
16867 shlibpath_overrides_runpath=yes
16868 ;;
16869 esac
16870 else
16871 shlibpath_overrides_runpath=yes
16872 fi
16873 ;;
16874
16875os2*)
16876 libname_spec='$name'
16877 shrext_cmds=".dll"
16878 need_lib_prefix=no
16879 library_names_spec='$libname${shared_ext} $libname.a'
16880 dynamic_linker='OS/2 ld.exe'
16881 shlibpath_var=LIBPATH
16882 ;;
16883
16884osf3* | osf4* | osf5*)
16885 version_type=osf
16886 need_lib_prefix=no
16887 need_version=no
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16893 ;;
16894
16895rdos*)
16896 dynamic_linker=no
16897 ;;
16898
16899solaris*)
16900 version_type=linux
16901 need_lib_prefix=no
16902 need_version=no
16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16904 soname_spec='${libname}${release}${shared_ext}$major'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 shlibpath_overrides_runpath=yes
16907 hardcode_into_libs=yes
16908 # ldd complains unless libraries are executable
16909 postinstall_cmds='chmod +x $lib'
16910 ;;
16911
16912sunos4*)
16913 version_type=sunos
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 shlibpath_overrides_runpath=yes
16918 if test "$with_gnu_ld" = yes; then
16919 need_lib_prefix=no
16920 fi
16921 need_version=yes
16922 ;;
16923
16924sysv4 | sysv4.3*)
16925 version_type=linux
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 case $host_vendor in
16930 sni)
16931 shlibpath_overrides_runpath=no
16932 need_lib_prefix=no
16933 export_dynamic_flag_spec='${wl}-Blargedynsym'
16934 runpath_var=LD_RUN_PATH
16935 ;;
16936 siemens)
16937 need_lib_prefix=no
16938 ;;
16939 motorola)
16940 need_lib_prefix=no
16941 need_version=no
16942 shlibpath_overrides_runpath=no
16943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16944 ;;
16945 esac
16946 ;;
16947
16948sysv4*MP*)
16949 if test -d /usr/nec ;then
16950 version_type=linux
16951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16952 soname_spec='$libname${shared_ext}.$major'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 fi
16955 ;;
16956
16957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16958 version_type=freebsd-elf
16959 need_lib_prefix=no
16960 need_version=no
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 hardcode_into_libs=yes
16965 if test "$with_gnu_ld" = yes; then
16966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16967 shlibpath_overrides_runpath=no
16968 else
16969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16970 shlibpath_overrides_runpath=yes
16971 case $host_os in
16972 sco3.2v5*)
16973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16974 ;;
16975 esac
16976 fi
16977 sys_lib_dlsearch_path_spec='/usr/lib'
16978 ;;
16979
16980uts4*)
16981 version_type=linux
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 ;;
16986
16987*)
16988 dynamic_linker=no
16989 ;;
16990esac
16991{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16992echo "${ECHO_T}$dynamic_linker" >&6; }
16993test "$dynamic_linker" = no && can_build_shared=no
16994
16995variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16996if test "$GCC" = yes; then
16997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16998fi
16999
17000{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17001echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17002hardcode_action_F77=
17003if test -n "$hardcode_libdir_flag_spec_F77" || \
17004 test -n "$runpath_var_F77" || \
17005 test "X$hardcode_automatic_F77" = "Xyes" ; then
17006
17007 # We can hardcode non-existant directories.
17008 if test "$hardcode_direct_F77" != no &&
17009 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17010 # have to relink, otherwise we might link with an installed library
17011 # when we should be linking with a yet-to-be-installed one
17012 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17013 test "$hardcode_minus_L_F77" != no; then
17014 # Linking always hardcodes the temporary library directory.
17015 hardcode_action_F77=relink
17016 else
17017 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17018 hardcode_action_F77=immediate
17019 fi
17020else
17021 # We cannot hardcode anything, or else we can only hardcode existing
17022 # directories.
17023 hardcode_action_F77=unsupported
17024fi
17025{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17026echo "${ECHO_T}$hardcode_action_F77" >&6; }
17027
17028if test "$hardcode_action_F77" = relink; then
17029 # Fast installation is not supported
17030 enable_fast_install=no
17031elif test "$shlibpath_overrides_runpath" = yes ||
17032 test "$enable_shared" = no; then
17033 # Fast installation is not necessary
17034 enable_fast_install=needless
17035fi
17036
17037
17038# The else clause should only fire when bootstrapping the
17039# libtool distribution, otherwise you forgot to ship ltmain.sh
17040# with your package, and you will get complaints that there are
17041# no rules to generate ltmain.sh.
17042if test -f "$ltmain"; then
17043 # See if we are running on zsh, and set the options which allow our commands through
17044 # without removal of \ escapes.
17045 if test -n "${ZSH_VERSION+set}" ; then
17046 setopt NO_GLOB_SUBST
17047 fi
17048 # Now quote all the things that may contain metacharacters while being
17049 # careful not to overquote the AC_SUBSTed values. We take copies of the
17050 # variables and quote the copies for generation of the libtool script.
17051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17052 SED SHELL STRIP \
17053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17055 deplibs_check_method reload_flag reload_cmds need_locks \
17056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17057 lt_cv_sys_global_symbol_to_c_name_address \
17058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17059 old_postinstall_cmds old_postuninstall_cmds \
17060 compiler_F77 \
17061 CC_F77 \
17062 LD_F77 \
17063 lt_prog_compiler_wl_F77 \
17064 lt_prog_compiler_pic_F77 \
17065 lt_prog_compiler_static_F77 \
17066 lt_prog_compiler_no_builtin_flag_F77 \
17067 export_dynamic_flag_spec_F77 \
17068 thread_safe_flag_spec_F77 \
17069 whole_archive_flag_spec_F77 \
17070 enable_shared_with_static_runtimes_F77 \
17071 old_archive_cmds_F77 \
17072 old_archive_from_new_cmds_F77 \
17073 predep_objects_F77 \
17074 postdep_objects_F77 \
17075 predeps_F77 \
17076 postdeps_F77 \
17077 compiler_lib_search_path_F77 \
17078 archive_cmds_F77 \
17079 archive_expsym_cmds_F77 \
17080 postinstall_cmds_F77 \
17081 postuninstall_cmds_F77 \
17082 old_archive_from_expsyms_cmds_F77 \
17083 allow_undefined_flag_F77 \
17084 no_undefined_flag_F77 \
17085 export_symbols_cmds_F77 \
17086 hardcode_libdir_flag_spec_F77 \
17087 hardcode_libdir_flag_spec_ld_F77 \
17088 hardcode_libdir_separator_F77 \
17089 hardcode_automatic_F77 \
17090 module_cmds_F77 \
17091 module_expsym_cmds_F77 \
17092 lt_cv_prog_compiler_c_o_F77 \
17093 fix_srcfile_path_F77 \
17094 exclude_expsyms_F77 \
17095 include_expsyms_F77; do
17096
17097 case $var in
17098 old_archive_cmds_F77 | \
17099 old_archive_from_new_cmds_F77 | \
17100 archive_cmds_F77 | \
17101 archive_expsym_cmds_F77 | \
17102 module_cmds_F77 | \
17103 module_expsym_cmds_F77 | \
17104 old_archive_from_expsyms_cmds_F77 | \
17105 export_symbols_cmds_F77 | \
17106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17107 postinstall_cmds | postuninstall_cmds | \
17108 old_postinstall_cmds | old_postuninstall_cmds | \
17109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17110 # Double-quote double-evaled strings.
17111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17112 ;;
17113 *)
17114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17115 ;;
17116 esac
17117 done
17118
17119 case $lt_echo in
17120 *'\$0 --fallback-echo"')
17121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17122 ;;
17123 esac
17124
17125cfgfile="$ofile"
17126
17127 cat <<__EOF__ >> "$cfgfile"
17128# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17129
17130# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17131
17132# Shell to use when invoking shell scripts.
17133SHELL=$lt_SHELL
17134
17135# Whether or not to build shared libraries.
17136build_libtool_libs=$enable_shared
17137
17138# Whether or not to build static libraries.
17139build_old_libs=$enable_static
17140
17141# Whether or not to add -lc for building shared libraries.
17142build_libtool_need_lc=$archive_cmds_need_lc_F77
17143
17144# Whether or not to disallow shared libs when runtime libs are static
17145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17146
17147# Whether or not to optimize for fast installation.
17148fast_install=$enable_fast_install
17149
17150# The host system.
17151host_alias=$host_alias
17152host=$host
17153host_os=$host_os
17154
17155# The build system.
17156build_alias=$build_alias
17157build=$build
17158build_os=$build_os
17159
17160# An echo program that does not interpret backslashes.
17161echo=$lt_echo
17162
17163# The archiver.
17164AR=$lt_AR
17165AR_FLAGS=$lt_AR_FLAGS
17166
17167# A C compiler.
17168LTCC=$lt_LTCC
17169
17170# LTCC compiler flags.
17171LTCFLAGS=$lt_LTCFLAGS
17172
17173# A language-specific compiler.
17174CC=$lt_compiler_F77
17175
17176# Is the compiler the GNU C compiler?
17177with_gcc=$GCC_F77
17178
17179# An ERE matcher.
17180EGREP=$lt_EGREP
17181
17182# The linker used to build libraries.
17183LD=$lt_LD_F77
17184
17185# Whether we need hard or soft links.
17186LN_S=$lt_LN_S
17187
17188# A BSD-compatible nm program.
17189NM=$lt_NM
17190
17191# A symbol stripping program
17192STRIP=$lt_STRIP
17193
17194# Used to examine libraries when file_magic_cmd begins "file"
17195MAGIC_CMD=$MAGIC_CMD
17196
17197# Used on cygwin: DLL creation program.
17198DLLTOOL="$DLLTOOL"
17199
17200# Used on cygwin: object dumper.
17201OBJDUMP="$OBJDUMP"
17202
17203# Used on cygwin: assembler.
17204AS="$AS"
17205
17206# The name of the directory that contains temporary libtool files.
17207objdir=$objdir
17208
17209# How to create reloadable object files.
17210reload_flag=$lt_reload_flag
17211reload_cmds=$lt_reload_cmds
17212
17213# How to pass a linker flag through the compiler.
17214wl=$lt_lt_prog_compiler_wl_F77
17215
17216# Object file suffix (normally "o").
17217objext="$ac_objext"
17218
17219# Old archive suffix (normally "a").
17220libext="$libext"
17221
17222# Shared library suffix (normally ".so").
17223shrext_cmds='$shrext_cmds'
17224
17225# Executable file suffix (normally "").
17226exeext="$exeext"
17227
17228# Additional compiler flags for building library objects.
17229pic_flag=$lt_lt_prog_compiler_pic_F77
17230pic_mode=$pic_mode
17231
17232# What is the maximum length of a command?
17233max_cmd_len=$lt_cv_sys_max_cmd_len
17234
17235# Does compiler simultaneously support -c and -o options?
17236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17237
17238# Must we lock files when doing compilation?
17239need_locks=$lt_need_locks
17240
17241# Do we need the lib prefix for modules?
17242need_lib_prefix=$need_lib_prefix
17243
17244# Do we need a version for libraries?
17245need_version=$need_version
17246
17247# Whether dlopen is supported.
17248dlopen_support=$enable_dlopen
17249
17250# Whether dlopen of programs is supported.
17251dlopen_self=$enable_dlopen_self
17252
17253# Whether dlopen of statically linked programs is supported.
17254dlopen_self_static=$enable_dlopen_self_static
17255
17256# Compiler flag to prevent dynamic linking.
17257link_static_flag=$lt_lt_prog_compiler_static_F77
17258
17259# Compiler flag to turn off builtin functions.
17260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17261
17262# Compiler flag to allow reflexive dlopens.
17263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17264
17265# Compiler flag to generate shared objects directly from archives.
17266whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17267
17268# Compiler flag to generate thread-safe objects.
17269thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17270
17271# Library versioning type.
17272version_type=$version_type
17273
17274# Format of library name prefix.
17275libname_spec=$lt_libname_spec
17276
17277# List of archive names. First name is the real one, the rest are links.
17278# The last name is the one that the linker finds with -lNAME.
17279library_names_spec=$lt_library_names_spec
17280
17281# The coded name of the library, if different from the real name.
17282soname_spec=$lt_soname_spec
17283
17284# Commands used to build and install an old-style archive.
17285RANLIB=$lt_RANLIB
17286old_archive_cmds=$lt_old_archive_cmds_F77
17287old_postinstall_cmds=$lt_old_postinstall_cmds
17288old_postuninstall_cmds=$lt_old_postuninstall_cmds
17289
17290# Create an old-style archive from a shared archive.
17291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17292
17293# Create a temporary old-style archive to link instead of a shared archive.
17294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17295
17296# Commands used to build and install a shared archive.
17297archive_cmds=$lt_archive_cmds_F77
17298archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17299postinstall_cmds=$lt_postinstall_cmds
17300postuninstall_cmds=$lt_postuninstall_cmds
17301
17302# Commands used to build a loadable module (assumed same as above if empty)
17303module_cmds=$lt_module_cmds_F77
17304module_expsym_cmds=$lt_module_expsym_cmds_F77
17305
17306# Commands to strip libraries.
17307old_striplib=$lt_old_striplib
17308striplib=$lt_striplib
17309
17310# Dependencies to place before the objects being linked to create a
17311# shared library.
17312predep_objects=$lt_predep_objects_F77
17313
17314# Dependencies to place after the objects being linked to create a
17315# shared library.
17316postdep_objects=$lt_postdep_objects_F77
17317
17318# Dependencies to place before the objects being linked to create a
17319# shared library.
17320predeps=$lt_predeps_F77
17321
17322# Dependencies to place after the objects being linked to create a
17323# shared library.
17324postdeps=$lt_postdeps_F77
17325
17326# The library search path used internally by the compiler when linking
17327# a shared library.
17328compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17329
17330# Method to check whether dependent libraries are shared objects.
17331deplibs_check_method=$lt_deplibs_check_method
17332
17333# Command to use when deplibs_check_method == file_magic.
17334file_magic_cmd=$lt_file_magic_cmd
17335
17336# Flag that allows shared libraries with undefined symbols to be built.
17337allow_undefined_flag=$lt_allow_undefined_flag_F77
17338
17339# Flag that forces no undefined symbols.
17340no_undefined_flag=$lt_no_undefined_flag_F77
17341
17342# Commands used to finish a libtool library installation in a directory.
17343finish_cmds=$lt_finish_cmds
17344
17345# Same as above, but a single script fragment to be evaled but not shown.
17346finish_eval=$lt_finish_eval
17347
17348# Take the output of nm and produce a listing of raw symbols and C names.
17349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17350
17351# Transform the output of nm in a proper C declaration
17352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17353
17354# Transform the output of nm in a C name address pair
17355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17356
17357# This is the shared library runtime path variable.
17358runpath_var=$runpath_var
17359
17360# This is the shared library path variable.
17361shlibpath_var=$shlibpath_var
17362
17363# Is shlibpath searched before the hard-coded library search path?
17364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17365
17366# How to hardcode a shared library path into an executable.
17367hardcode_action=$hardcode_action_F77
17368
17369# Whether we should hardcode library paths into libraries.
17370hardcode_into_libs=$hardcode_into_libs
17371
17372# Flag to hardcode \$libdir into a binary during linking.
17373# This must work even if \$libdir does not exist.
17374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17375
17376# If ld is used when linking, flag to hardcode \$libdir into
17377# a binary during linking. This must work even if \$libdir does
17378# not exist.
17379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17380
17381# Whether we need a single -rpath flag with a separated argument.
17382hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17383
17384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17385# resulting binary.
17386hardcode_direct=$hardcode_direct_F77
17387
17388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17389# resulting binary.
17390hardcode_minus_L=$hardcode_minus_L_F77
17391
17392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17393# the resulting binary.
17394hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17395
17396# Set to yes if building a shared library automatically hardcodes DIR into the library
17397# and all subsequent libraries and executables linked against it.
17398hardcode_automatic=$hardcode_automatic_F77
17399
17400# Variables whose values should be saved in libtool wrapper scripts and
17401# restored at relink time.
17402variables_saved_for_relink="$variables_saved_for_relink"
17403
17404# Whether libtool must link a program against all its dependency libraries.
17405link_all_deplibs=$link_all_deplibs_F77
17406
17407# Compile-time system search path for libraries
17408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17409
17410# Run-time system search path for libraries
17411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17412
17413# Fix the shell variable \$srcfile for the compiler.
17414fix_srcfile_path=$lt_fix_srcfile_path
17415
17416# Set to yes if exported symbols are required.
17417always_export_symbols=$always_export_symbols_F77
17418
17419# The commands to list exported symbols.
17420export_symbols_cmds=$lt_export_symbols_cmds_F77
17421
17422# The commands to extract the exported symbol list from a shared archive.
17423extract_expsyms_cmds=$lt_extract_expsyms_cmds
17424
17425# Symbols that should not be listed in the preloaded symbols.
17426exclude_expsyms=$lt_exclude_expsyms_F77
17427
17428# Symbols that must always be exported.
17429include_expsyms=$lt_include_expsyms_F77
17430
17431# ### END LIBTOOL TAG CONFIG: $tagname
17432
17433__EOF__
17434
17435
17436else
17437 # If there is no Makefile yet, we rely on a make rule to execute
17438 # `config.status --recheck' to rerun these tests and create the
17439 # libtool script then.
17440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17441 if test -f "$ltmain_in"; then
17442 test -f Makefile && make "$ltmain"
17443 fi
17444fi
17445
17446
17447ac_ext=c
17448ac_cpp='$CPP $CPPFLAGS'
17449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17451ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452
17453CC="$lt_save_CC"
17454
17455 else
17456 tagname=""
17457 fi
17458 ;;
17459
17460 GCJ)
17461 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17462
17463
17464# Source file extension for Java test sources.
17465ac_ext=java
17466
17467# Object file extension for compiled Java test sources.
17468objext=o
17469objext_GCJ=$objext
17470
17471# Code to be used in simple compile tests
17472lt_simple_compile_test_code="class foo {}"
17473
17474# Code to be used in simple link tests
17475lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17476
17477# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17478
17479# If no C compiler was specified, use CC.
17480LTCC=${LTCC-"$CC"}
17481
17482# If no C compiler flags were specified, use CFLAGS.
17483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17484
17485# Allow CC to be a program name with arguments.
17486compiler=$CC
17487
17488
17489# save warnings/boilerplate of simple test code
17490ac_outfile=conftest.$ac_objext
17491echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17493_lt_compiler_boilerplate=`cat conftest.err`
17494$rm conftest*
17495
17496ac_outfile=conftest.$ac_objext
17497echo "$lt_simple_link_test_code" >conftest.$ac_ext
17498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17499_lt_linker_boilerplate=`cat conftest.err`
17500$rm conftest*
17501
17502
17503# Allow CC to be a program name with arguments.
17504lt_save_CC="$CC"
17505CC=${GCJ-"gcj"}
17506compiler=$CC
17507compiler_GCJ=$CC
17508for cc_temp in $compiler""; do
17509 case $cc_temp in
17510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17512 \-*) ;;
17513 *) break;;
17514 esac
17515done
17516cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17517
17518
17519# GCJ did not exist at the time GCC didn't implicitly link libc in.
17520archive_cmds_need_lc_GCJ=no
17521
17522old_archive_cmds_GCJ=$old_archive_cmds
17523
17524
17525lt_prog_compiler_no_builtin_flag_GCJ=
17526
17527if test "$GCC" = yes; then
17528 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17529
17530
17531{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17532echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17533if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535else
17536 lt_cv_prog_compiler_rtti_exceptions=no
17537 ac_outfile=conftest.$ac_objext
17538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17539 lt_compiler_flag="-fno-rtti -fno-exceptions"
17540 # Insert the option either (1) after the last *FLAGS variable, or
17541 # (2) before a word containing "conftest.", or (3) at the end.
17542 # Note that $ac_compile itself does not contain backslashes and begins
17543 # with a dollar sign (not a hyphen), so the echo should work correctly.
17544 # The option is referenced via a variable to avoid confusing sed.
17545 lt_compile=`echo "$ac_compile" | $SED \
17546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17548 -e 's:$: $lt_compiler_flag:'`
17549 (eval echo "\"\$as_me:17549: $lt_compile\"" >&5)
17550 (eval "$lt_compile" 2>conftest.err)
17551 ac_status=$?
17552 cat conftest.err >&5
17553 echo "$as_me:17553: \$? = $ac_status" >&5
17554 if (exit $ac_status) && test -s "$ac_outfile"; then
17555 # The compiler can only warn and ignore the option if not recognized
17556 # So say no if there are warnings other than the usual output.
17557 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17560 lt_cv_prog_compiler_rtti_exceptions=yes
17561 fi
17562 fi
17563 $rm conftest*
17564
17565fi
17566{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17567echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17568
17569if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17570 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17571else
17572 :
17573fi
17574
17575fi
17576
17577lt_prog_compiler_wl_GCJ=
17578lt_prog_compiler_pic_GCJ=
17579lt_prog_compiler_static_GCJ=
17580
17581{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17582echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17583
17584 if test "$GCC" = yes; then
17585 lt_prog_compiler_wl_GCJ='-Wl,'
17586 lt_prog_compiler_static_GCJ='-static'
17587
17588 case $host_os in
17589 aix*)
17590 # All AIX code is PIC.
17591 if test "$host_cpu" = ia64; then
17592 # AIX 5 now supports IA64 processor
17593 lt_prog_compiler_static_GCJ='-Bstatic'
17594 fi
17595 ;;
17596
17597 amigaos*)
17598 # FIXME: we need at least 68020 code to build shared libraries, but
17599 # adding the `-m68020' flag to GCC prevents building anything better,
17600 # like `-m68040'.
17601 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17602 ;;
17603
17604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17605 # PIC is the default for these OSes.
17606 ;;
17607
17608 mingw* | cygwin* | pw32* | os2*)
17609 # This hack is so that the source file can tell whether it is being
17610 # built for inclusion in a dll (and should export symbols for example).
17611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17612 # (--disable-auto-import) libraries
17613 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17614 ;;
17615
17616 darwin* | rhapsody*)
17617 # PIC is the default on this platform
17618 # Common symbols not allowed in MH_DYLIB files
17619 lt_prog_compiler_pic_GCJ='-fno-common'
17620 ;;
17621
17622 interix[3-9]*)
17623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17624 # Instead, we relocate shared libraries at runtime.
17625 ;;
17626
17627 msdosdjgpp*)
17628 # Just because we use GCC doesn't mean we suddenly get shared libraries
17629 # on systems that don't support them.
17630 lt_prog_compiler_can_build_shared_GCJ=no
17631 enable_shared=no
17632 ;;
17633
17634 sysv4*MP*)
17635 if test -d /usr/nec; then
17636 lt_prog_compiler_pic_GCJ=-Kconform_pic
17637 fi
17638 ;;
17639
17640 hpux*)
17641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17642 # not for PA HP-UX.
17643 case $host_cpu in
17644 hppa*64*|ia64*)
17645 # +Z the default
17646 ;;
17647 *)
17648 lt_prog_compiler_pic_GCJ='-fPIC'
17649 ;;
17650 esac
17651 ;;
17652
17653 *)
17654 lt_prog_compiler_pic_GCJ='-fPIC'
17655 ;;
17656 esac
17657 else
17658 # PORTME Check for flag to pass linker flags through the system compiler.
17659 case $host_os in
17660 aix*)
17661 lt_prog_compiler_wl_GCJ='-Wl,'
17662 if test "$host_cpu" = ia64; then
17663 # AIX 5 now supports IA64 processor
17664 lt_prog_compiler_static_GCJ='-Bstatic'
17665 else
17666 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17667 fi
17668 ;;
17669 darwin*)
17670 # PIC is the default on this platform
17671 # Common symbols not allowed in MH_DYLIB files
17672 case $cc_basename in
17673 xlc*)
17674 lt_prog_compiler_pic_GCJ='-qnocommon'
17675 lt_prog_compiler_wl_GCJ='-Wl,'
17676 ;;
17677 esac
17678 ;;
17679
17680 mingw* | cygwin* | pw32* | os2*)
17681 # This hack is so that the source file can tell whether it is being
17682 # built for inclusion in a dll (and should export symbols for example).
17683 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17684 ;;
17685
17686 hpux9* | hpux10* | hpux11*)
17687 lt_prog_compiler_wl_GCJ='-Wl,'
17688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17689 # not for PA HP-UX.
17690 case $host_cpu in
17691 hppa*64*|ia64*)
17692 # +Z the default
17693 ;;
17694 *)
17695 lt_prog_compiler_pic_GCJ='+Z'
17696 ;;
17697 esac
17698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17699 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17700 ;;
17701
17702 irix5* | irix6* | nonstopux*)
17703 lt_prog_compiler_wl_GCJ='-Wl,'
17704 # PIC (with -KPIC) is the default.
17705 lt_prog_compiler_static_GCJ='-non_shared'
17706 ;;
17707
17708 newsos6)
17709 lt_prog_compiler_pic_GCJ='-KPIC'
17710 lt_prog_compiler_static_GCJ='-Bstatic'
17711 ;;
17712
17713 linux* | k*bsd*-gnu)
17714 case $cc_basename in
17715 icc* | ecc*)
17716 lt_prog_compiler_wl_GCJ='-Wl,'
17717 lt_prog_compiler_pic_GCJ='-KPIC'
17718 lt_prog_compiler_static_GCJ='-static'
17719 ;;
17720 pgcc* | pgf77* | pgf90* | pgf95*)
17721 # Portland Group compilers (*not* the Pentium gcc compiler,
17722 # which looks to be a dead project)
17723 lt_prog_compiler_wl_GCJ='-Wl,'
17724 lt_prog_compiler_pic_GCJ='-fpic'
17725 lt_prog_compiler_static_GCJ='-Bstatic'
17726 ;;
17727 ccc*)
17728 lt_prog_compiler_wl_GCJ='-Wl,'
17729 # All Alpha code is PIC.
17730 lt_prog_compiler_static_GCJ='-non_shared'
17731 ;;
17732 *)
17733 case `$CC -V 2>&1 | sed 5q` in
17734 *Sun\ C*)
17735 # Sun C 5.9
17736 lt_prog_compiler_pic_GCJ='-KPIC'
17737 lt_prog_compiler_static_GCJ='-Bstatic'
17738 lt_prog_compiler_wl_GCJ='-Wl,'
17739 ;;
17740 *Sun\ F*)
17741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17742 lt_prog_compiler_pic_GCJ='-KPIC'
17743 lt_prog_compiler_static_GCJ='-Bstatic'
17744 lt_prog_compiler_wl_GCJ=''
17745 ;;
17746 esac
17747 ;;
17748 esac
17749 ;;
17750
17751 osf3* | osf4* | osf5*)
17752 lt_prog_compiler_wl_GCJ='-Wl,'
17753 # All OSF/1 code is PIC.
17754 lt_prog_compiler_static_GCJ='-non_shared'
17755 ;;
17756
17757 rdos*)
17758 lt_prog_compiler_static_GCJ='-non_shared'
17759 ;;
17760
17761 solaris*)
17762 lt_prog_compiler_pic_GCJ='-KPIC'
17763 lt_prog_compiler_static_GCJ='-Bstatic'
17764 case $cc_basename in
17765 f77* | f90* | f95*)
17766 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17767 *)
17768 lt_prog_compiler_wl_GCJ='-Wl,';;
17769 esac
17770 ;;
17771
17772 sunos4*)
17773 lt_prog_compiler_wl_GCJ='-Qoption ld '
17774 lt_prog_compiler_pic_GCJ='-PIC'
17775 lt_prog_compiler_static_GCJ='-Bstatic'
17776 ;;
17777
17778 sysv4 | sysv4.2uw2* | sysv4.3*)
17779 lt_prog_compiler_wl_GCJ='-Wl,'
17780 lt_prog_compiler_pic_GCJ='-KPIC'
17781 lt_prog_compiler_static_GCJ='-Bstatic'
17782 ;;
17783
17784 sysv4*MP*)
17785 if test -d /usr/nec ;then
17786 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17787 lt_prog_compiler_static_GCJ='-Bstatic'
17788 fi
17789 ;;
17790
17791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17792 lt_prog_compiler_wl_GCJ='-Wl,'
17793 lt_prog_compiler_pic_GCJ='-KPIC'
17794 lt_prog_compiler_static_GCJ='-Bstatic'
17795 ;;
17796
17797 unicos*)
17798 lt_prog_compiler_wl_GCJ='-Wl,'
17799 lt_prog_compiler_can_build_shared_GCJ=no
17800 ;;
17801
17802 uts4*)
17803 lt_prog_compiler_pic_GCJ='-pic'
17804 lt_prog_compiler_static_GCJ='-Bstatic'
17805 ;;
17806
17807 *)
17808 lt_prog_compiler_can_build_shared_GCJ=no
17809 ;;
17810 esac
17811 fi
17812
17813{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17814echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17815
17816#
17817# Check to make sure the PIC flag actually works.
17818#
17819if test -n "$lt_prog_compiler_pic_GCJ"; then
17820
17821{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17822echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17823if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825else
17826 lt_prog_compiler_pic_works_GCJ=no
17827 ac_outfile=conftest.$ac_objext
17828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17829 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17830 # Insert the option either (1) after the last *FLAGS variable, or
17831 # (2) before a word containing "conftest.", or (3) at the end.
17832 # Note that $ac_compile itself does not contain backslashes and begins
17833 # with a dollar sign (not a hyphen), so the echo should work correctly.
17834 # The option is referenced via a variable to avoid confusing sed.
17835 lt_compile=`echo "$ac_compile" | $SED \
17836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17838 -e 's:$: $lt_compiler_flag:'`
17839 (eval echo "\"\$as_me:17839: $lt_compile\"" >&5)
17840 (eval "$lt_compile" 2>conftest.err)
17841 ac_status=$?
17842 cat conftest.err >&5
17843 echo "$as_me:17843: \$? = $ac_status" >&5
17844 if (exit $ac_status) && test -s "$ac_outfile"; then
17845 # The compiler can only warn and ignore the option if not recognized
17846 # So say no if there are warnings other than the usual output.
17847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17850 lt_prog_compiler_pic_works_GCJ=yes
17851 fi
17852 fi
17853 $rm conftest*
17854
17855fi
17856{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17857echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17858
17859if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17860 case $lt_prog_compiler_pic_GCJ in
17861 "" | " "*) ;;
17862 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17863 esac
17864else
17865 lt_prog_compiler_pic_GCJ=
17866 lt_prog_compiler_can_build_shared_GCJ=no
17867fi
17868
17869fi
17870case $host_os in
17871 # For platforms which do not support PIC, -DPIC is meaningless:
17872 *djgpp*)
17873 lt_prog_compiler_pic_GCJ=
17874 ;;
17875 *)
17876 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17877 ;;
17878esac
17879
17880#
17881# Check to make sure the static flag actually works.
17882#
17883wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17884{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17885echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17886if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17888else
17889 lt_prog_compiler_static_works_GCJ=no
17890 save_LDFLAGS="$LDFLAGS"
17891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17894 # The linker can only warn and ignore the option if not recognized
17895 # So say no if there are warnings
17896 if test -s conftest.err; then
17897 # Append any errors to the config.log.
17898 cat conftest.err 1>&5
17899 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17901 if diff conftest.exp conftest.er2 >/dev/null; then
17902 lt_prog_compiler_static_works_GCJ=yes
17903 fi
17904 else
17905 lt_prog_compiler_static_works_GCJ=yes
17906 fi
17907 fi
17908 $rm conftest*
17909 LDFLAGS="$save_LDFLAGS"
17910
17911fi
17912{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17913echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17914
17915if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17916 :
17917else
17918 lt_prog_compiler_static_GCJ=
17919fi
17920
17921
17922{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17923echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17924if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926else
17927 lt_cv_prog_compiler_c_o_GCJ=no
17928 $rm -r conftest 2>/dev/null
17929 mkdir conftest
17930 cd conftest
17931 mkdir out
17932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17933
17934 lt_compiler_flag="-o out/conftest2.$ac_objext"
17935 # Insert the option either (1) after the last *FLAGS variable, or
17936 # (2) before a word containing "conftest.", or (3) at the end.
17937 # Note that $ac_compile itself does not contain backslashes and begins
17938 # with a dollar sign (not a hyphen), so the echo should work correctly.
17939 lt_compile=`echo "$ac_compile" | $SED \
17940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17942 -e 's:$: $lt_compiler_flag:'`
17943 (eval echo "\"\$as_me:17943: $lt_compile\"" >&5)
17944 (eval "$lt_compile" 2>out/conftest.err)
17945 ac_status=$?
17946 cat out/conftest.err >&5
17947 echo "$as_me:17947: \$? = $ac_status" >&5
17948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17949 then
17950 # The compiler can only warn and ignore the option if not recognized
17951 # So say no if there are warnings
17952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17955 lt_cv_prog_compiler_c_o_GCJ=yes
17956 fi
17957 fi
17958 chmod u+w . 2>&5
17959 $rm conftest*
17960 # SGI C++ compiler will create directory out/ii_files/ for
17961 # template instantiation
17962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17963 $rm out/* && rmdir out
17964 cd ..
17965 rmdir conftest
17966 $rm conftest*
17967
17968fi
17969{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17970echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17971
17972
17973hard_links="nottested"
17974if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17975 # do not overwrite the value of need_locks provided by the user
17976 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17977echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17978 hard_links=yes
17979 $rm conftest*
17980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17981 touch conftest.a
17982 ln conftest.a conftest.b 2>&5 || hard_links=no
17983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17984 { echo "$as_me:$LINENO: result: $hard_links" >&5
17985echo "${ECHO_T}$hard_links" >&6; }
17986 if test "$hard_links" = no; then
17987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17988echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17989 need_locks=warn
17990 fi
17991else
17992 need_locks=no
17993fi
17994
17995{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17996echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17997
17998 runpath_var=
17999 allow_undefined_flag_GCJ=
18000 enable_shared_with_static_runtimes_GCJ=no
18001 archive_cmds_GCJ=
18002 archive_expsym_cmds_GCJ=
18003 old_archive_From_new_cmds_GCJ=
18004 old_archive_from_expsyms_cmds_GCJ=
18005 export_dynamic_flag_spec_GCJ=
18006 whole_archive_flag_spec_GCJ=
18007 thread_safe_flag_spec_GCJ=
18008 hardcode_libdir_flag_spec_GCJ=
18009 hardcode_libdir_flag_spec_ld_GCJ=
18010 hardcode_libdir_separator_GCJ=
18011 hardcode_direct_GCJ=no
18012 hardcode_minus_L_GCJ=no
18013 hardcode_shlibpath_var_GCJ=unsupported
18014 link_all_deplibs_GCJ=unknown
18015 hardcode_automatic_GCJ=no
18016 module_cmds_GCJ=
18017 module_expsym_cmds_GCJ=
18018 always_export_symbols_GCJ=no
18019 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18020 # include_expsyms should be a list of space-separated symbols to be *always*
18021 # included in the symbol list
18022 include_expsyms_GCJ=
18023 # exclude_expsyms can be an extended regexp of symbols to exclude
18024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18026 # as well as any symbol that contains `d'.
18027 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18029 # platforms (ab)use it in PIC code, but their linkers get confused if
18030 # the symbol is explicitly referenced. Since portable code cannot
18031 # rely on this symbol name, it's probably fine to never include it in
18032 # preloaded symbol tables.
18033 extract_expsyms_cmds=
18034 # Just being paranoid about ensuring that cc_basename is set.
18035 for cc_temp in $compiler""; do
18036 case $cc_temp in
18037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18039 \-*) ;;
18040 *) break;;
18041 esac
18042done
18043cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18044
18045 case $host_os in
18046 cygwin* | mingw* | pw32*)
18047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18048 # When not using gcc, we currently assume that we are using
18049 # Microsoft Visual C++.
18050 if test "$GCC" != yes; then
18051 with_gnu_ld=no
18052 fi
18053 ;;
18054 interix*)
18055 # we just hope/assume this is gcc and not c89 (= MSVC++)
18056 with_gnu_ld=yes
18057 ;;
18058 openbsd*)
18059 with_gnu_ld=no
18060 ;;
18061 esac
18062
18063 ld_shlibs_GCJ=yes
18064 if test "$with_gnu_ld" = yes; then
18065 # If archive_cmds runs LD, not CC, wlarc should be empty
18066 wlarc='${wl}'
18067
18068 # Set some defaults for GNU ld with shared library support. These
18069 # are reset later if shared libraries are not supported. Putting them
18070 # here allows them to be overridden if necessary.
18071 runpath_var=LD_RUN_PATH
18072 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18073 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18074 # ancient GNU ld didn't support --whole-archive et. al.
18075 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18076 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18077 else
18078 whole_archive_flag_spec_GCJ=
18079 fi
18080 supports_anon_versioning=no
18081 case `$LD -v 2>/dev/null` in
18082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18085 *\ 2.11.*) ;; # other 2.11 versions
18086 *) supports_anon_versioning=yes ;;
18087 esac
18088
18089 # See if GNU ld supports shared libraries.
18090 case $host_os in
18091 aix3* | aix4* | aix5*)
18092 # On AIX/PPC, the GNU linker is very broken
18093 if test "$host_cpu" != ia64; then
18094 ld_shlibs_GCJ=no
18095 cat <<EOF 1>&2
18096
18097*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18098*** to be unable to reliably create shared libraries on AIX.
18099*** Therefore, libtool is disabling shared libraries support. If you
18100*** really care for shared libraries, you may want to modify your PATH
18101*** so that a non-GNU linker is found, and then restart.
18102
18103EOF
18104 fi
18105 ;;
18106
18107 amigaos*)
18108 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)'
18109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18110 hardcode_minus_L_GCJ=yes
18111
18112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18113 # that the semantics of dynamic libraries on AmigaOS, at least up
18114 # to version 4, is to share data among multiple programs linked
18115 # with the same dynamic library. Since this doesn't match the
18116 # behavior of shared libraries on other platforms, we can't use
18117 # them.
18118 ld_shlibs_GCJ=no
18119 ;;
18120
18121 beos*)
18122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18123 allow_undefined_flag_GCJ=unsupported
18124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18125 # support --undefined. This deserves some investigation. FIXME
18126 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18127 else
18128 ld_shlibs_GCJ=no
18129 fi
18130 ;;
18131
18132 cygwin* | mingw* | pw32*)
18133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18134 # as there is no search path for DLLs.
18135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18136 allow_undefined_flag_GCJ=unsupported
18137 always_export_symbols_GCJ=no
18138 enable_shared_with_static_runtimes_GCJ=yes
18139 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18140
18141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18143 # If the export-symbols file already is a .def file (1st line
18144 # is EXPORTS), use it as is; otherwise, prepend...
18145 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18146 cp $export_symbols $output_objdir/$soname.def;
18147 else
18148 echo EXPORTS > $output_objdir/$soname.def;
18149 cat $export_symbols >> $output_objdir/$soname.def;
18150 fi~
18151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18152 else
18153 ld_shlibs_GCJ=no
18154 fi
18155 ;;
18156
18157 interix[3-9]*)
18158 hardcode_direct_GCJ=no
18159 hardcode_shlibpath_var_GCJ=no
18160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18161 export_dynamic_flag_spec_GCJ='${wl}-E'
18162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18163 # Instead, shared libraries are loaded at an image base (0x10000000 by
18164 # default) and relocated if they conflict, which is a slow very memory
18165 # consuming and fragmenting process. To avoid this, we pick a random,
18166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18168 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'
18169 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'
18170 ;;
18171
18172 gnu* | linux* | k*bsd*-gnu)
18173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18174 tmp_addflag=
18175 case $cc_basename,$host_cpu in
18176 pgcc*) # Portland Group C compiler
18177 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'
18178 tmp_addflag=' $pic_flag'
18179 ;;
18180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18181 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'
18182 tmp_addflag=' $pic_flag -Mnomain' ;;
18183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18184 tmp_addflag=' -i_dynamic' ;;
18185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18186 tmp_addflag=' -i_dynamic -nofor_main' ;;
18187 ifc* | ifort*) # Intel Fortran compiler
18188 tmp_addflag=' -nofor_main' ;;
18189 esac
18190 case `$CC -V 2>&1 | sed 5q` in
18191 *Sun\ C*) # Sun C 5.9
18192 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18193 tmp_sharedflag='-G' ;;
18194 *Sun\ F*) # Sun Fortran 8.3
18195 tmp_sharedflag='-G' ;;
18196 *)
18197 tmp_sharedflag='-shared' ;;
18198 esac
18199 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18200
18201 if test $supports_anon_versioning = yes; then
18202 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18204 $echo "local: *; };" >> $output_objdir/$libname.ver~
18205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18206 fi
18207 else
18208 ld_shlibs_GCJ=no
18209 fi
18210 ;;
18211
18212 netbsd*)
18213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18214 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18215 wlarc=
18216 else
18217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18218 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18219 fi
18220 ;;
18221
18222 solaris*)
18223 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18224 ld_shlibs_GCJ=no
18225 cat <<EOF 1>&2
18226
18227*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18228*** create shared libraries on Solaris systems. Therefore, libtool
18229*** is disabling shared libraries support. We urge you to upgrade GNU
18230*** binutils to release 2.9.1 or newer. Another option is to modify
18231*** your PATH or compiler configuration so that the native linker is
18232*** used, and then restart.
18233
18234EOF
18235 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18238 else
18239 ld_shlibs_GCJ=no
18240 fi
18241 ;;
18242
18243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18244 case `$LD -v 2>&1` in
18245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18246 ld_shlibs_GCJ=no
18247 cat <<_LT_EOF 1>&2
18248
18249*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18250*** reliably create shared libraries on SCO systems. Therefore, libtool
18251*** is disabling shared libraries support. We urge you to upgrade GNU
18252*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18253*** your PATH or compiler configuration so that the native linker is
18254*** used, and then restart.
18255
18256_LT_EOF
18257 ;;
18258 *)
18259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18260 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18261 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18262 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18263 else
18264 ld_shlibs_GCJ=no
18265 fi
18266 ;;
18267 esac
18268 ;;
18269
18270 sunos4*)
18271 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18272 wlarc=
18273 hardcode_direct_GCJ=yes
18274 hardcode_shlibpath_var_GCJ=no
18275 ;;
18276
18277 *)
18278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18279 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18280 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18281 else
18282 ld_shlibs_GCJ=no
18283 fi
18284 ;;
18285 esac
18286
18287 if test "$ld_shlibs_GCJ" = no; then
18288 runpath_var=
18289 hardcode_libdir_flag_spec_GCJ=
18290 export_dynamic_flag_spec_GCJ=
18291 whole_archive_flag_spec_GCJ=
18292 fi
18293 else
18294 # PORTME fill in a description of your system's linker (not GNU ld)
18295 case $host_os in
18296 aix3*)
18297 allow_undefined_flag_GCJ=unsupported
18298 always_export_symbols_GCJ=yes
18299 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'
18300 # Note: this linker hardcodes the directories in LIBPATH if there
18301 # are no directories specified by -L.
18302 hardcode_minus_L_GCJ=yes
18303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18304 # Neither direct hardcoding nor static linking is supported with a
18305 # broken collect2.
18306 hardcode_direct_GCJ=unsupported
18307 fi
18308 ;;
18309
18310 aix4* | aix5*)
18311 if test "$host_cpu" = ia64; then
18312 # On IA64, the linker does run time linking by default, so we don't
18313 # have to do anything special.
18314 aix_use_runtimelinking=no
18315 exp_sym_flag='-Bexport'
18316 no_entry_flag=""
18317 else
18318 # If we're using GNU nm, then we don't want the "-C" option.
18319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18320 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18321 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'
18322 else
18323 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'
18324 fi
18325 aix_use_runtimelinking=no
18326
18327 # Test if we are trying to use run time linking or normal
18328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18329 # need to do runtime linking.
18330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18331 for ld_flag in $LDFLAGS; do
18332 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18333 aix_use_runtimelinking=yes
18334 break
18335 fi
18336 done
18337 ;;
18338 esac
18339
18340 exp_sym_flag='-bexport'
18341 no_entry_flag='-bnoentry'
18342 fi
18343
18344 # When large executables or shared objects are built, AIX ld can
18345 # have problems creating the table of contents. If linking a library
18346 # or program results in "error TOC overflow" add -mminimal-toc to
18347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18349
18350 archive_cmds_GCJ=''
18351 hardcode_direct_GCJ=yes
18352 hardcode_libdir_separator_GCJ=':'
18353 link_all_deplibs_GCJ=yes
18354
18355 if test "$GCC" = yes; then
18356 case $host_os in aix4.[012]|aix4.[012].*)
18357 # We only want to do this on AIX 4.2 and lower, the check
18358 # below for broken collect2 doesn't work under 4.3+
18359 collect2name=`${CC} -print-prog-name=collect2`
18360 if test -f "$collect2name" && \
18361 strings "$collect2name" | grep resolve_lib_name >/dev/null
18362 then
18363 # We have reworked collect2
18364 :
18365 else
18366 # We have old collect2
18367 hardcode_direct_GCJ=unsupported
18368 # It fails to find uninstalled libraries when the uninstalled
18369 # path is not listed in the libpath. Setting hardcode_minus_L
18370 # to unsupported forces relinking
18371 hardcode_minus_L_GCJ=yes
18372 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18373 hardcode_libdir_separator_GCJ=
18374 fi
18375 ;;
18376 esac
18377 shared_flag='-shared'
18378 if test "$aix_use_runtimelinking" = yes; then
18379 shared_flag="$shared_flag "'${wl}-G'
18380 fi
18381 else
18382 # not using gcc
18383 if test "$host_cpu" = ia64; then
18384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18385 # chokes on -Wl,-G. The following line is correct:
18386 shared_flag='-G'
18387 else
18388 if test "$aix_use_runtimelinking" = yes; then
18389 shared_flag='${wl}-G'
18390 else
18391 shared_flag='${wl}-bM:SRE'
18392 fi
18393 fi
18394 fi
18395
18396 # It seems that -bexpall does not export symbols beginning with
18397 # underscore (_), so it is better to generate a list of symbols to export.
18398 always_export_symbols_GCJ=yes
18399 if test "$aix_use_runtimelinking" = yes; then
18400 # Warning - without using the other runtime loading flags (-brtl),
18401 # -berok will link without error, but may produce a broken library.
18402 allow_undefined_flag_GCJ='-berok'
18403 # Determine the default libpath from the value encoded in an empty executable.
18404 cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410
18411int
18412main ()
18413{
18414
18415 ;
18416 return 0;
18417}
18418_ACEOF
18419rm -f conftest.$ac_objext conftest$ac_exeext
18420if { (ac_try="$ac_link"
18421case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && {
18433 test -z "$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 } && test -s conftest$ac_exeext &&
18436 $as_test_x conftest$ac_exeext; then
18437
18438lt_aix_libpath_sed='
18439 /Import File Strings/,/^$/ {
18440 /^0/ {
18441 s/^0 *\(.*\)$/\1/
18442 p
18443 }
18444 }'
18445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18446# Check for a 64-bit object if we didn't find anything.
18447if test -z "$aix_libpath"; then
18448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18449fi
18450else
18451 echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454
18455fi
18456
18457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18458 conftest$ac_exeext conftest.$ac_ext
18459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18460
18461 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18462 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"
18463 else
18464 if test "$host_cpu" = ia64; then
18465 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18466 allow_undefined_flag_GCJ="-z nodefs"
18467 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"
18468 else
18469 # Determine the default libpath from the value encoded in an empty executable.
18470 cat >conftest.$ac_ext <<_ACEOF
18471/* confdefs.h. */
18472_ACEOF
18473cat confdefs.h >>conftest.$ac_ext
18474cat >>conftest.$ac_ext <<_ACEOF
18475/* end confdefs.h. */
18476
18477int
18478main ()
18479{
18480
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext conftest$ac_exeext
18486if { (ac_try="$ac_link"
18487case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } && {
18499 test -z "$ac_c_werror_flag" ||
18500 test ! -s conftest.err
18501 } && test -s conftest$ac_exeext &&
18502 $as_test_x conftest$ac_exeext; then
18503
18504lt_aix_libpath_sed='
18505 /Import File Strings/,/^$/ {
18506 /^0/ {
18507 s/^0 *\(.*\)$/\1/
18508 p
18509 }
18510 }'
18511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18512# Check for a 64-bit object if we didn't find anything.
18513if test -z "$aix_libpath"; then
18514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18515fi
18516else
18517 echo "$as_me: failed program was:" >&5
18518sed 's/^/| /' conftest.$ac_ext >&5
18519
18520
18521fi
18522
18523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18524 conftest$ac_exeext conftest.$ac_ext
18525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18526
18527 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18528 # Warning - without using the other run time loading flags,
18529 # -berok will link without error, but may produce a broken library.
18530 no_undefined_flag_GCJ=' ${wl}-bernotok'
18531 allow_undefined_flag_GCJ=' ${wl}-berok'
18532 # Exported symbols can be pulled into shared objects from archives
18533 whole_archive_flag_spec_GCJ='$convenience'
18534 archive_cmds_need_lc_GCJ=yes
18535 # This is similar to how AIX traditionally builds its shared libraries.
18536 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'
18537 fi
18538 fi
18539 ;;
18540
18541 amigaos*)
18542 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)'
18543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18544 hardcode_minus_L_GCJ=yes
18545 # see comment about different semantics on the GNU ld section
18546 ld_shlibs_GCJ=no
18547 ;;
18548
18549 bsdi[45]*)
18550 export_dynamic_flag_spec_GCJ=-rdynamic
18551 ;;
18552
18553 cygwin* | mingw* | pw32*)
18554 # When not using gcc, we currently assume that we are using
18555 # Microsoft Visual C++.
18556 # hardcode_libdir_flag_spec is actually meaningless, as there is
18557 # no search path for DLLs.
18558 hardcode_libdir_flag_spec_GCJ=' '
18559 allow_undefined_flag_GCJ=unsupported
18560 # Tell ltmain to make .lib files, not .a files.
18561 libext=lib
18562 # Tell ltmain to make .dll files, not .so files.
18563 shrext_cmds=".dll"
18564 # FIXME: Setting linknames here is a bad hack.
18565 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18566 # The linker will automatically build a .lib file if we build a DLL.
18567 old_archive_From_new_cmds_GCJ='true'
18568 # FIXME: Should let the user specify the lib program.
18569 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18570 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18571 enable_shared_with_static_runtimes_GCJ=yes
18572 ;;
18573
18574 darwin* | rhapsody*)
18575 case $host_os in
18576 rhapsody* | darwin1.[012])
18577 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18578 ;;
18579 *) # Darwin 1.3 on
18580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18581 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18582 else
18583 case ${MACOSX_DEPLOYMENT_TARGET} in
18584 10.[012])
18585 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18586 ;;
18587 10.*)
18588 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18589 ;;
18590 esac
18591 fi
18592 ;;
18593 esac
18594 archive_cmds_need_lc_GCJ=no
18595 hardcode_direct_GCJ=no
18596 hardcode_automatic_GCJ=yes
18597 hardcode_shlibpath_var_GCJ=unsupported
18598 whole_archive_flag_spec_GCJ=''
18599 link_all_deplibs_GCJ=yes
18600 if test "$GCC" = yes ; then
18601 output_verbose_link_cmd='echo'
18602 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18603 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18605 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}'
18606 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}'
18607 else
18608 case $cc_basename in
18609 xlc*)
18610 output_verbose_link_cmd='echo'
18611 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18612 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18614 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18615 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}'
18616 ;;
18617 *)
18618 ld_shlibs_GCJ=no
18619 ;;
18620 esac
18621 fi
18622 ;;
18623
18624 dgux*)
18625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18626 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18627 hardcode_shlibpath_var_GCJ=no
18628 ;;
18629
18630 freebsd1*)
18631 ld_shlibs_GCJ=no
18632 ;;
18633
18634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18635 # support. Future versions do this automatically, but an explicit c++rt0.o
18636 # does not break anything, and helps significantly (at the cost of a little
18637 # extra space).
18638 freebsd2.2*)
18639 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18640 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18641 hardcode_direct_GCJ=yes
18642 hardcode_shlibpath_var_GCJ=no
18643 ;;
18644
18645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18646 freebsd2*)
18647 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18648 hardcode_direct_GCJ=yes
18649 hardcode_minus_L_GCJ=yes
18650 hardcode_shlibpath_var_GCJ=no
18651 ;;
18652
18653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18654 freebsd* | dragonfly*)
18655 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18656 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18657 hardcode_direct_GCJ=yes
18658 hardcode_shlibpath_var_GCJ=no
18659 ;;
18660
18661 hpux9*)
18662 if test "$GCC" = yes; then
18663 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'
18664 else
18665 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'
18666 fi
18667 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18668 hardcode_libdir_separator_GCJ=:
18669 hardcode_direct_GCJ=yes
18670
18671 # hardcode_minus_L: Not really in the search PATH,
18672 # but as the default location of the library.
18673 hardcode_minus_L_GCJ=yes
18674 export_dynamic_flag_spec_GCJ='${wl}-E'
18675 ;;
18676
18677 hpux10*)
18678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18679 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18680 else
18681 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18682 fi
18683 if test "$with_gnu_ld" = no; then
18684 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18685 hardcode_libdir_separator_GCJ=:
18686
18687 hardcode_direct_GCJ=yes
18688 export_dynamic_flag_spec_GCJ='${wl}-E'
18689
18690 # hardcode_minus_L: Not really in the search PATH,
18691 # but as the default location of the library.
18692 hardcode_minus_L_GCJ=yes
18693 fi
18694 ;;
18695
18696 hpux11*)
18697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18698 case $host_cpu in
18699 hppa*64*)
18700 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701 ;;
18702 ia64*)
18703 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18704 ;;
18705 *)
18706 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18707 ;;
18708 esac
18709 else
18710 case $host_cpu in
18711 hppa*64*)
18712 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18713 ;;
18714 ia64*)
18715 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18716 ;;
18717 *)
18718 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18719 ;;
18720 esac
18721 fi
18722 if test "$with_gnu_ld" = no; then
18723 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18724 hardcode_libdir_separator_GCJ=:
18725
18726 case $host_cpu in
18727 hppa*64*|ia64*)
18728 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18729 hardcode_direct_GCJ=no
18730 hardcode_shlibpath_var_GCJ=no
18731 ;;
18732 *)
18733 hardcode_direct_GCJ=yes
18734 export_dynamic_flag_spec_GCJ='${wl}-E'
18735
18736 # hardcode_minus_L: Not really in the search PATH,
18737 # but as the default location of the library.
18738 hardcode_minus_L_GCJ=yes
18739 ;;
18740 esac
18741 fi
18742 ;;
18743
18744 irix5* | irix6* | nonstopux*)
18745 if test "$GCC" = yes; then
18746 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'
18747 else
18748 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'
18749 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18750 fi
18751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18752 hardcode_libdir_separator_GCJ=:
18753 link_all_deplibs_GCJ=yes
18754 ;;
18755
18756 netbsd*)
18757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18758 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18759 else
18760 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18761 fi
18762 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18763 hardcode_direct_GCJ=yes
18764 hardcode_shlibpath_var_GCJ=no
18765 ;;
18766
18767 newsos6)
18768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18769 hardcode_direct_GCJ=yes
18770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18771 hardcode_libdir_separator_GCJ=:
18772 hardcode_shlibpath_var_GCJ=no
18773 ;;
18774
18775 openbsd*)
18776 if test -f /usr/libexec/ld.so; then
18777 hardcode_direct_GCJ=yes
18778 hardcode_shlibpath_var_GCJ=no
18779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18780 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18781 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18783 export_dynamic_flag_spec_GCJ='${wl}-E'
18784 else
18785 case $host_os in
18786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18787 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18788 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18789 ;;
18790 *)
18791 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18793 ;;
18794 esac
18795 fi
18796 else
18797 ld_shlibs_GCJ=no
18798 fi
18799 ;;
18800
18801 os2*)
18802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18803 hardcode_minus_L_GCJ=yes
18804 allow_undefined_flag_GCJ=unsupported
18805 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'
18806 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18807 ;;
18808
18809 osf3*)
18810 if test "$GCC" = yes; then
18811 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18812 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'
18813 else
18814 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18815 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'
18816 fi
18817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18818 hardcode_libdir_separator_GCJ=:
18819 ;;
18820
18821 osf4* | osf5*) # as osf3* with the addition of -msym flag
18822 if test "$GCC" = yes; then
18823 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18824 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'
18825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18826 else
18827 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18828 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'
18829 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~
18830 $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'
18831
18832 # Both c and cxx compiler support -rpath directly
18833 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18834 fi
18835 hardcode_libdir_separator_GCJ=:
18836 ;;
18837
18838 solaris*)
18839 no_undefined_flag_GCJ=' -z text'
18840 if test "$GCC" = yes; then
18841 wlarc='${wl}'
18842 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18843 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18845 else
18846 wlarc=''
18847 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18850 fi
18851 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18852 hardcode_shlibpath_var_GCJ=no
18853 case $host_os in
18854 solaris2.[0-5] | solaris2.[0-5].*) ;;
18855 *)
18856 # The compiler driver will combine and reorder linker options,
18857 # but understands `-z linker_flag'. GCC discards it without `$wl',
18858 # but is careful enough not to reorder.
18859 # Supported since Solaris 2.6 (maybe 2.5.1?)
18860 if test "$GCC" = yes; then
18861 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18862 else
18863 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18864 fi
18865 ;;
18866 esac
18867 link_all_deplibs_GCJ=yes
18868 ;;
18869
18870 sunos4*)
18871 if test "x$host_vendor" = xsequent; then
18872 # Use $CC to link under sequent, because it throws in some extra .o
18873 # files that make .init and .fini sections work.
18874 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18875 else
18876 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18877 fi
18878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18879 hardcode_direct_GCJ=yes
18880 hardcode_minus_L_GCJ=yes
18881 hardcode_shlibpath_var_GCJ=no
18882 ;;
18883
18884 sysv4)
18885 case $host_vendor in
18886 sni)
18887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18888 hardcode_direct_GCJ=yes # is this really true???
18889 ;;
18890 siemens)
18891 ## LD is ld it makes a PLAMLIB
18892 ## CC just makes a GrossModule.
18893 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18894 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18895 hardcode_direct_GCJ=no
18896 ;;
18897 motorola)
18898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18899 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18900 ;;
18901 esac
18902 runpath_var='LD_RUN_PATH'
18903 hardcode_shlibpath_var_GCJ=no
18904 ;;
18905
18906 sysv4.3*)
18907 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18908 hardcode_shlibpath_var_GCJ=no
18909 export_dynamic_flag_spec_GCJ='-Bexport'
18910 ;;
18911
18912 sysv4*MP*)
18913 if test -d /usr/nec; then
18914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18915 hardcode_shlibpath_var_GCJ=no
18916 runpath_var=LD_RUN_PATH
18917 hardcode_runpath_var=yes
18918 ld_shlibs_GCJ=yes
18919 fi
18920 ;;
18921
18922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18923 no_undefined_flag_GCJ='${wl}-z,text'
18924 archive_cmds_need_lc_GCJ=no
18925 hardcode_shlibpath_var_GCJ=no
18926 runpath_var='LD_RUN_PATH'
18927
18928 if test "$GCC" = yes; then
18929 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18930 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18931 else
18932 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18933 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18934 fi
18935 ;;
18936
18937 sysv5* | sco3.2v5* | sco5v6*)
18938 # Note: We can NOT use -z defs as we might desire, because we do not
18939 # link with -lc, and that would cause any symbols used from libc to
18940 # always be unresolved, which means just about no library would
18941 # ever link correctly. If we're not using GNU ld we use -z text
18942 # though, which does catch some bad symbols but isn't as heavy-handed
18943 # as -z defs.
18944 no_undefined_flag_GCJ='${wl}-z,text'
18945 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18946 archive_cmds_need_lc_GCJ=no
18947 hardcode_shlibpath_var_GCJ=no
18948 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18949 hardcode_libdir_separator_GCJ=':'
18950 link_all_deplibs_GCJ=yes
18951 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18952 runpath_var='LD_RUN_PATH'
18953
18954 if test "$GCC" = yes; then
18955 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18957 else
18958 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18959 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 fi
18961 ;;
18962
18963 uts4*)
18964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18966 hardcode_shlibpath_var_GCJ=no
18967 ;;
18968
18969 *)
18970 ld_shlibs_GCJ=no
18971 ;;
18972 esac
18973 fi
18974
18975{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18976echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18977test "$ld_shlibs_GCJ" = no && can_build_shared=no
18978
18979#
18980# Do we need to explicitly link libc?
18981#
18982case "x$archive_cmds_need_lc_GCJ" in
18983x|xyes)
18984 # Assume -lc should be added
18985 archive_cmds_need_lc_GCJ=yes
18986
18987 if test "$enable_shared" = yes && test "$GCC" = yes; then
18988 case $archive_cmds_GCJ in
18989 *'~'*)
18990 # FIXME: we may have to deal with multi-command sequences.
18991 ;;
18992 '$CC '*)
18993 # Test whether the compiler implicitly links with -lc since on some
18994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18995 # to ld, don't add -lc before -lgcc.
18996 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18997echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18998 $rm conftest*
18999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19000
19001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } 2>conftest.err; then
19006 soname=conftest
19007 lib=conftest
19008 libobjs=conftest.$ac_objext
19009 deplibs=
19010 wl=$lt_prog_compiler_wl_GCJ
19011 pic_flag=$lt_prog_compiler_pic_GCJ
19012 compiler_flags=-v
19013 linker_flags=-v
19014 verstring=
19015 output_objdir=.
19016 libname=conftest
19017 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19018 allow_undefined_flag_GCJ=
19019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19020 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }
19024 then
19025 archive_cmds_need_lc_GCJ=no
19026 else
19027 archive_cmds_need_lc_GCJ=yes
19028 fi
19029 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19030 else
19031 cat conftest.err 1>&5
19032 fi
19033 $rm conftest*
19034 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19035echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19036 ;;
19037 esac
19038 fi
19039 ;;
19040esac
19041
19042{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19044library_names_spec=
19045libname_spec='lib$name'
19046soname_spec=
19047shrext_cmds=".so"
19048postinstall_cmds=
19049postuninstall_cmds=
19050finish_cmds=
19051finish_eval=
19052shlibpath_var=
19053shlibpath_overrides_runpath=unknown
19054version_type=none
19055dynamic_linker="$host_os ld.so"
19056sys_lib_dlsearch_path_spec="/lib /usr/lib"
19057
19058need_lib_prefix=unknown
19059hardcode_into_libs=no
19060
19061# when you set need_version to no, make sure it does not cause -set_version
19062# flags to be left without arguments
19063need_version=unknown
19064
19065case $host_os in
19066aix3*)
19067 version_type=linux
19068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19069 shlibpath_var=LIBPATH
19070
19071 # AIX 3 has no versioning support, so we append a major version to the name.
19072 soname_spec='${libname}${release}${shared_ext}$major'
19073 ;;
19074
19075aix4* | aix5*)
19076 version_type=linux
19077 need_lib_prefix=no
19078 need_version=no
19079 hardcode_into_libs=yes
19080 if test "$host_cpu" = ia64; then
19081 # AIX 5 supports IA64
19082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 else
19085 # With GCC up to 2.95.x, collect2 would create an import file
19086 # for dependence libraries. The import file would start with
19087 # the line `#! .'. This would cause the generated library to
19088 # depend on `.', always an invalid library. This was fixed in
19089 # development snapshots of GCC prior to 3.0.
19090 case $host_os in
19091 aix4 | aix4.[01] | aix4.[01].*)
19092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19093 echo ' yes '
19094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19095 :
19096 else
19097 can_build_shared=no
19098 fi
19099 ;;
19100 esac
19101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19102 # soname into executable. Probably we can add versioning support to
19103 # collect2, so additional links can be useful in future.
19104 if test "$aix_use_runtimelinking" = yes; then
19105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19106 # instead of lib<name>.a to let people know that these are not
19107 # typical AIX shared libraries.
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109 else
19110 # We preserve .a as extension for shared libraries through AIX4.2
19111 # and later when we are not doing run time linking.
19112 library_names_spec='${libname}${release}.a $libname.a'
19113 soname_spec='${libname}${release}${shared_ext}$major'
19114 fi
19115 shlibpath_var=LIBPATH
19116 fi
19117 ;;
19118
19119amigaos*)
19120 library_names_spec='$libname.ixlibrary $libname.a'
19121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19122 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'
19123 ;;
19124
19125beos*)
19126 library_names_spec='${libname}${shared_ext}'
19127 dynamic_linker="$host_os ld.so"
19128 shlibpath_var=LIBRARY_PATH
19129 ;;
19130
19131bsdi[45]*)
19132 version_type=linux
19133 need_version=no
19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135 soname_spec='${libname}${release}${shared_ext}$major'
19136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19140 # the default ld.so.conf also contains /usr/contrib/lib and
19141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19142 # libtool to hard-code these into programs
19143 ;;
19144
19145cygwin* | mingw* | pw32*)
19146 version_type=windows
19147 shrext_cmds=".dll"
19148 need_version=no
19149 need_lib_prefix=no
19150
19151 case $GCC,$host_os in
19152 yes,cygwin* | yes,mingw* | yes,pw32*)
19153 library_names_spec='$libname.dll.a'
19154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19155 postinstall_cmds='base_file=`basename \${file}`~
19156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19157 dldir=$destdir/`dirname \$dlpath`~
19158 test -d \$dldir || mkdir -p \$dldir~
19159 $install_prog $dir/$dlname \$dldir/$dlname~
19160 chmod a+x \$dldir/$dlname'
19161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19162 dlpath=$dir/\$dldll~
19163 $rm \$dlpath'
19164 shlibpath_overrides_runpath=yes
19165
19166 case $host_os in
19167 cygwin*)
19168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19170 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19171 ;;
19172 mingw*)
19173 # MinGW DLLs use traditional 'lib' prefix
19174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19177 # It is most probably a Windows format PATH printed by
19178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19179 # path with ; separators, and with drive letters. We can handle the
19180 # drive letters (cygwin fileutils understands them), so leave them,
19181 # especially as we might pass files found there to a mingw objdump,
19182 # which wouldn't understand a cygwinified path. Ahh.
19183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19184 else
19185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19186 fi
19187 ;;
19188 pw32*)
19189 # pw32 DLLs use 'pw' prefix rather than 'lib'
19190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19191 ;;
19192 esac
19193 ;;
19194
19195 *)
19196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19197 ;;
19198 esac
19199 dynamic_linker='Win32 ld.exe'
19200 # FIXME: first we should search . and the directory the executable is in
19201 shlibpath_var=PATH
19202 ;;
19203
19204darwin* | rhapsody*)
19205 dynamic_linker="$host_os dyld"
19206 version_type=darwin
19207 need_lib_prefix=no
19208 need_version=no
19209 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19210 soname_spec='${libname}${release}${major}$shared_ext'
19211 shlibpath_overrides_runpath=yes
19212 shlibpath_var=DYLD_LIBRARY_PATH
19213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19214
19215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19216 ;;
19217
19218dgux*)
19219 version_type=linux
19220 need_lib_prefix=no
19221 need_version=no
19222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19223 soname_spec='${libname}${release}${shared_ext}$major'
19224 shlibpath_var=LD_LIBRARY_PATH
19225 ;;
19226
19227freebsd1*)
19228 dynamic_linker=no
19229 ;;
19230
19231freebsd* | dragonfly*)
19232 # DragonFly does not have aout. When/if they implement a new
19233 # versioning mechanism, adjust this.
19234 if test -x /usr/bin/objformat; then
19235 objformat=`/usr/bin/objformat`
19236 else
19237 case $host_os in
19238 freebsd[123]*) objformat=aout ;;
19239 *) objformat=elf ;;
19240 esac
19241 fi
19242 version_type=freebsd-$objformat
19243 case $version_type in
19244 freebsd-elf*)
19245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19246 need_version=no
19247 need_lib_prefix=no
19248 ;;
19249 freebsd-*)
19250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19251 need_version=yes
19252 ;;
19253 esac
19254 shlibpath_var=LD_LIBRARY_PATH
19255 case $host_os in
19256 freebsd2*)
19257 shlibpath_overrides_runpath=yes
19258 ;;
19259 freebsd3.[01]* | freebsdelf3.[01]*)
19260 shlibpath_overrides_runpath=yes
19261 hardcode_into_libs=yes
19262 ;;
19263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19265 shlibpath_overrides_runpath=no
19266 hardcode_into_libs=yes
19267 ;;
19268 *) # from 4.6 on, and DragonFly
19269 shlibpath_overrides_runpath=yes
19270 hardcode_into_libs=yes
19271 ;;
19272 esac
19273 ;;
19274
19275gnu*)
19276 version_type=linux
19277 need_lib_prefix=no
19278 need_version=no
19279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19280 soname_spec='${libname}${release}${shared_ext}$major'
19281 shlibpath_var=LD_LIBRARY_PATH
19282 hardcode_into_libs=yes
19283 ;;
19284
19285hpux9* | hpux10* | hpux11*)
19286 # Give a soname corresponding to the major version so that dld.sl refuses to
19287 # link against other versions.
19288 version_type=sunos
19289 need_lib_prefix=no
19290 need_version=no
19291 case $host_cpu in
19292 ia64*)
19293 shrext_cmds='.so'
19294 hardcode_into_libs=yes
19295 dynamic_linker="$host_os dld.so"
19296 shlibpath_var=LD_LIBRARY_PATH
19297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 if test "X$HPUX_IA64_MODE" = X32; then
19301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19302 else
19303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19304 fi
19305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19306 ;;
19307 hppa*64*)
19308 shrext_cmds='.sl'
19309 hardcode_into_libs=yes
19310 dynamic_linker="$host_os dld.sl"
19311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314 soname_spec='${libname}${release}${shared_ext}$major'
19315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19317 ;;
19318 *)
19319 shrext_cmds='.sl'
19320 dynamic_linker="$host_os dld.sl"
19321 shlibpath_var=SHLIB_PATH
19322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec='${libname}${release}${shared_ext}$major'
19325 ;;
19326 esac
19327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19328 postinstall_cmds='chmod 555 $lib'
19329 ;;
19330
19331interix[3-9]*)
19332 version_type=linux
19333 need_lib_prefix=no
19334 need_version=no
19335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19336 soname_spec='${libname}${release}${shared_ext}$major'
19337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 shlibpath_overrides_runpath=no
19340 hardcode_into_libs=yes
19341 ;;
19342
19343irix5* | irix6* | nonstopux*)
19344 case $host_os in
19345 nonstopux*) version_type=nonstopux ;;
19346 *)
19347 if test "$lt_cv_prog_gnu_ld" = yes; then
19348 version_type=linux
19349 else
19350 version_type=irix
19351 fi ;;
19352 esac
19353 need_lib_prefix=no
19354 need_version=no
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19357 case $host_os in
19358 irix5* | nonstopux*)
19359 libsuff= shlibsuff=
19360 ;;
19361 *)
19362 case $LD in # libtool.m4 will add one of these switches to LD
19363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19364 libsuff= shlibsuff= libmagic=32-bit;;
19365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19366 libsuff=32 shlibsuff=N32 libmagic=N32;;
19367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19369 *) libsuff= shlibsuff= libmagic=never-match;;
19370 esac
19371 ;;
19372 esac
19373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19374 shlibpath_overrides_runpath=no
19375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19377 hardcode_into_libs=yes
19378 ;;
19379
19380# No shared lib support for Linux oldld, aout, or coff.
19381linux*oldld* | linux*aout* | linux*coff*)
19382 dynamic_linker=no
19383 ;;
19384
19385# This must be Linux ELF.
19386linux* | k*bsd*-gnu)
19387 version_type=linux
19388 need_lib_prefix=no
19389 need_version=no
19390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19391 soname_spec='${libname}${release}${shared_ext}$major'
19392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=no
19395 # This implies no fast_install, which is unacceptable.
19396 # Some rework will be needed to allow for fast_install
19397 # before this can be enabled.
19398 hardcode_into_libs=yes
19399
19400 # Append ld.so.conf contents to the search path
19401 if test -f /etc/ld.so.conf; then
19402 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19403 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19404 fi
19405
19406 # We used to test for /lib/ld.so.1 and disable shared libraries on
19407 # powerpc, because MkLinux only supported shared libraries with the
19408 # GNU dynamic linker. Since this was broken with cross compilers,
19409 # most powerpc-linux boxes support dynamic linking these days and
19410 # people can always --disable-shared, the test was removed, and we
19411 # assume the GNU/Linux dynamic linker is in use.
19412 dynamic_linker='GNU/Linux ld.so'
19413 ;;
19414
19415netbsd*)
19416 version_type=sunos
19417 need_lib_prefix=no
19418 need_version=no
19419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19422 dynamic_linker='NetBSD (a.out) ld.so'
19423 else
19424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19425 soname_spec='${libname}${release}${shared_ext}$major'
19426 dynamic_linker='NetBSD ld.elf_so'
19427 fi
19428 shlibpath_var=LD_LIBRARY_PATH
19429 shlibpath_overrides_runpath=yes
19430 hardcode_into_libs=yes
19431 ;;
19432
19433newsos6)
19434 version_type=linux
19435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19436 shlibpath_var=LD_LIBRARY_PATH
19437 shlibpath_overrides_runpath=yes
19438 ;;
19439
19440nto-qnx*)
19441 version_type=linux
19442 need_lib_prefix=no
19443 need_version=no
19444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445 soname_spec='${libname}${release}${shared_ext}$major'
19446 shlibpath_var=LD_LIBRARY_PATH
19447 shlibpath_overrides_runpath=yes
19448 ;;
19449
19450openbsd*)
19451 version_type=sunos
19452 sys_lib_dlsearch_path_spec="/usr/lib"
19453 need_lib_prefix=no
19454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19455 case $host_os in
19456 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19457 *) need_version=no ;;
19458 esac
19459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19461 shlibpath_var=LD_LIBRARY_PATH
19462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19463 case $host_os in
19464 openbsd2.[89] | openbsd2.[89].*)
19465 shlibpath_overrides_runpath=no
19466 ;;
19467 *)
19468 shlibpath_overrides_runpath=yes
19469 ;;
19470 esac
19471 else
19472 shlibpath_overrides_runpath=yes
19473 fi
19474 ;;
19475
19476os2*)
19477 libname_spec='$name'
19478 shrext_cmds=".dll"
19479 need_lib_prefix=no
19480 library_names_spec='$libname${shared_ext} $libname.a'
19481 dynamic_linker='OS/2 ld.exe'
19482 shlibpath_var=LIBPATH
19483 ;;
19484
19485osf3* | osf4* | osf5*)
19486 version_type=osf
19487 need_lib_prefix=no
19488 need_version=no
19489 soname_spec='${libname}${release}${shared_ext}$major'
19490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19491 shlibpath_var=LD_LIBRARY_PATH
19492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19494 ;;
19495
19496rdos*)
19497 dynamic_linker=no
19498 ;;
19499
19500solaris*)
19501 version_type=linux
19502 need_lib_prefix=no
19503 need_version=no
19504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19505 soname_spec='${libname}${release}${shared_ext}$major'
19506 shlibpath_var=LD_LIBRARY_PATH
19507 shlibpath_overrides_runpath=yes
19508 hardcode_into_libs=yes
19509 # ldd complains unless libraries are executable
19510 postinstall_cmds='chmod +x $lib'
19511 ;;
19512
19513sunos4*)
19514 version_type=sunos
19515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19517 shlibpath_var=LD_LIBRARY_PATH
19518 shlibpath_overrides_runpath=yes
19519 if test "$with_gnu_ld" = yes; then
19520 need_lib_prefix=no
19521 fi
19522 need_version=yes
19523 ;;
19524
19525sysv4 | sysv4.3*)
19526 version_type=linux
19527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19528 soname_spec='${libname}${release}${shared_ext}$major'
19529 shlibpath_var=LD_LIBRARY_PATH
19530 case $host_vendor in
19531 sni)
19532 shlibpath_overrides_runpath=no
19533 need_lib_prefix=no
19534 export_dynamic_flag_spec='${wl}-Blargedynsym'
19535 runpath_var=LD_RUN_PATH
19536 ;;
19537 siemens)
19538 need_lib_prefix=no
19539 ;;
19540 motorola)
19541 need_lib_prefix=no
19542 need_version=no
19543 shlibpath_overrides_runpath=no
19544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19545 ;;
19546 esac
19547 ;;
19548
19549sysv4*MP*)
19550 if test -d /usr/nec ;then
19551 version_type=linux
19552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19553 soname_spec='$libname${shared_ext}.$major'
19554 shlibpath_var=LD_LIBRARY_PATH
19555 fi
19556 ;;
19557
19558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19559 version_type=freebsd-elf
19560 need_lib_prefix=no
19561 need_version=no
19562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19563 soname_spec='${libname}${release}${shared_ext}$major'
19564 shlibpath_var=LD_LIBRARY_PATH
19565 hardcode_into_libs=yes
19566 if test "$with_gnu_ld" = yes; then
19567 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19568 shlibpath_overrides_runpath=no
19569 else
19570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19571 shlibpath_overrides_runpath=yes
19572 case $host_os in
19573 sco3.2v5*)
19574 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19575 ;;
19576 esac
19577 fi
19578 sys_lib_dlsearch_path_spec='/usr/lib'
19579 ;;
19580
19581uts4*)
19582 version_type=linux
19583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19584 soname_spec='${libname}${release}${shared_ext}$major'
19585 shlibpath_var=LD_LIBRARY_PATH
19586 ;;
19587
19588*)
19589 dynamic_linker=no
19590 ;;
19591esac
19592{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19593echo "${ECHO_T}$dynamic_linker" >&6; }
19594test "$dynamic_linker" = no && can_build_shared=no
19595
19596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19597if test "$GCC" = yes; then
19598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19599fi
19600
19601{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19602echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19603hardcode_action_GCJ=
19604if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19605 test -n "$runpath_var_GCJ" || \
19606 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19607
19608 # We can hardcode non-existant directories.
19609 if test "$hardcode_direct_GCJ" != no &&
19610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19611 # have to relink, otherwise we might link with an installed library
19612 # when we should be linking with a yet-to-be-installed one
19613 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19614 test "$hardcode_minus_L_GCJ" != no; then
19615 # Linking always hardcodes the temporary library directory.
19616 hardcode_action_GCJ=relink
19617 else
19618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19619 hardcode_action_GCJ=immediate
19620 fi
19621else
19622 # We cannot hardcode anything, or else we can only hardcode existing
19623 # directories.
19624 hardcode_action_GCJ=unsupported
19625fi
19626{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19627echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19628
19629if test "$hardcode_action_GCJ" = relink; then
19630 # Fast installation is not supported
19631 enable_fast_install=no
19632elif test "$shlibpath_overrides_runpath" = yes ||
19633 test "$enable_shared" = no; then
19634 # Fast installation is not necessary
19635 enable_fast_install=needless
19636fi
19637
19638
19639# The else clause should only fire when bootstrapping the
19640# libtool distribution, otherwise you forgot to ship ltmain.sh
19641# with your package, and you will get complaints that there are
19642# no rules to generate ltmain.sh.
19643if test -f "$ltmain"; then
19644 # See if we are running on zsh, and set the options which allow our commands through
19645 # without removal of \ escapes.
19646 if test -n "${ZSH_VERSION+set}" ; then
19647 setopt NO_GLOB_SUBST
19648 fi
19649 # Now quote all the things that may contain metacharacters while being
19650 # careful not to overquote the AC_SUBSTed values. We take copies of the
19651 # variables and quote the copies for generation of the libtool script.
19652 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19653 SED SHELL STRIP \
19654 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19655 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19656 deplibs_check_method reload_flag reload_cmds need_locks \
19657 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19658 lt_cv_sys_global_symbol_to_c_name_address \
19659 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19660 old_postinstall_cmds old_postuninstall_cmds \
19661 compiler_GCJ \
19662 CC_GCJ \
19663 LD_GCJ \
19664 lt_prog_compiler_wl_GCJ \
19665 lt_prog_compiler_pic_GCJ \
19666 lt_prog_compiler_static_GCJ \
19667 lt_prog_compiler_no_builtin_flag_GCJ \
19668 export_dynamic_flag_spec_GCJ \
19669 thread_safe_flag_spec_GCJ \
19670 whole_archive_flag_spec_GCJ \
19671 enable_shared_with_static_runtimes_GCJ \
19672 old_archive_cmds_GCJ \
19673 old_archive_from_new_cmds_GCJ \
19674 predep_objects_GCJ \
19675 postdep_objects_GCJ \
19676 predeps_GCJ \
19677 postdeps_GCJ \
19678 compiler_lib_search_path_GCJ \
19679 archive_cmds_GCJ \
19680 archive_expsym_cmds_GCJ \
19681 postinstall_cmds_GCJ \
19682 postuninstall_cmds_GCJ \
19683 old_archive_from_expsyms_cmds_GCJ \
19684 allow_undefined_flag_GCJ \
19685 no_undefined_flag_GCJ \
19686 export_symbols_cmds_GCJ \
19687 hardcode_libdir_flag_spec_GCJ \
19688 hardcode_libdir_flag_spec_ld_GCJ \
19689 hardcode_libdir_separator_GCJ \
19690 hardcode_automatic_GCJ \
19691 module_cmds_GCJ \
19692 module_expsym_cmds_GCJ \
19693 lt_cv_prog_compiler_c_o_GCJ \
19694 fix_srcfile_path_GCJ \
19695 exclude_expsyms_GCJ \
19696 include_expsyms_GCJ; do
19697
19698 case $var in
19699 old_archive_cmds_GCJ | \
19700 old_archive_from_new_cmds_GCJ | \
19701 archive_cmds_GCJ | \
19702 archive_expsym_cmds_GCJ | \
19703 module_cmds_GCJ | \
19704 module_expsym_cmds_GCJ | \
19705 old_archive_from_expsyms_cmds_GCJ | \
19706 export_symbols_cmds_GCJ | \
19707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19708 postinstall_cmds | postuninstall_cmds | \
19709 old_postinstall_cmds | old_postuninstall_cmds | \
19710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19711 # Double-quote double-evaled strings.
19712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19713 ;;
19714 *)
19715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19716 ;;
19717 esac
19718 done
19719
19720 case $lt_echo in
19721 *'\$0 --fallback-echo"')
19722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19723 ;;
19724 esac
19725
19726cfgfile="$ofile"
19727
19728 cat <<__EOF__ >> "$cfgfile"
19729# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19730
19731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19732
19733# Shell to use when invoking shell scripts.
19734SHELL=$lt_SHELL
19735
19736# Whether or not to build shared libraries.
19737build_libtool_libs=$enable_shared
19738
19739# Whether or not to build static libraries.
19740build_old_libs=$enable_static
19741
19742# Whether or not to add -lc for building shared libraries.
19743build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19744
19745# Whether or not to disallow shared libs when runtime libs are static
19746allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19747
19748# Whether or not to optimize for fast installation.
19749fast_install=$enable_fast_install
19750
19751# The host system.
19752host_alias=$host_alias
19753host=$host
19754host_os=$host_os
19755
19756# The build system.
19757build_alias=$build_alias
19758build=$build
19759build_os=$build_os
19760
19761# An echo program that does not interpret backslashes.
19762echo=$lt_echo
19763
19764# The archiver.
19765AR=$lt_AR
19766AR_FLAGS=$lt_AR_FLAGS
19767
19768# A C compiler.
19769LTCC=$lt_LTCC
19770
19771# LTCC compiler flags.
19772LTCFLAGS=$lt_LTCFLAGS
19773
19774# A language-specific compiler.
19775CC=$lt_compiler_GCJ
19776
19777# Is the compiler the GNU C compiler?
19778with_gcc=$GCC_GCJ
19779
19780# An ERE matcher.
19781EGREP=$lt_EGREP
19782
19783# The linker used to build libraries.
19784LD=$lt_LD_GCJ
19785
19786# Whether we need hard or soft links.
19787LN_S=$lt_LN_S
19788
19789# A BSD-compatible nm program.
19790NM=$lt_NM
19791
19792# A symbol stripping program
19793STRIP=$lt_STRIP
19794
19795# Used to examine libraries when file_magic_cmd begins "file"
19796MAGIC_CMD=$MAGIC_CMD
19797
19798# Used on cygwin: DLL creation program.
19799DLLTOOL="$DLLTOOL"
19800
19801# Used on cygwin: object dumper.
19802OBJDUMP="$OBJDUMP"
19803
19804# Used on cygwin: assembler.
19805AS="$AS"
19806
19807# The name of the directory that contains temporary libtool files.
19808objdir=$objdir
19809
19810# How to create reloadable object files.
19811reload_flag=$lt_reload_flag
19812reload_cmds=$lt_reload_cmds
19813
19814# How to pass a linker flag through the compiler.
19815wl=$lt_lt_prog_compiler_wl_GCJ
19816
19817# Object file suffix (normally "o").
19818objext="$ac_objext"
19819
19820# Old archive suffix (normally "a").
19821libext="$libext"
19822
19823# Shared library suffix (normally ".so").
19824shrext_cmds='$shrext_cmds'
19825
19826# Executable file suffix (normally "").
19827exeext="$exeext"
19828
19829# Additional compiler flags for building library objects.
19830pic_flag=$lt_lt_prog_compiler_pic_GCJ
19831pic_mode=$pic_mode
19832
19833# What is the maximum length of a command?
19834max_cmd_len=$lt_cv_sys_max_cmd_len
19835
19836# Does compiler simultaneously support -c and -o options?
19837compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19838
19839# Must we lock files when doing compilation?
19840need_locks=$lt_need_locks
19841
19842# Do we need the lib prefix for modules?
19843need_lib_prefix=$need_lib_prefix
19844
19845# Do we need a version for libraries?
19846need_version=$need_version
19847
19848# Whether dlopen is supported.
19849dlopen_support=$enable_dlopen
19850
19851# Whether dlopen of programs is supported.
19852dlopen_self=$enable_dlopen_self
19853
19854# Whether dlopen of statically linked programs is supported.
19855dlopen_self_static=$enable_dlopen_self_static
19856
19857# Compiler flag to prevent dynamic linking.
19858link_static_flag=$lt_lt_prog_compiler_static_GCJ
19859
19860# Compiler flag to turn off builtin functions.
19861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19862
19863# Compiler flag to allow reflexive dlopens.
19864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19865
19866# Compiler flag to generate shared objects directly from archives.
19867whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19868
19869# Compiler flag to generate thread-safe objects.
19870thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19871
19872# Library versioning type.
19873version_type=$version_type
19874
19875# Format of library name prefix.
19876libname_spec=$lt_libname_spec
19877
19878# List of archive names. First name is the real one, the rest are links.
19879# The last name is the one that the linker finds with -lNAME.
19880library_names_spec=$lt_library_names_spec
19881
19882# The coded name of the library, if different from the real name.
19883soname_spec=$lt_soname_spec
19884
19885# Commands used to build and install an old-style archive.
19886RANLIB=$lt_RANLIB
19887old_archive_cmds=$lt_old_archive_cmds_GCJ
19888old_postinstall_cmds=$lt_old_postinstall_cmds
19889old_postuninstall_cmds=$lt_old_postuninstall_cmds
19890
19891# Create an old-style archive from a shared archive.
19892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19893
19894# Create a temporary old-style archive to link instead of a shared archive.
19895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19896
19897# Commands used to build and install a shared archive.
19898archive_cmds=$lt_archive_cmds_GCJ
19899archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19900postinstall_cmds=$lt_postinstall_cmds
19901postuninstall_cmds=$lt_postuninstall_cmds
19902
19903# Commands used to build a loadable module (assumed same as above if empty)
19904module_cmds=$lt_module_cmds_GCJ
19905module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19906
19907# Commands to strip libraries.
19908old_striplib=$lt_old_striplib
19909striplib=$lt_striplib
19910
19911# Dependencies to place before the objects being linked to create a
19912# shared library.
19913predep_objects=$lt_predep_objects_GCJ
19914
19915# Dependencies to place after the objects being linked to create a
19916# shared library.
19917postdep_objects=$lt_postdep_objects_GCJ
19918
19919# Dependencies to place before the objects being linked to create a
19920# shared library.
19921predeps=$lt_predeps_GCJ
19922
19923# Dependencies to place after the objects being linked to create a
19924# shared library.
19925postdeps=$lt_postdeps_GCJ
19926
19927# The library search path used internally by the compiler when linking
19928# a shared library.
19929compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19930
19931# Method to check whether dependent libraries are shared objects.
19932deplibs_check_method=$lt_deplibs_check_method
19933
19934# Command to use when deplibs_check_method == file_magic.
19935file_magic_cmd=$lt_file_magic_cmd
19936
19937# Flag that allows shared libraries with undefined symbols to be built.
19938allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19939
19940# Flag that forces no undefined symbols.
19941no_undefined_flag=$lt_no_undefined_flag_GCJ
19942
19943# Commands used to finish a libtool library installation in a directory.
19944finish_cmds=$lt_finish_cmds
19945
19946# Same as above, but a single script fragment to be evaled but not shown.
19947finish_eval=$lt_finish_eval
19948
19949# Take the output of nm and produce a listing of raw symbols and C names.
19950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19951
19952# Transform the output of nm in a proper C declaration
19953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19954
19955# Transform the output of nm in a C name address pair
19956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19957
19958# This is the shared library runtime path variable.
19959runpath_var=$runpath_var
19960
19961# This is the shared library path variable.
19962shlibpath_var=$shlibpath_var
19963
19964# Is shlibpath searched before the hard-coded library search path?
19965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19966
19967# How to hardcode a shared library path into an executable.
19968hardcode_action=$hardcode_action_GCJ
19969
19970# Whether we should hardcode library paths into libraries.
19971hardcode_into_libs=$hardcode_into_libs
19972
19973# Flag to hardcode \$libdir into a binary during linking.
19974# This must work even if \$libdir does not exist.
19975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19976
19977# If ld is used when linking, flag to hardcode \$libdir into
19978# a binary during linking. This must work even if \$libdir does
19979# not exist.
19980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19981
19982# Whether we need a single -rpath flag with a separated argument.
19983hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19984
19985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19986# resulting binary.
19987hardcode_direct=$hardcode_direct_GCJ
19988
19989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19990# resulting binary.
19991hardcode_minus_L=$hardcode_minus_L_GCJ
19992
19993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19994# the resulting binary.
19995hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19996
19997# Set to yes if building a shared library automatically hardcodes DIR into the library
19998# and all subsequent libraries and executables linked against it.
19999hardcode_automatic=$hardcode_automatic_GCJ
20000
20001# Variables whose values should be saved in libtool wrapper scripts and
20002# restored at relink time.
20003variables_saved_for_relink="$variables_saved_for_relink"
20004
20005# Whether libtool must link a program against all its dependency libraries.
20006link_all_deplibs=$link_all_deplibs_GCJ
20007
20008# Compile-time system search path for libraries
20009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20010
20011# Run-time system search path for libraries
20012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20013
20014# Fix the shell variable \$srcfile for the compiler.
20015fix_srcfile_path=$lt_fix_srcfile_path
20016
20017# Set to yes if exported symbols are required.
20018always_export_symbols=$always_export_symbols_GCJ
20019
20020# The commands to list exported symbols.
20021export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20022
20023# The commands to extract the exported symbol list from a shared archive.
20024extract_expsyms_cmds=$lt_extract_expsyms_cmds
20025
20026# Symbols that should not be listed in the preloaded symbols.
20027exclude_expsyms=$lt_exclude_expsyms_GCJ
20028
20029# Symbols that must always be exported.
20030include_expsyms=$lt_include_expsyms_GCJ
20031
20032# ### END LIBTOOL TAG CONFIG: $tagname
20033
20034__EOF__
20035
20036
20037else
20038 # If there is no Makefile yet, we rely on a make rule to execute
20039 # `config.status --recheck' to rerun these tests and create the
20040 # libtool script then.
20041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20042 if test -f "$ltmain_in"; then
20043 test -f Makefile && make "$ltmain"
20044 fi
20045fi
20046
20047
20048ac_ext=c
20049ac_cpp='$CPP $CPPFLAGS'
20050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053
20054CC="$lt_save_CC"
20055
20056 else
20057 tagname=""
20058 fi
20059 ;;
20060
20061 RC)
20062
20063
20064# Source file extension for RC test sources.
20065ac_ext=rc
20066
20067# Object file extension for compiled RC test sources.
20068objext=o
20069objext_RC=$objext
20070
20071# Code to be used in simple compile tests
20072lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20073
20074# Code to be used in simple link tests
20075lt_simple_link_test_code="$lt_simple_compile_test_code"
20076
20077# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20078
20079# If no C compiler was specified, use CC.
20080LTCC=${LTCC-"$CC"}
20081
20082# If no C compiler flags were specified, use CFLAGS.
20083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20084
20085# Allow CC to be a program name with arguments.
20086compiler=$CC
20087
20088
20089# save warnings/boilerplate of simple test code
20090ac_outfile=conftest.$ac_objext
20091echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20092eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20093_lt_compiler_boilerplate=`cat conftest.err`
20094$rm conftest*
20095
20096ac_outfile=conftest.$ac_objext
20097echo "$lt_simple_link_test_code" >conftest.$ac_ext
20098eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20099_lt_linker_boilerplate=`cat conftest.err`
20100$rm conftest*
20101
20102
20103# Allow CC to be a program name with arguments.
20104lt_save_CC="$CC"
20105CC=${RC-"windres"}
20106compiler=$CC
20107compiler_RC=$CC
20108for cc_temp in $compiler""; do
20109 case $cc_temp in
20110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20112 \-*) ;;
20113 *) break;;
20114 esac
20115done
20116cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20117
20118lt_cv_prog_compiler_c_o_RC=yes
20119
20120# The else clause should only fire when bootstrapping the
20121# libtool distribution, otherwise you forgot to ship ltmain.sh
20122# with your package, and you will get complaints that there are
20123# no rules to generate ltmain.sh.
20124if test -f "$ltmain"; then
20125 # See if we are running on zsh, and set the options which allow our commands through
20126 # without removal of \ escapes.
20127 if test -n "${ZSH_VERSION+set}" ; then
20128 setopt NO_GLOB_SUBST
20129 fi
20130 # Now quote all the things that may contain metacharacters while being
20131 # careful not to overquote the AC_SUBSTed values. We take copies of the
20132 # variables and quote the copies for generation of the libtool script.
20133 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20134 SED SHELL STRIP \
20135 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20136 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20137 deplibs_check_method reload_flag reload_cmds need_locks \
20138 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20139 lt_cv_sys_global_symbol_to_c_name_address \
20140 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20141 old_postinstall_cmds old_postuninstall_cmds \
20142 compiler_RC \
20143 CC_RC \
20144 LD_RC \
20145 lt_prog_compiler_wl_RC \
20146 lt_prog_compiler_pic_RC \
20147 lt_prog_compiler_static_RC \
20148 lt_prog_compiler_no_builtin_flag_RC \
20149 export_dynamic_flag_spec_RC \
20150 thread_safe_flag_spec_RC \
20151 whole_archive_flag_spec_RC \
20152 enable_shared_with_static_runtimes_RC \
20153 old_archive_cmds_RC \
20154 old_archive_from_new_cmds_RC \
20155 predep_objects_RC \
20156 postdep_objects_RC \
20157 predeps_RC \
20158 postdeps_RC \
20159 compiler_lib_search_path_RC \
20160 archive_cmds_RC \
20161 archive_expsym_cmds_RC \
20162 postinstall_cmds_RC \
20163 postuninstall_cmds_RC \
20164 old_archive_from_expsyms_cmds_RC \
20165 allow_undefined_flag_RC \
20166 no_undefined_flag_RC \
20167 export_symbols_cmds_RC \
20168 hardcode_libdir_flag_spec_RC \
20169 hardcode_libdir_flag_spec_ld_RC \
20170 hardcode_libdir_separator_RC \
20171 hardcode_automatic_RC \
20172 module_cmds_RC \
20173 module_expsym_cmds_RC \
20174 lt_cv_prog_compiler_c_o_RC \
20175 fix_srcfile_path_RC \
20176 exclude_expsyms_RC \
20177 include_expsyms_RC; do
20178
20179 case $var in
20180 old_archive_cmds_RC | \
20181 old_archive_from_new_cmds_RC | \
20182 archive_cmds_RC | \
20183 archive_expsym_cmds_RC | \
20184 module_cmds_RC | \
20185 module_expsym_cmds_RC | \
20186 old_archive_from_expsyms_cmds_RC | \
20187 export_symbols_cmds_RC | \
20188 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20189 postinstall_cmds | postuninstall_cmds | \
20190 old_postinstall_cmds | old_postuninstall_cmds | \
20191 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20192 # Double-quote double-evaled strings.
20193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20194 ;;
20195 *)
20196 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20197 ;;
20198 esac
20199 done
20200
20201 case $lt_echo in
20202 *'\$0 --fallback-echo"')
20203 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20204 ;;
20205 esac
20206
20207cfgfile="$ofile"
20208
20209 cat <<__EOF__ >> "$cfgfile"
20210# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20211
20212# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20213
20214# Shell to use when invoking shell scripts.
20215SHELL=$lt_SHELL
20216
20217# Whether or not to build shared libraries.
20218build_libtool_libs=$enable_shared
20219
20220# Whether or not to build static libraries.
20221build_old_libs=$enable_static
20222
20223# Whether or not to add -lc for building shared libraries.
20224build_libtool_need_lc=$archive_cmds_need_lc_RC
20225
20226# Whether or not to disallow shared libs when runtime libs are static
20227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20228
20229# Whether or not to optimize for fast installation.
20230fast_install=$enable_fast_install
20231
20232# The host system.
20233host_alias=$host_alias
20234host=$host
20235host_os=$host_os
20236
20237# The build system.
20238build_alias=$build_alias
20239build=$build
20240build_os=$build_os
20241
20242# An echo program that does not interpret backslashes.
20243echo=$lt_echo
20244
20245# The archiver.
20246AR=$lt_AR
20247AR_FLAGS=$lt_AR_FLAGS
20248
20249# A C compiler.
20250LTCC=$lt_LTCC
20251
20252# LTCC compiler flags.
20253LTCFLAGS=$lt_LTCFLAGS
20254
20255# A language-specific compiler.
20256CC=$lt_compiler_RC
20257
20258# Is the compiler the GNU C compiler?
20259with_gcc=$GCC_RC
20260
20261# An ERE matcher.
20262EGREP=$lt_EGREP
20263
20264# The linker used to build libraries.
20265LD=$lt_LD_RC
20266
20267# Whether we need hard or soft links.
20268LN_S=$lt_LN_S
20269
20270# A BSD-compatible nm program.
20271NM=$lt_NM
20272
20273# A symbol stripping program
20274STRIP=$lt_STRIP
20275
20276# Used to examine libraries when file_magic_cmd begins "file"
20277MAGIC_CMD=$MAGIC_CMD
20278
20279# Used on cygwin: DLL creation program.
20280DLLTOOL="$DLLTOOL"
20281
20282# Used on cygwin: object dumper.
20283OBJDUMP="$OBJDUMP"
20284
20285# Used on cygwin: assembler.
20286AS="$AS"
20287
20288# The name of the directory that contains temporary libtool files.
20289objdir=$objdir
20290
20291# How to create reloadable object files.
20292reload_flag=$lt_reload_flag
20293reload_cmds=$lt_reload_cmds
20294
20295# How to pass a linker flag through the compiler.
20296wl=$lt_lt_prog_compiler_wl_RC
20297
20298# Object file suffix (normally "o").
20299objext="$ac_objext"
20300
20301# Old archive suffix (normally "a").
20302libext="$libext"
20303
20304# Shared library suffix (normally ".so").
20305shrext_cmds='$shrext_cmds'
20306
20307# Executable file suffix (normally "").
20308exeext="$exeext"
20309
20310# Additional compiler flags for building library objects.
20311pic_flag=$lt_lt_prog_compiler_pic_RC
20312pic_mode=$pic_mode
20313
20314# What is the maximum length of a command?
20315max_cmd_len=$lt_cv_sys_max_cmd_len
20316
20317# Does compiler simultaneously support -c and -o options?
20318compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20319
20320# Must we lock files when doing compilation?
20321need_locks=$lt_need_locks
20322
20323# Do we need the lib prefix for modules?
20324need_lib_prefix=$need_lib_prefix
20325
20326# Do we need a version for libraries?
20327need_version=$need_version
20328
20329# Whether dlopen is supported.
20330dlopen_support=$enable_dlopen
20331
20332# Whether dlopen of programs is supported.
20333dlopen_self=$enable_dlopen_self
20334
20335# Whether dlopen of statically linked programs is supported.
20336dlopen_self_static=$enable_dlopen_self_static
20337
20338# Compiler flag to prevent dynamic linking.
20339link_static_flag=$lt_lt_prog_compiler_static_RC
20340
20341# Compiler flag to turn off builtin functions.
20342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20343
20344# Compiler flag to allow reflexive dlopens.
20345export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20346
20347# Compiler flag to generate shared objects directly from archives.
20348whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20349
20350# Compiler flag to generate thread-safe objects.
20351thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20352
20353# Library versioning type.
20354version_type=$version_type
20355
20356# Format of library name prefix.
20357libname_spec=$lt_libname_spec
20358
20359# List of archive names. First name is the real one, the rest are links.
20360# The last name is the one that the linker finds with -lNAME.
20361library_names_spec=$lt_library_names_spec
20362
20363# The coded name of the library, if different from the real name.
20364soname_spec=$lt_soname_spec
20365
20366# Commands used to build and install an old-style archive.
20367RANLIB=$lt_RANLIB
20368old_archive_cmds=$lt_old_archive_cmds_RC
20369old_postinstall_cmds=$lt_old_postinstall_cmds
20370old_postuninstall_cmds=$lt_old_postuninstall_cmds
20371
20372# Create an old-style archive from a shared archive.
20373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20374
20375# Create a temporary old-style archive to link instead of a shared archive.
20376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20377
20378# Commands used to build and install a shared archive.
20379archive_cmds=$lt_archive_cmds_RC
20380archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20381postinstall_cmds=$lt_postinstall_cmds
20382postuninstall_cmds=$lt_postuninstall_cmds
20383
20384# Commands used to build a loadable module (assumed same as above if empty)
20385module_cmds=$lt_module_cmds_RC
20386module_expsym_cmds=$lt_module_expsym_cmds_RC
20387
20388# Commands to strip libraries.
20389old_striplib=$lt_old_striplib
20390striplib=$lt_striplib
20391
20392# Dependencies to place before the objects being linked to create a
20393# shared library.
20394predep_objects=$lt_predep_objects_RC
20395
20396# Dependencies to place after the objects being linked to create a
20397# shared library.
20398postdep_objects=$lt_postdep_objects_RC
20399
20400# Dependencies to place before the objects being linked to create a
20401# shared library.
20402predeps=$lt_predeps_RC
20403
20404# Dependencies to place after the objects being linked to create a
20405# shared library.
20406postdeps=$lt_postdeps_RC
20407
20408# The library search path used internally by the compiler when linking
20409# a shared library.
20410compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20411
20412# Method to check whether dependent libraries are shared objects.
20413deplibs_check_method=$lt_deplibs_check_method
20414
20415# Command to use when deplibs_check_method == file_magic.
20416file_magic_cmd=$lt_file_magic_cmd
20417
20418# Flag that allows shared libraries with undefined symbols to be built.
20419allow_undefined_flag=$lt_allow_undefined_flag_RC
20420
20421# Flag that forces no undefined symbols.
20422no_undefined_flag=$lt_no_undefined_flag_RC
20423
20424# Commands used to finish a libtool library installation in a directory.
20425finish_cmds=$lt_finish_cmds
20426
20427# Same as above, but a single script fragment to be evaled but not shown.
20428finish_eval=$lt_finish_eval
20429
20430# Take the output of nm and produce a listing of raw symbols and C names.
20431global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20432
20433# Transform the output of nm in a proper C declaration
20434global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20435
20436# Transform the output of nm in a C name address pair
20437global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20438
20439# This is the shared library runtime path variable.
20440runpath_var=$runpath_var
20441
20442# This is the shared library path variable.
20443shlibpath_var=$shlibpath_var
20444
20445# Is shlibpath searched before the hard-coded library search path?
20446shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20447
20448# How to hardcode a shared library path into an executable.
20449hardcode_action=$hardcode_action_RC
20450
20451# Whether we should hardcode library paths into libraries.
20452hardcode_into_libs=$hardcode_into_libs
20453
20454# Flag to hardcode \$libdir into a binary during linking.
20455# This must work even if \$libdir does not exist.
20456hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20457
20458# If ld is used when linking, flag to hardcode \$libdir into
20459# a binary during linking. This must work even if \$libdir does
20460# not exist.
20461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20462
20463# Whether we need a single -rpath flag with a separated argument.
20464hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20465
20466# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20467# resulting binary.
20468hardcode_direct=$hardcode_direct_RC
20469
20470# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20471# resulting binary.
20472hardcode_minus_L=$hardcode_minus_L_RC
20473
20474# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20475# the resulting binary.
20476hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20477
20478# Set to yes if building a shared library automatically hardcodes DIR into the library
20479# and all subsequent libraries and executables linked against it.
20480hardcode_automatic=$hardcode_automatic_RC
20481
20482# Variables whose values should be saved in libtool wrapper scripts and
20483# restored at relink time.
20484variables_saved_for_relink="$variables_saved_for_relink"
20485
20486# Whether libtool must link a program against all its dependency libraries.
20487link_all_deplibs=$link_all_deplibs_RC
20488
20489# Compile-time system search path for libraries
20490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20491
20492# Run-time system search path for libraries
20493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20494
20495# Fix the shell variable \$srcfile for the compiler.
20496fix_srcfile_path=$lt_fix_srcfile_path
20497
20498# Set to yes if exported symbols are required.
20499always_export_symbols=$always_export_symbols_RC
20500
20501# The commands to list exported symbols.
20502export_symbols_cmds=$lt_export_symbols_cmds_RC
20503
20504# The commands to extract the exported symbol list from a shared archive.
20505extract_expsyms_cmds=$lt_extract_expsyms_cmds
20506
20507# Symbols that should not be listed in the preloaded symbols.
20508exclude_expsyms=$lt_exclude_expsyms_RC
20509
20510# Symbols that must always be exported.
20511include_expsyms=$lt_include_expsyms_RC
20512
20513# ### END LIBTOOL TAG CONFIG: $tagname
20514
20515__EOF__
20516
20517
20518else
20519 # If there is no Makefile yet, we rely on a make rule to execute
20520 # `config.status --recheck' to rerun these tests and create the
20521 # libtool script then.
20522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20523 if test -f "$ltmain_in"; then
20524 test -f Makefile && make "$ltmain"
20525 fi
20526fi
20527
20528
20529ac_ext=c
20530ac_cpp='$CPP $CPPFLAGS'
20531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533ac_compiler_gnu=$ac_cv_c_compiler_gnu
20534
20535CC="$lt_save_CC"
20536
20537 ;;
20538
20539 *)
20540 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20541echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20542 { (exit 1); exit 1; }; }
20543 ;;
20544 esac
20545
20546 # Append the new tag name to the list of available tags.
20547 if test -n "$tagname" ; then
20548 available_tags="$available_tags $tagname"
20549 fi
20550 fi
20551 done
20552 IFS="$lt_save_ifs"
20553
20554 # Now substitute the updated list of available tags.
20555 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20556 mv "${ofile}T" "$ofile"
20557 chmod +x "$ofile"
20558 else
20559 rm -f "${ofile}T"
20560 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20561echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20562 { (exit 1); exit 1; }; }
20563 fi
20564fi
20565
20566
20567
20568# This can be used to rebuild libtool when needed
20569LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20570
20571# Always use our own libtool.
20572LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20573
20574# Prevent multiple expansion
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
20597echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20598LN_S=$as_ln_s
20599if test "$LN_S" = "ln -s"; then
20600 { echo "$as_me:$LINENO: result: yes" >&5
20601echo "${ECHO_T}yes" >&6; }
20602else
20603 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20604echo "${ECHO_T}no, using $LN_S" >&6; }
a8b2ad8d 20605fi
20606
ff3b058a 20607{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20608echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20609set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20610if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
a8b2ad8d 20612else
ff3b058a 20613 cat >conftest.make <<\_ACEOF
20614SHELL = /bin/sh
20615all:
20616 @echo '@@@%%%=$(MAKE)=@@@%%%'
20617_ACEOF
20618# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20619case `${MAKE-make} -f conftest.make 2>/dev/null` in
20620 *@@@%%%=?*=@@@%%%*)
20621 eval ac_cv_prog_make_${ac_make}_set=yes;;
20622 *)
20623 eval ac_cv_prog_make_${ac_make}_set=no;;
20624esac
20625rm -f conftest.make
a8b2ad8d 20626fi
ff3b058a 20627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20628 { echo "$as_me:$LINENO: result: yes" >&5
20629echo "${ECHO_T}yes" >&6; }
20630 SET_MAKE=
20631else
20632 { echo "$as_me:$LINENO: result: no" >&5
20633echo "${ECHO_T}no" >&6; }
20634 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 20635fi
b3076f16 20636
20637if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 20638 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20639echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 20640if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20642else
20643 ac_pattern="Autoconf.*'x'"
20644 cat >conftest.$ac_ext <<_ACEOF
20645/* confdefs.h. */
20646_ACEOF
20647cat confdefs.h >>conftest.$ac_ext
20648cat >>conftest.$ac_ext <<_ACEOF
20649/* end confdefs.h. */
20650#include <sgtty.h>
20651Autoconf TIOCGETP
20652_ACEOF
20653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20654 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20655 ac_cv_prog_gcc_traditional=yes
20656else
20657 ac_cv_prog_gcc_traditional=no
20658fi
20659rm -f conftest*
20660
20661
20662 if test $ac_cv_prog_gcc_traditional = no; then
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669#include <termio.h>
20670Autoconf TCGETA
20671_ACEOF
20672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20673 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20674 ac_cv_prog_gcc_traditional=yes
20675fi
20676rm -f conftest*
20677
20678 fi
20679fi
a8b2ad8d 20680{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20681echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 20682 if test $ac_cv_prog_gcc_traditional = yes; then
20683 CC="$CC -traditional"
20684 fi
20685fi
20686
5b1166fd 20687# Extract the first word of "gmake", so it can be a program name with args.
20688set dummy gmake; ac_word=$2
a8b2ad8d 20689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 20691if test "${ac_cv_prog_MAKER+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693else
20694 if test -n "$MAKER"; then
20695 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
20696else
20697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20698for as_dir in $PATH
20699do
20700 IFS=$as_save_IFS
20701 test -z "$as_dir" && as_dir=.
20702 for ac_exec_ext in '' $ac_executable_extensions; do
ff3b058a 20703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 20704 ac_cv_prog_MAKER="gmake"
20705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20706 break 2
20707 fi
20708done
20709done
a8b2ad8d 20710IFS=$as_save_IFS
5b1166fd 20711
20712 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
20713fi
20714fi
20715MAKER=$ac_cv_prog_MAKER
20716if test -n "$MAKER"; then
a8b2ad8d 20717 { echo "$as_me:$LINENO: result: $MAKER" >&5
20718echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 20719else
a8b2ad8d 20720 { echo "$as_me:$LINENO: result: no" >&5
20721echo "${ECHO_T}no" >&6; }
5b1166fd 20722fi
20723
b3076f16 20724
a8b2ad8d 20725
b3076f16 20726case $target in
20727 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
20728 ANSI_SRC=""
20729 ;;
20730 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
20731 ANSI_SRC=""
b3076f16 20732 ;;
20733 *-solaris*)
20734 EXTRA_DEFINE="-D__SOLARIS__"
20735 ANSI_SRC="-fno-builtin"
20736 ;;
20737 *-cygwin)
20738 ANSI_SRC="-fno-builtin"
20739 ;;
20740 *-linux*)
20741 EXTRA_DEFINE="-D_GNU_SOURCE"
20742 ANSI_SRC=""
20743 ;;
20744 *)
20745 ANSI_SRC=""
20746 ;;
20747esac
20748CFLAGS="$CFLAGS $EXTRA_DEFINE"
20749
20750
a8b2ad8d 20751{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20752echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 20753if test "${ac_cv_lib_socket_socket+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755else
20756 ac_check_lib_save_LIBS=$LIBS
20757LIBS="-lsocket $LIBS"
20758cat >conftest.$ac_ext <<_ACEOF
20759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
20764
a8b2ad8d 20765/* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
b3076f16 20768#ifdef __cplusplus
20769extern "C"
20770#endif
b3076f16 20771char socket ();
20772int
20773main ()
20774{
a8b2ad8d 20775return socket ();
b3076f16 20776 ;
20777 return 0;
20778}
20779_ACEOF
20780rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 20781if { (ac_try="$ac_link"
20782case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785esac
20786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_link") 2>conftest.er1
b3076f16 20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext &&
20797 $as_test_x conftest$ac_exeext; then
b3076f16 20798 ac_cv_lib_socket_socket=yes
20799else
20800 echo "$as_me: failed program was:" >&5
20801sed 's/^/| /' conftest.$ac_ext >&5
20802
a8b2ad8d 20803 ac_cv_lib_socket_socket=no
b3076f16 20804fi
a8b2ad8d 20805
ff3b058a 20806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 20807 conftest$ac_exeext conftest.$ac_ext
20808LIBS=$ac_check_lib_save_LIBS
20809fi
a8b2ad8d 20810{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20811echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 20812if test $ac_cv_lib_socket_socket = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814#define HAVE_LIBSOCKET 1
20815_ACEOF
20816
20817 LIBS="-lsocket $LIBS"
20818
20819fi
20820
20821
a8b2ad8d 20822{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20823echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 20824if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20826else
20827 ac_check_lib_save_LIBS=$LIBS
20828LIBS="-lnsl $LIBS"
20829cat >conftest.$ac_ext <<_ACEOF
20830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
20835
a8b2ad8d 20836/* Override any GCC internal prototype to avoid an error.
20837 Use char because int might match the return type of a GCC
20838 builtin and then its argument prototype would still apply. */
b3076f16 20839#ifdef __cplusplus
20840extern "C"
20841#endif
b3076f16 20842char gethostbyname ();
20843int
20844main ()
20845{
a8b2ad8d 20846return gethostbyname ();
b3076f16 20847 ;
20848 return 0;
20849}
20850_ACEOF
20851rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 20852if { (ac_try="$ac_link"
20853case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20856esac
20857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_link") 2>conftest.er1
b3076f16 20859 ac_status=$?
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 20864 (exit $ac_status); } && {
20865 test -z "$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 } && test -s conftest$ac_exeext &&
20868 $as_test_x conftest$ac_exeext; then
b3076f16 20869 ac_cv_lib_nsl_gethostbyname=yes
20870else
20871 echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
a8b2ad8d 20874 ac_cv_lib_nsl_gethostbyname=no
b3076f16 20875fi
a8b2ad8d 20876
ff3b058a 20877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 20878 conftest$ac_exeext conftest.$ac_ext
20879LIBS=$ac_check_lib_save_LIBS
20880fi
a8b2ad8d 20881{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20882echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 20883if test $ac_cv_lib_nsl_gethostbyname = yes; then
20884 cat >>confdefs.h <<_ACEOF
20885#define HAVE_LIBNSL 1
20886_ACEOF
20887
20888 LIBS="-lnsl $LIBS"
20889
20890fi
20891
20892
a8b2ad8d 20893{ echo "$as_me:$LINENO: checking for main in -lm" >&5
20894echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 20895if test "${ac_cv_lib_m_main+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897else
20898 ac_check_lib_save_LIBS=$LIBS
20899LIBS="-lm $LIBS"
20900cat >conftest.$ac_ext <<_ACEOF
20901/* confdefs.h. */
20902_ACEOF
20903cat confdefs.h >>conftest.$ac_ext
20904cat >>conftest.$ac_ext <<_ACEOF
20905/* end confdefs.h. */
20906
20907
20908int
20909main ()
20910{
a8b2ad8d 20911return main ();
b3076f16 20912 ;
20913 return 0;
20914}
20915_ACEOF
20916rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 20917if { (ac_try="$ac_link"
20918case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921esac
20922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
b3076f16 20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
b3076f16 20934 ac_cv_lib_m_main=yes
20935else
20936 echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
a8b2ad8d 20939 ac_cv_lib_m_main=no
b3076f16 20940fi
a8b2ad8d 20941
ff3b058a 20942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 20943 conftest$ac_exeext conftest.$ac_ext
20944LIBS=$ac_check_lib_save_LIBS
20945fi
a8b2ad8d 20946{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
20947echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 20948if test $ac_cv_lib_m_main = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950#define HAVE_LIBM 1
20951_ACEOF
20952
20953 LIBS="-lm $LIBS"
20954
20955fi
20956
20957
a8b2ad8d 20958{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
20959echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 20960if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962else
20963 ac_check_lib_save_LIBS=$LIBS
20964LIBS="-lGeoIP $LIBS"
20965cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
20971
a8b2ad8d 20972/* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
21f6caee 20975#ifdef __cplusplus
20976extern "C"
20977#endif
21f6caee 20978char GeoIP_open ();
20979int
20980main ()
20981{
a8b2ad8d 20982return GeoIP_open ();
21f6caee 20983 ;
20984 return 0;
20985}
20986_ACEOF
20987rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 20988if { (ac_try="$ac_link"
20989case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992esac
20993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_link") 2>conftest.er1
21f6caee 20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest$ac_exeext &&
21004 $as_test_x conftest$ac_exeext; then
21f6caee 21005 ac_cv_lib_GeoIP_GeoIP_open=yes
21006else
21007 echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
a8b2ad8d 21010 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 21011fi
a8b2ad8d 21012
ff3b058a 21013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21f6caee 21014 conftest$ac_exeext conftest.$ac_ext
21015LIBS=$ac_check_lib_save_LIBS
21016fi
a8b2ad8d 21017{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
21018echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 21019if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021#define HAVE_LIBGEOIP 1
21022_ACEOF
21023
21024 LIBS="-lGeoIP $LIBS"
21025
21026fi
21027
21028
a8b2ad8d 21029{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21030echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 21031if test "${ac_cv_header_stdc+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21033else
21034 cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h. */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h. */
21040#include <stdlib.h>
21041#include <stdarg.h>
21042#include <string.h>
21043#include <float.h>
21044
21045int
21046main ()
21047{
21048
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053rm -f conftest.$ac_objext
a8b2ad8d 21054if { (ac_try="$ac_compile"
21055case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058esac
21059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_compile") 2>conftest.er1
b3076f16 21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest.$ac_objext; then
b3076f16 21070 ac_cv_header_stdc=yes
21071else
21072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
a8b2ad8d 21075 ac_cv_header_stdc=no
b3076f16 21076fi
a8b2ad8d 21077
21078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 21079
21080if test $ac_cv_header_stdc = yes; then
21081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21082 cat >conftest.$ac_ext <<_ACEOF
21083/* confdefs.h. */
21084_ACEOF
21085cat confdefs.h >>conftest.$ac_ext
21086cat >>conftest.$ac_ext <<_ACEOF
21087/* end confdefs.h. */
21088#include <string.h>
21089
21090_ACEOF
21091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21092 $EGREP "memchr" >/dev/null 2>&1; then
21093 :
21094else
21095 ac_cv_header_stdc=no
21096fi
21097rm -f conftest*
21098
21099fi
21100
21101if test $ac_cv_header_stdc = yes; then
21102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21103 cat >conftest.$ac_ext <<_ACEOF
21104/* confdefs.h. */
21105_ACEOF
21106cat confdefs.h >>conftest.$ac_ext
21107cat >>conftest.$ac_ext <<_ACEOF
21108/* end confdefs.h. */
21109#include <stdlib.h>
21110
21111_ACEOF
21112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21113 $EGREP "free" >/dev/null 2>&1; then
21114 :
21115else
21116 ac_cv_header_stdc=no
21117fi
21118rm -f conftest*
21119
21120fi
21121
21122if test $ac_cv_header_stdc = yes; then
21123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21124 if test "$cross_compiling" = yes; then
21125 :
21126else
21127 cat >conftest.$ac_ext <<_ACEOF
21128/* confdefs.h. */
21129_ACEOF
21130cat confdefs.h >>conftest.$ac_ext
21131cat >>conftest.$ac_ext <<_ACEOF
21132/* end confdefs.h. */
21133#include <ctype.h>
a8b2ad8d 21134#include <stdlib.h>
b3076f16 21135#if ((' ' & 0x0FF) == 0x020)
21136# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21137# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21138#else
21139# define ISLOWER(c) \
21140 (('a' <= (c) && (c) <= 'i') \
21141 || ('j' <= (c) && (c) <= 'r') \
21142 || ('s' <= (c) && (c) <= 'z'))
21143# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21144#endif
21145
21146#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21147int
21148main ()
21149{
21150 int i;
21151 for (i = 0; i < 256; i++)
21152 if (XOR (islower (i), ISLOWER (i))
21153 || toupper (i) != TOUPPER (i))
a8b2ad8d 21154 return 2;
21155 return 0;
b3076f16 21156}
21157_ACEOF
21158rm -f conftest$ac_exeext
a8b2ad8d 21159if { (ac_try="$ac_link"
21160case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21163esac
21164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_link") 2>&5
b3076f16 21166 ac_status=$?
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172esac
21173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
b3076f16 21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 :
21179else
21180 echo "$as_me: program exited with status $ac_status" >&5
21181echo "$as_me: failed program was:" >&5
21182sed 's/^/| /' conftest.$ac_ext >&5
21183
21184( exit $ac_status )
21185ac_cv_header_stdc=no
21186fi
a8b2ad8d 21187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 21188fi
a8b2ad8d 21189
21190
b3076f16 21191fi
21192fi
a8b2ad8d 21193{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21194echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 21195if test $ac_cv_header_stdc = yes; then
21196
21197cat >>confdefs.h <<\_ACEOF
21198#define STDC_HEADERS 1
21199_ACEOF
21200
21201fi
21202
21203
a8b2ad8d 21204{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21205echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 21206if test "${ac_cv_header_time+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21208else
21209 cat >conftest.$ac_ext <<_ACEOF
21210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
21215#include <sys/types.h>
21216#include <sys/time.h>
21217#include <time.h>
21218
21219int
21220main ()
21221{
21222if ((struct tm *) 0)
21223return 0;
21224 ;
21225 return 0;
21226}
21227_ACEOF
21228rm -f conftest.$ac_objext
a8b2ad8d 21229if { (ac_try="$ac_compile"
21230case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21233esac
21234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_compile") 2>conftest.er1
b3076f16 21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest.$ac_objext; then
b3076f16 21245 ac_cv_header_time=yes
21246else
21247 echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
a8b2ad8d 21250 ac_cv_header_time=no
b3076f16 21251fi
a8b2ad8d 21252
21253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 21254fi
a8b2ad8d 21255{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21256echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 21257if test $ac_cv_header_time = yes; then
21258
21259cat >>confdefs.h <<\_ACEOF
21260#define TIME_WITH_SYS_TIME 1
21261_ACEOF
21262
21263fi
21264
a8b2ad8d 21265{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21266echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 21267if test "${ac_cv_struct_tm+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21269else
21270 cat >conftest.$ac_ext <<_ACEOF
21271/* confdefs.h. */
21272_ACEOF
21273cat confdefs.h >>conftest.$ac_ext
21274cat >>conftest.$ac_ext <<_ACEOF
21275/* end confdefs.h. */
21276#include <sys/types.h>
21277#include <time.h>
21278
21279int
21280main ()
21281{
ff3b058a 21282struct tm tm;
21283 int *p = &tm.tm_sec;
21284 return !p;
21285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest.$ac_objext
21290if { (ac_try="$ac_compile"
21291case "(($ac_try" in
a8b2ad8d 21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294esac
21295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 21296 (eval "$ac_compile") 2>conftest.er1
35305a49 21297 ac_status=$?
ff3b058a 21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
35305a49 21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_cv_struct_tm=time.h
35305a49 21307else
21308 echo "$as_me: failed program was:" >&5
21309sed 's/^/| /' conftest.$ac_ext >&5
21310
ff3b058a 21311 ac_cv_struct_tm=sys/time.h
35305a49 21312fi
a8b2ad8d 21313
21314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 21315fi
ff3b058a 21316{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21317echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21318if test $ac_cv_struct_tm = sys/time.h; then
21319
21320cat >>confdefs.h <<\_ACEOF
21321#define TM_IN_SYS_TIME 1
35305a49 21322_ACEOF
21323
21324fi
21325
35305a49 21326
21327
b3076f16 21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21f6caee 21348
21349
ff3b058a 21350
21351
21352
21353for ac_header in GeoIP.h GeoIPCity.h tgmath.h netdb.h fcntl.h malloc.h netdb.h arpa/inet.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h dirent.h sys/epoll.h
b3076f16 21354do
21355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 21356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361fi
a8b2ad8d 21362ac_res=`eval echo '${'$as_ac_Header'}'`
21363 { echo "$as_me:$LINENO: result: $ac_res" >&5
21364echo "${ECHO_T}$ac_res" >&6; }
b3076f16 21365else
21366 # Is the header compilable?
a8b2ad8d 21367{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 21369cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h. */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h. */
21375$ac_includes_default
21376#include <$ac_header>
21377_ACEOF
21378rm -f conftest.$ac_objext
a8b2ad8d 21379if { (ac_try="$ac_compile"
21380case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21383esac
21384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_compile") 2>conftest.er1
b3076f16 21386 ac_status=$?
21387 grep -v '^ *+' conftest.er1 >conftest.err
21388 rm -f conftest.er1
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21391 (exit $ac_status); } && {
21392 test -z "$ac_c_werror_flag" ||
21393 test ! -s conftest.err
21394 } && test -s conftest.$ac_objext; then
b3076f16 21395 ac_header_compiler=yes
21396else
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
a8b2ad8d 21400 ac_header_compiler=no
b3076f16 21401fi
a8b2ad8d 21402
21403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21405echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 21406
21407# Is the header present?
a8b2ad8d 21408{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 21410cat >conftest.$ac_ext <<_ACEOF
21411/* confdefs.h. */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h. */
21416#include <$ac_header>
21417_ACEOF
a8b2ad8d 21418if { (ac_try="$ac_cpp conftest.$ac_ext"
21419case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21422esac
21423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 21425 ac_status=$?
21426 grep -v '^ *+' conftest.er1 >conftest.err
21427 rm -f conftest.er1
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21430 (exit $ac_status); } >/dev/null && {
21431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21432 test ! -s conftest.err
21433 }; then
b3076f16 21434 ac_header_preproc=yes
21435else
21436 echo "$as_me: failed program was:" >&5
21437sed 's/^/| /' conftest.$ac_ext >&5
21438
21439 ac_header_preproc=no
21440fi
a8b2ad8d 21441
b3076f16 21442rm -f conftest.err conftest.$ac_ext
a8b2ad8d 21443{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21444echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 21445
21446# So? What about this header?
21447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21448 yes:no: )
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21453 ac_header_preproc=yes
21454 ;;
21455 no:yes:* )
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 21468 ( cat <<\_ASBOX
63c95a47 21469## -------------------------------------------------- ##
21470## Report this to evilnet-devel@lists.sourceforge.net ##
21471## -------------------------------------------------- ##
b3076f16 21472_ASBOX
a8b2ad8d 21473 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 21474 ;;
21475esac
a8b2ad8d 21476{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480else
21481 eval "$as_ac_Header=\$ac_header_preproc"
21482fi
a8b2ad8d 21483ac_res=`eval echo '${'$as_ac_Header'}'`
21484 { echo "$as_me:$LINENO: result: $ac_res" >&5
21485echo "${ECHO_T}$ac_res" >&6; }
b3076f16 21486
21487fi
21488if test `eval echo '${'$as_ac_Header'}'` = yes; then
21489 cat >>confdefs.h <<_ACEOF
21490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21491_ACEOF
21492
21493fi
21494
21495done
21496
21497
ff3b058a 21498
a8b2ad8d 21499{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21500echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 21501if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503else
21504 cat >conftest.$ac_ext <<_ACEOF
21505/* confdefs.h. */
21506_ACEOF
21507cat confdefs.h >>conftest.$ac_ext
21508cat >>conftest.$ac_ext <<_ACEOF
21509/* end confdefs.h. */
2f61d1d7 21510#include <sys/types.h>
21511#include <sys/socket.h>
b3076f16 21512
21513int
21514main ()
21515{
2f61d1d7 21516static struct sockaddr ac_aggr;
21517if (ac_aggr.sa_len)
b3076f16 21518return 0;
21519 ;
21520 return 0;
21521}
21522_ACEOF
21523rm -f conftest.$ac_objext
a8b2ad8d 21524if { (ac_try="$ac_compile"
21525case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528esac
21529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
b3076f16 21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
2f61d1d7 21540 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 21541else
21542 echo "$as_me: failed program was:" >&5
21543sed 's/^/| /' conftest.$ac_ext >&5
21544
a8b2ad8d 21545 cat >conftest.$ac_ext <<_ACEOF
b3076f16 21546/* confdefs.h. */
21547_ACEOF
21548cat confdefs.h >>conftest.$ac_ext
21549cat >>conftest.$ac_ext <<_ACEOF
21550/* end confdefs.h. */
2f61d1d7 21551#include <sys/types.h>
21552#include <sys/socket.h>
b3076f16 21553
21554int
21555main ()
21556{
2f61d1d7 21557static struct sockaddr ac_aggr;
21558if (sizeof ac_aggr.sa_len)
b3076f16 21559return 0;
21560 ;
21561 return 0;
21562}
21563_ACEOF
21564rm -f conftest.$ac_objext
a8b2ad8d 21565if { (ac_try="$ac_compile"
21566case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569esac
21570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_compile") 2>conftest.er1
b3076f16 21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest.$ac_objext; then
2f61d1d7 21581 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 21582else
21583 echo "$as_me: failed program was:" >&5
21584sed 's/^/| /' conftest.$ac_ext >&5
21585
a8b2ad8d 21586 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 21587fi
a8b2ad8d 21588
21589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 21590fi
a8b2ad8d 21591
21592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 21593fi
a8b2ad8d 21594{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
21595echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 21596if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 21597
21598cat >>confdefs.h <<\_ACEOF
2f61d1d7 21599#define HAVE_SOCKADDR_SA_LEN
21600_ACEOF
21601
21602fi
21603
a8b2ad8d 21604{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
21605echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 21606if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608else
21609 cat >conftest.$ac_ext <<_ACEOF
21610/* confdefs.h. */
21611_ACEOF
21612cat confdefs.h >>conftest.$ac_ext
21613cat >>conftest.$ac_ext <<_ACEOF
21614/* end confdefs.h. */
21615#include <sys/types.h>
21616#include <sys/socket.h>
21617#include <netdb.h>
21618
21619int
21620main ()
21621{
21622static struct addrinfo ac_aggr;
21623if (ac_aggr.ai_flags)
21624return 0;
21625 ;
21626 return 0;
21627}
21628_ACEOF
21629rm -f conftest.$ac_objext
a8b2ad8d 21630if { (ac_try="$ac_compile"
21631case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634esac
21635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 21637 ac_status=$?
21638 grep -v '^ *+' conftest.er1 >conftest.err
21639 rm -f conftest.er1
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
2f61d1d7 21646 ac_cv_member_struct_addrinfo_ai_flags=yes
21647else
21648 echo "$as_me: failed program was:" >&5
21649sed 's/^/| /' conftest.$ac_ext >&5
21650
a8b2ad8d 21651 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 21652/* confdefs.h. */
21653_ACEOF
21654cat confdefs.h >>conftest.$ac_ext
21655cat >>conftest.$ac_ext <<_ACEOF
21656/* end confdefs.h. */
21657#include <sys/types.h>
21658#include <sys/socket.h>
21659#include <netdb.h>
21660
21661int
21662main ()
21663{
21664static struct addrinfo ac_aggr;
21665if (sizeof ac_aggr.ai_flags)
21666return 0;
21667 ;
21668 return 0;
21669}
b3076f16 21670_ACEOF
2f61d1d7 21671rm -f conftest.$ac_objext
a8b2ad8d 21672if { (ac_try="$ac_compile"
21673case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676esac
21677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.$ac_objext; then
2f61d1d7 21688 ac_cv_member_struct_addrinfo_ai_flags=yes
21689else
21690 echo "$as_me: failed program was:" >&5
21691sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 21692
a8b2ad8d 21693 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 21694fi
a8b2ad8d 21695
21696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 21697fi
a8b2ad8d 21698
21699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 21700fi
a8b2ad8d 21701{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
21702echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 21703if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
21704
21705cat >>confdefs.h <<\_ACEOF
21706#define HAVE_STRUCT_ADDRINFO
21707_ACEOF
b3076f16 21708
2f61d1d7 21709fi
b3076f16 21710
21711
21f6caee 21712
b3076f16 21713
b3076f16 21714
b3076f16 21715
b3076f16 21716
b3076f16 21717
b3076f16 21718
a8b2ad8d 21719
b3076f16 21720
b3076f16 21721
b3076f16 21722
ff3b058a 21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736for ac_func in freeaddrinfo getaddrinfo gai_strerror getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create select gettimeofday times GetProcessTimes
b3076f16 21737do
21738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 21739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743else
21744 cat >conftest.$ac_ext <<_ACEOF
21745/* confdefs.h. */
21746_ACEOF
21747cat confdefs.h >>conftest.$ac_ext
21748cat >>conftest.$ac_ext <<_ACEOF
21749/* end confdefs.h. */
21750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21752#define $ac_func innocuous_$ac_func
21753
21754/* System header to define __stub macros and hopefully few prototypes,
21755 which can conflict with char $ac_func (); below.
21756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21757 <limits.h> exists even on freestanding compilers. */
21758
21759#ifdef __STDC__
21760# include <limits.h>
21761#else
21762# include <assert.h>
21763#endif
21764
21765#undef $ac_func
21766
a8b2ad8d 21767/* Override any GCC internal prototype to avoid an error.
21768 Use char because int might match the return type of a GCC
21769 builtin and then its argument prototype would still apply. */
b3076f16 21770#ifdef __cplusplus
21771extern "C"
b3076f16 21772#endif
b3076f16 21773char $ac_func ();
21774/* The GNU C library defines this for functions which it implements
21775 to always fail with ENOSYS. Some functions are actually named
21776 something starting with __ and the normal name is an alias. */
a8b2ad8d 21777#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 21778choke me
b3076f16 21779#endif
21780
21781int
21782main ()
21783{
a8b2ad8d 21784return $ac_func ();
b3076f16 21785 ;
21786 return 0;
ff3b058a 21787}
21788_ACEOF
21789rm -f conftest.$ac_objext conftest$ac_exeext
21790if { (ac_try="$ac_link"
21791case "(($ac_try" in
a8b2ad8d 21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21794esac
21795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 21796 (eval "$ac_link") 2>conftest.er1
b3076f16 21797 ac_status=$?
ff3b058a 21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
b3076f16 21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest$ac_exeext &&
21806 $as_test_x conftest$ac_exeext; then
b3076f16 21807 eval "$as_ac_var=yes"
21808else
21809 echo "$as_me: failed program was:" >&5
21810sed 's/^/| /' conftest.$ac_ext >&5
21811
a8b2ad8d 21812 eval "$as_ac_var=no"
b3076f16 21813fi
a8b2ad8d 21814
ff3b058a 21815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 21816 conftest$ac_exeext conftest.$ac_ext
21817fi
a8b2ad8d 21818ac_res=`eval echo '${'$as_ac_var'}'`
21819 { echo "$as_me:$LINENO: result: $ac_res" >&5
21820echo "${ECHO_T}$ac_res" >&6; }
b3076f16 21821if test `eval echo '${'$as_ac_var'}'` = yes; then
21822 cat >>confdefs.h <<_ACEOF
21823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21824_ACEOF
21825
b3076f16 21826fi
21827done
21828
b3076f16 21829
ff3b058a 21830if test $ac_cv_func_gettimeofday = no; then
b3076f16 21831
ff3b058a 21832for ac_func in ftime
b3076f16 21833do
21834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 21835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839else
21840 cat >conftest.$ac_ext <<_ACEOF
21841/* confdefs.h. */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h. */
21846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21848#define $ac_func innocuous_$ac_func
21849
21850/* System header to define __stub macros and hopefully few prototypes,
21851 which can conflict with char $ac_func (); below.
21852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21853 <limits.h> exists even on freestanding compilers. */
21854
21855#ifdef __STDC__
21856# include <limits.h>
21857#else
21858# include <assert.h>
21859#endif
21860
21861#undef $ac_func
21862
a8b2ad8d 21863/* Override any GCC internal prototype to avoid an error.
21864 Use char because int might match the return type of a GCC
21865 builtin and then its argument prototype would still apply. */
b3076f16 21866#ifdef __cplusplus
21867extern "C"
b3076f16 21868#endif
b3076f16 21869char $ac_func ();
21870/* The GNU C library defines this for functions which it implements
21871 to always fail with ENOSYS. Some functions are actually named
21872 something starting with __ and the normal name is an alias. */
a8b2ad8d 21873#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 21874choke me
b3076f16 21875#endif
21876
21877int
21878main ()
21879{
a8b2ad8d 21880return $ac_func ();
b3076f16 21881 ;
21882 return 0;
21883}
21884_ACEOF
21885rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 21886if { (ac_try="$ac_link"
21887case "(($ac_try" in
21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21890esac
21891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_link") 2>conftest.er1
b3076f16 21893 ac_status=$?
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest$ac_exeext &&
21902 $as_test_x conftest$ac_exeext; then
b3076f16 21903 eval "$as_ac_var=yes"
21904else
21905 echo "$as_me: failed program was:" >&5
21906sed 's/^/| /' conftest.$ac_ext >&5
21907
a8b2ad8d 21908 eval "$as_ac_var=no"
b3076f16 21909fi
a8b2ad8d 21910
ff3b058a 21911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 21912 conftest$ac_exeext conftest.$ac_ext
21913fi
a8b2ad8d 21914ac_res=`eval echo '${'$as_ac_var'}'`
21915 { echo "$as_me:$LINENO: result: $ac_res" >&5
21916echo "${ECHO_T}$ac_res" >&6; }
b3076f16 21917if test `eval echo '${'$as_ac_var'}'` = yes; then
21918 cat >>confdefs.h <<_ACEOF
21919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21920_ACEOF
21921
ff3b058a 21922else
21923 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
21924echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
21925 { (exit 1); exit 1; }; }
b3076f16 21926fi
21927done
21928
ff3b058a 21929fi
b3076f16 21930
21931
21932
21933
21934
21935
ff3b058a 21936for ac_func in socket strcspn strspn strtod strtoul
b3076f16 21937do
21938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 21939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943else
21944 cat >conftest.$ac_ext <<_ACEOF
21945/* confdefs.h. */
21946_ACEOF
21947cat confdefs.h >>conftest.$ac_ext
21948cat >>conftest.$ac_ext <<_ACEOF
21949/* end confdefs.h. */
21950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21952#define $ac_func innocuous_$ac_func
21953
21954/* System header to define __stub macros and hopefully few prototypes,
21955 which can conflict with char $ac_func (); below.
21956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21957 <limits.h> exists even on freestanding compilers. */
21958
21959#ifdef __STDC__
21960# include <limits.h>
21961#else
21962# include <assert.h>
21963#endif
21964
21965#undef $ac_func
21966
a8b2ad8d 21967/* Override any GCC internal prototype to avoid an error.
21968 Use char because int might match the return type of a GCC
21969 builtin and then its argument prototype would still apply. */
b3076f16 21970#ifdef __cplusplus
21971extern "C"
b3076f16 21972#endif
b3076f16 21973char $ac_func ();
21974/* The GNU C library defines this for functions which it implements
21975 to always fail with ENOSYS. Some functions are actually named
21976 something starting with __ and the normal name is an alias. */
a8b2ad8d 21977#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 21978choke me
b3076f16 21979#endif
21980
21981int
21982main ()
21983{
a8b2ad8d 21984return $ac_func ();
b3076f16 21985 ;
21986 return 0;
21987}
21988_ACEOF
21989rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 21990if { (ac_try="$ac_link"
21991case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994esac
21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_link") 2>conftest.er1
b3076f16 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
ff3b058a 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
b3076f16 22007 eval "$as_ac_var=yes"
22008else
22009 echo "$as_me: failed program was:" >&5
22010sed 's/^/| /' conftest.$ac_ext >&5
22011
a8b2ad8d 22012 eval "$as_ac_var=no"
b3076f16 22013fi
a8b2ad8d 22014
ff3b058a 22015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 22016 conftest$ac_exeext conftest.$ac_ext
22017fi
a8b2ad8d 22018ac_res=`eval echo '${'$as_ac_var'}'`
22019 { echo "$as_me:$LINENO: result: $ac_res" >&5
22020echo "${ECHO_T}$ac_res" >&6; }
b3076f16 22021if test `eval echo '${'$as_ac_var'}'` = yes; then
22022 cat >>confdefs.h <<_ACEOF
22023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22024_ACEOF
22025
22026else
2f61d1d7 22027 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
22028echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 22029 { (exit 1); exit 1; }; }
22030fi
22031done
22032
22033
22034# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22035# for constant arguments. Useless!
a8b2ad8d 22036{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
22037echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 22038if test "${ac_cv_working_alloca_h+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040else
22041 cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
22047#include <alloca.h>
22048int
22049main ()
22050{
22051char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 22052 if (p) return 0;
b3076f16 22053 ;
22054 return 0;
22055}
22056_ACEOF
22057rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 22058if { (ac_try="$ac_link"
22059case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062esac
22063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_link") 2>conftest.er1
b3076f16 22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22070 (exit $ac_status); } && {
22071 test -z "$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 } && test -s conftest$ac_exeext &&
22074 $as_test_x conftest$ac_exeext; then
b3076f16 22075 ac_cv_working_alloca_h=yes
22076else
22077 echo "$as_me: failed program was:" >&5
22078sed 's/^/| /' conftest.$ac_ext >&5
22079
a8b2ad8d 22080 ac_cv_working_alloca_h=no
b3076f16 22081fi
a8b2ad8d 22082
ff3b058a 22083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 22084 conftest$ac_exeext conftest.$ac_ext
22085fi
a8b2ad8d 22086{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22087echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 22088if test $ac_cv_working_alloca_h = yes; then
22089
22090cat >>confdefs.h <<\_ACEOF
22091#define HAVE_ALLOCA_H 1
22092_ACEOF
22093
22094fi
22095
a8b2ad8d 22096{ echo "$as_me:$LINENO: checking for alloca" >&5
22097echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 22098if test "${ac_cv_func_alloca_works+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22100else
22101 cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h. */
22107#ifdef __GNUC__
22108# define alloca __builtin_alloca
22109#else
22110# ifdef _MSC_VER
22111# include <malloc.h>
22112# define alloca _alloca
22113# else
ff3b058a 22114# ifdef HAVE_ALLOCA_H
b3076f16 22115# include <alloca.h>
22116# else
22117# ifdef _AIX
22118 #pragma alloca
22119# else
22120# ifndef alloca /* predefined by HP cc +Olibcalls */
22121char *alloca ();
22122# endif
22123# endif
22124# endif
22125# endif
22126#endif
22127
22128int
22129main ()
22130{
22131char *p = (char *) alloca (1);
a8b2ad8d 22132 if (p) return 0;
b3076f16 22133 ;
22134 return 0;
22135}
22136_ACEOF
22137rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 22138if { (ac_try="$ac_link"
22139case "(($ac_try" in
22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141 *) ac_try_echo=$ac_try;;
22142esac
22143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144 (eval "$ac_link") 2>conftest.er1
b3076f16 22145 ac_status=$?
22146 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1
22148 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22150 (exit $ac_status); } && {
22151 test -z "$ac_c_werror_flag" ||
22152 test ! -s conftest.err
22153 } && test -s conftest$ac_exeext &&
22154 $as_test_x conftest$ac_exeext; then
b3076f16 22155 ac_cv_func_alloca_works=yes
22156else
22157 echo "$as_me: failed program was:" >&5
22158sed 's/^/| /' conftest.$ac_ext >&5
22159
a8b2ad8d 22160 ac_cv_func_alloca_works=no
b3076f16 22161fi
a8b2ad8d 22162
ff3b058a 22163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 22164 conftest$ac_exeext conftest.$ac_ext
22165fi
a8b2ad8d 22166{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22167echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 22168
22169if test $ac_cv_func_alloca_works = yes; then
22170
22171cat >>confdefs.h <<\_ACEOF
22172#define HAVE_ALLOCA 1
22173_ACEOF
22174
22175else
22176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22177# that cause trouble. Some versions do not even contain alloca or
22178# contain a buggy version. If you still want to use their alloca,
22179# use ar to extract alloca.o from them instead of compiling alloca.c.
22180
a8b2ad8d 22181ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 22182
22183cat >>confdefs.h <<\_ACEOF
22184#define C_ALLOCA 1
22185_ACEOF
22186
22187
a8b2ad8d 22188{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22189echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 22190if test "${ac_cv_os_cray+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22192else
22193 cat >conftest.$ac_ext <<_ACEOF
22194/* confdefs.h. */
22195_ACEOF
22196cat confdefs.h >>conftest.$ac_ext
22197cat >>conftest.$ac_ext <<_ACEOF
22198/* end confdefs.h. */
a8b2ad8d 22199#if defined CRAY && ! defined CRAY2
b3076f16 22200webecray
22201#else
22202wenotbecray
22203#endif
22204
22205_ACEOF
22206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22207 $EGREP "webecray" >/dev/null 2>&1; then
22208 ac_cv_os_cray=yes
22209else
22210 ac_cv_os_cray=no
22211fi
22212rm -f conftest*
22213
22214fi
a8b2ad8d 22215{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22216echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 22217if test $ac_cv_os_cray = yes; then
22218 for ac_func in _getb67 GETB67 getb67; do
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 22220{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22224else
22225 cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233#define $ac_func innocuous_$ac_func
22234
22235/* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
22239
22240#ifdef __STDC__
22241# include <limits.h>
22242#else
22243# include <assert.h>
22244#endif
22245
22246#undef $ac_func
22247
a8b2ad8d 22248/* Override any GCC internal prototype to avoid an error.
22249 Use char because int might match the return type of a GCC
22250 builtin and then its argument prototype would still apply. */
b3076f16 22251#ifdef __cplusplus
22252extern "C"
b3076f16 22253#endif
b3076f16 22254char $ac_func ();
22255/* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
a8b2ad8d 22258#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 22259choke me
b3076f16 22260#endif
22261
22262int
22263main ()
22264{
a8b2ad8d 22265return $ac_func ();
b3076f16 22266 ;
22267 return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 22271if { (ac_try="$ac_link"
22272case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275esac
22276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_link") 2>conftest.er1
b3076f16 22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext &&
22287 $as_test_x conftest$ac_exeext; then
b3076f16 22288 eval "$as_ac_var=yes"
22289else
22290 echo "$as_me: failed program was:" >&5
22291sed 's/^/| /' conftest.$ac_ext >&5
22292
a8b2ad8d 22293 eval "$as_ac_var=no"
b3076f16 22294fi
a8b2ad8d 22295
ff3b058a 22296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 22297 conftest$ac_exeext conftest.$ac_ext
22298fi
a8b2ad8d 22299ac_res=`eval echo '${'$as_ac_var'}'`
22300 { echo "$as_me:$LINENO: result: $ac_res" >&5
22301echo "${ECHO_T}$ac_res" >&6; }
b3076f16 22302if test `eval echo '${'$as_ac_var'}'` = yes; then
22303
22304cat >>confdefs.h <<_ACEOF
22305#define CRAY_STACKSEG_END $ac_func
22306_ACEOF
22307
22308 break
22309fi
22310
22311 done
22312fi
22313
a8b2ad8d 22314{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22315echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 22316if test "${ac_cv_c_stack_direction+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318else
22319 if test "$cross_compiling" = yes; then
22320 ac_cv_c_stack_direction=0
22321else
22322 cat >conftest.$ac_ext <<_ACEOF
22323/* confdefs.h. */
22324_ACEOF
22325cat confdefs.h >>conftest.$ac_ext
22326cat >>conftest.$ac_ext <<_ACEOF
22327/* end confdefs.h. */
a8b2ad8d 22328$ac_includes_default
b3076f16 22329int
22330find_stack_direction ()
22331{
22332 static char *addr = 0;
22333 auto char dummy;
22334 if (addr == 0)
22335 {
22336 addr = &dummy;
22337 return find_stack_direction ();
22338 }
22339 else
22340 return (&dummy > addr) ? 1 : -1;
22341}
22342
22343int
22344main ()
22345{
a8b2ad8d 22346 return find_stack_direction () < 0;
b3076f16 22347}
22348_ACEOF
22349rm -f conftest$ac_exeext
a8b2ad8d 22350if { (ac_try="$ac_link"
22351case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22354esac
22355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_link") 2>&5
b3076f16 22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 22360 { (case "(($ac_try" in
22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362 *) ac_try_echo=$ac_try;;
22363esac
22364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365 (eval "$ac_try") 2>&5
b3076f16 22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }; then
22369 ac_cv_c_stack_direction=1
22370else
22371 echo "$as_me: program exited with status $ac_status" >&5
22372echo "$as_me: failed program was:" >&5
22373sed 's/^/| /' conftest.$ac_ext >&5
22374
22375( exit $ac_status )
22376ac_cv_c_stack_direction=-1
22377fi
a8b2ad8d 22378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 22379fi
a8b2ad8d 22380
22381
b3076f16 22382fi
a8b2ad8d 22383{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22384echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 22385
22386cat >>confdefs.h <<_ACEOF
22387#define STACK_DIRECTION $ac_cv_c_stack_direction
22388_ACEOF
22389
22390
22391fi
22392
22393
22394
22395for ac_header in stdlib.h unistd.h
22396do
22397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 22398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403fi
a8b2ad8d 22404ac_res=`eval echo '${'$as_ac_Header'}'`
22405 { echo "$as_me:$LINENO: result: $ac_res" >&5
22406echo "${ECHO_T}$ac_res" >&6; }
b3076f16 22407else
22408 # Is the header compilable?
a8b2ad8d 22409{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 22411cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
22417$ac_includes_default
22418#include <$ac_header>
22419_ACEOF
22420rm -f conftest.$ac_objext
a8b2ad8d 22421if { (ac_try="$ac_compile"
22422case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425esac
22426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
b3076f16 22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
b3076f16 22437 ac_header_compiler=yes
22438else
22439 echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
a8b2ad8d 22442 ac_header_compiler=no
b3076f16 22443fi
a8b2ad8d 22444
22445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22447echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 22448
22449# Is the header present?
a8b2ad8d 22450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 22452cat >conftest.$ac_ext <<_ACEOF
22453/* confdefs.h. */
22454_ACEOF
22455cat confdefs.h >>conftest.$ac_ext
22456cat >>conftest.$ac_ext <<_ACEOF
22457/* end confdefs.h. */
22458#include <$ac_header>
22459_ACEOF
a8b2ad8d 22460if { (ac_try="$ac_cpp conftest.$ac_ext"
22461case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22464esac
22465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22472 (exit $ac_status); } >/dev/null && {
22473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 }; then
b3076f16 22476 ac_header_preproc=yes
22477else
22478 echo "$as_me: failed program was:" >&5
22479sed 's/^/| /' conftest.$ac_ext >&5
22480
22481 ac_header_preproc=no
22482fi
a8b2ad8d 22483
b3076f16 22484rm -f conftest.err conftest.$ac_ext
a8b2ad8d 22485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22486echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 22487
22488# So? What about this header?
22489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22490 yes:no: )
22491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22495 ac_header_preproc=yes
22496 ;;
22497 no:yes:* )
22498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 22510 ( cat <<\_ASBOX
63c95a47 22511## -------------------------------------------------- ##
22512## Report this to evilnet-devel@lists.sourceforge.net ##
22513## -------------------------------------------------- ##
b3076f16 22514_ASBOX
a8b2ad8d 22515 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 22516 ;;
22517esac
a8b2ad8d 22518{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22522else
22523 eval "$as_ac_Header=\$ac_header_preproc"
22524fi
a8b2ad8d 22525ac_res=`eval echo '${'$as_ac_Header'}'`
22526 { echo "$as_me:$LINENO: result: $ac_res" >&5
22527echo "${ECHO_T}$ac_res" >&6; }
b3076f16 22528
22529fi
22530if test `eval echo '${'$as_ac_Header'}'` = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22533_ACEOF
22534
22535fi
22536
22537done
22538
22539
22540for ac_func in getpagesize
22541do
22542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 22543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547else
22548 cat >conftest.$ac_ext <<_ACEOF
22549/* confdefs.h. */
22550_ACEOF
22551cat confdefs.h >>conftest.$ac_ext
22552cat >>conftest.$ac_ext <<_ACEOF
22553/* end confdefs.h. */
22554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22556#define $ac_func innocuous_$ac_func
22557
22558/* System header to define __stub macros and hopefully few prototypes,
22559 which can conflict with char $ac_func (); below.
22560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22561 <limits.h> exists even on freestanding compilers. */
22562
22563#ifdef __STDC__
22564# include <limits.h>
22565#else
22566# include <assert.h>
22567#endif
22568
22569#undef $ac_func
22570
a8b2ad8d 22571/* Override any GCC internal prototype to avoid an error.
22572 Use char because int might match the return type of a GCC
22573 builtin and then its argument prototype would still apply. */
b3076f16 22574#ifdef __cplusplus
22575extern "C"
b3076f16 22576#endif
b3076f16 22577char $ac_func ();
22578/* The GNU C library defines this for functions which it implements
22579 to always fail with ENOSYS. Some functions are actually named
22580 something starting with __ and the normal name is an alias. */
a8b2ad8d 22581#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 22582choke me
b3076f16 22583#endif
22584
22585int
22586main ()
22587{
a8b2ad8d 22588return $ac_func ();
b3076f16 22589 ;
22590 return 0;
22591}
22592_ACEOF
22593rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 22594if { (ac_try="$ac_link"
22595case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598esac
22599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_link") 2>conftest.er1
b3076f16 22601 ac_status=$?
22602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22606 (exit $ac_status); } && {
22607 test -z "$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 } && test -s conftest$ac_exeext &&
22610 $as_test_x conftest$ac_exeext; then
b3076f16 22611 eval "$as_ac_var=yes"
22612else
22613 echo "$as_me: failed program was:" >&5
22614sed 's/^/| /' conftest.$ac_ext >&5
22615
a8b2ad8d 22616 eval "$as_ac_var=no"
b3076f16 22617fi
a8b2ad8d 22618
ff3b058a 22619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 22620 conftest$ac_exeext conftest.$ac_ext
22621fi
a8b2ad8d 22622ac_res=`eval echo '${'$as_ac_var'}'`
22623 { echo "$as_me:$LINENO: result: $ac_res" >&5
22624echo "${ECHO_T}$ac_res" >&6; }
b3076f16 22625if test `eval echo '${'$as_ac_var'}'` = yes; then
22626 cat >>confdefs.h <<_ACEOF
22627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22628_ACEOF
22629
22630fi
22631done
22632
a8b2ad8d 22633{ echo "$as_me:$LINENO: checking for working mmap" >&5
22634echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 22635if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22636 echo $ECHO_N "(cached) $ECHO_C" >&6
22637else
22638 if test "$cross_compiling" = yes; then
22639 ac_cv_func_mmap_fixed_mapped=no
22640else
22641 cat >conftest.$ac_ext <<_ACEOF
22642/* confdefs.h. */
22643_ACEOF
22644cat confdefs.h >>conftest.$ac_ext
22645cat >>conftest.$ac_ext <<_ACEOF
22646/* end confdefs.h. */
22647$ac_includes_default
22648/* malloc might have been renamed as rpl_malloc. */
22649#undef malloc
22650
22651/* Thanks to Mike Haertel and Jim Avera for this test.
22652 Here is a matrix of mmap possibilities:
22653 mmap private not fixed
22654 mmap private fixed at somewhere currently unmapped
22655 mmap private fixed at somewhere already mapped
22656 mmap shared not fixed
22657 mmap shared fixed at somewhere currently unmapped
22658 mmap shared fixed at somewhere already mapped
22659 For private mappings, we should verify that changes cannot be read()
22660 back from the file, nor mmap's back from the file at a different
22661 address. (There have been systems where private was not correctly
22662 implemented like the infamous i386 svr4.0, and systems where the
22663 VM page cache was not coherent with the file system buffer cache
22664 like early versions of FreeBSD and possibly contemporary NetBSD.)
22665 For shared mappings, we should conversely verify that changes get
22666 propagated back to all the places they're supposed to be.
22667
22668 Grep wants private fixed already mapped.
22669 The main things grep needs to know about mmap are:
22670 * does it exist and is it safe to write into the mmap'd area
22671 * how to use it (BSD variants) */
22672
22673#include <fcntl.h>
22674#include <sys/mman.h>
22675
ff3b058a 22676#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b3076f16 22677char *malloc ();
22678#endif
22679
22680/* This mess was copied from the GNU getpagesize.h. */
ff3b058a 22681#ifndef HAVE_GETPAGESIZE
b3076f16 22682/* Assume that all systems that can run configure have sys/param.h. */
ff3b058a 22683# ifndef HAVE_SYS_PARAM_H
b3076f16 22684# define HAVE_SYS_PARAM_H 1
22685# endif
22686
22687# ifdef _SC_PAGESIZE
22688# define getpagesize() sysconf(_SC_PAGESIZE)
22689# else /* no _SC_PAGESIZE */
ff3b058a 22690# ifdef HAVE_SYS_PARAM_H
b3076f16 22691# include <sys/param.h>
22692# ifdef EXEC_PAGESIZE
22693# define getpagesize() EXEC_PAGESIZE
22694# else /* no EXEC_PAGESIZE */
22695# ifdef NBPG
22696# define getpagesize() NBPG * CLSIZE
22697# ifndef CLSIZE
22698# define CLSIZE 1
22699# endif /* no CLSIZE */
22700# else /* no NBPG */
22701# ifdef NBPC
22702# define getpagesize() NBPC
22703# else /* no NBPC */
22704# ifdef PAGESIZE
22705# define getpagesize() PAGESIZE
22706# endif /* PAGESIZE */
22707# endif /* no NBPC */
22708# endif /* no NBPG */
22709# endif /* no EXEC_PAGESIZE */
22710# else /* no HAVE_SYS_PARAM_H */
22711# define getpagesize() 8192 /* punt totally */
22712# endif /* no HAVE_SYS_PARAM_H */
22713# endif /* no _SC_PAGESIZE */
22714
22715#endif /* no HAVE_GETPAGESIZE */
22716
22717int
22718main ()
22719{
22720 char *data, *data2, *data3;
22721 int i, pagesize;
22722 int fd;
22723
22724 pagesize = getpagesize ();
22725
22726 /* First, make a file with some known garbage in it. */
22727 data = (char *) malloc (pagesize);
22728 if (!data)
a8b2ad8d 22729 return 1;
b3076f16 22730 for (i = 0; i < pagesize; ++i)
22731 *(data + i) = rand ();
22732 umask (0);
22733 fd = creat ("conftest.mmap", 0600);
22734 if (fd < 0)
a8b2ad8d 22735 return 1;
b3076f16 22736 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 22737 return 1;
b3076f16 22738 close (fd);
22739
22740 /* Next, try to mmap the file at a fixed address which already has
22741 something else allocated at it. If we can, also make sure that
22742 we see the same garbage. */
22743 fd = open ("conftest.mmap", O_RDWR);
22744 if (fd < 0)
a8b2ad8d 22745 return 1;
b3076f16 22746 data2 = (char *) malloc (2 * pagesize);
22747 if (!data2)
a8b2ad8d 22748 return 1;
22749 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 22750 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22751 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 22752 return 1;
b3076f16 22753 for (i = 0; i < pagesize; ++i)
22754 if (*(data + i) != *(data2 + i))
a8b2ad8d 22755 return 1;
b3076f16 22756
22757 /* Finally, make sure that changes to the mapped area do not
22758 percolate back to the file as seen by read(). (This is a bug on
22759 some variants of i386 svr4.0.) */
22760 for (i = 0; i < pagesize; ++i)
22761 *(data2 + i) = *(data2 + i) + 1;
22762 data3 = (char *) malloc (pagesize);
22763 if (!data3)
a8b2ad8d 22764 return 1;
b3076f16 22765 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 22766 return 1;
b3076f16 22767 for (i = 0; i < pagesize; ++i)
22768 if (*(data + i) != *(data3 + i))
a8b2ad8d 22769 return 1;
b3076f16 22770 close (fd);
a8b2ad8d 22771 return 0;
b3076f16 22772}
22773_ACEOF
22774rm -f conftest$ac_exeext
a8b2ad8d 22775if { (ac_try="$ac_link"
22776case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779esac
22780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_link") 2>&5
b3076f16 22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 22785 { (case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22788esac
22789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_try") 2>&5
b3076f16 22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 ac_cv_func_mmap_fixed_mapped=yes
22795else
22796 echo "$as_me: program exited with status $ac_status" >&5
22797echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
22800( exit $ac_status )
22801ac_cv_func_mmap_fixed_mapped=no
22802fi
a8b2ad8d 22803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 22804fi
a8b2ad8d 22805
22806
b3076f16 22807fi
a8b2ad8d 22808{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22809echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 22810if test $ac_cv_func_mmap_fixed_mapped = yes; then
22811
22812cat >>confdefs.h <<\_ACEOF
22813#define HAVE_MMAP 1
22814_ACEOF
22815
22816fi
22817rm -f conftest.mmap
22818
22819
a8b2ad8d 22820{ echo "$as_me:$LINENO: checking for sin_len" >&5
22821echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 22822if test "${ac_cv_sin_len+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22824else
22825 cat >conftest.$ac_ext <<_ACEOF
22826/* confdefs.h. */
22827_ACEOF
22828cat confdefs.h >>conftest.$ac_ext
22829cat >>conftest.$ac_ext <<_ACEOF
22830/* end confdefs.h. */
22831#include <sys/types.h>
22832#include <netinet/in.h>
22833int
22834main ()
22835{
22836struct sockaddr_in *sin; sin->sin_len = 0;
22837 ;
22838 return 0;
22839}
22840_ACEOF
22841rm -f conftest.$ac_objext
a8b2ad8d 22842if { (ac_try="$ac_compile"
22843case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22846esac
22847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
b3076f16 22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
b3076f16 22858 ac_cv_sin_len="yes"
22859else
22860 echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
22862
a8b2ad8d 22863 ac_cv_sin_len="no"
b3076f16 22864fi
a8b2ad8d 22865
22866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 22867fi
a8b2ad8d 22868{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
22869echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 22870if test $ac_cv_sin_len = yes ; then
22871
22872cat >>confdefs.h <<\_ACEOF
22873#define HAVE_SIN_LEN 1
22874_ACEOF
22875
22876fi
22877
a8b2ad8d 22878{ echo "$as_me:$LINENO: checking for socklen_t" >&5
22879echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 22880if test "${ac_cv_type_socklen_t+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882else
22883 cat >conftest.$ac_ext <<_ACEOF
22884/* confdefs.h. */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h. */
22889#include <sys/types.h>
22890#include<sys/socket.h>
22891
a8b2ad8d 22892typedef socklen_t ac__type_new_;
79886419 22893int
22894main ()
22895{
a8b2ad8d 22896if ((ac__type_new_ *) 0)
79886419 22897 return 0;
a8b2ad8d 22898if (sizeof (ac__type_new_))
79886419 22899 return 0;
22900 ;
22901 return 0;
22902}
22903_ACEOF
22904rm -f conftest.$ac_objext
a8b2ad8d 22905if { (ac_try="$ac_compile"
22906case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22909esac
22910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_compile") 2>conftest.er1
79886419 22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
79886419 22921 ac_cv_type_socklen_t=yes
22922else
22923 echo "$as_me: failed program was:" >&5
22924sed 's/^/| /' conftest.$ac_ext >&5
22925
a8b2ad8d 22926 ac_cv_type_socklen_t=no
79886419 22927fi
a8b2ad8d 22928
22929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 22930fi
a8b2ad8d 22931{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22932echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
79886419 22933if test $ac_cv_type_socklen_t = yes; then
22934 :
22935else
22936
a8b2ad8d 22937 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22938echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
79886419 22939 if test "${curl_cv_socklen_t_equiv+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22941else
22942
22943 curl_cv_socklen_t_equiv=
22944 for arg2 in "struct sockaddr" void ; do
22945 for t in int size_t unsigned long "unsigned long" ; do
22946 cat >conftest.$ac_ext <<_ACEOF
22947/* confdefs.h. */
22948_ACEOF
22949cat confdefs.h >>conftest.$ac_ext
22950cat >>conftest.$ac_ext <<_ACEOF
22951/* end confdefs.h. */
ff3b058a 22952#include <sys/types.h>
22953#include <sys/socket.h>
22954int getpeername (int $arg2 *, $t *);
22955int
22956main ()
22957{
22958$t len;
22959 getpeername(0, 0, &len);
22960 ;
22961 return 0;
22962}
22963_ACEOF
22964rm -f conftest.$ac_objext
22965if { (ac_try="$ac_compile"
22966case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969esac
22970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 curl_cv_socklen_t_equiv="$t"
22982 break
22983else
22984 echo "$as_me: failed program was:" >&5
22985sed 's/^/| /' conftest.$ac_ext >&5
22986
22987
22988fi
22989
22990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 done
22992 done
22993
22994fi
22995
22996 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
22997echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
22998
22999cat >>confdefs.h <<_ACEOF
23000#define socklen_t $curl_cv_socklen_t_equiv
23001_ACEOF
23002
23003fi
23004
23005
23006OLD_CFLAGS=$CFLAGS
23007CFLAGS="$CFLAGS -W -Wall -Werror"
23008if test "z$USE_MAINTAINER_MODE" = zyes ; then
23009 CFLAGS="$CFLAGS -ansi"
23010fi
23011
23012{ echo "$as_me:$LINENO: checking for inline" >&5
23013echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23014if test "${ac_cv_c_inline+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016else
23017 ac_cv_c_inline=no
23018for ac_kw in inline __inline__ __inline; do
23019 cat >conftest.$ac_ext <<_ACEOF
23020/* confdefs.h. */
23021_ACEOF
23022cat confdefs.h >>conftest.$ac_ext
23023cat >>conftest.$ac_ext <<_ACEOF
23024/* end confdefs.h. */
23025#ifndef __cplusplus
23026typedef int foo_t;
23027static $ac_kw foo_t static_foo () {return 0; }
23028$ac_kw foo_t foo () {return 0; }
23029#endif
23030
79886419 23031_ACEOF
23032rm -f conftest.$ac_objext
a8b2ad8d 23033if { (ac_try="$ac_compile"
23034case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23037esac
23038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_compile") 2>conftest.er1
79886419 23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_cv_c_inline=$ac_kw
79886419 23050else
23051 echo "$as_me: failed program was:" >&5
23052sed 's/^/| /' conftest.$ac_ext >&5
23053
a8b2ad8d 23054
79886419 23055fi
a8b2ad8d 23056
23057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff3b058a 23058 test "$ac_cv_c_inline" != no && break
23059done
79886419 23060
23061fi
ff3b058a 23062{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23063echo "${ECHO_T}$ac_cv_c_inline" >&6; }
79886419 23064
79886419 23065
ff3b058a 23066case $ac_cv_c_inline in
23067 inline | yes) ;;
23068 *)
23069 case $ac_cv_c_inline in
23070 no) ac_val=;;
23071 *) ac_val=$ac_cv_c_inline;;
23072 esac
23073 cat >>confdefs.h <<_ACEOF
23074#ifndef __cplusplus
23075#define inline $ac_val
23076#endif
79886419 23077_ACEOF
ff3b058a 23078 ;;
23079esac
79886419 23080
b3076f16 23081
a8b2ad8d 23082{ echo "$as_me:$LINENO: checking for time_t format" >&5
23083echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 23084if test "${ac_cv_fmt_time_t+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086else
23087
23088ac_cv_fmt_time_t=no
23089cat >conftest.$ac_ext <<_ACEOF
23090#include <sys/types.h>
23091#include <stdio.h>
23092void myfunc(void) {
23093 time_t test=0;
23094 printf("%li", test);
23095}
23096_ACEOF
23097rm -f conftest.$ac_objext
a8b2ad8d 23098if { (ac_try="$ac_compile"
23099case "(($ac_try" in
23100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101 *) ac_try_echo=$ac_try;;
23102esac
23103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104 (eval "$ac_compile") 2>conftest.er1
b3076f16 23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23110 (exit $ac_status); } && {
23111 test -z "$ac_c_werror_flag" ||
23112 test ! -s conftest.err
23113 } && test -s conftest.$ac_objext; then
b3076f16 23114 ac_cv_fmt_time_t="\"%li\""
23115else
23116 echo "$as_me: failed program was:" >&5
23117sed 's/^/| /' conftest.$ac_ext >&5
23118
a8b2ad8d 23119
b3076f16 23120fi
a8b2ad8d 23121
23122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 23123if test $ac_cv_fmt_time_t = no; then
23124cat >conftest.$ac_ext <<_ACEOF
23125#include <sys/types.h>
23126#include <stdio.h>
23127void myfunc(void) {
23128 time_t test=0;
23129 printf("%i", test);
23130}
23131_ACEOF
23132rm -f conftest.$ac_objext
a8b2ad8d 23133if { (ac_try="$ac_compile"
23134case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137esac
23138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
b3076f16 23140 ac_status=$?
23141 grep -v '^ *+' conftest.er1 >conftest.err
23142 rm -f conftest.er1
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
b3076f16 23149 ac_cv_fmt_time_t="\"%i\""
23150else
23151 echo "$as_me: failed program was:" >&5
23152sed 's/^/| /' conftest.$ac_ext >&5
23153
a8b2ad8d 23154
b3076f16 23155fi
a8b2ad8d 23156
23157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 23158fi
23159if test $ac_cv_fmt_time_t = no; then
23160{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
23161Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
23162echo "$as_me: error: Cannot detect format string for time_t
23163Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
23164 { (exit 1); exit 1; }; }
23165fi
23166
23167fi
23168
23169
23170cat >>confdefs.h <<_ACEOF
23171#define FMT_TIME_T $ac_cv_fmt_time_t
23172_ACEOF
23173
a8b2ad8d 23174{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
23175echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 23176
a8b2ad8d 23177{ echo "$as_me:$LINENO: checking for va_copy" >&5
23178echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 23179if test "${ac_cv_c_va_copy+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181else
23182 cat >conftest.$ac_ext <<_ACEOF
23183/* confdefs.h. */
23184_ACEOF
23185cat confdefs.h >>conftest.$ac_ext
23186cat >>conftest.$ac_ext <<_ACEOF
23187/* end confdefs.h. */
23188#include <stdarg.h>
23189int
23190main ()
23191{
23192va_list ap1, ap2; va_copy(ap1, ap2);
23193 ;
23194 return 0;
23195}
23196_ACEOF
23197rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 23198if { (ac_try="$ac_link"
23199case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202esac
23203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>conftest.er1
b3076f16 23205 ac_status=$?
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest$ac_exeext &&
23214 $as_test_x conftest$ac_exeext; then
b3076f16 23215 ac_cv_c_va_copy="yes"
23216else
23217 echo "$as_me: failed program was:" >&5
23218sed 's/^/| /' conftest.$ac_ext >&5
23219
a8b2ad8d 23220 ac_cv_c_va_copy="no"
b3076f16 23221
23222fi
a8b2ad8d 23223
ff3b058a 23224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 23225 conftest$ac_exeext conftest.$ac_ext
23226fi
a8b2ad8d 23227{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
23228echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 23229if test "$ac_cv_c_va_copy" = "yes" ; then
23230
23231cat >>confdefs.h <<\_ACEOF
23232#define HAVE_VA_COPY 1
23233_ACEOF
23234
23235fi
23236
a8b2ad8d 23237{ echo "$as_me:$LINENO: checking for __va_copy" >&5
23238echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 23239if test "${ac_cv_c___va_copy+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23241else
23242 cat >conftest.$ac_ext <<_ACEOF
23243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
23248#include <stdarg.h>
23249int
23250main ()
23251{
23252va_list ap1, ap2; __va_copy(ap1, ap2);
23253 ;
23254 return 0;
23255}
23256_ACEOF
23257rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 23258if { (ac_try="$ac_link"
23259case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262esac
23263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_link") 2>conftest.er1
b3076f16 23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest$ac_exeext &&
23274 $as_test_x conftest$ac_exeext; then
b3076f16 23275 ac_cv_c___va_copy="yes"
23276else
23277 echo "$as_me: failed program was:" >&5
23278sed 's/^/| /' conftest.$ac_ext >&5
23279
a8b2ad8d 23280 ac_cv_c___va_copy="no"
b3076f16 23281
23282fi
a8b2ad8d 23283
ff3b058a 23284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 23285 conftest$ac_exeext conftest.$ac_ext
23286fi
a8b2ad8d 23287{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
23288echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 23289if test "$ac_cv_c___va_copy" = "yes" ; then
23290
23291cat >>confdefs.h <<\_ACEOF
23292#define HAVE___VA_COPY 1
23293_ACEOF
23294
23295fi
23296
23297CFLAGS=$OLD_CFLAGS
23298
a8b2ad8d 23299{ echo "$as_me:$LINENO: checking which malloc to use" >&5
23300echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 23301
a8b2ad8d 23302# Check whether --with-malloc was given.
b3076f16 23303if test "${with_malloc+set}" = set; then
a8b2ad8d 23304 withval=$with_malloc;
b3076f16 23305else
23306 withval="system"
a8b2ad8d 23307fi
23308
b3076f16 23309if test "x$withval" = "xsystem" ; then
a8b2ad8d 23310 { echo "$as_me:$LINENO: result: system" >&5
23311echo "${ECHO_T}system" >&6; }
b3076f16 23312
23313cat >>confdefs.h <<\_ACEOF
23314#define WITH_MALLOC_SYSTEM 1
23315_ACEOF
23316
5b1166fd 23317 x3_malloc="System"
b3076f16 23318elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 23319 { echo "$as_me:$LINENO: result: dmalloc" >&5
23320echo "${ECHO_T}dmalloc" >&6; }
b3076f16 23321
23322for ac_header in dmalloc.h
23323do
23324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 23325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23330fi
a8b2ad8d 23331ac_res=`eval echo '${'$as_ac_Header'}'`
23332 { echo "$as_me:$LINENO: result: $ac_res" >&5
23333echo "${ECHO_T}$ac_res" >&6; }
b3076f16 23334else
23335 # Is the header compilable?
a8b2ad8d 23336{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 23338cat >conftest.$ac_ext <<_ACEOF
23339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
23344$ac_includes_default
23345#include <$ac_header>
23346_ACEOF
23347rm -f conftest.$ac_objext
a8b2ad8d 23348if { (ac_try="$ac_compile"
23349case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352esac
23353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_compile") 2>conftest.er1
b3076f16 23355 ac_status=$?
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.$ac_objext; then
b3076f16 23364 ac_header_compiler=yes
23365else
23366 echo "$as_me: failed program was:" >&5
23367sed 's/^/| /' conftest.$ac_ext >&5
23368
a8b2ad8d 23369 ac_header_compiler=no
b3076f16 23370fi
a8b2ad8d 23371
23372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23374echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 23375
23376# Is the header present?
a8b2ad8d 23377{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 23379cat >conftest.$ac_ext <<_ACEOF
23380/* confdefs.h. */
23381_ACEOF
23382cat confdefs.h >>conftest.$ac_ext
23383cat >>conftest.$ac_ext <<_ACEOF
23384/* end confdefs.h. */
23385#include <$ac_header>
23386_ACEOF
a8b2ad8d 23387if { (ac_try="$ac_cpp conftest.$ac_ext"
23388case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23391esac
23392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 23394 ac_status=$?
23395 grep -v '^ *+' conftest.er1 >conftest.err
23396 rm -f conftest.er1
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23399 (exit $ac_status); } >/dev/null && {
23400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 }; then
b3076f16 23403 ac_header_preproc=yes
23404else
23405 echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408 ac_header_preproc=no
23409fi
a8b2ad8d 23410
b3076f16 23411rm -f conftest.err conftest.$ac_ext
a8b2ad8d 23412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23413echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 23414
23415# So? What about this header?
23416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23417 yes:no: )
23418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23422 ac_header_preproc=yes
23423 ;;
23424 no:yes:* )
23425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 23437 ( cat <<\_ASBOX
63c95a47 23438## -------------------------------------------------- ##
23439## Report this to evilnet-devel@lists.sourceforge.net ##
23440## -------------------------------------------------- ##
b3076f16 23441_ASBOX
a8b2ad8d 23442 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 23443 ;;
23444esac
a8b2ad8d 23445{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449else
23450 eval "$as_ac_Header=\$ac_header_preproc"
23451fi
a8b2ad8d 23452ac_res=`eval echo '${'$as_ac_Header'}'`
23453 { echo "$as_me:$LINENO: result: $ac_res" >&5
23454echo "${ECHO_T}$ac_res" >&6; }
b3076f16 23455
23456fi
23457if test `eval echo '${'$as_ac_Header'}'` = yes; then
23458 cat >>confdefs.h <<_ACEOF
23459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23460_ACEOF
23461
23462else
23463 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
23464echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
23465 { (exit 1); exit 1; }; }
23466fi
23467
23468done
23469
23470
a8b2ad8d 23471{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
23472echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 23473if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475else
23476 ac_check_lib_save_LIBS=$LIBS
23477LIBS="-ldmalloc $LIBS"
23478cat >conftest.$ac_ext <<_ACEOF
23479/* confdefs.h. */
23480_ACEOF
23481cat confdefs.h >>conftest.$ac_ext
23482cat >>conftest.$ac_ext <<_ACEOF
23483/* end confdefs.h. */
23484
a8b2ad8d 23485/* Override any GCC internal prototype to avoid an error.
23486 Use char because int might match the return type of a GCC
23487 builtin and then its argument prototype would still apply. */
b3076f16 23488#ifdef __cplusplus
23489extern "C"
23490#endif
b3076f16 23491char malloc ();
23492int
23493main ()
23494{
a8b2ad8d 23495return malloc ();
b3076f16 23496 ;
23497 return 0;
23498}
23499_ACEOF
23500rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 23501if { (ac_try="$ac_link"
23502case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23505esac
23506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_link") 2>conftest.er1
b3076f16 23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest$ac_exeext &&
23517 $as_test_x conftest$ac_exeext; then
b3076f16 23518 ac_cv_lib_dmalloc_malloc=yes
23519else
23520 echo "$as_me: failed program was:" >&5
23521sed 's/^/| /' conftest.$ac_ext >&5
23522
a8b2ad8d 23523 ac_cv_lib_dmalloc_malloc=no
b3076f16 23524fi
a8b2ad8d 23525
ff3b058a 23526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 23527 conftest$ac_exeext conftest.$ac_ext
23528LIBS=$ac_check_lib_save_LIBS
23529fi
a8b2ad8d 23530{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
23531echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 23532if test $ac_cv_lib_dmalloc_malloc = yes; then
23533 cat >>confdefs.h <<_ACEOF
23534#define HAVE_LIBDMALLOC 1
23535_ACEOF
23536
23537 LIBS="-ldmalloc $LIBS"
23538
23539else
23540 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
23541echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
23542 { (exit 1); exit 1; }; }
23543fi
23544
23545
23546cat >>confdefs.h <<\_ACEOF
23547#define WITH_MALLOC_DMALLOC 1
23548_ACEOF
23549
5b1166fd 23550 x3_malloc="DMalloc"
b3076f16 23551elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 23552 { echo "$as_me:$LINENO: result: mpatrol" >&5
23553echo "${ECHO_T}mpatrol" >&6; }
b3076f16 23554
23555for ac_header in mpatrol.h
23556do
23557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 23558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 23562 echo $ECHO_N "(cached) $ECHO_C" >&6
23563fi
a8b2ad8d 23564ac_res=`eval echo '${'$as_ac_Header'}'`
23565 { echo "$as_me:$LINENO: result: $ac_res" >&5
23566echo "${ECHO_T}$ac_res" >&6; }
b3076f16 23567else
23568 # Is the header compilable?
a8b2ad8d 23569{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 23571cat >conftest.$ac_ext <<_ACEOF
23572/* confdefs.h. */
23573_ACEOF
23574cat confdefs.h >>conftest.$ac_ext
23575cat >>conftest.$ac_ext <<_ACEOF
23576/* end confdefs.h. */
23577$ac_includes_default
23578#include <$ac_header>
23579_ACEOF
23580rm -f conftest.$ac_objext
a8b2ad8d 23581if { (ac_try="$ac_compile"
23582case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585esac
23586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
b3076f16 23588 ac_status=$?
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
b3076f16 23597 ac_header_compiler=yes
23598else
23599 echo "$as_me: failed program was:" >&5
23600sed 's/^/| /' conftest.$ac_ext >&5
23601
a8b2ad8d 23602 ac_header_compiler=no
b3076f16 23603fi
a8b2ad8d 23604
23605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23607echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 23608
23609# Is the header present?
a8b2ad8d 23610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 23612cat >conftest.$ac_ext <<_ACEOF
23613/* confdefs.h. */
23614_ACEOF
23615cat confdefs.h >>conftest.$ac_ext
23616cat >>conftest.$ac_ext <<_ACEOF
23617/* end confdefs.h. */
23618#include <$ac_header>
23619_ACEOF
a8b2ad8d 23620if { (ac_try="$ac_cpp conftest.$ac_ext"
23621case "(($ac_try" in
23622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623 *) ac_try_echo=$ac_try;;
23624esac
23625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 23627 ac_status=$?
23628 grep -v '^ *+' conftest.er1 >conftest.err
23629 rm -f conftest.er1
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23632 (exit $ac_status); } >/dev/null && {
23633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23634 test ! -s conftest.err
23635 }; then
b3076f16 23636 ac_header_preproc=yes
23637else
23638 echo "$as_me: failed program was:" >&5
23639sed 's/^/| /' conftest.$ac_ext >&5
23640
23641 ac_header_preproc=no
23642fi
a8b2ad8d 23643
b3076f16 23644rm -f conftest.err conftest.$ac_ext
a8b2ad8d 23645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23646echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 23647
23648# So? What about this header?
23649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23650 yes:no: )
23651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23655 ac_header_preproc=yes
23656 ;;
23657 no:yes:* )
23658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 23670 ( cat <<\_ASBOX
63c95a47 23671## -------------------------------------------------- ##
23672## Report this to evilnet-devel@lists.sourceforge.net ##
23673## -------------------------------------------------- ##
b3076f16 23674_ASBOX
a8b2ad8d 23675 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 23676 ;;
23677esac
a8b2ad8d 23678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23682else
23683 eval "$as_ac_Header=\$ac_header_preproc"
23684fi
a8b2ad8d 23685ac_res=`eval echo '${'$as_ac_Header'}'`
23686 { echo "$as_me:$LINENO: result: $ac_res" >&5
23687echo "${ECHO_T}$ac_res" >&6; }
b3076f16 23688
23689fi
23690if test `eval echo '${'$as_ac_Header'}'` = yes; then
23691 cat >>confdefs.h <<_ACEOF
23692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23693_ACEOF
23694
23695else
23696 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
23697echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
23698 { (exit 1); exit 1; }; }
23699fi
23700
23701done
23702
23703
a8b2ad8d 23704{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
23705echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 23706if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23708else
23709 ac_check_lib_save_LIBS=$LIBS
23710LIBS="-lelf $LIBS"
23711cat >conftest.$ac_ext <<_ACEOF
23712/* confdefs.h. */
23713_ACEOF
23714cat confdefs.h >>conftest.$ac_ext
23715cat >>conftest.$ac_ext <<_ACEOF
23716/* end confdefs.h. */
23717
a8b2ad8d 23718/* Override any GCC internal prototype to avoid an error.
23719 Use char because int might match the return type of a GCC
23720 builtin and then its argument prototype would still apply. */
b3076f16 23721#ifdef __cplusplus
23722extern "C"
23723#endif
b3076f16 23724char elf_begin ();
23725int
23726main ()
23727{
a8b2ad8d 23728return elf_begin ();
b3076f16 23729 ;
23730 return 0;
23731}
23732_ACEOF
23733rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 23734if { (ac_try="$ac_link"
23735case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23738esac
23739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740 (eval "$ac_link") 2>conftest.er1
b3076f16 23741 ac_status=$?
23742 grep -v '^ *+' conftest.er1 >conftest.err
23743 rm -f conftest.er1
23744 cat conftest.err >&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23746 (exit $ac_status); } && {
23747 test -z "$ac_c_werror_flag" ||
23748 test ! -s conftest.err
23749 } && test -s conftest$ac_exeext &&
23750 $as_test_x conftest$ac_exeext; then
b3076f16 23751 ac_cv_lib_elf_elf_begin=yes
23752else
23753 echo "$as_me: failed program was:" >&5
23754sed 's/^/| /' conftest.$ac_ext >&5
23755
a8b2ad8d 23756 ac_cv_lib_elf_elf_begin=no
b3076f16 23757fi
a8b2ad8d 23758
ff3b058a 23759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 23760 conftest$ac_exeext conftest.$ac_ext
23761LIBS=$ac_check_lib_save_LIBS
23762fi
a8b2ad8d 23763{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
23764echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 23765if test $ac_cv_lib_elf_elf_begin = yes; then
23766 cat >>confdefs.h <<_ACEOF
23767#define HAVE_LIBELF 1
23768_ACEOF
23769
23770 LIBS="-lelf $LIBS"
23771
23772fi
23773
23774
a8b2ad8d 23775{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
23776echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 23777if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
23778 echo $ECHO_N "(cached) $ECHO_C" >&6
23779else
23780 ac_check_lib_save_LIBS=$LIBS
23781LIBS="-lmpatrol $LIBS"
23782cat >conftest.$ac_ext <<_ACEOF
23783/* confdefs.h. */
23784_ACEOF
23785cat confdefs.h >>conftest.$ac_ext
23786cat >>conftest.$ac_ext <<_ACEOF
23787/* end confdefs.h. */
23788
a8b2ad8d 23789/* Override any GCC internal prototype to avoid an error.
23790 Use char because int might match the return type of a GCC
23791 builtin and then its argument prototype would still apply. */
b3076f16 23792#ifdef __cplusplus
23793extern "C"
23794#endif
b3076f16 23795char __mp_atexit ();
23796int
23797main ()
23798{
a8b2ad8d 23799return __mp_atexit ();
b3076f16 23800 ;
23801 return 0;
23802}
23803_ACEOF
23804rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 23805if { (ac_try="$ac_link"
23806case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23809esac
23810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23811 (eval "$ac_link") 2>conftest.er1
b3076f16 23812 ac_status=$?
23813 grep -v '^ *+' conftest.er1 >conftest.err
23814 rm -f conftest.er1
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23817 (exit $ac_status); } && {
23818 test -z "$ac_c_werror_flag" ||
23819 test ! -s conftest.err
23820 } && test -s conftest$ac_exeext &&
23821 $as_test_x conftest$ac_exeext; then
b3076f16 23822 ac_cv_lib_mpatrol___mp_atexit=yes
23823else
23824 echo "$as_me: failed program was:" >&5
23825sed 's/^/| /' conftest.$ac_ext >&5
23826
a8b2ad8d 23827 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 23828fi
a8b2ad8d 23829
ff3b058a 23830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 23831 conftest$ac_exeext conftest.$ac_ext
23832LIBS=$ac_check_lib_save_LIBS
23833fi
a8b2ad8d 23834{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
23835echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 23836if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
23837 cat >>confdefs.h <<_ACEOF
23838#define HAVE_LIBMPATROL 1
23839_ACEOF
23840
23841 LIBS="-lmpatrol $LIBS"
23842
23843else
23844 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
23845echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
23846 { (exit 1); exit 1; }; }
23847fi
23848
23849
23850cat >>confdefs.h <<\_ACEOF
23851#define WITH_MALLOC_MPATROL 1
23852_ACEOF
23853
5b1166fd 23854 x3_malloc="MPatrol"
b3076f16 23855elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 23856 { echo "$as_me:$LINENO: result: boehm-gc" >&5
23857echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 23858
23859for ac_header in gc/gc.h
23860do
23861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 23862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867fi
a8b2ad8d 23868ac_res=`eval echo '${'$as_ac_Header'}'`
23869 { echo "$as_me:$LINENO: result: $ac_res" >&5
23870echo "${ECHO_T}$ac_res" >&6; }
b3076f16 23871else
23872 # Is the header compilable?
a8b2ad8d 23873{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 23875cat >conftest.$ac_ext <<_ACEOF
23876/* confdefs.h. */
23877_ACEOF
23878cat confdefs.h >>conftest.$ac_ext
23879cat >>conftest.$ac_ext <<_ACEOF
23880/* end confdefs.h. */
23881$ac_includes_default
ff3b058a 23882#include <$ac_header>
23883_ACEOF
23884rm -f conftest.$ac_objext
23885if { (ac_try="$ac_compile"
23886case "(($ac_try" in
a8b2ad8d 23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23889esac
23890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 23891 (eval "$ac_compile") 2>conftest.er1
b3076f16 23892 ac_status=$?
ff3b058a 23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
b3076f16 23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23897 (exit $ac_status); } && {
23898 test -z "$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 } && test -s conftest.$ac_objext; then
b3076f16 23901 ac_header_compiler=yes
23902else
23903 echo "$as_me: failed program was:" >&5
23904sed 's/^/| /' conftest.$ac_ext >&5
23905
a8b2ad8d 23906 ac_header_compiler=no
b3076f16 23907fi
a8b2ad8d 23908
23909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23911echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 23912
23913# Is the header present?
a8b2ad8d 23914{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 23916cat >conftest.$ac_ext <<_ACEOF
23917/* confdefs.h. */
23918_ACEOF
23919cat confdefs.h >>conftest.$ac_ext
23920cat >>conftest.$ac_ext <<_ACEOF
23921/* end confdefs.h. */
23922#include <$ac_header>
23923_ACEOF
a8b2ad8d 23924if { (ac_try="$ac_cpp conftest.$ac_ext"
23925case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23928esac
23929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 23936 (exit $ac_status); } >/dev/null && {
23937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 }; then
b3076f16 23940 ac_header_preproc=yes
23941else
23942 echo "$as_me: failed program was:" >&5
23943sed 's/^/| /' conftest.$ac_ext >&5
23944
23945 ac_header_preproc=no
23946fi
a8b2ad8d 23947
b3076f16 23948rm -f conftest.err conftest.$ac_ext
a8b2ad8d 23949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23950echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 23951
23952# So? What about this header?
23953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23954 yes:no: )
23955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23959 ac_header_preproc=yes
23960 ;;
23961 no:yes:* )
23962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 23974 ( cat <<\_ASBOX
63c95a47 23975## -------------------------------------------------- ##
23976## Report this to evilnet-devel@lists.sourceforge.net ##
23977## -------------------------------------------------- ##
b3076f16 23978_ASBOX
a8b2ad8d 23979 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 23980 ;;
23981esac
a8b2ad8d 23982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23986else
23987 eval "$as_ac_Header=\$ac_header_preproc"
23988fi
a8b2ad8d 23989ac_res=`eval echo '${'$as_ac_Header'}'`
23990 { echo "$as_me:$LINENO: result: $ac_res" >&5
23991echo "${ECHO_T}$ac_res" >&6; }
b3076f16 23992
23993fi
23994if test `eval echo '${'$as_ac_Header'}'` = yes; then
23995 cat >>confdefs.h <<_ACEOF
23996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23997_ACEOF
23998
23999else
24000 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
24001echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
24002 { (exit 1); exit 1; }; }
24003fi
24004
24005done
24006
24007
a8b2ad8d 24008{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24009echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 24010if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012else
24013 ac_check_lib_save_LIBS=$LIBS
24014LIBS="-ldl $LIBS"
24015cat >conftest.$ac_ext <<_ACEOF
24016/* confdefs.h. */
24017_ACEOF
24018cat confdefs.h >>conftest.$ac_ext
24019cat >>conftest.$ac_ext <<_ACEOF
24020/* end confdefs.h. */
24021
a8b2ad8d 24022/* Override any GCC internal prototype to avoid an error.
24023 Use char because int might match the return type of a GCC
24024 builtin and then its argument prototype would still apply. */
b3076f16 24025#ifdef __cplusplus
24026extern "C"
24027#endif
b3076f16 24028char dlopen ();
24029int
24030main ()
24031{
a8b2ad8d 24032return dlopen ();
b3076f16 24033 ;
24034 return 0;
24035}
24036_ACEOF
24037rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 24038if { (ac_try="$ac_link"
24039case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24042esac
24043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_link") 2>conftest.er1
b3076f16 24045 ac_status=$?
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24050 (exit $ac_status); } && {
24051 test -z "$ac_c_werror_flag" ||
24052 test ! -s conftest.err
24053 } && test -s conftest$ac_exeext &&
24054 $as_test_x conftest$ac_exeext; then
b3076f16 24055 ac_cv_lib_dl_dlopen=yes
24056else
24057 echo "$as_me: failed program was:" >&5
24058sed 's/^/| /' conftest.$ac_ext >&5
24059
a8b2ad8d 24060 ac_cv_lib_dl_dlopen=no
b3076f16 24061fi
a8b2ad8d 24062
ff3b058a 24063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 24064 conftest$ac_exeext conftest.$ac_ext
24065LIBS=$ac_check_lib_save_LIBS
24066fi
a8b2ad8d 24067{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24068echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 24069if test $ac_cv_lib_dl_dlopen = yes; then
24070 cat >>confdefs.h <<_ACEOF
24071#define HAVE_LIBDL 1
24072_ACEOF
24073
24074 LIBS="-ldl $LIBS"
24075
24076else
24077 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
24078echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
24079 { (exit 1); exit 1; }; }
24080fi
24081
24082
a8b2ad8d 24083{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
24084echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 24085if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087else
24088 ac_check_lib_save_LIBS=$LIBS
24089LIBS="-lgc $LIBS"
24090cat >conftest.$ac_ext <<_ACEOF
24091/* confdefs.h. */
24092_ACEOF
24093cat confdefs.h >>conftest.$ac_ext
24094cat >>conftest.$ac_ext <<_ACEOF
24095/* end confdefs.h. */
24096
a8b2ad8d 24097/* Override any GCC internal prototype to avoid an error.
24098 Use char because int might match the return type of a GCC
24099 builtin and then its argument prototype would still apply. */
b3076f16 24100#ifdef __cplusplus
24101extern "C"
24102#endif
b3076f16 24103char GC_gcollect ();
24104int
24105main ()
24106{
a8b2ad8d 24107return GC_gcollect ();
b3076f16 24108 ;
24109 return 0;
24110}
24111_ACEOF
24112rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 24113if { (ac_try="$ac_link"
24114case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24117esac
24118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_link") 2>conftest.er1
b3076f16 24120 ac_status=$?
24121 grep -v '^ *+' conftest.er1 >conftest.err
24122 rm -f conftest.er1
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest$ac_exeext &&
24129 $as_test_x conftest$ac_exeext; then
b3076f16 24130 ac_cv_lib_gc_GC_gcollect=yes
24131else
24132 echo "$as_me: failed program was:" >&5
24133sed 's/^/| /' conftest.$ac_ext >&5
24134
a8b2ad8d 24135 ac_cv_lib_gc_GC_gcollect=no
b3076f16 24136fi
a8b2ad8d 24137
ff3b058a 24138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 24139 conftest$ac_exeext conftest.$ac_ext
24140LIBS=$ac_check_lib_save_LIBS
24141fi
a8b2ad8d 24142{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
24143echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 24144if test $ac_cv_lib_gc_GC_gcollect = yes; then
24145 cat >>confdefs.h <<_ACEOF
24146#define HAVE_LIBGC 1
24147_ACEOF
24148
24149 LIBS="-lgc $LIBS"
24150
24151else
24152 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
24153echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
24154 { (exit 1); exit 1; }; }
24155fi
24156
24157
24158cat >>confdefs.h <<\_ACEOF
24159#define WITH_MALLOC_BOEHM_GC 1
24160_ACEOF
24161
5b1166fd 24162 x3_malloc="Boehm"
b8cb2a14 24163elif test "x$withval" = "xx3" ; then
a8b2ad8d 24164 { echo "$as_me:$LINENO: result: x3" >&5
24165echo "${ECHO_T}x3" >&6; }
ec1a68c8 24166
24167cat >>confdefs.h <<\_ACEOF
b8cb2a14 24168#define WITH_MALLOC_X3 1
ec1a68c8 24169_ACEOF
24170
b8cb2a14 24171 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 24172 x3_malloc="X3"
ceafd592 24173elif test "x$withval" = "xslab" ; then
a8b2ad8d 24174 { echo "$as_me:$LINENO: result: slab" >&5
24175echo "${ECHO_T}slab" >&6; }
ceafd592 24176
24177cat >>confdefs.h <<\_ACEOF
24178#define WITH_MALLOC_SLAB 1
24179_ACEOF
24180
24181 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 24182 x3_malloc="Slab"
b3076f16 24183else
24184 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
24185echo "$as_me: error: Unknown malloc type $withval" >&2;}
24186 { (exit 1); exit 1; }; }
24187fi
24188
a8b2ad8d 24189{ echo "$as_me:$LINENO: checking which protocol to use" >&5
24190echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 24191
a8b2ad8d 24192# Check whether --with-protocol was given.
b3076f16 24193if test "${with_protocol+set}" = set; then
a8b2ad8d 24194 withval=$with_protocol;
b3076f16 24195else
24196 withval="p10"
a8b2ad8d 24197fi
24198
b3076f16 24199if test "x$withval" = "xp10" ; then
a8b2ad8d 24200 { echo "$as_me:$LINENO: result: P10" >&5
24201echo "${ECHO_T}P10" >&6; }
b3076f16 24202
24203cat >>confdefs.h <<\_ACEOF
24204#define WITH_PROTOCOL_P10 1
24205_ACEOF
24206
2f61d1d7 24207 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
5b1166fd 24208 x3_ircd="P10"
ff3b058a 24209elif test -r "${srcdir}/src/proto-${withval}.c" ; then
24210 { echo "$as_me:$LINENO: result: $withval" >&5
24211echo "${ECHO_T}$withval" >&6; }
24212 MODULE_OBJS="$MODULE_OBJS proto-${withval}.\$(OBJEXT)"
b3076f16 24213else
24214 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
24215echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
24216 { (exit 1); exit 1; }; }
24217fi
24218
ff3b058a 24219{ echo "$as_me:$LINENO: checking how to send mail" >&5
24220echo $ECHO_N "checking how to send mail... $ECHO_C" >&6; }
24221
24222# Check whether --with-mail was given.
24223if test "${with_mail+set}" = set; then
24224 withval=$with_mail;
24225else
24226 withval="sendmail"
24227fi
24228
24229if test -r "${srcdir}/src/mail-${withval}.c" ; then
24230 { echo "$as_me:$LINENO: result: $withval" >&5
24231echo "${ECHO_T}$withval" >&6; }
24232 MODULE_OBJS="$MODULE_OBJS mail-${withval}.\$(OBJEXT)"
24233else
24234 { { echo "$as_me:$LINENO: error: Unknown mail method $withval" >&5
24235echo "$as_me: error: Unknown mail method $withval" >&2;}
24236 { (exit 1); exit 1; }; }
24237fi
24238
24239{ echo "$as_me:$LINENO: checking I/O multiplexing backends" >&5
24240echo $ECHO_N "checking I/O multiplexing backends... $ECHO_C" >&6; }
24241IOMUXES=""
24242
24243if test "x$ac_cv_func_select" = xyes ; then
24244
24245cat >>confdefs.h <<\_ACEOF
24246#define WITH_IOSET_SELECT 1
24247_ACEOF
24248
24249 MODULE_OBJS="$MODULE_OBJS ioset-select.\$(OBJEXT)"
24250 IOMUXES="$IOMUXES select"
24251fi
24252
24253
24254# Check whether --with-epoll was given.
24255if test "${with_epoll+set}" = set; then
24256 withval=$with_epoll;
24257else
24258 withval="$ac_cv_func_epoll_create"
24259fi
24260
24261if test "x$withval" = xyes ; then
24262
24263cat >>confdefs.h <<\_ACEOF
24264#define WITH_IOSET_EPOLL 1
24265_ACEOF
24266
24267 MODULE_OBJS="$MODULE_OBJS ioset-epoll.\$(OBJEXT)"
24268 IOMUXES="$IOMUXES epoll"
24269fi
24270
24271IOMUXES=`echo $IOMUXES | sed 's/^ +//'`
24272if test "x$IOMUXES" = "x" ; then
24273 { { echo "$as_me:$LINENO: error: No supported I/O multiplexing backend found" >&5
24274echo "$as_me: error: No supported I/O multiplexing backend found" >&2;}
24275 { (exit 1); exit 1; }; }
24276else
24277 { echo "$as_me:$LINENO: result: $IOMUXES" >&5
24278echo "${ECHO_T}$IOMUXES" >&6; }
24279fi
24280
8da89711 24281
24282# Check whether --with-getopt was given.
24283if test "${with_getopt+set}" = set; then
24284 withval=$with_getopt; if test "$withval" = no; then
24285
24286cat >>confdefs.h <<\_ACEOF
24287#define IGNORE_GETOPT 1
24288_ACEOF
24289
24290fi
24291fi
24292
24293
24294{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
24295echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
24296# Check whether --enable-tokens was given.
24297if test "${enable_tokens+set}" = set; then
24298 enableval=$enable_tokens;
24299else
24300 enableval=yes
24301fi
24302
24303if test "z$enableval" = zno ; then
24304 { echo "$as_me:$LINENO: result: no" >&5
24305echo "${ECHO_T}no" >&6; }
24306else
24307
24308cat >>confdefs.h <<\_ACEOF
24309#define ENABLE_TOKENS 1
24310_ACEOF
24311
24312 { echo "$as_me:$LINENO: result: yes" >&5
24313echo "${ECHO_T}yes" >&6; }
24314fi
24315
24316{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
24317echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
24318# Check whether --enable-debug was given.
24319if test "${enable_debug+set}" = set; then
24320 enableval=$enable_debug;
24321 CPPFLAGS="$CPPFLAGS"
e166c31b 24322 { echo "$as_me:$LINENO: result: yes" >&5
24323echo "${ECHO_T}yes" >&6; }
8da89711 24324 x3_debug="Enabled"
e166c31b 24325
24326else
24327
8da89711 24328 CPPFLAGS="$CPPFLAGS -DNDEBUG"
e166c31b 24329 { echo "$as_me:$LINENO: result: no" >&5
24330echo "${ECHO_T}no" >&6; }
8da89711 24331 x3_debug="Disabled"
e166c31b 24332
24333fi
24334
24335
8da89711 24336if test -e src ; then
24337 if test ! -d src ; then
24338 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
24339echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
24340 { (exit 1); exit 1; }; }
24341 fi
24342else
24343 mkdir src
24344fi
24345{ echo "$as_me:$LINENO: checking for extra module files" >&5
24346echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
24347MODULE_DEFINES="src/modules-list.h"
24348echo > $MODULE_DEFINES
24349touch $MODULE_DEFINES
24350# Check whether --enable-modules was given.
24351if test "${enable_modules+set}" = set; then
24352 enableval=$enable_modules;
24353 OIFS="$IFS"
24354 IFS=','
24355 EXTRA_MODULE_OBJS=""
24356 module_list=""
24357 for module in $enableval ; do
24358 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
24359 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
24360 module_list="$module_list $module"
24361 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
24362 if test "x$module" = "xtrack" ; then
24363 TRACK="-D HAVE_TRACK"
e166c31b 24364
24365cat >>confdefs.h <<\_ACEOF
8da89711 24366#define HAVE_TRACK 1
e166c31b 24367_ACEOF
24368
8da89711 24369 fi
24370 if test "x$module" = "xhelpserv" ; then
24371 TRACK="-D HAVE_HELPSERV"
e166c31b 24372
8da89711 24373cat >>confdefs.h <<\_ACEOF
24374#define HAVE_HELPSERV 1
e166c31b 24375_ACEOF
e166c31b 24376
8da89711 24377 fi
24378 done
24379 IFS="$OIFS"
24380 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
24381 { echo "$as_me:$LINENO: result: $module_list" >&5
24382echo "${ECHO_T}$module_list" >&6; }
24383
e166c31b 24384else
e166c31b 24385
8da89711 24386 { echo "$as_me:$LINENO: result: none" >&5
24387echo "${ECHO_T}none" >&6; }
e166c31b 24388
e166c31b 24389fi
e166c31b 24390
e166c31b 24391
8da89711 24392MY_SUBDIRS=""
24393RX_INCLUDES=""
24394RX_LIBS=""
24395if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
24396 MY_SUBDIRS="rx $MY_SUBDIRS"
24397 RX_INCLUDES="-I../rx"
24398 RX_LIBS="../rx/librx.a"
24399fi
24400MY_SUBDIRS="$MY_SUBDIRS src"
24401CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
24402if test "z$USE_MAINTAINER_MODE" = zyes ; then
ff3b058a 24403 CFLAGS="$CFLAGS -Werror -ansi"
e166c31b 24404fi
24405
24406
8da89711 24407tre_version="0.7.5"
24408withval=''
24409
24410# Check whether --with-tre was given.
24411if test "${with_tre+set}" = set; then
24412 withval=$with_tre;
24413fi
24414
24415if test "x$withval" != "x"; then
24416 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
24417echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
39edf54a 24418 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 24419 LIBS="$LIBS -L$withval/lib"
24420else
24421 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
24422echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 24423 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 24424 LIBS="$LIBS -L${HOME}/lib"
24425fi
24426if test "${ac_cv_header_tre_regex_h+set}" = set; then
24427 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
24428echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
24429if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 24430 echo $ECHO_N "(cached) $ECHO_C" >&6
24431fi
8da89711 24432{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
24433echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 24434else
24435 # Is the header compilable?
8da89711 24436{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
24437echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
e166c31b 24438cat >conftest.$ac_ext <<_ACEOF
24439/* confdefs.h. */
24440_ACEOF
24441cat confdefs.h >>conftest.$ac_ext
24442cat >>conftest.$ac_ext <<_ACEOF
24443/* end confdefs.h. */
24444$ac_includes_default
8da89711 24445#include <tre/regex.h>
e166c31b 24446_ACEOF
24447rm -f conftest.$ac_objext
24448if { (ac_try="$ac_compile"
24449case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24452esac
24453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454 (eval "$ac_compile") 2>conftest.er1
24455 ac_status=$?
24456 grep -v '^ *+' conftest.er1 >conftest.err
24457 rm -f conftest.er1
24458 cat conftest.err >&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24460 (exit $ac_status); } && {
24461 test -z "$ac_c_werror_flag" ||
24462 test ! -s conftest.err
24463 } && test -s conftest.$ac_objext; then
e166c31b 24464 ac_header_compiler=yes
24465else
24466 echo "$as_me: failed program was:" >&5
24467sed 's/^/| /' conftest.$ac_ext >&5
24468
24469 ac_header_compiler=no
24470fi
24471
24472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24473{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24474echo "${ECHO_T}$ac_header_compiler" >&6; }
24475
24476# Is the header present?
8da89711 24477{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
24478echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
e166c31b 24479cat >conftest.$ac_ext <<_ACEOF
24480/* confdefs.h. */
24481_ACEOF
24482cat confdefs.h >>conftest.$ac_ext
24483cat >>conftest.$ac_ext <<_ACEOF
24484/* end confdefs.h. */
8da89711 24485#include <tre/regex.h>
e166c31b 24486_ACEOF
24487if { (ac_try="$ac_cpp conftest.$ac_ext"
24488case "(($ac_try" in
24489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490 *) ac_try_echo=$ac_try;;
24491esac
24492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24494 ac_status=$?
24495 grep -v '^ *+' conftest.er1 >conftest.err
24496 rm -f conftest.er1
24497 cat conftest.err >&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24499 (exit $ac_status); } >/dev/null && {
24500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24501 test ! -s conftest.err
24502 }; then
e166c31b 24503 ac_header_preproc=yes
24504else
24505 echo "$as_me: failed program was:" >&5
24506sed 's/^/| /' conftest.$ac_ext >&5
24507
24508 ac_header_preproc=no
24509fi
24510
24511rm -f conftest.err conftest.$ac_ext
24512{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24513echo "${ECHO_T}$ac_header_preproc" >&6; }
24514
24515# So? What about this header?
24516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24517 yes:no: )
8da89711 24518 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24519echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24520 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
24521echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
e166c31b 24522 ac_header_preproc=yes
24523 ;;
24524 no:yes:* )
8da89711 24525 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
24526echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
24527 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
24528echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
24529 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
24530echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
24531 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
24532echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24533 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
24534echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
24535 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
24536echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
e166c31b 24537 ( cat <<\_ASBOX
24538## -------------------------------------------------- ##
24539## Report this to evilnet-devel@lists.sourceforge.net ##
24540## -------------------------------------------------- ##
24541_ASBOX
24542 ) | sed "s/^/$as_me: WARNING: /" >&2
24543 ;;
24544esac
8da89711 24545{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
24546echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
24547if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549else
8da89711 24550 ac_cv_header_tre_regex_h=$ac_header_preproc
e166c31b 24551fi
8da89711 24552{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
24553echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 24554
24555fi
8da89711 24556if test $ac_cv_header_tre_regex_h = yes; then
24557 :
e166c31b 24558else
8da89711 24559 { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
24560echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
e166c31b 24561 { (exit 1); exit 1; }; }
24562fi
24563
e166c31b 24564
b3076f16 24565
8da89711 24566{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
24567echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
24568if test "${ac_cv_lib_tre_regexec+set}" = set; then
24569 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 24570else
8da89711 24571 ac_check_lib_save_LIBS=$LIBS
24572LIBS="-ltre $LIBS"
24573cat >conftest.$ac_ext <<_ACEOF
24574/* confdefs.h. */
b3076f16 24575_ACEOF
8da89711 24576cat confdefs.h >>conftest.$ac_ext
24577cat >>conftest.$ac_ext <<_ACEOF
24578/* end confdefs.h. */
b3076f16 24579
8da89711 24580/* Override any GCC internal prototype to avoid an error.
24581 Use char because int might match the return type of a GCC
24582 builtin and then its argument prototype would still apply. */
24583#ifdef __cplusplus
24584extern "C"
24585#endif
24586char regexec ();
24587int
24588main ()
24589{
24590return regexec ();
24591 ;
24592 return 0;
24593}
24594_ACEOF
24595rm -f conftest.$ac_objext conftest$ac_exeext
24596if { (ac_try="$ac_link"
24597case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600esac
24601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_link") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest$ac_exeext &&
24612 $as_test_x conftest$ac_exeext; then
8da89711 24613 ac_cv_lib_tre_regexec=yes
b3076f16 24614else
8da89711 24615 echo "$as_me: failed program was:" >&5
24616sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 24617
8da89711 24618 ac_cv_lib_tre_regexec=no
a8b2ad8d 24619fi
24620
ff3b058a 24621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 24622 conftest$ac_exeext conftest.$ac_ext
24623LIBS=$ac_check_lib_save_LIBS
b3076f16 24624fi
8da89711 24625{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
24626echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
24627if test $ac_cv_lib_tre_regexec = yes; then
24628 cat >>confdefs.h <<_ACEOF
24629#define HAVE_LIBTRE 1
8de34abd 24630_ACEOF
24631
8da89711 24632 LIBS="-ltre $LIBS"
b3076f16 24633
24634else
8da89711 24635 { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
24636echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
24637 { (exit 1); exit 1; }; }
b3076f16 24638fi
24639
35305a49 24640
2784452e 24641core_version="1.1"
35305a49 24642withval=''
24643
8da89711 24644# Check whether --with-coredumper was given.
24645if test "${with_coredumper+set}" = set; then
24646 withval=$with_coredumper;
a8b2ad8d 24647fi
35305a49 24648
35305a49 24649if test "x$withval" != "x"; then
8da89711 24650 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
24651echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
39edf54a 24652 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
0754f993 24653 LIBS="$LIBS -L$withval/lib"
35305a49 24654else
8da89711 24655 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
24656echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
39edf54a 24657 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
2784452e 24658 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
35305a49 24659fi
8da89711 24660if test "${ac_cv_header_google_coredumper_h+set}" = set; then
24661 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
24662echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
24663if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24665fi
8da89711 24666{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
24667echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
35305a49 24668else
24669 # Is the header compilable?
8da89711 24670{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
24671echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
35305a49 24672cat >conftest.$ac_ext <<_ACEOF
24673/* confdefs.h. */
24674_ACEOF
24675cat confdefs.h >>conftest.$ac_ext
24676cat >>conftest.$ac_ext <<_ACEOF
24677/* end confdefs.h. */
24678$ac_includes_default
8da89711 24679#include <google/coredumper.h>
35305a49 24680_ACEOF
24681rm -f conftest.$ac_objext
a8b2ad8d 24682if { (ac_try="$ac_compile"
24683case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24686esac
24687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_compile") 2>conftest.er1
35305a49 24689 ac_status=$?
24690 grep -v '^ *+' conftest.er1 >conftest.err
24691 rm -f conftest.er1
24692 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24694 (exit $ac_status); } && {
24695 test -z "$ac_c_werror_flag" ||
24696 test ! -s conftest.err
24697 } && test -s conftest.$ac_objext; then
35305a49 24698 ac_header_compiler=yes
24699else
24700 echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
a8b2ad8d 24703 ac_header_compiler=no
35305a49 24704fi
a8b2ad8d 24705
24706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24708echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 24709
24710# Is the header present?
8da89711 24711{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
24712echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
35305a49 24713cat >conftest.$ac_ext <<_ACEOF
24714/* confdefs.h. */
24715_ACEOF
24716cat confdefs.h >>conftest.$ac_ext
24717cat >>conftest.$ac_ext <<_ACEOF
24718/* end confdefs.h. */
8da89711 24719#include <google/coredumper.h>
35305a49 24720_ACEOF
a8b2ad8d 24721if { (ac_try="$ac_cpp conftest.$ac_ext"
24722case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24725esac
24726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 24728 ac_status=$?
24729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24733 (exit $ac_status); } >/dev/null && {
24734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24735 test ! -s conftest.err
24736 }; then
35305a49 24737 ac_header_preproc=yes
24738else
24739 echo "$as_me: failed program was:" >&5
24740sed 's/^/| /' conftest.$ac_ext >&5
24741
24742 ac_header_preproc=no
24743fi
a8b2ad8d 24744
35305a49 24745rm -f conftest.err conftest.$ac_ext
a8b2ad8d 24746{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24747echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 24748
24749# So? What about this header?
24750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24751 yes:no: )
8da89711 24752 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
24753echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
24755echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
35305a49 24756 ac_header_preproc=yes
24757 ;;
24758 no:yes:* )
8da89711 24759 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
24760echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
24761 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
24762echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
24763 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
24764echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
24765 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
24766echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
24767 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
24768echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
24770echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 24771 ( cat <<\_ASBOX
35305a49 24772## -------------------------------------------------- ##
24773## Report this to evilnet-devel@lists.sourceforge.net ##
24774## -------------------------------------------------- ##
24775_ASBOX
a8b2ad8d 24776 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 24777 ;;
24778esac
8da89711 24779{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
24780echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
24781if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24783else
8da89711 24784 ac_cv_header_google_coredumper_h=$ac_header_preproc
24785fi
24786{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
24787echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
24788
24789fi
24790if test $ac_cv_header_google_coredumper_h = yes; then
24791 :
24792else
24793 { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
24794echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
24795fi
24796
24797
24798
24799{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
24800echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
24801if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
24802 echo $ECHO_N "(cached) $ECHO_C" >&6
24803else
24804 ac_check_lib_save_LIBS=$LIBS
24805LIBS="-lcoredumper $LIBS"
24806cat >conftest.$ac_ext <<_ACEOF
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812
24813/* Override any GCC internal prototype to avoid an error.
24814 Use char because int might match the return type of a GCC
24815 builtin and then its argument prototype would still apply. */
24816#ifdef __cplusplus
24817extern "C"
24818#endif
24819char WriteCoreDump ();
24820int
24821main ()
24822{
24823return WriteCoreDump ();
24824 ;
24825 return 0;
24826}
24827_ACEOF
24828rm -f conftest.$ac_objext conftest$ac_exeext
24829if { (ac_try="$ac_link"
24830case "(($ac_try" in
24831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832 *) ac_try_echo=$ac_try;;
24833esac
24834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835 (eval "$ac_link") 2>conftest.er1
24836 ac_status=$?
24837 grep -v '^ *+' conftest.er1 >conftest.err
24838 rm -f conftest.er1
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24841 (exit $ac_status); } && {
24842 test -z "$ac_c_werror_flag" ||
24843 test ! -s conftest.err
24844 } && test -s conftest$ac_exeext &&
24845 $as_test_x conftest$ac_exeext; then
8da89711 24846 ac_cv_lib_coredumper_WriteCoreDump=yes
24847else
24848 echo "$as_me: failed program was:" >&5
24849sed 's/^/| /' conftest.$ac_ext >&5
24850
24851 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 24852fi
35305a49 24853
ff3b058a 24854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 24855 conftest$ac_exeext conftest.$ac_ext
24856LIBS=$ac_check_lib_save_LIBS
35305a49 24857fi
8da89711 24858{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
24859echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
24860if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
24861 cat >>confdefs.h <<_ACEOF
24862#define HAVE_LIBCOREDUMPER 1
24863_ACEOF
24864
24865 LIBS="-lcoredumper $LIBS"
24866
35305a49 24867else
8da89711 24868 { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
24869echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
35305a49 24870fi
24871
24872
73d4cc91 24873withval=''
24874
24875# Check whether --with-ssl was given.
24876if test "${with_ssl+set}" = set; then
24877 withval=$with_ssl;
24878fi
24879
24880if test "x$withval" != "x"; then
24881 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
24882echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
24883 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
24884 LIBS="$LIBS -L$withval/lib"
24885else
24886 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
24887echo "${ECHO_T}Looking for openssl in system " >&6; }
24888fi
24889
24890{ echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
24891echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
24892if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
24893 echo $ECHO_N "(cached) $ECHO_C" >&6
24894else
24895 ac_check_lib_save_LIBS=$LIBS
24896LIBS="-lssl $LIBS"
24897cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903
24904/* Override any GCC internal prototype to avoid an error.
24905 Use char because int might match the return type of a GCC
24906 builtin and then its argument prototype would still apply. */
24907#ifdef __cplusplus
24908extern "C"
24909#endif
24910char BIO_new ();
24911int
24912main ()
24913{
24914return BIO_new ();
24915 ;
24916 return 0;
24917}
24918_ACEOF
24919rm -f conftest.$ac_objext conftest$ac_exeext
24920if { (ac_try="$ac_link"
24921case "(($ac_try" in
24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923 *) ac_try_echo=$ac_try;;
24924esac
24925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926 (eval "$ac_link") 2>conftest.er1
24927 ac_status=$?
24928 grep -v '^ *+' conftest.er1 >conftest.err
24929 rm -f conftest.er1
24930 cat conftest.err >&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24932 (exit $ac_status); } && {
24933 test -z "$ac_c_werror_flag" ||
24934 test ! -s conftest.err
24935 } && test -s conftest$ac_exeext &&
24936 $as_test_x conftest$ac_exeext; then
73d4cc91 24937 ac_cv_lib_ssl_BIO_new=yes
24938else
24939 echo "$as_me: failed program was:" >&5
24940sed 's/^/| /' conftest.$ac_ext >&5
24941
24942 ac_cv_lib_ssl_BIO_new=no
24943fi
24944
ff3b058a 24945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73d4cc91 24946 conftest$ac_exeext conftest.$ac_ext
24947LIBS=$ac_check_lib_save_LIBS
24948fi
24949{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
24950echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
24951if test $ac_cv_lib_ssl_BIO_new = yes; then
24952
24953LIBS="-lssl $LIBS"
24954
24955for ac_header in openssl/bio.h
24956do
24957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24963fi
24964ac_res=`eval echo '${'$as_ac_Header'}'`
24965 { echo "$as_me:$LINENO: result: $ac_res" >&5
24966echo "${ECHO_T}$ac_res" >&6; }
24967else
24968 # Is the header compilable?
24969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24971cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
24977$ac_includes_default
24978#include <$ac_header>
24979_ACEOF
24980rm -f conftest.$ac_objext
24981if { (ac_try="$ac_compile"
24982case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24985esac
24986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987 (eval "$ac_compile") 2>conftest.er1
24988 ac_status=$?
24989 grep -v '^ *+' conftest.er1 >conftest.err
24990 rm -f conftest.er1
24991 cat conftest.err >&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 24993 (exit $ac_status); } && {
24994 test -z "$ac_c_werror_flag" ||
24995 test ! -s conftest.err
24996 } && test -s conftest.$ac_objext; then
73d4cc91 24997 ac_header_compiler=yes
24998else
24999 echo "$as_me: failed program was:" >&5
25000sed 's/^/| /' conftest.$ac_ext >&5
25001
25002 ac_header_compiler=no
25003fi
25004
25005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25007echo "${ECHO_T}$ac_header_compiler" >&6; }
25008
25009# Is the header present?
25010{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25012cat >conftest.$ac_ext <<_ACEOF
25013/* confdefs.h. */
25014_ACEOF
25015cat confdefs.h >>conftest.$ac_ext
25016cat >>conftest.$ac_ext <<_ACEOF
25017/* end confdefs.h. */
25018#include <$ac_header>
25019_ACEOF
25020if { (ac_try="$ac_cpp conftest.$ac_ext"
25021case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25024esac
25025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25027 ac_status=$?
25028 grep -v '^ *+' conftest.er1 >conftest.err
25029 rm -f conftest.er1
25030 cat conftest.err >&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 25032 (exit $ac_status); } >/dev/null && {
25033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25034 test ! -s conftest.err
25035 }; then
73d4cc91 25036 ac_header_preproc=yes
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041 ac_header_preproc=no
25042fi
25043
25044rm -f conftest.err conftest.$ac_ext
25045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25046echo "${ECHO_T}$ac_header_preproc" >&6; }
25047
25048# So? What about this header?
25049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25050 yes:no: )
25051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25055 ac_header_preproc=yes
25056 ;;
25057 no:yes:* )
25058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25070 ( cat <<\_ASBOX
25071## -------------------------------------------------- ##
25072## Report this to evilnet-devel@lists.sourceforge.net ##
25073## -------------------------------------------------- ##
25074_ASBOX
25075 ) | sed "s/^/$as_me: WARNING: /" >&2
25076 ;;
25077esac
25078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25082else
25083 eval "$as_ac_Header=\$ac_header_preproc"
25084fi
25085ac_res=`eval echo '${'$as_ac_Header'}'`
25086 { echo "$as_me:$LINENO: result: $ac_res" >&5
25087echo "${ECHO_T}$ac_res" >&6; }
25088
25089fi
25090if test `eval echo '${'$as_ac_Header'}'` = yes; then
25091 cat >>confdefs.h <<_ACEOF
25092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25093_ACEOF
25094
25095
25096cat >>confdefs.h <<\_ACEOF
25097#define WITH_SSL 1
25098_ACEOF
25099
25100ssl_message="LDAP library: enabled"
25101
25102else
25103
25104if test "x$withval" != "x"; then
25105 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
25106echo "$as_me: error: ssl headers not found" >&2;}
25107 { (exit 1); exit 1; }; }
25108fi
25109
25110fi
25111
25112done
25113
25114
25115else
25116
25117if test "x$withval" != "x"; then
25118 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
25119echo "$as_me: error: libldap not found or not valid" >&2;}
25120 { (exit 1); exit 1; }; }
25121fi
25122
25123
25124fi
25125
25126{ echo "$as_me:$LINENO: result: $LIBS" >&5
25127echo "${ECHO_T}$LIBS" >&6; }
25128
25129
8da89711 25130withval=''
35305a49 25131
8da89711 25132# Check whether --with-ldap was given.
25133if test "${with_ldap+set}" = set; then
25134 withval=$with_ldap;
25135fi
25136
25137if test "x$withval" != "x"; then
25138 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
25139echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
25140 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
25141 LIBS="$LIBS -L$withval/lib"
25142else
25143 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
25144echo "${ECHO_T}Looking for ldap in system " >&6; }
25145fi
25146
39edf54a 25147{ echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
25148echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
25149if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
35305a49 25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25151else
25152 ac_check_lib_save_LIBS=$LIBS
8da89711 25153LIBS="-lldap $LIBS"
35305a49 25154cat >conftest.$ac_ext <<_ACEOF
25155/* confdefs.h. */
25156_ACEOF
25157cat confdefs.h >>conftest.$ac_ext
25158cat >>conftest.$ac_ext <<_ACEOF
25159/* end confdefs.h. */
25160
a8b2ad8d 25161/* Override any GCC internal prototype to avoid an error.
25162 Use char because int might match the return type of a GCC
25163 builtin and then its argument prototype would still apply. */
35305a49 25164#ifdef __cplusplus
25165extern "C"
25166#endif
39edf54a 25167char ldap_simple_bind_s ();
35305a49 25168int
25169main ()
25170{
39edf54a 25171return ldap_simple_bind_s ();
35305a49 25172 ;
25173 return 0;
25174}
25175_ACEOF
25176rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 25177if { (ac_try="$ac_link"
25178case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25181esac
25182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183 (eval "$ac_link") 2>conftest.er1
35305a49 25184 ac_status=$?
25185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 25189 (exit $ac_status); } && {
25190 test -z "$ac_c_werror_flag" ||
25191 test ! -s conftest.err
25192 } && test -s conftest$ac_exeext &&
25193 $as_test_x conftest$ac_exeext; then
39edf54a 25194 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 25195else
35305a49 25196 echo "$as_me: failed program was:" >&5
25197sed 's/^/| /' conftest.$ac_ext >&5
25198
39edf54a 25199 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 25200fi
a8b2ad8d 25201
ff3b058a 25202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35305a49 25203 conftest$ac_exeext conftest.$ac_ext
25204LIBS=$ac_check_lib_save_LIBS
5b1166fd 25205fi
39edf54a 25206{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
25207echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
25208if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
b3076f16 25209
39edf54a 25210LIBS="-lldap $LIBS"
b3076f16 25211
8da89711 25212for ac_header in ldap.h
25213do
25214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25220fi
8da89711 25221ac_res=`eval echo '${'$as_ac_Header'}'`
25222 { echo "$as_me:$LINENO: result: $ac_res" >&5
25223echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 25224else
25225 # Is the header compilable?
8da89711 25226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a8b2ad8d 25228cat >conftest.$ac_ext <<_ACEOF
25229/* confdefs.h. */
25230_ACEOF
25231cat confdefs.h >>conftest.$ac_ext
25232cat >>conftest.$ac_ext <<_ACEOF
25233/* end confdefs.h. */
25234$ac_includes_default
8da89711 25235#include <$ac_header>
a8b2ad8d 25236_ACEOF
25237rm -f conftest.$ac_objext
25238if { (ac_try="$ac_compile"
25239case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25242esac
25243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25244 (eval "$ac_compile") 2>conftest.er1
25245 ac_status=$?
25246 grep -v '^ *+' conftest.er1 >conftest.err
25247 rm -f conftest.er1
25248 cat conftest.err >&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 25250 (exit $ac_status); } && {
25251 test -z "$ac_c_werror_flag" ||
25252 test ! -s conftest.err
25253 } && test -s conftest.$ac_objext; then
a8b2ad8d 25254 ac_header_compiler=yes
25255else
25256 echo "$as_me: failed program was:" >&5
25257sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 25258
a8b2ad8d 25259 ac_header_compiler=no
25260fi
b3076f16 25261
a8b2ad8d 25262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25263{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25264echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 25265
a8b2ad8d 25266# Is the header present?
8da89711 25267{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a8b2ad8d 25269cat >conftest.$ac_ext <<_ACEOF
25270/* confdefs.h. */
25271_ACEOF
25272cat confdefs.h >>conftest.$ac_ext
25273cat >>conftest.$ac_ext <<_ACEOF
25274/* end confdefs.h. */
8da89711 25275#include <$ac_header>
a8b2ad8d 25276_ACEOF
25277if { (ac_try="$ac_cpp conftest.$ac_ext"
25278case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25281esac
25282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25284 ac_status=$?
25285 grep -v '^ *+' conftest.er1 >conftest.err
25286 rm -f conftest.er1
25287 cat conftest.err >&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff3b058a 25289 (exit $ac_status); } >/dev/null && {
25290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 }; then
a8b2ad8d 25293 ac_header_preproc=yes
25294else
25295 echo "$as_me: failed program was:" >&5
25296sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 25297
a8b2ad8d 25298 ac_header_preproc=no
25299fi
ec311f39 25300
a8b2ad8d 25301rm -f conftest.err conftest.$ac_ext
25302{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25303echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 25304
a8b2ad8d 25305# So? What about this header?
25306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25307 yes:no: )
8da89711 25308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
a8b2ad8d 25312 ac_header_preproc=yes
25313 ;;
25314 no:yes:* )
8da89711 25315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 25327 ( cat <<\_ASBOX
25328## -------------------------------------------------- ##
25329## Report this to evilnet-devel@lists.sourceforge.net ##
25330## -------------------------------------------------- ##
25331_ASBOX
25332 ) | sed "s/^/$as_me: WARNING: /" >&2
25333 ;;
25334esac
8da89711 25335{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25339else
8da89711 25340 eval "$as_ac_Header=\$ac_header_preproc"
a8b2ad8d 25341fi
8da89711 25342ac_res=`eval echo '${'$as_ac_Header'}'`
25343 { echo "$as_me:$LINENO: result: $ac_res" >&5
25344echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 25345
25346fi
8da89711 25347if test `eval echo '${'$as_ac_Header'}'` = yes; then
25348 cat >>confdefs.h <<_ACEOF
25349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25350_ACEOF
a8b2ad8d 25351
25352
8da89711 25353cat >>confdefs.h <<\_ACEOF
25354#define WITH_LDAP 1
a8b2ad8d 25355_ACEOF
a8b2ad8d 25356
8da89711 25357ldap_message="LDAP library: enabled"
25358
a8b2ad8d 25359else
a8b2ad8d 25360
db9a9a8a 25361if test "x$withval" != "x"; then
8da89711 25362 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
25363echo "$as_me: error: ldap.h not found" >&2;}
25364 { (exit 1); exit 1; }; }
a8b2ad8d 25365fi
25366
a8b2ad8d 25367fi
a8b2ad8d 25368
8da89711 25369done
25370
a8b2ad8d 25371
25372else
8da89711 25373
db9a9a8a 25374if test "x$withval" != "x"; then
8da89711 25375 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
25376echo "$as_me: error: libldap not found or not valid" >&2;}
25377 { (exit 1); exit 1; }; }
25378fi
25379
25380
a8b2ad8d 25381fi
25382
39edf54a 25383{ echo "$as_me:$LINENO: result: $LIBS" >&5
25384echo "${ECHO_T}$LIBS" >&6; }
a8b2ad8d 25385
25386
25387cat >>confdefs.h <<_ACEOF
25388#define CODENAME "${CODENAME}"
25389_ACEOF
25390
25391
25392
25393
25394
25395
25396ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
25397
25398cat >confcache <<\_ACEOF
25399# This file is a shell script that caches the results of configure
25400# tests run on this system so they can be shared between configure
25401# scripts and configure runs, see configure's option --config-cache.
25402# It is not useful on other systems. If it contains results you don't
25403# want to keep, you may remove or edit it.
25404#
b3076f16 25405# config.status only pays attention to the cache file if you give it
25406# the --recheck option to rerun configure.
25407#
25408# `ac_cv_env_foo' variables (set or unset) will be overridden when
25409# loading this file, other *unset* `ac_cv_foo' will be assigned the
25410# following values.
25411
25412_ACEOF
25413
25414# The following way of writing the cache mishandles newlines in values,
25415# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 25416# So, we kill variables containing newlines.
b3076f16 25417# Ultrix sh set writes to stderr and can't be redirected directly,
25418# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 25419(
25420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25421 eval ac_val=\$$ac_var
25422 case $ac_val in #(
25423 *${as_nl}*)
25424 case $ac_var in #(
25425 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25426echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25427 esac
25428 case $ac_var in #(
25429 _ | IFS | as_nl) ;; #(
25430 *) $as_unset $ac_var ;;
25431 esac ;;
25432 esac
25433 done
25434
b3076f16 25435 (set) 2>&1 |
a8b2ad8d 25436 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25437 *${as_nl}ac_space=\ *)
b3076f16 25438 # `set' does not quote correctly, so add quotes (double-quote
25439 # substitution turns \\\\ into \\, and sed turns \\ into \).
25440 sed -n \
25441 "s/'/'\\\\''/g;
25442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 25443 ;; #(
b3076f16 25444 *)
25445 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 25446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 25447 ;;
a8b2ad8d 25448 esac |
25449 sort
25450) |
b3076f16 25451 sed '
a8b2ad8d 25452 /^ac_cv_env_/b end
b3076f16 25453 t clear
a8b2ad8d 25454 :clear
b3076f16 25455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25456 t end
a8b2ad8d 25457 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25458 :end' >>confcache
25459if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25460 if test -w "$cache_file"; then
25461 test "x$cache_file" != "x/dev/null" &&
25462 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25463echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 25464 cat confcache >$cache_file
25465 else
a8b2ad8d 25466 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25467echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 25468 fi
25469fi
25470rm -f confcache
25471
25472test "x$prefix" = xNONE && prefix=$ac_default_prefix
25473# Let make expand exec_prefix.
25474test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25475
b3076f16 25476DEFS=-DHAVE_CONFIG_H
25477
25478ac_libobjs=
25479ac_ltlibobjs=
25480for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25481 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 25482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25483 ac_i=`echo "$ac_i" | sed "$ac_script"`
25484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25485 # will be set to the directory where LIBOBJS objects are built.
25486 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25487 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 25488done
25489LIBOBJS=$ac_libobjs
25490
25491LTLIBOBJS=$ac_ltlibobjs
25492
25493
ec1a68c8 25494if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25495 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25496Usually this means the macro was only invoked conditionally." >&5
25497echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25498Usually this means the macro was only invoked conditionally." >&2;}
25499 { (exit 1); exit 1; }; }
25500fi
25501if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25502 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25503Usually this means the macro was only invoked conditionally." >&5
25504echo "$as_me: error: conditional \"AMDEP\" was never defined.
25505Usually this means the macro was only invoked conditionally." >&2;}
25506 { (exit 1); exit 1; }; }
25507fi
25508if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25509 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25510Usually this means the macro was only invoked conditionally." >&5
25511echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25512Usually this means the macro was only invoked conditionally." >&2;}
25513 { (exit 1); exit 1; }; }
25514fi
25515if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25516 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25517Usually this means the macro was only invoked conditionally." >&5
25518echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25519Usually this means the macro was only invoked conditionally." >&2;}
25520 { (exit 1); exit 1; }; }
25521fi
ff3b058a 25522if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25523 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25524Usually this means the macro was only invoked conditionally." >&5
25525echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25526Usually this means the macro was only invoked conditionally." >&2;}
25527 { (exit 1); exit 1; }; }
25528fi
b3076f16 25529
25530: ${CONFIG_STATUS=./config.status}
25531ac_clean_files_save=$ac_clean_files
25532ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25533{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25534echo "$as_me: creating $CONFIG_STATUS" >&6;}
25535cat >$CONFIG_STATUS <<_ACEOF
25536#! $SHELL
25537# Generated by $as_me.
25538# Run this file to recreate the current configuration.
25539# Compiler output produced by configure, useful for debugging
25540# configure, is in config.log if it exists.
25541
25542debug=false
25543ac_cs_recheck=false
25544ac_cs_silent=false
25545SHELL=\${CONFIG_SHELL-$SHELL}
25546_ACEOF
25547
25548cat >>$CONFIG_STATUS <<\_ACEOF
25549## --------------------- ##
25550## M4sh Initialization. ##
25551## --------------------- ##
25552
ff3b058a 25553# Be more Bourne compatible
25554DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 25555if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25556 emulate sh
25557 NULLCMD=:
25558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25559 # is contrary to our usage. Disable this feature.
25560 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 25561 setopt NO_GLOB_SUBST
25562else
ff3b058a 25563 case `(set -o) 2>/dev/null` in
25564 *posix*) set -o posix ;;
25565esac
25566
b3076f16 25567fi
ff3b058a 25568
25569
b3076f16 25570
a8b2ad8d 25571
25572# PATH needs CR
25573# Avoid depending upon Character Ranges.
25574as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25575as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25576as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25577as_cr_digits='0123456789'
25578as_cr_alnum=$as_cr_Letters$as_cr_digits
25579
25580# The user is always right.
25581if test "${PATH_SEPARATOR+set}" != set; then
25582 echo "#! /bin/sh" >conf$$.sh
25583 echo "exit 0" >>conf$$.sh
25584 chmod +x conf$$.sh
25585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25586 PATH_SEPARATOR=';'
25587 else
25588 PATH_SEPARATOR=:
25589 fi
25590 rm -f conf$$.sh
25591fi
25592
b3076f16 25593# Support unset when possible.
25594if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25595 as_unset=unset
25596else
25597 as_unset=false
25598fi
25599
25600
a8b2ad8d 25601# IFS
25602# We need space, tab and new line, in precisely that order. Quoting is
25603# there to prevent editors from complaining about space-tab.
25604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25605# splitting by setting IFS to empty value.)
25606as_nl='
25607'
25608IFS=" "" $as_nl"
25609
25610# Find who we are. Look in the path if we contain no directory separator.
25611case $0 in
25612 *[\\/]* ) as_myself=$0 ;;
25613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25614for as_dir in $PATH
25615do
25616 IFS=$as_save_IFS
25617 test -z "$as_dir" && as_dir=.
25618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25619done
25620IFS=$as_save_IFS
25621
25622 ;;
25623esac
25624# We did not find ourselves, most probably we were run as `sh COMMAND'
25625# in which case we are not to be found in the path.
25626if test "x$as_myself" = x; then
25627 as_myself=$0
25628fi
25629if test ! -f "$as_myself"; then
25630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25631 { (exit 1); exit 1; }
25632fi
25633
b3076f16 25634# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 25635for as_var in ENV MAIL MAILPATH
25636do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25637done
b3076f16 25638PS1='$ '
25639PS2='> '
25640PS4='+ '
25641
25642# NLS nuisances.
25643for as_var in \
25644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25646 LC_TELEPHONE LC_TIME
25647do
25648 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25649 eval $as_var=C; export $as_var
25650 else
a8b2ad8d 25651 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 25652 fi
25653done
25654
25655# Required to use basename.
a8b2ad8d 25656if expr a : '\(a\)' >/dev/null 2>&1 &&
25657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 25658 as_expr=expr
25659else
25660 as_expr=false
25661fi
25662
a8b2ad8d 25663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 25664 as_basename=basename
25665else
25666 as_basename=false
25667fi
25668
25669
25670# Name of the executable.
a8b2ad8d 25671as_me=`$as_basename -- "$0" ||
b3076f16 25672$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25673 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 25674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 25675echo X/"$0" |
a8b2ad8d 25676 sed '/^.*\/\([^/][^/]*\)\/*$/{
25677 s//\1/
25678 q
25679 }
25680 /^X\/\(\/\/\)$/{
25681 s//\1/
25682 q
25683 }
25684 /^X\/\(\/\).*/{
25685 s//\1/
25686 q
25687 }
25688 s/.*/./; q'`
b3076f16 25689
a8b2ad8d 25690# CDPATH.
25691$as_unset CDPATH
b3076f16 25692
25693
b3076f16 25694
b3076f16 25695 as_lineno_1=$LINENO
25696 as_lineno_2=$LINENO
b3076f16 25697 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 25698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 25699
25700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25701 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 25702 # line-number line after each line using $LINENO; the second 'sed'
25703 # does the real work. The second script uses 'N' to pair each
25704 # line-number line with the line containing $LINENO, and appends
25705 # trailing '-' during substitution so that $LINENO is not a special
25706 # case at line end.
b3076f16 25707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 25708 # scripts with optimization help from Paolo Bonzini. Blame Lee
25709 # E. McMahon (1931-1989) for sed's syntax. :-)
25710 sed -n '
25711 p
25712 /[$]LINENO/=
25713 ' <$as_myself |
b3076f16 25714 sed '
a8b2ad8d 25715 s/[$]LINENO.*/&-/
25716 t lineno
25717 b
25718 :lineno
b3076f16 25719 N
a8b2ad8d 25720 :loop
25721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 25722 t loop
a8b2ad8d 25723 s/-\n.*//
b3076f16 25724 ' >$as_me.lineno &&
a8b2ad8d 25725 chmod +x "$as_me.lineno" ||
25726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 25727 { (exit 1); exit 1; }; }
25728
25729 # Don't try to exec as it changes $[0], causing all sort of problems
25730 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 25731 # original and so on. Autoconf is especially sensitive to this).
25732 . "./$as_me.lineno"
b3076f16 25733 # Exit status is that of the last command.
25734 exit
25735}
25736
25737
a8b2ad8d 25738if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25739 as_dirname=dirname
25740else
25741 as_dirname=false
25742fi
25743
25744ECHO_C= ECHO_N= ECHO_T=
25745case `echo -n x` in
25746-n*)
25747 case `echo 'x\c'` in
25748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25749 *) ECHO_C='\c';;
25750 esac;;
25751*)
25752 ECHO_N='-n';;
b3076f16 25753esac
25754
a8b2ad8d 25755if expr a : '\(a\)' >/dev/null 2>&1 &&
25756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 25757 as_expr=expr
25758else
25759 as_expr=false
25760fi
25761
25762rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 25763if test -d conf$$.dir; then
25764 rm -f conf$$.dir/conf$$.file
25765else
25766 rm -f conf$$.dir
25767 mkdir conf$$.dir
25768fi
b3076f16 25769echo >conf$$.file
25770if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 25771 as_ln_s='ln -s'
25772 # ... but there are two gotchas:
25773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25775 # In both cases, we have to default to `cp -p'.
25776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 25777 as_ln_s='cp -p'
b3076f16 25778elif ln conf$$.file conf$$ 2>/dev/null; then
25779 as_ln_s=ln
25780else
25781 as_ln_s='cp -p'
25782fi
a8b2ad8d 25783rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25784rmdir conf$$.dir 2>/dev/null
b3076f16 25785
25786if mkdir -p . 2>/dev/null; then
25787 as_mkdir_p=:
25788else
25789 test -d ./-p && rmdir ./-p
25790 as_mkdir_p=false
25791fi
25792
ff3b058a 25793if test -x / >/dev/null 2>&1; then
25794 as_test_x='test -x'
a8b2ad8d 25795else
ff3b058a 25796 if ls -dL / >/dev/null 2>&1; then
25797 as_ls_L_option=L
25798 else
25799 as_ls_L_option=
25800 fi
25801 as_test_x='
25802 eval sh -c '\''
25803 if test -d "$1"; then
25804 test -d "$1/.";
25805 else
25806 case $1 in
25807 -*)set "./$1";;
25808 esac;
25809 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25810 ???[sx]*):;;*)false;;esac;fi
25811 '\'' sh
25812 '
a8b2ad8d 25813fi
ff3b058a 25814as_executable_p=$as_test_x
b3076f16 25815
25816# Sed expression to map a string onto a valid CPP name.
25817as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25818
25819# Sed expression to map a string onto a valid variable name.
25820as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25821
25822
b3076f16 25823exec 6>&1
25824
a8b2ad8d 25825# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 25826# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 25827# values after options handling.
25828ac_log="
ff3b058a 25829This file was extended by X3 $as_me 2.0-rc1, which was
25830generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 25831
25832 CONFIG_FILES = $CONFIG_FILES
25833 CONFIG_HEADERS = $CONFIG_HEADERS
25834 CONFIG_LINKS = $CONFIG_LINKS
25835 CONFIG_COMMANDS = $CONFIG_COMMANDS
25836 $ $0 $@
25837
a8b2ad8d 25838on `(hostname || uname -n) 2>/dev/null | sed 1q`
25839"
25840
b3076f16 25841_ACEOF
25842
a8b2ad8d 25843cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 25844# Files that config.status was made for.
a8b2ad8d 25845config_files="$ac_config_files"
25846config_headers="$ac_config_headers"
25847config_commands="$ac_config_commands"
b3076f16 25848
a8b2ad8d 25849_ACEOF
b3076f16 25850
25851cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 25852ac_cs_usage="\
25853\`$as_me' instantiates files from templates according to the
25854current configuration.
25855
25856Usage: $0 [OPTIONS] [FILE]...
25857
25858 -h, --help print this help, then exit
ff3b058a 25859 -V, --version print version number and configuration settings, then exit
b3076f16 25860 -q, --quiet do not print progress messages
25861 -d, --debug don't remove temporary files
25862 --recheck update $as_me by reconfiguring in the same conditions
25863 --file=FILE[:TEMPLATE]
25864 instantiate the configuration file FILE
25865 --header=FILE[:TEMPLATE]
25866 instantiate the configuration header FILE
25867
25868Configuration files:
25869$config_files
25870
25871Configuration headers:
25872$config_headers
25873
ec1a68c8 25874Configuration commands:
25875$config_commands
25876
b3076f16 25877Report bugs to <bug-autoconf@gnu.org>."
b3076f16 25878
a8b2ad8d 25879_ACEOF
b3076f16 25880cat >>$CONFIG_STATUS <<_ACEOF
25881ac_cs_version="\\
ff3b058a 25882X3 config.status 2.0-rc1
25883configured by $0, generated by GNU Autoconf 2.61,
a8b2ad8d 25884 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 25885
a8b2ad8d 25886Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 25887This config.status script is free software; the Free Software Foundation
25888gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 25889
25890ac_pwd='$ac_pwd'
25891srcdir='$srcdir'
25892INSTALL='$INSTALL'
ff3b058a 25893MKDIR_P='$MKDIR_P'
b3076f16 25894_ACEOF
25895
25896cat >>$CONFIG_STATUS <<\_ACEOF
25897# If no file are specified by the user, then we need to provide default
25898# value. By we need to know if files were specified by the user.
25899ac_need_defaults=:
25900while test $# != 0
25901do
25902 case $1 in
25903 --*=*)
a8b2ad8d 25904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 25906 ac_shift=:
25907 ;;
a8b2ad8d 25908 *)
b3076f16 25909 ac_option=$1
25910 ac_optarg=$2
25911 ac_shift=shift
25912 ;;
b3076f16 25913 esac
25914
25915 case $ac_option in
25916 # Handling of the options.
b3076f16 25917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25918 ac_cs_recheck=: ;;
a8b2ad8d 25919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25920 echo "$ac_cs_version"; exit ;;
25921 --debug | --debu | --deb | --de | --d | -d )
b3076f16 25922 debug=: ;;
25923 --file | --fil | --fi | --f )
25924 $ac_shift
25925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25926 ac_need_defaults=false;;
25927 --header | --heade | --head | --hea )
25928 $ac_shift
25929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25930 ac_need_defaults=false;;
a8b2ad8d 25931 --he | --h)
25932 # Conflict between --help and --header
25933 { echo "$as_me: error: ambiguous option: $1
25934Try \`$0 --help' for more information." >&2
25935 { (exit 1); exit 1; }; };;
25936 --help | --hel | -h )
25937 echo "$ac_cs_usage"; exit ;;
b3076f16 25938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25940 ac_cs_silent=: ;;
25941
25942 # This is an error.
a8b2ad8d 25943 -*) { echo "$as_me: error: unrecognized option: $1
25944Try \`$0 --help' for more information." >&2
b3076f16 25945 { (exit 1); exit 1; }; } ;;
25946
a8b2ad8d 25947 *) ac_config_targets="$ac_config_targets $1"
25948 ac_need_defaults=false ;;
b3076f16 25949
25950 esac
25951 shift
25952done
25953
25954ac_configure_extra_args=
25955
25956if $ac_cs_silent; then
25957 exec 6>/dev/null
25958 ac_configure_extra_args="$ac_configure_extra_args --silent"
25959fi
25960
25961_ACEOF
25962cat >>$CONFIG_STATUS <<_ACEOF
25963if \$ac_cs_recheck; then
a8b2ad8d 25964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25965 CONFIG_SHELL=$SHELL
25966 export CONFIG_SHELL
25967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 25968fi
25969
25970_ACEOF
a8b2ad8d 25971cat >>$CONFIG_STATUS <<\_ACEOF
25972exec 5>>config.log
25973{
25974 echo
25975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25976## Running $as_me. ##
25977_ASBOX
25978 echo "$ac_log"
25979} >&5
b3076f16 25980
a8b2ad8d 25981_ACEOF
ec1a68c8 25982cat >>$CONFIG_STATUS <<_ACEOF
25983#
a8b2ad8d 25984# INIT-COMMANDS
ec1a68c8 25985#
ec1a68c8 25986AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25987
25988_ACEOF
b3076f16 25989
b3076f16 25990cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 25991
25992# Handling of arguments.
b3076f16 25993for ac_config_target in $ac_config_targets
25994do
a8b2ad8d 25995 case $ac_config_target in
25996 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25997 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25998 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25999 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
26000 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26001
b3076f16 26002 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26003echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26004 { (exit 1); exit 1; }; };;
26005 esac
26006done
26007
a8b2ad8d 26008
b3076f16 26009# If the user did not use the arguments to specify the items to instantiate,
26010# then the envvar interface is used. Set only those that are not.
26011# We use the long form for the default assignment because of an extremely
26012# bizarre bug on SunOS 4.1.3.
26013if $ac_need_defaults; then
26014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 26016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 26017fi
26018
26019# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 26020# simply because there is no reason against having it here, and in addition,
b3076f16 26021# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 26022# Hook for its removal unless debugging.
26023# Note that there is a small window in which the directory will not be cleaned:
26024# after its creation but before its name has been assigned to `$tmp'.
b3076f16 26025$debug ||
26026{
a8b2ad8d 26027 tmp=
26028 trap 'exit_status=$?
26029 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26030' 0
b3076f16 26031 trap '{ (exit 1); exit 1; }' 1 2 13 15
26032}
b3076f16 26033# Create a (secure) tmp directory for tmp files.
26034
26035{
a8b2ad8d 26036 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 26037 test -n "$tmp" && test -d "$tmp"
26038} ||
26039{
a8b2ad8d 26040 tmp=./conf$$-$RANDOM
26041 (umask 077 && mkdir "$tmp")
b3076f16 26042} ||
26043{
26044 echo "$me: cannot create a temporary directory in ." >&2
26045 { (exit 1); exit 1; }
26046}
26047
b3076f16 26048#
a8b2ad8d 26049# Set up the sed scripts for CONFIG_FILES section.
b3076f16 26050#
26051
26052# No need to generate the scripts if there are no CONFIG_FILES.
26053# This happens for instance when ./config.status config.h
a8b2ad8d 26054if test -n "$CONFIG_FILES"; then
26055
26056_ACEOF
26057
26058
26059
26060ac_delim='%!_!# '
26061for ac_last_try in false false false false false :; do
26062 cat >conf$$subs.sed <<_ACEOF
26063SHELL!$SHELL$ac_delim
26064PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26065PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26066PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26067PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26068PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26069PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26070exec_prefix!$exec_prefix$ac_delim
26071prefix!$prefix$ac_delim
26072program_transform_name!$program_transform_name$ac_delim
26073bindir!$bindir$ac_delim
26074sbindir!$sbindir$ac_delim
26075libexecdir!$libexecdir$ac_delim
26076datarootdir!$datarootdir$ac_delim
26077datadir!$datadir$ac_delim
26078sysconfdir!$sysconfdir$ac_delim
26079sharedstatedir!$sharedstatedir$ac_delim
26080localstatedir!$localstatedir$ac_delim
26081includedir!$includedir$ac_delim
26082oldincludedir!$oldincludedir$ac_delim
26083docdir!$docdir$ac_delim
26084infodir!$infodir$ac_delim
26085htmldir!$htmldir$ac_delim
26086dvidir!$dvidir$ac_delim
26087pdfdir!$pdfdir$ac_delim
26088psdir!$psdir$ac_delim
26089libdir!$libdir$ac_delim
26090localedir!$localedir$ac_delim
26091mandir!$mandir$ac_delim
26092DEFS!$DEFS$ac_delim
26093ECHO_C!$ECHO_C$ac_delim
26094ECHO_N!$ECHO_N$ac_delim
26095ECHO_T!$ECHO_T$ac_delim
26096LIBS!$LIBS$ac_delim
26097build_alias!$build_alias$ac_delim
26098host_alias!$host_alias$ac_delim
26099target_alias!$target_alias$ac_delim
26100build!$build$ac_delim
26101build_cpu!$build_cpu$ac_delim
26102build_vendor!$build_vendor$ac_delim
26103build_os!$build_os$ac_delim
26104host!$host$ac_delim
26105host_cpu!$host_cpu$ac_delim
26106host_vendor!$host_vendor$ac_delim
26107host_os!$host_os$ac_delim
26108target!$target$ac_delim
26109target_cpu!$target_cpu$ac_delim
26110target_vendor!$target_vendor$ac_delim
26111target_os!$target_os$ac_delim
26112INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26113INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26114INSTALL_DATA!$INSTALL_DATA$ac_delim
ff3b058a 26115am__isrc!$am__isrc$ac_delim
a8b2ad8d 26116CYGPATH_W!$CYGPATH_W$ac_delim
26117PACKAGE!$PACKAGE$ac_delim
26118VERSION!$VERSION$ac_delim
26119ACLOCAL!$ACLOCAL$ac_delim
26120AUTOCONF!$AUTOCONF$ac_delim
26121AUTOMAKE!$AUTOMAKE$ac_delim
26122AUTOHEADER!$AUTOHEADER$ac_delim
26123MAKEINFO!$MAKEINFO$ac_delim
26124install_sh!$install_sh$ac_delim
26125STRIP!$STRIP$ac_delim
26126INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26127mkdir_p!$mkdir_p$ac_delim
26128AWK!$AWK$ac_delim
26129SET_MAKE!$SET_MAKE$ac_delim
26130am__leading_dot!$am__leading_dot$ac_delim
26131AMTAR!$AMTAR$ac_delim
26132am__tar!$am__tar$ac_delim
26133am__untar!$am__untar$ac_delim
26134MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26135MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26136MAINT!$MAINT$ac_delim
26137CC!$CC$ac_delim
26138CFLAGS!$CFLAGS$ac_delim
26139LDFLAGS!$LDFLAGS$ac_delim
26140CPPFLAGS!$CPPFLAGS$ac_delim
26141ac_ct_CC!$ac_ct_CC$ac_delim
26142EXEEXT!$EXEEXT$ac_delim
26143OBJEXT!$OBJEXT$ac_delim
26144DEPDIR!$DEPDIR$ac_delim
26145am__include!$am__include$ac_delim
26146am__quote!$am__quote$ac_delim
26147AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26148AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26149AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26150CCDEPMODE!$CCDEPMODE$ac_delim
26151am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26152am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26153RANLIB!$RANLIB$ac_delim
ff3b058a 26154SED!$SED$ac_delim
a8b2ad8d 26155GREP!$GREP$ac_delim
26156EGREP!$EGREP$ac_delim
ff3b058a 26157LN_S!$LN_S$ac_delim
26158ECHO!$ECHO$ac_delim
26159AR!$AR$ac_delim
a8b2ad8d 26160_ACEOF
26161
26162 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26163 break
26164 elif $ac_last_try; then
26165 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26166echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26167 { (exit 1); exit 1; }; }
26168 else
26169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 26170 fi
a8b2ad8d 26171done
b3076f16 26172
a8b2ad8d 26173ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26174if test -n "$ac_eof"; then
26175 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26176 ac_eof=`expr $ac_eof + 1`
26177fi
26178
26179cat >>$CONFIG_STATUS <<_ACEOF
26180cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26181/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 26182_ACEOF
a8b2ad8d 26183sed '
26184s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26185s/^/s,@/; s/!/@,|#_!!_#|/
26186:n
26187t n
26188s/'"$ac_delim"'$/,g/; t
26189s/$/\\/; p
26190N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26191' >>$CONFIG_STATUS <conf$$subs.sed
26192rm -f conf$$subs.sed
26193cat >>$CONFIG_STATUS <<_ACEOF
26194CEOF$ac_eof
26195_ACEOF
26196
26197
26198ac_delim='%!_!# '
26199for ac_last_try in false false false false false :; do
26200 cat >conf$$subs.sed <<_ACEOF
ff3b058a 26201CPP!$CPP$ac_delim
26202CXX!$CXX$ac_delim
26203CXXFLAGS!$CXXFLAGS$ac_delim
26204ac_ct_CXX!$ac_ct_CXX$ac_delim
26205CXXDEPMODE!$CXXDEPMODE$ac_delim
26206am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26207am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26208CXXCPP!$CXXCPP$ac_delim
26209F77!$F77$ac_delim
26210FFLAGS!$FFLAGS$ac_delim
26211ac_ct_F77!$ac_ct_F77$ac_delim
26212LIBTOOL!$LIBTOOL$ac_delim
26213MAKER!$MAKER$ac_delim
26214ALLOCA!$ALLOCA$ac_delim
26215MODULE_OBJS!$MODULE_OBJS$ac_delim
a8b2ad8d 26216MY_SUBDIRS!$MY_SUBDIRS$ac_delim
26217RX_INCLUDES!$RX_INCLUDES$ac_delim
26218RX_LIBS!$RX_LIBS$ac_delim
26219TRACK!$TRACK$ac_delim
26220LIBOBJS!$LIBOBJS$ac_delim
26221LTLIBOBJS!$LTLIBOBJS$ac_delim
26222_ACEOF
26223
ff3b058a 26224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
a8b2ad8d 26225 break
26226 elif $ac_last_try; then
26227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26228echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26229 { (exit 1); exit 1; }; }
26230 else
26231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26232 fi
26233done
26234
26235ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26236if test -n "$ac_eof"; then
26237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26238 ac_eof=`expr $ac_eof + 1`
26239fi
26240
26241cat >>$CONFIG_STATUS <<_ACEOF
26242cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26243/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26244_ACEOF
26245sed '
26246s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26247s/^/s,@/; s/!/@,|#_!!_#|/
26248:n
26249t n
26250s/'"$ac_delim"'$/,g/; t
26251s/$/\\/; p
26252N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26253' >>$CONFIG_STATUS <conf$$subs.sed
26254rm -f conf$$subs.sed
26255cat >>$CONFIG_STATUS <<_ACEOF
26256:end
26257s/|#_!!_#|//g
26258CEOF$ac_eof
26259_ACEOF
26260
26261
26262# VPATH may cause trouble with some makes, so we remove $(srcdir),
26263# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26264# trailing colons and then remove the whole line if VPATH becomes empty
26265# (actually we leave an empty line to preserve line numbers).
26266if test "x$srcdir" = x.; then
26267 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26268s/:*\$(srcdir):*/:/
26269s/:*\${srcdir}:*/:/
26270s/:*@srcdir@:*/:/
26271s/^\([^=]*=[ ]*\):*/\1/
26272s/:*$//
26273s/^[^=]*=[ ]*$//
26274}'
26275fi
26276
b3076f16 26277cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 26278fi # test -n "$CONFIG_FILES"
26279
26280
26281for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26282do
26283 case $ac_tag in
26284 :[FHLC]) ac_mode=$ac_tag; continue;;
26285 esac
26286 case $ac_mode$ac_tag in
26287 :[FHL]*:*);;
26288 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26289echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26290 { (exit 1); exit 1; }; };;
26291 :[FH]-) ac_tag=-:-;;
26292 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26293 esac
26294 ac_save_IFS=$IFS
26295 IFS=:
26296 set x $ac_tag
26297 IFS=$ac_save_IFS
26298 shift
26299 ac_file=$1
26300 shift
26301
26302 case $ac_mode in
26303 :L) ac_source=$1;;
26304 :[FH])
26305 ac_file_inputs=
26306 for ac_f
26307 do
26308 case $ac_f in
26309 -) ac_f="$tmp/stdin";;
26310 *) # Look for the file first in the build tree, then in the source tree
26311 # (if the path is not absolute). The absolute path cannot be DOS-style,
26312 # because $ac_f cannot contain `:'.
26313 test -f "$ac_f" ||
26314 case $ac_f in
26315 [\\/$]*) false;;
26316 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26317 esac ||
26318 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26319echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26320 { (exit 1); exit 1; }; };;
26321 esac
26322 ac_file_inputs="$ac_file_inputs $ac_f"
26323 done
26324
26325 # Let's still pretend it is `configure' which instantiates (i.e., don't
26326 # use $as_me), people would be surprised to read:
26327 # /* config.h. Generated by config.status. */
26328 configure_input="Generated from "`IFS=:
26329 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26330 if test x"$ac_file" != x-; then
26331 configure_input="$ac_file. $configure_input"
26332 { echo "$as_me:$LINENO: creating $ac_file" >&5
26333echo "$as_me: creating $ac_file" >&6;}
26334 fi
26335
26336 case $ac_tag in
26337 *:-:* | *:-) cat >"$tmp/stdin";;
26338 esac
26339 ;;
b3076f16 26340 esac
26341
a8b2ad8d 26342 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 26343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26344 X"$ac_file" : 'X\(//\)[^/]' \| \
26345 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 26346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 26347echo X"$ac_file" |
a8b2ad8d 26348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26349 s//\1/
26350 q
26351 }
26352 /^X\(\/\/\)[^/].*/{
26353 s//\1/
26354 q
26355 }
26356 /^X\(\/\/\)$/{
26357 s//\1/
26358 q
26359 }
26360 /^X\(\/\).*/{
26361 s//\1/
26362 q
26363 }
26364 s/.*/./; q'`
26365 { as_dir="$ac_dir"
26366 case $as_dir in #(
26367 -*) as_dir=./$as_dir;;
26368 esac
26369 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 26370 as_dirs=
a8b2ad8d 26371 while :; do
26372 case $as_dir in #(
26373 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26374 *) as_qdir=$as_dir;;
26375 esac
26376 as_dirs="'$as_qdir' $as_dirs"
26377 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 26378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26379 X"$as_dir" : 'X\(//\)[^/]' \| \
26380 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 26381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 26382echo X"$as_dir" |
a8b2ad8d 26383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26384 s//\1/
26385 q
26386 }
26387 /^X\(\/\/\)[^/].*/{
26388 s//\1/
26389 q
26390 }
26391 /^X\(\/\/\)$/{
26392 s//\1/
26393 q
26394 }
26395 /^X\(\/\).*/{
26396 s//\1/
26397 q
26398 }
26399 s/.*/./; q'`
26400 test -d "$as_dir" && break
b3076f16 26401 done
a8b2ad8d 26402 test -z "$as_dirs" || eval "mkdir $as_dirs"
26403 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26404echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 26405 { (exit 1); exit 1; }; }; }
b3076f16 26406 ac_builddir=.
26407
a8b2ad8d 26408case "$ac_dir" in
26409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26410*)
b3076f16 26411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 26412 # A ".." for each directory in $ac_dir_suffix.
26413 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26414 case $ac_top_builddir_sub in
26415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26417 esac ;;
26418esac
26419ac_abs_top_builddir=$ac_pwd
26420ac_abs_builddir=$ac_pwd$ac_dir_suffix
26421# for backward compatibility:
26422ac_top_builddir=$ac_top_build_prefix
b3076f16 26423
26424case $srcdir in
a8b2ad8d 26425 .) # We are building in place.
b3076f16 26426 ac_srcdir=.
a8b2ad8d 26427 ac_top_srcdir=$ac_top_builddir_sub
26428 ac_abs_top_srcdir=$ac_pwd ;;
26429 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 26430 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 26431 ac_top_srcdir=$srcdir
26432 ac_abs_top_srcdir=$srcdir ;;
26433 *) # Relative name.
26434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26435 ac_top_srcdir=$ac_top_build_prefix$srcdir
26436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 26437esac
a8b2ad8d 26438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 26439
b3076f16 26440
a8b2ad8d 26441 case $ac_mode in
26442 :F)
26443 #
26444 # CONFIG_FILE
26445 #
b3076f16 26446
26447 case $INSTALL in
26448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 26449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 26450 esac
ff3b058a 26451 ac_MKDIR_P=$MKDIR_P
26452 case $MKDIR_P in
26453 [\\/$]* | ?:[\\/]* ) ;;
26454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26455 esac
a8b2ad8d 26456_ACEOF
b3076f16 26457
a8b2ad8d 26458cat >>$CONFIG_STATUS <<\_ACEOF
26459# If the template does not know about datarootdir, expand it.
26460# FIXME: This hack should be removed a few years after 2.60.
26461ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 26462
a8b2ad8d 26463case `sed -n '/datarootdir/ {
26464 p
26465 q
26466}
26467/@datadir@/p
26468/@docdir@/p
26469/@infodir@/p
26470/@localedir@/p
26471/@mandir@/p
26472' $ac_file_inputs` in
26473*datarootdir*) ac_datarootdir_seen=yes;;
26474*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26475 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26476echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26477_ACEOF
26478cat >>$CONFIG_STATUS <<_ACEOF
26479 ac_datarootdir_hack='
26480 s&@datadir@&$datadir&g
26481 s&@docdir@&$docdir&g
26482 s&@infodir@&$infodir&g
26483 s&@localedir@&$localedir&g
26484 s&@mandir@&$mandir&g
26485 s&\\\${datarootdir}&$datarootdir&g' ;;
26486esac
b3076f16 26487_ACEOF
a8b2ad8d 26488
26489# Neutralize VPATH when `$srcdir' = `.'.
26490# Shell code in configure.ac might set extrasub.
26491# FIXME: do we really want to maintain this feature?
b3076f16 26492cat >>$CONFIG_STATUS <<_ACEOF
26493 sed "$ac_vpsub
26494$extrasub
26495_ACEOF
26496cat >>$CONFIG_STATUS <<\_ACEOF
26497:t
26498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 26499s&@configure_input@&$configure_input&;t t
26500s&@top_builddir@&$ac_top_builddir_sub&;t t
26501s&@srcdir@&$ac_srcdir&;t t
26502s&@abs_srcdir@&$ac_abs_srcdir&;t t
26503s&@top_srcdir@&$ac_top_srcdir&;t t
26504s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26505s&@builddir@&$ac_builddir&;t t
26506s&@abs_builddir@&$ac_abs_builddir&;t t
26507s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26508s&@INSTALL@&$ac_INSTALL&;t t
ff3b058a 26509s&@MKDIR_P@&$ac_MKDIR_P&;t t
a8b2ad8d 26510$ac_datarootdir_hack
26511" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26512
26513test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26514 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26516 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26517which seems to be undefined. Please make sure it is defined." >&5
26518echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26519which seems to be undefined. Please make sure it is defined." >&2;}
26520
26521 rm -f "$tmp/stdin"
b3076f16 26522 case $ac_file in
a8b2ad8d 26523 -) cat "$tmp/out"; rm -f "$tmp/out";;
26524 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 26525 esac
a8b2ad8d 26526 ;;
26527 :H)
26528 #
26529 # CONFIG_HEADER
26530 #
26531_ACEOF
26532
26533# Transform confdefs.h into a sed script `conftest.defines', that
26534# substitutes the proper values into config.h.in to produce config.h.
26535rm -f conftest.defines conftest.tail
26536# First, append a space to every undef/define line, to ease matching.
26537echo 's/$/ /' >conftest.defines
26538# Then, protect against being on the right side of a sed subst, or in
26539# an unquoted here document, in config.status. If some macros were
26540# called several times there might be several #defines for the same
26541# symbol, which is useless. But do not sort them, since the last
26542# AC_DEFINE must be honored.
26543ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26544# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26545# NAME is the cpp macro being defined, VALUE is the value it is being given.
26546# PARAMS is the parameter list in the macro definition--in most cases, it's
26547# just an empty string.
26548ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26549ac_dB='\\)[ (].*,\\1define\\2'
26550ac_dC=' '
26551ac_dD=' ,'
26552
26553uniq confdefs.h |
26554 sed -n '
26555 t rset
26556 :rset
26557 s/^[ ]*#[ ]*define[ ][ ]*//
26558 t ok
26559 d
26560 :ok
26561 s/[\\&,]/\\&/g
26562 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26563 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26564 ' >>conftest.defines
26565
26566# Remove the space that was appended to ease matching.
26567# Then replace #undef with comments. This is necessary, for
b3076f16 26568# example, in the case of _POSIX_SOURCE, which is predefined and required
26569# on some systems where configure will not decide to define it.
a8b2ad8d 26570# (The regexp can be short, since the line contains either #define or #undef.)
26571echo 's/ $//
26572s,^[ #]*u.*,/* & */,' >>conftest.defines
26573
26574# Break up conftest.defines:
26575ac_max_sed_lines=50
26576
26577# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26578# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26579# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26580# et cetera.
26581ac_in='$ac_file_inputs'
26582ac_out='"$tmp/out1"'
26583ac_nxt='"$tmp/out2"'
26584
26585while :
b3076f16 26586do
a8b2ad8d 26587 # Write a here document:
26588 cat >>$CONFIG_STATUS <<_ACEOF
26589 # First, check the format of the line:
26590 cat >"\$tmp/defines.sed" <<\\CEOF
26591/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26592/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26593b
26594:def
26595_ACEOF
26596 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 26597 echo 'CEOF
a8b2ad8d 26598 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26599 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26600 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26601 grep . conftest.tail >/dev/null || break
b3076f16 26602 rm -f conftest.defines
26603 mv conftest.tail conftest.defines
26604done
a8b2ad8d 26605rm -f conftest.defines conftest.tail
b3076f16 26606
a8b2ad8d 26607echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 26608cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 26609 if test x"$ac_file" != x-; then
a8b2ad8d 26610 echo "/* $configure_input */" >"$tmp/config.h"
26611 cat "$ac_result" >>"$tmp/config.h"
26612 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 26613 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26614echo "$as_me: $ac_file is unchanged" >&6;}
26615 else
b3076f16 26616 rm -f $ac_file
a8b2ad8d 26617 mv "$tmp/config.h" $ac_file
b3076f16 26618 fi
26619 else
a8b2ad8d 26620 echo "/* $configure_input */"
26621 cat "$ac_result"
b3076f16 26622 fi
a8b2ad8d 26623 rm -f "$tmp/out12"
ec1a68c8 26624# Compute $ac_file's index in $config_headers.
26625_am_stamp_count=1
26626for _am_header in $config_headers :; do
26627 case $_am_header in
26628 $ac_file | $ac_file:* )
26629 break ;;
26630 * )
26631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26632 esac
26633done
a8b2ad8d 26634echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
ec1a68c8 26635$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26636 X$ac_file : 'X\(//\)[^/]' \| \
26637 X$ac_file : 'X\(//\)$' \| \
a8b2ad8d 26638 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 26639echo X$ac_file |
a8b2ad8d 26640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26641 s//\1/
26642 q
26643 }
26644 /^X\(\/\/\)[^/].*/{
26645 s//\1/
26646 q
26647 }
26648 /^X\(\/\/\)$/{
26649 s//\1/
26650 q
26651 }
26652 /^X\(\/\).*/{
26653 s//\1/
26654 q
26655 }
26656 s/.*/./; q'`/stamp-h$_am_stamp_count
26657 ;;
ec1a68c8 26658
a8b2ad8d 26659 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26660echo "$as_me: executing $ac_file commands" >&6;}
26661 ;;
26662 esac
ec1a68c8 26663
26664
a8b2ad8d 26665 case $ac_file$ac_mode in
26666 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 26667 # Strip MF so we end up with the name of the file.
26668 mf=`echo "$mf" | sed -e 's/:.*$//'`
26669 # Check whether this is an Automake generated Makefile or not.
26670 # We used to match only the files named `Makefile.in', but
26671 # some people rename them; so instead we look at the file content.
26672 # Grep'ing the first line is not enough: some people post-process
26673 # each Makefile.in and add a new line on top of each file to say so.
ff3b058a 26674 # Grep'ing the whole file is not good either: AIX grep has a line
26675 # limit of 2048, but all sed's we know have understand at least 4000.
26676 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
a8b2ad8d 26677 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 26678$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26679 X"$mf" : 'X\(//\)[^/]' \| \
26680 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 26681 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 26682echo X"$mf" |
a8b2ad8d 26683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26684 s//\1/
26685 q
26686 }
26687 /^X\(\/\/\)[^/].*/{
26688 s//\1/
26689 q
26690 }
26691 /^X\(\/\/\)$/{
26692 s//\1/
26693 q
26694 }
26695 /^X\(\/\).*/{
26696 s//\1/
26697 q
26698 }
26699 s/.*/./; q'`
ec1a68c8 26700 else
26701 continue
26702 fi
26703 # Extract the definition of DEPDIR, am__include, and am__quote
26704 # from the Makefile without running `make'.
26705 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26706 test -z "$DEPDIR" && continue
26707 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26708 test -z "am__include" && continue
26709 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26710 # When using ansi2knr, U may be empty or an underscore; expand it
26711 U=`sed -n 's/^U = //p' < "$mf"`
26712 # Find all dependency output files, they are included files with
26713 # $(DEPDIR) in their names. We invoke sed twice because it is the
26714 # simplest approach to changing $(DEPDIR) to its actual value in the
26715 # expansion.
26716 for file in `sed -n "
26717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26719 # Make sure the directory exists.
26720 test -f "$dirpart/$file" && continue
a8b2ad8d 26721 fdir=`$as_dirname -- "$file" ||
ec1a68c8 26722$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26723 X"$file" : 'X\(//\)[^/]' \| \
26724 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 26725 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 26726echo X"$file" |
a8b2ad8d 26727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26728 s//\1/
26729 q
26730 }
26731 /^X\(\/\/\)[^/].*/{
26732 s//\1/
26733 q
26734 }
26735 /^X\(\/\/\)$/{
26736 s//\1/
26737 q
26738 }
26739 /^X\(\/\).*/{
26740 s//\1/
26741 q
26742 }
26743 s/.*/./; q'`
26744 { as_dir=$dirpart/$fdir
26745 case $as_dir in #(
26746 -*) as_dir=./$as_dir;;
26747 esac
26748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 26749 as_dirs=
a8b2ad8d 26750 while :; do
26751 case $as_dir in #(
26752 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26753 *) as_qdir=$as_dir;;
26754 esac
26755 as_dirs="'$as_qdir' $as_dirs"
26756 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 26757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26758 X"$as_dir" : 'X\(//\)[^/]' \| \
26759 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 26760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 26761echo X"$as_dir" |
a8b2ad8d 26762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26763 s//\1/
26764 q
26765 }
26766 /^X\(\/\/\)[^/].*/{
26767 s//\1/
26768 q
26769 }
26770 /^X\(\/\/\)$/{
26771 s//\1/
26772 q
26773 }
26774 /^X\(\/\).*/{
26775 s//\1/
26776 q
26777 }
26778 s/.*/./; q'`
26779 test -d "$as_dir" && break
ec1a68c8 26780 done
a8b2ad8d 26781 test -z "$as_dirs" || eval "mkdir $as_dirs"
26782 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26783echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 26784 { (exit 1); exit 1; }; }; }
ec1a68c8 26785 # echo "creating $dirpart/$file"
26786 echo '# dummy' > "$dirpart/$file"
26787 done
26788done
26789 ;;
a8b2ad8d 26790
ec1a68c8 26791 esac
a8b2ad8d 26792done # for ac_tag
b3076f16 26793
b3076f16 26794
26795{ (exit 0); exit 0; }
26796_ACEOF
26797chmod +x $CONFIG_STATUS
26798ac_clean_files=$ac_clean_files_save
26799
26800
26801# configure is writing to config.log, and then calls config.status.
26802# config.status does its own redirection, appending to config.log.
26803# Unfortunately, on DOS this fails, as config.log is still kept open
26804# by configure, so config.status won't be able to write to it; its
26805# output is simply discarded. So we exec the FD to /dev/null,
26806# effectively closing config.log, so it can be properly (re)opened and
26807# appended to by config.status. When coming back to configure, we
26808# need to make the FD available again.
26809if test "$no_create" != yes; then
26810 ac_cs_success=:
26811 ac_config_status_args=
26812 test "$silent" = yes &&
26813 ac_config_status_args="$ac_config_status_args --quiet"
26814 exec 5>/dev/null
26815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26816 exec 5>>config.log
26817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26818 # would make configure fail if this is the last instruction.
26819 $ac_cs_success || { (exit 1); exit 1; }
26820fi
26821
5b1166fd 26822
26823
26824
26825cat <<EOF
26826
26827Configuration summary
26828=====================
26829
26830X3 is now configured as follows:
26831
26832* Compilation environment
26833
26834 CC = $CC
26835 CFLAGS = $CFLAGS
26836 CPP = $CPP
26837 CPPFLAGS = $CPPFLAGS
26838 LD = $LD
26839 LDFLAGS = $LDFLAGS
26840 LIBS = $LIBS
26841
26842* X3 options
26843
a8b2ad8d 26844 Debug: $x3_debug
26845 Extra Modules: $module_list
26846 Malloc: $x3_malloc
26847 Protocol: $x3_ircd
26848 Regexp Library TRE $tre_version
26849 Coredumper Library Coredumper $core_version
8da89711 26850 $ldap_message
5b1166fd 26851
a8b2ad8d 26852 Install to: $prefix
35305a49 26853
5b1166fd 26854Now you can proceed with compiling X3
26855
26856EOF
26857