ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libspf/configure
(Generate patch)

Comparing libspf/configure (file contents):
Revision 1.1 by root, Tue Nov 13 00:51:23 2007 UTC vs.
Revision 1.3 by root, Thu Oct 30 03:09:36 2008 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libspf 1.0.0-p5. 3# Generated by GNU Autoconf 2.61 for libspf 1.0.0-p5.
4# 4#
5# Report bugs to <jcouzens@codeshare.ca>. 5# Report bugs to <jcouzens@codeshare.ca>.
6# 6#
7# Copyright (C) 2003 Free Software Foundation, Inc. 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ## 11## --------------------- ##
11## M4sh Initialization. ## 12## M4sh Initialization. ##
12## --------------------- ## 13## --------------------- ##
13 14
14# Be Bourne compatible 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh 18 emulate sh
17 NULLCMD=: 19 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 21 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 22 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 setopt NO_GLOB_SUBST
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else 24else
49 $as_unset $as_var 25 case `(set -o) 2>/dev/null` in
50 fi 26 *posix*) set -o posix ;;
51done 27esac
52 28
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi 29fi
59 30
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65 31
66 32
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78 33
79 34# PATH needs CR
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges. 35# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789' 39as_cr_digits='0123456789'
96 PATH_SEPARATOR=: 50 PATH_SEPARATOR=:
97 fi 51 fi
98 rm -f conf$$.sh 52 rm -f conf$$.sh
99fi 53fi
100 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
101 61
102 as_lineno_1=$LINENO 62
103 as_lineno_2=$LINENO 63# IFS
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 64# We need space, tab and new line, in precisely that order. Quoting is
105 test "x$as_lineno_1" != "x$as_lineno_2" && 65# there to prevent editors from complaining about space-tab.
106 test "x$as_lineno_3" = "x$as_lineno_2" || { 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
107 # Find who we are. Look in the path if we contain no path at all 72# Find who we are. Look in the path if we contain no directory separator.
108 # relative or not.
109 case $0 in 73case $0 in
110 *[\\/]* ) as_myself=$0 ;; 74 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH 76for as_dir in $PATH
113do 77do
114 IFS=$as_save_IFS 78 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=. 79 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done 81done
82IFS=$as_save_IFS
118 83
119 ;; 84 ;;
120 esac 85esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND' 86# We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path. 87# in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then 88if test "x$as_myself" = x; then
124 as_myself=$0 89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 fi 114 fi
126 if test ! -f "$as_myself"; then 115done
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 116
128 { (exit 1); exit 1; }; } 117# Required to use basename.
129 fi 118if expr a : '\(a\)' >/dev/null 2>&1 &&
130 case $CONFIG_SHELL in 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
131 '') 120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do 225do
135 IFS=$as_save_IFS 226 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=. 227 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in 228 case $as_dir in
139 /*) 229 /*)
140 if ("$as_dir/$as_base" -c ' 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
141 as_lineno_1=$LINENO 330 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO 331 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 334
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 335_ASEOF
148 CONFIG_SHELL=$as_dir/$as_base 336}; then
149 export CONFIG_SHELL 337 break
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 338fi
151 fi;; 339
152 esac 340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
153 done 347 done
154done 348 export CONFIG_SHELL
155;; 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
156 esac 350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157 429
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a 431 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real 432 # line-number line after each line using $LINENO; the second 'sed'
161 # work. The second script uses 'N' to pair each line-number line 433 # does the real work. The second script uses 'N' to pair each
162 # with the numbered line, and appends trailing '-' during 434 # line-number line with the line containing $LINENO, and appends
163 # substitution so that $LINENO is not a special case at line end. 435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
166 sed '=' <$as_myself | 443 ' <$as_myself |
167 sed ' 444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
168 N 449 N
169 s,$,-,
170 : loop 450 :loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172 t loop 452 t loop
173 s,-$,, 453 s/-\n.*//
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno && 454 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno || 455 chmod +x "$as_me.lineno" ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; } 457 { (exit 1); exit 1; }; }
179 458
180 # Don't try to exec as it changes $[0], causing all sort of problems 459 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the 460 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this). 461 # original and so on. Autoconf is especially sensitive to this).
183 . ./$as_me.lineno 462 . "./$as_me.lineno"
184 # Exit status is that of the last command. 463 # Exit status is that of the last command.
185 exit 464 exit
186} 465}
187 466
188 467
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
190 *c*,-n*) ECHO_N= ECHO_C=' 469 as_dirname=dirname
191' ECHO_T=' ' ;; 470else
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 471 as_dirname=false
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
194esac 483esac
195 484
196if expr a : '\(a\)' >/dev/null 2>&1; then 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
197 as_expr=expr 487 as_expr=expr
198else 488else
199 as_expr=false 489 as_expr=false
200fi 490fi
201 491
202rm -f conf$$ conf$$.exe conf$$.file 492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
203echo >conf$$.file 499echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then 500if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic 501 as_ln_s='ln -s'
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 502 # ... but there are two gotchas:
207 if test -f conf$$.exe; then 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
208 # Don't use ln at all; we don't have any links 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
209 as_ln_s='cp -p' 507 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then 508elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln 509 as_ln_s=ln
215else 510else
216 as_ln_s='cp -p' 511 as_ln_s='cp -p'
217fi 512fi
218rm -f conf$$ conf$$.exe conf$$.file 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
219 515
220if mkdir -p . 2>/dev/null; then 516if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=: 517 as_mkdir_p=:
222else 518else
223 test -d ./-p && rmdir ./-p 519 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false 520 as_mkdir_p=false
225fi 521fi
226 522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
227as_executable_p="test -f" 544as_executable_p=$as_test_x
228 545
229# Sed expression to map a string onto a valid CPP name. 546# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 548
232# Sed expression to map a string onto a valid variable name. 549# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 551
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244 552
245 553
246 554
247# Check that we are running under the correct shell. 555# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh} 556SHELL=${CONFIG_SHELL-/bin/sh}
278 exit 0 586 exit 0
279fi 587fi
280 588
281# The HP-UX ksh and POSIX shell print the target directory to stdout 589# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set. 590# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284 592
285if test -z "$ECHO"; then 593if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then 594if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it 595# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string="`eval $cmd`" && 599 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then 601 then
294 break 602 break
295 fi 603 fi
296 done 604 done
395 703
396tagnames=${tagnames+${tagnames},}CXX 704tagnames=${tagnames+${tagnames},}CXX
397 705
398tagnames=${tagnames+${tagnames},}F77 706tagnames=${tagnames+${tagnames},}F77
399 707
708exec 7<&0 </dev/null 6>&1
709
400# Name of the host. 710# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too. 712# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404 714
405exec 6>&1
406
407# 715#
408# Initializations. 716# Initializations.
409# 717#
410ac_default_prefix=/usr/local 718ac_default_prefix=/usr/local
719ac_clean_files=
411ac_config_libobj_dir=. 720ac_config_libobj_dir=.
721LIBOBJS=
412cross_compiling=no 722cross_compiling=no
413subdirs= 723subdirs=
414MFLAGS= 724MFLAGS=
415MAKEFLAGS= 725MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh} 726SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422 727
423# Identity of this package. 728# Identity of this package.
424PACKAGE_NAME='libspf' 729PACKAGE_NAME='libspf'
425PACKAGE_TARNAME='libspf' 730PACKAGE_TARNAME='libspf'
426PACKAGE_VERSION='1.0.0-p5' 731PACKAGE_VERSION='1.0.0-p5'
428PACKAGE_BUGREPORT='jcouzens@codeshare.ca' 733PACKAGE_BUGREPORT='jcouzens@codeshare.ca'
429 734
430# Factoring default headers for most tests. 735# Factoring default headers for most tests.
431ac_includes_default="\ 736ac_includes_default="\
432#include <stdio.h> 737#include <stdio.h>
433#if HAVE_SYS_TYPES_H 738#ifdef HAVE_SYS_TYPES_H
434# include <sys/types.h> 739# include <sys/types.h>
435#endif 740#endif
436#if HAVE_SYS_STAT_H 741#ifdef HAVE_SYS_STAT_H
437# include <sys/stat.h> 742# include <sys/stat.h>
438#endif 743#endif
439#if STDC_HEADERS 744#ifdef STDC_HEADERS
440# include <stdlib.h> 745# include <stdlib.h>
441# include <stddef.h> 746# include <stddef.h>
442#else 747#else
443# if HAVE_STDLIB_H 748# ifdef HAVE_STDLIB_H
444# include <stdlib.h> 749# include <stdlib.h>
445# endif 750# endif
446#endif 751#endif
447#if HAVE_STRING_H 752#ifdef HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
449# include <memory.h> 754# include <memory.h>
450# endif 755# endif
451# include <string.h> 756# include <string.h>
452#endif 757#endif
453#if HAVE_STRINGS_H 758#ifdef HAVE_STRINGS_H
454# include <strings.h> 759# include <strings.h>
455#endif 760#endif
456#if HAVE_INTTYPES_H 761#ifdef HAVE_INTTYPES_H
457# include <inttypes.h> 762# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif 763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
463#if HAVE_UNISTD_H 767#ifdef HAVE_UNISTD_H
464# include <unistd.h> 768# include <unistd.h>
465#endif" 769#endif"
466 770
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S RANLIB ac_ct_RANLIB CPP GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL enable_shared enable_static LIBTOOL_DEPS LIBSPF_MAJOR_VERSION LIBSPF_MINOR_VERSION LIBSPF_MICRO_VERSION LIBSPF_VERSION LIBSPF_INTERFACE_AGE LIBSPF_BINARY_AGE LT_RELEASE LT_CURRENT LT_REVISION LT_AGE UNSIGNED_INT_ARG LIBOBJS __BEGIN_DECLS __END_DECLS LIBSPF_RESOLV_LIB LIBSPF_PTHREADS_LIB LIBSPF_BUILD_DIRS LTLIBOBJS' 771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811PACKAGE
812VERSION
813ACLOCAL
814AUTOCONF
815AUTOMAKE
816AUTOHEADER
817MAKEINFO
818AMTAR
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822AWK
823SET_MAKE
824CC
825CFLAGS
826LDFLAGS
827CPPFLAGS
828ac_ct_CC
829EXEEXT
830OBJEXT
831DEPDIR
832am__include
833am__quote
834AMDEP_TRUE
835AMDEP_FALSE
836AMDEPBACKSLASH
837CCDEPMODE
838LN_S
839RANLIB
840CPP
841GCC_TRUE
842GCC_FALSE
843build
844build_cpu
845build_vendor
846build_os
847host
848host_cpu
849host_vendor
850host_os
851GREP
852EGREP
853ECHO
854AR
855CXX
856CXXFLAGS
857ac_ct_CXX
858CXXDEPMODE
859CXXCPP
860F77
861FFLAGS
862ac_ct_F77
863LIBTOOL
864enable_shared
865enable_static
866LIBTOOL_DEPS
867LIBSPF_MAJOR_VERSION
868LIBSPF_MINOR_VERSION
869LIBSPF_MICRO_VERSION
870LIBSPF_VERSION
871LIBSPF_INTERFACE_AGE
872LIBSPF_BINARY_AGE
873LT_RELEASE
874LT_CURRENT
875LT_REVISION
876LT_AGE
877UNSIGNED_INT_ARG
878LIBOBJS
879__BEGIN_DECLS
880__END_DECLS
881LIBSPF_RESOLV_LIB
882LIBSPF_PTHREADS_LIB
883LIBSPF_BUILD_DIRS
884LTLIBOBJS'
468ac_subst_files='__BEGIN_DECLS_INCL __END_DECLS_INCL' 885ac_subst_files='__BEGIN_DECLS_INCL
886__END_DECLS_INCL'
887 ac_precious_vars='build_alias
888host_alias
889target_alias
890CC
891CFLAGS
892LDFLAGS
893LIBS
894CPPFLAGS
895CPP
896CXX
897CXXFLAGS
898CCC
899CXXCPP
900F77
901FFLAGS'
902
469 903
470# Initialize some variables set by options. 904# Initialize some variables set by options.
471ac_init_help= 905ac_init_help=
472ac_init_version=false 906ac_init_version=false
473# The variables have the same names as the options, with 907# The variables have the same names as the options, with
490# Installation directory options. 924# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo" 925# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix 926# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change. 927# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them. 928# Use braces instead of parens because sh, perl, etc. also accept them.
929# (The list follows the same order as the GNU Coding Standards.)
495bindir='${exec_prefix}/bin' 930bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin' 931sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec' 932libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share' 933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
499sysconfdir='${prefix}/etc' 935sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com' 936sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var' 937localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include' 938includedir='${prefix}/include'
504oldincludedir='/usr/include' 939oldincludedir='/usr/include'
940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
505infodir='${prefix}/info' 941infodir='${datarootdir}/info'
506mandir='${prefix}/man' 942htmldir='${docdir}'
943dvidir='${docdir}'
944pdfdir='${docdir}'
945psdir='${docdir}'
946libdir='${exec_prefix}/lib'
947localedir='${datarootdir}/locale'
948mandir='${datarootdir}/man'
507 949
508ac_prev= 950ac_prev=
951ac_dashdash=
509for ac_option 952for ac_option
510do 953do
511 # If the previous option needs an argument, assign it. 954 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then 955 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option" 956 eval $ac_prev=\$ac_option
514 ac_prev= 957 ac_prev=
515 continue 958 continue
516 fi 959 fi
517 960
961 case $ac_option in
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
519 965
520 # Accept the important Cygnus configure options, so we can diagnose typos. 966 # Accept the important Cygnus configure options, so we can diagnose typos.
521 967
522 case $ac_option in 968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
523 971
524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;; 973 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;; 975 bindir=$ac_optarg ;;
539 cache_file=$ac_optarg ;; 987 cache_file=$ac_optarg ;;
540 988
541 --config-cache | -C) 989 --config-cache | -C)
542 cache_file=config.cache ;; 990 cache_file=config.cache ;;
543 991
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 992 -datadir | --datadir | --datadi | --datad)
545 ac_prev=datadir ;; 993 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
547 | --da=*)
548 datadir=$ac_optarg ;; 995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
549 1003
550 -disable-* | --disable-*) 1004 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names. 1006 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1007 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; } 1009 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1010 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
557 eval "enable_$ac_feature=no" ;; 1011 eval enable_$ac_feature=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
558 1022
559 -enable-* | --enable-*) 1023 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names. 1025 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; } 1028 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;; 1030 eval enable_$ac_feature=\$ac_optarg ;;
571 1031
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex) 1034 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;; 1035 ac_prev=exec_prefix ;;
592 -host | --host | --hos | --ho) 1052 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;; 1053 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*) 1054 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;; 1055 host_alias=$ac_optarg ;;
596 1056
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
597 -includedir | --includedir | --includedi | --included | --include \ 1063 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc) 1064 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;; 1065 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*) 1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
616 ac_prev=libexecdir ;; 1082 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*) 1084 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;; 1085 libexecdir=$ac_optarg ;;
620 1086
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \ 1093 | --localstate | --localstat | --localsta | --localst | --locals)
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;; 1094 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;; 1097 localstatedir=$ac_optarg ;;
629 1098
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;; 1100 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
687 | --program-transfo=* | --program-transf=* \ 1156 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \ 1157 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*) 1158 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;; 1159 program_transform_name=$ac_optarg ;;
691 1160
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil) 1172 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;; 1173 silent=yes ;;
695 1174
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
739 ac_init_version=: ;; 1218 ac_init_version=: ;;
740 1219
741 -with-* | --with-*) 1220 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names. 1222 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2 1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; } 1225 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'` 1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;; 1227 eval with_$ac_package=\$ac_optarg ;;
753 1228
754 -without-* | --without-*) 1229 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names. 1231 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2 1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; } 1234 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'` 1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
761 eval "with_$ac_package=no" ;; 1236 eval with_$ac_package=no ;;
762 1237
763 --x) 1238 --x)
764 # Obsolete; use --with-x. 1239 # Obsolete; use --with-x.
765 with_x=yes ;; 1240 with_x=yes ;;
766 1241
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names. 1263 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; } 1266 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'" 1267 eval $ac_envvar=\$ac_optarg
794 export $ac_envvar ;; 1268 export $ac_envvar ;;
795 1269
796 *) 1270 *)
797 # FIXME: should be removed in autoconf 3.0. 1271 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2 1283 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; } 1284 { (exit 1); exit 1; }; }
811fi 1285fi
812 1286
813# Be sure to have absolute paths. 1287# Be sure to have absolute directory names.
814for ac_var in exec_prefix prefix 1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
815do 1292do
816 eval ac_val=$`echo $ac_var` 1293 eval ac_val=\$$ac_var
817 case $ac_val in 1294 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 1295 [\\/$]* | ?:[\\/]* ) continue;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
820 { (exit 1); exit 1; }; };;
821 esac 1297 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };; 1299 { (exit 1); exit 1; }; }
833 esac
834done 1300done
835 1301
836# There might be people who depend on the old broken behavior: `$host' 1302# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc. 1303# used to hold the argument of --host etc.
838# FIXME: To remove some day. 1304# FIXME: To remove some day.
855test -n "$host_alias" && ac_tool_prefix=$host_alias- 1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 1322
857test "$silent" = yes && exec 6>/dev/null 1323test "$silent" = yes && exec 6>/dev/null
858 1324
859 1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1334
1335
860# Find the source files, if location was not specified. 1336# Find the source files, if location was not specified.
861if test -z "$srcdir"; then 1337if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes 1338 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent. 1339 # Try the directory containing this script, then the parent directory.
864 ac_confdir=`(dirname "$0") 2>/dev/null || 1340 ac_confdir=`$as_dirname -- "$0" ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \ 1342 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \ 1343 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \ 1344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" | 1345echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 1347 s//\1/
873 /^X\(\/\/\)$/{ s//\1/; q; } 1348 q
874 /^X\(\/\).*/{ s//\1/; q; } 1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
875 s/.*/./; q'` 1362 s/.*/./; q'`
876 srcdir=$ac_confdir 1363 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then 1364 if test ! -r "$srcdir/$ac_unique_file"; then
878 srcdir=.. 1365 srcdir=..
879 fi 1366 fi
880else 1367else
881 ac_srcdir_defaulted=no 1368 ac_srcdir_defaulted=no
882fi 1369fi
883if test ! -r $srcdir/$ac_unique_file; then 1370if test ! -r "$srcdir/$ac_unique_file"; then
884 if test "$ac_srcdir_defaulted" = yes; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; } 1373 { (exit 1); exit 1; }; }
887 else 1374fi
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
889 { (exit 1); exit 1; }; } 1378 { (exit 1); exit 1; }; }
890 fi 1379 pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
891fi 1383fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 1384# Remove unnecessary trailing slashes from srcdir.
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 1385# Double slashes in file names in object file debugging info
894 { (exit 1); exit 1; }; } 1386# mess up M-x gdb in Emacs.
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 1387case $srcdir in
896ac_env_build_alias_set=${build_alias+set} 1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
897ac_env_build_alias_value=$build_alias 1389esac
898ac_cv_env_build_alias_set=${build_alias+set} 1390for ac_var in $ac_precious_vars; do
899ac_cv_env_build_alias_value=$build_alias 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
900ac_env_host_alias_set=${host_alias+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var}
901ac_env_host_alias_value=$host_alias 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
902ac_cv_env_host_alias_set=${host_alias+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
903ac_cv_env_host_alias_value=$host_alias 1395done
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948 1396
949# 1397#
950# Report the --help message. 1398# Report the --help message.
951# 1399#
952if test "$ac_init_help" = "long"; then 1400if test "$ac_init_help" = "long"; then
971 --cache-file=FILE cache test results in FILE [disabled] 1419 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache' 1420 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files 1421 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 1423
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories: 1424Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX 1425 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix] 1426 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX] 1428 [PREFIX]
991 1436
992Fine tuning of the installation directories: 1437Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin] 1438 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec] 1440 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib] 1444 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include] 1445 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1003 --infodir=DIR info documentation [PREFIX/info] 1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1004 --mandir=DIR man documentation [PREFIX/man] 1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/libspf]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1005_ACEOF 1457_ACEOF
1006 1458
1007 cat <<\_ACEOF 1459 cat <<\_ACEOF
1008 1460
1009Program names: 1461Program names:
1026Optional Features: 1478Optional Features:
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --disable-dependency-tracking Speeds up one-time builds 1481 --disable-dependency-tracking Speeds up one-time builds
1030 --enable-dependency-tracking Do not reject slow dependency extractors 1482 --enable-dependency-tracking Do not reject slow dependency extractors
1031 --enable-shared[=PKGS] 1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1032 build shared libraries [default=yes] 1484 --enable-static[=PKGS] build static libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS] 1485 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes] 1486 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds) 1487 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --enable-libbind Link libbind instead of libresolv (default=no) 1488 --enable-libbind Link libbind instead of libresolv (default=no)
1039 --enable-debug Enables debug option (default=no) 1489 --enable-debug Enables debug option (default=no)
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use 1504 --with-pic try to use only PIC/non-PIC objects [default=use
1055 both] 1505 both]
1056 --with-tags[=TAGS] 1506 --with-tags[=TAGS] include additional configurations [automatic]
1057 include additional configurations [automatic]
1058 1507
1059Some influential environment variables: 1508Some influential environment variables:
1060 CC C compiler command 1509 CC C compiler command
1061 CFLAGS C compiler flags 1510 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir> 1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1065 headers in a nonstandard directory <include dir> 1515 you have headers in a nonstandard directory <include dir>
1066 CPP C preprocessor 1516 CPP C preprocessor
1067 CXX C++ compiler command 1517 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags 1518 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor 1519 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command 1520 F77 Fortran 77 compiler command
1073Use these variables to override the choices made by `configure' or to help 1523Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations. 1524it to find libraries and programs with nonstandard names/locations.
1075 1525
1076Report bugs to <jcouzens@codeshare.ca>. 1526Report bugs to <jcouzens@codeshare.ca>.
1077_ACEOF 1527_ACEOF
1528ac_status=$?
1078fi 1529fi
1079 1530
1080if test "$ac_init_help" = "recursive"; then 1531if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help. 1532 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue 1534 test -d "$ac_dir" || continue
1085 ac_builddir=. 1535 ac_builddir=.
1086 1536
1087if test "$ac_dir" != .; then 1537case "$ac_dir" in
1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539*)
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix. 1541 # A ".." for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1542 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1091else 1543 case $ac_top_builddir_sub in
1092 ac_dir_suffix= ac_top_builddir= 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1093fi 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547esac
1548ac_abs_top_builddir=$ac_pwd
1549ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550# for backward compatibility:
1551ac_top_builddir=$ac_top_build_prefix
1094 1552
1095case $srcdir in 1553case $srcdir in
1096 .) # No --srcdir option. We are building in place. 1554 .) # We are building in place.
1097 ac_srcdir=. 1555 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then 1556 ac_top_srcdir=$ac_top_builddir_sub
1099 ac_top_srcdir=. 1557 ac_abs_top_srcdir=$ac_pwd ;;
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path. 1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1104 ac_srcdir=$srcdir$ac_dir_suffix; 1559 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;; 1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1106 *) # Relative path. 1562 *) # Relative name.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1109esac 1566esac
1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1110 1568
1111# Do not use `cd foo && pwd` to compute absolute paths, because 1569 cd "$ac_dir" || { ac_status=$?; continue; }
1112# the directories may not exist. 1570 # Check for guested configure.
1113case `pwd` in
1114.) ac_abs_builddir="$ac_dir";;
1115*)
1116 case "$ac_dir" in
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_builddir=${ac_top_builddir}.;;
1124*)
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_srcdir=$ac_srcdir;;
1133*)
1134 case $ac_srcdir in
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_srcdir=$ac_top_srcdir;;
1142*)
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 esac;;
1148esac
1149
1150 cd $ac_dir
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then 1571 if test -f "$ac_srcdir/configure.gnu"; then
1153 echo 1572 echo &&
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1155 elif test -f $ac_srcdir/configure; then 1574 elif test -f "$ac_srcdir/configure"; then
1156 echo 1575 echo &&
1157 $SHELL $ac_srcdir/configure --help=recursive 1576 $SHELL "$ac_srcdir/configure" --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1160 echo
1161 $ac_configure --help
1162 else 1577 else
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 fi 1579 fi || ac_status=$?
1165 cd $ac_popdir 1580 cd "$ac_pwd" || { ac_status=$?; break; }
1166 done 1581 done
1167fi 1582fi
1168 1583
1169test -n "$ac_init_help" && exit 0 1584test -n "$ac_init_help" && exit $ac_status
1170if $ac_init_version; then 1585if $ac_init_version; then
1171 cat <<\_ACEOF 1586 cat <<\_ACEOF
1172libspf configure 1.0.0-p5 1587libspf configure 1.0.0-p5
1173generated by GNU Autoconf 2.59 1588generated by GNU Autoconf 2.61
1174 1589
1175Copyright (C) 2003 Free Software Foundation, Inc. 1590Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15912002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1176This configure script is free software; the Free Software Foundation 1592This configure script is free software; the Free Software Foundation
1177gives unlimited permission to copy, distribute and modify it. 1593gives unlimited permission to copy, distribute and modify it.
1178_ACEOF 1594_ACEOF
1179 exit 0 1595 exit
1180fi 1596fi
1181exec 5>config.log 1597cat >config.log <<_ACEOF
1182cat >&5 <<_ACEOF
1183This file contains any messages produced by compilers while 1598This file contains any messages produced by compilers while
1184running configure, to aid debugging if configure makes a mistake. 1599running configure, to aid debugging if configure makes a mistake.
1185 1600
1186It was created by libspf $as_me 1.0.0-p5, which was 1601It was created by libspf $as_me 1.0.0-p5, which was
1187generated by GNU Autoconf 2.59. Invocation command line was 1602generated by GNU Autoconf 2.61. Invocation command line was
1188 1603
1189 $ $0 $@ 1604 $ $0 $@
1190 1605
1191_ACEOF 1606_ACEOF
1607exec 5>>config.log
1192{ 1608{
1193cat <<_ASUNAME 1609cat <<_ASUNAME
1194## --------- ## 1610## --------- ##
1195## Platform. ## 1611## Platform. ##
1196## --------- ## 1612## --------- ##
1205/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1621/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1206 1622
1207/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1623/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1208/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1624/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1209/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1625/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1626/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1211/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1627/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1212/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1628/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1213/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1629/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214 1630
1215_ASUNAME 1631_ASUNAME
1219do 1635do
1220 IFS=$as_save_IFS 1636 IFS=$as_save_IFS
1221 test -z "$as_dir" && as_dir=. 1637 test -z "$as_dir" && as_dir=.
1222 echo "PATH: $as_dir" 1638 echo "PATH: $as_dir"
1223done 1639done
1640IFS=$as_save_IFS
1224 1641
1225} >&5 1642} >&5
1226 1643
1227cat >&5 <<_ACEOF 1644cat >&5 <<_ACEOF
1228 1645
1240# Also quote any args containing shell meta-characters. 1657# Also quote any args containing shell meta-characters.
1241# Make two passes to allow for proper duplicate-argument suppression. 1658# Make two passes to allow for proper duplicate-argument suppression.
1242ac_configure_args= 1659ac_configure_args=
1243ac_configure_args0= 1660ac_configure_args0=
1244ac_configure_args1= 1661ac_configure_args1=
1245ac_sep=
1246ac_must_keep_next=false 1662ac_must_keep_next=false
1247for ac_pass in 1 2 1663for ac_pass in 1 2
1248do 1664do
1249 for ac_arg 1665 for ac_arg
1250 do 1666 do
1251 case $ac_arg in 1667 case $ac_arg in
1252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1668 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254 | -silent | --silent | --silen | --sile | --sil) 1670 | -silent | --silent | --silen | --sile | --sil)
1255 continue ;; 1671 continue ;;
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1672 *\'*)
1257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1673 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 esac 1674 esac
1259 case $ac_pass in 1675 case $ac_pass in
1260 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1676 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1261 2) 1677 2)
1273 esac 1689 esac
1274 ;; 1690 ;;
1275 -* ) ac_must_keep_next=true ;; 1691 -* ) ac_must_keep_next=true ;;
1276 esac 1692 esac
1277 fi 1693 fi
1278 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1694 ac_configure_args="$ac_configure_args '$ac_arg'"
1279 # Get rid of the leading space.
1280 ac_sep=" "
1281 ;; 1695 ;;
1282 esac 1696 esac
1283 done 1697 done
1284done 1698done
1285$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1699$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1700$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1287 1701
1288# When interrupted or exit'd, cleanup temporary files, and complete 1702# When interrupted or exit'd, cleanup temporary files, and complete
1289# config.log. We remove comments because anyway the quotes in there 1703# config.log. We remove comments because anyway the quotes in there
1290# would cause problems or look ugly. 1704# would cause problems or look ugly.
1291# WARNING: Be sure not to use single quotes in there, as some shells, 1705# WARNING: Use '\'' to represent an apostrophe within the trap.
1292# such as our DU 5.0 friend, will then `close' the trap. 1706# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1293trap 'exit_status=$? 1707trap 'exit_status=$?
1294 # Save into config.log some information that might help in debugging. 1708 # Save into config.log some information that might help in debugging.
1295 { 1709 {
1296 echo 1710 echo
1297 1711
1300## Cache variables. ## 1714## Cache variables. ##
1301## ---------------- ## 1715## ---------------- ##
1302_ASBOX 1716_ASBOX
1303 echo 1717 echo
1304 # The following way of writing the cache mishandles newlines in values, 1718 # The following way of writing the cache mishandles newlines in values,
1305{ 1719(
1720 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1721 eval ac_val=\$$ac_var
1722 case $ac_val in #(
1723 *${as_nl}*)
1724 case $ac_var in #(
1725 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1726echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 esac
1728 case $ac_var in #(
1729 _ | IFS | as_nl) ;; #(
1730 *) $as_unset $ac_var ;;
1731 esac ;;
1732 esac
1733 done
1306 (set) 2>&1 | 1734 (set) 2>&1 |
1307 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1735 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1308 *ac_space=\ *) 1736 *${as_nl}ac_space=\ *)
1309 sed -n \ 1737 sed -n \
1310 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1738 "s/'\''/'\''\\\\'\'''\''/g;
1311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1312 ;; 1740 ;; #(
1313 *) 1741 *)
1314 sed -n \ 1742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ;; 1743 ;;
1317 esac; 1744 esac |
1318} 1745 sort
1746)
1319 echo 1747 echo
1320 1748
1321 cat <<\_ASBOX 1749 cat <<\_ASBOX
1322## ----------------- ## 1750## ----------------- ##
1323## Output variables. ## 1751## Output variables. ##
1324## ----------------- ## 1752## ----------------- ##
1325_ASBOX 1753_ASBOX
1326 echo 1754 echo
1327 for ac_var in $ac_subst_vars 1755 for ac_var in $ac_subst_vars
1328 do 1756 do
1329 eval ac_val=$`echo $ac_var` 1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1330 echo "$ac_var='"'"'$ac_val'"'"'" 1761 echo "$ac_var='\''$ac_val'\''"
1331 done | sort 1762 done | sort
1332 echo 1763 echo
1333 1764
1334 if test -n "$ac_subst_files"; then 1765 if test -n "$ac_subst_files"; then
1335 cat <<\_ASBOX 1766 cat <<\_ASBOX
1336## ------------- ## 1767## ------------------- ##
1337## Output files. ## 1768## File substitutions. ##
1338## ------------- ## 1769## ------------------- ##
1339_ASBOX 1770_ASBOX
1340 echo 1771 echo
1341 for ac_var in $ac_subst_files 1772 for ac_var in $ac_subst_files
1342 do 1773 do
1343 eval ac_val=$`echo $ac_var` 1774 eval ac_val=\$$ac_var
1775 case $ac_val in
1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 esac
1344 echo "$ac_var='"'"'$ac_val'"'"'" 1778 echo "$ac_var='\''$ac_val'\''"
1345 done | sort 1779 done | sort
1346 echo 1780 echo
1347 fi 1781 fi
1348 1782
1349 if test -s confdefs.h; then 1783 if test -s confdefs.h; then
1351## ----------- ## 1785## ----------- ##
1352## confdefs.h. ## 1786## confdefs.h. ##
1353## ----------- ## 1787## ----------- ##
1354_ASBOX 1788_ASBOX
1355 echo 1789 echo
1356 sed "/^$/d" confdefs.h | sort 1790 cat confdefs.h
1357 echo 1791 echo
1358 fi 1792 fi
1359 test "$ac_signal" != 0 && 1793 test "$ac_signal" != 0 &&
1360 echo "$as_me: caught signal $ac_signal" 1794 echo "$as_me: caught signal $ac_signal"
1361 echo "$as_me: exit $exit_status" 1795 echo "$as_me: exit $exit_status"
1362 } >&5 1796 } >&5
1363 rm -f core *.core && 1797 rm -f core *.core core.conftest.* &&
1364 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1365 exit $exit_status 1799 exit $exit_status
1366 ' 0 1800' 0
1367for ac_signal in 1 2 13 15; do 1801for ac_signal in 1 2 13 15; do
1368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1802 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369done 1803done
1370ac_signal=0 1804ac_signal=0
1371 1805
1372# confdefs.h avoids OS command line length limits that DEFS can exceed. 1806# confdefs.h avoids OS command line length limits that DEFS can exceed.
1373rm -rf conftest* confdefs.h 1807rm -f -r conftest* confdefs.h
1374# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375echo >confdefs.h
1376 1808
1377# Predefined preprocessor variables. 1809# Predefined preprocessor variables.
1378 1810
1379cat >>confdefs.h <<_ACEOF 1811cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_NAME "$PACKAGE_NAME" 1812#define PACKAGE_NAME "$PACKAGE_NAME"
1401_ACEOF 1833_ACEOF
1402 1834
1403 1835
1404# Let the site file select an alternate cache file if it wants to. 1836# Let the site file select an alternate cache file if it wants to.
1405# Prefer explicitly selected file to automatically selected ones. 1837# Prefer explicitly selected file to automatically selected ones.
1406if test -z "$CONFIG_SITE"; then 1838if test -n "$CONFIG_SITE"; then
1839 set x "$CONFIG_SITE"
1407 if test "x$prefix" != xNONE; then 1840elif test "x$prefix" != xNONE; then
1408 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1841 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1409 else 1842else
1410 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1843 set x "$ac_default_prefix/share/config.site" \
1411 fi 1844 "$ac_default_prefix/etc/config.site"
1412fi 1845fi
1413for ac_site_file in $CONFIG_SITE; do 1846shift
1847for ac_site_file
1848do
1414 if test -r "$ac_site_file"; then 1849 if test -r "$ac_site_file"; then
1415 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1850 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416echo "$as_me: loading site script $ac_site_file" >&6;} 1851echo "$as_me: loading site script $ac_site_file" >&6;}
1417 sed 's/^/| /' "$ac_site_file" >&5 1852 sed 's/^/| /' "$ac_site_file" >&5
1418 . "$ac_site_file" 1853 . "$ac_site_file"
1424 # files actually), so we avoid doing that. 1859 # files actually), so we avoid doing that.
1425 if test -f "$cache_file"; then 1860 if test -f "$cache_file"; then
1426 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1861 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427echo "$as_me: loading cache $cache_file" >&6;} 1862echo "$as_me: loading cache $cache_file" >&6;}
1428 case $cache_file in 1863 case $cache_file in
1429 [\\/]* | ?:[\\/]* ) . $cache_file;; 1864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1430 *) . ./$cache_file;; 1865 *) . "./$cache_file";;
1431 esac 1866 esac
1432 fi 1867 fi
1433else 1868else
1434 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1869 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435echo "$as_me: creating cache $cache_file" >&6;} 1870echo "$as_me: creating cache $cache_file" >&6;}
1437fi 1872fi
1438 1873
1439# Check that the precious variables saved in the cache have kept the same 1874# Check that the precious variables saved in the cache have kept the same
1440# value. 1875# value.
1441ac_cache_corrupted=false 1876ac_cache_corrupted=false
1442for ac_var in `(set) 2>&1 | 1877for ac_var in $ac_precious_vars; do
1443 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1878 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445 eval ac_new_set=\$ac_env_${ac_var}_set 1879 eval ac_new_set=\$ac_env_${ac_var}_set
1446 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1880 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1447 eval ac_new_val="\$ac_env_${ac_var}_value" 1881 eval ac_new_val=\$ac_env_${ac_var}_value
1448 case $ac_old_set,$ac_new_set in 1882 case $ac_old_set,$ac_new_set in
1449 set,) 1883 set,)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1884 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1885echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452 ac_cache_corrupted=: ;; 1886 ac_cache_corrupted=: ;;
1467 fi;; 1901 fi;;
1468 esac 1902 esac
1469 # Pass precious variables to config.status. 1903 # Pass precious variables to config.status.
1470 if test "$ac_new_set" = set; then 1904 if test "$ac_new_set" = set; then
1471 case $ac_new_val in 1905 case $ac_new_val in
1472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 *) ac_arg=$ac_var=$ac_new_val ;; 1907 *) ac_arg=$ac_var=$ac_new_val ;;
1475 esac 1908 esac
1476 case " $ac_configure_args " in 1909 case " $ac_configure_args " in
1477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1910 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1478 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1911 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1918 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1919echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487 { (exit 1); exit 1; }; } 1920 { (exit 1); exit 1; }; }
1488fi 1921fi
1489 1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1490ac_ext=c 1947ac_ext=c
1491ac_cpp='$CPP $CPPFLAGS' 1948ac_cpp='$CPP $CPPFLAGS'
1492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494ac_compiler_gnu=$ac_cv_c_compiler_gnu 1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495 1952
1496 1953
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522ac_aux_dir= 1954ac_aux_dir=
1523for ac_dir in build_tools $srcdir/build_tools; do 1955for ac_dir in build_tools "$srcdir"/build_tools; do
1524 if test -f $ac_dir/install-sh; then 1956 if test -f "$ac_dir/install-sh"; then
1525 ac_aux_dir=$ac_dir 1957 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c" 1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break 1959 break
1528 elif test -f $ac_dir/install.sh; then 1960 elif test -f "$ac_dir/install.sh"; then
1529 ac_aux_dir=$ac_dir 1961 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c" 1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break 1963 break
1532 elif test -f $ac_dir/shtool; then 1964 elif test -f "$ac_dir/shtool"; then
1533 ac_aux_dir=$ac_dir 1965 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/shtool install -c" 1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 break 1967 break
1536 fi 1968 fi
1537done 1969done
1538if test -z "$ac_aux_dir"; then 1970if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build_tools $srcdir/build_tools" >&5 1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build_tools \"$srcdir\"/build_tools" >&5
1540echo "$as_me: error: cannot find install-sh or install.sh in build_tools $srcdir/build_tools" >&2;} 1972echo "$as_me: error: cannot find install-sh or install.sh in build_tools \"$srcdir\"/build_tools" >&2;}
1541 { (exit 1); exit 1; }; } 1973 { (exit 1); exit 1; }; }
1542fi 1974fi
1975
1976# These three variables are undocumented and unsupported,
1977# and are intended to be withdrawn in a future Autoconf release.
1978# They can cause serious problems if a builder's source tree is in a directory
1979# whose full name contains unusual characters.
1543ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1980ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1544ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1981ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1982ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983
1546 1984
1547am__api_version="1.6" 1985am__api_version="1.6"
1548# Find a good install program. We prefer a C program (faster), 1986# Find a good install program. We prefer a C program (faster),
1549# so one script is as good as another. But avoid the broken or 1987# so one script is as good as another. But avoid the broken or
1550# incompatible versions: 1988# incompatible versions:
1556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1994# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1557# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1995# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1996# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1559# OS/2's system install, which has a completely different semantic 1997# OS/2's system install, which has a completely different semantic
1560# ./install, which can be erroneously created by make from ./install.sh. 1998# ./install, which can be erroneously created by make from ./install.sh.
1561echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1999{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1562echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2000echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1563if test -z "$INSTALL"; then 2001if test -z "$INSTALL"; then
1564if test "${ac_cv_path_install+set}" = set; then 2002if test "${ac_cv_path_install+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6 2003 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else 2004else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 # OSF1 and SCO ODT 3.0 have their own names for install. 2017 # OSF1 and SCO ODT 3.0 have their own names for install.
1580 # Don't use installbsd from OSF since it installs stuff as root 2018 # Don't use installbsd from OSF since it installs stuff as root
1581 # by default. 2019 # by default.
1582 for ac_prog in ginstall scoinst install; do 2020 for ac_prog in ginstall scoinst install; do
1583 for ac_exec_ext in '' $ac_executable_extensions; do 2021 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2022 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1585 if test $ac_prog = install && 2023 if test $ac_prog = install &&
1586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2024 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # AIX install. It has an incompatible calling convention. 2025 # AIX install. It has an incompatible calling convention.
1588 : 2026 :
1589 elif test $ac_prog = install && 2027 elif test $ac_prog = install &&
1598 done 2036 done
1599 done 2037 done
1600 ;; 2038 ;;
1601esac 2039esac
1602done 2040done
2041IFS=$as_save_IFS
1603 2042
1604 2043
1605fi 2044fi
1606 if test "${ac_cv_path_install+set}" = set; then 2045 if test "${ac_cv_path_install+set}" = set; then
1607 INSTALL=$ac_cv_path_install 2046 INSTALL=$ac_cv_path_install
1608 else 2047 else
1609 # As a last resort, use the slow shell script. We don't cache a 2048 # As a last resort, use the slow shell script. Don't cache a
1610 # path for INSTALL within a source directory, because that will 2049 # value for INSTALL within a source directory, because that will
1611 # break other packages using the cache if that directory is 2050 # break other packages using the cache if that directory is
1612 # removed, or if the path is relative. 2051 # removed, or if the value is a relative name.
1613 INSTALL=$ac_install_sh 2052 INSTALL=$ac_install_sh
1614 fi 2053 fi
1615fi 2054fi
1616echo "$as_me:$LINENO: result: $INSTALL" >&5 2055{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1617echo "${ECHO_T}$INSTALL" >&6 2056echo "${ECHO_T}$INSTALL" >&6; }
1618 2057
1619# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1620# It thinks the first close brace ends the variable substitution. 2059# It thinks the first close brace ends the variable substitution.
1621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1622 2061
1623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1624 2063
1625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1626 2065
1627echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2066{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1628echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2067echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1629# Just in case 2068# Just in case
1630sleep 1 2069sleep 1
1631echo timestamp > conftest.file 2070echo timestamp > conftest.file
1632# Do `set' in a subshell so we don't clobber the current shell's 2071# Do `set' in a subshell so we don't clobber the current shell's
1633# arguments. Must try -L first in case configure is actually a 2072# arguments. Must try -L first in case configure is actually a
1665Check your system clock" >&5 2104Check your system clock" >&5
1666echo "$as_me: error: newly created file is older than distributed files! 2105echo "$as_me: error: newly created file is older than distributed files!
1667Check your system clock" >&2;} 2106Check your system clock" >&2;}
1668 { (exit 1); exit 1; }; } 2107 { (exit 1); exit 1; }; }
1669fi 2108fi
1670echo "$as_me:$LINENO: result: yes" >&5 2109{ echo "$as_me:$LINENO: result: yes" >&5
1671echo "${ECHO_T}yes" >&6 2110echo "${ECHO_T}yes" >&6; }
1672test "$program_prefix" != NONE && 2111test "$program_prefix" != NONE &&
1673 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2112 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1674# Use a double $ so make ignores it. 2113# Use a double $ so make ignores it.
1675test "$program_suffix" != NONE && 2114test "$program_suffix" != NONE &&
1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2115 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1677# Double any \ or $. echo might interpret backslashes. 2116# Double any \ or $. echo might interpret backslashes.
1678# By default was `s,x,x', remove it if useless. 2117# By default was `s,x,x', remove it if useless.
1679cat <<\_ACEOF >conftest.sed 2118cat <<\_ACEOF >conftest.sed
1680s/[\\$]/&&/g;s/;s,x,x,$// 2119s/[\\$]/&&/g;s/;s,x,x,$//
1681_ACEOF 2120_ACEOF
1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2121program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1683rm conftest.sed 2122rm -f conftest.sed
1684 2123
1685 2124
1686# expand $ac_aux_dir to an absolute path 2125# expand $ac_aux_dir to an absolute path
1687am_aux_dir=`cd $ac_aux_dir && pwd` 2126am_aux_dir=`cd $ac_aux_dir && pwd`
1688 2127
1698 2137
1699for ac_prog in gawk mawk nawk awk 2138for ac_prog in gawk mawk nawk awk
1700do 2139do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args. 2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702set dummy $ac_prog; ac_word=$2 2141set dummy $ac_prog; ac_word=$2
1703echo "$as_me:$LINENO: checking for $ac_word" >&5 2142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1705if test "${ac_cv_prog_AWK+set}" = set; then 2144if test "${ac_cv_prog_AWK+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6 2145 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else 2146else
1708 if test -n "$AWK"; then 2147 if test -n "$AWK"; then
1709 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1712for as_dir in $PATH 2151for as_dir in $PATH
1713do 2152do
1714 IFS=$as_save_IFS 2153 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=. 2154 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do 2155 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1718 ac_cv_prog_AWK="$ac_prog" 2157 ac_cv_prog_AWK="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2 2159 break 2
1721 fi 2160 fi
1722done 2161done
1723done 2162done
2163IFS=$as_save_IFS
1724 2164
1725fi 2165fi
1726fi 2166fi
1727AWK=$ac_cv_prog_AWK 2167AWK=$ac_cv_prog_AWK
1728if test -n "$AWK"; then 2168if test -n "$AWK"; then
1729 echo "$as_me:$LINENO: result: $AWK" >&5 2169 { echo "$as_me:$LINENO: result: $AWK" >&5
1730echo "${ECHO_T}$AWK" >&6 2170echo "${ECHO_T}$AWK" >&6; }
1731else 2171else
1732 echo "$as_me:$LINENO: result: no" >&5 2172 { echo "$as_me:$LINENO: result: no" >&5
1733echo "${ECHO_T}no" >&6 2173echo "${ECHO_T}no" >&6; }
1734fi 2174fi
2175
1735 2176
1736 test -n "$AWK" && break 2177 test -n "$AWK" && break
1737done 2178done
1738 2179
1739echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2180{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1740echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2181echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1741set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2182set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1742if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2183if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6 2184 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else 2185else
1745 cat >conftest.make <<\_ACEOF 2186 cat >conftest.make <<\_ACEOF
2187SHELL = /bin/sh
1746all: 2188all:
1747 @echo 'ac_maketemp="$(MAKE)"' 2189 @echo '@@@%%%=$(MAKE)=@@@%%%'
1748_ACEOF 2190_ACEOF
1749# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2191# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1750eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2192case `${MAKE-make} -f conftest.make 2>/dev/null` in
1751if test -n "$ac_maketemp"; then 2193 *@@@%%%=?*=@@@%%%*)
1752 eval ac_cv_prog_make_${ac_make}_set=yes 2194 eval ac_cv_prog_make_${ac_make}_set=yes;;
1753else 2195 *)
1754 eval ac_cv_prog_make_${ac_make}_set=no 2196 eval ac_cv_prog_make_${ac_make}_set=no;;
1755fi 2197esac
1756rm -f conftest.make 2198rm -f conftest.make
1757fi 2199fi
1758if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2200if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1759 echo "$as_me:$LINENO: result: yes" >&5 2201 { echo "$as_me:$LINENO: result: yes" >&5
1760echo "${ECHO_T}yes" >&6 2202echo "${ECHO_T}yes" >&6; }
1761 SET_MAKE= 2203 SET_MAKE=
1762else 2204else
1763 echo "$as_me:$LINENO: result: no" >&5 2205 { echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6 2206echo "${ECHO_T}no" >&6; }
1765 SET_MAKE="MAKE=${MAKE-make}" 2207 SET_MAKE="MAKE=${MAKE-make}"
1766fi 2208fi
1767 2209
1768 # test to see if srcdir already configured 2210 # test to see if srcdir already configured
1769if test "`cd $srcdir && pwd`" != "`pwd`" && 2211if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805# will honor the `STRIP' environment variable to overrule this program. 2247# will honor the `STRIP' environment variable to overrule this program.
1806if test "$cross_compiling" != no; then 2248if test "$cross_compiling" != no; then
1807 if test -n "$ac_tool_prefix"; then 2249 if test -n "$ac_tool_prefix"; then
1808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2250 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1809set dummy ${ac_tool_prefix}strip; ac_word=$2 2251set dummy ${ac_tool_prefix}strip; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5 2252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1812if test "${ac_cv_prog_STRIP+set}" = set; then 2254if test "${ac_cv_prog_STRIP+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6 2255 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else 2256else
1815 if test -n "$STRIP"; then 2257 if test -n "$STRIP"; then
1816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1819for as_dir in $PATH 2261for as_dir in $PATH
1820do 2262do
1821 IFS=$as_save_IFS 2263 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=. 2264 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do 2265 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1825 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2267 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2 2269 break 2
1828 fi 2270 fi
1829done 2271done
1830done 2272done
2273IFS=$as_save_IFS
1831 2274
1832fi 2275fi
1833fi 2276fi
1834STRIP=$ac_cv_prog_STRIP 2277STRIP=$ac_cv_prog_STRIP
1835if test -n "$STRIP"; then 2278if test -n "$STRIP"; then
1836 echo "$as_me:$LINENO: result: $STRIP" >&5 2279 { echo "$as_me:$LINENO: result: $STRIP" >&5
1837echo "${ECHO_T}$STRIP" >&6 2280echo "${ECHO_T}$STRIP" >&6; }
1838else 2281else
1839 echo "$as_me:$LINENO: result: no" >&5 2282 { echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6 2283echo "${ECHO_T}no" >&6; }
1841fi 2284fi
2285
1842 2286
1843fi 2287fi
1844if test -z "$ac_cv_prog_STRIP"; then 2288if test -z "$ac_cv_prog_STRIP"; then
1845 ac_ct_STRIP=$STRIP 2289 ac_ct_STRIP=$STRIP
1846 # Extract the first word of "strip", so it can be a program name with args. 2290 # Extract the first word of "strip", so it can be a program name with args.
1847set dummy strip; ac_word=$2 2291set dummy strip; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5 2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1850if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2294if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6 2295 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else 2296else
1853 if test -n "$ac_ct_STRIP"; then 2297 if test -n "$ac_ct_STRIP"; then
1854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2298 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1857for as_dir in $PATH 2301for as_dir in $PATH
1858do 2302do
1859 IFS=$as_save_IFS 2303 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=. 2304 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do 2305 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1863 ac_cv_prog_ac_ct_STRIP="strip" 2307 ac_cv_prog_ac_ct_STRIP="strip"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2 2309 break 2
1866 fi 2310 fi
1867done 2311done
1868done 2312done
2313IFS=$as_save_IFS
1869 2314
1870 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1871fi 2315fi
1872fi 2316fi
1873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2317ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1874if test -n "$ac_ct_STRIP"; then 2318if test -n "$ac_ct_STRIP"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2319 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1876echo "${ECHO_T}$ac_ct_STRIP" >&6 2320echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1877else 2321else
1878 echo "$as_me:$LINENO: result: no" >&5 2322 { echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6 2323echo "${ECHO_T}no" >&6; }
1880fi 2324fi
1881 2325
2326 if test "x$ac_ct_STRIP" = x; then
2327 STRIP=":"
2328 else
2329 case $cross_compiling:$ac_tool_warned in
2330yes:)
2331{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2332whose name does not start with the host triplet. If you think this
2333configuration is useful to you, please write to autoconf@gnu.org." >&5
2334echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2335whose name does not start with the host triplet. If you think this
2336configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2337ac_tool_warned=yes ;;
2338esac
1882 STRIP=$ac_ct_STRIP 2339 STRIP=$ac_ct_STRIP
2340 fi
1883else 2341else
1884 STRIP="$ac_cv_prog_STRIP" 2342 STRIP="$ac_cv_prog_STRIP"
1885fi 2343fi
1886 2344
1887fi 2345fi
1900# Required programs 2358# Required programs
1901#------------------------------------------------------------------------------- 2359#-------------------------------------------------------------------------------
1902 2360
1903# Add the stamp file to the list of files AC keeps track of, 2361# Add the stamp file to the list of files AC keeps track of,
1904# along with our hook. 2362# along with our hook.
1905 ac_config_headers="$ac_config_headers config.h" 2363ac_config_headers="$ac_config_headers config.h"
1906 2364
1907 2365
1908 2366
1909#AC_CONFIG_SRCDIR([src/libspf/main.c]) 2367#AC_CONFIG_SRCDIR([src/libspf/main.c])
1910 2368
1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_c_compiler_gnu 2373ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916if test -n "$ac_tool_prefix"; then 2374if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1918set dummy ${ac_tool_prefix}gcc; ac_word=$2 2376set dummy ${ac_tool_prefix}gcc; ac_word=$2
1919echo "$as_me:$LINENO: checking for $ac_word" >&5 2377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1921if test "${ac_cv_prog_CC+set}" = set; then 2379if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6 2380 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else 2381else
1924 if test -n "$CC"; then 2382 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test. 2383 ac_cv_prog_CC="$CC" # Let the user override the test.
1928for as_dir in $PATH 2386for as_dir in $PATH
1929do 2387do
1930 IFS=$as_save_IFS 2388 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=. 2389 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do 2390 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1934 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2 2394 break 2
1937 fi 2395 fi
1938done 2396done
1939done 2397done
2398IFS=$as_save_IFS
1940 2399
1941fi 2400fi
1942fi 2401fi
1943CC=$ac_cv_prog_CC 2402CC=$ac_cv_prog_CC
1944if test -n "$CC"; then 2403if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5 2404 { echo "$as_me:$LINENO: result: $CC" >&5
1946echo "${ECHO_T}$CC" >&6 2405echo "${ECHO_T}$CC" >&6; }
1947else 2406else
1948 echo "$as_me:$LINENO: result: no" >&5 2407 { echo "$as_me:$LINENO: result: no" >&5
1949echo "${ECHO_T}no" >&6 2408echo "${ECHO_T}no" >&6; }
1950fi 2409fi
2410
1951 2411
1952fi 2412fi
1953if test -z "$ac_cv_prog_CC"; then 2413if test -z "$ac_cv_prog_CC"; then
1954 ac_ct_CC=$CC 2414 ac_ct_CC=$CC
1955 # Extract the first word of "gcc", so it can be a program name with args. 2415 # Extract the first word of "gcc", so it can be a program name with args.
1956set dummy gcc; ac_word=$2 2416set dummy gcc; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5 2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6 2420 echo $ECHO_N "(cached) $ECHO_C" >&6
1961else 2421else
1962 if test -n "$ac_ct_CC"; then 2422 if test -n "$ac_ct_CC"; then
1963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1966for as_dir in $PATH 2426for as_dir in $PATH
1967do 2427do
1968 IFS=$as_save_IFS 2428 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=. 2429 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do 2430 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_ac_ct_CC="gcc" 2432 ac_cv_prog_ac_ct_CC="gcc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 break 2 2434 break 2
1975 fi 2435 fi
1976done 2436done
1977done 2437done
2438IFS=$as_save_IFS
1978 2439
1979fi 2440fi
1980fi 2441fi
1981ac_ct_CC=$ac_cv_prog_ac_ct_CC 2442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982if test -n "$ac_ct_CC"; then 2443if test -n "$ac_ct_CC"; then
1983 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2444 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984echo "${ECHO_T}$ac_ct_CC" >&6 2445echo "${ECHO_T}$ac_ct_CC" >&6; }
1985else 2446else
1986 echo "$as_me:$LINENO: result: no" >&5 2447 { echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6 2448echo "${ECHO_T}no" >&6; }
1988fi 2449fi
1989 2450
2451 if test "x$ac_ct_CC" = x; then
2452 CC=""
2453 else
2454 case $cross_compiling:$ac_tool_warned in
2455yes:)
2456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2457whose name does not start with the host triplet. If you think this
2458configuration is useful to you, please write to autoconf@gnu.org." >&5
2459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2460whose name does not start with the host triplet. If you think this
2461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2462ac_tool_warned=yes ;;
2463esac
1990 CC=$ac_ct_CC 2464 CC=$ac_ct_CC
2465 fi
1991else 2466else
1992 CC="$ac_cv_prog_CC" 2467 CC="$ac_cv_prog_CC"
1993fi 2468fi
1994 2469
1995if test -z "$CC"; then 2470if test -z "$CC"; then
1996 if test -n "$ac_tool_prefix"; then 2471 if test -n "$ac_tool_prefix"; then
1997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1998set dummy ${ac_tool_prefix}cc; ac_word=$2 2473set dummy ${ac_tool_prefix}cc; ac_word=$2
1999echo "$as_me:$LINENO: checking for $ac_word" >&5 2474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001if test "${ac_cv_prog_CC+set}" = set; then 2476if test "${ac_cv_prog_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6 2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2003else 2478else
2004 if test -n "$CC"; then 2479 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test. 2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2008for as_dir in $PATH 2483for as_dir in $PATH
2009do 2484do
2010 IFS=$as_save_IFS 2485 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=. 2486 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do 2487 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 ac_cv_prog_CC="${ac_tool_prefix}cc" 2489 ac_cv_prog_CC="${ac_tool_prefix}cc"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 break 2 2491 break 2
2017 fi 2492 fi
2018done 2493done
2019done 2494done
2495IFS=$as_save_IFS
2020 2496
2021fi 2497fi
2022fi 2498fi
2023CC=$ac_cv_prog_CC 2499CC=$ac_cv_prog_CC
2024if test -n "$CC"; then 2500if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5 2501 { echo "$as_me:$LINENO: result: $CC" >&5
2026echo "${ECHO_T}$CC" >&6 2502echo "${ECHO_T}$CC" >&6; }
2027else 2503else
2028 echo "$as_me:$LINENO: result: no" >&5 2504 { echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6 2505echo "${ECHO_T}no" >&6; }
2030fi 2506fi
2031 2507
2032fi 2508
2033if test -z "$ac_cv_prog_CC"; then
2034 ac_ct_CC=$CC
2035 # Extract the first word of "cc", so it can be a program name with args.
2036set dummy cc; ac_word=$2
2037echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044else
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_ac_ct_CC="cc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2055 fi 2509 fi
2056done
2057done
2058
2059fi
2060fi
2061ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062if test -n "$ac_ct_CC"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064echo "${ECHO_T}$ac_ct_CC" >&6
2065else
2066 echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6
2068fi
2069
2070 CC=$ac_ct_CC
2071else
2072 CC="$ac_cv_prog_CC"
2073fi
2074
2075fi 2510fi
2076if test -z "$CC"; then 2511if test -z "$CC"; then
2077 # Extract the first word of "cc", so it can be a program name with args. 2512 # Extract the first word of "cc", so it can be a program name with args.
2078set dummy cc; ac_word=$2 2513set dummy cc; ac_word=$2
2079echo "$as_me:$LINENO: checking for $ac_word" >&5 2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2081if test "${ac_cv_prog_CC+set}" = set; then 2516if test "${ac_cv_prog_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6 2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else 2518else
2084 if test -n "$CC"; then 2519 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test. 2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2089for as_dir in $PATH 2524for as_dir in $PATH
2090do 2525do
2091 IFS=$as_save_IFS 2526 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=. 2527 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do 2528 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2096 ac_prog_rejected=yes 2531 ac_prog_rejected=yes
2097 continue 2532 continue
2098 fi 2533 fi
2099 ac_cv_prog_CC="cc" 2534 ac_cv_prog_CC="cc"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2 2536 break 2
2102 fi 2537 fi
2103done 2538done
2104done 2539done
2540IFS=$as_save_IFS
2105 2541
2106if test $ac_prog_rejected = yes; then 2542if test $ac_prog_rejected = yes; then
2107 # We found a bogon in the path, so make sure we never use it. 2543 # We found a bogon in the path, so make sure we never use it.
2108 set dummy $ac_cv_prog_CC 2544 set dummy $ac_cv_prog_CC
2109 shift 2545 shift
2117fi 2553fi
2118fi 2554fi
2119fi 2555fi
2120CC=$ac_cv_prog_CC 2556CC=$ac_cv_prog_CC
2121if test -n "$CC"; then 2557if test -n "$CC"; then
2122 echo "$as_me:$LINENO: result: $CC" >&5 2558 { echo "$as_me:$LINENO: result: $CC" >&5
2123echo "${ECHO_T}$CC" >&6 2559echo "${ECHO_T}$CC" >&6; }
2124else 2560else
2125 echo "$as_me:$LINENO: result: no" >&5 2561 { echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6 2562echo "${ECHO_T}no" >&6; }
2127fi 2563fi
2564
2128 2565
2129fi 2566fi
2130if test -z "$CC"; then 2567if test -z "$CC"; then
2131 if test -n "$ac_tool_prefix"; then 2568 if test -n "$ac_tool_prefix"; then
2132 for ac_prog in cl 2569 for ac_prog in cl.exe
2133 do 2570 do
2134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2135set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2572set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5 2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138if test "${ac_cv_prog_CC+set}" = set; then 2575if test "${ac_cv_prog_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6 2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2140else 2577else
2141 if test -n "$CC"; then 2578 if test -n "$CC"; then
2142 ac_cv_prog_CC="$CC" # Let the user override the test. 2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2145for as_dir in $PATH 2582for as_dir in $PATH
2146do 2583do
2147 IFS=$as_save_IFS 2584 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=. 2585 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do 2586 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2 2590 break 2
2154 fi 2591 fi
2155done 2592done
2156done 2593done
2594IFS=$as_save_IFS
2157 2595
2158fi 2596fi
2159fi 2597fi
2160CC=$ac_cv_prog_CC 2598CC=$ac_cv_prog_CC
2161if test -n "$CC"; then 2599if test -n "$CC"; then
2162 echo "$as_me:$LINENO: result: $CC" >&5 2600 { echo "$as_me:$LINENO: result: $CC" >&5
2163echo "${ECHO_T}$CC" >&6 2601echo "${ECHO_T}$CC" >&6; }
2164else 2602else
2165 echo "$as_me:$LINENO: result: no" >&5 2603 { echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6 2604echo "${ECHO_T}no" >&6; }
2167fi 2605fi
2606
2168 2607
2169 test -n "$CC" && break 2608 test -n "$CC" && break
2170 done 2609 done
2171fi 2610fi
2172if test -z "$CC"; then 2611if test -z "$CC"; then
2173 ac_ct_CC=$CC 2612 ac_ct_CC=$CC
2174 for ac_prog in cl 2613 for ac_prog in cl.exe
2175do 2614do
2176 # Extract the first word of "$ac_prog", so it can be a program name with args. 2615 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177set dummy $ac_prog; ac_word=$2 2616set dummy $ac_prog; ac_word=$2
2178echo "$as_me:$LINENO: checking for $ac_word" >&5 2617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6 2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else 2621else
2183 if test -n "$ac_ct_CC"; then 2622 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187for as_dir in $PATH 2626for as_dir in $PATH
2188do 2627do
2189 IFS=$as_save_IFS 2628 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=. 2629 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do 2630 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_ac_ct_CC="$ac_prog" 2632 ac_cv_prog_ac_ct_CC="$ac_prog"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2 2634 break 2
2196 fi 2635 fi
2197done 2636done
2198done 2637done
2638IFS=$as_save_IFS
2199 2639
2200fi 2640fi
2201fi 2641fi
2202ac_ct_CC=$ac_cv_prog_ac_ct_CC 2642ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203if test -n "$ac_ct_CC"; then 2643if test -n "$ac_ct_CC"; then
2204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2644 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205echo "${ECHO_T}$ac_ct_CC" >&6 2645echo "${ECHO_T}$ac_ct_CC" >&6; }
2206else 2646else
2207 echo "$as_me:$LINENO: result: no" >&5 2647 { echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6 2648echo "${ECHO_T}no" >&6; }
2209fi 2649fi
2650
2210 2651
2211 test -n "$ac_ct_CC" && break 2652 test -n "$ac_ct_CC" && break
2212done 2653done
2213 2654
2655 if test "x$ac_ct_CC" = x; then
2656 CC=""
2657 else
2658 case $cross_compiling:$ac_tool_warned in
2659yes:)
2660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2661whose name does not start with the host triplet. If you think this
2662configuration is useful to you, please write to autoconf@gnu.org." >&5
2663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2664whose name does not start with the host triplet. If you think this
2665configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2666ac_tool_warned=yes ;;
2667esac
2214 CC=$ac_ct_CC 2668 CC=$ac_ct_CC
2669 fi
2215fi 2670fi
2216 2671
2217fi 2672fi
2218 2673
2219 2674
2222echo "$as_me: error: no acceptable C compiler found in \$PATH 2677echo "$as_me: error: no acceptable C compiler found in \$PATH
2223See \`config.log' for more details." >&2;} 2678See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; } 2679 { (exit 1); exit 1; }; }
2225 2680
2226# Provide some information about the compiler. 2681# Provide some information about the compiler.
2227echo "$as_me:$LINENO:" \
2228 "checking for C compiler version" >&5 2682echo "$as_me:$LINENO: checking for C compiler version" >&5
2229ac_compiler=`set X $ac_compile; echo $2` 2683ac_compiler=`set X $ac_compile; echo $2`
2230{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2684{ (ac_try="$ac_compiler --version >&5"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval $ac_compiler --version </dev/null >&5) 2>&5 2690 (eval "$ac_compiler --version >&5") 2>&5
2232 ac_status=$? 2691 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } 2693 (exit $ac_status); }
2235{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2694{ (ac_try="$ac_compiler -v >&5"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval $ac_compiler -v </dev/null >&5) 2>&5 2700 (eval "$ac_compiler -v >&5") 2>&5
2237 ac_status=$? 2701 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } 2703 (exit $ac_status); }
2240{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2704{ (ac_try="$ac_compiler -V >&5"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval $ac_compiler -V </dev/null >&5) 2>&5 2710 (eval "$ac_compiler -V >&5") 2>&5
2242 ac_status=$? 2711 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } 2713 (exit $ac_status); }
2245 2714
2246cat >conftest.$ac_ext <<_ACEOF 2715cat >conftest.$ac_ext <<_ACEOF
2261ac_clean_files_save=$ac_clean_files 2730ac_clean_files_save=$ac_clean_files
2262ac_clean_files="$ac_clean_files a.out a.exe b.out" 2731ac_clean_files="$ac_clean_files a.out a.exe b.out"
2263# Try to create an executable without -o first, disregard a.out. 2732# Try to create an executable without -o first, disregard a.out.
2264# It will help us diagnose broken compilers, and finding out an intuition 2733# It will help us diagnose broken compilers, and finding out an intuition
2265# of exeext. 2734# of exeext.
2266echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2735{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2267echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2736echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2268ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2737ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2738#
2739# List of possible output files, starting from the most likely.
2740# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2741# only as a last resort. b.out is created by i960 compilers.
2742ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2743#
2744# The IRIX 6 linker writes into existing files which may not be
2745# executable, retaining their permissions. Remove them first so a
2746# subsequent execution test works.
2747ac_rmfiles=
2748for ac_file in $ac_files
2749do
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2753 esac
2754done
2755rm -f $ac_rmfiles
2756
2757if { (ac_try="$ac_link_default"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2269if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval $ac_link_default) 2>&5 2763 (eval "$ac_link_default") 2>&5
2271 ac_status=$? 2764 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then 2766 (exit $ac_status); }; then
2274 # Find the output, starting from the most likely. This scheme is 2767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2275# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2768# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2276# resort. 2769# in a Makefile. We should not override ac_cv_exeext if it was cached,
2277 2770# so that the user can short-circuit this test for compilers unknown to
2278# Be careful to initialize this variable, since it used to be cached. 2771# Autoconf.
2279# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2772for ac_file in $ac_files ''
2280ac_cv_exeext=
2281# b.out is created by i960 compilers.
2282for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2283do 2773do
2284 test -f "$ac_file" || continue 2774 test -f "$ac_file" || continue
2285 case $ac_file in 2775 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2287 ;;
2288 conftest.$ac_ext )
2289 # This is the source file.
2290 ;; 2777 ;;
2291 [ab].out ) 2778 [ab].out )
2292 # We found the default executable, but exeext='' is most 2779 # We found the default executable, but exeext='' is most
2293 # certainly right. 2780 # certainly right.
2294 break;; 2781 break;;
2295 *.* ) 2782 *.* )
2783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2784 then :; else
2296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 # FIXME: I believe we export ac_cv_exeext for Libtool, 2786 fi
2298 # but it would be cool to find out if it's true. Does anybody 2787 # We set ac_cv_exeext here because the later test for it is not
2299 # maintain Libtool? --akim. 2788 # safe: cross compilers may not add the suffix if given an `-o'
2300 export ac_cv_exeext 2789 # argument, so we may need to know it at that point already.
2790 # Even if this section looks crufty: it has the advantage of
2791 # actually working.
2301 break;; 2792 break;;
2302 * ) 2793 * )
2303 break;; 2794 break;;
2304 esac 2795 esac
2305done 2796done
2797test "$ac_cv_exeext" = no && ac_cv_exeext=
2798
2306else 2799else
2800 ac_file=''
2801fi
2802
2803{ echo "$as_me:$LINENO: result: $ac_file" >&5
2804echo "${ECHO_T}$ac_file" >&6; }
2805if test -z "$ac_file"; then
2307 echo "$as_me: failed program was:" >&5 2806 echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5 2807sed 's/^/| /' conftest.$ac_ext >&5
2309 2808
2310{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2809{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2311See \`config.log' for more details." >&5 2810See \`config.log' for more details." >&5
2313See \`config.log' for more details." >&2;} 2812See \`config.log' for more details." >&2;}
2314 { (exit 77); exit 77; }; } 2813 { (exit 77); exit 77; }; }
2315fi 2814fi
2316 2815
2317ac_exeext=$ac_cv_exeext 2816ac_exeext=$ac_cv_exeext
2318echo "$as_me:$LINENO: result: $ac_file" >&5
2319echo "${ECHO_T}$ac_file" >&6
2320 2817
2321# Check the compiler produces executables we can run. If not, either 2818# Check that the compiler produces executables we can run. If not, either
2322# the compiler is broken, or we cross compile. 2819# the compiler is broken, or we cross compile.
2323echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2820{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2324echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2821echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2325# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2822# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2326# If not cross compiling, check that we can run a simple program. 2823# If not cross compiling, check that we can run a simple program.
2327if test "$cross_compiling" != yes; then 2824if test "$cross_compiling" != yes; then
2328 if { ac_try='./$ac_file' 2825 if { ac_try='./$ac_file'
2826 { (case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval $ac_try) 2>&5 2831 (eval "$ac_try") 2>&5
2331 ac_status=$? 2832 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then 2834 (exit $ac_status); }; }; then
2334 cross_compiling=no 2835 cross_compiling=no
2335 else 2836 else
2344See \`config.log' for more details." >&2;} 2845See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; } 2846 { (exit 1); exit 1; }; }
2346 fi 2847 fi
2347 fi 2848 fi
2348fi 2849fi
2349echo "$as_me:$LINENO: result: yes" >&5 2850{ echo "$as_me:$LINENO: result: yes" >&5
2350echo "${ECHO_T}yes" >&6 2851echo "${ECHO_T}yes" >&6; }
2351 2852
2352rm -f a.out a.exe conftest$ac_cv_exeext b.out 2853rm -f a.out a.exe conftest$ac_cv_exeext b.out
2353ac_clean_files=$ac_clean_files_save 2854ac_clean_files=$ac_clean_files_save
2354# Check the compiler produces executables we can run. If not, either 2855# Check that the compiler produces executables we can run. If not, either
2355# the compiler is broken, or we cross compile. 2856# the compiler is broken, or we cross compile.
2356echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2857{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2357echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2858echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2358echo "$as_me:$LINENO: result: $cross_compiling" >&5 2859{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2359echo "${ECHO_T}$cross_compiling" >&6 2860echo "${ECHO_T}$cross_compiling" >&6; }
2360 2861
2361echo "$as_me:$LINENO: checking for suffix of executables" >&5 2862{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2362echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2863echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2864if { (ac_try="$ac_link"
2865case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
2363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval $ac_link) 2>&5 2870 (eval "$ac_link") 2>&5
2365 ac_status=$? 2871 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then 2873 (exit $ac_status); }; then
2368 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2874 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2369# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2875# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2370# work properly (i.e., refer to `conftest.exe'), while it won't with 2876# work properly (i.e., refer to `conftest.exe'), while it won't with
2371# `rm'. 2877# `rm'.
2372for ac_file in conftest.exe conftest conftest.*; do 2878for ac_file in conftest.exe conftest conftest.*; do
2373 test -f "$ac_file" || continue 2879 test -f "$ac_file" || continue
2374 case $ac_file in 2880 case $ac_file in
2375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377 export ac_cv_exeext
2378 break;; 2883 break;;
2379 * ) break;; 2884 * ) break;;
2380 esac 2885 esac
2381done 2886done
2382else 2887else
2386See \`config.log' for more details." >&2;} 2891See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; } 2892 { (exit 1); exit 1; }; }
2388fi 2893fi
2389 2894
2390rm -f conftest$ac_cv_exeext 2895rm -f conftest$ac_cv_exeext
2391echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2896{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392echo "${ECHO_T}$ac_cv_exeext" >&6 2897echo "${ECHO_T}$ac_cv_exeext" >&6; }
2393 2898
2394rm -f conftest.$ac_ext 2899rm -f conftest.$ac_ext
2395EXEEXT=$ac_cv_exeext 2900EXEEXT=$ac_cv_exeext
2396ac_exeext=$EXEEXT 2901ac_exeext=$EXEEXT
2397echo "$as_me:$LINENO: checking for suffix of object files" >&5 2902{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2903echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2399if test "${ac_cv_objext+set}" = set; then 2904if test "${ac_cv_objext+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6 2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2401else 2906else
2402 cat >conftest.$ac_ext <<_ACEOF 2907 cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h. */ 2908/* confdefs.h. */
2413 ; 2918 ;
2414 return 0; 2919 return 0;
2415} 2920}
2416_ACEOF 2921_ACEOF
2417rm -f conftest.o conftest.obj 2922rm -f conftest.o conftest.obj
2923if { (ac_try="$ac_compile"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval $ac_compile) 2>&5 2929 (eval "$ac_compile") 2>&5
2420 ac_status=$? 2930 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then 2932 (exit $ac_status); }; then
2423 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2933 for ac_file in conftest.o conftest.obj conftest.*; do
2934 test -f "$ac_file" || continue;
2424 case $ac_file in 2935 case $ac_file in
2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2427 break;; 2938 break;;
2428 esac 2939 esac
2429done 2940done
2430else 2941else
2438 { (exit 1); exit 1; }; } 2949 { (exit 1); exit 1; }; }
2439fi 2950fi
2440 2951
2441rm -f conftest.$ac_cv_objext conftest.$ac_ext 2952rm -f conftest.$ac_cv_objext conftest.$ac_ext
2442fi 2953fi
2443echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2954{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2444echo "${ECHO_T}$ac_cv_objext" >&6 2955echo "${ECHO_T}$ac_cv_objext" >&6; }
2445OBJEXT=$ac_cv_objext 2956OBJEXT=$ac_cv_objext
2446ac_objext=$OBJEXT 2957ac_objext=$OBJEXT
2447echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2958{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2448echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2959echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2449if test "${ac_cv_c_compiler_gnu+set}" = set; then 2960if test "${ac_cv_c_compiler_gnu+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6 2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2451else 2962else
2452 cat >conftest.$ac_ext <<_ACEOF 2963 cat >conftest.$ac_ext <<_ACEOF
2453/* confdefs.h. */ 2964/* confdefs.h. */
2466 ; 2977 ;
2467 return 0; 2978 return 0;
2468} 2979}
2469_ACEOF 2980_ACEOF
2470rm -f conftest.$ac_objext 2981rm -f conftest.$ac_objext
2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval $ac_compile) 2>conftest.er1 2988 (eval "$ac_compile") 2>conftest.er1
2473 ac_status=$? 2989 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err 2990 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1 2991 rm -f conftest.er1
2476 cat conftest.err >&5 2992 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } && 2994 (exit $ac_status); } && {
2479 { ac_try='test -z "$ac_c_werror_flag" 2995 test -z "$ac_c_werror_flag" ||
2480 || test ! -s conftest.err' 2996 test ! -s conftest.err
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2997 } && test -s conftest.$ac_objext; then
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 ac_compiler_gnu=yes 2998 ac_compiler_gnu=yes
2493else 2999else
2494 echo "$as_me: failed program was:" >&5 3000 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5 3001sed 's/^/| /' conftest.$ac_ext >&5
2496 3002
2497ac_compiler_gnu=no 3003 ac_compiler_gnu=no
2498fi 3004fi
3005
2499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500ac_cv_c_compiler_gnu=$ac_compiler_gnu 3007ac_cv_c_compiler_gnu=$ac_compiler_gnu
2501 3008
2502fi 3009fi
2503echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3010{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2504echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2505GCC=`test $ac_compiler_gnu = yes && echo yes` 3012GCC=`test $ac_compiler_gnu = yes && echo yes`
2506ac_test_CFLAGS=${CFLAGS+set} 3013ac_test_CFLAGS=${CFLAGS+set}
2507ac_save_CFLAGS=$CFLAGS 3014ac_save_CFLAGS=$CFLAGS
2508CFLAGS="-g"
2509echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3015{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2510echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2511if test "${ac_cv_prog_cc_g+set}" = set; then 3017if test "${ac_cv_prog_cc_g+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6 3018 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else 3019else
3020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3022 ac_cv_prog_cc_g=no
3023 CFLAGS="-g"
2514 cat >conftest.$ac_ext <<_ACEOF 3024 cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h. */ 3025/* confdefs.h. */
2516_ACEOF 3026_ACEOF
2517cat confdefs.h >>conftest.$ac_ext 3027cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF 3028cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h. */ 3029/* end confdefs.h. */
2525 ; 3035 ;
2526 return 0; 3036 return 0;
2527} 3037}
2528_ACEOF 3038_ACEOF
2529rm -f conftest.$ac_objext 3039rm -f conftest.$ac_objext
3040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval $ac_compile) 2>conftest.er1 3046 (eval "$ac_compile") 2>conftest.er1
2532 ac_status=$? 3047 ac_status=$?
2533 grep -v '^ *+' conftest.er1 >conftest.err 3048 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1 3049 rm -f conftest.er1
2535 cat conftest.err >&5 3050 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } && 3052 (exit $ac_status); } && {
2538 { ac_try='test -z "$ac_c_werror_flag" 3053 test -z "$ac_c_werror_flag" ||
2539 || test ! -s conftest.err' 3054 test ! -s conftest.err
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3055 } && test -s conftest.$ac_objext; then
2541 (eval $ac_try) 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 ac_cv_prog_cc_g=yes 3056 ac_cv_prog_cc_g=yes
2552else 3057else
2553 echo "$as_me: failed program was:" >&5 3058 echo "$as_me: failed program was:" >&5
2554sed 's/^/| /' conftest.$ac_ext >&5 3059sed 's/^/| /' conftest.$ac_ext >&5
2555 3060
3061 CFLAGS=""
3062 cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h. */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h. */
3068
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_c_werror_flag=$ac_save_c_werror_flag
3100 CFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
2556ac_cv_prog_cc_g=no 3133 ac_cv_prog_cc_g=yes
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138
2557fi 3139fi
3140
2558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559fi 3142fi
3143
3144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145fi
3146
3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3149fi
2560echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3150{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2561echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3151echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2562if test "$ac_test_CFLAGS" = set; then 3152if test "$ac_test_CFLAGS" = set; then
2563 CFLAGS=$ac_save_CFLAGS 3153 CFLAGS=$ac_save_CFLAGS
2564elif test $ac_cv_prog_cc_g = yes; then 3154elif test $ac_cv_prog_cc_g = yes; then
2565 if test "$GCC" = yes; then 3155 if test "$GCC" = yes; then
2566 CFLAGS="-g -O2" 3156 CFLAGS="-g -O2"
2572 CFLAGS="-O2" 3162 CFLAGS="-O2"
2573 else 3163 else
2574 CFLAGS= 3164 CFLAGS=
2575 fi 3165 fi
2576fi 3166fi
2577echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3167{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2578echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3168echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2579if test "${ac_cv_prog_cc_stdc+set}" = set; then 3169if test "${ac_cv_prog_cc_c89+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6 3170 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else 3171else
2582 ac_cv_prog_cc_stdc=no 3172 ac_cv_prog_cc_c89=no
2583ac_save_CC=$CC 3173ac_save_CC=$CC
2584cat >conftest.$ac_ext <<_ACEOF 3174cat >conftest.$ac_ext <<_ACEOF
2585/* confdefs.h. */ 3175/* confdefs.h. */
2586_ACEOF 3176_ACEOF
2587cat confdefs.h >>conftest.$ac_ext 3177cat confdefs.h >>conftest.$ac_ext
2611} 3201}
2612 3202
2613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2614 function prototypes and stuff, but not '\xHH' hex character constants. 3204 function prototypes and stuff, but not '\xHH' hex character constants.
2615 These don't provoke an error unfortunately, instead are silently treated 3205 These don't provoke an error unfortunately, instead are silently treated
2616 as 'x'. The following induces an error, until -std1 is added to get 3206 as 'x'. The following induces an error, until -std is added to get
2617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2618 array size at least. It's necessary to write '\x00'==0 to get something 3208 array size at least. It's necessary to write '\x00'==0 to get something
2619 that's true only with -std1. */ 3209 that's true only with -std. */
2620int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3210int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3211
3212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3213 inside strings and character constants. */
3214#define FOO(x) 'x'
3215int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2621 3216
2622int test (int i, double x); 3217int test (int i, double x);
2623struct s1 {int (*f) (int a);}; 3218struct s1 {int (*f) (int a);};
2624struct s2 {int (*f) (double a);}; 3219struct s2 {int (*f) (double a);};
2625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2632 ; 3227 ;
2633 return 0; 3228 return 0;
2634} 3229}
2635_ACEOF 3230_ACEOF
2636# Don't try gcc -ansi; that turns off useful extensions and 3231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2637# breaks some systems' header files. 3232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2638# AIX -qlanglvl=ansi
2639# Ultrix and OSF/1 -std1
2640# HP-UX 10.20 and later -Ae
2641# HP-UX older versions -Aa -D_HPUX_SOURCE
2642# SVR4 -Xc -D__EXTENSIONS__
2643for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2644do 3233do
2645 CC="$ac_save_CC $ac_arg" 3234 CC="$ac_save_CC $ac_arg"
2646 rm -f conftest.$ac_objext 3235 rm -f conftest.$ac_objext
3236if { (ac_try="$ac_compile"
3237case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240esac
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval $ac_compile) 2>conftest.er1 3242 (eval "$ac_compile") 2>conftest.er1
2649 ac_status=$? 3243 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err 3244 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1 3245 rm -f conftest.er1
2652 cat conftest.err >&5 3246 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && 3248 (exit $ac_status); } && {
2655 { ac_try='test -z "$ac_c_werror_flag" 3249 test -z "$ac_c_werror_flag" ||
2656 || test ! -s conftest.err' 3250 test ! -s conftest.err
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3251 } && test -s conftest.$ac_objext; then
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 ac_cv_prog_cc_stdc=$ac_arg 3252 ac_cv_prog_cc_c89=$ac_arg
2669break
2670else 3253else
2671 echo "$as_me: failed program was:" >&5 3254 echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5 3255sed 's/^/| /' conftest.$ac_ext >&5
2673 3256
3257
2674fi 3258fi
3259
2675rm -f conftest.err conftest.$ac_objext 3260rm -f core conftest.err conftest.$ac_objext
3261 test "x$ac_cv_prog_cc_c89" != "xno" && break
2676done 3262done
2677rm -f conftest.$ac_ext conftest.$ac_objext 3263rm -f conftest.$ac_ext
2678CC=$ac_save_CC 3264CC=$ac_save_CC
2679 3265
2680fi 3266fi
2681 3267# AC_CACHE_VAL
2682case "x$ac_cv_prog_cc_stdc" in 3268case "x$ac_cv_prog_cc_c89" in
2683 x|xno) 3269 x)
2684 echo "$as_me:$LINENO: result: none needed" >&5 3270 { echo "$as_me:$LINENO: result: none needed" >&5
2685echo "${ECHO_T}none needed" >&6 ;; 3271echo "${ECHO_T}none needed" >&6; } ;;
3272 xno)
3273 { echo "$as_me:$LINENO: result: unsupported" >&5
3274echo "${ECHO_T}unsupported" >&6; } ;;
2686 *) 3275 *)
3276 CC="$CC $ac_cv_prog_cc_c89"
2687 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3277 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2688echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3278echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2689 CC="$CC $ac_cv_prog_cc_stdc" ;;
2690esac 3279esac
2691 3280
2692# Some people use a C++ compiler to compile C. Since we use `exit',
2693# in C++ we need to declare it. In case someone uses the same compiler
2694# for both compiling C and C++ we need to have the C++ compiler decide
2695# the declaration of exit, since it's the most demanding environment.
2696cat >conftest.$ac_ext <<_ACEOF
2697#ifndef __cplusplus
2698 choke me
2699#endif
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 for ac_declaration in \
2724 '' \
2725 'extern "C" void std::exit (int) throw (); using std::exit;' \
2726 'extern "C" void std::exit (int); using std::exit;' \
2727 'extern "C" void exit (int) throw ();' \
2728 'extern "C" void exit (int);' \
2729 'void exit (int);'
2730do
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737$ac_declaration
2738#include <stdlib.h>
2739int
2740main ()
2741{
2742exit (42);
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 :
2770else
2771 echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773 3281
2774continue
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 cat >conftest.$ac_ext <<_ACEOF
2778/* confdefs.h. */
2779_ACEOF
2780cat confdefs.h >>conftest.$ac_ext
2781cat >>conftest.$ac_ext <<_ACEOF
2782/* end confdefs.h. */
2783$ac_declaration
2784int
2785main ()
2786{
2787exit (42);
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext
2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2795 ac_status=$?
2796 grep -v '^ *+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 break
2815else
2816 echo "$as_me: failed program was:" >&5
2817sed 's/^/| /' conftest.$ac_ext >&5
2818
2819fi
2820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2821done
2822rm -f conftest*
2823if test -n "$ac_declaration"; then
2824 echo '#ifdef __cplusplus' >>confdefs.h
2825 echo $ac_declaration >>confdefs.h
2826 echo '#endif' >>confdefs.h
2827fi
2828
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833fi
2834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835ac_ext=c 3282ac_ext=c
2836ac_cpp='$CPP $CPPFLAGS' 3283ac_cpp='$CPP $CPPFLAGS'
2837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839ac_compiler_gnu=$ac_cv_c_compiler_gnu 3286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 DEPDIR=_deps 3293 DEPDIR=_deps
2847fi 3294fi
2848rmdir .deps 2>/dev/null 3295rmdir .deps 2>/dev/null
2849 3296
2850 3297
2851 ac_config_commands="$ac_config_commands depfiles" 3298ac_config_commands="$ac_config_commands depfiles"
2852 3299
2853 3300
2854am_make=${MAKE-make} 3301am_make=${MAKE-make}
2855cat > confinc << 'END' 3302cat > confinc << 'END'
2856doit: 3303doit:
2857 @echo done 3304 @echo done
2858END 3305END
2859# If we don't find an include directive, just comment out the code. 3306# If we don't find an include directive, just comment out the code.
2860echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3307{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2861echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3308echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2862am__include="#" 3309am__include="#"
2863am__quote= 3310am__quote=
2864_am_result=none 3311_am_result=none
2865# First try GNU make style include. 3312# First try GNU make style include.
2866echo "include confinc" > confmf 3313echo "include confinc" > confmf
2883 _am_result=BSD 3330 _am_result=BSD
2884 fi 3331 fi
2885fi 3332fi
2886 3333
2887 3334
2888echo "$as_me:$LINENO: result: $_am_result" >&5 3335{ echo "$as_me:$LINENO: result: $_am_result" >&5
2889echo "${ECHO_T}$_am_result" >&6 3336echo "${ECHO_T}$_am_result" >&6; }
2890rm -f confinc confmf 3337rm -f confinc confmf
2891 3338
2892# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3339# Check whether --enable-dependency-tracking was given.
2893if test "${enable_dependency_tracking+set}" = set; then 3340if test "${enable_dependency_tracking+set}" = set; then
2894 enableval="$enable_dependency_tracking" 3341 enableval=$enable_dependency_tracking;
2895
2896fi; 3342fi
3343
2897if test "x$enable_dependency_tracking" != xno; then 3344if test "x$enable_dependency_tracking" != xno; then
2898 am_depcomp="$ac_aux_dir/depcomp" 3345 am_depcomp="$ac_aux_dir/depcomp"
2899 AMDEPBACKSLASH='\' 3346 AMDEPBACKSLASH='\'
2900fi 3347fi
2901 3348
2911 3358
2912 3359
2913 3360
2914depcc="$CC" am_compiler_list= 3361depcc="$CC" am_compiler_list=
2915 3362
2916echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3363{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2917echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3364echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2918if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3365if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6 3366 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else 3367else
2921 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2922 # We make a subdir and do the tests there. Otherwise we can end up 3369 # We make a subdir and do the tests there. Otherwise we can end up
2973else 3420else
2974 am_cv_CC_dependencies_compiler_type=none 3421 am_cv_CC_dependencies_compiler_type=none
2975fi 3422fi
2976 3423
2977fi 3424fi
2978echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3425{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2979echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3426echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2980CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3427CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2981 3428
2982 3429
2983echo "$as_me:$LINENO: checking whether ln -s works" >&5 3430{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2984echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3431echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2985LN_S=$as_ln_s 3432LN_S=$as_ln_s
2986if test "$LN_S" = "ln -s"; then 3433if test "$LN_S" = "ln -s"; then
2987 echo "$as_me:$LINENO: result: yes" >&5 3434 { echo "$as_me:$LINENO: result: yes" >&5
2988echo "${ECHO_T}yes" >&6 3435echo "${ECHO_T}yes" >&6; }
2989else 3436else
2990 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3437 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2991echo "${ECHO_T}no, using $LN_S" >&6 3438echo "${ECHO_T}no, using $LN_S" >&6; }
2992fi 3439fi
2993 3440
2994if test -n "$ac_tool_prefix"; then 3441if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2996set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2997echo "$as_me:$LINENO: checking for $ac_word" >&5 3444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_RANLIB+set}" = set; then 3446if test "${ac_cv_prog_RANLIB+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6 3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else 3448else
3002 if test -n "$RANLIB"; then 3449 if test -n "$RANLIB"; then
3003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3006for as_dir in $PATH 3453for as_dir in $PATH
3007do 3454do
3008 IFS=$as_save_IFS 3455 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=. 3456 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do 3457 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2 3461 break 2
3015 fi 3462 fi
3016done 3463done
3017done 3464done
3465IFS=$as_save_IFS
3018 3466
3019fi 3467fi
3020fi 3468fi
3021RANLIB=$ac_cv_prog_RANLIB 3469RANLIB=$ac_cv_prog_RANLIB
3022if test -n "$RANLIB"; then 3470if test -n "$RANLIB"; then
3023 echo "$as_me:$LINENO: result: $RANLIB" >&5 3471 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3024echo "${ECHO_T}$RANLIB" >&6 3472echo "${ECHO_T}$RANLIB" >&6; }
3025else 3473else
3026 echo "$as_me:$LINENO: result: no" >&5 3474 { echo "$as_me:$LINENO: result: no" >&5
3027echo "${ECHO_T}no" >&6 3475echo "${ECHO_T}no" >&6; }
3028fi 3476fi
3477
3029 3478
3030fi 3479fi
3031if test -z "$ac_cv_prog_RANLIB"; then 3480if test -z "$ac_cv_prog_RANLIB"; then
3032 ac_ct_RANLIB=$RANLIB 3481 ac_ct_RANLIB=$RANLIB
3033 # Extract the first word of "ranlib", so it can be a program name with args. 3482 # Extract the first word of "ranlib", so it can be a program name with args.
3034set dummy ranlib; ac_word=$2 3483set dummy ranlib; ac_word=$2
3035echo "$as_me:$LINENO: checking for $ac_word" >&5 3484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3037if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3486if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6 3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3039else 3488else
3040 if test -n "$ac_ct_RANLIB"; then 3489 if test -n "$ac_ct_RANLIB"; then
3041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3044for as_dir in $PATH 3493for as_dir in $PATH
3045do 3494do
3046 IFS=$as_save_IFS 3495 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=. 3496 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do 3497 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_ac_ct_RANLIB="ranlib" 3499 ac_cv_prog_ac_ct_RANLIB="ranlib"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2 3501 break 2
3053 fi 3502 fi
3054done 3503done
3055done 3504done
3505IFS=$as_save_IFS
3056 3506
3057 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3058fi 3507fi
3059fi 3508fi
3060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3061if test -n "$ac_ct_RANLIB"; then 3510if test -n "$ac_ct_RANLIB"; then
3062 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3511 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3063echo "${ECHO_T}$ac_ct_RANLIB" >&6 3512echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3064else 3513else
3065 echo "$as_me:$LINENO: result: no" >&5 3514 { echo "$as_me:$LINENO: result: no" >&5
3066echo "${ECHO_T}no" >&6 3515echo "${ECHO_T}no" >&6; }
3067fi 3516fi
3068 3517
3518 if test "x$ac_ct_RANLIB" = x; then
3519 RANLIB=":"
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522yes:)
3523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3524whose name does not start with the host triplet. If you think this
3525configuration is useful to you, please write to autoconf@gnu.org." >&5
3526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3527whose name does not start with the host triplet. If you think this
3528configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3529ac_tool_warned=yes ;;
3530esac
3069 RANLIB=$ac_ct_RANLIB 3531 RANLIB=$ac_ct_RANLIB
3532 fi
3070else 3533else
3071 RANLIB="$ac_cv_prog_RANLIB" 3534 RANLIB="$ac_cv_prog_RANLIB"
3072fi 3535fi
3073 3536
3074#AC_ARG_PROGRAM 3537#AC_ARG_PROGRAM
3075echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3538{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3076echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3539echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3077set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3540set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3078if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3541if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6 3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else 3543else
3081 cat >conftest.make <<\_ACEOF 3544 cat >conftest.make <<\_ACEOF
3545SHELL = /bin/sh
3082all: 3546all:
3083 @echo 'ac_maketemp="$(MAKE)"' 3547 @echo '@@@%%%=$(MAKE)=@@@%%%'
3084_ACEOF 3548_ACEOF
3085# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3549# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3086eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3550case `${MAKE-make} -f conftest.make 2>/dev/null` in
3087if test -n "$ac_maketemp"; then 3551 *@@@%%%=?*=@@@%%%*)
3088 eval ac_cv_prog_make_${ac_make}_set=yes 3552 eval ac_cv_prog_make_${ac_make}_set=yes;;
3089else 3553 *)
3090 eval ac_cv_prog_make_${ac_make}_set=no 3554 eval ac_cv_prog_make_${ac_make}_set=no;;
3091fi 3555esac
3092rm -f conftest.make 3556rm -f conftest.make
3093fi 3557fi
3094if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3558if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5 3559 { echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6 3560echo "${ECHO_T}yes" >&6; }
3097 SET_MAKE= 3561 SET_MAKE=
3098else 3562else
3099 echo "$as_me:$LINENO: result: no" >&5 3563 { echo "$as_me:$LINENO: result: no" >&5
3100echo "${ECHO_T}no" >&6 3564echo "${ECHO_T}no" >&6; }
3101 SET_MAKE="MAKE=${MAKE-make}" 3565 SET_MAKE="MAKE=${MAKE-make}"
3102fi 3566fi
3103 3567
3104ac_ext=c 3568ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS' 3569ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu 3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3573{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3110echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3574echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3111# On Suns, sometimes $CPP names a directory. 3575# On Suns, sometimes $CPP names a directory.
3112if test -n "$CPP" && test -d "$CPP"; then 3576if test -n "$CPP" && test -d "$CPP"; then
3113 CPP= 3577 CPP=
3114fi 3578fi
3115if test -z "$CPP"; then 3579if test -z "$CPP"; then
3139#else 3603#else
3140# include <assert.h> 3604# include <assert.h>
3141#endif 3605#endif
3142 Syntax error 3606 Syntax error
3143_ACEOF 3607_ACEOF
3144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3608if { (ac_try="$ac_cpp conftest.$ac_ext"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3146 ac_status=$? 3615 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err 3616 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1 3617 rm -f conftest.er1
3149 cat conftest.err >&5 3618 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } >/dev/null; then 3620 (exit $ac_status); } >/dev/null && {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3152 if test -s conftest.err; then 3622 test ! -s conftest.err
3153 ac_cpp_err=$ac_c_preproc_warn_flag 3623 }; then
3154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3155 else
3156 ac_cpp_err=
3157 fi
3158else
3159 ac_cpp_err=yes
3160fi
3161if test -z "$ac_cpp_err"; then
3162 : 3624 :
3163else 3625else
3164 echo "$as_me: failed program was:" >&5 3626 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5 3627sed 's/^/| /' conftest.$ac_ext >&5
3166 3628
3167 # Broken: fails on valid input. 3629 # Broken: fails on valid input.
3168continue 3630continue
3169fi 3631fi
3632
3170rm -f conftest.err conftest.$ac_ext 3633rm -f conftest.err conftest.$ac_ext
3171 3634
3172 # OK, works on sane cases. Now check whether non-existent headers 3635 # OK, works on sane cases. Now check whether nonexistent headers
3173 # can be detected and how. 3636 # can be detected and how.
3174 cat >conftest.$ac_ext <<_ACEOF 3637 cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h. */ 3638/* confdefs.h. */
3176_ACEOF 3639_ACEOF
3177cat confdefs.h >>conftest.$ac_ext 3640cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF 3641cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h. */ 3642/* end confdefs.h. */
3180#include <ac_nonexistent.h> 3643#include <ac_nonexistent.h>
3181_ACEOF 3644_ACEOF
3182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3645if { (ac_try="$ac_cpp conftest.$ac_ext"
3646case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649esac
3650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3184 ac_status=$? 3652 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err 3653 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1 3654 rm -f conftest.er1
3187 cat conftest.err >&5 3655 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } >/dev/null; then 3657 (exit $ac_status); } >/dev/null && {
3658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3190 if test -s conftest.err; then 3659 test ! -s conftest.err
3191 ac_cpp_err=$ac_c_preproc_warn_flag 3660 }; then
3192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3193 else
3194 ac_cpp_err=
3195 fi
3196else
3197 ac_cpp_err=yes
3198fi
3199if test -z "$ac_cpp_err"; then
3200 # Broken: success on invalid input. 3661 # Broken: success on invalid input.
3201continue 3662continue
3202else 3663else
3203 echo "$as_me: failed program was:" >&5 3664 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5 3665sed 's/^/| /' conftest.$ac_ext >&5
3205 3666
3206 # Passes both tests. 3667 # Passes both tests.
3207ac_preproc_ok=: 3668ac_preproc_ok=:
3208break 3669break
3209fi 3670fi
3671
3210rm -f conftest.err conftest.$ac_ext 3672rm -f conftest.err conftest.$ac_ext
3211 3673
3212done 3674done
3213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3214rm -f conftest.err conftest.$ac_ext 3676rm -f conftest.err conftest.$ac_ext
3222fi 3684fi
3223 CPP=$ac_cv_prog_CPP 3685 CPP=$ac_cv_prog_CPP
3224else 3686else
3225 ac_cv_prog_CPP=$CPP 3687 ac_cv_prog_CPP=$CPP
3226fi 3688fi
3227echo "$as_me:$LINENO: result: $CPP" >&5 3689{ echo "$as_me:$LINENO: result: $CPP" >&5
3228echo "${ECHO_T}$CPP" >&6 3690echo "${ECHO_T}$CPP" >&6; }
3229ac_preproc_ok=false 3691ac_preproc_ok=false
3230for ac_c_preproc_warn_flag in '' yes 3692for ac_c_preproc_warn_flag in '' yes
3231do 3693do
3232 # Use a header file that comes with gcc, so configuring glibc 3694 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works. 3695 # with a fresh cross-compiler works.
3246#else 3708#else
3247# include <assert.h> 3709# include <assert.h>
3248#endif 3710#endif
3249 Syntax error 3711 Syntax error
3250_ACEOF 3712_ACEOF
3251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3713if { (ac_try="$ac_cpp conftest.$ac_ext"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 ac_status=$? 3720 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err 3721 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1 3722 rm -f conftest.er1
3256 cat conftest.err >&5 3723 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then 3725 (exit $ac_status); } >/dev/null && {
3726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3259 if test -s conftest.err; then 3727 test ! -s conftest.err
3260 ac_cpp_err=$ac_c_preproc_warn_flag 3728 }; then
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 : 3729 :
3270else 3730else
3271 echo "$as_me: failed program was:" >&5 3731 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5 3732sed 's/^/| /' conftest.$ac_ext >&5
3273 3733
3274 # Broken: fails on valid input. 3734 # Broken: fails on valid input.
3275continue 3735continue
3276fi 3736fi
3737
3277rm -f conftest.err conftest.$ac_ext 3738rm -f conftest.err conftest.$ac_ext
3278 3739
3279 # OK, works on sane cases. Now check whether non-existent headers 3740 # OK, works on sane cases. Now check whether nonexistent headers
3280 # can be detected and how. 3741 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF 3742 cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */ 3743/* confdefs.h. */
3283_ACEOF 3744_ACEOF
3284cat confdefs.h >>conftest.$ac_ext 3745cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF 3746cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */ 3747/* end confdefs.h. */
3287#include <ac_nonexistent.h> 3748#include <ac_nonexistent.h>
3288_ACEOF 3749_ACEOF
3289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3750if { (ac_try="$ac_cpp conftest.$ac_ext"
3751case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754esac
3755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 ac_status=$? 3757 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err 3758 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1 3759 rm -f conftest.er1
3294 cat conftest.err >&5 3760 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then 3762 (exit $ac_status); } >/dev/null && {
3763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3297 if test -s conftest.err; then 3764 test ! -s conftest.err
3298 ac_cpp_err=$ac_c_preproc_warn_flag 3765 }; then
3299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input. 3766 # Broken: success on invalid input.
3308continue 3767continue
3309else 3768else
3310 echo "$as_me: failed program was:" >&5 3769 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5 3770sed 's/^/| /' conftest.$ac_ext >&5
3312 3771
3313 # Passes both tests. 3772 # Passes both tests.
3314ac_preproc_ok=: 3773ac_preproc_ok=:
3315break 3774break
3316fi 3775fi
3776
3317rm -f conftest.err conftest.$ac_ext 3777rm -f conftest.err conftest.$ac_ext
3318 3778
3319done 3779done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext 3781rm -f conftest.err conftest.$ac_ext
3346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3806# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3347# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3807# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3808# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3349# OS/2's system install, which has a completely different semantic 3809# OS/2's system install, which has a completely different semantic
3350# ./install, which can be erroneously created by make from ./install.sh. 3810# ./install, which can be erroneously created by make from ./install.sh.
3351echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3811{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3352echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3812echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3353if test -z "$INSTALL"; then 3813if test -z "$INSTALL"; then
3354if test "${ac_cv_path_install+set}" = set; then 3814if test "${ac_cv_path_install+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6 3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3356else 3816else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 # OSF1 and SCO ODT 3.0 have their own names for install. 3829 # OSF1 and SCO ODT 3.0 have their own names for install.
3370 # Don't use installbsd from OSF since it installs stuff as root 3830 # Don't use installbsd from OSF since it installs stuff as root
3371 # by default. 3831 # by default.
3372 for ac_prog in ginstall scoinst install; do 3832 for ac_prog in ginstall scoinst install; do
3373 for ac_exec_ext in '' $ac_executable_extensions; do 3833 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3834 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3375 if test $ac_prog = install && 3835 if test $ac_prog = install &&
3376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3377 # AIX install. It has an incompatible calling convention. 3837 # AIX install. It has an incompatible calling convention.
3378 : 3838 :
3379 elif test $ac_prog = install && 3839 elif test $ac_prog = install &&
3388 done 3848 done
3389 done 3849 done
3390 ;; 3850 ;;
3391esac 3851esac
3392done 3852done
3853IFS=$as_save_IFS
3393 3854
3394 3855
3395fi 3856fi
3396 if test "${ac_cv_path_install+set}" = set; then 3857 if test "${ac_cv_path_install+set}" = set; then
3397 INSTALL=$ac_cv_path_install 3858 INSTALL=$ac_cv_path_install
3398 else 3859 else
3399 # As a last resort, use the slow shell script. We don't cache a 3860 # As a last resort, use the slow shell script. Don't cache a
3400 # path for INSTALL within a source directory, because that will 3861 # value for INSTALL within a source directory, because that will
3401 # break other packages using the cache if that directory is 3862 # break other packages using the cache if that directory is
3402 # removed, or if the path is relative. 3863 # removed, or if the value is a relative name.
3403 INSTALL=$ac_install_sh 3864 INSTALL=$ac_install_sh
3404 fi 3865 fi
3405fi 3866fi
3406echo "$as_me:$LINENO: result: $INSTALL" >&5 3867{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3407echo "${ECHO_T}$INSTALL" >&6 3868echo "${ECHO_T}$INSTALL" >&6; }
3408 3869
3409# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3870# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3410# It thinks the first close brace ends the variable substitution. 3871# It thinks the first close brace ends the variable substitution.
3411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3412 3873
3431 3892
3432#------------------------------------------------------------------------------- 3893#-------------------------------------------------------------------------------
3433# LIBTOOL 3894# LIBTOOL
3434#------------------------------------------------------------------------------- 3895#-------------------------------------------------------------------------------
3435 3896
3436# Check whether --enable-shared or --disable-shared was given. 3897# Check whether --enable-shared was given.
3437if test "${enable_shared+set}" = set; then 3898if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared" 3899 enableval=$enable_shared; p=${PACKAGE-default}
3439 p=${PACKAGE-default}
3440 case $enableval in 3900 case $enableval in
3441 yes) enable_shared=yes ;; 3901 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;; 3902 no) enable_shared=no ;;
3443 *) 3903 *)
3444 enable_shared=no 3904 enable_shared=no
3453 IFS="$lt_save_ifs" 3913 IFS="$lt_save_ifs"
3454 ;; 3914 ;;
3455 esac 3915 esac
3456else 3916else
3457 enable_shared=yes 3917 enable_shared=yes
3458fi; 3918fi
3459 3919
3920
3460# Check whether --enable-static or --disable-static was given. 3921# Check whether --enable-static was given.
3461if test "${enable_static+set}" = set; then 3922if test "${enable_static+set}" = set; then
3462 enableval="$enable_static" 3923 enableval=$enable_static; p=${PACKAGE-default}
3463 p=${PACKAGE-default}
3464 case $enableval in 3924 case $enableval in
3465 yes) enable_static=yes ;; 3925 yes) enable_static=yes ;;
3466 no) enable_static=no ;; 3926 no) enable_static=no ;;
3467 *) 3927 *)
3468 enable_static=no 3928 enable_static=no
3477 IFS="$lt_save_ifs" 3937 IFS="$lt_save_ifs"
3478 ;; 3938 ;;
3479 esac 3939 esac
3480else 3940else
3481 enable_static=yes 3941 enable_static=yes
3482fi; 3942fi
3483 3943
3944
3484# Check whether --enable-fast-install or --disable-fast-install was given. 3945# Check whether --enable-fast-install was given.
3485if test "${enable_fast_install+set}" = set; then 3946if test "${enable_fast_install+set}" = set; then
3486 enableval="$enable_fast_install" 3947 enableval=$enable_fast_install; p=${PACKAGE-default}
3487 p=${PACKAGE-default}
3488 case $enableval in 3948 case $enableval in
3489 yes) enable_fast_install=yes ;; 3949 yes) enable_fast_install=yes ;;
3490 no) enable_fast_install=no ;; 3950 no) enable_fast_install=no ;;
3491 *) 3951 *)
3492 enable_fast_install=no 3952 enable_fast_install=no
3501 IFS="$lt_save_ifs" 3961 IFS="$lt_save_ifs"
3502 ;; 3962 ;;
3503 esac 3963 esac
3504else 3964else
3505 enable_fast_install=yes 3965 enable_fast_install=yes
3506fi; 3966fi
3967
3507 3968
3508# Make sure we can run config.sub. 3969# Make sure we can run config.sub.
3509$ac_config_sub sun4 >/dev/null 2>&1 || 3970$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3510 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3971 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3511echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3972echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3512 { (exit 1); exit 1; }; } 3973 { (exit 1); exit 1; }; }
3513 3974
3514echo "$as_me:$LINENO: checking build system type" >&5 3975{ echo "$as_me:$LINENO: checking build system type" >&5
3515echo $ECHO_N "checking build system type... $ECHO_C" >&6 3976echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3516if test "${ac_cv_build+set}" = set; then 3977if test "${ac_cv_build+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6 3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else 3979else
3519 ac_cv_build_alias=$build_alias 3980 ac_build_alias=$build_alias
3520test -z "$ac_cv_build_alias" && 3981test "x$ac_build_alias" = x &&
3521 ac_cv_build_alias=`$ac_config_guess` 3982 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3522test -z "$ac_cv_build_alias" && 3983test "x$ac_build_alias" = x &&
3523 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3984 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3524echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3985echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3525 { (exit 1); exit 1; }; } 3986 { (exit 1); exit 1; }; }
3526ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3987ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3527 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3988 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3528echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3989echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3529 { (exit 1); exit 1; }; } 3990 { (exit 1); exit 1; }; }
3530 3991
3531fi 3992fi
3532echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3993{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3533echo "${ECHO_T}$ac_cv_build" >&6 3994echo "${ECHO_T}$ac_cv_build" >&6; }
3995case $ac_cv_build in
3996*-*-*) ;;
3997*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3998echo "$as_me: error: invalid value of canonical build" >&2;}
3999 { (exit 1); exit 1; }; };;
4000esac
3534build=$ac_cv_build 4001build=$ac_cv_build
3535build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4002ac_save_IFS=$IFS; IFS='-'
3536build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4003set x $ac_cv_build
3537build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4004shift
4005build_cpu=$1
4006build_vendor=$2
4007shift; shift
4008# Remember, the first character of IFS is used to create $*,
4009# except with old shells:
4010build_os=$*
4011IFS=$ac_save_IFS
4012case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3538 4013
3539 4014
3540echo "$as_me:$LINENO: checking host system type" >&5 4015{ echo "$as_me:$LINENO: checking host system type" >&5
3541echo $ECHO_N "checking host system type... $ECHO_C" >&6 4016echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3542if test "${ac_cv_host+set}" = set; then 4017if test "${ac_cv_host+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6 4018 echo $ECHO_N "(cached) $ECHO_C" >&6
3544else 4019else
3545 ac_cv_host_alias=$host_alias 4020 if test "x$host_alias" = x; then
3546test -z "$ac_cv_host_alias" &&
3547 ac_cv_host_alias=$ac_cv_build_alias 4021 ac_cv_host=$ac_cv_build
4022else
3548ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 4023 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3549 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 4024 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3550echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 4025echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3551 { (exit 1); exit 1; }; } 4026 { (exit 1); exit 1; }; }
3552
3553fi 4027fi
4028
4029fi
3554echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4030{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3555echo "${ECHO_T}$ac_cv_host" >&6 4031echo "${ECHO_T}$ac_cv_host" >&6; }
4032case $ac_cv_host in
4033*-*-*) ;;
4034*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4035echo "$as_me: error: invalid value of canonical host" >&2;}
4036 { (exit 1); exit 1; }; };;
4037esac
3556host=$ac_cv_host 4038host=$ac_cv_host
3557host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4039ac_save_IFS=$IFS; IFS='-'
3558host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4040set x $ac_cv_host
3559host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4041shift
4042host_cpu=$1
4043host_vendor=$2
4044shift; shift
4045# Remember, the first character of IFS is used to create $*,
4046# except with old shells:
4047host_os=$*
4048IFS=$ac_save_IFS
4049case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3560 4050
3561 4051
3562echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4052{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3563echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4053echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3564if test "${lt_cv_path_SED+set}" = set; then 4054if test "${lt_cv_path_SED+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6 4055 echo $ECHO_N "(cached) $ECHO_C" >&6
3566else 4056else
3567 # Loop through the user's path and test for sed and gsed. 4057 # Loop through the user's path and test for sed and gsed.
3568# Then use that list of sed's as ones to test for truncation. 4058# Then use that list of sed's as ones to test for truncation.
3582lt_ac_max=0 4072lt_ac_max=0
3583lt_ac_count=0 4073lt_ac_count=0
3584# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4074# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3585# along with /bin/sed that truncates output. 4075# along with /bin/sed that truncates output.
3586for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4076for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3587 test ! -f $lt_ac_sed && break 4077 test ! -f $lt_ac_sed && continue
3588 cat /dev/null > conftest.in 4078 cat /dev/null > conftest.in
3589 lt_ac_count=0 4079 lt_ac_count=0
3590 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4080 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3591 # Check for GNU sed and select it if it is found. 4081 # Check for GNU sed and select it if it is found.
3592 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4082 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3607 lt_ac_max=$lt_ac_count 4097 lt_ac_max=$lt_ac_count
3608 lt_cv_path_SED=$lt_ac_sed 4098 lt_cv_path_SED=$lt_ac_sed
3609 fi 4099 fi
3610 done 4100 done
3611done 4101done
4102
4103fi
4104
3612SED=$lt_cv_path_SED 4105SED=$lt_cv_path_SED
3613
3614fi
3615
3616echo "$as_me:$LINENO: result: $SED" >&5 4106{ echo "$as_me:$LINENO: result: $SED" >&5
3617echo "${ECHO_T}$SED" >&6 4107echo "${ECHO_T}$SED" >&6; }
3618 4108
3619echo "$as_me:$LINENO: checking for egrep" >&5 4109{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3620echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4110echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3621if test "${ac_cv_prog_egrep+set}" = set; then 4111if test "${ac_cv_path_GREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6 4112 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else 4113else
3624 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4114 # Extract the first word of "grep ggrep" to use in msg output
3625 then ac_cv_prog_egrep='grep -E' 4115if test -z "$GREP"; then
3626 else ac_cv_prog_egrep='egrep' 4116set dummy grep ggrep; ac_prog_name=$2
4117if test "${ac_cv_path_GREP+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 ac_path_GREP_found=false
4121# Loop through the user's path and test for each of PROGNAME-LIST
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_prog in grep ggrep; do
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4130 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4131 # Check for GNU ac_path_GREP and select it if it is found.
4132 # Check for GNU $ac_path_GREP
4133case `"$ac_path_GREP" --version 2>&1` in
4134*GNU*)
4135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4136*)
4137 ac_count=0
4138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4139 while :
4140 do
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
4144 echo 'GREP' >> "conftest.nl"
4145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4147 ac_count=`expr $ac_count + 1`
4148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_GREP="$ac_path_GREP"
4151 ac_path_GREP_max=$ac_count
3627 fi 4152 fi
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4155 done
4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157esac
4158
4159
4160 $ac_path_GREP_found && break 3
4161 done
4162done
4163
4164done
4165IFS=$as_save_IFS
4166
4167
3628fi 4168fi
4169
4170GREP="$ac_cv_path_GREP"
4171if test -z "$GREP"; then
4172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4173echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4174 { (exit 1); exit 1; }; }
4175fi
4176
4177else
4178 ac_cv_path_GREP=$GREP
4179fi
4180
4181
4182fi
3629echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4183{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3630echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4184echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3631 EGREP=$ac_cv_prog_egrep 4185 GREP="$ac_cv_path_GREP"
3632 4186
3633 4187
4188{ echo "$as_me:$LINENO: checking for egrep" >&5
4189echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4190if test "${ac_cv_path_EGREP+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4194 then ac_cv_path_EGREP="$GREP -E"
4195 else
4196 # Extract the first word of "egrep" to use in msg output
4197if test -z "$EGREP"; then
4198set dummy egrep; ac_prog_name=$2
4199if test "${ac_cv_path_EGREP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 ac_path_EGREP_found=false
4203# Loop through the user's path and test for each of PROGNAME-LIST
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_prog in egrep; do
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4212 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4213 # Check for GNU ac_path_EGREP and select it if it is found.
4214 # Check for GNU $ac_path_EGREP
4215case `"$ac_path_EGREP" --version 2>&1` in
4216*GNU*)
4217 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4218*)
4219 ac_count=0
4220 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4221 while :
4222 do
4223 cat "conftest.in" "conftest.in" >"conftest.tmp"
4224 mv "conftest.tmp" "conftest.in"
4225 cp "conftest.in" "conftest.nl"
4226 echo 'EGREP' >> "conftest.nl"
4227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229 ac_count=`expr $ac_count + 1`
4230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4231 # Best one so far, save it but keep looking for a better one
4232 ac_cv_path_EGREP="$ac_path_EGREP"
4233 ac_path_EGREP_max=$ac_count
4234 fi
4235 # 10*(2^10) chars as input seems more than enough
4236 test $ac_count -gt 10 && break
4237 done
4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239esac
3634 4240
4241
4242 $ac_path_EGREP_found && break 3
4243 done
4244done
4245
4246done
4247IFS=$as_save_IFS
4248
4249
4250fi
4251
4252EGREP="$ac_cv_path_EGREP"
4253if test -z "$EGREP"; then
4254 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4255echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4256 { (exit 1); exit 1; }; }
4257fi
4258
4259else
4260 ac_cv_path_EGREP=$EGREP
4261fi
4262
4263
4264 fi
4265fi
4266{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4267echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4268 EGREP="$ac_cv_path_EGREP"
4269
4270
4271
3635# Check whether --with-gnu-ld or --without-gnu-ld was given. 4272# Check whether --with-gnu-ld was given.
3636if test "${with_gnu_ld+set}" = set; then 4273if test "${with_gnu_ld+set}" = set; then
3637 withval="$with_gnu_ld"
3638 test "$withval" = no || with_gnu_ld=yes 4274 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3639else 4275else
3640 with_gnu_ld=no 4276 with_gnu_ld=no
3641fi; 4277fi
4278
3642ac_prog=ld 4279ac_prog=ld
3643if test "$GCC" = yes; then 4280if test "$GCC" = yes; then
3644 # Check if gcc -print-prog-name=ld gives a path. 4281 # Check if gcc -print-prog-name=ld gives a path.
3645 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4282 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3646echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4283echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3647 case $host in 4284 case $host in
3648 *-*-mingw*) 4285 *-*-mingw*)
3649 # gcc leaves a trailing carriage return which upsets mingw 4286 # gcc leaves a trailing carriage return which upsets mingw
3650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3651 *) 4288 *)
3670 # If it is relative, then search for the first ld in PATH. 4307 # If it is relative, then search for the first ld in PATH.
3671 with_gnu_ld=unknown 4308 with_gnu_ld=unknown
3672 ;; 4309 ;;
3673 esac 4310 esac
3674elif test "$with_gnu_ld" = yes; then 4311elif test "$with_gnu_ld" = yes; then
3675 echo "$as_me:$LINENO: checking for GNU ld" >&5 4312 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3676echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4313echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3677else 4314else
3678 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4315 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3679echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4316echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3680fi 4317fi
3681if test "${lt_cv_path_LD+set}" = set; then 4318if test "${lt_cv_path_LD+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6 4319 echo $ECHO_N "(cached) $ECHO_C" >&6
3683else 4320else
3684 if test -z "$LD"; then 4321 if test -z "$LD"; then
3687 IFS="$lt_save_ifs" 4324 IFS="$lt_save_ifs"
3688 test -z "$ac_dir" && ac_dir=. 4325 test -z "$ac_dir" && ac_dir=.
3689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3690 lt_cv_path_LD="$ac_dir/$ac_prog" 4327 lt_cv_path_LD="$ac_dir/$ac_prog"
3691 # Check to see if the program is GNU ld. I'd rather use --version, 4328 # Check to see if the program is GNU ld. I'd rather use --version,
3692 # but apparently some GNU ld's only accept -v. 4329 # but apparently some variants of GNU ld only accept -v.
3693 # Break only if it was the GNU/non-GNU ld that we prefer. 4330 # Break only if it was the GNU/non-GNU ld that we prefer.
3694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3695 *GNU* | *'with BFD'*) 4332 *GNU* | *'with BFD'*)
3696 test "$with_gnu_ld" != no && break 4333 test "$with_gnu_ld" != no && break
3697 ;; 4334 ;;
3707fi 4344fi
3708fi 4345fi
3709 4346
3710LD="$lt_cv_path_LD" 4347LD="$lt_cv_path_LD"
3711if test -n "$LD"; then 4348if test -n "$LD"; then
3712 echo "$as_me:$LINENO: result: $LD" >&5 4349 { echo "$as_me:$LINENO: result: $LD" >&5
3713echo "${ECHO_T}$LD" >&6 4350echo "${ECHO_T}$LD" >&6; }
3714else 4351else
3715 echo "$as_me:$LINENO: result: no" >&5 4352 { echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6 4353echo "${ECHO_T}no" >&6; }
3717fi 4354fi
3718test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4355test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3719echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4356echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3720 { (exit 1); exit 1; }; } 4357 { (exit 1); exit 1; }; }
3721echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4358{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3722echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4359echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3723if test "${lt_cv_prog_gnu_ld+set}" = set; then 4360if test "${lt_cv_prog_gnu_ld+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6 4361 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else 4362else
3726 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3727case `$LD -v 2>&1 </dev/null` in 4364case `$LD -v 2>&1 </dev/null` in
3728*GNU* | *'with BFD'*) 4365*GNU* | *'with BFD'*)
3729 lt_cv_prog_gnu_ld=yes 4366 lt_cv_prog_gnu_ld=yes
3730 ;; 4367 ;;
3731*) 4368*)
3732 lt_cv_prog_gnu_ld=no 4369 lt_cv_prog_gnu_ld=no
3733 ;; 4370 ;;
3734esac 4371esac
3735fi 4372fi
3736echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4373{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3737echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4374echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3738with_gnu_ld=$lt_cv_prog_gnu_ld 4375with_gnu_ld=$lt_cv_prog_gnu_ld
3739 4376
3740 4377
3741echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4378{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3742echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4379echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3743if test "${lt_cv_ld_reload_flag+set}" = set; then 4380if test "${lt_cv_ld_reload_flag+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6 4381 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else 4382else
3746 lt_cv_ld_reload_flag='-r' 4383 lt_cv_ld_reload_flag='-r'
3747fi 4384fi
3748echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4385{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3749echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4386echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3750reload_flag=$lt_cv_ld_reload_flag 4387reload_flag=$lt_cv_ld_reload_flag
3751case $reload_flag in 4388case $reload_flag in
3752"" | " "*) ;; 4389"" | " "*) ;;
3753*) reload_flag=" $reload_flag" ;; 4390*) reload_flag=" $reload_flag" ;;
3754esac 4391esac
3755reload_cmds='$LD$reload_flag -o $output$reload_objs' 4392reload_cmds='$LD$reload_flag -o $output$reload_objs'
4393case $host_os in
4394 darwin*)
4395 if test "$GCC" = yes; then
4396 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4397 else
4398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4399 fi
4400 ;;
4401esac
3756 4402
3757echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4403{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3758echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4404echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3759if test "${lt_cv_path_NM+set}" = set; then 4405if test "${lt_cv_path_NM+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6 4406 echo $ECHO_N "(cached) $ECHO_C" >&6
3761else 4407else
3762 if test -n "$NM"; then 4408 if test -n "$NM"; then
3763 # Let the user override the test. 4409 # Let the user override the test.
3764 lt_cv_path_NM="$NM" 4410 lt_cv_path_NM="$NM"
3765else 4411else
4412 lt_nm_to_check="${ac_tool_prefix}nm"
4413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4414 lt_nm_to_check="$lt_nm_to_check nm"
4415 fi
4416 for lt_tmp_nm in $lt_nm_to_check; do
3766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3767 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3768 IFS="$lt_save_ifs" 4419 IFS="$lt_save_ifs"
3769 test -z "$ac_dir" && ac_dir=. 4420 test -z "$ac_dir" && ac_dir=.
3770 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4421 tmp_nm="$ac_dir/$lt_tmp_nm"
3771 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3772 # Check to see if the nm accepts a BSD-compat flag. 4423 # Check to see if the nm accepts a BSD-compat flag.
3773 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3774 # nm: unknown option "B" ignored 4425 # nm: unknown option "B" ignored
3775 # Tru64's nm complains that /dev/null is an invalid object file 4426 # Tru64's nm complains that /dev/null is an invalid object file
3776 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3777 */dev/null* | *'Invalid file or object type'*)
3778 lt_cv_path_NM="$tmp_nm -B"
3779 break
3780 ;;
3781 *)
3782 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3783 */dev/null*) 4428 */dev/null* | *'Invalid file or object type'*)
3784 lt_cv_path_NM="$tmp_nm -p" 4429 lt_cv_path_NM="$tmp_nm -B"
3785 break 4430 break
3786 ;; 4431 ;;
3787 *) 4432 *)
4433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4434 */dev/null*)
4435 lt_cv_path_NM="$tmp_nm -p"
4436 break
4437 ;;
4438 *)
3788 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3789 continue # so that we can try to find one that supports BSD flags 4440 continue # so that we can try to find one that supports BSD flags
4441 ;;
4442 esac
3790 ;; 4443 ;;
3791 esac 4444 esac
3792 esac
3793 fi 4445 fi
4446 done
4447 IFS="$lt_save_ifs"
3794 done 4448 done
3795 IFS="$lt_save_ifs"
3796 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3797fi 4450fi
3798fi 4451fi
3799echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4452{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3800echo "${ECHO_T}$lt_cv_path_NM" >&6 4453echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3801NM="$lt_cv_path_NM" 4454NM="$lt_cv_path_NM"
3802 4455
3803echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4456{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3804echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4457echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3805if test "${lt_cv_deplibs_check_method+set}" = set; then 4458if test "${lt_cv_deplibs_check_method+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6 4459 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else 4460else
3808 lt_cv_file_magic_cmd='$MAGIC_CMD' 4461 lt_cv_file_magic_cmd='$MAGIC_CMD'
3809lt_cv_file_magic_test_file= 4462lt_cv_file_magic_test_file=
3826 4479
3827beos*) 4480beos*)
3828 lt_cv_deplibs_check_method=pass_all 4481 lt_cv_deplibs_check_method=pass_all
3829 ;; 4482 ;;
3830 4483
3831bsdi4*) 4484bsdi[45]*)
3832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3833 lt_cv_file_magic_cmd='/usr/bin/file -L' 4486 lt_cv_file_magic_cmd='/usr/bin/file -L'
3834 lt_cv_file_magic_test_file=/shlib/libc.so 4487 lt_cv_file_magic_test_file=/shlib/libc.so
3835 ;; 4488 ;;
3836 4489
3837cygwin*) 4490cygwin*)
3838 # win32_libid is a shell function defined in ltmain.sh 4491 # func_win32_libid is a shell function defined in ltmain.sh
3839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3840 lt_cv_file_magic_cmd='win32_libid' 4493 lt_cv_file_magic_cmd='func_win32_libid'
3841 ;; 4494 ;;
3842 4495
3843mingw* | pw32*) 4496mingw* | pw32*)
3844 # Base MSYS/MinGW do not provide the 'file' command needed by 4497 # Base MSYS/MinGW do not provide the 'file' command needed by
3845 # win32_libid shell function, so use a weaker test based on 'objdump'. 4498 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3846 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3847 lt_cv_file_magic_cmd='$OBJDUMP -f' 4500 lt_cv_file_magic_cmd='$OBJDUMP -f'
3848 ;; 4501 ;;
3849 4502
3850darwin* | rhapsody*) 4503darwin* | rhapsody*)
3851 lt_cv_deplibs_check_method=pass_all 4504 lt_cv_deplibs_check_method=pass_all
3852 ;; 4505 ;;
3853 4506
3854freebsd* | kfreebsd*-gnu) 4507freebsd* | dragonfly*)
3855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3856 case $host_cpu in 4509 case $host_cpu in
3857 i*86 ) 4510 i*86 )
3858 # Not sure whether the presence of OpenBSD here was a mistake. 4511 # Not sure whether the presence of OpenBSD here was a mistake.
3859 # Let's accept both of them until this is cleared up. 4512 # Let's accept both of them until this is cleared up.
3860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3861 lt_cv_file_magic_cmd=/usr/bin/file 4514 lt_cv_file_magic_cmd=/usr/bin/file
3862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3863 ;; 4516 ;;
3864 esac 4517 esac
3865 else 4518 else
3871 lt_cv_deplibs_check_method=pass_all 4524 lt_cv_deplibs_check_method=pass_all
3872 ;; 4525 ;;
3873 4526
3874hpux10.20* | hpux11*) 4527hpux10.20* | hpux11*)
3875 lt_cv_file_magic_cmd=/usr/bin/file 4528 lt_cv_file_magic_cmd=/usr/bin/file
3876 case "$host_cpu" in 4529 case $host_cpu in
3877 ia64*) 4530 ia64*)
3878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3880 ;; 4533 ;;
3881 hppa*64*) 4534 hppa*64*)
3887 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4540 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3888 ;; 4541 ;;
3889 esac 4542 esac
3890 ;; 4543 ;;
3891 4544
4545interix3*)
4546 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4548 ;;
4549
3892irix5* | irix6* | nonstopux*) 4550irix5* | irix6* | nonstopux*)
3893 case $LD in 4551 case $LD in
3894 *-32|*"-32 ") libmagic=32-bit;; 4552 *-32|*"-32 ") libmagic=32-bit;;
3895 *-n32|*"-n32 ") libmagic=N32;; 4553 *-n32|*"-n32 ") libmagic=N32;;
3896 *-64|*"-64 ") libmagic=64-bit;; 4554 *-64|*"-64 ") libmagic=64-bit;;
3898 esac 4556 esac
3899 lt_cv_deplibs_check_method=pass_all 4557 lt_cv_deplibs_check_method=pass_all
3900 ;; 4558 ;;
3901 4559
3902# This must be Linux ELF. 4560# This must be Linux ELF.
3903linux*) 4561linux* | k*bsd*-gnu)
3904 case $host_cpu in
3905 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3906 lt_cv_deplibs_check_method=pass_all ;;
3907 *)
3908 # glibc up to 2.1.1 does not perform some relocations on ARM
3909 # this will be overridden with pass_all, but let us keep it just in case
3910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3911 esac
3912 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3913 lt_cv_deplibs_check_method=pass_all 4562 lt_cv_deplibs_check_method=pass_all
3914 ;; 4563 ;;
3915 4564
3916netbsd*) 4565netbsd* | netbsdelf*-gnu)
3917 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4566 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3919 else 4568 else
3920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3921 fi 4570 fi
3930nto-qnx*) 4579nto-qnx*)
3931 lt_cv_deplibs_check_method=unknown 4580 lt_cv_deplibs_check_method=unknown
3932 ;; 4581 ;;
3933 4582
3934openbsd*) 4583openbsd*)
3935 lt_cv_file_magic_cmd=/usr/bin/file
3936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3939 else 4586 else
3940 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3941 fi 4588 fi
3942 ;; 4589 ;;
3943 4590
3944osf3* | osf4* | osf5*) 4591osf3* | osf4* | osf5*)
3945 lt_cv_deplibs_check_method=pass_all 4592 lt_cv_deplibs_check_method=pass_all
3946 ;; 4593 ;;
3947 4594
3948sco3.2v5*)
3949 lt_cv_deplibs_check_method=pass_all
3950 ;;
3951
3952solaris*) 4595solaris*)
3953 lt_cv_deplibs_check_method=pass_all 4596 lt_cv_deplibs_check_method=pass_all
3954 ;; 4597 ;;
3955 4598
3956sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4599sysv4 | sysv4.3*)
3957 case $host_vendor in 4600 case $host_vendor in
3958 motorola) 4601 motorola)
3959 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]' 4602 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]'
3960 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3961 ;; 4604 ;;
3972 lt_cv_file_magic_test_file=/lib/libc.so 4615 lt_cv_file_magic_test_file=/lib/libc.so
3973 ;; 4616 ;;
3974 siemens) 4617 siemens)
3975 lt_cv_deplibs_check_method=pass_all 4618 lt_cv_deplibs_check_method=pass_all
3976 ;; 4619 ;;
4620 pc)
4621 lt_cv_deplibs_check_method=pass_all
4622 ;;
3977 esac 4623 esac
3978 ;; 4624 ;;
3979 4625
3980sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3981 lt_cv_deplibs_check_method=pass_all 4627 lt_cv_deplibs_check_method=pass_all
3982 ;; 4628 ;;
3983esac 4629esac
3984 4630
3985fi 4631fi
3986echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4632{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3987echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4633echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3988file_magic_cmd=$lt_cv_file_magic_cmd 4634file_magic_cmd=$lt_cv_file_magic_cmd
3989deplibs_check_method=$lt_cv_deplibs_check_method 4635deplibs_check_method=$lt_cv_deplibs_check_method
3990test -z "$deplibs_check_method" && deplibs_check_method=unknown 4636test -z "$deplibs_check_method" && deplibs_check_method=unknown
3991 4637
3992 4638
3993 4639
3994 4640
3995# If no C compiler was specified, use CC. 4641# If no C compiler was specified, use CC.
3996LTCC=${LTCC-"$CC"} 4642LTCC=${LTCC-"$CC"}
3997 4643
4644# If no C compiler flags were specified, use CFLAGS.
4645LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4646
3998# Allow CC to be a program name with arguments. 4647# Allow CC to be a program name with arguments.
3999compiler=$CC 4648compiler=$CC
4000 4649
4001 4650
4002# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4651# Check whether --enable-libtool-lock was given.
4003if test "${enable_libtool_lock+set}" = set; then 4652if test "${enable_libtool_lock+set}" = set; then
4004 enableval="$enable_libtool_lock" 4653 enableval=$enable_libtool_lock;
4005
4006fi; 4654fi
4655
4007test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4656test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4008 4657
4009# Some flags need to be propagated to the compiler or linker for good 4658# Some flags need to be propagated to the compiler or linker for good
4010# libtool support. 4659# libtool support.
4011case $host in 4660case $host in
4028 fi 4677 fi
4029 rm -rf conftest* 4678 rm -rf conftest*
4030 ;; 4679 ;;
4031*-*-irix6*) 4680*-*-irix6*)
4032 # Find out which ABI we are using. 4681 # Find out which ABI we are using.
4033 echo '#line 4033 "configure"' > conftest.$ac_ext 4682 echo '#line 4682 "configure"' > conftest.$ac_ext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5 4684 (eval $ac_compile) 2>&5
4036 ac_status=$? 4685 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; then 4687 (exit $ac_status); }; then
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>&5 4721 (eval $ac_compile) 2>&5
4073 ac_status=$? 4722 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; then 4724 (exit $ac_status); }; then
4076 case "`/usr/bin/file conftest.o`" in 4725 case `/usr/bin/file conftest.o` in
4077 *32-bit*) 4726 *32-bit*)
4078 case $host in 4727 case $host in
4079 x86_64-*linux*) 4728 x86_64-*linux*)
4080 LD="${LD-ld} -m elf_i386" 4729 LD="${LD-ld} -m elf_i386"
4081 ;; 4730 ;;
4113 4762
4114*-*-sco3.2v5*) 4763*-*-sco3.2v5*)
4115 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4764 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4116 SAVE_CFLAGS="$CFLAGS" 4765 SAVE_CFLAGS="$CFLAGS"
4117 CFLAGS="$CFLAGS -belf" 4766 CFLAGS="$CFLAGS -belf"
4118 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4767 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4119echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4768echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4120if test "${lt_cv_cc_needs_belf+set}" = set; then 4769if test "${lt_cv_cc_needs_belf+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6 4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else 4771else
4123 ac_ext=c 4772 ac_ext=c
4124ac_cpp='$CPP $CPPFLAGS' 4773ac_cpp='$CPP $CPPFLAGS'
4140 ; 4789 ;
4141 return 0; 4790 return 0;
4142} 4791}
4143_ACEOF 4792_ACEOF
4144rm -f conftest.$ac_objext conftest$ac_exeext 4793rm -f conftest.$ac_objext conftest$ac_exeext
4794if { (ac_try="$ac_link"
4795case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798esac
4145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval $ac_link) 2>conftest.er1 4800 (eval "$ac_link") 2>conftest.er1
4147 ac_status=$? 4801 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err 4802 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1 4803 rm -f conftest.er1
4150 cat conftest.err >&5 4804 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } && 4806 (exit $ac_status); } && {
4153 { ac_try='test -z "$ac_c_werror_flag" 4807 test -z "$ac_c_werror_flag" ||
4154 || test ! -s conftest.err' 4808 test ! -s conftest.err
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4809 } && test -s conftest$ac_exeext &&
4156 (eval $ac_try) 2>&5 4810 $as_test_x conftest$ac_exeext; then
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest$ac_exeext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 lt_cv_cc_needs_belf=yes 4811 lt_cv_cc_needs_belf=yes
4167else 4812else
4168 echo "$as_me: failed program was:" >&5 4813 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5 4814sed 's/^/| /' conftest.$ac_ext >&5
4170 4815
4171lt_cv_cc_needs_belf=no 4816 lt_cv_cc_needs_belf=no
4172fi 4817fi
4173rm -f conftest.err conftest.$ac_objext \ 4818
4819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4174 conftest$ac_exeext conftest.$ac_ext 4820 conftest$ac_exeext conftest.$ac_ext
4175 ac_ext=c 4821 ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS' 4822ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu 4825ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 4826
4181fi 4827fi
4182echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4828{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4183echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4829echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4184 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4830 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4831 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4186 CFLAGS="$SAVE_CFLAGS" 4832 CFLAGS="$SAVE_CFLAGS"
4187 fi 4833 fi
4188 ;; 4834 ;;
4835sparc*-*solaris*)
4836 # Find out which ABI we are using.
4837 echo 'int i;' > conftest.$ac_ext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; then
4843 case `/usr/bin/file conftest.o` in
4844 *64-bit*)
4845 case $lt_cv_prog_gnu_ld in
4846 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4847 *) LD="${LD-ld} -64" ;;
4848 esac
4849 ;;
4850 esac
4851 fi
4852 rm -rf conftest*
4853 ;;
4854
4189 4855
4190esac 4856esac
4191 4857
4192need_locks="$enable_libtool_lock" 4858need_locks="$enable_libtool_lock"
4193 4859
4194 4860
4195 4861
4196echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4862{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4197echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4863echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4198if test "${ac_cv_header_stdc+set}" = set; then 4864if test "${ac_cv_header_stdc+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6 4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else 4866else
4201 cat >conftest.$ac_ext <<_ACEOF 4867 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */ 4868/* confdefs.h. */
4216 ; 4882 ;
4217 return 0; 4883 return 0;
4218} 4884}
4219_ACEOF 4885_ACEOF
4220rm -f conftest.$ac_objext 4886rm -f conftest.$ac_objext
4887if { (ac_try="$ac_compile"
4888case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891esac
4221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval $ac_compile) 2>conftest.er1 4893 (eval "$ac_compile") 2>conftest.er1
4223 ac_status=$? 4894 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err 4895 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1 4896 rm -f conftest.er1
4226 cat conftest.err >&5 4897 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && 4899 (exit $ac_status); } && {
4229 { ac_try='test -z "$ac_c_werror_flag" 4900 test -z "$ac_c_werror_flag" ||
4230 || test ! -s conftest.err' 4901 test ! -s conftest.err
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4902 } && test -s conftest.$ac_objext; then
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_header_stdc=yes 4903 ac_cv_header_stdc=yes
4243else 4904else
4244 echo "$as_me: failed program was:" >&5 4905 echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5 4906sed 's/^/| /' conftest.$ac_ext >&5
4246 4907
4247ac_cv_header_stdc=no 4908 ac_cv_header_stdc=no
4248fi 4909fi
4910
4249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 4912
4251if test $ac_cv_header_stdc = yes; then 4913if test $ac_cv_header_stdc = yes; then
4252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4253 cat >conftest.$ac_ext <<_ACEOF 4915 cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */ 4916/* confdefs.h. */
4300_ACEOF 4962_ACEOF
4301cat confdefs.h >>conftest.$ac_ext 4963cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF 4964cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */ 4965/* end confdefs.h. */
4304#include <ctype.h> 4966#include <ctype.h>
4967#include <stdlib.h>
4305#if ((' ' & 0x0FF) == 0x020) 4968#if ((' ' & 0x0FF) == 0x020)
4306# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4969# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4307# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4970# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4308#else 4971#else
4309# define ISLOWER(c) \ 4972# define ISLOWER(c) \
4319{ 4982{
4320 int i; 4983 int i;
4321 for (i = 0; i < 256; i++) 4984 for (i = 0; i < 256; i++)
4322 if (XOR (islower (i), ISLOWER (i)) 4985 if (XOR (islower (i), ISLOWER (i))
4323 || toupper (i) != TOUPPER (i)) 4986 || toupper (i) != TOUPPER (i))
4324 exit(2); 4987 return 2;
4325 exit (0); 4988 return 0;
4326} 4989}
4327_ACEOF 4990_ACEOF
4328rm -f conftest$ac_exeext 4991rm -f conftest$ac_exeext
4992if { (ac_try="$ac_link"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval $ac_link) 2>&5 4998 (eval "$ac_link") 2>&5
4331 ac_status=$? 4999 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5002 { (case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005esac
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval $ac_try) 2>&5 5007 (eval "$ac_try") 2>&5
4336 ac_status=$? 5008 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then 5010 (exit $ac_status); }; }; then
4339 : 5011 :
4340else 5012else
4343sed 's/^/| /' conftest.$ac_ext >&5 5015sed 's/^/| /' conftest.$ac_ext >&5
4344 5016
4345( exit $ac_status ) 5017( exit $ac_status )
4346ac_cv_header_stdc=no 5018ac_cv_header_stdc=no
4347fi 5019fi
4348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349fi 5021fi
5022
5023
4350fi 5024fi
4351fi 5025fi
4352echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5026{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4353echo "${ECHO_T}$ac_cv_header_stdc" >&6 5027echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4354if test $ac_cv_header_stdc = yes; then 5028if test $ac_cv_header_stdc = yes; then
4355 5029
4356cat >>confdefs.h <<\_ACEOF 5030cat >>confdefs.h <<\_ACEOF
4357#define STDC_HEADERS 1 5031#define STDC_HEADERS 1
4358_ACEOF 5032_ACEOF
4371 5045
4372for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4373 inttypes.h stdint.h unistd.h 5047 inttypes.h stdint.h unistd.h
4374do 5048do
4375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4376echo "$as_me:$LINENO: checking for $ac_header" >&5 5050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4378if eval "test \"\${$as_ac_Header+set}\" = set"; then 5052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6 5053 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else 5054else
4381 cat >conftest.$ac_ext <<_ACEOF 5055 cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */ 5056/* confdefs.h. */
4383_ACEOF 5057_ACEOF
4387$ac_includes_default 5061$ac_includes_default
4388 5062
4389#include <$ac_header> 5063#include <$ac_header>
4390_ACEOF 5064_ACEOF
4391rm -f conftest.$ac_objext 5065rm -f conftest.$ac_objext
5066if { (ac_try="$ac_compile"
5067case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070esac
4392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval $ac_compile) 2>conftest.er1 5072 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$? 5073 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err 5074 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1 5075 rm -f conftest.er1
4397 cat conftest.err >&5 5076 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && 5078 (exit $ac_status); } && {
4400 { ac_try='test -z "$ac_c_werror_flag" 5079 test -z "$ac_c_werror_flag" ||
4401 || test ! -s conftest.err' 5080 test ! -s conftest.err
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5081 } && test -s conftest.$ac_objext; then
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 eval "$as_ac_Header=yes" 5082 eval "$as_ac_Header=yes"
4414else 5083else
4415 echo "$as_me: failed program was:" >&5 5084 echo "$as_me: failed program was:" >&5
4416sed 's/^/| /' conftest.$ac_ext >&5 5085sed 's/^/| /' conftest.$ac_ext >&5
4417 5086
4418eval "$as_ac_Header=no" 5087 eval "$as_ac_Header=no"
4419fi 5088fi
5089
4420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421fi 5091fi
4422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5092ac_res=`eval echo '${'$as_ac_Header'}'`
4423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5093 { echo "$as_me:$LINENO: result: $ac_res" >&5
5094echo "${ECHO_T}$ac_res" >&6; }
4424if test `eval echo '${'$as_ac_Header'}'` = yes; then 5095if test `eval echo '${'$as_ac_Header'}'` = yes; then
4425 cat >>confdefs.h <<_ACEOF 5096 cat >>confdefs.h <<_ACEOF
4426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4427_ACEOF 5098_ACEOF
4428 5099
4433 5104
4434 5105
4435for ac_header in dlfcn.h 5106for ac_header in dlfcn.h
4436do 5107do
4437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438if eval "test \"\${$as_ac_Header+set}\" = set"; then 5109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5 5110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4441if eval "test \"\${$as_ac_Header+set}\" = set"; then 5112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6 5113 echo $ECHO_N "(cached) $ECHO_C" >&6
4443fi 5114fi
4444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5115ac_res=`eval echo '${'$as_ac_Header'}'`
4445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5116 { echo "$as_me:$LINENO: result: $ac_res" >&5
5117echo "${ECHO_T}$ac_res" >&6; }
4446else 5118else
4447 # Is the header compilable? 5119 # Is the header compilable?
4448echo "$as_me:$LINENO: checking $ac_header usability" >&5 5120{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4450cat >conftest.$ac_ext <<_ACEOF 5122cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h. */ 5123/* confdefs.h. */
4452_ACEOF 5124_ACEOF
4453cat confdefs.h >>conftest.$ac_ext 5125cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF 5126cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h. */ 5127/* end confdefs.h. */
4456$ac_includes_default 5128$ac_includes_default
4457#include <$ac_header> 5129#include <$ac_header>
4458_ACEOF 5130_ACEOF
4459rm -f conftest.$ac_objext 5131rm -f conftest.$ac_objext
5132if { (ac_try="$ac_compile"
5133case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136esac
4460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval $ac_compile) 2>conftest.er1 5138 (eval "$ac_compile") 2>conftest.er1
4462 ac_status=$? 5139 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err 5140 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1 5141 rm -f conftest.er1
4465 cat conftest.err >&5 5142 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && 5144 (exit $ac_status); } && {
4468 { ac_try='test -z "$ac_c_werror_flag" 5145 test -z "$ac_c_werror_flag" ||
4469 || test ! -s conftest.err' 5146 test ! -s conftest.err
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5147 } && test -s conftest.$ac_objext; then
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_header_compiler=yes 5148 ac_header_compiler=yes
4482else 5149else
4483 echo "$as_me: failed program was:" >&5 5150 echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5 5151sed 's/^/| /' conftest.$ac_ext >&5
4485 5152
4486ac_header_compiler=no 5153 ac_header_compiler=no
4487fi 5154fi
5155
4488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5157{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4490echo "${ECHO_T}$ac_header_compiler" >&6 5158echo "${ECHO_T}$ac_header_compiler" >&6; }
4491 5159
4492# Is the header present? 5160# Is the header present?
4493echo "$as_me:$LINENO: checking $ac_header presence" >&5 5161{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4495cat >conftest.$ac_ext <<_ACEOF 5163cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h. */ 5164/* confdefs.h. */
4497_ACEOF 5165_ACEOF
4498cat confdefs.h >>conftest.$ac_ext 5166cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF 5167cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */ 5168/* end confdefs.h. */
4501#include <$ac_header> 5169#include <$ac_header>
4502_ACEOF 5170_ACEOF
4503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5171if { (ac_try="$ac_cpp conftest.$ac_ext"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4505 ac_status=$? 5178 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err 5179 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1 5180 rm -f conftest.er1
4508 cat conftest.err >&5 5181 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null; then 5183 (exit $ac_status); } >/dev/null && {
5184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 if test -s conftest.err; then 5185 test ! -s conftest.err
4512 ac_cpp_err=$ac_c_preproc_warn_flag 5186 }; then
4513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4514 else
4515 ac_cpp_err=
4516 fi
4517else
4518 ac_cpp_err=yes
4519fi
4520if test -z "$ac_cpp_err"; then
4521 ac_header_preproc=yes 5187 ac_header_preproc=yes
4522else 5188else
4523 echo "$as_me: failed program was:" >&5 5189 echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5 5190sed 's/^/| /' conftest.$ac_ext >&5
4525 5191
4526 ac_header_preproc=no 5192 ac_header_preproc=no
4527fi 5193fi
5194
4528rm -f conftest.err conftest.$ac_ext 5195rm -f conftest.err conftest.$ac_ext
4529echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4530echo "${ECHO_T}$ac_header_preproc" >&6 5197echo "${ECHO_T}$ac_header_preproc" >&6; }
4531 5198
4532# So? What about this header? 5199# So? What about this header?
4533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4534 yes:no: ) 5201 yes:no: )
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4554 (
4555 cat <<\_ASBOX 5221 ( cat <<\_ASBOX
4556## ------------------------------------ ## 5222## ------------------------------------ ##
4557## Report this to jcouzens@codeshare.ca ## 5223## Report this to jcouzens@codeshare.ca ##
4558## ------------------------------------ ## 5224## ------------------------------------ ##
4559_ASBOX 5225_ASBOX
4560 ) |
4561 sed "s/^/$as_me: WARNING: /" >&2 5226 ) | sed "s/^/$as_me: WARNING: /" >&2
4562 ;; 5227 ;;
4563esac 5228esac
4564echo "$as_me:$LINENO: checking for $ac_header" >&5 5229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4566if eval "test \"\${$as_ac_Header+set}\" = set"; then 5231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6 5232 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else 5233else
4569 eval "$as_ac_Header=\$ac_header_preproc" 5234 eval "$as_ac_Header=\$ac_header_preproc"
4570fi 5235fi
4571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5236ac_res=`eval echo '${'$as_ac_Header'}'`
4572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5237 { echo "$as_me:$LINENO: result: $ac_res" >&5
5238echo "${ECHO_T}$ac_res" >&6; }
4573 5239
4574fi 5240fi
4575if test `eval echo '${'$as_ac_Header'}'` = yes; then 5241if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576 cat >>confdefs.h <<_ACEOF 5242 cat >>confdefs.h <<_ACEOF
4577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 5245
4580fi 5246fi
4581 5247
4582done 5248done
4583 5249
4584ac_ext=cc 5250ac_ext=cpp
4585ac_cpp='$CXXCPP $CPPFLAGS' 5251ac_cpp='$CXXCPP $CPPFLAGS'
4586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5255if test -z "$CXX"; then
5256 if test -n "$CCC"; then
5257 CXX=$CCC
5258 else
4589if test -n "$ac_tool_prefix"; then 5259 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4591 do 5261 do
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594echo "$as_me:$LINENO: checking for $ac_word" >&5 5264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596if test "${ac_cv_prog_CXX+set}" = set; then 5266if test "${ac_cv_prog_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6 5267 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else 5268else
4599 if test -n "$CXX"; then 5269 if test -n "$CXX"; then
4600 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603for as_dir in $PATH 5273for as_dir in $PATH
4604do 5274do
4605 IFS=$as_save_IFS 5275 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=. 5276 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do 5277 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2 5281 break 2
4612 fi 5282 fi
4613done 5283done
4614done 5284done
5285IFS=$as_save_IFS
4615 5286
4616fi 5287fi
4617fi 5288fi
4618CXX=$ac_cv_prog_CXX 5289CXX=$ac_cv_prog_CXX
4619if test -n "$CXX"; then 5290if test -n "$CXX"; then
4620 echo "$as_me:$LINENO: result: $CXX" >&5 5291 { echo "$as_me:$LINENO: result: $CXX" >&5
4621echo "${ECHO_T}$CXX" >&6 5292echo "${ECHO_T}$CXX" >&6; }
4622else 5293else
4623 echo "$as_me:$LINENO: result: no" >&5 5294 { echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6 5295echo "${ECHO_T}no" >&6; }
4625fi 5296fi
5297
4626 5298
4627 test -n "$CXX" && break 5299 test -n "$CXX" && break
4628 done 5300 done
4629fi 5301fi
4630if test -z "$CXX"; then 5302if test -z "$CXX"; then
4631 ac_ct_CXX=$CXX 5303 ac_ct_CXX=$CXX
4632 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4633do 5305do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args. 5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635set dummy $ac_prog; ac_word=$2 5307set dummy $ac_prog; ac_word=$2
4636echo "$as_me:$LINENO: checking for $ac_word" >&5 5308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5310if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6 5311 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else 5312else
4641 if test -n "$ac_ct_CXX"; then 5313 if test -n "$ac_ct_CXX"; then
4642 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645for as_dir in $PATH 5317for as_dir in $PATH
4646do 5318do
4647 IFS=$as_save_IFS 5319 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=. 5320 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do 5321 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_ac_ct_CXX="$ac_prog" 5323 ac_cv_prog_ac_ct_CXX="$ac_prog"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2 5325 break 2
4654 fi 5326 fi
4655done 5327done
4656done 5328done
5329IFS=$as_save_IFS
4657 5330
4658fi 5331fi
4659fi 5332fi
4660ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5333ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4661if test -n "$ac_ct_CXX"; then 5334if test -n "$ac_ct_CXX"; then
4662 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5335 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4663echo "${ECHO_T}$ac_ct_CXX" >&6 5336echo "${ECHO_T}$ac_ct_CXX" >&6; }
4664else 5337else
4665 echo "$as_me:$LINENO: result: no" >&5 5338 { echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6 5339echo "${ECHO_T}no" >&6; }
4667fi 5340fi
5341
4668 5342
4669 test -n "$ac_ct_CXX" && break 5343 test -n "$ac_ct_CXX" && break
4670done 5344done
4671test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4672 5345
5346 if test "x$ac_ct_CXX" = x; then
5347 CXX="g++"
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350yes:)
5351{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5352whose name does not start with the host triplet. If you think this
5353configuration is useful to you, please write to autoconf@gnu.org." >&5
5354echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5355whose name does not start with the host triplet. If you think this
5356configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5357ac_tool_warned=yes ;;
5358esac
4673 CXX=$ac_ct_CXX 5359 CXX=$ac_ct_CXX
5360 fi
4674fi 5361fi
4675 5362
4676 5363 fi
5364fi
4677# Provide some information about the compiler. 5365# Provide some information about the compiler.
4678echo "$as_me:$LINENO:" \
4679 "checking for C++ compiler version" >&5 5366echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4680ac_compiler=`set X $ac_compile; echo $2` 5367ac_compiler=`set X $ac_compile; echo $2`
4681{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5368{ (ac_try="$ac_compiler --version >&5"
5369case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval $ac_compiler --version </dev/null >&5) 2>&5 5374 (eval "$ac_compiler --version >&5") 2>&5
4683 ac_status=$? 5375 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } 5377 (exit $ac_status); }
4686{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5378{ (ac_try="$ac_compiler -v >&5"
5379case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval $ac_compiler -v </dev/null >&5) 2>&5 5384 (eval "$ac_compiler -v >&5") 2>&5
4688 ac_status=$? 5385 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } 5387 (exit $ac_status); }
4691{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5388{ (ac_try="$ac_compiler -V >&5"
5389case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392esac
5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval $ac_compiler -V </dev/null >&5) 2>&5 5394 (eval "$ac_compiler -V >&5") 2>&5
4693 ac_status=$? 5395 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } 5397 (exit $ac_status); }
4696 5398
4697echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5399{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4698echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5400echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4699if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5401if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6 5402 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else 5403else
4702 cat >conftest.$ac_ext <<_ACEOF 5404 cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */ 5405/* confdefs.h. */
4716 ; 5418 ;
4717 return 0; 5419 return 0;
4718} 5420}
4719_ACEOF 5421_ACEOF
4720rm -f conftest.$ac_objext 5422rm -f conftest.$ac_objext
5423if { (ac_try="$ac_compile"
5424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
4721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval $ac_compile) 2>conftest.er1 5429 (eval "$ac_compile") 2>conftest.er1
4723 ac_status=$? 5430 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err 5431 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1 5432 rm -f conftest.er1
4726 cat conftest.err >&5 5433 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } && 5435 (exit $ac_status); } && {
4729 { ac_try='test -z "$ac_cxx_werror_flag" 5436 test -z "$ac_cxx_werror_flag" ||
4730 || test ! -s conftest.err' 5437 test ! -s conftest.err
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5438 } && test -s conftest.$ac_objext; then
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_compiler_gnu=yes 5439 ac_compiler_gnu=yes
4743else 5440else
4744 echo "$as_me: failed program was:" >&5 5441 echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5 5442sed 's/^/| /' conftest.$ac_ext >&5
4746 5443
4747ac_compiler_gnu=no 5444 ac_compiler_gnu=no
4748fi 5445fi
5446
4749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5448ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4751 5449
4752fi 5450fi
4753echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5451{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4754echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5452echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4755GXX=`test $ac_compiler_gnu = yes && echo yes` 5453GXX=`test $ac_compiler_gnu = yes && echo yes`
4756ac_test_CXXFLAGS=${CXXFLAGS+set} 5454ac_test_CXXFLAGS=${CXXFLAGS+set}
4757ac_save_CXXFLAGS=$CXXFLAGS 5455ac_save_CXXFLAGS=$CXXFLAGS
4758CXXFLAGS="-g"
4759echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5456{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4760echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5457echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4761if test "${ac_cv_prog_cxx_g+set}" = set; then 5458if test "${ac_cv_prog_cxx_g+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6 5459 echo $ECHO_N "(cached) $ECHO_C" >&6
4763else 5460else
5461 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5462 ac_cxx_werror_flag=yes
5463 ac_cv_prog_cxx_g=no
5464 CXXFLAGS="-g"
4764 cat >conftest.$ac_ext <<_ACEOF 5465 cat >conftest.$ac_ext <<_ACEOF
4765/* confdefs.h. */ 5466/* confdefs.h. */
4766_ACEOF 5467_ACEOF
4767cat confdefs.h >>conftest.$ac_ext 5468cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF 5469cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h. */ 5470/* end confdefs.h. */
4775 ; 5476 ;
4776 return 0; 5477 return 0;
4777} 5478}
4778_ACEOF 5479_ACEOF
4779rm -f conftest.$ac_objext 5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
4780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval $ac_compile) 2>conftest.er1 5487 (eval "$ac_compile") 2>conftest.er1
4782 ac_status=$? 5488 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err 5489 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1 5490 rm -f conftest.er1
4785 cat conftest.err >&5 5491 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && 5493 (exit $ac_status); } && {
4788 { ac_try='test -z "$ac_cxx_werror_flag" 5494 test -z "$ac_cxx_werror_flag" ||
4789 || test ! -s conftest.err' 5495 test ! -s conftest.err
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5496 } && test -s conftest.$ac_objext; then
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest.$ac_objext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_prog_cxx_g=yes 5497 ac_cv_prog_cxx_g=yes
4802else 5498else
4803 echo "$as_me: failed program was:" >&5 5499 echo "$as_me: failed program was:" >&5
4804sed 's/^/| /' conftest.$ac_ext >&5 5500sed 's/^/| /' conftest.$ac_ext >&5
4805 5501
5502 CXXFLAGS=""
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext
5519if { (ac_try="$ac_compile"
5520case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_cxx_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 :
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5541 CXXFLAGS="-g"
5542 cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h. */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h. */
5548
5549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
5558if { (ac_try="$ac_compile"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_cxx_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
4806ac_cv_prog_cxx_g=no 5574 ac_cv_prog_cxx_g=yes
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579
4807fi 5580fi
5581
4808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809fi 5583fi
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586fi
5587
5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5590fi
4810echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5591{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4811echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5592echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4812if test "$ac_test_CXXFLAGS" = set; then 5593if test "$ac_test_CXXFLAGS" = set; then
4813 CXXFLAGS=$ac_save_CXXFLAGS 5594 CXXFLAGS=$ac_save_CXXFLAGS
4814elif test $ac_cv_prog_cxx_g = yes; then 5595elif test $ac_cv_prog_cxx_g = yes; then
4815 if test "$GXX" = yes; then 5596 if test "$GXX" = yes; then
4816 CXXFLAGS="-g -O2" 5597 CXXFLAGS="-g -O2"
4822 CXXFLAGS="-O2" 5603 CXXFLAGS="-O2"
4823 else 5604 else
4824 CXXFLAGS= 5605 CXXFLAGS=
4825 fi 5606 fi
4826fi 5607fi
4827for ac_declaration in \
4828 '' \
4829 'extern "C" void std::exit (int) throw (); using std::exit;' \
4830 'extern "C" void std::exit (int); using std::exit;' \
4831 'extern "C" void exit (int) throw ();' \
4832 'extern "C" void exit (int);' \
4833 'void exit (int);'
4834do
4835 cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841$ac_declaration
4842#include <stdlib.h>
4843int
4844main ()
4845{
4846exit (42);
4847 ;
4848 return 0;
4849}
4850_ACEOF
4851rm -f conftest.$ac_objext
4852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -z "$ac_cxx_werror_flag"
4861 || test ! -s conftest.err'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 :
4874else
4875 echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878continue
4879fi
4880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881 cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887$ac_declaration
4888int
4889main ()
4890{
4891exit (42);
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext
4897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_cxx_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 break
4919else
4920 echo "$as_me: failed program was:" >&5
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923fi
4924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925done
4926rm -f conftest*
4927if test -n "$ac_declaration"; then
4928 echo '#ifdef __cplusplus' >>confdefs.h
4929 echo $ac_declaration >>confdefs.h
4930 echo '#endif' >>confdefs.h
4931fi
4932
4933ac_ext=cc 5608ac_ext=cpp
4934ac_cpp='$CXXCPP $CPPFLAGS' 5609ac_cpp='$CXXCPP $CPPFLAGS'
4935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938 5613
4939depcc="$CXX" am_compiler_list= 5614depcc="$CXX" am_compiler_list=
4940 5615
4941echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5616{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4942echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5617echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4943if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5618if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6 5619 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else 5620else
4946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4947 # We make a subdir and do the tests there. Otherwise we can end up 5622 # We make a subdir and do the tests there. Otherwise we can end up
4998else 5673else
4999 am_cv_CXX_dependencies_compiler_type=none 5674 am_cv_CXX_dependencies_compiler_type=none
5000fi 5675fi
5001 5676
5002fi 5677fi
5003echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5678{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5004echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5679echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5005CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5680CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5006 5681
5007 5682
5683
5684
5685if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5686 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5687 (test "X$CXX" != "Xg++"))) ; then
5008ac_ext=cc 5688 ac_ext=cpp
5009ac_cpp='$CXXCPP $CPPFLAGS' 5689ac_cpp='$CXXCPP $CPPFLAGS'
5010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5013echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5693{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5014echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5694echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5015if test -z "$CXXCPP"; then 5695if test -z "$CXXCPP"; then
5016 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5696 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6 5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5018else 5698else
5019 # Double quotes because CXXCPP needs to be expanded 5699 # Double quotes because CXXCPP needs to be expanded
5039#else 5719#else
5040# include <assert.h> 5720# include <assert.h>
5041#endif 5721#endif
5042 Syntax error 5722 Syntax error
5043_ACEOF 5723_ACEOF
5044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5724if { (ac_try="$ac_cpp conftest.$ac_ext"
5725case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5046 ac_status=$? 5731 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err 5732 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1 5733 rm -f conftest.er1
5049 cat conftest.err >&5 5734 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } >/dev/null; then 5736 (exit $ac_status); } >/dev/null && {
5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5052 if test -s conftest.err; then 5738 test ! -s conftest.err
5053 ac_cpp_err=$ac_cxx_preproc_warn_flag 5739 }; then
5054 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5055 else
5056 ac_cpp_err=
5057 fi
5058else
5059 ac_cpp_err=yes
5060fi
5061if test -z "$ac_cpp_err"; then
5062 : 5740 :
5063else 5741else
5064 echo "$as_me: failed program was:" >&5 5742 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5 5743sed 's/^/| /' conftest.$ac_ext >&5
5066 5744
5067 # Broken: fails on valid input. 5745 # Broken: fails on valid input.
5068continue 5746continue
5069fi 5747fi
5748
5070rm -f conftest.err conftest.$ac_ext 5749rm -f conftest.err conftest.$ac_ext
5071 5750
5072 # OK, works on sane cases. Now check whether non-existent headers 5751 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how. 5752 # can be detected and how.
5074 cat >conftest.$ac_ext <<_ACEOF 5753 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */ 5754/* confdefs.h. */
5076_ACEOF 5755_ACEOF
5077cat confdefs.h >>conftest.$ac_ext 5756cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF 5757cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */ 5758/* end confdefs.h. */
5080#include <ac_nonexistent.h> 5759#include <ac_nonexistent.h>
5081_ACEOF 5760_ACEOF
5082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5761if { (ac_try="$ac_cpp conftest.$ac_ext"
5762case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$? 5768 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err 5769 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1 5770 rm -f conftest.er1
5087 cat conftest.err >&5 5771 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null; then 5773 (exit $ac_status); } >/dev/null && {
5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5090 if test -s conftest.err; then 5775 test ! -s conftest.err
5091 ac_cpp_err=$ac_cxx_preproc_warn_flag 5776 }; then
5092 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093 else
5094 ac_cpp_err=
5095 fi
5096else
5097 ac_cpp_err=yes
5098fi
5099if test -z "$ac_cpp_err"; then
5100 # Broken: success on invalid input. 5777 # Broken: success on invalid input.
5101continue 5778continue
5102else 5779else
5103 echo "$as_me: failed program was:" >&5 5780 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5 5781sed 's/^/| /' conftest.$ac_ext >&5
5105 5782
5106 # Passes both tests. 5783 # Passes both tests.
5107ac_preproc_ok=: 5784ac_preproc_ok=:
5108break 5785break
5109fi 5786fi
5787
5110rm -f conftest.err conftest.$ac_ext 5788rm -f conftest.err conftest.$ac_ext
5111 5789
5112done 5790done
5113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114rm -f conftest.err conftest.$ac_ext 5792rm -f conftest.err conftest.$ac_ext
5122fi 5800fi
5123 CXXCPP=$ac_cv_prog_CXXCPP 5801 CXXCPP=$ac_cv_prog_CXXCPP
5124else 5802else
5125 ac_cv_prog_CXXCPP=$CXXCPP 5803 ac_cv_prog_CXXCPP=$CXXCPP
5126fi 5804fi
5127echo "$as_me:$LINENO: result: $CXXCPP" >&5 5805{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5128echo "${ECHO_T}$CXXCPP" >&6 5806echo "${ECHO_T}$CXXCPP" >&6; }
5129ac_preproc_ok=false 5807ac_preproc_ok=false
5130for ac_cxx_preproc_warn_flag in '' yes 5808for ac_cxx_preproc_warn_flag in '' yes
5131do 5809do
5132 # Use a header file that comes with gcc, so configuring glibc 5810 # Use a header file that comes with gcc, so configuring glibc
5133 # with a fresh cross-compiler works. 5811 # with a fresh cross-compiler works.
5146#else 5824#else
5147# include <assert.h> 5825# include <assert.h>
5148#endif 5826#endif
5149 Syntax error 5827 Syntax error
5150_ACEOF 5828_ACEOF
5151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5829if { (ac_try="$ac_cpp conftest.$ac_ext"
5830case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 ac_status=$? 5836 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err 5837 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1 5838 rm -f conftest.er1
5156 cat conftest.err >&5 5839 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } >/dev/null; then 5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5159 if test -s conftest.err; then 5843 test ! -s conftest.err
5160 ac_cpp_err=$ac_cxx_preproc_warn_flag 5844 }; then
5161 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5162 else
5163 ac_cpp_err=
5164 fi
5165else
5166 ac_cpp_err=yes
5167fi
5168if test -z "$ac_cpp_err"; then
5169 : 5845 :
5170else 5846else
5171 echo "$as_me: failed program was:" >&5 5847 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5 5848sed 's/^/| /' conftest.$ac_ext >&5
5173 5849
5174 # Broken: fails on valid input. 5850 # Broken: fails on valid input.
5175continue 5851continue
5176fi 5852fi
5853
5177rm -f conftest.err conftest.$ac_ext 5854rm -f conftest.err conftest.$ac_ext
5178 5855
5179 # OK, works on sane cases. Now check whether non-existent headers 5856 # OK, works on sane cases. Now check whether nonexistent headers
5180 # can be detected and how. 5857 # can be detected and how.
5181 cat >conftest.$ac_ext <<_ACEOF 5858 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */ 5859/* confdefs.h. */
5183_ACEOF 5860_ACEOF
5184cat confdefs.h >>conftest.$ac_ext 5861cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF 5862cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */ 5863/* end confdefs.h. */
5187#include <ac_nonexistent.h> 5864#include <ac_nonexistent.h>
5188_ACEOF 5865_ACEOF
5189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5866if { (ac_try="$ac_cpp conftest.$ac_ext"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$? 5873 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err 5874 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1 5875 rm -f conftest.er1
5194 cat conftest.err >&5 5876 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then 5878 (exit $ac_status); } >/dev/null && {
5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5197 if test -s conftest.err; then 5880 test ! -s conftest.err
5198 ac_cpp_err=$ac_cxx_preproc_warn_flag 5881 }; then
5199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5200 else
5201 ac_cpp_err=
5202 fi
5203else
5204 ac_cpp_err=yes
5205fi
5206if test -z "$ac_cpp_err"; then
5207 # Broken: success on invalid input. 5882 # Broken: success on invalid input.
5208continue 5883continue
5209else 5884else
5210 echo "$as_me: failed program was:" >&5 5885 echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5 5886sed 's/^/| /' conftest.$ac_ext >&5
5212 5887
5213 # Passes both tests. 5888 # Passes both tests.
5214ac_preproc_ok=: 5889ac_preproc_ok=:
5215break 5890break
5216fi 5891fi
5892
5217rm -f conftest.err conftest.$ac_ext 5893rm -f conftest.err conftest.$ac_ext
5218 5894
5219done 5895done
5220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221rm -f conftest.err conftest.$ac_ext 5897rm -f conftest.err conftest.$ac_ext
5227echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5903echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5228See \`config.log' for more details." >&2;} 5904See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; } 5905 { (exit 1); exit 1; }; }
5230fi 5906fi
5231 5907
5232ac_ext=cc 5908ac_ext=cpp
5233ac_cpp='$CXXCPP $CPPFLAGS' 5909ac_cpp='$CXXCPP $CPPFLAGS'
5234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5913
5914fi
5237 5915
5238 5916
5239ac_ext=f 5917ac_ext=f
5240ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5241ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5920ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5243if test -n "$ac_tool_prefix"; then 5921if test -n "$ac_tool_prefix"; then
5244 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5922 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
5245 do 5923 do
5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248echo "$as_me:$LINENO: checking for $ac_word" >&5 5926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250if test "${ac_cv_prog_F77+set}" = set; then 5928if test "${ac_cv_prog_F77+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6 5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else 5930else
5253 if test -n "$F77"; then 5931 if test -n "$F77"; then
5254 ac_cv_prog_F77="$F77" # Let the user override the test. 5932 ac_cv_prog_F77="$F77" # Let the user override the test.
5257for as_dir in $PATH 5935for as_dir in $PATH
5258do 5936do
5259 IFS=$as_save_IFS 5937 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=. 5938 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do 5939 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5941 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2 5943 break 2
5266 fi 5944 fi
5267done 5945done
5268done 5946done
5947IFS=$as_save_IFS
5269 5948
5270fi 5949fi
5271fi 5950fi
5272F77=$ac_cv_prog_F77 5951F77=$ac_cv_prog_F77
5273if test -n "$F77"; then 5952if test -n "$F77"; then
5274 echo "$as_me:$LINENO: result: $F77" >&5 5953 { echo "$as_me:$LINENO: result: $F77" >&5
5275echo "${ECHO_T}$F77" >&6 5954echo "${ECHO_T}$F77" >&6; }
5276else 5955else
5277 echo "$as_me:$LINENO: result: no" >&5 5956 { echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6 5957echo "${ECHO_T}no" >&6; }
5279fi 5958fi
5959
5280 5960
5281 test -n "$F77" && break 5961 test -n "$F77" && break
5282 done 5962 done
5283fi 5963fi
5284if test -z "$F77"; then 5964if test -z "$F77"; then
5285 ac_ct_F77=$F77 5965 ac_ct_F77=$F77
5286 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5966 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
5287do 5967do
5288 # Extract the first word of "$ac_prog", so it can be a program name with args. 5968 # Extract the first word of "$ac_prog", so it can be a program name with args.
5289set dummy $ac_prog; ac_word=$2 5969set dummy $ac_prog; ac_word=$2
5290echo "$as_me:$LINENO: checking for $ac_word" >&5 5970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5292if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5972if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6 5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5294else 5974else
5295 if test -n "$ac_ct_F77"; then 5975 if test -n "$ac_ct_F77"; then
5296 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5976 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5299for as_dir in $PATH 5979for as_dir in $PATH
5300do 5980do
5301 IFS=$as_save_IFS 5981 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=. 5982 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do 5983 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_ac_ct_F77="$ac_prog" 5985 ac_cv_prog_ac_ct_F77="$ac_prog"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2 5987 break 2
5308 fi 5988 fi
5309done 5989done
5310done 5990done
5991IFS=$as_save_IFS
5311 5992
5312fi 5993fi
5313fi 5994fi
5314ac_ct_F77=$ac_cv_prog_ac_ct_F77 5995ac_ct_F77=$ac_cv_prog_ac_ct_F77
5315if test -n "$ac_ct_F77"; then 5996if test -n "$ac_ct_F77"; then
5316 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5997 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5317echo "${ECHO_T}$ac_ct_F77" >&6 5998echo "${ECHO_T}$ac_ct_F77" >&6; }
5318else 5999else
5319 echo "$as_me:$LINENO: result: no" >&5 6000 { echo "$as_me:$LINENO: result: no" >&5
5320echo "${ECHO_T}no" >&6 6001echo "${ECHO_T}no" >&6; }
5321fi 6002fi
6003
5322 6004
5323 test -n "$ac_ct_F77" && break 6005 test -n "$ac_ct_F77" && break
5324done 6006done
5325 6007
6008 if test "x$ac_ct_F77" = x; then
6009 F77=""
6010 else
6011 case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6014whose name does not start with the host triplet. If you think this
6015configuration is useful to you, please write to autoconf@gnu.org." >&5
6016echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6017whose name does not start with the host triplet. If you think this
6018configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6019ac_tool_warned=yes ;;
6020esac
5326 F77=$ac_ct_F77 6021 F77=$ac_ct_F77
6022 fi
5327fi 6023fi
5328 6024
5329 6025
5330# Provide some information about the compiler. 6026# Provide some information about the compiler.
5331echo "$as_me:5331:" \
5332 "checking for Fortran 77 compiler version" >&5 6027echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5333ac_compiler=`set X $ac_compile; echo $2` 6028ac_compiler=`set X $ac_compile; echo $2`
5334{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6029{ (ac_try="$ac_compiler --version >&5"
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
5335 (eval $ac_compiler --version </dev/null >&5) 2>&5 6035 (eval "$ac_compiler --version >&5") 2>&5
5336 ac_status=$? 6036 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } 6038 (exit $ac_status); }
5339{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6039{ (ac_try="$ac_compiler -v >&5"
6040case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval $ac_compiler -v </dev/null >&5) 2>&5 6045 (eval "$ac_compiler -v >&5") 2>&5
5341 ac_status=$? 6046 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } 6048 (exit $ac_status); }
5344{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6049{ (ac_try="$ac_compiler -V >&5"
6050case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval $ac_compiler -V </dev/null >&5) 2>&5 6055 (eval "$ac_compiler -V >&5") 2>&5
5346 ac_status=$? 6056 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } 6058 (exit $ac_status); }
5349rm -f a.out 6059rm -f a.out
5350 6060
5351# If we don't use `.F' as extension, the preprocessor is not run on the 6061# If we don't use `.F' as extension, the preprocessor is not run on the
5352# input file. (Note that this only needs to work for GNU compilers.) 6062# input file. (Note that this only needs to work for GNU compilers.)
5353ac_save_ext=$ac_ext 6063ac_save_ext=$ac_ext
5354ac_ext=F 6064ac_ext=F
5355echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6065{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5356echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6066echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5357if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6067if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6 6068 echo $ECHO_N "(cached) $ECHO_C" >&6
5359else 6069else
5360 cat >conftest.$ac_ext <<_ACEOF 6070 cat >conftest.$ac_ext <<_ACEOF
5361 program main 6071 program main
5364#endif 6074#endif
5365 6075
5366 end 6076 end
5367_ACEOF 6077_ACEOF
5368rm -f conftest.$ac_objext 6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
5369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval $ac_compile) 2>conftest.er1 6085 (eval "$ac_compile") 2>conftest.er1
5371 ac_status=$? 6086 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err 6087 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1 6088 rm -f conftest.er1
5374 cat conftest.err >&5 6089 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && 6091 (exit $ac_status); } && {
5377 { ac_try='test -z "$ac_f77_werror_flag" 6092 test -z "$ac_f77_werror_flag" ||
5378 || test ! -s conftest.err' 6093 test ! -s conftest.err
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6094 } && test -s conftest.$ac_objext; then
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_compiler_gnu=yes 6095 ac_compiler_gnu=yes
5391else 6096else
5392 echo "$as_me: failed program was:" >&5 6097 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5 6098sed 's/^/| /' conftest.$ac_ext >&5
5394 6099
5395ac_compiler_gnu=no 6100 ac_compiler_gnu=no
5396fi 6101fi
6102
5397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6104ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5399 6105
5400fi 6106fi
5401echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6107{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5402echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 6108echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5403ac_ext=$ac_save_ext 6109ac_ext=$ac_save_ext
5404ac_test_FFLAGS=${FFLAGS+set} 6110ac_test_FFLAGS=${FFLAGS+set}
5405ac_save_FFLAGS=$FFLAGS 6111ac_save_FFLAGS=$FFLAGS
5406FFLAGS= 6112FFLAGS=
5407echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6113{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5408echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 6114echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_f77_g+set}" = set; then 6115if test "${ac_cv_prog_f77_g+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6 6116 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else 6117else
5412 FFLAGS=-g 6118 FFLAGS=-g
5413cat >conftest.$ac_ext <<_ACEOF 6119cat >conftest.$ac_ext <<_ACEOF
5414 program main 6120 program main
5415 6121
5416 end 6122 end
5417_ACEOF 6123_ACEOF
5418rm -f conftest.$ac_objext 6124rm -f conftest.$ac_objext
6125if { (ac_try="$ac_compile"
6126case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
5419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval $ac_compile) 2>conftest.er1 6131 (eval "$ac_compile") 2>conftest.er1
5421 ac_status=$? 6132 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err 6133 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1 6134 rm -f conftest.er1
5424 cat conftest.err >&5 6135 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && 6137 (exit $ac_status); } && {
5427 { ac_try='test -z "$ac_f77_werror_flag" 6138 test -z "$ac_f77_werror_flag" ||
5428 || test ! -s conftest.err' 6139 test ! -s conftest.err
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6140 } && test -s conftest.$ac_objext; then
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_cv_prog_f77_g=yes 6141 ac_cv_prog_f77_g=yes
5441else 6142else
5442 echo "$as_me: failed program was:" >&5 6143 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5 6144sed 's/^/| /' conftest.$ac_ext >&5
5444 6145
5445ac_cv_prog_f77_g=no 6146 ac_cv_prog_f77_g=no
5446fi 6147fi
6148
5447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 6150
5449fi 6151fi
5450echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6152{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5451echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6153echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5452if test "$ac_test_FFLAGS" = set; then 6154if test "$ac_test_FFLAGS" = set; then
5453 FFLAGS=$ac_save_FFLAGS 6155 FFLAGS=$ac_save_FFLAGS
5454elif test $ac_cv_prog_f77_g = yes; then 6156elif test $ac_cv_prog_f77_g = yes; then
5455 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6157 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5456 FFLAGS="-g -O2" 6158 FFLAGS="-g -O2"
5475 6177
5476 6178
5477# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6179# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5478 6180
5479# find the maximum length of command line arguments 6181# find the maximum length of command line arguments
5480echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6182{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5481echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6183echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5482if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6184if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6 6185 echo $ECHO_N "(cached) $ECHO_C" >&6
5484else 6186else
5485 i=0 6187 i=0
5486 testring="ABCD" 6188 teststring="ABCD"
5487 6189
5488 case $build_os in 6190 case $build_os in
5489 msdosdjgpp*) 6191 msdosdjgpp*)
5490 # On DJGPP, this test can blow up pretty badly due to problems in libc 6192 # On DJGPP, this test can blow up pretty badly due to problems in libc
5491 # (any single argument exceeding 2000 bytes causes a buffer overrun 6193 # (any single argument exceeding 2000 bytes causes a buffer overrun
5516 # On AmigaOS with pdksh, this test takes hours, literally. 6218 # On AmigaOS with pdksh, this test takes hours, literally.
5517 # So we just punt and use a minimum line length of 8192. 6219 # So we just punt and use a minimum line length of 8192.
5518 lt_cv_sys_max_cmd_len=8192; 6220 lt_cv_sys_max_cmd_len=8192;
5519 ;; 6221 ;;
5520 6222
6223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6224 # This has been around since 386BSD, at least. Likely further.
6225 if test -x /sbin/sysctl; then
6226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6227 elif test -x /usr/sbin/sysctl; then
6228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6229 else
6230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6231 fi
6232 # And add a safety zone
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6235 ;;
6236
6237 interix*)
6238 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6239 lt_cv_sys_max_cmd_len=196608
6240 ;;
6241
6242 osf*)
6243 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6244 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6245 # nice to cause kernel panics so lets avoid the loop below.
6246 # First set a reasonable default.
6247 lt_cv_sys_max_cmd_len=16384
6248 #
6249 if test -x /sbin/sysconfig; then
6250 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6251 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6252 esac
6253 fi
6254 ;;
6255 sco3.2v5*)
6256 lt_cv_sys_max_cmd_len=102400
6257 ;;
6258 sysv5* | sco5v6* | sysv4.2uw2*)
6259 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6260 if test -n "$kargmax"; then
6261 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6262 else
6263 lt_cv_sys_max_cmd_len=32768
6264 fi
6265 ;;
5521 *) 6266 *)
5522 # If test is not a shell built-in, we'll probably end up computing a 6267 # If test is not a shell built-in, we'll probably end up computing a
5523 # maximum length that is only half of the actual maximum length, but 6268 # maximum length that is only half of the actual maximum length, but
5524 # we can't tell. 6269 # we can't tell.
6270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5525 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 6271 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5526 = "XX$testring") >/dev/null 2>&1 && 6272 = "XX$teststring") >/dev/null 2>&1 &&
5527 new_result=`expr "X$testring" : ".*" 2>&1` && 6273 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5528 lt_cv_sys_max_cmd_len=$new_result && 6274 lt_cv_sys_max_cmd_len=$new_result &&
5529 test $i != 17 # 1/2 MB should be enough 6275 test $i != 17 # 1/2 MB should be enough
5530 do 6276 do
5531 i=`expr $i + 1` 6277 i=`expr $i + 1`
5532 testring=$testring$testring 6278 teststring=$teststring$teststring
5533 done 6279 done
5534 testring= 6280 teststring=
5535 # Add a significant safety factor because C++ compilers can tack on massive 6281 # Add a significant safety factor because C++ compilers can tack on massive
5536 # amounts of additional arguments before passing them to the linker. 6282 # amounts of additional arguments before passing them to the linker.
5537 # It appears as though 1/2 is a usable value. 6283 # It appears as though 1/2 is a usable value.
5538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5539 ;; 6285 ;;
5540 esac 6286 esac
5541 6287
5542fi 6288fi
5543 6289
5544if test -n $lt_cv_sys_max_cmd_len ; then 6290if test -n $lt_cv_sys_max_cmd_len ; then
5545 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6291 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5546echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6292echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5547else 6293else
5548 echo "$as_me:$LINENO: result: none" >&5 6294 { echo "$as_me:$LINENO: result: none" >&5
5549echo "${ECHO_T}none" >&6 6295echo "${ECHO_T}none" >&6; }
5550fi 6296fi
5551 6297
5552 6298
5553 6299
5554 6300
5555# Check for command to grab the raw symbol name followed by C symbol from nm. 6301# Check for command to grab the raw symbol name followed by C symbol from nm.
5556echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6302{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5557echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5558if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6 6305 echo $ECHO_N "(cached) $ECHO_C" >&6
5560else 6306else
5561 6307
5562# These are sane defaults that work on at least a few old systems. 6308# These are sane defaults that work on at least a few old systems.
5565# Character class describing NM global symbol codes. 6311# Character class describing NM global symbol codes.
5566symcode='[BCDEGRST]' 6312symcode='[BCDEGRST]'
5567 6313
5568# Regexp to match symbols that can be accessed directly from C. 6314# Regexp to match symbols that can be accessed directly from C.
5569sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6315sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5570
5571# Transform the above into a raw symbol and a C symbol.
5572symxfrm='\1 \2\3 \3'
5573 6316
5574# Transform an extracted symbol line into a proper C declaration 6317# Transform an extracted symbol line into a proper C declaration
5575lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5576 6319
5577# Transform an extracted symbol line into symbol name and symbol address 6320# Transform an extracted symbol line into symbol name and symbol address
5590 symcode='[ABCDEGRST]' 6333 symcode='[ABCDEGRST]'
5591 fi 6334 fi
5592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5593 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'" 6336 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'"
5594 ;; 6337 ;;
6338linux* | k*bsd*-gnu)
6339 if test "$host_cpu" = ia64; then
6340 symcode='[ABCDGIRSTW]'
6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342 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'"
6343 fi
6344 ;;
5595irix* | nonstopux*) 6345irix* | nonstopux*)
5596 symcode='[BCDEGRST]' 6346 symcode='[BCDEGRST]'
5597 ;; 6347 ;;
5598osf*) 6348osf*)
5599 symcode='[BCDEGQRST]' 6349 symcode='[BCDEGQRST]'
5600 ;; 6350 ;;
5601solaris* | sysv5*) 6351solaris*)
5602 symcode='[BDRT]' 6352 symcode='[BDRT]'
6353 ;;
6354sco3.2v5*)
6355 symcode='[DT]'
6356 ;;
6357sysv4.2uw2*)
6358 symcode='[DT]'
6359 ;;
6360sysv5* | sco5v6* | unixware* | OpenUNIX*)
6361 symcode='[ABDT]'
5603 ;; 6362 ;;
5604sysv4) 6363sysv4)
5605 symcode='[DFNSTU]' 6364 symcode='[DFNSTU]'
5606 ;; 6365 ;;
5607esac 6366esac
5621esac 6380esac
5622 6381
5623# Try without a prefix undercore, then with it. 6382# Try without a prefix undercore, then with it.
5624for ac_symprfx in "" "_"; do 6383for ac_symprfx in "" "_"; do
5625 6384
6385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6386 symxfrm="\\1 $ac_symprfx\\2 \\2"
6387
5626 # Write the raw and C identifiers. 6388 # Write the raw and C identifiers.
5627 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 6389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5628 6390
5629 # Check to see that the pipe works correctly. 6391 # Check to see that the pipe works correctly.
5630 pipe_works=no 6392 pipe_works=no
5631 6393
5632 rm -f conftest* 6394 rm -f conftest*
5740 6502
5741if test -z "$lt_cv_sys_global_symbol_pipe"; then 6503if test -z "$lt_cv_sys_global_symbol_pipe"; then
5742 lt_cv_sys_global_symbol_to_cdecl= 6504 lt_cv_sys_global_symbol_to_cdecl=
5743fi 6505fi
5744if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5745 echo "$as_me:$LINENO: result: failed" >&5 6507 { echo "$as_me:$LINENO: result: failed" >&5
5746echo "${ECHO_T}failed" >&6 6508echo "${ECHO_T}failed" >&6; }
5747else 6509else
5748 echo "$as_me:$LINENO: result: ok" >&5 6510 { echo "$as_me:$LINENO: result: ok" >&5
5749echo "${ECHO_T}ok" >&6 6511echo "${ECHO_T}ok" >&6; }
5750fi 6512fi
5751 6513
5752echo "$as_me:$LINENO: checking for objdir" >&5 6514{ echo "$as_me:$LINENO: checking for objdir" >&5
5753echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6515echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5754if test "${lt_cv_objdir+set}" = set; then 6516if test "${lt_cv_objdir+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6 6517 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else 6518else
5757 rm -f .libs 2>/dev/null 6519 rm -f .libs 2>/dev/null
5758mkdir .libs 2>/dev/null 6520mkdir .libs 2>/dev/null
5762 # MS-DOS does not allow filenames that begin with a dot. 6524 # MS-DOS does not allow filenames that begin with a dot.
5763 lt_cv_objdir=_libs 6525 lt_cv_objdir=_libs
5764fi 6526fi
5765rmdir .libs 2>/dev/null 6527rmdir .libs 2>/dev/null
5766fi 6528fi
5767echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6529{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5768echo "${ECHO_T}$lt_cv_objdir" >&6 6530echo "${ECHO_T}$lt_cv_objdir" >&6; }
5769objdir=$lt_cv_objdir 6531objdir=$lt_cv_objdir
5770 6532
5771 6533
5772 6534
5773 6535
5784 ;; 6546 ;;
5785esac 6547esac
5786 6548
5787# Sed substitution that helps us do robust quoting. It backslashifies 6549# Sed substitution that helps us do robust quoting. It backslashifies
5788# metacharacters that are still active within double-quoted strings. 6550# metacharacters that are still active within double-quoted strings.
5789Xsed='sed -e s/^X//' 6551Xsed='sed -e 1s/^X//'
5790sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5791 6553
5792# Same as above, but do not quote variable references. 6554# Same as above, but do not quote variable references.
5793double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5794 6556
5804 6566
5805# Global variables: 6567# Global variables:
5806default_ofile=libtool 6568default_ofile=libtool
5807can_build_shared=yes 6569can_build_shared=yes
5808 6570
5809# All known linkers require a `.a' archive for static linking (except M$VC, 6571# All known linkers require a `.a' archive for static linking (except MSVC,
5810# which needs '.lib'). 6572# which needs '.lib').
5811libext=a 6573libext=a
5812ltmain="$ac_aux_dir/ltmain.sh" 6574ltmain="$ac_aux_dir/ltmain.sh"
5813ofile="$default_ofile" 6575ofile="$default_ofile"
5814with_gnu_ld="$lt_cv_prog_gnu_ld" 6576with_gnu_ld="$lt_cv_prog_gnu_ld"
5815 6577
5816if test -n "$ac_tool_prefix"; then 6578if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}ar; ac_word=$2 6580set dummy ${ac_tool_prefix}ar; ac_word=$2
5819echo "$as_me:$LINENO: checking for $ac_word" >&5 6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821if test "${ac_cv_prog_AR+set}" = set; then 6583if test "${ac_cv_prog_AR+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6 6584 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else 6585else
5824 if test -n "$AR"; then 6586 if test -n "$AR"; then
5825 ac_cv_prog_AR="$AR" # Let the user override the test. 6587 ac_cv_prog_AR="$AR" # Let the user override the test.
5828for as_dir in $PATH 6590for as_dir in $PATH
5829do 6591do
5830 IFS=$as_save_IFS 6592 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=. 6593 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do 6594 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_AR="${ac_tool_prefix}ar" 6596 ac_cv_prog_AR="${ac_tool_prefix}ar"
5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2 6598 break 2
5837 fi 6599 fi
5838done 6600done
5839done 6601done
6602IFS=$as_save_IFS
5840 6603
5841fi 6604fi
5842fi 6605fi
5843AR=$ac_cv_prog_AR 6606AR=$ac_cv_prog_AR
5844if test -n "$AR"; then 6607if test -n "$AR"; then
5845 echo "$as_me:$LINENO: result: $AR" >&5 6608 { echo "$as_me:$LINENO: result: $AR" >&5
5846echo "${ECHO_T}$AR" >&6 6609echo "${ECHO_T}$AR" >&6; }
5847else 6610else
5848 echo "$as_me:$LINENO: result: no" >&5 6611 { echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6 6612echo "${ECHO_T}no" >&6; }
5850fi 6613fi
6614
5851 6615
5852fi 6616fi
5853if test -z "$ac_cv_prog_AR"; then 6617if test -z "$ac_cv_prog_AR"; then
5854 ac_ct_AR=$AR 6618 ac_ct_AR=$AR
5855 # Extract the first word of "ar", so it can be a program name with args. 6619 # Extract the first word of "ar", so it can be a program name with args.
5856set dummy ar; ac_word=$2 6620set dummy ar; ac_word=$2
5857echo "$as_me:$LINENO: checking for $ac_word" >&5 6621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5859if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6 6624 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else 6625else
5862 if test -n "$ac_ct_AR"; then 6626 if test -n "$ac_ct_AR"; then
5863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5866for as_dir in $PATH 6630for as_dir in $PATH
5867do 6631do
5868 IFS=$as_save_IFS 6632 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=. 6633 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do 6634 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_AR="ar" 6636 ac_cv_prog_ac_ct_AR="ar"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2 6638 break 2
5875 fi 6639 fi
5876done 6640done
5877done 6641done
6642IFS=$as_save_IFS
5878 6643
5879 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5880fi 6644fi
5881fi 6645fi
5882ac_ct_AR=$ac_cv_prog_ac_ct_AR 6646ac_ct_AR=$ac_cv_prog_ac_ct_AR
5883if test -n "$ac_ct_AR"; then 6647if test -n "$ac_ct_AR"; then
5884 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6648 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5885echo "${ECHO_T}$ac_ct_AR" >&6 6649echo "${ECHO_T}$ac_ct_AR" >&6; }
5886else 6650else
5887 echo "$as_me:$LINENO: result: no" >&5 6651 { echo "$as_me:$LINENO: result: no" >&5
5888echo "${ECHO_T}no" >&6 6652echo "${ECHO_T}no" >&6; }
5889fi 6653fi
5890 6654
6655 if test "x$ac_ct_AR" = x; then
6656 AR="false"
6657 else
6658 case $cross_compiling:$ac_tool_warned in
6659yes:)
6660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6661whose name does not start with the host triplet. If you think this
6662configuration is useful to you, please write to autoconf@gnu.org." >&5
6663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6664whose name does not start with the host triplet. If you think this
6665configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6666ac_tool_warned=yes ;;
6667esac
5891 AR=$ac_ct_AR 6668 AR=$ac_ct_AR
6669 fi
5892else 6670else
5893 AR="$ac_cv_prog_AR" 6671 AR="$ac_cv_prog_AR"
5894fi 6672fi
5895 6673
5896if test -n "$ac_tool_prefix"; then 6674if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5898set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6676set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5899echo "$as_me:$LINENO: checking for $ac_word" >&5 6677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901if test "${ac_cv_prog_RANLIB+set}" = set; then 6679if test "${ac_cv_prog_RANLIB+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6 6680 echo $ECHO_N "(cached) $ECHO_C" >&6
5903else 6681else
5904 if test -n "$RANLIB"; then 6682 if test -n "$RANLIB"; then
5905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908for as_dir in $PATH 6686for as_dir in $PATH
5909do 6687do
5910 IFS=$as_save_IFS 6688 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=. 6689 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do 6690 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2 6694 break 2
5917 fi 6695 fi
5918done 6696done
5919done 6697done
6698IFS=$as_save_IFS
5920 6699
5921fi 6700fi
5922fi 6701fi
5923RANLIB=$ac_cv_prog_RANLIB 6702RANLIB=$ac_cv_prog_RANLIB
5924if test -n "$RANLIB"; then 6703if test -n "$RANLIB"; then
5925 echo "$as_me:$LINENO: result: $RANLIB" >&5 6704 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5926echo "${ECHO_T}$RANLIB" >&6 6705echo "${ECHO_T}$RANLIB" >&6; }
5927else 6706else
5928 echo "$as_me:$LINENO: result: no" >&5 6707 { echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6 6708echo "${ECHO_T}no" >&6; }
5930fi 6709fi
6710
5931 6711
5932fi 6712fi
5933if test -z "$ac_cv_prog_RANLIB"; then 6713if test -z "$ac_cv_prog_RANLIB"; then
5934 ac_ct_RANLIB=$RANLIB 6714 ac_ct_RANLIB=$RANLIB
5935 # Extract the first word of "ranlib", so it can be a program name with args. 6715 # Extract the first word of "ranlib", so it can be a program name with args.
5936set dummy ranlib; ac_word=$2 6716set dummy ranlib; ac_word=$2
5937echo "$as_me:$LINENO: checking for $ac_word" >&5 6717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6 6720 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else 6721else
5942 if test -n "$ac_ct_RANLIB"; then 6722 if test -n "$ac_ct_RANLIB"; then
5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5946for as_dir in $PATH 6726for as_dir in $PATH
5947do 6727do
5948 IFS=$as_save_IFS 6728 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=. 6729 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do 6730 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_ac_ct_RANLIB="ranlib" 6732 ac_cv_prog_ac_ct_RANLIB="ranlib"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2 6734 break 2
5955 fi 6735 fi
5956done 6736done
5957done 6737done
6738IFS=$as_save_IFS
5958 6739
5959 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5960fi 6740fi
5961fi 6741fi
5962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5963if test -n "$ac_ct_RANLIB"; then 6743if test -n "$ac_ct_RANLIB"; then
5964 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6744 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5965echo "${ECHO_T}$ac_ct_RANLIB" >&6 6745echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5966else 6746else
5967 echo "$as_me:$LINENO: result: no" >&5 6747 { echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6 6748echo "${ECHO_T}no" >&6; }
5969fi 6749fi
5970 6750
6751 if test "x$ac_ct_RANLIB" = x; then
6752 RANLIB=":"
6753 else
6754 case $cross_compiling:$ac_tool_warned in
6755yes:)
6756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757whose name does not start with the host triplet. If you think this
6758configuration is useful to you, please write to autoconf@gnu.org." >&5
6759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760whose name does not start with the host triplet. If you think this
6761configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762ac_tool_warned=yes ;;
6763esac
5971 RANLIB=$ac_ct_RANLIB 6764 RANLIB=$ac_ct_RANLIB
6765 fi
5972else 6766else
5973 RANLIB="$ac_cv_prog_RANLIB" 6767 RANLIB="$ac_cv_prog_RANLIB"
5974fi 6768fi
5975 6769
5976if test -n "$ac_tool_prefix"; then 6770if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5978set dummy ${ac_tool_prefix}strip; ac_word=$2 6772set dummy ${ac_tool_prefix}strip; ac_word=$2
5979echo "$as_me:$LINENO: checking for $ac_word" >&5 6773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981if test "${ac_cv_prog_STRIP+set}" = set; then 6775if test "${ac_cv_prog_STRIP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6 6776 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else 6777else
5984 if test -n "$STRIP"; then 6778 if test -n "$STRIP"; then
5985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5988for as_dir in $PATH 6782for as_dir in $PATH
5989do 6783do
5990 IFS=$as_save_IFS 6784 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=. 6785 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do 6786 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2 6790 break 2
5997 fi 6791 fi
5998done 6792done
5999done 6793done
6794IFS=$as_save_IFS
6000 6795
6001fi 6796fi
6002fi 6797fi
6003STRIP=$ac_cv_prog_STRIP 6798STRIP=$ac_cv_prog_STRIP
6004if test -n "$STRIP"; then 6799if test -n "$STRIP"; then
6005 echo "$as_me:$LINENO: result: $STRIP" >&5 6800 { echo "$as_me:$LINENO: result: $STRIP" >&5
6006echo "${ECHO_T}$STRIP" >&6 6801echo "${ECHO_T}$STRIP" >&6; }
6007else 6802else
6008 echo "$as_me:$LINENO: result: no" >&5 6803 { echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6 6804echo "${ECHO_T}no" >&6; }
6010fi 6805fi
6806
6011 6807
6012fi 6808fi
6013if test -z "$ac_cv_prog_STRIP"; then 6809if test -z "$ac_cv_prog_STRIP"; then
6014 ac_ct_STRIP=$STRIP 6810 ac_ct_STRIP=$STRIP
6015 # Extract the first word of "strip", so it can be a program name with args. 6811 # Extract the first word of "strip", so it can be a program name with args.
6016set dummy strip; ac_word=$2 6812set dummy strip; ac_word=$2
6017echo "$as_me:$LINENO: checking for $ac_word" >&5 6813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6815if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6 6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else 6817else
6022 if test -n "$ac_ct_STRIP"; then 6818 if test -n "$ac_ct_STRIP"; then
6023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6026for as_dir in $PATH 6822for as_dir in $PATH
6027do 6823do
6028 IFS=$as_save_IFS 6824 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=. 6825 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do 6826 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_ac_ct_STRIP="strip" 6828 ac_cv_prog_ac_ct_STRIP="strip"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2 6830 break 2
6035 fi 6831 fi
6036done 6832done
6037done 6833done
6834IFS=$as_save_IFS
6038 6835
6039 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6040fi 6836fi
6041fi 6837fi
6042ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6043if test -n "$ac_ct_STRIP"; then 6839if test -n "$ac_ct_STRIP"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6840 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6045echo "${ECHO_T}$ac_ct_STRIP" >&6 6841echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6046else 6842else
6047 echo "$as_me:$LINENO: result: no" >&5 6843 { echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6 6844echo "${ECHO_T}no" >&6; }
6049fi 6845fi
6050 6846
6847 if test "x$ac_ct_STRIP" = x; then
6848 STRIP=":"
6849 else
6850 case $cross_compiling:$ac_tool_warned in
6851yes:)
6852{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853whose name does not start with the host triplet. If you think this
6854configuration is useful to you, please write to autoconf@gnu.org." >&5
6855echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856whose name does not start with the host triplet. If you think this
6857configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858ac_tool_warned=yes ;;
6859esac
6051 STRIP=$ac_ct_STRIP 6860 STRIP=$ac_ct_STRIP
6861 fi
6052else 6862else
6053 STRIP="$ac_cv_prog_STRIP" 6863 STRIP="$ac_cv_prog_STRIP"
6054fi 6864fi
6055 6865
6056 6866
6061test -z "$AR" && AR=ar 6871test -z "$AR" && AR=ar
6062test -z "$AR_FLAGS" && AR_FLAGS=cru 6872test -z "$AR_FLAGS" && AR_FLAGS=cru
6063test -z "$AS" && AS=as 6873test -z "$AS" && AS=as
6064test -z "$CC" && CC=cc 6874test -z "$CC" && CC=cc
6065test -z "$LTCC" && LTCC=$CC 6875test -z "$LTCC" && LTCC=$CC
6876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6066test -z "$DLLTOOL" && DLLTOOL=dlltool 6877test -z "$DLLTOOL" && DLLTOOL=dlltool
6067test -z "$LD" && LD=ld 6878test -z "$LD" && LD=ld
6068test -z "$LN_S" && LN_S="ln -s" 6879test -z "$LN_S" && LN_S="ln -s"
6069test -z "$MAGIC_CMD" && MAGIC_CMD=file 6880test -z "$MAGIC_CMD" && MAGIC_CMD=file
6070test -z "$NM" && NM=nm 6881test -z "$NM" && NM=nm
6080old_postuninstall_cmds= 6891old_postuninstall_cmds=
6081 6892
6082if test -n "$RANLIB"; then 6893if test -n "$RANLIB"; then
6083 case $host_os in 6894 case $host_os in
6084 openbsd*) 6895 openbsd*)
6085 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6086 ;; 6897 ;;
6087 *) 6898 *)
6088 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6089 ;; 6900 ;;
6090 esac 6901 esac
6091 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6902 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6092fi 6903fi
6904
6905for cc_temp in $compiler""; do
6906 case $cc_temp in
6907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6909 \-*) ;;
6910 *) break;;
6911 esac
6912done
6913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6914
6093 6915
6094# Only perform the check for file, if the check method requires it 6916# Only perform the check for file, if the check method requires it
6095case $deplibs_check_method in 6917case $deplibs_check_method in
6096file_magic*) 6918file_magic*)
6097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6919 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6098 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6920 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6099echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6921echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6100if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6922if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6 6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6102else 6924else
6103 case $MAGIC_CMD in 6925 case $MAGIC_CMD in
6104[\\/*] | ?:[\\/]*) 6926[\\/*] | ?:[\\/]*)
6114 if test -f $ac_dir/${ac_tool_prefix}file; then 6936 if test -f $ac_dir/${ac_tool_prefix}file; then
6115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6937 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6116 if test -n "$file_magic_test_file"; then 6938 if test -n "$file_magic_test_file"; then
6117 case $deplibs_check_method in 6939 case $deplibs_check_method in
6118 "file_magic "*) 6940 "file_magic "*)
6119 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6122 $EGREP "$file_magic_regex" > /dev/null; then 6944 $EGREP "$file_magic_regex" > /dev/null; then
6123 : 6945 :
6124 else 6946 else
6146esac 6968esac
6147fi 6969fi
6148 6970
6149MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6971MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6150if test -n "$MAGIC_CMD"; then 6972if test -n "$MAGIC_CMD"; then
6151 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6973 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6152echo "${ECHO_T}$MAGIC_CMD" >&6 6974echo "${ECHO_T}$MAGIC_CMD" >&6; }
6153else 6975else
6154 echo "$as_me:$LINENO: result: no" >&5 6976 { echo "$as_me:$LINENO: result: no" >&5
6155echo "${ECHO_T}no" >&6 6977echo "${ECHO_T}no" >&6; }
6156fi 6978fi
6157 6979
6158if test -z "$lt_cv_path_MAGIC_CMD"; then 6980if test -z "$lt_cv_path_MAGIC_CMD"; then
6159 if test -n "$ac_tool_prefix"; then 6981 if test -n "$ac_tool_prefix"; then
6160 echo "$as_me:$LINENO: checking for file" >&5 6982 { echo "$as_me:$LINENO: checking for file" >&5
6161echo $ECHO_N "checking for file... $ECHO_C" >&6 6983echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6984if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6 6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else 6986else
6165 case $MAGIC_CMD in 6987 case $MAGIC_CMD in
6166[\\/*] | ?:[\\/]*) 6988[\\/*] | ?:[\\/]*)
6176 if test -f $ac_dir/file; then 6998 if test -f $ac_dir/file; then
6177 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6999 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6178 if test -n "$file_magic_test_file"; then 7000 if test -n "$file_magic_test_file"; then
6179 case $deplibs_check_method in 7001 case $deplibs_check_method in
6180 "file_magic "*) 7002 "file_magic "*)
6181 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7003 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6184 $EGREP "$file_magic_regex" > /dev/null; then 7006 $EGREP "$file_magic_regex" > /dev/null; then
6185 : 7007 :
6186 else 7008 else
6208esac 7030esac
6209fi 7031fi
6210 7032
6211MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7033MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6212if test -n "$MAGIC_CMD"; then 7034if test -n "$MAGIC_CMD"; then
6213 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7035 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6214echo "${ECHO_T}$MAGIC_CMD" >&6 7036echo "${ECHO_T}$MAGIC_CMD" >&6; }
6215else 7037else
6216 echo "$as_me:$LINENO: result: no" >&5 7038 { echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6 7039echo "${ECHO_T}no" >&6; }
6218fi 7040fi
6219 7041
6220 else 7042 else
6221 MAGIC_CMD=: 7043 MAGIC_CMD=:
6222 fi 7044 fi
6227esac 7049esac
6228 7050
6229enable_dlopen=no 7051enable_dlopen=no
6230enable_win32_dll=no 7052enable_win32_dll=no
6231 7053
6232# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7054# Check whether --enable-libtool-lock was given.
6233if test "${enable_libtool_lock+set}" = set; then 7055if test "${enable_libtool_lock+set}" = set; then
6234 enableval="$enable_libtool_lock" 7056 enableval=$enable_libtool_lock;
6235
6236fi; 7057fi
7058
6237test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7059test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238 7060
6239 7061
6240# Check whether --with-pic or --without-pic was given. 7062# Check whether --with-pic was given.
6241if test "${with_pic+set}" = set; then 7063if test "${with_pic+set}" = set; then
6242 withval="$with_pic" 7064 withval=$with_pic; pic_mode="$withval"
6243 pic_mode="$withval"
6244else 7065else
6245 pic_mode=default 7066 pic_mode=default
6246fi; 7067fi
7068
6247test -z "$pic_mode" && pic_mode=default 7069test -z "$pic_mode" && pic_mode=default
6248 7070
6249# Use C for the default configuration in the libtool script 7071# Use C for the default configuration in the libtool script
6250tagname= 7072tagname=
6251lt_save_CC="$CC" 7073lt_save_CC="$CC"
6271 7093
6272 7094
6273# If no C compiler was specified, use CC. 7095# If no C compiler was specified, use CC.
6274LTCC=${LTCC-"$CC"} 7096LTCC=${LTCC-"$CC"}
6275 7097
7098# If no C compiler flags were specified, use CFLAGS.
7099LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7100
6276# Allow CC to be a program name with arguments. 7101# Allow CC to be a program name with arguments.
6277compiler=$CC 7102compiler=$CC
6278 7103
6279 7104
6280# 7105# save warnings/boilerplate of simple test code
6281# Check for any special shared library compilation flags. 7106ac_outfile=conftest.$ac_objext
6282# 7107printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6283lt_prog_cc_shlib= 7108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6284if test "$GCC" = no; then 7109_lt_compiler_boilerplate=`cat conftest.err`
6285 case $host_os in 7110$rm conftest*
6286 sco3.2v5*)
6287 lt_prog_cc_shlib='-belf'
6288 ;;
6289 esac
6290fi
6291if test -n "$lt_prog_cc_shlib"; then
6292 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6293echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6294 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6295 else
6296 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6297echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6298 lt_cv_prog_cc_can_build_shared=no
6299 fi
6300fi
6301 7111
6302 7112ac_outfile=conftest.$ac_objext
6303#
6304# Check to make sure the static flag actually works.
6305#
6306echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6307echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6308if test "${lt_prog_compiler_static_works+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 lt_prog_compiler_static_works=no
6312 save_LDFLAGS="$LDFLAGS"
6313 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6314 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7113printf "$lt_simple_link_test_code" >conftest.$ac_ext
6315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6316 # The compiler can only warn and ignore the option if not recognized 7115_lt_linker_boilerplate=`cat conftest.err`
6317 # So say no if there are warnings
6318 if test -s conftest.err; then
6319 # Append any errors to the config.log.
6320 cat conftest.err 1>&5
6321 else
6322 lt_prog_compiler_static_works=yes
6323 fi
6324 fi
6325 $rm conftest* 7116$rm conftest*
6326 LDFLAGS="$save_LDFLAGS"
6327
6328fi
6329echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6330echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6331
6332if test x"$lt_prog_compiler_static_works" = xyes; then
6333 :
6334else
6335 lt_prog_compiler_static=
6336fi
6337
6338 7117
6339 7118
6340 7119
6341lt_prog_compiler_no_builtin_flag= 7120lt_prog_compiler_no_builtin_flag=
6342 7121
6343if test "$GCC" = yes; then 7122if test "$GCC" = yes; then
6344 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7123 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6345 7124
6346 7125
6347echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7126{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6348echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7127echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6349if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7128if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6 7129 echo $ECHO_N "(cached) $ECHO_C" >&6
6351else 7130else
6352 lt_cv_prog_compiler_rtti_exceptions=no 7131 lt_cv_prog_compiler_rtti_exceptions=no
6353 ac_outfile=conftest.$ac_objext 7132 ac_outfile=conftest.$ac_objext
6357 # (2) before a word containing "conftest.", or (3) at the end. 7136 # (2) before a word containing "conftest.", or (3) at the end.
6358 # Note that $ac_compile itself does not contain backslashes and begins 7137 # Note that $ac_compile itself does not contain backslashes and begins
6359 # with a dollar sign (not a hyphen), so the echo should work correctly. 7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
6360 # The option is referenced via a variable to avoid confusing sed. 7139 # The option is referenced via a variable to avoid confusing sed.
6361 lt_compile=`echo "$ac_compile" | $SED \ 7140 lt_compile=`echo "$ac_compile" | $SED \
6362 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6364 -e 's:$: $lt_compiler_flag:'` 7143 -e 's:$: $lt_compiler_flag:'`
6365 (eval echo "\"\$as_me:6365: $lt_compile\"" >&5) 7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
6366 (eval "$lt_compile" 2>conftest.err) 7145 (eval "$lt_compile" 2>conftest.err)
6367 ac_status=$? 7146 ac_status=$?
6368 cat conftest.err >&5 7147 cat conftest.err >&5
6369 echo "$as_me:6369: \$? = $ac_status" >&5 7148 echo "$as_me:7148: \$? = $ac_status" >&5
6370 if (exit $ac_status) && test -s "$ac_outfile"; then 7149 if (exit $ac_status) && test -s "$ac_outfile"; then
6371 # The compiler can only warn and ignore the option if not recognized 7150 # The compiler can only warn and ignore the option if not recognized
6372 # So say no if there are warnings 7151 # So say no if there are warnings other than the usual output.
6373 if test ! -s conftest.err; then 7152 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6374 lt_cv_prog_compiler_rtti_exceptions=yes 7155 lt_cv_prog_compiler_rtti_exceptions=yes
6375 fi 7156 fi
6376 fi 7157 fi
6377 $rm conftest* 7158 $rm conftest*
6378 7159
6379fi 7160fi
6380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7161{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6381echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 7162echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6382 7163
6383if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7164if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6384 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7165 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6385else 7166else
6386 : 7167 :
6390 7171
6391lt_prog_compiler_wl= 7172lt_prog_compiler_wl=
6392lt_prog_compiler_pic= 7173lt_prog_compiler_pic=
6393lt_prog_compiler_static= 7174lt_prog_compiler_static=
6394 7175
6395echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7176{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 7177echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6397 7178
6398 if test "$GCC" = yes; then 7179 if test "$GCC" = yes; then
6399 lt_prog_compiler_wl='-Wl,' 7180 lt_prog_compiler_wl='-Wl,'
6400 lt_prog_compiler_static='-static' 7181 lt_prog_compiler_static='-static'
6401 7182
6429 # PIC is the default on this platform 7210 # PIC is the default on this platform
6430 # Common symbols not allowed in MH_DYLIB files 7211 # Common symbols not allowed in MH_DYLIB files
6431 lt_prog_compiler_pic='-fno-common' 7212 lt_prog_compiler_pic='-fno-common'
6432 ;; 7213 ;;
6433 7214
7215 interix3*)
7216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7217 # Instead, we relocate shared libraries at runtime.
7218 ;;
7219
6434 msdosdjgpp*) 7220 msdosdjgpp*)
6435 # Just because we use GCC doesn't mean we suddenly get shared libraries 7221 # Just because we use GCC doesn't mean we suddenly get shared libraries
6436 # on systems that don't support them. 7222 # on systems that don't support them.
6437 lt_prog_compiler_can_build_shared=no 7223 lt_prog_compiler_can_build_shared=no
6438 enable_shared=no 7224 enable_shared=no
6445 ;; 7231 ;;
6446 7232
6447 hpux*) 7233 hpux*)
6448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6449 # not for PA HP-UX. 7235 # not for PA HP-UX.
6450 case "$host_cpu" in 7236 case $host_cpu in
6451 hppa*64*|ia64*) 7237 hppa*64*|ia64*)
6452 # +Z the default 7238 # +Z the default
6453 ;; 7239 ;;
6454 *) 7240 *)
6455 lt_prog_compiler_pic='-fPIC' 7241 lt_prog_compiler_pic='-fPIC'
6471 lt_prog_compiler_static='-Bstatic' 7257 lt_prog_compiler_static='-Bstatic'
6472 else 7258 else
6473 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6474 fi 7260 fi
6475 ;; 7261 ;;
7262 darwin*)
7263 # PIC is the default on this platform
7264 # Common symbols not allowed in MH_DYLIB files
7265 case $cc_basename in
7266 xlc*)
7267 lt_prog_compiler_pic='-qnocommon'
7268 lt_prog_compiler_wl='-Wl,'
7269 ;;
7270 esac
7271 ;;
6476 7272
6477 mingw* | pw32* | os2*) 7273 mingw* | pw32* | os2*)
6478 # This hack is so that the source file can tell whether it is being 7274 # This hack is so that the source file can tell whether it is being
6479 # built for inclusion in a dll (and should export symbols for example). 7275 # built for inclusion in a dll (and should export symbols for example).
6480 lt_prog_compiler_pic='-DDLL_EXPORT' 7276 lt_prog_compiler_pic='-DDLL_EXPORT'
6482 7278
6483 hpux9* | hpux10* | hpux11*) 7279 hpux9* | hpux10* | hpux11*)
6484 lt_prog_compiler_wl='-Wl,' 7280 lt_prog_compiler_wl='-Wl,'
6485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6486 # not for PA HP-UX. 7282 # not for PA HP-UX.
6487 case "$host_cpu" in 7283 case $host_cpu in
6488 hppa*64*|ia64*) 7284 hppa*64*|ia64*)
6489 # +Z the default 7285 # +Z the default
6490 ;; 7286 ;;
6491 *) 7287 *)
6492 lt_prog_compiler_pic='+Z' 7288 lt_prog_compiler_pic='+Z'
6505 newsos6) 7301 newsos6)
6506 lt_prog_compiler_pic='-KPIC' 7302 lt_prog_compiler_pic='-KPIC'
6507 lt_prog_compiler_static='-Bstatic' 7303 lt_prog_compiler_static='-Bstatic'
6508 ;; 7304 ;;
6509 7305
6510 linux*) 7306 linux* | k*bsd*-gnu)
6511 case $CC in 7307 case $cc_basename in
6512 icc* | ecc*) 7308 icc* | ecc*)
6513 lt_prog_compiler_wl='-Wl,' 7309 lt_prog_compiler_wl='-Wl,'
6514 lt_prog_compiler_pic='-KPIC' 7310 lt_prog_compiler_pic='-KPIC'
6515 lt_prog_compiler_static='-static' 7311 lt_prog_compiler_static='-static'
7312 ;;
7313 pgcc* | pgf77* | pgf90* | pgf95*)
7314 # Portland Group compilers (*not* the Pentium gcc compiler,
7315 # which looks to be a dead project)
7316 lt_prog_compiler_wl='-Wl,'
7317 lt_prog_compiler_pic='-fpic'
7318 lt_prog_compiler_static='-Bstatic'
6516 ;; 7319 ;;
6517 ccc*) 7320 ccc*)
6518 lt_prog_compiler_wl='-Wl,' 7321 lt_prog_compiler_wl='-Wl,'
6519 # All Alpha code is PIC. 7322 # All Alpha code is PIC.
6520 lt_prog_compiler_static='-non_shared' 7323 lt_prog_compiler_static='-non_shared'
6526 lt_prog_compiler_wl='-Wl,' 7329 lt_prog_compiler_wl='-Wl,'
6527 # All OSF/1 code is PIC. 7330 # All OSF/1 code is PIC.
6528 lt_prog_compiler_static='-non_shared' 7331 lt_prog_compiler_static='-non_shared'
6529 ;; 7332 ;;
6530 7333
6531 sco3.2v5*)
6532 lt_prog_compiler_pic='-Kpic'
6533 lt_prog_compiler_static='-dn'
6534 ;;
6535
6536 solaris*) 7334 solaris*)
6537 lt_prog_compiler_wl='-Wl,'
6538 lt_prog_compiler_pic='-KPIC' 7335 lt_prog_compiler_pic='-KPIC'
6539 lt_prog_compiler_static='-Bstatic' 7336 lt_prog_compiler_static='-Bstatic'
7337 case $cc_basename in
7338 f77* | f90* | f95*)
7339 lt_prog_compiler_wl='-Qoption ld ';;
7340 *)
7341 lt_prog_compiler_wl='-Wl,';;
7342 esac
6540 ;; 7343 ;;
6541 7344
6542 sunos4*) 7345 sunos4*)
6543 lt_prog_compiler_wl='-Qoption ld ' 7346 lt_prog_compiler_wl='-Qoption ld '
6544 lt_prog_compiler_pic='-PIC' 7347 lt_prog_compiler_pic='-PIC'
6545 lt_prog_compiler_static='-Bstatic' 7348 lt_prog_compiler_static='-Bstatic'
6546 ;; 7349 ;;
6547 7350
6548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7351 sysv4 | sysv4.2uw2* | sysv4.3*)
6549 lt_prog_compiler_wl='-Wl,' 7352 lt_prog_compiler_wl='-Wl,'
6550 lt_prog_compiler_pic='-KPIC' 7353 lt_prog_compiler_pic='-KPIC'
6551 lt_prog_compiler_static='-Bstatic' 7354 lt_prog_compiler_static='-Bstatic'
6552 ;; 7355 ;;
6553 7356
6556 lt_prog_compiler_pic='-Kconform_pic' 7359 lt_prog_compiler_pic='-Kconform_pic'
6557 lt_prog_compiler_static='-Bstatic' 7360 lt_prog_compiler_static='-Bstatic'
6558 fi 7361 fi
6559 ;; 7362 ;;
6560 7363
7364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='-KPIC'
7367 lt_prog_compiler_static='-Bstatic'
7368 ;;
7369
7370 unicos*)
7371 lt_prog_compiler_wl='-Wl,'
7372 lt_prog_compiler_can_build_shared=no
7373 ;;
7374
6561 uts4*) 7375 uts4*)
6562 lt_prog_compiler_pic='-pic' 7376 lt_prog_compiler_pic='-pic'
6563 lt_prog_compiler_static='-Bstatic' 7377 lt_prog_compiler_static='-Bstatic'
6564 ;; 7378 ;;
6565 7379
6567 lt_prog_compiler_can_build_shared=no 7381 lt_prog_compiler_can_build_shared=no
6568 ;; 7382 ;;
6569 esac 7383 esac
6570 fi 7384 fi
6571 7385
6572echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7386{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6573echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7387echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6574 7388
6575# 7389#
6576# Check to make sure the PIC flag actually works. 7390# Check to make sure the PIC flag actually works.
6577# 7391#
6578if test -n "$lt_prog_compiler_pic"; then 7392if test -n "$lt_prog_compiler_pic"; then
6579 7393
6580echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7394{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6581echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7395echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6582if test "${lt_prog_compiler_pic_works+set}" = set; then 7396if test "${lt_prog_compiler_pic_works+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6 7397 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else 7398else
6585 lt_prog_compiler_pic_works=no 7399 lt_prog_compiler_pic_works=no
6586 ac_outfile=conftest.$ac_objext 7400 ac_outfile=conftest.$ac_objext
6590 # (2) before a word containing "conftest.", or (3) at the end. 7404 # (2) before a word containing "conftest.", or (3) at the end.
6591 # Note that $ac_compile itself does not contain backslashes and begins 7405 # Note that $ac_compile itself does not contain backslashes and begins
6592 # with a dollar sign (not a hyphen), so the echo should work correctly. 7406 # with a dollar sign (not a hyphen), so the echo should work correctly.
6593 # The option is referenced via a variable to avoid confusing sed. 7407 # The option is referenced via a variable to avoid confusing sed.
6594 lt_compile=`echo "$ac_compile" | $SED \ 7408 lt_compile=`echo "$ac_compile" | $SED \
6595 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6597 -e 's:$: $lt_compiler_flag:'` 7411 -e 's:$: $lt_compiler_flag:'`
6598 (eval echo "\"\$as_me:6598: $lt_compile\"" >&5) 7412 (eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
6599 (eval "$lt_compile" 2>conftest.err) 7413 (eval "$lt_compile" 2>conftest.err)
6600 ac_status=$? 7414 ac_status=$?
6601 cat conftest.err >&5 7415 cat conftest.err >&5
6602 echo "$as_me:6602: \$? = $ac_status" >&5 7416 echo "$as_me:7416: \$? = $ac_status" >&5
6603 if (exit $ac_status) && test -s "$ac_outfile"; then 7417 if (exit $ac_status) && test -s "$ac_outfile"; then
6604 # The compiler can only warn and ignore the option if not recognized 7418 # The compiler can only warn and ignore the option if not recognized
6605 # So say no if there are warnings 7419 # So say no if there are warnings other than the usual output.
6606 if test ! -s conftest.err; then 7420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6607 lt_prog_compiler_pic_works=yes 7423 lt_prog_compiler_pic_works=yes
6608 fi 7424 fi
6609 fi 7425 fi
6610 $rm conftest* 7426 $rm conftest*
6611 7427
6612fi 7428fi
6613echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7429{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6614echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7430echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6615 7431
6616if test x"$lt_prog_compiler_pic_works" = xyes; then 7432if test x"$lt_prog_compiler_pic_works" = xyes; then
6617 case $lt_prog_compiler_pic in 7433 case $lt_prog_compiler_pic in
6618 "" | " "*) ;; 7434 "" | " "*) ;;
6619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7435 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6622 lt_prog_compiler_pic= 7438 lt_prog_compiler_pic=
6623 lt_prog_compiler_can_build_shared=no 7439 lt_prog_compiler_can_build_shared=no
6624fi 7440fi
6625 7441
6626fi 7442fi
6627case "$host_os" in 7443case $host_os in
6628 # For platforms which do not support PIC, -DPIC is meaningless: 7444 # For platforms which do not support PIC, -DPIC is meaningless:
6629 *djgpp*) 7445 *djgpp*)
6630 lt_prog_compiler_pic= 7446 lt_prog_compiler_pic=
6631 ;; 7447 ;;
6632 *) 7448 *)
6633 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7449 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6634 ;; 7450 ;;
6635esac 7451esac
6636 7452
7453#
7454# Check to make sure the static flag actually works.
7455#
7456wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7457{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7458echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7459if test "${lt_prog_compiler_static_works+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 lt_prog_compiler_static_works=no
7463 save_LDFLAGS="$LDFLAGS"
7464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7465 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7467 # The linker can only warn and ignore the option if not recognized
7468 # So say no if there are warnings
7469 if test -s conftest.err; then
7470 # Append any errors to the config.log.
7471 cat conftest.err 1>&5
7472 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474 if diff conftest.exp conftest.er2 >/dev/null; then
7475 lt_prog_compiler_static_works=yes
7476 fi
7477 else
7478 lt_prog_compiler_static_works=yes
7479 fi
7480 fi
7481 $rm conftest*
7482 LDFLAGS="$save_LDFLAGS"
7483
7484fi
7485{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7486echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7487
7488if test x"$lt_prog_compiler_static_works" = xyes; then
7489 :
7490else
7491 lt_prog_compiler_static=
7492fi
7493
7494
6637echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7495{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6638echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7496echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6639if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7497if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6 7498 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else 7499else
6642 lt_cv_prog_compiler_c_o=no 7500 lt_cv_prog_compiler_c_o=no
6643 $rm -r conftest 2>/dev/null 7501 $rm -r conftest 2>/dev/null
6650 # Insert the option either (1) after the last *FLAGS variable, or 7508 # Insert the option either (1) after the last *FLAGS variable, or
6651 # (2) before a word containing "conftest.", or (3) at the end. 7509 # (2) before a word containing "conftest.", or (3) at the end.
6652 # Note that $ac_compile itself does not contain backslashes and begins 7510 # Note that $ac_compile itself does not contain backslashes and begins
6653 # with a dollar sign (not a hyphen), so the echo should work correctly. 7511 # with a dollar sign (not a hyphen), so the echo should work correctly.
6654 lt_compile=`echo "$ac_compile" | $SED \ 7512 lt_compile=`echo "$ac_compile" | $SED \
6655 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6657 -e 's:$: $lt_compiler_flag:'` 7515 -e 's:$: $lt_compiler_flag:'`
6658 (eval echo "\"\$as_me:6658: $lt_compile\"" >&5) 7516 (eval echo "\"\$as_me:7516: $lt_compile\"" >&5)
6659 (eval "$lt_compile" 2>out/conftest.err) 7517 (eval "$lt_compile" 2>out/conftest.err)
6660 ac_status=$? 7518 ac_status=$?
6661 cat out/conftest.err >&5 7519 cat out/conftest.err >&5
6662 echo "$as_me:6662: \$? = $ac_status" >&5 7520 echo "$as_me:7520: \$? = $ac_status" >&5
6663 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6664 then 7522 then
6665 # The compiler can only warn and ignore the option if not recognized 7523 # The compiler can only warn and ignore the option if not recognized
6666 # So say no if there are warnings 7524 # So say no if there are warnings
6667 if test ! -s out/conftest.err; then 7525 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6668 lt_cv_prog_compiler_c_o=yes 7528 lt_cv_prog_compiler_c_o=yes
6669 fi 7529 fi
6670 fi 7530 fi
6671 chmod u+w . 7531 chmod u+w . 2>&5
6672 $rm conftest* 7532 $rm conftest*
6673 # SGI C++ compiler will create directory out/ii_files/ for 7533 # SGI C++ compiler will create directory out/ii_files/ for
6674 # template instantiation 7534 # template instantiation
6675 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7535 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6676 $rm out/* && rmdir out 7536 $rm out/* && rmdir out
6677 cd .. 7537 cd ..
6678 rmdir conftest 7538 rmdir conftest
6679 $rm conftest* 7539 $rm conftest*
6680 7540
6681fi 7541fi
6682echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7542{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6683echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7543echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6684 7544
6685 7545
6686hard_links="nottested" 7546hard_links="nottested"
6687if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7547if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6688 # do not overwrite the value of need_locks provided by the user 7548 # do not overwrite the value of need_locks provided by the user
6689 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7549 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6690echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7550echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6691 hard_links=yes 7551 hard_links=yes
6692 $rm conftest* 7552 $rm conftest*
6693 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6694 touch conftest.a 7554 touch conftest.a
6695 ln conftest.a conftest.b 2>&5 || hard_links=no 7555 ln conftest.a conftest.b 2>&5 || hard_links=no
6696 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6697 echo "$as_me:$LINENO: result: $hard_links" >&5 7557 { echo "$as_me:$LINENO: result: $hard_links" >&5
6698echo "${ECHO_T}$hard_links" >&6 7558echo "${ECHO_T}$hard_links" >&6; }
6699 if test "$hard_links" = no; then 7559 if test "$hard_links" = no; then
6700 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7560 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6701echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7561echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6702 need_locks=warn 7562 need_locks=warn
6703 fi 7563 fi
6704else 7564else
6705 need_locks=no 7565 need_locks=no
6706fi 7566fi
6707 7567
6708echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7568{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6709echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7569echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6710 7570
6711 runpath_var= 7571 runpath_var=
6712 allow_undefined_flag= 7572 allow_undefined_flag=
6713 enable_shared_with_static_runtimes=no 7573 enable_shared_with_static_runtimes=no
6714 archive_cmds= 7574 archive_cmds=
6742 # platforms (ab)use it in PIC code, but their linkers get confused if 7602 # platforms (ab)use it in PIC code, but their linkers get confused if
6743 # the symbol is explicitly referenced. Since portable code cannot 7603 # the symbol is explicitly referenced. Since portable code cannot
6744 # rely on this symbol name, it's probably fine to never include it in 7604 # rely on this symbol name, it's probably fine to never include it in
6745 # preloaded symbol tables. 7605 # preloaded symbol tables.
6746 extract_expsyms_cmds= 7606 extract_expsyms_cmds=
7607 # Just being paranoid about ensuring that cc_basename is set.
7608 for cc_temp in $compiler""; do
7609 case $cc_temp in
7610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7612 \-*) ;;
7613 *) break;;
7614 esac
7615done
7616cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6747 7617
6748 case $host_os in 7618 case $host_os in
6749 cygwin* | mingw* | pw32*) 7619 cygwin* | mingw* | pw32*)
6750 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7620 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6751 # When not using gcc, we currently assume that we are using 7621 # When not using gcc, we currently assume that we are using
6752 # Microsoft Visual C++. 7622 # Microsoft Visual C++.
6753 if test "$GCC" != yes; then 7623 if test "$GCC" != yes; then
6754 with_gnu_ld=no 7624 with_gnu_ld=no
6755 fi 7625 fi
6756 ;; 7626 ;;
7627 interix*)
7628 # we just hope/assume this is gcc and not c89 (= MSVC++)
7629 with_gnu_ld=yes
7630 ;;
6757 openbsd*) 7631 openbsd*)
6758 with_gnu_ld=no 7632 with_gnu_ld=no
6759 ;; 7633 ;;
6760 esac 7634 esac
6761 7635
6762 ld_shlibs=yes 7636 ld_shlibs=yes
6763 if test "$with_gnu_ld" = yes; then 7637 if test "$with_gnu_ld" = yes; then
6764 # If archive_cmds runs LD, not CC, wlarc should be empty 7638 # If archive_cmds runs LD, not CC, wlarc should be empty
6765 wlarc='${wl}' 7639 wlarc='${wl}'
7640
7641 # Set some defaults for GNU ld with shared library support. These
7642 # are reset later if shared libraries are not supported. Putting them
7643 # here allows them to be overridden if necessary.
7644 runpath_var=LD_RUN_PATH
7645 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7646 export_dynamic_flag_spec='${wl}--export-dynamic'
7647 # ancient GNU ld didn't support --whole-archive et. al.
7648 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7650 else
7651 whole_archive_flag_spec=
7652 fi
7653 supports_anon_versioning=no
7654 case `$LD -v 2>/dev/null` in
7655 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7658 *\ 2.11.*) ;; # other 2.11 versions
7659 *) supports_anon_versioning=yes ;;
7660 esac
6766 7661
6767 # See if GNU ld supports shared libraries. 7662 # See if GNU ld supports shared libraries.
6768 case $host_os in 7663 case $host_os in
6769 aix3* | aix4* | aix5*) 7664 aix3* | aix4* | aix5*)
6770 # On AIX/PPC, the GNU linker is very broken 7665 # On AIX/PPC, the GNU linker is very broken
6812 # as there is no search path for DLLs. 7707 # as there is no search path for DLLs.
6813 hardcode_libdir_flag_spec='-L$libdir' 7708 hardcode_libdir_flag_spec='-L$libdir'
6814 allow_undefined_flag=unsupported 7709 allow_undefined_flag=unsupported
6815 always_export_symbols=no 7710 always_export_symbols=no
6816 enable_shared_with_static_runtimes=yes 7711 enable_shared_with_static_runtimes=yes
6817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6818 7713
6819 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7714 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6821 # If the export-symbols file already is a .def file (1st line 7716 # If the export-symbols file already is a .def file (1st line
6822 # is EXPORTS), use it as is; otherwise, prepend... 7717 # is EXPORTS), use it as is; otherwise, prepend...
6823 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7718 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6824 cp $export_symbols $output_objdir/$soname.def; 7719 cp $export_symbols $output_objdir/$soname.def;
6825 else 7720 else
6826 echo EXPORTS > $output_objdir/$soname.def; 7721 echo EXPORTS > $output_objdir/$soname.def;
6827 cat $export_symbols >> $output_objdir/$soname.def; 7722 cat $export_symbols >> $output_objdir/$soname.def;
6828 fi~ 7723 fi~
6829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7724 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6830 else 7725 else
6831 ld_shlibs=no 7726 ld_shlibs=no
6832 fi 7727 fi
6833 ;; 7728 ;;
6834 7729
6835 netbsd*) 7730 interix3*)
7731 hardcode_direct=no
7732 hardcode_shlibpath_var=no
7733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7734 export_dynamic_flag_spec='${wl}-E'
7735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7736 # Instead, shared libraries are loaded at an image base (0x10000000 by
7737 # default) and relocated if they conflict, which is a slow very memory
7738 # consuming and fragmenting process. To avoid this, we pick a random,
7739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7742 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'
7743 ;;
7744
7745 linux* | k*bsd*-gnu)
7746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7747 tmp_addflag=
7748 case $cc_basename,$host_cpu in
7749 pgcc*) # Portland Group C compiler
7750 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'
7751 tmp_addflag=' $pic_flag'
7752 ;;
7753 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7754 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'
7755 tmp_addflag=' $pic_flag -Mnomain' ;;
7756 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7757 tmp_addflag=' -i_dynamic' ;;
7758 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7759 tmp_addflag=' -i_dynamic -nofor_main' ;;
7760 ifc* | ifort*) # Intel Fortran compiler
7761 tmp_addflag=' -nofor_main' ;;
7762 esac
7763 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7764
7765 if test $supports_anon_versioning = yes; then
7766 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7768 $echo "local: *; };" >> $output_objdir/$libname.ver~
7769 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7770 fi
7771 link_all_deplibs=no
7772 else
7773 ld_shlibs=no
7774 fi
7775 ;;
7776
7777 netbsd* | netbsdelf*-gnu)
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6838 wlarc= 7780 wlarc=
6839 else 7781 else
6840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6842 fi 7784 fi
6843 ;; 7785 ;;
6844 7786
6845 solaris* | sysv5*) 7787 solaris*)
6846 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7788 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6847 ld_shlibs=no 7789 ld_shlibs=no
6848 cat <<EOF 1>&2 7790 cat <<EOF 1>&2
6849 7791
6850*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6861 else 7803 else
6862 ld_shlibs=no 7804 ld_shlibs=no
6863 fi 7805 fi
6864 ;; 7806 ;;
6865 7807
7808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7809 case `$LD -v 2>&1` in
7810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7811 ld_shlibs=no
7812 cat <<_LT_EOF 1>&2
7813
7814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7815*** reliably create shared libraries on SCO systems. Therefore, libtool
7816*** is disabling shared libraries support. We urge you to upgrade GNU
7817*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7818*** your PATH or compiler configuration so that the native linker is
7819*** used, and then restart.
7820
7821_LT_EOF
7822 ;;
7823 *)
7824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7825 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7828 else
7829 ld_shlibs=no
7830 fi
7831 ;;
7832 esac
7833 ;;
7834
6866 sunos4*) 7835 sunos4*)
6867 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6868 wlarc= 7837 wlarc=
6869 hardcode_direct=yes 7838 hardcode_direct=yes
6870 hardcode_shlibpath_var=no 7839 hardcode_shlibpath_var=no
6871 ;; 7840 ;;
6872
6873 linux*)
6874 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6875 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6876 archive_cmds="$tmp_archive_cmds"
6877 supports_anon_versioning=no
6878 case `$LD -v 2>/dev/null` in
6879 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6880 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6881 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6882 *\ 2.11.*) ;; # other 2.11 versions
6883 *) supports_anon_versioning=yes ;;
6884 esac
6885 if test $supports_anon_versioning = yes; then
6886 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6887cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6888$echo "local: *; };" >> $output_objdir/$libname.ver~
6889 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6890 else
6891 archive_expsym_cmds="$tmp_archive_cmds"
6892 fi
6893 else
6894 ld_shlibs=no
6895 fi
6896 ;;
6897 7841
6898 *) 7842 *)
6899 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6903 ld_shlibs=no 7847 ld_shlibs=no
6904 fi 7848 fi
6905 ;; 7849 ;;
6906 esac 7850 esac
6907 7851
6908 if test "$ld_shlibs" = yes; then 7852 if test "$ld_shlibs" = no; then
6909 runpath_var=LD_RUN_PATH 7853 runpath_var=
6910 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7854 hardcode_libdir_flag_spec=
6911 export_dynamic_flag_spec='${wl}--export-dynamic' 7855 export_dynamic_flag_spec=
6912 # ancient GNU ld didn't support --whole-archive et. al.
6913 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6915 else
6916 whole_archive_flag_spec= 7856 whole_archive_flag_spec=
6917 fi
6918 fi 7857 fi
6919 else 7858 else
6920 # PORTME fill in a description of your system's linker (not GNU ld) 7859 # PORTME fill in a description of your system's linker (not GNU ld)
6921 case $host_os in 7860 case $host_os in
6922 aix3*) 7861 aix3*)
6924 always_export_symbols=yes 7863 always_export_symbols=yes
6925 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' 7864 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'
6926 # Note: this linker hardcodes the directories in LIBPATH if there 7865 # Note: this linker hardcodes the directories in LIBPATH if there
6927 # are no directories specified by -L. 7866 # are no directories specified by -L.
6928 hardcode_minus_L=yes 7867 hardcode_minus_L=yes
6929 if test "$GCC" = yes && test -z "$link_static_flag"; then 7868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6930 # Neither direct hardcoding nor static linking is supported with a 7869 # Neither direct hardcoding nor static linking is supported with a
6931 # broken collect2. 7870 # broken collect2.
6932 hardcode_direct=unsupported 7871 hardcode_direct=unsupported
6933 fi 7872 fi
6934 ;; 7873 ;;
6958 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6959 aix_use_runtimelinking=yes 7898 aix_use_runtimelinking=yes
6960 break 7899 break
6961 fi 7900 fi
6962 done 7901 done
7902 ;;
6963 esac 7903 esac
6964 7904
6965 exp_sym_flag='-bexport' 7905 exp_sym_flag='-bexport'
6966 no_entry_flag='-bnoentry' 7906 no_entry_flag='-bnoentry'
6967 fi 7907 fi
6976 hardcode_direct=yes 7916 hardcode_direct=yes
6977 hardcode_libdir_separator=':' 7917 hardcode_libdir_separator=':'
6978 link_all_deplibs=yes 7918 link_all_deplibs=yes
6979 7919
6980 if test "$GCC" = yes; then 7920 if test "$GCC" = yes; then
6981 case $host_os in aix4.012|aix4.012.*) 7921 case $host_os in aix4.[012]|aix4.[012].*)
6982 # We only want to do this on AIX 4.2 and lower, the check 7922 # We only want to do this on AIX 4.2 and lower, the check
6983 # below for broken collect2 doesn't work under 4.3+ 7923 # below for broken collect2 doesn't work under 4.3+
6984 collect2name=`${CC} -print-prog-name=collect2` 7924 collect2name=`${CC} -print-prog-name=collect2`
6985 if test -f "$collect2name" && \ 7925 if test -f "$collect2name" && \
6986 strings "$collect2name" | grep resolve_lib_name >/dev/null 7926 strings "$collect2name" | grep resolve_lib_name >/dev/null
6995 # to unsupported forces relinking 7935 # to unsupported forces relinking
6996 hardcode_minus_L=yes 7936 hardcode_minus_L=yes
6997 hardcode_libdir_flag_spec='-L$libdir' 7937 hardcode_libdir_flag_spec='-L$libdir'
6998 hardcode_libdir_separator= 7938 hardcode_libdir_separator=
6999 fi 7939 fi
7940 ;;
7000 esac 7941 esac
7001 shared_flag='-shared' 7942 shared_flag='-shared'
7943 if test "$aix_use_runtimelinking" = yes; then
7944 shared_flag="$shared_flag "'${wl}-G'
7945 fi
7002 else 7946 else
7003 # not using gcc 7947 # not using gcc
7004 if test "$host_cpu" = ia64; then 7948 if test "$host_cpu" = ia64; then
7005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7006 # chokes on -Wl,-G. The following line is correct: 7950 # chokes on -Wl,-G. The following line is correct:
7007 shared_flag='-G' 7951 shared_flag='-G'
7008 else 7952 else
7009 if test "$aix_use_runtimelinking" = yes; then 7953 if test "$aix_use_runtimelinking" = yes; then
7010 shared_flag='${wl}-G' 7954 shared_flag='${wl}-G'
7011 else 7955 else
7012 shared_flag='${wl}-bM:SRE' 7956 shared_flag='${wl}-bM:SRE'
7013 fi 7957 fi
7014 fi 7958 fi
7015 fi 7959 fi
7016 7960
7017 # It seems that -bexpall does not export symbols beginning with 7961 # It seems that -bexpall does not export symbols beginning with
7018 # underscore (_), so it is better to generate a list of symbols to export. 7962 # underscore (_), so it is better to generate a list of symbols to export.
7036 ; 7980 ;
7037 return 0; 7981 return 0;
7038} 7982}
7039_ACEOF 7983_ACEOF
7040rm -f conftest.$ac_objext conftest$ac_exeext 7984rm -f conftest.$ac_objext conftest$ac_exeext
7985if { (ac_try="$ac_link"
7986case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
7041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval $ac_link) 2>conftest.er1 7991 (eval "$ac_link") 2>conftest.er1
7043 ac_status=$? 7992 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err 7993 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1 7994 rm -f conftest.er1
7046 cat conftest.err >&5 7995 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && 7997 (exit $ac_status); } && {
7049 { ac_try='test -z "$ac_c_werror_flag" 7998 test -z "$ac_c_werror_flag" ||
7050 || test ! -s conftest.err' 7999 test ! -s conftest.err
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8000 } && test -s conftest$ac_exeext &&
7052 (eval $ac_try) 2>&5 8001 $as_test_x conftest$ac_exeext; then
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 8002
7063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8003aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7064}'` 8004}'`
7065# Check for a 64-bit object if we didn't find anything. 8005# Check for a 64-bit object if we didn't find anything.
7066if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8006if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7067}'`; fi 8007}'`; fi
7068else 8008else
7069 echo "$as_me: failed program was:" >&5 8009 echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5 8010sed 's/^/| /' conftest.$ac_ext >&5
7071 8011
8012
7072fi 8013fi
7073rm -f conftest.err conftest.$ac_objext \ 8014
8015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7074 conftest$ac_exeext conftest.$ac_ext 8016 conftest$ac_exeext conftest.$ac_ext
7075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7076 8018
7077 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7078 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8020 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"
7079 else 8021 else
7080 if test "$host_cpu" = ia64; then 8022 if test "$host_cpu" = ia64; then
7081 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8023 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7082 allow_undefined_flag="-z nodefs" 8024 allow_undefined_flag="-z nodefs"
7083 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 8025 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"
7084 else 8026 else
7085 # Determine the default libpath from the value encoded in an empty executable. 8027 # Determine the default libpath from the value encoded in an empty executable.
7086 cat >conftest.$ac_ext <<_ACEOF 8028 cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h. */ 8029/* confdefs.h. */
7088_ACEOF 8030_ACEOF
7097 ; 8039 ;
7098 return 0; 8040 return 0;
7099} 8041}
7100_ACEOF 8042_ACEOF
7101rm -f conftest.$ac_objext conftest$ac_exeext 8043rm -f conftest.$ac_objext conftest$ac_exeext
8044if { (ac_try="$ac_link"
8045case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048esac
7102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval $ac_link) 2>conftest.er1 8050 (eval "$ac_link") 2>conftest.er1
7104 ac_status=$? 8051 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err 8052 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1 8053 rm -f conftest.er1
7107 cat conftest.err >&5 8054 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && 8056 (exit $ac_status); } && {
7110 { ac_try='test -z "$ac_c_werror_flag" 8057 test -z "$ac_c_werror_flag" ||
7111 || test ! -s conftest.err' 8058 test ! -s conftest.err
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8059 } && test -s conftest$ac_exeext &&
7113 (eval $ac_try) 2>&5 8060 $as_test_x conftest$ac_exeext; then
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; } &&
7117 { ac_try='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 8061
7124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7125}'` 8063}'`
7126# Check for a 64-bit object if we didn't find anything. 8064# Check for a 64-bit object if we didn't find anything.
7127if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8065if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7128}'`; fi 8066}'`; fi
7129else 8067else
7130 echo "$as_me: failed program was:" >&5 8068 echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5 8069sed 's/^/| /' conftest.$ac_ext >&5
7132 8070
8071
7133fi 8072fi
7134rm -f conftest.err conftest.$ac_objext \ 8073
8074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7135 conftest$ac_exeext conftest.$ac_ext 8075 conftest$ac_exeext conftest.$ac_ext
7136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7137 8077
7138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7139 # Warning - without using the other run time loading flags, 8079 # Warning - without using the other run time loading flags,
7140 # -berok will link without error, but may produce a broken library. 8080 # -berok will link without error, but may produce a broken library.
7141 no_undefined_flag=' ${wl}-bernotok' 8081 no_undefined_flag=' ${wl}-bernotok'
7142 allow_undefined_flag=' ${wl}-berok' 8082 allow_undefined_flag=' ${wl}-berok'
7143 # -bexpall does not export symbols beginning with underscore (_)
7144 always_export_symbols=yes
7145 # Exported symbols can be pulled into shared objects from archives 8083 # Exported symbols can be pulled into shared objects from archives
7146 whole_archive_flag_spec=' ' 8084 whole_archive_flag_spec='$convenience'
7147 archive_cmds_need_lc=yes 8085 archive_cmds_need_lc=yes
7148 # This is similar to how AIX traditionally builds it's shared libraries. 8086 # This is similar to how AIX traditionally builds its shared libraries.
7149 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8087 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'
7150 fi 8088 fi
7151 fi 8089 fi
7152 ;; 8090 ;;
7153 8091
7154 amigaos*) 8092 amigaos*)
7157 hardcode_minus_L=yes 8095 hardcode_minus_L=yes
7158 # see comment about different semantics on the GNU ld section 8096 # see comment about different semantics on the GNU ld section
7159 ld_shlibs=no 8097 ld_shlibs=no
7160 ;; 8098 ;;
7161 8099
7162 bsdi4*) 8100 bsdi[45]*)
7163 export_dynamic_flag_spec=-rdynamic 8101 export_dynamic_flag_spec=-rdynamic
7164 ;; 8102 ;;
7165 8103
7166 cygwin* | mingw* | pw32*) 8104 cygwin* | mingw* | pw32*)
7167 # When not using gcc, we currently assume that we are using 8105 # When not using gcc, we currently assume that we are using
7171 hardcode_libdir_flag_spec=' ' 8109 hardcode_libdir_flag_spec=' '
7172 allow_undefined_flag=unsupported 8110 allow_undefined_flag=unsupported
7173 # Tell ltmain to make .lib files, not .a files. 8111 # Tell ltmain to make .lib files, not .a files.
7174 libext=lib 8112 libext=lib
7175 # Tell ltmain to make .dll files, not .so files. 8113 # Tell ltmain to make .dll files, not .so files.
7176 shrext=".dll" 8114 shrext_cmds=".dll"
7177 # FIXME: Setting linknames here is a bad hack. 8115 # FIXME: Setting linknames here is a bad hack.
7178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8116 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7179 # The linker will automatically build a .lib file if we build a DLL. 8117 # The linker will automatically build a .lib file if we build a DLL.
7180 old_archive_From_new_cmds='true' 8118 old_archive_From_new_cmds='true'
7181 # FIXME: Should let the user specify the lib program. 8119 # FIXME: Should let the user specify the lib program.
7183 fix_srcfile_path='`cygpath -w "$srcfile"`' 8121 fix_srcfile_path='`cygpath -w "$srcfile"`'
7184 enable_shared_with_static_runtimes=yes 8122 enable_shared_with_static_runtimes=yes
7185 ;; 8123 ;;
7186 8124
7187 darwin* | rhapsody*) 8125 darwin* | rhapsody*)
7188 if test "$GXX" = yes ; then 8126 case $host_os in
8127 rhapsody* | darwin1.[012])
8128 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8129 ;;
8130 *) # Darwin 1.3 on
8131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8132 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8133 else
8134 case ${MACOSX_DEPLOYMENT_TARGET} in
8135 10.[012])
8136 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8137 ;;
8138 10.*)
8139 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8140 ;;
8141 esac
8142 fi
8143 ;;
8144 esac
7189 archive_cmds_need_lc=no 8145 archive_cmds_need_lc=no
7190 case "$host_os" in
7191 rhapsody* | darwin1.[012])
7192 allow_undefined_flag='-undefined suppress'
7193 ;;
7194 *) # Darwin 1.3 on
7195 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7196 allow_undefined_flag='-flat_namespace -undefined suppress'
7197 else
7198 case ${MACOSX_DEPLOYMENT_TARGET} in
7199 10.[012])
7200 allow_undefined_flag='-flat_namespace -undefined suppress'
7201 ;;
7202 10.*)
7203 allow_undefined_flag='-undefined dynamic_lookup'
7204 ;;
7205 esac
7206 fi
7207 ;;
7208 esac
7209 lt_int_apple_cc_single_mod=no
7210 output_verbose_link_cmd='echo'
7211 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7212 lt_int_apple_cc_single_mod=yes
7213 fi
7214 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7215 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7216 else
7217 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7218 fi
7219 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7221 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7222 archive_expsym_cmds='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}'
7223 else
7224 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7225 fi
7226 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}'
7227 hardcode_direct=no 8146 hardcode_direct=no
7228 hardcode_automatic=yes 8147 hardcode_automatic=yes
7229 hardcode_shlibpath_var=unsupported 8148 hardcode_shlibpath_var=unsupported
7230 whole_archive_flag_spec='-all_load $convenience' 8149 whole_archive_flag_spec=''
7231 link_all_deplibs=yes 8150 link_all_deplibs=yes
8151 if test "$GCC" = yes ; then
8152 output_verbose_link_cmd='echo'
8153 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8154 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8156 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}'
8157 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}'
7232 else 8158 else
8159 case $cc_basename in
8160 xlc*)
8161 output_verbose_link_cmd='echo'
8162 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8163 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8165 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8166 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}'
8167 ;;
8168 *)
7233 ld_shlibs=no 8169 ld_shlibs=no
8170 ;;
8171 esac
7234 fi 8172 fi
7235 ;; 8173 ;;
7236 8174
7237 dgux*) 8175 dgux*)
7238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262 hardcode_minus_L=yes 8200 hardcode_minus_L=yes
7263 hardcode_shlibpath_var=no 8201 hardcode_shlibpath_var=no
7264 ;; 8202 ;;
7265 8203
7266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7267 freebsd* | kfreebsd*-gnu) 8205 freebsd* | dragonfly*)
7268 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8206 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7269 hardcode_libdir_flag_spec='-R$libdir' 8207 hardcode_libdir_flag_spec='-R$libdir'
7270 hardcode_direct=yes 8208 hardcode_direct=yes
7271 hardcode_shlibpath_var=no 8209 hardcode_shlibpath_var=no
7272 ;; 8210 ;;
7285 # but as the default location of the library. 8223 # but as the default location of the library.
7286 hardcode_minus_L=yes 8224 hardcode_minus_L=yes
7287 export_dynamic_flag_spec='${wl}-E' 8225 export_dynamic_flag_spec='${wl}-E'
7288 ;; 8226 ;;
7289 8227
7290 hpux10* | hpux11*) 8228 hpux10*)
7291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8231 else
8232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8233 fi
8234 if test "$with_gnu_ld" = no; then
8235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8236 hardcode_libdir_separator=:
8237
8238 hardcode_direct=yes
8239 export_dynamic_flag_spec='${wl}-E'
8240
8241 # hardcode_minus_L: Not really in the search PATH,
8242 # but as the default location of the library.
8243 hardcode_minus_L=yes
8244 fi
8245 ;;
8246
8247 hpux11*)
8248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7292 case "$host_cpu" in 8249 case $host_cpu in
7293 hppa*64*|ia64*) 8250 hppa*64*)
7294 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8251 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8252 ;;
8253 ia64*)
8254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7295 ;; 8255 ;;
7296 *) 8256 *)
7297 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8257 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7298 ;; 8258 ;;
7299 esac 8259 esac
7300 else 8260 else
7301 case "$host_cpu" in 8261 case $host_cpu in
7302 hppa*64*|ia64*) 8262 hppa*64*)
7303 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 8263 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8264 ;;
8265 ia64*)
8266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7304 ;; 8267 ;;
7305 *) 8268 *)
7306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7307 ;; 8270 ;;
7308 esac 8271 esac
7309 fi 8272 fi
7310 if test "$with_gnu_ld" = no; then 8273 if test "$with_gnu_ld" = no; then
7311 case "$host_cpu" in
7312 hppa*64*)
7313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8275 hardcode_libdir_separator=:
8276
8277 case $host_cpu in
8278 hppa*64*|ia64*)
7314 hardcode_libdir_flag_spec_ld='+b $libdir' 8279 hardcode_libdir_flag_spec_ld='+b $libdir'
7315 hardcode_libdir_separator=:
7316 hardcode_direct=no 8280 hardcode_direct=no
7317 hardcode_shlibpath_var=no 8281 hardcode_shlibpath_var=no
7318 ;; 8282 ;;
7319 ia64*)
7320 hardcode_libdir_flag_spec='-L$libdir'
7321 hardcode_direct=no
7322 hardcode_shlibpath_var=no
7323
7324 # hardcode_minus_L: Not really in the search PATH,
7325 # but as the default location of the library.
7326 hardcode_minus_L=yes
7327 ;;
7328 *) 8283 *)
7329 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7330 hardcode_libdir_separator=:
7331 hardcode_direct=yes 8284 hardcode_direct=yes
7332 export_dynamic_flag_spec='${wl}-E' 8285 export_dynamic_flag_spec='${wl}-E'
7333 8286
7334 # hardcode_minus_L: Not really in the search PATH, 8287 # hardcode_minus_L: Not really in the search PATH,
7335 # but as the default location of the library. 8288 # but as the default location of the library.
7349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7350 hardcode_libdir_separator=: 8303 hardcode_libdir_separator=:
7351 link_all_deplibs=yes 8304 link_all_deplibs=yes
7352 ;; 8305 ;;
7353 8306
7354 netbsd*) 8307 netbsd* | netbsdelf*-gnu)
7355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7357 else 8310 else
7358 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7359 fi 8312 fi
7373 openbsd*) 8326 openbsd*)
7374 hardcode_direct=yes 8327 hardcode_direct=yes
7375 hardcode_shlibpath_var=no 8328 hardcode_shlibpath_var=no
7376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8331 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7379 export_dynamic_flag_spec='${wl}-E' 8333 export_dynamic_flag_spec='${wl}-E'
7380 else 8334 else
7381 case $host_os in 8335 case $host_os in
7382 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7419 else 8373 else
7420 allow_undefined_flag=' -expect_unresolved \*' 8374 allow_undefined_flag=' -expect_unresolved \*'
7421 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' 8375 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'
7422 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8376 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7423 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 8377 $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'
7424 8378
7425 # Both c and cxx compiler support -rpath directly 8379 # Both c and cxx compiler support -rpath directly
7426 hardcode_libdir_flag_spec='-rpath $libdir' 8380 hardcode_libdir_flag_spec='-rpath $libdir'
7427 fi 8381 fi
7428 hardcode_libdir_separator=: 8382 hardcode_libdir_separator=:
7429 ;; 8383 ;;
7430 8384
7431 sco3.2v5*)
7432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_shlibpath_var=no
7434 export_dynamic_flag_spec='${wl}-Bexport'
7435 runpath_var=LD_RUN_PATH
7436 hardcode_runpath_var=yes
7437 ;;
7438
7439 solaris*) 8385 solaris*)
7440 no_undefined_flag=' -z text' 8386 no_undefined_flag=' -z text'
7441 if test "$GCC" = yes; then 8387 if test "$GCC" = yes; then
8388 wlarc='${wl}'
7442 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7443 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7444 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7445 else 8392 else
8393 wlarc=''
7446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8395 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7449 fi 8397 fi
7450 hardcode_libdir_flag_spec='-R$libdir' 8398 hardcode_libdir_flag_spec='-R$libdir'
7451 hardcode_shlibpath_var=no 8399 hardcode_shlibpath_var=no
7452 case $host_os in 8400 case $host_os in
7453 solaris2.[0-5] | solaris2.[0-5].*) ;; 8401 solaris2.[0-5] | solaris2.[0-5].*) ;;
8402 *)
8403 # The compiler driver will combine linker options so we
8404 # cannot just pass the convience library names through
8405 # without $wl, iff we do not link with $LD.
8406 # Luckily, gcc supports the same syntax we need for Sun Studio.
7454 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 8407 # Supported since Solaris 2.6 (maybe 2.5.1?)
8408 case $wlarc in
8409 '')
7455 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8411 *)
8412 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8413 esac ;;
7456 esac 8414 esac
7457 link_all_deplibs=yes 8415 link_all_deplibs=yes
7458 ;; 8416 ;;
7459 8417
7460 sunos4*) 8418 sunos4*)
7507 hardcode_runpath_var=yes 8465 hardcode_runpath_var=yes
7508 ld_shlibs=yes 8466 ld_shlibs=yes
7509 fi 8467 fi
7510 ;; 8468 ;;
7511 8469
7512 sysv4.2uw2*) 8470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7514 hardcode_direct=yes
7515 hardcode_minus_L=no
7516 hardcode_shlibpath_var=no
7517 hardcode_runpath_var=yes
7518 runpath_var=LD_RUN_PATH
7519 ;;
7520
7521 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7522 no_undefined_flag='${wl}-z ${wl}text' 8471 no_undefined_flag='${wl}-z,text'
7523 if test "$GCC" = yes; then 8472 archive_cmds_need_lc=no
7524 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7525 else
7526 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7527 fi
7528 runpath_var='LD_RUN_PATH'
7529 hardcode_shlibpath_var=no
7530 ;;
7531
7532 sysv5*)
7533 no_undefined_flag=' -z text'
7534 # $CC -shared without GNU ld will not create a library from C++
7535 # object files and a static libstdc++, better avoid it by now
7536 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7539 hardcode_libdir_flag_spec=
7540 hardcode_shlibpath_var=no 8473 hardcode_shlibpath_var=no
7541 runpath_var='LD_RUN_PATH' 8474 runpath_var='LD_RUN_PATH'
8475
8476 if test "$GCC" = yes; then
8477 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8478 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 else
8480 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8481 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482 fi
8483 ;;
8484
8485 sysv5* | sco3.2v5* | sco5v6*)
8486 # Note: We can NOT use -z defs as we might desire, because we do not
8487 # link with -lc, and that would cause any symbols used from libc to
8488 # always be unresolved, which means just about no library would
8489 # ever link correctly. If we're not using GNU ld we use -z text
8490 # though, which does catch some bad symbols but isn't as heavy-handed
8491 # as -z defs.
8492 no_undefined_flag='${wl}-z,text'
8493 allow_undefined_flag='${wl}-z,nodefs'
8494 archive_cmds_need_lc=no
8495 hardcode_shlibpath_var=no
8496 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8497 hardcode_libdir_separator=':'
8498 link_all_deplibs=yes
8499 export_dynamic_flag_spec='${wl}-Bexport'
8500 runpath_var='LD_RUN_PATH'
8501
8502 if test "$GCC" = yes; then
8503 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 else
8506 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508 fi
7542 ;; 8509 ;;
7543 8510
7544 uts4*) 8511 uts4*)
7545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_libdir_flag_spec='-L$libdir' 8513 hardcode_libdir_flag_spec='-L$libdir'
7551 ld_shlibs=no 8518 ld_shlibs=no
7552 ;; 8519 ;;
7553 esac 8520 esac
7554 fi 8521 fi
7555 8522
7556echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8523{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7557echo "${ECHO_T}$ld_shlibs" >&6 8524echo "${ECHO_T}$ld_shlibs" >&6; }
7558test "$ld_shlibs" = no && can_build_shared=no 8525test "$ld_shlibs" = no && can_build_shared=no
7559
7560variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7561if test "$GCC" = yes; then
7562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7563fi
7564 8526
7565# 8527#
7566# Do we need to explicitly link libc? 8528# Do we need to explicitly link libc?
7567# 8529#
7568case "x$archive_cmds_need_lc" in 8530case "x$archive_cmds_need_lc" in
7577 ;; 8539 ;;
7578 '$CC '*) 8540 '$CC '*)
7579 # Test whether the compiler implicitly links with -lc since on some 8541 # Test whether the compiler implicitly links with -lc since on some
7580 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7581 # to ld, don't add -lc before -lgcc. 8543 # to ld, don't add -lc before -lgcc.
7582 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7583echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7584 $rm conftest* 8546 $rm conftest*
7585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 8548
7587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>&5 8550 (eval $ac_compile) 2>&5
7592 soname=conftest 8554 soname=conftest
7593 lib=conftest 8555 lib=conftest
7594 libobjs=conftest.$ac_objext 8556 libobjs=conftest.$ac_objext
7595 deplibs= 8557 deplibs=
7596 wl=$lt_prog_compiler_wl 8558 wl=$lt_prog_compiler_wl
8559 pic_flag=$lt_prog_compiler_pic
7597 compiler_flags=-v 8560 compiler_flags=-v
7598 linker_flags=-v 8561 linker_flags=-v
7599 verstring= 8562 verstring=
7600 output_objdir=. 8563 output_objdir=.
7601 libname=conftest 8564 libname=conftest
7614 allow_undefined_flag=$lt_save_allow_undefined_flag 8577 allow_undefined_flag=$lt_save_allow_undefined_flag
7615 else 8578 else
7616 cat conftest.err 1>&5 8579 cat conftest.err 1>&5
7617 fi 8580 fi
7618 $rm conftest* 8581 $rm conftest*
7619 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7620echo "${ECHO_T}$archive_cmds_need_lc" >&6 8583echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7621 ;; 8584 ;;
7622 esac 8585 esac
7623 fi 8586 fi
7624 ;; 8587 ;;
7625esac 8588esac
7626 8589
7627echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8590{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7628echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7629library_names_spec= 8592library_names_spec=
7630libname_spec='lib$name' 8593libname_spec='lib$name'
7631soname_spec= 8594soname_spec=
7632shrext=".so" 8595shrext_cmds=".so"
7633postinstall_cmds= 8596postinstall_cmds=
7634postuninstall_cmds= 8597postuninstall_cmds=
7635finish_cmds= 8598finish_cmds=
7636finish_eval= 8599finish_eval=
7637shlibpath_var= 8600shlibpath_var=
7724 library_names_spec='${libname}${shared_ext}' 8687 library_names_spec='${libname}${shared_ext}'
7725 dynamic_linker="$host_os ld.so" 8688 dynamic_linker="$host_os ld.so"
7726 shlibpath_var=LIBRARY_PATH 8689 shlibpath_var=LIBRARY_PATH
7727 ;; 8690 ;;
7728 8691
7729bsdi4*) 8692bsdi[45]*)
7730 version_type=linux 8693 version_type=linux
7731 need_version=no 8694 need_version=no
7732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7733 soname_spec='${libname}${release}${shared_ext}$major' 8696 soname_spec='${libname}${release}${shared_ext}$major'
7734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7740 # libtool to hard-code these into programs 8703 # libtool to hard-code these into programs
7741 ;; 8704 ;;
7742 8705
7743cygwin* | mingw* | pw32*) 8706cygwin* | mingw* | pw32*)
7744 version_type=windows 8707 version_type=windows
7745 shrext=".dll" 8708 shrext_cmds=".dll"
7746 need_version=no 8709 need_version=no
7747 need_lib_prefix=no 8710 need_lib_prefix=no
7748 8711
7749 case $GCC,$host_os in 8712 case $GCC,$host_os in
7750 yes,cygwin* | yes,mingw* | yes,pw32*) 8713 yes,cygwin* | yes,mingw* | yes,pw32*)
7752 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7753 postinstall_cmds='base_file=`basename \${file}`~ 8716 postinstall_cmds='base_file=`basename \${file}`~
7754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7755 dldir=$destdir/`dirname \$dlpath`~ 8718 dldir=$destdir/`dirname \$dlpath`~
7756 test -d \$dldir || mkdir -p \$dldir~ 8719 test -d \$dldir || mkdir -p \$dldir~
7757 $install_prog $dir/$dlname \$dldir/$dlname' 8720 $install_prog $dir/$dlname \$dldir/$dlname~
8721 chmod a+x \$dldir/$dlname'
7758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7759 dlpath=$dir/\$dldll~ 8723 dlpath=$dir/\$dldll~
7760 $rm \$dlpath' 8724 $rm \$dlpath'
7761 shlibpath_overrides_runpath=yes 8725 shlibpath_overrides_runpath=yes
7762 8726
7782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7783 fi 8747 fi
7784 ;; 8748 ;;
7785 pw32*) 8749 pw32*)
7786 # pw32 DLLs use 'pw' prefix rather than 'lib' 8750 # pw32 DLLs use 'pw' prefix rather than 'lib'
7787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 8751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7788 ;; 8752 ;;
7789 esac 8753 esac
7790 ;; 8754 ;;
7791 8755
7792 *) 8756 *)
7805 need_version=no 8769 need_version=no
7806 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7807 soname_spec='${libname}${release}${major}$shared_ext' 8771 soname_spec='${libname}${release}${major}$shared_ext'
7808 shlibpath_overrides_runpath=yes 8772 shlibpath_overrides_runpath=yes
7809 shlibpath_var=DYLD_LIBRARY_PATH 8773 shlibpath_var=DYLD_LIBRARY_PATH
7810 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 8774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7811 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7812 if test "$GCC" = yes; then 8776 if test "$GCC" = yes; then
7813 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8777 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7814 else 8778 else
7815 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7828 8792
7829freebsd1*) 8793freebsd1*)
7830 dynamic_linker=no 8794 dynamic_linker=no
7831 ;; 8795 ;;
7832 8796
7833kfreebsd*-gnu) 8797freebsd* | dragonfly*)
7834 version_type=linux 8798 # DragonFly does not have aout. When/if they implement a new
7835 need_lib_prefix=no 8799 # versioning mechanism, adjust this.
7836 need_version=no 8800 if test -x /usr/bin/objformat; then
7837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8801 objformat=`/usr/bin/objformat`
7838 soname_spec='${libname}${release}${shared_ext}$major' 8802 else
7839 shlibpath_var=LD_LIBRARY_PATH 8803 case $host_os in
7840 shlibpath_overrides_runpath=no 8804 freebsd[123]*) objformat=aout ;;
7841 hardcode_into_libs=yes 8805 *) objformat=elf ;;
7842 dynamic_linker='GNU ld.so' 8806 esac
7843 ;; 8807 fi
7844
7845freebsd*)
7846 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7847 version_type=freebsd-$objformat 8808 version_type=freebsd-$objformat
7848 case $version_type in 8809 case $version_type in
7849 freebsd-elf*) 8810 freebsd-elf*)
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7851 need_version=no 8812 need_version=no
7859 shlibpath_var=LD_LIBRARY_PATH 8820 shlibpath_var=LD_LIBRARY_PATH
7860 case $host_os in 8821 case $host_os in
7861 freebsd2*) 8822 freebsd2*)
7862 shlibpath_overrides_runpath=yes 8823 shlibpath_overrides_runpath=yes
7863 ;; 8824 ;;
7864 freebsd3.01* | freebsdelf3.01*) 8825 freebsd3.[01]* | freebsdelf3.[01]*)
7865 shlibpath_overrides_runpath=yes 8826 shlibpath_overrides_runpath=yes
7866 hardcode_into_libs=yes 8827 hardcode_into_libs=yes
7867 ;; 8828 ;;
7868 *) # from 3.2 on 8829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7869 shlibpath_overrides_runpath=no 8831 shlibpath_overrides_runpath=no
8832 hardcode_into_libs=yes
8833 ;;
8834 freebsd*) # from 4.6 on
8835 shlibpath_overrides_runpath=yes
7870 hardcode_into_libs=yes 8836 hardcode_into_libs=yes
7871 ;; 8837 ;;
7872 esac 8838 esac
7873 ;; 8839 ;;
7874 8840
7886 # Give a soname corresponding to the major version so that dld.sl refuses to 8852 # Give a soname corresponding to the major version so that dld.sl refuses to
7887 # link against other versions. 8853 # link against other versions.
7888 version_type=sunos 8854 version_type=sunos
7889 need_lib_prefix=no 8855 need_lib_prefix=no
7890 need_version=no 8856 need_version=no
7891 case "$host_cpu" in 8857 case $host_cpu in
7892 ia64*) 8858 ia64*)
7893 shrext='.so' 8859 shrext_cmds='.so'
7894 hardcode_into_libs=yes 8860 hardcode_into_libs=yes
7895 dynamic_linker="$host_os dld.so" 8861 dynamic_linker="$host_os dld.so"
7896 shlibpath_var=LD_LIBRARY_PATH 8862 shlibpath_var=LD_LIBRARY_PATH
7897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7904 fi 8870 fi
7905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7906 ;; 8872 ;;
7907 hppa*64*) 8873 hppa*64*)
7908 shrext='.sl' 8874 shrext_cmds='.sl'
7909 hardcode_into_libs=yes 8875 hardcode_into_libs=yes
7910 dynamic_linker="$host_os dld.sl" 8876 dynamic_linker="$host_os dld.sl"
7911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major' 8880 soname_spec='${libname}${release}${shared_ext}$major'
7915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7917 ;; 8883 ;;
7918 *) 8884 *)
7919 shrext='.sl' 8885 shrext_cmds='.sl'
7920 dynamic_linker="$host_os dld.sl" 8886 dynamic_linker="$host_os dld.sl"
7921 shlibpath_var=SHLIB_PATH 8887 shlibpath_var=SHLIB_PATH
7922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major' 8890 soname_spec='${libname}${release}${shared_ext}$major'
7925 ;; 8891 ;;
7926 esac 8892 esac
7927 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7928 postinstall_cmds='chmod 555 $lib' 8894 postinstall_cmds='chmod 555 $lib'
8895 ;;
8896
8897interix3*)
8898 version_type=linux
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=no
8906 hardcode_into_libs=yes
7929 ;; 8907 ;;
7930 8908
7931irix5* | irix6* | nonstopux*) 8909irix5* | irix6* | nonstopux*)
7932 case $host_os in 8910 case $host_os in
7933 nonstopux*) version_type=nonstopux ;; 8911 nonstopux*) version_type=nonstopux ;;
7969linux*oldld* | linux*aout* | linux*coff*) 8947linux*oldld* | linux*aout* | linux*coff*)
7970 dynamic_linker=no 8948 dynamic_linker=no
7971 ;; 8949 ;;
7972 8950
7973# This must be Linux ELF. 8951# This must be Linux ELF.
7974linux*) 8952linux* | k*bsd*-gnu)
7975 version_type=linux 8953 version_type=linux
7976 need_lib_prefix=no 8954 need_lib_prefix=no
7977 need_version=no 8955 need_version=no
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979 soname_spec='${libname}${release}${shared_ext}$major' 8957 soname_spec='${libname}${release}${shared_ext}$major'
7985 # before this can be enabled. 8963 # before this can be enabled.
7986 hardcode_into_libs=yes 8964 hardcode_into_libs=yes
7987 8965
7988 # Append ld.so.conf contents to the search path 8966 # Append ld.so.conf contents to the search path
7989 if test -f /etc/ld.so.conf; then 8967 if test -f /etc/ld.so.conf; then
7990 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` 8968 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7991 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" 8969 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7992 fi 8970 fi
7993 8971
7994 # We used to test for /lib/ld.so.1 and disable shared libraries on 8972 # We used to test for /lib/ld.so.1 and disable shared libraries on
7995 # powerpc, because MkLinux only supported shared libraries with the 8973 # powerpc, because MkLinux only supported shared libraries with the
7996 # GNU dynamic linker. Since this was broken with cross compilers, 8974 # GNU dynamic linker. Since this was broken with cross compilers,
7998 # people can always --disable-shared, the test was removed, and we 8976 # people can always --disable-shared, the test was removed, and we
7999 # assume the GNU/Linux dynamic linker is in use. 8977 # assume the GNU/Linux dynamic linker is in use.
8000 dynamic_linker='GNU/Linux ld.so' 8978 dynamic_linker='GNU/Linux ld.so'
8001 ;; 8979 ;;
8002 8980
8003knetbsd*-gnu) 8981netbsdelf*-gnu)
8004 version_type=linux 8982 version_type=linux
8005 need_lib_prefix=no 8983 need_lib_prefix=no
8006 need_version=no 8984 need_version=no
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8008 soname_spec='${libname}${release}${shared_ext}$major' 8986 soname_spec='${libname}${release}${shared_ext}$major'
8009 shlibpath_var=LD_LIBRARY_PATH 8987 shlibpath_var=LD_LIBRARY_PATH
8010 shlibpath_overrides_runpath=no 8988 shlibpath_overrides_runpath=no
8011 hardcode_into_libs=yes 8989 hardcode_into_libs=yes
8012 dynamic_linker='GNU ld.so' 8990 dynamic_linker='NetBSD ld.elf_so'
8013 ;; 8991 ;;
8014 8992
8015netbsd*) 8993netbsd*)
8016 version_type=sunos 8994 version_type=sunos
8017 need_lib_prefix=no 8995 need_lib_prefix=no
8047 shlibpath_overrides_runpath=yes 9025 shlibpath_overrides_runpath=yes
8048 ;; 9026 ;;
8049 9027
8050openbsd*) 9028openbsd*)
8051 version_type=sunos 9029 version_type=sunos
9030 sys_lib_dlsearch_path_spec="/usr/lib"
8052 need_lib_prefix=no 9031 need_lib_prefix=no
8053 need_version=yes 9032 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9033 case $host_os in
9034 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9035 *) need_version=no ;;
9036 esac
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8056 shlibpath_var=LD_LIBRARY_PATH 9039 shlibpath_var=LD_LIBRARY_PATH
8057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8058 case $host_os in 9041 case $host_os in
8068 fi 9051 fi
8069 ;; 9052 ;;
8070 9053
8071os2*) 9054os2*)
8072 libname_spec='$name' 9055 libname_spec='$name'
8073 shrext=".dll" 9056 shrext_cmds=".dll"
8074 need_lib_prefix=no 9057 need_lib_prefix=no
8075 library_names_spec='$libname${shared_ext} $libname.a' 9058 library_names_spec='$libname${shared_ext} $libname.a'
8076 dynamic_linker='OS/2 ld.exe' 9059 dynamic_linker='OS/2 ld.exe'
8077 shlibpath_var=LIBPATH 9060 shlibpath_var=LIBPATH
8078 ;; 9061 ;;
8084 soname_spec='${libname}${release}${shared_ext}$major' 9067 soname_spec='${libname}${release}${shared_ext}$major'
8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8086 shlibpath_var=LD_LIBRARY_PATH 9069 shlibpath_var=LD_LIBRARY_PATH
8087 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9070 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8088 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9071 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8089 ;;
8090
8091sco3.2v5*)
8092 version_type=osf
8093 soname_spec='${libname}${release}${shared_ext}$major'
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095 shlibpath_var=LD_LIBRARY_PATH
8096 ;; 9072 ;;
8097 9073
8098solaris*) 9074solaris*)
8099 version_type=linux 9075 version_type=linux
8100 need_lib_prefix=no 9076 need_lib_prefix=no
8118 need_lib_prefix=no 9094 need_lib_prefix=no
8119 fi 9095 fi
8120 need_version=yes 9096 need_version=yes
8121 ;; 9097 ;;
8122 9098
8123sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9099sysv4 | sysv4.3*)
8124 version_type=linux 9100 version_type=linux
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126 soname_spec='${libname}${release}${shared_ext}$major' 9102 soname_spec='${libname}${release}${shared_ext}$major'
8127 shlibpath_var=LD_LIBRARY_PATH 9103 shlibpath_var=LD_LIBRARY_PATH
8128 case $host_vendor in 9104 case $host_vendor in
8151 soname_spec='$libname${shared_ext}.$major' 9127 soname_spec='$libname${shared_ext}.$major'
8152 shlibpath_var=LD_LIBRARY_PATH 9128 shlibpath_var=LD_LIBRARY_PATH
8153 fi 9129 fi
8154 ;; 9130 ;;
8155 9131
9132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9133 version_type=freebsd-elf
9134 need_lib_prefix=no
9135 need_version=no
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 hardcode_into_libs=yes
9140 if test "$with_gnu_ld" = yes; then
9141 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9142 shlibpath_overrides_runpath=no
9143 else
9144 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9145 shlibpath_overrides_runpath=yes
9146 case $host_os in
9147 sco3.2v5*)
9148 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9149 ;;
9150 esac
9151 fi
9152 sys_lib_dlsearch_path_spec='/usr/lib'
9153 ;;
9154
8156uts4*) 9155uts4*)
8157 version_type=linux 9156 version_type=linux
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8159 soname_spec='${libname}${release}${shared_ext}$major' 9158 soname_spec='${libname}${release}${shared_ext}$major'
8160 shlibpath_var=LD_LIBRARY_PATH 9159 shlibpath_var=LD_LIBRARY_PATH
8162 9161
8163*) 9162*)
8164 dynamic_linker=no 9163 dynamic_linker=no
8165 ;; 9164 ;;
8166esac 9165esac
8167echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9166{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8168echo "${ECHO_T}$dynamic_linker" >&6 9167echo "${ECHO_T}$dynamic_linker" >&6; }
8169test "$dynamic_linker" = no && can_build_shared=no 9168test "$dynamic_linker" = no && can_build_shared=no
8170 9169
9170variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9171if test "$GCC" = yes; then
9172 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9173fi
9174
8171echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9175{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8172echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8173hardcode_action= 9177hardcode_action=
8174if test -n "$hardcode_libdir_flag_spec" || \ 9178if test -n "$hardcode_libdir_flag_spec" || \
8175 test -n "$runpath_var " || \ 9179 test -n "$runpath_var" || \
8176 test "X$hardcode_automatic"="Xyes" ; then 9180 test "X$hardcode_automatic" = "Xyes" ; then
8177 9181
8178 # We can hardcode non-existant directories. 9182 # We can hardcode non-existant directories.
8179 if test "$hardcode_direct" != no && 9183 if test "$hardcode_direct" != no &&
8180 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8181 # have to relink, otherwise we might link with an installed library 9185 # have to relink, otherwise we might link with an installed library
8191else 9195else
8192 # We cannot hardcode anything, or else we can only hardcode existing 9196 # We cannot hardcode anything, or else we can only hardcode existing
8193 # directories. 9197 # directories.
8194 hardcode_action=unsupported 9198 hardcode_action=unsupported
8195fi 9199fi
8196echo "$as_me:$LINENO: result: $hardcode_action" >&5 9200{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8197echo "${ECHO_T}$hardcode_action" >&6 9201echo "${ECHO_T}$hardcode_action" >&6; }
8198 9202
8199if test "$hardcode_action" = relink; then 9203if test "$hardcode_action" = relink; then
8200 # Fast installation is not supported 9204 # Fast installation is not supported
8201 enable_fast_install=no 9205 enable_fast_install=no
8202elif test "$shlibpath_overrides_runpath" = yes || 9206elif test "$shlibpath_overrides_runpath" = yes ||
8205 enable_fast_install=needless 9209 enable_fast_install=needless
8206fi 9210fi
8207 9211
8208striplib= 9212striplib=
8209old_striplib= 9213old_striplib=
8210echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9214{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8211echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9215echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8212if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9216if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8213 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9217 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8214 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9218 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8215 echo "$as_me:$LINENO: result: yes" >&5 9219 { echo "$as_me:$LINENO: result: yes" >&5
8216echo "${ECHO_T}yes" >&6 9220echo "${ECHO_T}yes" >&6; }
8217else 9221else
8218# FIXME - insert some real tests, host_os isn't really good enough 9222# FIXME - insert some real tests, host_os isn't really good enough
8219 case $host_os in 9223 case $host_os in
8220 darwin*) 9224 darwin*)
8221 if test -n "$STRIP" ; then 9225 if test -n "$STRIP" ; then
8222 striplib="$STRIP -x" 9226 striplib="$STRIP -x"
8223 echo "$as_me:$LINENO: result: yes" >&5 9227 { echo "$as_me:$LINENO: result: yes" >&5
8224echo "${ECHO_T}yes" >&6 9228echo "${ECHO_T}yes" >&6; }
8225 else 9229 else
8226 echo "$as_me:$LINENO: result: no" >&5 9230 { echo "$as_me:$LINENO: result: no" >&5
8227echo "${ECHO_T}no" >&6 9231echo "${ECHO_T}no" >&6; }
8228fi 9232fi
8229 ;; 9233 ;;
8230 *) 9234 *)
8231 echo "$as_me:$LINENO: result: no" >&5 9235 { echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6 9236echo "${ECHO_T}no" >&6; }
8233 ;; 9237 ;;
8234 esac 9238 esac
8235fi 9239fi
8236 9240
8237if test "x$enable_dlopen" != xyes; then 9241if test "x$enable_dlopen" != xyes; then
8259 lt_cv_dlopen_libs= 9263 lt_cv_dlopen_libs=
8260 ;; 9264 ;;
8261 9265
8262 darwin*) 9266 darwin*)
8263 # if libdl is installed we need to link against it 9267 # if libdl is installed we need to link against it
8264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9268 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8266if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6 9271 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else 9272else
8269 ac_check_lib_save_LIBS=$LIBS 9273 ac_check_lib_save_LIBS=$LIBS
8270LIBS="-ldl $LIBS" 9274LIBS="-ldl $LIBS"
8273_ACEOF 9277_ACEOF
8274cat confdefs.h >>conftest.$ac_ext 9278cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF 9279cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */ 9280/* end confdefs.h. */
8277 9281
8278/* Override any gcc2 internal prototype to avoid an error. */ 9282/* Override any GCC internal prototype to avoid an error.
9283 Use char because int might match the return type of a GCC
9284 builtin and then its argument prototype would still apply. */
8279#ifdef __cplusplus 9285#ifdef __cplusplus
8280extern "C" 9286extern "C"
8281#endif 9287#endif
8282/* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284char dlopen (); 9288char dlopen ();
8285int 9289int
8286main () 9290main ()
8287{ 9291{
8288dlopen (); 9292return dlopen ();
8289 ; 9293 ;
8290 return 0; 9294 return 0;
8291} 9295}
8292_ACEOF 9296_ACEOF
8293rm -f conftest.$ac_objext conftest$ac_exeext 9297rm -f conftest.$ac_objext conftest$ac_exeext
9298if { (ac_try="$ac_link"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
8294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval $ac_link) 2>conftest.er1 9304 (eval "$ac_link") 2>conftest.er1
8296 ac_status=$? 9305 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err 9306 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1 9307 rm -f conftest.er1
8299 cat conftest.err >&5 9308 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && 9310 (exit $ac_status); } && {
8302 { ac_try='test -z "$ac_c_werror_flag" 9311 test -z "$ac_c_werror_flag" ||
8303 || test ! -s conftest.err' 9312 test ! -s conftest.err
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9313 } && test -s conftest$ac_exeext &&
8305 (eval $ac_try) 2>&5 9314 $as_test_x conftest$ac_exeext; then
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_lib_dl_dlopen=yes 9315 ac_cv_lib_dl_dlopen=yes
8316else 9316else
8317 echo "$as_me: failed program was:" >&5 9317 echo "$as_me: failed program was:" >&5
8318sed 's/^/| /' conftest.$ac_ext >&5 9318sed 's/^/| /' conftest.$ac_ext >&5
8319 9319
8320ac_cv_lib_dl_dlopen=no 9320 ac_cv_lib_dl_dlopen=no
8321fi 9321fi
8322rm -f conftest.err conftest.$ac_objext \ 9322
9323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8323 conftest$ac_exeext conftest.$ac_ext 9324 conftest$ac_exeext conftest.$ac_ext
8324LIBS=$ac_check_lib_save_LIBS 9325LIBS=$ac_check_lib_save_LIBS
8325fi 9326fi
8326echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9327{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8327echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9328echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8328if test $ac_cv_lib_dl_dlopen = yes; then 9329if test $ac_cv_lib_dl_dlopen = yes; then
8329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8330else 9331else
8331 9332
8332 lt_cv_dlopen="dyld" 9333 lt_cv_dlopen="dyld"
8336fi 9337fi
8337 9338
8338 ;; 9339 ;;
8339 9340
8340 *) 9341 *)
8341 echo "$as_me:$LINENO: checking for shl_load" >&5 9342 { echo "$as_me:$LINENO: checking for shl_load" >&5
8342echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9343echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8343if test "${ac_cv_func_shl_load+set}" = set; then 9344if test "${ac_cv_func_shl_load+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6 9345 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else 9346else
8346 cat >conftest.$ac_ext <<_ACEOF 9347 cat >conftest.$ac_ext <<_ACEOF
8347/* confdefs.h. */ 9348/* confdefs.h. */
8364# include <assert.h> 9365# include <assert.h>
8365#endif 9366#endif
8366 9367
8367#undef shl_load 9368#undef shl_load
8368 9369
8369/* Override any gcc2 internal prototype to avoid an error. */ 9370/* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
8370#ifdef __cplusplus 9373#ifdef __cplusplus
8371extern "C" 9374extern "C"
8372{
8373#endif 9375#endif
8374/* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8376char shl_load (); 9376char shl_load ();
8377/* The GNU C library defines this for functions which it implements 9377/* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named 9378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */ 9379 something starting with __ and the normal name is an alias. */
8380#if defined (__stub_shl_load) || defined (__stub___shl_load) 9380#if defined __stub_shl_load || defined __stub___shl_load
8381choke me 9381choke me
8382#else
8383char (*f) () = shl_load;
8384#endif
8385#ifdef __cplusplus
8386}
8387#endif 9382#endif
8388 9383
8389int 9384int
8390main () 9385main ()
8391{ 9386{
8392return f != shl_load; 9387return shl_load ();
8393 ; 9388 ;
8394 return 0; 9389 return 0;
8395} 9390}
8396_ACEOF 9391_ACEOF
8397rm -f conftest.$ac_objext conftest$ac_exeext 9392rm -f conftest.$ac_objext conftest$ac_exeext
9393if { (ac_try="$ac_link"
9394case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397esac
8398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval $ac_link) 2>conftest.er1 9399 (eval "$ac_link") 2>conftest.er1
8400 ac_status=$? 9400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err 9401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1 9402 rm -f conftest.er1
8403 cat conftest.err >&5 9403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && 9405 (exit $ac_status); } && {
8406 { ac_try='test -z "$ac_c_werror_flag" 9406 test -z "$ac_c_werror_flag" ||
8407 || test ! -s conftest.err' 9407 test ! -s conftest.err
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9408 } && test -s conftest$ac_exeext &&
8409 (eval $ac_try) 2>&5 9409 $as_test_x conftest$ac_exeext; then
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_func_shl_load=yes 9410 ac_cv_func_shl_load=yes
8420else 9411else
8421 echo "$as_me: failed program was:" >&5 9412 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5 9413sed 's/^/| /' conftest.$ac_ext >&5
8423 9414
8424ac_cv_func_shl_load=no 9415 ac_cv_func_shl_load=no
8425fi 9416fi
8426rm -f conftest.err conftest.$ac_objext \ 9417
9418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8427 conftest$ac_exeext conftest.$ac_ext 9419 conftest$ac_exeext conftest.$ac_ext
8428fi 9420fi
8429echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9421{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8430echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9422echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8431if test $ac_cv_func_shl_load = yes; then 9423if test $ac_cv_func_shl_load = yes; then
8432 lt_cv_dlopen="shl_load" 9424 lt_cv_dlopen="shl_load"
8433else 9425else
8434 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9426 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8435echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9427echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8436if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9428if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6 9429 echo $ECHO_N "(cached) $ECHO_C" >&6
8438else 9430else
8439 ac_check_lib_save_LIBS=$LIBS 9431 ac_check_lib_save_LIBS=$LIBS
8440LIBS="-ldld $LIBS" 9432LIBS="-ldld $LIBS"
8443_ACEOF 9435_ACEOF
8444cat confdefs.h >>conftest.$ac_ext 9436cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF 9437cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h. */ 9438/* end confdefs.h. */
8447 9439
8448/* Override any gcc2 internal prototype to avoid an error. */ 9440/* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
8449#ifdef __cplusplus 9443#ifdef __cplusplus
8450extern "C" 9444extern "C"
8451#endif 9445#endif
8452/* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8454char shl_load (); 9446char shl_load ();
8455int 9447int
8456main () 9448main ()
8457{ 9449{
8458shl_load (); 9450return shl_load ();
8459 ; 9451 ;
8460 return 0; 9452 return 0;
8461} 9453}
8462_ACEOF 9454_ACEOF
8463rm -f conftest.$ac_objext conftest$ac_exeext 9455rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (ac_try="$ac_link"
9457case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
8464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval $ac_link) 2>conftest.er1 9462 (eval "$ac_link") 2>conftest.er1
8466 ac_status=$? 9463 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err 9464 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1 9465 rm -f conftest.er1
8469 cat conftest.err >&5 9466 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && 9468 (exit $ac_status); } && {
8472 { ac_try='test -z "$ac_c_werror_flag" 9469 test -z "$ac_c_werror_flag" ||
8473 || test ! -s conftest.err' 9470 test ! -s conftest.err
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9471 } && test -s conftest$ac_exeext &&
8475 (eval $ac_try) 2>&5 9472 $as_test_x conftest$ac_exeext; then
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_dld_shl_load=yes 9473 ac_cv_lib_dld_shl_load=yes
8486else 9474else
8487 echo "$as_me: failed program was:" >&5 9475 echo "$as_me: failed program was:" >&5
8488sed 's/^/| /' conftest.$ac_ext >&5 9476sed 's/^/| /' conftest.$ac_ext >&5
8489 9477
8490ac_cv_lib_dld_shl_load=no 9478 ac_cv_lib_dld_shl_load=no
8491fi 9479fi
8492rm -f conftest.err conftest.$ac_objext \ 9480
9481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8493 conftest$ac_exeext conftest.$ac_ext 9482 conftest$ac_exeext conftest.$ac_ext
8494LIBS=$ac_check_lib_save_LIBS 9483LIBS=$ac_check_lib_save_LIBS
8495fi 9484fi
8496echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9485{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8497echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9486echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8498if test $ac_cv_lib_dld_shl_load = yes; then 9487if test $ac_cv_lib_dld_shl_load = yes; then
8499 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8500else 9489else
8501 echo "$as_me:$LINENO: checking for dlopen" >&5 9490 { echo "$as_me:$LINENO: checking for dlopen" >&5
8502echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9491echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8503if test "${ac_cv_func_dlopen+set}" = set; then 9492if test "${ac_cv_func_dlopen+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6 9493 echo $ECHO_N "(cached) $ECHO_C" >&6
8505else 9494else
8506 cat >conftest.$ac_ext <<_ACEOF 9495 cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h. */ 9496/* confdefs.h. */
8524# include <assert.h> 9513# include <assert.h>
8525#endif 9514#endif
8526 9515
8527#undef dlopen 9516#undef dlopen
8528 9517
8529/* Override any gcc2 internal prototype to avoid an error. */ 9518/* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
8530#ifdef __cplusplus 9521#ifdef __cplusplus
8531extern "C" 9522extern "C"
8532{
8533#endif 9523#endif
8534/* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536char dlopen (); 9524char dlopen ();
8537/* The GNU C library defines this for functions which it implements 9525/* The GNU C library defines this for functions which it implements
8538 to always fail with ENOSYS. Some functions are actually named 9526 to always fail with ENOSYS. Some functions are actually named
8539 something starting with __ and the normal name is an alias. */ 9527 something starting with __ and the normal name is an alias. */
8540#if defined (__stub_dlopen) || defined (__stub___dlopen) 9528#if defined __stub_dlopen || defined __stub___dlopen
8541choke me 9529choke me
8542#else
8543char (*f) () = dlopen;
8544#endif
8545#ifdef __cplusplus
8546}
8547#endif 9530#endif
8548 9531
8549int 9532int
8550main () 9533main ()
8551{ 9534{
8552return f != dlopen; 9535return dlopen ();
8553 ; 9536 ;
8554 return 0; 9537 return 0;
8555} 9538}
8556_ACEOF 9539_ACEOF
8557rm -f conftest.$ac_objext conftest$ac_exeext 9540rm -f conftest.$ac_objext conftest$ac_exeext
9541if { (ac_try="$ac_link"
9542case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545esac
8558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval $ac_link) 2>conftest.er1 9547 (eval "$ac_link") 2>conftest.er1
8560 ac_status=$? 9548 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err 9549 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1 9550 rm -f conftest.er1
8563 cat conftest.err >&5 9551 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && 9553 (exit $ac_status); } && {
8566 { ac_try='test -z "$ac_c_werror_flag" 9554 test -z "$ac_c_werror_flag" ||
8567 || test ! -s conftest.err' 9555 test ! -s conftest.err
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9556 } && test -s conftest$ac_exeext &&
8569 (eval $ac_try) 2>&5 9557 $as_test_x conftest$ac_exeext; then
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; } &&
8573 { ac_try='test -s conftest$ac_exeext'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 (eval $ac_try) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_func_dlopen=yes 9558 ac_cv_func_dlopen=yes
8580else 9559else
8581 echo "$as_me: failed program was:" >&5 9560 echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5 9561sed 's/^/| /' conftest.$ac_ext >&5
8583 9562
8584ac_cv_func_dlopen=no 9563 ac_cv_func_dlopen=no
8585fi 9564fi
8586rm -f conftest.err conftest.$ac_objext \ 9565
9566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8587 conftest$ac_exeext conftest.$ac_ext 9567 conftest$ac_exeext conftest.$ac_ext
8588fi 9568fi
8589echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9569{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8590echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9570echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8591if test $ac_cv_func_dlopen = yes; then 9571if test $ac_cv_func_dlopen = yes; then
8592 lt_cv_dlopen="dlopen" 9572 lt_cv_dlopen="dlopen"
8593else 9573else
8594 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9574 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8595echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9575echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8596if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9576if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6 9577 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else 9578else
8599 ac_check_lib_save_LIBS=$LIBS 9579 ac_check_lib_save_LIBS=$LIBS
8600LIBS="-ldl $LIBS" 9580LIBS="-ldl $LIBS"
8603_ACEOF 9583_ACEOF
8604cat confdefs.h >>conftest.$ac_ext 9584cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF 9585cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h. */ 9586/* end confdefs.h. */
8607 9587
8608/* Override any gcc2 internal prototype to avoid an error. */ 9588/* Override any GCC internal prototype to avoid an error.
9589 Use char because int might match the return type of a GCC
9590 builtin and then its argument prototype would still apply. */
8609#ifdef __cplusplus 9591#ifdef __cplusplus
8610extern "C" 9592extern "C"
8611#endif 9593#endif
8612/* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8614char dlopen (); 9594char dlopen ();
8615int 9595int
8616main () 9596main ()
8617{ 9597{
8618dlopen (); 9598return dlopen ();
8619 ; 9599 ;
8620 return 0; 9600 return 0;
8621} 9601}
8622_ACEOF 9602_ACEOF
8623rm -f conftest.$ac_objext conftest$ac_exeext 9603rm -f conftest.$ac_objext conftest$ac_exeext
9604if { (ac_try="$ac_link"
9605case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9608esac
8624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval $ac_link) 2>conftest.er1 9610 (eval "$ac_link") 2>conftest.er1
8626 ac_status=$? 9611 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err 9612 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1 9613 rm -f conftest.er1
8629 cat conftest.err >&5 9614 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && 9616 (exit $ac_status); } && {
8632 { ac_try='test -z "$ac_c_werror_flag" 9617 test -z "$ac_c_werror_flag" ||
8633 || test ! -s conftest.err' 9618 test ! -s conftest.err
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9619 } && test -s conftest$ac_exeext &&
8635 (eval $ac_try) 2>&5 9620 $as_test_x conftest$ac_exeext; then
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest$ac_exeext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_lib_dl_dlopen=yes 9621 ac_cv_lib_dl_dlopen=yes
8646else 9622else
8647 echo "$as_me: failed program was:" >&5 9623 echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5 9624sed 's/^/| /' conftest.$ac_ext >&5
8649 9625
8650ac_cv_lib_dl_dlopen=no 9626 ac_cv_lib_dl_dlopen=no
8651fi 9627fi
8652rm -f conftest.err conftest.$ac_objext \ 9628
9629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653 conftest$ac_exeext conftest.$ac_ext 9630 conftest$ac_exeext conftest.$ac_ext
8654LIBS=$ac_check_lib_save_LIBS 9631LIBS=$ac_check_lib_save_LIBS
8655fi 9632fi
8656echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8657echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9634echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8658if test $ac_cv_lib_dl_dlopen = yes; then 9635if test $ac_cv_lib_dl_dlopen = yes; then
8659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8660else 9637else
8661 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9638 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8662echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9639echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8663if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9640if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6 9641 echo $ECHO_N "(cached) $ECHO_C" >&6
8665else 9642else
8666 ac_check_lib_save_LIBS=$LIBS 9643 ac_check_lib_save_LIBS=$LIBS
8667LIBS="-lsvld $LIBS" 9644LIBS="-lsvld $LIBS"
8670_ACEOF 9647_ACEOF
8671cat confdefs.h >>conftest.$ac_ext 9648cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF 9649cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */ 9650/* end confdefs.h. */
8674 9651
8675/* Override any gcc2 internal prototype to avoid an error. */ 9652/* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
8676#ifdef __cplusplus 9655#ifdef __cplusplus
8677extern "C" 9656extern "C"
8678#endif 9657#endif
8679/* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681char dlopen (); 9658char dlopen ();
8682int 9659int
8683main () 9660main ()
8684{ 9661{
8685dlopen (); 9662return dlopen ();
8686 ; 9663 ;
8687 return 0; 9664 return 0;
8688} 9665}
8689_ACEOF 9666_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext 9667rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (ac_try="$ac_link"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval $ac_link) 2>conftest.er1 9674 (eval "$ac_link") 2>conftest.er1
8693 ac_status=$? 9675 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err 9676 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1 9677 rm -f conftest.er1
8696 cat conftest.err >&5 9678 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && 9680 (exit $ac_status); } && {
8699 { ac_try='test -z "$ac_c_werror_flag" 9681 test -z "$ac_c_werror_flag" ||
8700 || test ! -s conftest.err' 9682 test ! -s conftest.err
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9683 } && test -s conftest$ac_exeext &&
8702 (eval $ac_try) 2>&5 9684 $as_test_x conftest$ac_exeext; then
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_lib_svld_dlopen=yes 9685 ac_cv_lib_svld_dlopen=yes
8713else 9686else
8714 echo "$as_me: failed program was:" >&5 9687 echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5 9688sed 's/^/| /' conftest.$ac_ext >&5
8716 9689
8717ac_cv_lib_svld_dlopen=no 9690 ac_cv_lib_svld_dlopen=no
8718fi 9691fi
8719rm -f conftest.err conftest.$ac_objext \ 9692
9693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720 conftest$ac_exeext conftest.$ac_ext 9694 conftest$ac_exeext conftest.$ac_ext
8721LIBS=$ac_check_lib_save_LIBS 9695LIBS=$ac_check_lib_save_LIBS
8722fi 9696fi
8723echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9697{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8724echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9698echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8725if test $ac_cv_lib_svld_dlopen = yes; then 9699if test $ac_cv_lib_svld_dlopen = yes; then
8726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8727else 9701else
8728 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9702 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8729echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9703echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8730if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9704if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6 9705 echo $ECHO_N "(cached) $ECHO_C" >&6
8732else 9706else
8733 ac_check_lib_save_LIBS=$LIBS 9707 ac_check_lib_save_LIBS=$LIBS
8734LIBS="-ldld $LIBS" 9708LIBS="-ldld $LIBS"
8737_ACEOF 9711_ACEOF
8738cat confdefs.h >>conftest.$ac_ext 9712cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF 9713cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h. */ 9714/* end confdefs.h. */
8741 9715
8742/* Override any gcc2 internal prototype to avoid an error. */ 9716/* Override any GCC internal prototype to avoid an error.
9717 Use char because int might match the return type of a GCC
9718 builtin and then its argument prototype would still apply. */
8743#ifdef __cplusplus 9719#ifdef __cplusplus
8744extern "C" 9720extern "C"
8745#endif 9721#endif
8746/* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
8748char dld_link (); 9722char dld_link ();
8749int 9723int
8750main () 9724main ()
8751{ 9725{
8752dld_link (); 9726return dld_link ();
8753 ; 9727 ;
8754 return 0; 9728 return 0;
8755} 9729}
8756_ACEOF 9730_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext 9731rm -f conftest.$ac_objext conftest$ac_exeext
9732if { (ac_try="$ac_link"
9733case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736esac
8758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval $ac_link) 2>conftest.er1 9738 (eval "$ac_link") 2>conftest.er1
8760 ac_status=$? 9739 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err 9740 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1 9741 rm -f conftest.er1
8763 cat conftest.err >&5 9742 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && 9744 (exit $ac_status); } && {
8766 { ac_try='test -z "$ac_c_werror_flag" 9745 test -z "$ac_c_werror_flag" ||
8767 || test ! -s conftest.err' 9746 test ! -s conftest.err
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9747 } && test -s conftest$ac_exeext &&
8769 (eval $ac_try) 2>&5 9748 $as_test_x conftest$ac_exeext; then
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_lib_dld_dld_link=yes 9749 ac_cv_lib_dld_dld_link=yes
8780else 9750else
8781 echo "$as_me: failed program was:" >&5 9751 echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5 9752sed 's/^/| /' conftest.$ac_ext >&5
8783 9753
8784ac_cv_lib_dld_dld_link=no 9754 ac_cv_lib_dld_dld_link=no
8785fi 9755fi
8786rm -f conftest.err conftest.$ac_objext \ 9756
9757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8787 conftest$ac_exeext conftest.$ac_ext 9758 conftest$ac_exeext conftest.$ac_ext
8788LIBS=$ac_check_lib_save_LIBS 9759LIBS=$ac_check_lib_save_LIBS
8789fi 9760fi
8790echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9761{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8791echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9762echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8792if test $ac_cv_lib_dld_dld_link = yes; then 9763if test $ac_cv_lib_dld_dld_link = yes; then
8793 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9764 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8794fi 9765fi
8795 9766
8796 9767
8821 dlopen) 9792 dlopen)
8822 save_CPPFLAGS="$CPPFLAGS" 9793 save_CPPFLAGS="$CPPFLAGS"
8823 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9794 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8824 9795
8825 save_LDFLAGS="$LDFLAGS" 9796 save_LDFLAGS="$LDFLAGS"
8826 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9797 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8827 9798
8828 save_LIBS="$LIBS" 9799 save_LIBS="$LIBS"
8829 LIBS="$lt_cv_dlopen_libs $LIBS" 9800 LIBS="$lt_cv_dlopen_libs $LIBS"
8830 9801
8831 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9802 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8832echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9803echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8833if test "${lt_cv_dlopen_self+set}" = set; then 9804if test "${lt_cv_dlopen_self+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6 9805 echo $ECHO_N "(cached) $ECHO_C" >&6
8835else 9806else
8836 if test "$cross_compiling" = yes; then : 9807 if test "$cross_compiling" = yes; then :
8837 lt_cv_dlopen_self=cross 9808 lt_cv_dlopen_self=cross
8838else 9809else
8839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8840 lt_status=$lt_dlunknown 9811 lt_status=$lt_dlunknown
8841 cat > conftest.$ac_ext <<EOF 9812 cat > conftest.$ac_ext <<EOF
8842#line 8842 "configure" 9813#line 9813 "configure"
8843#include "confdefs.h" 9814#include "confdefs.h"
8844 9815
8845#if HAVE_DLFCN_H 9816#if HAVE_DLFCN_H
8846#include <dlfcn.h> 9817#include <dlfcn.h>
8847#endif 9818#endif
8894 { 9865 {
8895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8897 /* dlclose (self); */ 9868 /* dlclose (self); */
8898 } 9869 }
9870 else
9871 puts (dlerror ());
8899 9872
8900 exit (status); 9873 exit (status);
8901} 9874}
8902EOF 9875EOF
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5 9877 (eval $ac_link) 2>&5
8905 ac_status=$? 9878 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9880 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8908 (./conftest; exit; ) 2>/dev/null 9881 (./conftest; exit; ) >&5 2>/dev/null
8909 lt_status=$? 9882 lt_status=$?
8910 case x$lt_status in 9883 case x$lt_status in
8911 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9884 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8912 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9885 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8913 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9886 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8914 esac 9887 esac
8915 else : 9888 else :
8916 # compilation failed 9889 # compilation failed
8917 lt_cv_dlopen_self=no 9890 lt_cv_dlopen_self=no
8918 fi 9891 fi
8919fi 9892fi
8920rm -fr conftest* 9893rm -fr conftest*
8921 9894
8922 9895
8923fi 9896fi
8924echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9897{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8925echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9898echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8926 9899
8927 if test "x$lt_cv_dlopen_self" = xyes; then 9900 if test "x$lt_cv_dlopen_self" = xyes; then
8928 LDFLAGS="$LDFLAGS $link_static_flag" 9901 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8929 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9902 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8930echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9903echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8931if test "${lt_cv_dlopen_self_static+set}" = set; then 9904if test "${lt_cv_dlopen_self_static+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6 9905 echo $ECHO_N "(cached) $ECHO_C" >&6
8933else 9906else
8934 if test "$cross_compiling" = yes; then : 9907 if test "$cross_compiling" = yes; then :
8935 lt_cv_dlopen_self_static=cross 9908 lt_cv_dlopen_self_static=cross
8936else 9909else
8937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8938 lt_status=$lt_dlunknown 9911 lt_status=$lt_dlunknown
8939 cat > conftest.$ac_ext <<EOF 9912 cat > conftest.$ac_ext <<EOF
8940#line 8940 "configure" 9913#line 9913 "configure"
8941#include "confdefs.h" 9914#include "confdefs.h"
8942 9915
8943#if HAVE_DLFCN_H 9916#if HAVE_DLFCN_H
8944#include <dlfcn.h> 9917#include <dlfcn.h>
8945#endif 9918#endif
8992 { 9965 {
8993 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8994 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8995 /* dlclose (self); */ 9968 /* dlclose (self); */
8996 } 9969 }
9970 else
9971 puts (dlerror ());
8997 9972
8998 exit (status); 9973 exit (status);
8999} 9974}
9000EOF 9975EOF
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5 9977 (eval $ac_link) 2>&5
9003 ac_status=$? 9978 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9980 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9006 (./conftest; exit; ) 2>/dev/null 9981 (./conftest; exit; ) >&5 2>/dev/null
9007 lt_status=$? 9982 lt_status=$?
9008 case x$lt_status in 9983 case x$lt_status in
9009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9011 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9986 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9012 esac 9987 esac
9013 else : 9988 else :
9014 # compilation failed 9989 # compilation failed
9015 lt_cv_dlopen_self_static=no 9990 lt_cv_dlopen_self_static=no
9016 fi 9991 fi
9017fi 9992fi
9018rm -fr conftest* 9993rm -fr conftest*
9019 9994
9020 9995
9021fi 9996fi
9022echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9997{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9023echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9998echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9024 fi 9999 fi
9025 10000
9026 CPPFLAGS="$save_CPPFLAGS" 10001 CPPFLAGS="$save_CPPFLAGS"
9027 LDFLAGS="$save_LDFLAGS" 10002 LDFLAGS="$save_LDFLAGS"
9028 LIBS="$save_LIBS" 10003 LIBS="$save_LIBS"
9039 *) enable_dlopen_self_static=unknown ;; 10014 *) enable_dlopen_self_static=unknown ;;
9040 esac 10015 esac
9041fi 10016fi
9042 10017
9043 10018
9044# Report which librarie types wil actually be built 10019# Report which library types will actually be built
9045echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10020{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9046echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10021echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9047echo "$as_me:$LINENO: result: $can_build_shared" >&5 10022{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9048echo "${ECHO_T}$can_build_shared" >&6 10023echo "${ECHO_T}$can_build_shared" >&6; }
9049 10024
9050echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10025{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9051echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10026echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9052test "$can_build_shared" = "no" && enable_shared=no 10027test "$can_build_shared" = "no" && enable_shared=no
9053 10028
9054# On AIX, shared libraries and static libraries use the same namespace, and 10029# On AIX, shared libraries and static libraries use the same namespace, and
9055# are all built from PIC. 10030# are all built from PIC.
9056case "$host_os" in 10031case $host_os in
9057aix3*) 10032aix3*)
9058 test "$enable_shared" = yes && enable_static=no 10033 test "$enable_shared" = yes && enable_static=no
9059 if test -n "$RANLIB"; then 10034 if test -n "$RANLIB"; then
9060 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10035 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9061 postinstall_cmds='$RANLIB $lib' 10036 postinstall_cmds='$RANLIB $lib'
9062 fi 10037 fi
9063 ;; 10038 ;;
9064 10039
9065aix4*) 10040aix4* | aix5*)
9066 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10041 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9067 test "$enable_shared" = yes && enable_static=no 10042 test "$enable_shared" = yes && enable_static=no
9068 fi 10043 fi
9069 ;;
9070 darwin* | rhapsody*)
9071 if test "$GCC" = yes; then
9072 archive_cmds_need_lc=no
9073 case "$host_os" in
9074 rhapsody* | darwin1.[012])
9075 allow_undefined_flag='-undefined suppress'
9076 ;;
9077 *) # Darwin 1.3 on
9078 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9079 allow_undefined_flag='-flat_namespace -undefined suppress'
9080 else
9081 case ${MACOSX_DEPLOYMENT_TARGET} in
9082 10.[012])
9083 allow_undefined_flag='-flat_namespace -undefined suppress'
9084 ;;
9085 10.*)
9086 allow_undefined_flag='-undefined dynamic_lookup'
9087 ;;
9088 esac
9089 fi
9090 ;;
9091 esac
9092 output_verbose_link_cmd='echo'
9093 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9094 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9096 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}'
9097 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}'
9098 hardcode_direct=no
9099 hardcode_automatic=yes
9100 hardcode_shlibpath_var=unsupported
9101 whole_archive_flag_spec='-all_load $convenience'
9102 link_all_deplibs=yes
9103 else
9104 ld_shlibs=no
9105 fi
9106 ;; 10044 ;;
9107esac 10045esac
9108echo "$as_me:$LINENO: result: $enable_shared" >&5 10046{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9109echo "${ECHO_T}$enable_shared" >&6 10047echo "${ECHO_T}$enable_shared" >&6; }
9110 10048
9111echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10049{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9112echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10050echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9113# Make sure either enable_shared or enable_static is yes. 10051# Make sure either enable_shared or enable_static is yes.
9114test "$enable_shared" = yes || enable_static=yes 10052test "$enable_shared" = yes || enable_static=yes
9115echo "$as_me:$LINENO: result: $enable_static" >&5 10053{ echo "$as_me:$LINENO: result: $enable_static" >&5
9116echo "${ECHO_T}$enable_static" >&6 10054echo "${ECHO_T}$enable_static" >&6; }
9117 10055
9118# The else clause should only fire when bootstrapping the 10056# The else clause should only fire when bootstrapping the
9119# libtool distribution, otherwise you forgot to ship ltmain.sh 10057# libtool distribution, otherwise you forgot to ship ltmain.sh
9120# with your package, and you will get complaints that there are 10058# with your package, and you will get complaints that there are
9121# no rules to generate ltmain.sh. 10059# no rules to generate ltmain.sh.
9126 setopt NO_GLOB_SUBST 10064 setopt NO_GLOB_SUBST
9127 fi 10065 fi
9128 # Now quote all the things that may contain metacharacters while being 10066 # Now quote all the things that may contain metacharacters while being
9129 # careful not to overquote the AC_SUBSTed values. We take copies of the 10067 # careful not to overquote the AC_SUBSTed values. We take copies of the
9130 # variables and quote the copies for generation of the libtool script. 10068 # variables and quote the copies for generation of the libtool script.
9131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 10069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9132 SED SHELL STRIP \ 10070 SED SHELL STRIP \
9133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9135 deplibs_check_method reload_flag reload_cmds need_locks \ 10073 deplibs_check_method reload_flag reload_cmds need_locks \
9136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9230# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9231# General Public License for more details. 10169# General Public License for more details.
9232# 10170#
9233# You should have received a copy of the GNU General Public License 10171# You should have received a copy of the GNU General Public License
9234# along with this program; if not, write to the Free Software 10172# along with this program; if not, write to the Free Software
9235# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 10173# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9236# 10174#
9237# As a special exception to the GNU General Public License, if you 10175# As a special exception to the GNU General Public License, if you
9238# distribute this file as part of a program that contains a 10176# distribute this file as part of a program that contains a
9239# configuration script generated by Autoconf, you may include it under 10177# configuration script generated by Autoconf, you may include it under
9240# the same distribution terms that you use for the rest of that program. 10178# the same distribution terms that you use for the rest of that program.
9241 10179
9242# A sed program that does not truncate output. 10180# A sed program that does not truncate output.
9243SED=$lt_SED 10181SED=$lt_SED
9244 10182
9245# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9246Xsed="$SED -e s/^X//" 10184Xsed="$SED -e 1s/^X//"
9247 10185
9248# The HP-UX ksh and POSIX shell print the target directory to stdout 10186# The HP-UX ksh and POSIX shell print the target directory to stdout
9249# if CDPATH is set. 10187# if CDPATH is set.
9250if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 10188(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9251 10189
9252# The names of the tagged configurations supported by this script. 10190# The names of the tagged configurations supported by this script.
9253available_tags= 10191available_tags=
9254 10192
9255# ### BEGIN LIBTOOL CONFIG 10193# ### BEGIN LIBTOOL CONFIG
9275fast_install=$enable_fast_install 10213fast_install=$enable_fast_install
9276 10214
9277# The host system. 10215# The host system.
9278host_alias=$host_alias 10216host_alias=$host_alias
9279host=$host 10217host=$host
10218host_os=$host_os
10219
10220# The build system.
10221build_alias=$build_alias
10222build=$build
10223build_os=$build_os
9280 10224
9281# An echo program that does not interpret backslashes. 10225# An echo program that does not interpret backslashes.
9282echo=$lt_echo 10226echo=$lt_echo
9283 10227
9284# The archiver. 10228# The archiver.
9286AR_FLAGS=$lt_AR_FLAGS 10230AR_FLAGS=$lt_AR_FLAGS
9287 10231
9288# A C compiler. 10232# A C compiler.
9289LTCC=$lt_LTCC 10233LTCC=$lt_LTCC
9290 10234
10235# LTCC compiler flags.
10236LTCFLAGS=$lt_LTCFLAGS
10237
9291# A language-specific compiler. 10238# A language-specific compiler.
9292CC=$lt_compiler 10239CC=$lt_compiler
9293 10240
9294# Is the compiler the GNU C compiler? 10241# Is the compiler the GNU C compiler?
9295with_gcc=$GCC 10242with_gcc=$GCC
9336 10283
9337# Old archive suffix (normally "a"). 10284# Old archive suffix (normally "a").
9338libext="$libext" 10285libext="$libext"
9339 10286
9340# Shared library suffix (normally ".so"). 10287# Shared library suffix (normally ".so").
9341shrext='$shrext' 10288shrext_cmds='$shrext_cmds'
9342 10289
9343# Executable file suffix (normally ""). 10290# Executable file suffix (normally "").
9344exeext="$exeext" 10291exeext="$exeext"
9345 10292
9346# Additional compiler flags for building library objects. 10293# Additional compiler flags for building library objects.
9351max_cmd_len=$lt_cv_sys_max_cmd_len 10298max_cmd_len=$lt_cv_sys_max_cmd_len
9352 10299
9353# Does compiler simultaneously support -c and -o options? 10300# Does compiler simultaneously support -c and -o options?
9354compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9355 10302
9356# Must we lock files when doing compilation ? 10303# Must we lock files when doing compilation?
9357need_locks=$lt_need_locks 10304need_locks=$lt_need_locks
9358 10305
9359# Do we need the lib prefix for modules? 10306# Do we need the lib prefix for modules?
9360need_lib_prefix=$need_lib_prefix 10307need_lib_prefix=$need_lib_prefix
9361 10308
9594ac_compiler_gnu=$ac_cv_c_compiler_gnu 10541ac_compiler_gnu=$ac_cv_c_compiler_gnu
9595 10542
9596CC="$lt_save_CC" 10543CC="$lt_save_CC"
9597 10544
9598 10545
9599# Check whether --with-tags or --without-tags was given. 10546# Check whether --with-tags was given.
9600if test "${with_tags+set}" = set; then 10547if test "${with_tags+set}" = set; then
9601 withval="$with_tags" 10548 withval=$with_tags; tagnames="$withval"
9602 tagnames="$withval"
9603fi; 10549fi
10550
9604 10551
9605if test -f "$ltmain" && test -n "$tagnames"; then 10552if test -f "$ltmain" && test -n "$tagnames"; then
9606 if test ! -f "${ofile}"; then 10553 if test ! -f "${ofile}"; then
9607 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9608echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10555echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9615echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10562echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9616 else 10563 else
9617 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10564 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9618echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10565echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9619 fi 10566 fi
10567 fi
10568 if test -z "$LTCFLAGS"; then
10569 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9620 fi 10570 fi
9621 10571
9622 # Extract list of available tagged configurations in $ofile. 10572 # Extract list of available tagged configurations in $ofile.
9623 # Note that this assumes the entire list is on one line. 10573 # Note that this assumes the entire list is on one line.
9624 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10574 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9646 if test -n "$tagname"; then 10596 if test -n "$tagname"; then
9647 echo appending configuration tag \"$tagname\" to $ofile 10597 echo appending configuration tag \"$tagname\" to $ofile
9648 10598
9649 case $tagname in 10599 case $tagname in
9650 CXX) 10600 CXX)
9651 if test -n "$CXX" && test "X$CXX" != "Xno"; then 10601 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10602 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10603 (test "X$CXX" != "Xg++"))) ; then
9652 ac_ext=cc 10604 ac_ext=cpp
9653ac_cpp='$CXXCPP $CPPFLAGS' 10605ac_cpp='$CXXCPP $CPPFLAGS'
9654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9657 10609
9666hardcode_direct_CXX=no 10618hardcode_direct_CXX=no
9667hardcode_libdir_flag_spec_CXX= 10619hardcode_libdir_flag_spec_CXX=
9668hardcode_libdir_flag_spec_ld_CXX= 10620hardcode_libdir_flag_spec_ld_CXX=
9669hardcode_libdir_separator_CXX= 10621hardcode_libdir_separator_CXX=
9670hardcode_minus_L_CXX=no 10622hardcode_minus_L_CXX=no
10623hardcode_shlibpath_var_CXX=unsupported
9671hardcode_automatic_CXX=no 10624hardcode_automatic_CXX=no
9672module_cmds_CXX= 10625module_cmds_CXX=
9673module_expsym_cmds_CXX= 10626module_expsym_cmds_CXX=
9674link_all_deplibs_CXX=unknown 10627link_all_deplibs_CXX=unknown
9675old_archive_cmds_CXX=$old_archive_cmds 10628old_archive_cmds_CXX=$old_archive_cmds
9683predeps_CXX= 10636predeps_CXX=
9684postdeps_CXX= 10637postdeps_CXX=
9685compiler_lib_search_path_CXX= 10638compiler_lib_search_path_CXX=
9686 10639
9687# Source file extension for C++ test sources. 10640# Source file extension for C++ test sources.
9688ac_ext=cc 10641ac_ext=cpp
9689 10642
9690# Object file extension for compiled C++ test sources. 10643# Object file extension for compiled C++ test sources.
9691objext=o 10644objext=o
9692objext_CXX=$objext 10645objext_CXX=$objext
9693 10646
9694# Code to be used in simple compile tests 10647# Code to be used in simple compile tests
9695lt_simple_compile_test_code="int some_variable = 0;\n" 10648lt_simple_compile_test_code="int some_variable = 0;\n"
9696 10649
9697# Code to be used in simple link tests 10650# Code to be used in simple link tests
9698lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10651lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9699 10652
9700# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10653# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9701 10654
9702# If no C compiler was specified, use CC. 10655# If no C compiler was specified, use CC.
9703LTCC=${LTCC-"$CC"} 10656LTCC=${LTCC-"$CC"}
9704 10657
10658# If no C compiler flags were specified, use CFLAGS.
10659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10660
9705# Allow CC to be a program name with arguments. 10661# Allow CC to be a program name with arguments.
9706compiler=$CC 10662compiler=$CC
10663
10664
10665# save warnings/boilerplate of simple test code
10666ac_outfile=conftest.$ac_objext
10667printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669_lt_compiler_boilerplate=`cat conftest.err`
10670$rm conftest*
10671
10672ac_outfile=conftest.$ac_objext
10673printf "$lt_simple_link_test_code" >conftest.$ac_ext
10674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10675_lt_linker_boilerplate=`cat conftest.err`
10676$rm conftest*
9707 10677
9708 10678
9709# Allow CC to be a program name with arguments. 10679# Allow CC to be a program name with arguments.
9710lt_save_CC=$CC 10680lt_save_CC=$CC
9711lt_save_LD=$LD 10681lt_save_LD=$LD
9714lt_save_with_gnu_ld=$with_gnu_ld 10684lt_save_with_gnu_ld=$with_gnu_ld
9715lt_save_path_LD=$lt_cv_path_LD 10685lt_save_path_LD=$lt_cv_path_LD
9716if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10686if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9717 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10687 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9718else 10688else
9719 unset lt_cv_prog_gnu_ld 10689 $as_unset lt_cv_prog_gnu_ld
9720fi 10690fi
9721if test -n "${lt_cv_path_LDCXX+set}"; then 10691if test -n "${lt_cv_path_LDCXX+set}"; then
9722 lt_cv_path_LD=$lt_cv_path_LDCXX 10692 lt_cv_path_LD=$lt_cv_path_LDCXX
9723else 10693else
9724 unset lt_cv_path_LD 10694 $as_unset lt_cv_path_LD
9725fi 10695fi
9726test -z "${LDCXX+set}" || LD=$LDCXX 10696test -z "${LDCXX+set}" || LD=$LDCXX
9727CC=${CXX-"c++"} 10697CC=${CXX-"c++"}
9728compiler=$CC 10698compiler=$CC
9729compiler_CXX=$CC 10699compiler_CXX=$CC
9730cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 10700for cc_temp in $compiler""; do
10701 case $cc_temp in
10702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10704 \-*) ;;
10705 *) break;;
10706 esac
10707done
10708cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10709
9731 10710
9732# We don't want -fno-exception wen compiling C++ code, so set the 10711# We don't want -fno-exception wen compiling C++ code, so set the
9733# no_builtin_flag separately 10712# no_builtin_flag separately
9734if test "$GXX" = yes; then 10713if test "$GXX" = yes; then
9735 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10714 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9739 10718
9740if test "$GXX" = yes; then 10719if test "$GXX" = yes; then
9741 # Set up default GNU C++ configuration 10720 # Set up default GNU C++ configuration
9742 10721
9743 10722
9744# Check whether --with-gnu-ld or --without-gnu-ld was given. 10723# Check whether --with-gnu-ld was given.
9745if test "${with_gnu_ld+set}" = set; then 10724if test "${with_gnu_ld+set}" = set; then
9746 withval="$with_gnu_ld"
9747 test "$withval" = no || with_gnu_ld=yes 10725 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9748else 10726else
9749 with_gnu_ld=no 10727 with_gnu_ld=no
9750fi; 10728fi
10729
9751ac_prog=ld 10730ac_prog=ld
9752if test "$GCC" = yes; then 10731if test "$GCC" = yes; then
9753 # Check if gcc -print-prog-name=ld gives a path. 10732 # Check if gcc -print-prog-name=ld gives a path.
9754 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10733 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9755echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10734echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9756 case $host in 10735 case $host in
9757 *-*-mingw*) 10736 *-*-mingw*)
9758 # gcc leaves a trailing carriage return which upsets mingw 10737 # gcc leaves a trailing carriage return which upsets mingw
9759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9760 *) 10739 *)
9779 # If it is relative, then search for the first ld in PATH. 10758 # If it is relative, then search for the first ld in PATH.
9780 with_gnu_ld=unknown 10759 with_gnu_ld=unknown
9781 ;; 10760 ;;
9782 esac 10761 esac
9783elif test "$with_gnu_ld" = yes; then 10762elif test "$with_gnu_ld" = yes; then
9784 echo "$as_me:$LINENO: checking for GNU ld" >&5 10763 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9785echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10764echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9786else 10765else
9787 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10766 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9788echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10767echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9789fi 10768fi
9790if test "${lt_cv_path_LD+set}" = set; then 10769if test "${lt_cv_path_LD+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6 10770 echo $ECHO_N "(cached) $ECHO_C" >&6
9792else 10771else
9793 if test -z "$LD"; then 10772 if test -z "$LD"; then
9796 IFS="$lt_save_ifs" 10775 IFS="$lt_save_ifs"
9797 test -z "$ac_dir" && ac_dir=. 10776 test -z "$ac_dir" && ac_dir=.
9798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9799 lt_cv_path_LD="$ac_dir/$ac_prog" 10778 lt_cv_path_LD="$ac_dir/$ac_prog"
9800 # Check to see if the program is GNU ld. I'd rather use --version, 10779 # Check to see if the program is GNU ld. I'd rather use --version,
9801 # but apparently some GNU ld's only accept -v. 10780 # but apparently some variants of GNU ld only accept -v.
9802 # Break only if it was the GNU/non-GNU ld that we prefer. 10781 # Break only if it was the GNU/non-GNU ld that we prefer.
9803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9804 *GNU* | *'with BFD'*) 10783 *GNU* | *'with BFD'*)
9805 test "$with_gnu_ld" != no && break 10784 test "$with_gnu_ld" != no && break
9806 ;; 10785 ;;
9816fi 10795fi
9817fi 10796fi
9818 10797
9819LD="$lt_cv_path_LD" 10798LD="$lt_cv_path_LD"
9820if test -n "$LD"; then 10799if test -n "$LD"; then
9821 echo "$as_me:$LINENO: result: $LD" >&5 10800 { echo "$as_me:$LINENO: result: $LD" >&5
9822echo "${ECHO_T}$LD" >&6 10801echo "${ECHO_T}$LD" >&6; }
9823else 10802else
9824 echo "$as_me:$LINENO: result: no" >&5 10803 { echo "$as_me:$LINENO: result: no" >&5
9825echo "${ECHO_T}no" >&6 10804echo "${ECHO_T}no" >&6; }
9826fi 10805fi
9827test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10806test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9828echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10807echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9829 { (exit 1); exit 1; }; } 10808 { (exit 1); exit 1; }; }
9830echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10809{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9831echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10810echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9832if test "${lt_cv_prog_gnu_ld+set}" = set; then 10811if test "${lt_cv_prog_gnu_ld+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6 10812 echo $ECHO_N "(cached) $ECHO_C" >&6
9834else 10813else
9835 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10814 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9836case `$LD -v 2>&1 </dev/null` in 10815case `$LD -v 2>&1 </dev/null` in
9837*GNU* | *'with BFD'*) 10816*GNU* | *'with BFD'*)
9838 lt_cv_prog_gnu_ld=yes 10817 lt_cv_prog_gnu_ld=yes
9839 ;; 10818 ;;
9840*) 10819*)
9841 lt_cv_prog_gnu_ld=no 10820 lt_cv_prog_gnu_ld=no
9842 ;; 10821 ;;
9843esac 10822esac
9844fi 10823fi
9845echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10824{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9846echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10825echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9847with_gnu_ld=$lt_cv_prog_gnu_ld 10826with_gnu_ld=$lt_cv_prog_gnu_ld
9848 10827
9849 10828
9850 10829
9851 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10830 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9891 with_gnu_ld=no 10870 with_gnu_ld=no
9892 wlarc= 10871 wlarc=
9893fi 10872fi
9894 10873
9895# PORTME: fill in a description of your system's C++ link characteristics 10874# PORTME: fill in a description of your system's C++ link characteristics
9896echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10875{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9897echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10876echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9898ld_shlibs_CXX=yes 10877ld_shlibs_CXX=yes
9899case $host_os in 10878case $host_os in
9900 aix3*) 10879 aix3*)
9901 # FIXME: insert proper C++ library support 10880 # FIXME: insert proper C++ library support
9902 ld_shlibs_CXX=no 10881 ld_shlibs_CXX=no
9921 aix_use_runtimelinking=yes 10900 aix_use_runtimelinking=yes
9922 break 10901 break
9923 ;; 10902 ;;
9924 esac 10903 esac
9925 done 10904 done
10905 ;;
9926 esac 10906 esac
9927 10907
9928 exp_sym_flag='-bexport' 10908 exp_sym_flag='-bexport'
9929 no_entry_flag='-bnoentry' 10909 no_entry_flag='-bnoentry'
9930 fi 10910 fi
9939 hardcode_direct_CXX=yes 10919 hardcode_direct_CXX=yes
9940 hardcode_libdir_separator_CXX=':' 10920 hardcode_libdir_separator_CXX=':'
9941 link_all_deplibs_CXX=yes 10921 link_all_deplibs_CXX=yes
9942 10922
9943 if test "$GXX" = yes; then 10923 if test "$GXX" = yes; then
9944 case $host_os in aix4.012|aix4.012.*) 10924 case $host_os in aix4.[012]|aix4.[012].*)
9945 # We only want to do this on AIX 4.2 and lower, the check 10925 # We only want to do this on AIX 4.2 and lower, the check
9946 # below for broken collect2 doesn't work under 4.3+ 10926 # below for broken collect2 doesn't work under 4.3+
9947 collect2name=`${CC} -print-prog-name=collect2` 10927 collect2name=`${CC} -print-prog-name=collect2`
9948 if test -f "$collect2name" && \ 10928 if test -f "$collect2name" && \
9949 strings "$collect2name" | grep resolve_lib_name >/dev/null 10929 strings "$collect2name" | grep resolve_lib_name >/dev/null
9958 # to unsupported forces relinking 10938 # to unsupported forces relinking
9959 hardcode_minus_L_CXX=yes 10939 hardcode_minus_L_CXX=yes
9960 hardcode_libdir_flag_spec_CXX='-L$libdir' 10940 hardcode_libdir_flag_spec_CXX='-L$libdir'
9961 hardcode_libdir_separator_CXX= 10941 hardcode_libdir_separator_CXX=
9962 fi 10942 fi
10943 ;;
9963 esac 10944 esac
9964 shared_flag='-shared' 10945 shared_flag='-shared'
10946 if test "$aix_use_runtimelinking" = yes; then
10947 shared_flag="$shared_flag "'${wl}-G'
10948 fi
9965 else 10949 else
9966 # not using gcc 10950 # not using gcc
9967 if test "$host_cpu" = ia64; then 10951 if test "$host_cpu" = ia64; then
9968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9969 # chokes on -Wl,-G. The following line is correct: 10953 # chokes on -Wl,-G. The following line is correct:
9999 ; 10983 ;
10000 return 0; 10984 return 0;
10001} 10985}
10002_ACEOF 10986_ACEOF
10003rm -f conftest.$ac_objext conftest$ac_exeext 10987rm -f conftest.$ac_objext conftest$ac_exeext
10988if { (ac_try="$ac_link"
10989case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval $ac_link) 2>conftest.er1 10994 (eval "$ac_link") 2>conftest.er1
10006 ac_status=$? 10995 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err 10996 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1 10997 rm -f conftest.er1
10009 cat conftest.err >&5 10998 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && 11000 (exit $ac_status); } && {
10012 { ac_try='test -z "$ac_cxx_werror_flag" 11001 test -z "$ac_cxx_werror_flag" ||
10013 || test ! -s conftest.err' 11002 test ! -s conftest.err
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11003 } && test -s conftest$ac_exeext &&
10015 (eval $ac_try) 2>&5 11004 $as_test_x conftest$ac_exeext; then
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 11005
10026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10027}'` 11007}'`
10028# Check for a 64-bit object if we didn't find anything. 11008# Check for a 64-bit object if we didn't find anything.
10029if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11009if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10030}'`; fi 11010}'`; fi
10031else 11011else
10032 echo "$as_me: failed program was:" >&5 11012 echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5 11013sed 's/^/| /' conftest.$ac_ext >&5
10034 11014
11015
10035fi 11016fi
10036rm -f conftest.err conftest.$ac_objext \ 11017
11018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037 conftest$ac_exeext conftest.$ac_ext 11019 conftest$ac_exeext conftest.$ac_ext
10038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10039 11021
10040 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11022 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10041 11023
10042 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11024 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"
10043 else 11025 else
10044 if test "$host_cpu" = ia64; then 11026 if test "$host_cpu" = ia64; then
10045 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11027 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10046 allow_undefined_flag_CXX="-z nodefs" 11028 allow_undefined_flag_CXX="-z nodefs"
10047 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 11029 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"
10048 else 11030 else
10049 # Determine the default libpath from the value encoded in an empty executable. 11031 # Determine the default libpath from the value encoded in an empty executable.
10050 cat >conftest.$ac_ext <<_ACEOF 11032 cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h. */ 11033/* confdefs.h. */
10052_ACEOF 11034_ACEOF
10061 ; 11043 ;
10062 return 0; 11044 return 0;
10063} 11045}
10064_ACEOF 11046_ACEOF
10065rm -f conftest.$ac_objext conftest$ac_exeext 11047rm -f conftest.$ac_objext conftest$ac_exeext
11048if { (ac_try="$ac_link"
11049case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052esac
10066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval $ac_link) 2>conftest.er1 11054 (eval "$ac_link") 2>conftest.er1
10068 ac_status=$? 11055 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err 11056 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1 11057 rm -f conftest.er1
10071 cat conftest.err >&5 11058 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && 11060 (exit $ac_status); } && {
10074 { ac_try='test -z "$ac_cxx_werror_flag" 11061 test -z "$ac_cxx_werror_flag" ||
10075 || test ! -s conftest.err' 11062 test ! -s conftest.err
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11063 } && test -s conftest$ac_exeext &&
10077 (eval $ac_try) 2>&5 11064 $as_test_x conftest$ac_exeext; then
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 11065
10088aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10089}'` 11067}'`
10090# Check for a 64-bit object if we didn't find anything. 11068# Check for a 64-bit object if we didn't find anything.
10091if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11069if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10092}'`; fi 11070}'`; fi
10093else 11071else
10094 echo "$as_me: failed program was:" >&5 11072 echo "$as_me: failed program was:" >&5
10095sed 's/^/| /' conftest.$ac_ext >&5 11073sed 's/^/| /' conftest.$ac_ext >&5
10096 11074
11075
10097fi 11076fi
10098rm -f conftest.err conftest.$ac_objext \ 11077
11078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10099 conftest$ac_exeext conftest.$ac_ext 11079 conftest$ac_exeext conftest.$ac_ext
10100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10101 11081
10102 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11082 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10103 # Warning - without using the other run time loading flags, 11083 # Warning - without using the other run time loading flags,
10104 # -berok will link without error, but may produce a broken library. 11084 # -berok will link without error, but may produce a broken library.
10105 no_undefined_flag_CXX=' ${wl}-bernotok' 11085 no_undefined_flag_CXX=' ${wl}-bernotok'
10106 allow_undefined_flag_CXX=' ${wl}-berok' 11086 allow_undefined_flag_CXX=' ${wl}-berok'
10107 # -bexpall does not export symbols beginning with underscore (_)
10108 always_export_symbols_CXX=yes
10109 # Exported symbols can be pulled into shared objects from archives 11087 # Exported symbols can be pulled into shared objects from archives
10110 whole_archive_flag_spec_CXX=' ' 11088 whole_archive_flag_spec_CXX='$convenience'
10111 archive_cmds_need_lc_CXX=yes 11089 archive_cmds_need_lc_CXX=yes
10112 # This is similar to how AIX traditionally builds it's shared libraries. 11090 # This is similar to how AIX traditionally builds its shared libraries.
10113 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11091 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'
10114 fi 11092 fi
10115 fi 11093 fi
10116 ;; 11094 ;;
11095
11096 beos*)
11097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11098 allow_undefined_flag_CXX=unsupported
11099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11100 # support --undefined. This deserves some investigation. FIXME
11101 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102 else
11103 ld_shlibs_CXX=no
11104 fi
11105 ;;
11106
10117 chorus*) 11107 chorus*)
10118 case $cc_basename in 11108 case $cc_basename in
10119 *) 11109 *)
10120 # FIXME: insert proper C++ library support 11110 # FIXME: insert proper C++ library support
10121 ld_shlibs_CXX=no 11111 ld_shlibs_CXX=no
10130 allow_undefined_flag_CXX=unsupported 11120 allow_undefined_flag_CXX=unsupported
10131 always_export_symbols_CXX=no 11121 always_export_symbols_CXX=no
10132 enable_shared_with_static_runtimes_CXX=yes 11122 enable_shared_with_static_runtimes_CXX=yes
10133 11123
10134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10135 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11125 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'
10136 # If the export-symbols file already is a .def file (1st line 11126 # If the export-symbols file already is a .def file (1st line
10137 # is EXPORTS), use it as is; otherwise, prepend... 11127 # is EXPORTS), use it as is; otherwise, prepend...
10138 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11128 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10139 cp $export_symbols $output_objdir/$soname.def; 11129 cp $export_symbols $output_objdir/$soname.def;
10140 else 11130 else
10141 echo EXPORTS > $output_objdir/$soname.def; 11131 echo EXPORTS > $output_objdir/$soname.def;
10142 cat $export_symbols >> $output_objdir/$soname.def; 11132 cat $export_symbols >> $output_objdir/$soname.def;
10143 fi~ 11133 fi~
10144 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11134 $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'
10145 else 11135 else
10146 ld_shlibs_CXX=no 11136 ld_shlibs_CXX=no
10147 fi 11137 fi
10148 ;; 11138 ;;
10149
10150 darwin* | rhapsody*) 11139 darwin* | rhapsody*)
10151 if test "$GXX" = yes; then
10152 archive_cmds_need_lc_CXX=no
10153 case "$host_os" in 11140 case $host_os in
10154 rhapsody* | darwin1.[012]) 11141 rhapsody* | darwin1.[012])
10155 allow_undefined_flag_CXX='-undefined suppress' 11142 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10156 ;; 11143 ;;
10157 *) # Darwin 1.3 on 11144 *) # Darwin 1.3 on
10158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11145 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10159 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 11146 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11147 else
11148 case ${MACOSX_DEPLOYMENT_TARGET} in
11149 10.[012])
11150 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11151 ;;
11152 10.*)
11153 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11154 ;;
11155 esac
11156 fi
11157 ;;
11158 esac
11159 archive_cmds_need_lc_CXX=no
11160 hardcode_direct_CXX=no
11161 hardcode_automatic_CXX=yes
11162 hardcode_shlibpath_var_CXX=unsupported
11163 whole_archive_flag_spec_CXX=''
11164 link_all_deplibs_CXX=yes
11165
11166 if test "$GXX" = yes ; then
11167 lt_int_apple_cc_single_mod=no
11168 output_verbose_link_cmd='echo'
11169 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11170 lt_int_apple_cc_single_mod=yes
11171 fi
11172 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11173 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10160 else 11174 else
10161 case ${MACOSX_DEPLOYMENT_TARGET} in 11175 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'
10162 10.[012]) 11176 fi
10163 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 11177 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11178 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11179 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11180 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}'
11181 else
11182 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}'
11183 fi
11184 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}'
11185 else
11186 case $cc_basename in
11187 xlc*)
11188 output_verbose_link_cmd='echo'
11189 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11190 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11192 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11193 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}'
10164 ;; 11194 ;;
10165 10.*) 11195 *)
10166 allow_undefined_flag_CXX='-undefined dynamic_lookup' 11196 ld_shlibs_CXX=no
10167 ;; 11197 ;;
10168 esac 11198 esac
10169 fi 11199 fi
10170 ;; 11200 ;;
10171 esac
10172 lt_int_apple_cc_single_mod=no
10173 output_verbose_link_cmd='echo'
10174 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10175 lt_int_apple_cc_single_mod=yes
10176 fi
10177 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10178 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10179 else
10180 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10181 fi
10182 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10183
10184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10185 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10186 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}'
10187 else
10188 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10189 fi
10190 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}'
10191 hardcode_direct_CXX=no
10192 hardcode_automatic_CXX=yes
10193 hardcode_shlibpath_var_CXX=unsupported
10194 whole_archive_flag_spec_CXX='-all_load $convenience'
10195 link_all_deplibs_CXX=yes
10196 else
10197 ld_shlibs_CXX=no
10198 fi
10199 ;;
10200 11201
10201 dgux*) 11202 dgux*)
10202 case $cc_basename in 11203 case $cc_basename in
10203 ec++) 11204 ec++*)
10204 # FIXME: insert proper C++ library support 11205 # FIXME: insert proper C++ library support
10205 ld_shlibs_CXX=no 11206 ld_shlibs_CXX=no
10206 ;; 11207 ;;
10207 ghcx) 11208 ghcx*)
10208 # Green Hills C++ Compiler 11209 # Green Hills C++ Compiler
10209 # FIXME: insert proper C++ library support 11210 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no 11211 ld_shlibs_CXX=no
10211 ;; 11212 ;;
10212 *) 11213 *)
10213 # FIXME: insert proper C++ library support 11214 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no 11215 ld_shlibs_CXX=no
10215 ;; 11216 ;;
10216 esac 11217 esac
10217 ;; 11218 ;;
10218 freebsd12*) 11219 freebsd[12]*)
10219 # C++ shared libraries reported to be fairly broken before switch to ELF 11220 # C++ shared libraries reported to be fairly broken before switch to ELF
10220 ld_shlibs_CXX=no 11221 ld_shlibs_CXX=no
10221 ;; 11222 ;;
10222 freebsd-elf*) 11223 freebsd-elf*)
10223 archive_cmds_need_lc_CXX=no 11224 archive_cmds_need_lc_CXX=no
10224 ;; 11225 ;;
10225 freebsd* | kfreebsd*-gnu) 11226 freebsd* | dragonfly*)
10226 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11227 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10227 # conventions 11228 # conventions
10228 ld_shlibs_CXX=yes 11229 ld_shlibs_CXX=yes
10229 ;; 11230 ;;
10230 gnu*) 11231 gnu*)
10237 hardcode_minus_L_CXX=yes # Not in the search PATH, 11238 hardcode_minus_L_CXX=yes # Not in the search PATH,
10238 # but as the default 11239 # but as the default
10239 # location of the library. 11240 # location of the library.
10240 11241
10241 case $cc_basename in 11242 case $cc_basename in
10242 CC) 11243 CC*)
10243 # FIXME: insert proper C++ library support 11244 # FIXME: insert proper C++ library support
10244 ld_shlibs_CXX=no 11245 ld_shlibs_CXX=no
10245 ;; 11246 ;;
10246 aCC) 11247 aCC*)
10247 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' 11248 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'
10248 # Commands to make compiler produce verbose output that lists 11249 # Commands to make compiler produce verbose output that lists
10249 # what "hidden" libraries, object files and flags are used when 11250 # what "hidden" libraries, object files and flags are used when
10250 # linking a shared library. 11251 # linking a shared library.
10251 # 11252 #
10252 # There doesn't appear to be a way to prevent this compiler from 11253 # There doesn't appear to be a way to prevent this compiler from
10253 # explicitly linking system object files so we need to strip them 11254 # explicitly linking system object files so we need to strip them
10254 # from the output so that they don't get included in the library 11255 # from the output so that they don't get included in the library
10255 # dependencies. 11256 # dependencies.
10256 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11257 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'
10257 ;; 11258 ;;
10258 *) 11259 *)
10259 if test "$GXX" = yes; then 11260 if test "$GXX" = yes; then
10260 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' 11261 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'
10261 else 11262 else
10265 ;; 11266 ;;
10266 esac 11267 esac
10267 ;; 11268 ;;
10268 hpux10*|hpux11*) 11269 hpux10*|hpux11*)
10269 if test $with_gnu_ld = no; then 11270 if test $with_gnu_ld = no; then
11271 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11272 hardcode_libdir_separator_CXX=:
11273
10270 case "$host_cpu" in 11274 case $host_cpu in
10271 hppa*64*) 11275 hppa*64*|ia64*)
10272 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10273 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11276 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10274 hardcode_libdir_separator_CXX=:
10275 ;;
10276 ia64*)
10277 hardcode_libdir_flag_spec_CXX='-L$libdir'
10278 ;; 11277 ;;
10279 *) 11278 *)
10280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10281 hardcode_libdir_separator_CXX=:
10282 export_dynamic_flag_spec_CXX='${wl}-E' 11279 export_dynamic_flag_spec_CXX='${wl}-E'
10283 ;; 11280 ;;
10284 esac 11281 esac
10285 fi 11282 fi
10286 case "$host_cpu" in 11283 case $host_cpu in
10287 hppa*64*) 11284 hppa*64*|ia64*)
10288 hardcode_direct_CXX=no 11285 hardcode_direct_CXX=no
10289 hardcode_shlibpath_var_CXX=no 11286 hardcode_shlibpath_var_CXX=no
10290 ;;
10291 ia64*)
10292 hardcode_direct_CXX=no
10293 hardcode_shlibpath_var_CXX=no
10294 hardcode_minus_L_CXX=yes # Not in the search PATH,
10295 # but as the default
10296 # location of the library.
10297 ;; 11287 ;;
10298 *) 11288 *)
10299 hardcode_direct_CXX=yes 11289 hardcode_direct_CXX=yes
10300 hardcode_minus_L_CXX=yes # Not in the search PATH, 11290 hardcode_minus_L_CXX=yes # Not in the search PATH,
10301 # but as the default 11291 # but as the default
10302 # location of the library. 11292 # location of the library.
10303 ;; 11293 ;;
10304 esac 11294 esac
10305 11295
10306 case $cc_basename in 11296 case $cc_basename in
10307 CC) 11297 CC*)
10308 # FIXME: insert proper C++ library support 11298 # FIXME: insert proper C++ library support
10309 ld_shlibs_CXX=no 11299 ld_shlibs_CXX=no
10310 ;; 11300 ;;
10311 aCC) 11301 aCC*)
10312 case "$host_cpu" in 11302 case $host_cpu in
10313 hppa*64*|ia64*) 11303 hppa*64*)
10314 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11304 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11305 ;;
11306 ia64*)
11307 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10315 ;; 11308 ;;
10316 *) 11309 *)
10317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10318 ;; 11311 ;;
10319 esac 11312 esac
10328 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' 11321 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'
10329 ;; 11322 ;;
10330 *) 11323 *)
10331 if test "$GXX" = yes; then 11324 if test "$GXX" = yes; then
10332 if test $with_gnu_ld = no; then 11325 if test $with_gnu_ld = no; then
10333 case "$host_cpu" in 11326 case $host_cpu in
10334 ia64*|hppa*64*) 11327 hppa*64*)
10335 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11328 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329 ;;
11330 ia64*)
11331 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10336 ;; 11332 ;;
10337 *) 11333 *)
10338 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' 11334 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'
10339 ;; 11335 ;;
10340 esac 11336 esac
10344 ld_shlibs_CXX=no 11340 ld_shlibs_CXX=no
10345 fi 11341 fi
10346 ;; 11342 ;;
10347 esac 11343 esac
10348 ;; 11344 ;;
11345 interix3*)
11346 hardcode_direct_CXX=no
11347 hardcode_shlibpath_var_CXX=no
11348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11349 export_dynamic_flag_spec_CXX='${wl}-E'
11350 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11351 # Instead, shared libraries are loaded at an image base (0x10000000 by
11352 # default) and relocated if they conflict, which is a slow very memory
11353 # consuming and fragmenting process. To avoid this, we pick a random,
11354 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11355 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11356 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'
11357 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'
11358 ;;
10349 irix5* | irix6*) 11359 irix5* | irix6*)
10350 case $cc_basename in 11360 case $cc_basename in
10351 CC) 11361 CC*)
10352 # SGI C++ 11362 # SGI C++
10353 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 ${objdir}/so_locations -o $lib' 11363 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'
10354 11364
10355 # Archives containing C++ object files must be created using 11365 # Archives containing C++ object files must be created using
10356 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11366 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10357 # necessary to make sure instantiated templates are included 11367 # necessary to make sure instantiated templates are included
10358 # in the archive. 11368 # in the archive.
10359 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11369 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10360 ;; 11370 ;;
10361 *) 11371 *)
10362 if test "$GXX" = yes; then 11372 if test "$GXX" = yes; then
10363 if test "$with_gnu_ld" = no; then 11373 if test "$with_gnu_ld" = no; then
10364 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}${objdir}/so_locations -o $lib' 11374 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'
10365 else 11375 else
10366 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' 11376 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'
10367 fi 11377 fi
10368 fi 11378 fi
10369 link_all_deplibs_CXX=yes 11379 link_all_deplibs_CXX=yes
10370 ;; 11380 ;;
10371 esac 11381 esac
10372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11382 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10373 hardcode_libdir_separator_CXX=: 11383 hardcode_libdir_separator_CXX=:
10374 ;; 11384 ;;
10375 linux*) 11385 linux* | k*bsd*-gnu)
10376 case $cc_basename in 11386 case $cc_basename in
10377 KCC) 11387 KCC*)
10378 # Kuck and Associates, Inc. (KAI) C++ Compiler 11388 # Kuck and Associates, Inc. (KAI) C++ Compiler
10379 11389
10380 # KCC will only create a shared library if the output file 11390 # KCC will only create a shared library if the output file
10381 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11391 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10382 # to its proper name (with version) after linking. 11392 # to its proper name (with version) after linking.
10397 11407
10398 # Archives containing C++ object files must be created using 11408 # Archives containing C++ object files must be created using
10399 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11409 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10400 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11410 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10401 ;; 11411 ;;
10402 icpc) 11412 icpc*)
10403 # Intel C++ 11413 # Intel C++
10404 with_gnu_ld=yes 11414 with_gnu_ld=yes
11415 # version 8.0 and above of icpc choke on multiply defined symbols
11416 # if we add $predep_objects and $postdep_objects, however 7.1 and
11417 # earlier do not add the objects themselves.
11418 case `$CC -V 2>&1` in
11419 *"Version 7."*)
11420 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11421 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'
11422 ;;
11423 *) # Version 8.0 or newer
11424 tmp_idyn=
11425 case $host_cpu in
11426 ia64*) tmp_idyn=' -i_dynamic';;
11427 esac
11428 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11429 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'
11430 ;;
11431 esac
10405 archive_cmds_need_lc_CXX=no 11432 archive_cmds_need_lc_CXX=no
10406 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407 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'
10408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10410 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11435 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10411 ;; 11436 ;;
11437 pgCC*)
11438 # Portland Group C++ compiler
11439 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11440 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'
11441
11442 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11444 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'
11445 ;;
10412 cxx) 11446 cxx*)
10413 # Compaq C++ 11447 # Compaq C++
10414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 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' 11449 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'
10416 11450
10417 runpath_var=LD_RUN_PATH 11451 runpath_var=LD_RUN_PATH
10438 # FIXME: insert proper C++ library support 11472 # FIXME: insert proper C++ library support
10439 ld_shlibs_CXX=no 11473 ld_shlibs_CXX=no
10440 ;; 11474 ;;
10441 mvs*) 11475 mvs*)
10442 case $cc_basename in 11476 case $cc_basename in
10443 cxx) 11477 cxx*)
10444 # FIXME: insert proper C++ library support 11478 # FIXME: insert proper C++ library support
10445 ld_shlibs_CXX=no 11479 ld_shlibs_CXX=no
10446 ;; 11480 ;;
10447 *) 11481 *)
10448 # FIXME: insert proper C++ library support 11482 # FIXME: insert proper C++ library support
10449 ld_shlibs_CXX=no 11483 ld_shlibs_CXX=no
10450 ;; 11484 ;;
10451 esac 11485 esac
10452 ;; 11486 ;;
10453 netbsd*) 11487 netbsd* | netbsdelf*-gnu)
10454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10455 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11489 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10456 wlarc= 11490 wlarc=
10457 hardcode_libdir_flag_spec_CXX='-R$libdir' 11491 hardcode_libdir_flag_spec_CXX='-R$libdir'
10458 hardcode_direct_CXX=yes 11492 hardcode_direct_CXX=yes
10459 hardcode_shlibpath_var_CXX=no 11493 hardcode_shlibpath_var_CXX=no
10460 fi 11494 fi
10461 # Workaround some broken pre-1.5 toolchains 11495 # Workaround some broken pre-1.5 toolchains
10462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10463 ;; 11497 ;;
11498 openbsd2*)
11499 # C++ shared libraries are fairly broken
11500 ld_shlibs_CXX=no
11501 ;;
11502 openbsd*)
11503 hardcode_direct_CXX=yes
11504 hardcode_shlibpath_var_CXX=no
11505 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11506 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11508 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11509 export_dynamic_flag_spec_CXX='${wl}-E'
11510 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11511 fi
11512 output_verbose_link_cmd='echo'
11513 ;;
10464 osf3*) 11514 osf3*)
10465 case $cc_basename in 11515 case $cc_basename in
10466 KCC) 11516 KCC*)
10467 # Kuck and Associates, Inc. (KAI) C++ Compiler 11517 # Kuck and Associates, Inc. (KAI) C++ Compiler
10468 11518
10469 # KCC will only create a shared library if the output file 11519 # KCC will only create a shared library if the output file
10470 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11520 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10471 # to its proper name (with version) after linking. 11521 # to its proper name (with version) after linking.
10477 # Archives containing C++ object files must be created using 11527 # Archives containing C++ object files must be created using
10478 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11528 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10479 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11529 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10480 11530
10481 ;; 11531 ;;
10482 RCC) 11532 RCC*)
10483 # Rational C++ 2.4.1 11533 # Rational C++ 2.4.1
10484 # FIXME: insert proper C++ library support 11534 # FIXME: insert proper C++ library support
10485 ld_shlibs_CXX=no 11535 ld_shlibs_CXX=no
10486 ;; 11536 ;;
10487 cxx) 11537 cxx*)
10488 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11538 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10489 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 ${objdir}/so_locations -o $lib' 11539 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'
10490 11540
10491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10492 hardcode_libdir_separator_CXX=: 11542 hardcode_libdir_separator_CXX=:
10493 11543
10494 # Commands to make compiler produce verbose output that lists 11544 # Commands to make compiler produce verbose output that lists
10502 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' 11552 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'
10503 ;; 11553 ;;
10504 *) 11554 *)
10505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11555 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11556 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10507 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}${objdir}/so_locations -o $lib' 11557 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'
10508 11558
10509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10510 hardcode_libdir_separator_CXX=: 11560 hardcode_libdir_separator_CXX=:
10511 11561
10512 # Commands to make compiler produce verbose output that lists 11562 # Commands to make compiler produce verbose output that lists
10521 ;; 11571 ;;
10522 esac 11572 esac
10523 ;; 11573 ;;
10524 osf4* | osf5*) 11574 osf4* | osf5*)
10525 case $cc_basename in 11575 case $cc_basename in
10526 KCC) 11576 KCC*)
10527 # Kuck and Associates, Inc. (KAI) C++ Compiler 11577 # Kuck and Associates, Inc. (KAI) C++ Compiler
10528 11578
10529 # KCC will only create a shared library if the output file 11579 # KCC will only create a shared library if the output file
10530 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11580 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10531 # to its proper name (with version) after linking. 11581 # to its proper name (with version) after linking.
10536 11586
10537 # Archives containing C++ object files must be created using 11587 # Archives containing C++ object files must be created using
10538 # the KAI C++ compiler. 11588 # the KAI C++ compiler.
10539 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11589 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10540 ;; 11590 ;;
10541 RCC) 11591 RCC*)
10542 # Rational C++ 2.4.1 11592 # Rational C++ 2.4.1
10543 # FIXME: insert proper C++ library support 11593 # FIXME: insert proper C++ library support
10544 ld_shlibs_CXX=no 11594 ld_shlibs_CXX=no
10545 ;; 11595 ;;
10546 cxx) 11596 cxx*)
10547 allow_undefined_flag_CXX=' -expect_unresolved \*' 11597 allow_undefined_flag_CXX=' -expect_unresolved \*'
10548 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 ${objdir}/so_locations -o $lib' 11598 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'
10549 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11599 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10550 echo "-hidden">> $lib.exp~ 11600 echo "-hidden">> $lib.exp~
10551 $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 $objdir/so_locations -o $lib~ 11601 $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~
10552 $rm $lib.exp' 11602 $rm $lib.exp'
10553 11603
10554 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11604 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10555 hardcode_libdir_separator_CXX=: 11605 hardcode_libdir_separator_CXX=:
10556 11606
10565 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' 11615 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'
10566 ;; 11616 ;;
10567 *) 11617 *)
10568 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11618 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10569 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11619 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10570 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}${objdir}/so_locations -o $lib' 11620 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'
10571 11621
10572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10573 hardcode_libdir_separator_CXX=: 11623 hardcode_libdir_separator_CXX=:
10574 11624
10575 # Commands to make compiler produce verbose output that lists 11625 # Commands to make compiler produce verbose output that lists
10586 ;; 11636 ;;
10587 psos*) 11637 psos*)
10588 # FIXME: insert proper C++ library support 11638 # FIXME: insert proper C++ library support
10589 ld_shlibs_CXX=no 11639 ld_shlibs_CXX=no
10590 ;; 11640 ;;
10591 sco*)
10592 archive_cmds_need_lc_CXX=no
10593 case $cc_basename in
10594 CC)
10595 # FIXME: insert proper C++ library support
10596 ld_shlibs_CXX=no
10597 ;;
10598 *)
10599 # FIXME: insert proper C++ library support
10600 ld_shlibs_CXX=no
10601 ;;
10602 esac
10603 ;;
10604 sunos4*) 11641 sunos4*)
10605 case $cc_basename in 11642 case $cc_basename in
10606 CC) 11643 CC*)
10607 # Sun C++ 4.x 11644 # Sun C++ 4.x
10608 # FIXME: insert proper C++ library support 11645 # FIXME: insert proper C++ library support
10609 ld_shlibs_CXX=no 11646 ld_shlibs_CXX=no
10610 ;; 11647 ;;
10611 lcc) 11648 lcc*)
10612 # Lucid 11649 # Lucid
10613 # FIXME: insert proper C++ library support 11650 # FIXME: insert proper C++ library support
10614 ld_shlibs_CXX=no 11651 ld_shlibs_CXX=no
10615 ;; 11652 ;;
10616 *) 11653 *)
10619 ;; 11656 ;;
10620 esac 11657 esac
10621 ;; 11658 ;;
10622 solaris*) 11659 solaris*)
10623 case $cc_basename in 11660 case $cc_basename in
10624 CC) 11661 CC*)
10625 # Sun C++ 4.2, 5.x and Centerline C++ 11662 # Sun C++ 4.2, 5.x and Centerline C++
11663 archive_cmds_need_lc_CXX=yes
10626 no_undefined_flag_CXX=' -zdefs' 11664 no_undefined_flag_CXX=' -zdefs'
10627 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11665 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11666 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10629 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11667 $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'
10630 11668
10631 hardcode_libdir_flag_spec_CXX='-R$libdir' 11669 hardcode_libdir_flag_spec_CXX='-R$libdir'
10632 hardcode_shlibpath_var_CXX=no 11670 hardcode_shlibpath_var_CXX=no
10633 case $host_os in 11671 case $host_os in
10634 solaris2.0-5 | solaris2.0-5.*) ;; 11672 solaris2.[0-5] | solaris2.[0-5].*) ;;
10635 *) 11673 *)
10636 # The C++ compiler is used as linker so we must use $wl 11674 # The C++ compiler is used as linker so we must use $wl
10637 # flag to pass the commands to the underlying system 11675 # flag to pass the commands to the underlying system
10638 # linker. 11676 # linker. We must also pass each convience library through
11677 # to the system linker between allextract/defaultextract.
11678 # The C++ compiler will combine linker options so we
11679 # cannot just pass the convience library names through
11680 # without $wl.
10639 # Supported since Solaris 2.6 (maybe 2.5.1?) 11681 # Supported since Solaris 2.6 (maybe 2.5.1?)
10640 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11682 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10641 ;; 11683 ;;
10642 esac 11684 esac
10643 link_all_deplibs_CXX=yes 11685 link_all_deplibs_CXX=yes
10644 11686
10645 # Commands to make compiler produce verbose output that lists 11687 output_verbose_link_cmd='echo'
10646 # what "hidden" libraries, object files and flags are used when
10647 # linking a shared library.
10648 #
10649 # There doesn't appear to be a way to prevent this compiler from
10650 # explicitly linking system object files so we need to strip them
10651 # from the output so that they don't get included in the library
10652 # dependencies.
10653 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10654 11688
10655 # Archives containing C++ object files must be created using 11689 # Archives containing C++ object files must be created using
10656 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10657 # necessary to make sure instantiated templates are included 11691 # necessary to make sure instantiated templates are included
10658 # in the archive. 11692 # in the archive.
10659 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10660 ;; 11694 ;;
10661 gcx) 11695 gcx*)
10662 # Green Hills C++ Compiler 11696 # Green Hills C++ Compiler
10663 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10664 11698
10665 # The C++ compiler must be used to create the archive. 11699 # The C++ compiler must be used to create the archive.
10666 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11700 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10694 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11728 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10695 fi 11729 fi
10696 ;; 11730 ;;
10697 esac 11731 esac
10698 ;; 11732 ;;
10699 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11734 no_undefined_flag_CXX='${wl}-z,text'
10700 archive_cmds_need_lc_CXX=no 11735 archive_cmds_need_lc_CXX=no
11736 hardcode_shlibpath_var_CXX=no
11737 runpath_var='LD_RUN_PATH'
11738
11739 case $cc_basename in
11740 CC*)
11741 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11742 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11743 ;;
11744 *)
11745 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11747 ;;
11748 esac
11749 ;;
11750 sysv5* | sco3.2v5* | sco5v6*)
11751 # Note: We can NOT use -z defs as we might desire, because we do not
11752 # link with -lc, and that would cause any symbols used from libc to
11753 # always be unresolved, which means just about no library would
11754 # ever link correctly. If we're not using GNU ld we use -z text
11755 # though, which does catch some bad symbols but isn't as heavy-handed
11756 # as -z defs.
11757 # For security reasons, it is highly recommended that you always
11758 # use absolute paths for naming shared libraries, and exclude the
11759 # DT_RUNPATH tag from executables and libraries. But doing so
11760 # requires that you compile everything twice, which is a pain.
11761 # So that behaviour is only enabled if SCOABSPATH is set to a
11762 # non-empty value in the environment. Most likely only useful for
11763 # creating official distributions of packages.
11764 # This is a hack until libtool officially supports absolute path
11765 # names for shared libraries.
11766 no_undefined_flag_CXX='${wl}-z,text'
11767 allow_undefined_flag_CXX='${wl}-z,nodefs'
11768 archive_cmds_need_lc_CXX=no
11769 hardcode_shlibpath_var_CXX=no
11770 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11771 hardcode_libdir_separator_CXX=':'
11772 link_all_deplibs_CXX=yes
11773 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11774 runpath_var='LD_RUN_PATH'
11775
11776 case $cc_basename in
11777 CC*)
11778 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 ;;
11781 *)
11782 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 ;;
11785 esac
10701 ;; 11786 ;;
10702 tandem*) 11787 tandem*)
10703 case $cc_basename in 11788 case $cc_basename in
10704 NCC) 11789 NCC*)
10705 # NonStop-UX NCC 3.20 11790 # NonStop-UX NCC 3.20
10706 # FIXME: insert proper C++ library support 11791 # FIXME: insert proper C++ library support
10707 ld_shlibs_CXX=no 11792 ld_shlibs_CXX=no
10708 ;; 11793 ;;
10709 *) 11794 *)
10719 *) 11804 *)
10720 # FIXME: insert proper C++ library support 11805 # FIXME: insert proper C++ library support
10721 ld_shlibs_CXX=no 11806 ld_shlibs_CXX=no
10722 ;; 11807 ;;
10723esac 11808esac
10724echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11809{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10725echo "${ECHO_T}$ld_shlibs_CXX" >&6 11810echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10726test "$ld_shlibs_CXX" = no && can_build_shared=no 11811test "$ld_shlibs_CXX" = no && can_build_shared=no
10727 11812
10728GCC_CXX="$GXX" 11813GCC_CXX="$GXX"
10729LD_CXX="$LD" 11814LD_CXX="$LD"
10730 11815
10752 pre_test_object_deps_done=no 11837 pre_test_object_deps_done=no
10753 11838
10754 # The `*' in the case matches for architectures that use `case' in 11839 # The `*' in the case matches for architectures that use `case' in
10755 # $output_verbose_cmd can trigger glob expansion during the loop 11840 # $output_verbose_cmd can trigger glob expansion during the loop
10756 # eval without this substitution. 11841 # eval without this substitution.
10757 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 11842 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10758 11843
10759 for p in `eval $output_verbose_link_cmd`; do 11844 for p in `eval $output_verbose_link_cmd`; do
10760 case $p in 11845 case $p in
10761 11846
10762 -L* | -R* | -l*) 11847 -L* | -R* | -l*)
10828 echo "libtool.m4: error: problem compiling CXX test program" 11913 echo "libtool.m4: error: problem compiling CXX test program"
10829fi 11914fi
10830 11915
10831$rm -f confest.$objext 11916$rm -f confest.$objext
10832 11917
11918# PORTME: override above test on systems where it is broken
11919case $host_os in
11920interix3*)
11921 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11922 # hack all around it, let's just trust "g++" to DTRT.
11923 predep_objects_CXX=
11924 postdep_objects_CXX=
11925 postdeps_CXX=
11926 ;;
11927
11928solaris*)
11929 case $cc_basename in
11930 CC*)
11931 # Adding this requires a known-good setup of shared libraries for
11932 # Sun compiler versions before 5.6, else PIC objects from an old
11933 # archive will be linked into the output, leading to subtle bugs.
11934 postdeps_CXX='-lCstd -lCrun'
11935 ;;
11936 esac
11937 ;;
11938esac
11939
11940
10833case " $postdeps_CXX " in 11941case " $postdeps_CXX " in
10834*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11942*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10835esac 11943esac
10836 11944
10837lt_prog_compiler_wl_CXX= 11945lt_prog_compiler_wl_CXX=
10838lt_prog_compiler_pic_CXX= 11946lt_prog_compiler_pic_CXX=
10839lt_prog_compiler_static_CXX= 11947lt_prog_compiler_static_CXX=
10840 11948
10841echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11949{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10842echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11950echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10843 11951
10844 # C++ specific cases for pic, static, wl, etc. 11952 # C++ specific cases for pic, static, wl, etc.
10845 if test "$GXX" = yes; then 11953 if test "$GXX" = yes; then
10846 lt_prog_compiler_wl_CXX='-Wl,' 11954 lt_prog_compiler_wl_CXX='-Wl,'
10847 lt_prog_compiler_static_CXX='-static' 11955 lt_prog_compiler_static_CXX='-static'
10875 ;; 11983 ;;
10876 *djgpp*) 11984 *djgpp*)
10877 # DJGPP does not support shared libraries at all 11985 # DJGPP does not support shared libraries at all
10878 lt_prog_compiler_pic_CXX= 11986 lt_prog_compiler_pic_CXX=
10879 ;; 11987 ;;
11988 interix3*)
11989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11990 # Instead, we relocate shared libraries at runtime.
11991 ;;
10880 sysv4*MP*) 11992 sysv4*MP*)
10881 if test -d /usr/nec; then 11993 if test -d /usr/nec; then
10882 lt_prog_compiler_pic_CXX=-Kconform_pic 11994 lt_prog_compiler_pic_CXX=-Kconform_pic
10883 fi 11995 fi
10884 ;; 11996 ;;
10885 hpux*) 11997 hpux*)
10886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10887 # not for PA HP-UX. 11999 # not for PA HP-UX.
10888 case "$host_cpu" in 12000 case $host_cpu in
10889 hppa*64*|ia64*) 12001 hppa*64*|ia64*)
10890 ;; 12002 ;;
10891 *) 12003 *)
10892 lt_prog_compiler_pic_CXX='-fPIC' 12004 lt_prog_compiler_pic_CXX='-fPIC'
10893 ;; 12005 ;;
10908 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12020 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10909 fi 12021 fi
10910 ;; 12022 ;;
10911 chorus*) 12023 chorus*)
10912 case $cc_basename in 12024 case $cc_basename in
10913 cxch68) 12025 cxch68*)
10914 # Green Hills C++ Compiler 12026 # Green Hills C++ Compiler
10915 # _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" 12027 # _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"
10916 ;; 12028 ;;
10917 esac 12029 esac
10918 ;; 12030 ;;
12031 darwin*)
12032 # PIC is the default on this platform
12033 # Common symbols not allowed in MH_DYLIB files
12034 case $cc_basename in
12035 xlc*)
12036 lt_prog_compiler_pic_CXX='-qnocommon'
12037 lt_prog_compiler_wl_CXX='-Wl,'
12038 ;;
12039 esac
12040 ;;
10919 dgux*) 12041 dgux*)
10920 case $cc_basename in 12042 case $cc_basename in
10921 ec++) 12043 ec++*)
10922 lt_prog_compiler_pic_CXX='-KPIC' 12044 lt_prog_compiler_pic_CXX='-KPIC'
10923 ;; 12045 ;;
10924 ghcx) 12046 ghcx*)
10925 # Green Hills C++ Compiler 12047 # Green Hills C++ Compiler
10926 lt_prog_compiler_pic_CXX='-pic' 12048 lt_prog_compiler_pic_CXX='-pic'
10927 ;; 12049 ;;
10928 *) 12050 *)
10929 ;; 12051 ;;
10930 esac 12052 esac
10931 ;; 12053 ;;
10932 freebsd* | kfreebsd*-gnu) 12054 freebsd* | dragonfly*)
10933 # FreeBSD uses GNU C++ 12055 # FreeBSD uses GNU C++
10934 ;; 12056 ;;
10935 hpux9* | hpux10* | hpux11*) 12057 hpux9* | hpux10* | hpux11*)
10936 case $cc_basename in 12058 case $cc_basename in
10937 CC) 12059 CC*)
10938 lt_prog_compiler_wl_CXX='-Wl,' 12060 lt_prog_compiler_wl_CXX='-Wl,'
10939 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12061 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10940 if test "$host_cpu" != ia64; then 12062 if test "$host_cpu" != ia64; then
10941 lt_prog_compiler_pic_CXX='+Z' 12063 lt_prog_compiler_pic_CXX='+Z'
10942 fi 12064 fi
10943 ;; 12065 ;;
10944 aCC) 12066 aCC*)
10945 lt_prog_compiler_wl_CXX='-Wl,' 12067 lt_prog_compiler_wl_CXX='-Wl,'
10946 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10947 case "$host_cpu" in 12069 case $host_cpu in
10948 hppa*64*|ia64*) 12070 hppa*64*|ia64*)
10949 # +Z the default 12071 # +Z the default
10950 ;; 12072 ;;
10951 *) 12073 *)
10952 lt_prog_compiler_pic_CXX='+Z' 12074 lt_prog_compiler_pic_CXX='+Z'
10955 ;; 12077 ;;
10956 *) 12078 *)
10957 ;; 12079 ;;
10958 esac 12080 esac
10959 ;; 12081 ;;
12082 interix*)
12083 # This is c89, which is MS Visual C++ (no shared libs)
12084 # Anyone wants to do a port?
12085 ;;
10960 irix5* | irix6* | nonstopux*) 12086 irix5* | irix6* | nonstopux*)
10961 case $cc_basename in 12087 case $cc_basename in
10962 CC) 12088 CC*)
10963 lt_prog_compiler_wl_CXX='-Wl,' 12089 lt_prog_compiler_wl_CXX='-Wl,'
10964 lt_prog_compiler_static_CXX='-non_shared' 12090 lt_prog_compiler_static_CXX='-non_shared'
10965 # CC pic flag -KPIC is the default. 12091 # CC pic flag -KPIC is the default.
10966 ;; 12092 ;;
10967 *) 12093 *)
10968 ;; 12094 ;;
10969 esac 12095 esac
10970 ;; 12096 ;;
10971 linux*) 12097 linux* | k*bsd*-gnu)
10972 case $cc_basename in 12098 case $cc_basename in
10973 KCC) 12099 KCC*)
10974 # KAI C++ Compiler 12100 # KAI C++ Compiler
10975 lt_prog_compiler_wl_CXX='--backend -Wl,' 12101 lt_prog_compiler_wl_CXX='--backend -Wl,'
10976 lt_prog_compiler_pic_CXX='-fPIC' 12102 lt_prog_compiler_pic_CXX='-fPIC'
10977 ;; 12103 ;;
10978 icpc) 12104 icpc* | ecpc*)
10979 # Intel C++ 12105 # Intel C++
10980 lt_prog_compiler_wl_CXX='-Wl,' 12106 lt_prog_compiler_wl_CXX='-Wl,'
10981 lt_prog_compiler_pic_CXX='-KPIC' 12107 lt_prog_compiler_pic_CXX='-KPIC'
10982 lt_prog_compiler_static_CXX='-static' 12108 lt_prog_compiler_static_CXX='-static'
10983 ;; 12109 ;;
12110 pgCC*)
12111 # Portland Group C++ compiler.
12112 lt_prog_compiler_wl_CXX='-Wl,'
12113 lt_prog_compiler_pic_CXX='-fpic'
12114 lt_prog_compiler_static_CXX='-Bstatic'
12115 ;;
10984 cxx) 12116 cxx*)
10985 # Compaq C++ 12117 # Compaq C++
10986 # Make sure the PIC flag is empty. It appears that all Alpha 12118 # Make sure the PIC flag is empty. It appears that all Alpha
10987 # Linux and Compaq Tru64 Unix objects are PIC. 12119 # Linux and Compaq Tru64 Unix objects are PIC.
10988 lt_prog_compiler_pic_CXX= 12120 lt_prog_compiler_pic_CXX=
10989 lt_prog_compiler_static_CXX='-non_shared' 12121 lt_prog_compiler_static_CXX='-non_shared'
10996 ;; 12128 ;;
10997 m88k*) 12129 m88k*)
10998 ;; 12130 ;;
10999 mvs*) 12131 mvs*)
11000 case $cc_basename in 12132 case $cc_basename in
11001 cxx) 12133 cxx*)
11002 lt_prog_compiler_pic_CXX='-W c,exportall' 12134 lt_prog_compiler_pic_CXX='-W c,exportall'
11003 ;; 12135 ;;
11004 *) 12136 *)
11005 ;; 12137 ;;
11006 esac 12138 esac
11007 ;; 12139 ;;
11008 netbsd*) 12140 netbsd* | netbsdelf*-gnu)
11009 ;; 12141 ;;
11010 osf3* | osf4* | osf5*) 12142 osf3* | osf4* | osf5*)
11011 case $cc_basename in 12143 case $cc_basename in
11012 KCC) 12144 KCC*)
11013 lt_prog_compiler_wl_CXX='--backend -Wl,' 12145 lt_prog_compiler_wl_CXX='--backend -Wl,'
11014 ;; 12146 ;;
11015 RCC) 12147 RCC*)
11016 # Rational C++ 2.4.1 12148 # Rational C++ 2.4.1
11017 lt_prog_compiler_pic_CXX='-pic' 12149 lt_prog_compiler_pic_CXX='-pic'
11018 ;; 12150 ;;
11019 cxx) 12151 cxx*)
11020 # Digital/Compaq C++ 12152 # Digital/Compaq C++
11021 lt_prog_compiler_wl_CXX='-Wl,' 12153 lt_prog_compiler_wl_CXX='-Wl,'
11022 # Make sure the PIC flag is empty. It appears that all Alpha 12154 # Make sure the PIC flag is empty. It appears that all Alpha
11023 # Linux and Compaq Tru64 Unix objects are PIC. 12155 # Linux and Compaq Tru64 Unix objects are PIC.
11024 lt_prog_compiler_pic_CXX= 12156 lt_prog_compiler_pic_CXX=
11028 ;; 12160 ;;
11029 esac 12161 esac
11030 ;; 12162 ;;
11031 psos*) 12163 psos*)
11032 ;; 12164 ;;
11033 sco*)
11034 case $cc_basename in
11035 CC)
11036 lt_prog_compiler_pic_CXX='-fPIC'
11037 ;;
11038 *)
11039 ;;
11040 esac
11041 ;;
11042 solaris*) 12165 solaris*)
11043 case $cc_basename in 12166 case $cc_basename in
11044 CC) 12167 CC*)
11045 # Sun C++ 4.2, 5.x and Centerline C++ 12168 # Sun C++ 4.2, 5.x and Centerline C++
11046 lt_prog_compiler_pic_CXX='-KPIC' 12169 lt_prog_compiler_pic_CXX='-KPIC'
11047 lt_prog_compiler_static_CXX='-Bstatic' 12170 lt_prog_compiler_static_CXX='-Bstatic'
11048 lt_prog_compiler_wl_CXX='-Qoption ld ' 12171 lt_prog_compiler_wl_CXX='-Qoption ld '
11049 ;; 12172 ;;
11050 gcx) 12173 gcx*)
11051 # Green Hills C++ Compiler 12174 # Green Hills C++ Compiler
11052 lt_prog_compiler_pic_CXX='-PIC' 12175 lt_prog_compiler_pic_CXX='-PIC'
11053 ;; 12176 ;;
11054 *) 12177 *)
11055 ;; 12178 ;;
11056 esac 12179 esac
11057 ;; 12180 ;;
11058 sunos4*) 12181 sunos4*)
11059 case $cc_basename in 12182 case $cc_basename in
11060 CC) 12183 CC*)
11061 # Sun C++ 4.x 12184 # Sun C++ 4.x
11062 lt_prog_compiler_pic_CXX='-pic' 12185 lt_prog_compiler_pic_CXX='-pic'
11063 lt_prog_compiler_static_CXX='-Bstatic' 12186 lt_prog_compiler_static_CXX='-Bstatic'
11064 ;; 12187 ;;
11065 lcc) 12188 lcc*)
11066 # Lucid 12189 # Lucid
11067 lt_prog_compiler_pic_CXX='-pic' 12190 lt_prog_compiler_pic_CXX='-pic'
11068 ;; 12191 ;;
11069 *) 12192 *)
11070 ;; 12193 ;;
11071 esac 12194 esac
11072 ;; 12195 ;;
11073 tandem*) 12196 tandem*)
11074 case $cc_basename in 12197 case $cc_basename in
11075 NCC) 12198 NCC*)
11076 # NonStop-UX NCC 3.20 12199 # NonStop-UX NCC 3.20
11077 lt_prog_compiler_pic_CXX='-KPIC' 12200 lt_prog_compiler_pic_CXX='-KPIC'
11078 ;; 12201 ;;
11079 *) 12202 *)
11080 ;; 12203 ;;
11081 esac 12204 esac
11082 ;; 12205 ;;
11083 unixware*) 12206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12207 case $cc_basename in
12208 CC*)
12209 lt_prog_compiler_wl_CXX='-Wl,'
12210 lt_prog_compiler_pic_CXX='-KPIC'
12211 lt_prog_compiler_static_CXX='-Bstatic'
12212 ;;
12213 esac
11084 ;; 12214 ;;
11085 vxworks*) 12215 vxworks*)
11086 ;; 12216 ;;
11087 *) 12217 *)
11088 lt_prog_compiler_can_build_shared_CXX=no 12218 lt_prog_compiler_can_build_shared_CXX=no
11089 ;; 12219 ;;
11090 esac 12220 esac
11091 fi 12221 fi
11092 12222
11093echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12223{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11094echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12224echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11095 12225
11096# 12226#
11097# Check to make sure the PIC flag actually works. 12227# Check to make sure the PIC flag actually works.
11098# 12228#
11099if test -n "$lt_prog_compiler_pic_CXX"; then 12229if test -n "$lt_prog_compiler_pic_CXX"; then
11100 12230
11101echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12231{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11102echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11103if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12233if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6 12234 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else 12235else
11106 lt_prog_compiler_pic_works_CXX=no 12236 lt_prog_compiler_pic_works_CXX=no
11107 ac_outfile=conftest.$ac_objext 12237 ac_outfile=conftest.$ac_objext
11111 # (2) before a word containing "conftest.", or (3) at the end. 12241 # (2) before a word containing "conftest.", or (3) at the end.
11112 # Note that $ac_compile itself does not contain backslashes and begins 12242 # Note that $ac_compile itself does not contain backslashes and begins
11113 # with a dollar sign (not a hyphen), so the echo should work correctly. 12243 # with a dollar sign (not a hyphen), so the echo should work correctly.
11114 # The option is referenced via a variable to avoid confusing sed. 12244 # The option is referenced via a variable to avoid confusing sed.
11115 lt_compile=`echo "$ac_compile" | $SED \ 12245 lt_compile=`echo "$ac_compile" | $SED \
11116 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11118 -e 's:$: $lt_compiler_flag:'` 12248 -e 's:$: $lt_compiler_flag:'`
11119 (eval echo "\"\$as_me:11119: $lt_compile\"" >&5) 12249 (eval echo "\"\$as_me:12249: $lt_compile\"" >&5)
11120 (eval "$lt_compile" 2>conftest.err) 12250 (eval "$lt_compile" 2>conftest.err)
11121 ac_status=$? 12251 ac_status=$?
11122 cat conftest.err >&5 12252 cat conftest.err >&5
11123 echo "$as_me:11123: \$? = $ac_status" >&5 12253 echo "$as_me:12253: \$? = $ac_status" >&5
11124 if (exit $ac_status) && test -s "$ac_outfile"; then 12254 if (exit $ac_status) && test -s "$ac_outfile"; then
11125 # The compiler can only warn and ignore the option if not recognized 12255 # The compiler can only warn and ignore the option if not recognized
11126 # So say no if there are warnings 12256 # So say no if there are warnings other than the usual output.
11127 if test ! -s conftest.err; then 12257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12259 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11128 lt_prog_compiler_pic_works_CXX=yes 12260 lt_prog_compiler_pic_works_CXX=yes
11129 fi 12261 fi
11130 fi 12262 fi
11131 $rm conftest* 12263 $rm conftest*
11132 12264
11133fi 12265fi
11134echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11135echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12267echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11136 12268
11137if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12269if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11138 case $lt_prog_compiler_pic_CXX in 12270 case $lt_prog_compiler_pic_CXX in
11139 "" | " "*) ;; 12271 "" | " "*) ;;
11140 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12272 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11143 lt_prog_compiler_pic_CXX= 12275 lt_prog_compiler_pic_CXX=
11144 lt_prog_compiler_can_build_shared_CXX=no 12276 lt_prog_compiler_can_build_shared_CXX=no
11145fi 12277fi
11146 12278
11147fi 12279fi
11148case "$host_os" in 12280case $host_os in
11149 # For platforms which do not support PIC, -DPIC is meaningless: 12281 # For platforms which do not support PIC, -DPIC is meaningless:
11150 *djgpp*) 12282 *djgpp*)
11151 lt_prog_compiler_pic_CXX= 12283 lt_prog_compiler_pic_CXX=
11152 ;; 12284 ;;
11153 *) 12285 *)
11154 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12286 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11155 ;; 12287 ;;
11156esac 12288esac
11157 12289
12290#
12291# Check to make sure the static flag actually works.
12292#
12293wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12294{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12295echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12296if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299 lt_prog_compiler_static_works_CXX=no
12300 save_LDFLAGS="$LDFLAGS"
12301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12302 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12304 # The linker can only warn and ignore the option if not recognized
12305 # So say no if there are warnings
12306 if test -s conftest.err; then
12307 # Append any errors to the config.log.
12308 cat conftest.err 1>&5
12309 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12311 if diff conftest.exp conftest.er2 >/dev/null; then
12312 lt_prog_compiler_static_works_CXX=yes
12313 fi
12314 else
12315 lt_prog_compiler_static_works_CXX=yes
12316 fi
12317 fi
12318 $rm conftest*
12319 LDFLAGS="$save_LDFLAGS"
12320
12321fi
12322{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12323echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12324
12325if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12326 :
12327else
12328 lt_prog_compiler_static_CXX=
12329fi
12330
12331
11158echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12332{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11159echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12333echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11160if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12334if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6 12335 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else 12336else
11163 lt_cv_prog_compiler_c_o_CXX=no 12337 lt_cv_prog_compiler_c_o_CXX=no
11164 $rm -r conftest 2>/dev/null 12338 $rm -r conftest 2>/dev/null
11171 # Insert the option either (1) after the last *FLAGS variable, or 12345 # Insert the option either (1) after the last *FLAGS variable, or
11172 # (2) before a word containing "conftest.", or (3) at the end. 12346 # (2) before a word containing "conftest.", or (3) at the end.
11173 # Note that $ac_compile itself does not contain backslashes and begins 12347 # Note that $ac_compile itself does not contain backslashes and begins
11174 # with a dollar sign (not a hyphen), so the echo should work correctly. 12348 # with a dollar sign (not a hyphen), so the echo should work correctly.
11175 lt_compile=`echo "$ac_compile" | $SED \ 12349 lt_compile=`echo "$ac_compile" | $SED \
11176 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11178 -e 's:$: $lt_compiler_flag:'` 12352 -e 's:$: $lt_compiler_flag:'`
11179 (eval echo "\"\$as_me:11179: $lt_compile\"" >&5) 12353 (eval echo "\"\$as_me:12353: $lt_compile\"" >&5)
11180 (eval "$lt_compile" 2>out/conftest.err) 12354 (eval "$lt_compile" 2>out/conftest.err)
11181 ac_status=$? 12355 ac_status=$?
11182 cat out/conftest.err >&5 12356 cat out/conftest.err >&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5 12357 echo "$as_me:12357: \$? = $ac_status" >&5
11184 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11185 then 12359 then
11186 # The compiler can only warn and ignore the option if not recognized 12360 # The compiler can only warn and ignore the option if not recognized
11187 # So say no if there are warnings 12361 # So say no if there are warnings
11188 if test ! -s out/conftest.err; then 12362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11189 lt_cv_prog_compiler_c_o_CXX=yes 12365 lt_cv_prog_compiler_c_o_CXX=yes
11190 fi 12366 fi
11191 fi 12367 fi
11192 chmod u+w . 12368 chmod u+w . 2>&5
11193 $rm conftest* 12369 $rm conftest*
11194 # SGI C++ compiler will create directory out/ii_files/ for 12370 # SGI C++ compiler will create directory out/ii_files/ for
11195 # template instantiation 12371 # template instantiation
11196 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12372 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11197 $rm out/* && rmdir out 12373 $rm out/* && rmdir out
11198 cd .. 12374 cd ..
11199 rmdir conftest 12375 rmdir conftest
11200 $rm conftest* 12376 $rm conftest*
11201 12377
11202fi 12378fi
11203echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12379{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11204echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11205 12381
11206 12382
11207hard_links="nottested" 12383hard_links="nottested"
11208if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12384if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11209 # do not overwrite the value of need_locks provided by the user 12385 # do not overwrite the value of need_locks provided by the user
11210 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12386 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11211echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11212 hard_links=yes 12388 hard_links=yes
11213 $rm conftest* 12389 $rm conftest*
11214 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11215 touch conftest.a 12391 touch conftest.a
11216 ln conftest.a conftest.b 2>&5 || hard_links=no 12392 ln conftest.a conftest.b 2>&5 || hard_links=no
11217 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11218 echo "$as_me:$LINENO: result: $hard_links" >&5 12394 { echo "$as_me:$LINENO: result: $hard_links" >&5
11219echo "${ECHO_T}$hard_links" >&6 12395echo "${ECHO_T}$hard_links" >&6; }
11220 if test "$hard_links" = no; then 12396 if test "$hard_links" = no; then
11221 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11222echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11223 need_locks=warn 12399 need_locks=warn
11224 fi 12400 fi
11225else 12401else
11226 need_locks=no 12402 need_locks=no
11227fi 12403fi
11228 12404
11229echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12405{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11230echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11231 12407
11232 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11233 case $host_os in 12409 case $host_os in
11234 aix4* | aix5*) 12410 aix4* | aix5*)
11235 # If we're using GNU nm, then we don't want the "-C" option. 12411 # If we're using GNU nm, then we don't want the "-C" option.
11242 ;; 12418 ;;
11243 pw32*) 12419 pw32*)
11244 export_symbols_cmds_CXX="$ltdll_cmds" 12420 export_symbols_cmds_CXX="$ltdll_cmds"
11245 ;; 12421 ;;
11246 cygwin* | mingw*) 12422 cygwin* | mingw*)
11247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12423 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'
12424 ;;
12425 linux* | k*bsd*-gnu)
12426 link_all_deplibs_CXX=no
11248 ;; 12427 ;;
11249 *) 12428 *)
11250 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11251 ;; 12430 ;;
11252 esac 12431 esac
11253 12432
11254echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12433{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11255echo "${ECHO_T}$ld_shlibs_CXX" >&6 12434echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11256test "$ld_shlibs_CXX" = no && can_build_shared=no 12435test "$ld_shlibs_CXX" = no && can_build_shared=no
11257
11258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11259if test "$GCC" = yes; then
11260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11261fi
11262 12436
11263# 12437#
11264# Do we need to explicitly link libc? 12438# Do we need to explicitly link libc?
11265# 12439#
11266case "x$archive_cmds_need_lc_CXX" in 12440case "x$archive_cmds_need_lc_CXX" in
11275 ;; 12449 ;;
11276 '$CC '*) 12450 '$CC '*)
11277 # Test whether the compiler implicitly links with -lc since on some 12451 # Test whether the compiler implicitly links with -lc since on some
11278 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11279 # to ld, don't add -lc before -lgcc. 12453 # to ld, don't add -lc before -lgcc.
11280 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12454 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11281echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12455echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11282 $rm conftest* 12456 $rm conftest*
11283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11284 12458
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>&5 12460 (eval $ac_compile) 2>&5
11290 soname=conftest 12464 soname=conftest
11291 lib=conftest 12465 lib=conftest
11292 libobjs=conftest.$ac_objext 12466 libobjs=conftest.$ac_objext
11293 deplibs= 12467 deplibs=
11294 wl=$lt_prog_compiler_wl_CXX 12468 wl=$lt_prog_compiler_wl_CXX
12469 pic_flag=$lt_prog_compiler_pic_CXX
11295 compiler_flags=-v 12470 compiler_flags=-v
11296 linker_flags=-v 12471 linker_flags=-v
11297 verstring= 12472 verstring=
11298 output_objdir=. 12473 output_objdir=.
11299 libname=conftest 12474 libname=conftest
11312 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12487 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11313 else 12488 else
11314 cat conftest.err 1>&5 12489 cat conftest.err 1>&5
11315 fi 12490 fi
11316 $rm conftest* 12491 $rm conftest*
11317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12492 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11318echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12493echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11319 ;; 12494 ;;
11320 esac 12495 esac
11321 fi 12496 fi
11322 ;; 12497 ;;
11323esac 12498esac
11324 12499
11325echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12500{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11327library_names_spec= 12502library_names_spec=
11328libname_spec='lib$name' 12503libname_spec='lib$name'
11329soname_spec= 12504soname_spec=
11330shrext=".so" 12505shrext_cmds=".so"
11331postinstall_cmds= 12506postinstall_cmds=
11332postuninstall_cmds= 12507postuninstall_cmds=
11333finish_cmds= 12508finish_cmds=
11334finish_eval= 12509finish_eval=
11335shlibpath_var= 12510shlibpath_var=
11422 library_names_spec='${libname}${shared_ext}' 12597 library_names_spec='${libname}${shared_ext}'
11423 dynamic_linker="$host_os ld.so" 12598 dynamic_linker="$host_os ld.so"
11424 shlibpath_var=LIBRARY_PATH 12599 shlibpath_var=LIBRARY_PATH
11425 ;; 12600 ;;
11426 12601
11427bsdi4*) 12602bsdi[45]*)
11428 version_type=linux 12603 version_type=linux
11429 need_version=no 12604 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major' 12606 soname_spec='${libname}${release}${shared_ext}$major'
11432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11438 # libtool to hard-code these into programs 12613 # libtool to hard-code these into programs
11439 ;; 12614 ;;
11440 12615
11441cygwin* | mingw* | pw32*) 12616cygwin* | mingw* | pw32*)
11442 version_type=windows 12617 version_type=windows
11443 shrext=".dll" 12618 shrext_cmds=".dll"
11444 need_version=no 12619 need_version=no
11445 need_lib_prefix=no 12620 need_lib_prefix=no
11446 12621
11447 case $GCC,$host_os in 12622 case $GCC,$host_os in
11448 yes,cygwin* | yes,mingw* | yes,pw32*) 12623 yes,cygwin* | yes,mingw* | yes,pw32*)
11450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11451 postinstall_cmds='base_file=`basename \${file}`~ 12626 postinstall_cmds='base_file=`basename \${file}`~
11452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11453 dldir=$destdir/`dirname \$dlpath`~ 12628 dldir=$destdir/`dirname \$dlpath`~
11454 test -d \$dldir || mkdir -p \$dldir~ 12629 test -d \$dldir || mkdir -p \$dldir~
11455 $install_prog $dir/$dlname \$dldir/$dlname' 12630 $install_prog $dir/$dlname \$dldir/$dlname~
12631 chmod a+x \$dldir/$dlname'
11456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11457 dlpath=$dir/\$dldll~ 12633 dlpath=$dir/\$dldll~
11458 $rm \$dlpath' 12634 $rm \$dlpath'
11459 shlibpath_overrides_runpath=yes 12635 shlibpath_overrides_runpath=yes
11460 12636
11480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11481 fi 12657 fi
11482 ;; 12658 ;;
11483 pw32*) 12659 pw32*)
11484 # pw32 DLLs use 'pw' prefix rather than 'lib' 12660 # pw32 DLLs use 'pw' prefix rather than 'lib'
11485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 12661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 ;; 12662 ;;
11487 esac 12663 esac
11488 ;; 12664 ;;
11489 12665
11490 *) 12666 *)
11503 need_version=no 12679 need_version=no
11504 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11505 soname_spec='${libname}${release}${major}$shared_ext' 12681 soname_spec='${libname}${release}${major}$shared_ext'
11506 shlibpath_overrides_runpath=yes 12682 shlibpath_overrides_runpath=yes
11507 shlibpath_var=DYLD_LIBRARY_PATH 12683 shlibpath_var=DYLD_LIBRARY_PATH
11508 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 12684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11509 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11510 if test "$GCC" = yes; then 12686 if test "$GCC" = yes; then
11511 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12687 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11512 else 12688 else
11513 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11526 12702
11527freebsd1*) 12703freebsd1*)
11528 dynamic_linker=no 12704 dynamic_linker=no
11529 ;; 12705 ;;
11530 12706
11531kfreebsd*-gnu) 12707freebsd* | dragonfly*)
11532 version_type=linux 12708 # DragonFly does not have aout. When/if they implement a new
11533 need_lib_prefix=no 12709 # versioning mechanism, adjust this.
11534 need_version=no 12710 if test -x /usr/bin/objformat; then
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12711 objformat=`/usr/bin/objformat`
11536 soname_spec='${libname}${release}${shared_ext}$major' 12712 else
11537 shlibpath_var=LD_LIBRARY_PATH 12713 case $host_os in
11538 shlibpath_overrides_runpath=no 12714 freebsd[123]*) objformat=aout ;;
11539 hardcode_into_libs=yes 12715 *) objformat=elf ;;
11540 dynamic_linker='GNU ld.so' 12716 esac
11541 ;; 12717 fi
11542
11543freebsd*)
11544 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11545 version_type=freebsd-$objformat 12718 version_type=freebsd-$objformat
11546 case $version_type in 12719 case $version_type in
11547 freebsd-elf*) 12720 freebsd-elf*)
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11549 need_version=no 12722 need_version=no
11557 shlibpath_var=LD_LIBRARY_PATH 12730 shlibpath_var=LD_LIBRARY_PATH
11558 case $host_os in 12731 case $host_os in
11559 freebsd2*) 12732 freebsd2*)
11560 shlibpath_overrides_runpath=yes 12733 shlibpath_overrides_runpath=yes
11561 ;; 12734 ;;
11562 freebsd3.01* | freebsdelf3.01*) 12735 freebsd3.[01]* | freebsdelf3.[01]*)
11563 shlibpath_overrides_runpath=yes 12736 shlibpath_overrides_runpath=yes
11564 hardcode_into_libs=yes 12737 hardcode_into_libs=yes
11565 ;; 12738 ;;
11566 *) # from 3.2 on 12739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11567 shlibpath_overrides_runpath=no 12741 shlibpath_overrides_runpath=no
12742 hardcode_into_libs=yes
12743 ;;
12744 freebsd*) # from 4.6 on
12745 shlibpath_overrides_runpath=yes
11568 hardcode_into_libs=yes 12746 hardcode_into_libs=yes
11569 ;; 12747 ;;
11570 esac 12748 esac
11571 ;; 12749 ;;
11572 12750
11584 # Give a soname corresponding to the major version so that dld.sl refuses to 12762 # Give a soname corresponding to the major version so that dld.sl refuses to
11585 # link against other versions. 12763 # link against other versions.
11586 version_type=sunos 12764 version_type=sunos
11587 need_lib_prefix=no 12765 need_lib_prefix=no
11588 need_version=no 12766 need_version=no
11589 case "$host_cpu" in 12767 case $host_cpu in
11590 ia64*) 12768 ia64*)
11591 shrext='.so' 12769 shrext_cmds='.so'
11592 hardcode_into_libs=yes 12770 hardcode_into_libs=yes
11593 dynamic_linker="$host_os dld.so" 12771 dynamic_linker="$host_os dld.so"
11594 shlibpath_var=LD_LIBRARY_PATH 12772 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11602 fi 12780 fi
11603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11604 ;; 12782 ;;
11605 hppa*64*) 12783 hppa*64*)
11606 shrext='.sl' 12784 shrext_cmds='.sl'
11607 hardcode_into_libs=yes 12785 hardcode_into_libs=yes
11608 dynamic_linker="$host_os dld.sl" 12786 dynamic_linker="$host_os dld.sl"
11609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major' 12790 soname_spec='${libname}${release}${shared_ext}$major'
11613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615 ;; 12793 ;;
11616 *) 12794 *)
11617 shrext='.sl' 12795 shrext_cmds='.sl'
11618 dynamic_linker="$host_os dld.sl" 12796 dynamic_linker="$host_os dld.sl"
11619 shlibpath_var=SHLIB_PATH 12797 shlibpath_var=SHLIB_PATH
11620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major' 12800 soname_spec='${libname}${release}${shared_ext}$major'
11623 ;; 12801 ;;
11624 esac 12802 esac
11625 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11626 postinstall_cmds='chmod 555 $lib' 12804 postinstall_cmds='chmod 555 $lib'
12805 ;;
12806
12807interix3*)
12808 version_type=linux
12809 need_lib_prefix=no
12810 need_version=no
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 shlibpath_overrides_runpath=no
12816 hardcode_into_libs=yes
11627 ;; 12817 ;;
11628 12818
11629irix5* | irix6* | nonstopux*) 12819irix5* | irix6* | nonstopux*)
11630 case $host_os in 12820 case $host_os in
11631 nonstopux*) version_type=nonstopux ;; 12821 nonstopux*) version_type=nonstopux ;;
11667linux*oldld* | linux*aout* | linux*coff*) 12857linux*oldld* | linux*aout* | linux*coff*)
11668 dynamic_linker=no 12858 dynamic_linker=no
11669 ;; 12859 ;;
11670 12860
11671# This must be Linux ELF. 12861# This must be Linux ELF.
11672linux*) 12862linux* | k*bsd*-gnu)
11673 version_type=linux 12863 version_type=linux
11674 need_lib_prefix=no 12864 need_lib_prefix=no
11675 need_version=no 12865 need_version=no
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 soname_spec='${libname}${release}${shared_ext}$major' 12867 soname_spec='${libname}${release}${shared_ext}$major'
11683 # before this can be enabled. 12873 # before this can be enabled.
11684 hardcode_into_libs=yes 12874 hardcode_into_libs=yes
11685 12875
11686 # Append ld.so.conf contents to the search path 12876 # Append ld.so.conf contents to the search path
11687 if test -f /etc/ld.so.conf; then 12877 if test -f /etc/ld.so.conf; then
11688 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` 12878 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11689 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" 12879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11690 fi 12880 fi
11691 12881
11692 # We used to test for /lib/ld.so.1 and disable shared libraries on 12882 # We used to test for /lib/ld.so.1 and disable shared libraries on
11693 # powerpc, because MkLinux only supported shared libraries with the 12883 # powerpc, because MkLinux only supported shared libraries with the
11694 # GNU dynamic linker. Since this was broken with cross compilers, 12884 # GNU dynamic linker. Since this was broken with cross compilers,
11696 # people can always --disable-shared, the test was removed, and we 12886 # people can always --disable-shared, the test was removed, and we
11697 # assume the GNU/Linux dynamic linker is in use. 12887 # assume the GNU/Linux dynamic linker is in use.
11698 dynamic_linker='GNU/Linux ld.so' 12888 dynamic_linker='GNU/Linux ld.so'
11699 ;; 12889 ;;
11700 12890
11701knetbsd*-gnu) 12891netbsdelf*-gnu)
11702 version_type=linux 12892 version_type=linux
11703 need_lib_prefix=no 12893 need_lib_prefix=no
11704 need_version=no 12894 need_version=no
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major' 12896 soname_spec='${libname}${release}${shared_ext}$major'
11707 shlibpath_var=LD_LIBRARY_PATH 12897 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=no 12898 shlibpath_overrides_runpath=no
11709 hardcode_into_libs=yes 12899 hardcode_into_libs=yes
11710 dynamic_linker='GNU ld.so' 12900 dynamic_linker='NetBSD ld.elf_so'
11711 ;; 12901 ;;
11712 12902
11713netbsd*) 12903netbsd*)
11714 version_type=sunos 12904 version_type=sunos
11715 need_lib_prefix=no 12905 need_lib_prefix=no
11745 shlibpath_overrides_runpath=yes 12935 shlibpath_overrides_runpath=yes
11746 ;; 12936 ;;
11747 12937
11748openbsd*) 12938openbsd*)
11749 version_type=sunos 12939 version_type=sunos
12940 sys_lib_dlsearch_path_spec="/usr/lib"
11750 need_lib_prefix=no 12941 need_lib_prefix=no
11751 need_version=yes 12942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12943 case $host_os in
12944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12945 *) need_version=no ;;
12946 esac
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11754 shlibpath_var=LD_LIBRARY_PATH 12949 shlibpath_var=LD_LIBRARY_PATH
11755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11756 case $host_os in 12951 case $host_os in
11766 fi 12961 fi
11767 ;; 12962 ;;
11768 12963
11769os2*) 12964os2*)
11770 libname_spec='$name' 12965 libname_spec='$name'
11771 shrext=".dll" 12966 shrext_cmds=".dll"
11772 need_lib_prefix=no 12967 need_lib_prefix=no
11773 library_names_spec='$libname${shared_ext} $libname.a' 12968 library_names_spec='$libname${shared_ext} $libname.a'
11774 dynamic_linker='OS/2 ld.exe' 12969 dynamic_linker='OS/2 ld.exe'
11775 shlibpath_var=LIBPATH 12970 shlibpath_var=LIBPATH
11776 ;; 12971 ;;
11782 soname_spec='${libname}${release}${shared_ext}$major' 12977 soname_spec='${libname}${release}${shared_ext}$major'
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 shlibpath_var=LD_LIBRARY_PATH 12979 shlibpath_var=LD_LIBRARY_PATH
11785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11787 ;;
11788
11789sco3.2v5*)
11790 version_type=osf
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 ;; 12982 ;;
11795 12983
11796solaris*) 12984solaris*)
11797 version_type=linux 12985 version_type=linux
11798 need_lib_prefix=no 12986 need_lib_prefix=no
11816 need_lib_prefix=no 13004 need_lib_prefix=no
11817 fi 13005 fi
11818 need_version=yes 13006 need_version=yes
11819 ;; 13007 ;;
11820 13008
11821sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13009sysv4 | sysv4.3*)
11822 version_type=linux 13010 version_type=linux
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 soname_spec='${libname}${release}${shared_ext}$major' 13012 soname_spec='${libname}${release}${shared_ext}$major'
11825 shlibpath_var=LD_LIBRARY_PATH 13013 shlibpath_var=LD_LIBRARY_PATH
11826 case $host_vendor in 13014 case $host_vendor in
11849 soname_spec='$libname${shared_ext}.$major' 13037 soname_spec='$libname${shared_ext}.$major'
11850 shlibpath_var=LD_LIBRARY_PATH 13038 shlibpath_var=LD_LIBRARY_PATH
11851 fi 13039 fi
11852 ;; 13040 ;;
11853 13041
13042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13043 version_type=freebsd-elf
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13047 soname_spec='${libname}${release}${shared_ext}$major'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 hardcode_into_libs=yes
13050 if test "$with_gnu_ld" = yes; then
13051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13052 shlibpath_overrides_runpath=no
13053 else
13054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13055 shlibpath_overrides_runpath=yes
13056 case $host_os in
13057 sco3.2v5*)
13058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13059 ;;
13060 esac
13061 fi
13062 sys_lib_dlsearch_path_spec='/usr/lib'
13063 ;;
13064
11854uts4*) 13065uts4*)
11855 version_type=linux 13066 version_type=linux
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major' 13068 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LD_LIBRARY_PATH 13069 shlibpath_var=LD_LIBRARY_PATH
11860 13071
11861*) 13072*)
11862 dynamic_linker=no 13073 dynamic_linker=no
11863 ;; 13074 ;;
11864esac 13075esac
11865echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11866echo "${ECHO_T}$dynamic_linker" >&6 13077echo "${ECHO_T}$dynamic_linker" >&6; }
11867test "$dynamic_linker" = no && can_build_shared=no 13078test "$dynamic_linker" = no && can_build_shared=no
11868 13079
13080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13081if test "$GCC" = yes; then
13082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13083fi
13084
11869echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13085{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11870echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11871hardcode_action_CXX= 13087hardcode_action_CXX=
11872if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13088if test -n "$hardcode_libdir_flag_spec_CXX" || \
11873 test -n "$runpath_var CXX" || \ 13089 test -n "$runpath_var_CXX" || \
11874 test "X$hardcode_automatic_CXX"="Xyes" ; then 13090 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11875 13091
11876 # We can hardcode non-existant directories. 13092 # We can hardcode non-existant directories.
11877 if test "$hardcode_direct_CXX" != no && 13093 if test "$hardcode_direct_CXX" != no &&
11878 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11879 # have to relink, otherwise we might link with an installed library 13095 # have to relink, otherwise we might link with an installed library
11889else 13105else
11890 # We cannot hardcode anything, or else we can only hardcode existing 13106 # We cannot hardcode anything, or else we can only hardcode existing
11891 # directories. 13107 # directories.
11892 hardcode_action_CXX=unsupported 13108 hardcode_action_CXX=unsupported
11893fi 13109fi
11894echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13110{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11895echo "${ECHO_T}$hardcode_action_CXX" >&6 13111echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11896 13112
11897if test "$hardcode_action_CXX" = relink; then 13113if test "$hardcode_action_CXX" = relink; then
11898 # Fast installation is not supported 13114 # Fast installation is not supported
11899 enable_fast_install=no 13115 enable_fast_install=no
11900elif test "$shlibpath_overrides_runpath" = yes || 13116elif test "$shlibpath_overrides_runpath" = yes ||
11901 test "$enable_shared" = no; then 13117 test "$enable_shared" = no; then
11902 # Fast installation is not necessary 13118 # Fast installation is not necessary
11903 enable_fast_install=needless 13119 enable_fast_install=needless
11904fi
11905
11906striplib=
11907old_striplib=
11908echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11909echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11910if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11911 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11912 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11913 echo "$as_me:$LINENO: result: yes" >&5
11914echo "${ECHO_T}yes" >&6
11915else
11916# FIXME - insert some real tests, host_os isn't really good enough
11917 case $host_os in
11918 darwin*)
11919 if test -n "$STRIP" ; then
11920 striplib="$STRIP -x"
11921 echo "$as_me:$LINENO: result: yes" >&5
11922echo "${ECHO_T}yes" >&6
11923 else
11924 echo "$as_me:$LINENO: result: no" >&5
11925echo "${ECHO_T}no" >&6
11926fi
11927 ;;
11928 *)
11929 echo "$as_me:$LINENO: result: no" >&5
11930echo "${ECHO_T}no" >&6
11931 ;;
11932 esac
11933fi
11934
11935if test "x$enable_dlopen" != xyes; then
11936 enable_dlopen=unknown
11937 enable_dlopen_self=unknown
11938 enable_dlopen_self_static=unknown
11939else
11940 lt_cv_dlopen=no
11941 lt_cv_dlopen_libs=
11942
11943 case $host_os in
11944 beos*)
11945 lt_cv_dlopen="load_add_on"
11946 lt_cv_dlopen_libs=
11947 lt_cv_dlopen_self=yes
11948 ;;
11949
11950 mingw* | pw32*)
11951 lt_cv_dlopen="LoadLibrary"
11952 lt_cv_dlopen_libs=
11953 ;;
11954
11955 cygwin*)
11956 lt_cv_dlopen="dlopen"
11957 lt_cv_dlopen_libs=
11958 ;;
11959
11960 darwin*)
11961 # if libdl is installed we need to link against it
11962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 ac_check_lib_save_LIBS=$LIBS
11968LIBS="-ldl $LIBS"
11969cat >conftest.$ac_ext <<_ACEOF
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
11975
11976/* Override any gcc2 internal prototype to avoid an error. */
11977#ifdef __cplusplus
11978extern "C"
11979#endif
11980/* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11982char dlopen ();
11983int
11984main ()
11985{
11986dlopen ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
11992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_cxx_werror_flag"
12001 || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 ac_cv_lib_dl_dlopen=yes
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018ac_cv_lib_dl_dlopen=no
12019fi
12020rm -f conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022LIBS=$ac_check_lib_save_LIBS
12023fi
12024echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12025echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12026if test $ac_cv_lib_dl_dlopen = yes; then
12027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12028else
12029
12030 lt_cv_dlopen="dyld"
12031 lt_cv_dlopen_libs=
12032 lt_cv_dlopen_self=yes
12033
12034fi
12035
12036 ;;
12037
12038 *)
12039 echo "$as_me:$LINENO: checking for shl_load" >&5
12040echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12041if test "${ac_cv_func_shl_load+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043else
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12052#define shl_load innocuous_shl_load
12053
12054/* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char shl_load (); below.
12056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057 <limits.h> exists even on freestanding compilers. */
12058
12059#ifdef __STDC__
12060# include <limits.h>
12061#else
12062# include <assert.h>
12063#endif
12064
12065#undef shl_load
12066
12067/* Override any gcc2 internal prototype to avoid an error. */
12068#ifdef __cplusplus
12069extern "C"
12070{
12071#endif
12072/* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074char shl_load ();
12075/* The GNU C library defines this for functions which it implements
12076 to always fail with ENOSYS. Some functions are actually named
12077 something starting with __ and the normal name is an alias. */
12078#if defined (__stub_shl_load) || defined (__stub___shl_load)
12079choke me
12080#else
12081char (*f) () = shl_load;
12082#endif
12083#ifdef __cplusplus
12084}
12085#endif
12086
12087int
12088main ()
12089{
12090return f != shl_load;
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext conftest$ac_exeext
12096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_cxx_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_func_shl_load=yes
12118else
12119 echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122ac_cv_func_shl_load=no
12123fi
12124rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126fi
12127echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12128echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12129if test $ac_cv_func_shl_load = yes; then
12130 lt_cv_dlopen="shl_load"
12131else
12132 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12133echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12134if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136else
12137 ac_check_lib_save_LIBS=$LIBS
12138LIBS="-ldld $LIBS"
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145
12146/* Override any gcc2 internal prototype to avoid an error. */
12147#ifdef __cplusplus
12148extern "C"
12149#endif
12150/* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12152char shl_load ();
12153int
12154main ()
12155{
12156shl_load ();
12157 ;
12158 return 0;
12159}
12160_ACEOF
12161rm -f conftest.$ac_objext conftest$ac_exeext
12162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12163 (eval $ac_link) 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -z "$ac_cxx_werror_flag"
12171 || test ! -s conftest.err'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; } &&
12177 { ac_try='test -s conftest$ac_exeext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_lib_dld_shl_load=yes
12184else
12185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188ac_cv_lib_dld_shl_load=no
12189fi
12190rm -f conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192LIBS=$ac_check_lib_save_LIBS
12193fi
12194echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12195echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12196if test $ac_cv_lib_dld_shl_load = yes; then
12197 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12198else
12199 echo "$as_me:$LINENO: checking for dlopen" >&5
12200echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12201if test "${ac_cv_func_dlopen+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12203else
12204 cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
12210/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12212#define dlopen innocuous_dlopen
12213
12214/* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char dlopen (); below.
12216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12217 <limits.h> exists even on freestanding compilers. */
12218
12219#ifdef __STDC__
12220# include <limits.h>
12221#else
12222# include <assert.h>
12223#endif
12224
12225#undef dlopen
12226
12227/* Override any gcc2 internal prototype to avoid an error. */
12228#ifdef __cplusplus
12229extern "C"
12230{
12231#endif
12232/* We use char because int might match the return type of a gcc2
12233 builtin and then its argument prototype would still apply. */
12234char dlopen ();
12235/* The GNU C library defines this for functions which it implements
12236 to always fail with ENOSYS. Some functions are actually named
12237 something starting with __ and the normal name is an alias. */
12238#if defined (__stub_dlopen) || defined (__stub___dlopen)
12239choke me
12240#else
12241char (*f) () = dlopen;
12242#endif
12243#ifdef __cplusplus
12244}
12245#endif
12246
12247int
12248main ()
12249{
12250return f != dlopen;
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext conftest$ac_exeext
12256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12257 (eval $ac_link) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_cxx_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_func_dlopen=yes
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282ac_cv_func_dlopen=no
12283fi
12284rm -f conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286fi
12287echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12288echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12289if test $ac_cv_func_dlopen = yes; then
12290 lt_cv_dlopen="dlopen"
12291else
12292 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12293echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12294if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297 ac_check_lib_save_LIBS=$LIBS
12298LIBS="-ldl $LIBS"
12299cat >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
12306/* Override any gcc2 internal prototype to avoid an error. */
12307#ifdef __cplusplus
12308extern "C"
12309#endif
12310/* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312char dlopen ();
12313int
12314main ()
12315{
12316dlopen ();
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext conftest$ac_exeext
12322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323 (eval $ac_link) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_cxx_werror_flag"
12331 || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_lib_dl_dlopen=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348ac_cv_lib_dl_dlopen=no
12349fi
12350rm -f conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352LIBS=$ac_check_lib_save_LIBS
12353fi
12354echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12355echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12356if test $ac_cv_lib_dl_dlopen = yes; then
12357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12358else
12359 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12360echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12361if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363else
12364 ac_check_lib_save_LIBS=$LIBS
12365LIBS="-lsvld $LIBS"
12366cat >conftest.$ac_ext <<_ACEOF
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372
12373/* Override any gcc2 internal prototype to avoid an error. */
12374#ifdef __cplusplus
12375extern "C"
12376#endif
12377/* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12379char dlopen ();
12380int
12381main ()
12382{
12383dlopen ();
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext conftest$ac_exeext
12389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390 (eval $ac_link) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_cxx_werror_flag"
12398 || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest$ac_exeext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_lib_svld_dlopen=yes
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415ac_cv_lib_svld_dlopen=no
12416fi
12417rm -f conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext conftest.$ac_ext
12419LIBS=$ac_check_lib_save_LIBS
12420fi
12421echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12422echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12423if test $ac_cv_lib_svld_dlopen = yes; then
12424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12425else
12426 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12427echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12428if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431 ac_check_lib_save_LIBS=$LIBS
12432LIBS="-ldld $LIBS"
12433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h. */
12439
12440/* Override any gcc2 internal prototype to avoid an error. */
12441#ifdef __cplusplus
12442extern "C"
12443#endif
12444/* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446char dld_link ();
12447int
12448main ()
12449{
12450dld_link ();
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455rm -f conftest.$ac_objext conftest$ac_exeext
12456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_cxx_werror_flag"
12465 || test ! -s conftest.err'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_cv_lib_dld_dld_link=yes
12478else
12479 echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482ac_cv_lib_dld_dld_link=no
12483fi
12484rm -f conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486LIBS=$ac_check_lib_save_LIBS
12487fi
12488echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12489echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12490if test $ac_cv_lib_dld_dld_link = yes; then
12491 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12492fi
12493
12494
12495fi
12496
12497
12498fi
12499
12500
12501fi
12502
12503
12504fi
12505
12506
12507fi
12508
12509 ;;
12510 esac
12511
12512 if test "x$lt_cv_dlopen" != xno; then
12513 enable_dlopen=yes
12514 else
12515 enable_dlopen=no
12516 fi
12517
12518 case $lt_cv_dlopen in
12519 dlopen)
12520 save_CPPFLAGS="$CPPFLAGS"
12521 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12522
12523 save_LDFLAGS="$LDFLAGS"
12524 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12525
12526 save_LIBS="$LIBS"
12527 LIBS="$lt_cv_dlopen_libs $LIBS"
12528
12529 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12530echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12531if test "${lt_cv_dlopen_self+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533else
12534 if test "$cross_compiling" = yes; then :
12535 lt_cv_dlopen_self=cross
12536else
12537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12538 lt_status=$lt_dlunknown
12539 cat > conftest.$ac_ext <<EOF
12540#line 12540 "configure"
12541#include "confdefs.h"
12542
12543#if HAVE_DLFCN_H
12544#include <dlfcn.h>
12545#endif
12546
12547#include <stdio.h>
12548
12549#ifdef RTLD_GLOBAL
12550# define LT_DLGLOBAL RTLD_GLOBAL
12551#else
12552# ifdef DL_GLOBAL
12553# define LT_DLGLOBAL DL_GLOBAL
12554# else
12555# define LT_DLGLOBAL 0
12556# endif
12557#endif
12558
12559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12560 find out it does not work in some platform. */
12561#ifndef LT_DLLAZY_OR_NOW
12562# ifdef RTLD_LAZY
12563# define LT_DLLAZY_OR_NOW RTLD_LAZY
12564# else
12565# ifdef DL_LAZY
12566# define LT_DLLAZY_OR_NOW DL_LAZY
12567# else
12568# ifdef RTLD_NOW
12569# define LT_DLLAZY_OR_NOW RTLD_NOW
12570# else
12571# ifdef DL_NOW
12572# define LT_DLLAZY_OR_NOW DL_NOW
12573# else
12574# define LT_DLLAZY_OR_NOW 0
12575# endif
12576# endif
12577# endif
12578# endif
12579#endif
12580
12581#ifdef __cplusplus
12582extern "C" void exit (int);
12583#endif
12584
12585void fnord() { int i=42;}
12586int main ()
12587{
12588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12589 int status = $lt_dlunknown;
12590
12591 if (self)
12592 {
12593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12595 /* dlclose (self); */
12596 }
12597
12598 exit (status);
12599}
12600EOF
12601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602 (eval $ac_link) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12606 (./conftest; exit; ) 2>/dev/null
12607 lt_status=$?
12608 case x$lt_status in
12609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12611 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12612 esac
12613 else :
12614 # compilation failed
12615 lt_cv_dlopen_self=no
12616 fi
12617fi
12618rm -fr conftest*
12619
12620
12621fi
12622echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12623echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12624
12625 if test "x$lt_cv_dlopen_self" = xyes; then
12626 LDFLAGS="$LDFLAGS $link_static_flag"
12627 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12628echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12629if test "${lt_cv_dlopen_self_static+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631else
12632 if test "$cross_compiling" = yes; then :
12633 lt_cv_dlopen_self_static=cross
12634else
12635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636 lt_status=$lt_dlunknown
12637 cat > conftest.$ac_ext <<EOF
12638#line 12638 "configure"
12639#include "confdefs.h"
12640
12641#if HAVE_DLFCN_H
12642#include <dlfcn.h>
12643#endif
12644
12645#include <stdio.h>
12646
12647#ifdef RTLD_GLOBAL
12648# define LT_DLGLOBAL RTLD_GLOBAL
12649#else
12650# ifdef DL_GLOBAL
12651# define LT_DLGLOBAL DL_GLOBAL
12652# else
12653# define LT_DLGLOBAL 0
12654# endif
12655#endif
12656
12657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658 find out it does not work in some platform. */
12659#ifndef LT_DLLAZY_OR_NOW
12660# ifdef RTLD_LAZY
12661# define LT_DLLAZY_OR_NOW RTLD_LAZY
12662# else
12663# ifdef DL_LAZY
12664# define LT_DLLAZY_OR_NOW DL_LAZY
12665# else
12666# ifdef RTLD_NOW
12667# define LT_DLLAZY_OR_NOW RTLD_NOW
12668# else
12669# ifdef DL_NOW
12670# define LT_DLLAZY_OR_NOW DL_NOW
12671# else
12672# define LT_DLLAZY_OR_NOW 0
12673# endif
12674# endif
12675# endif
12676# endif
12677#endif
12678
12679#ifdef __cplusplus
12680extern "C" void exit (int);
12681#endif
12682
12683void fnord() { int i=42;}
12684int main ()
12685{
12686 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12687 int status = $lt_dlunknown;
12688
12689 if (self)
12690 {
12691 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12692 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12693 /* dlclose (self); */
12694 }
12695
12696 exit (status);
12697}
12698EOF
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12704 (./conftest; exit; ) 2>/dev/null
12705 lt_status=$?
12706 case x$lt_status in
12707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12709 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12710 esac
12711 else :
12712 # compilation failed
12713 lt_cv_dlopen_self_static=no
12714 fi
12715fi
12716rm -fr conftest*
12717
12718
12719fi
12720echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12721echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12722 fi
12723
12724 CPPFLAGS="$save_CPPFLAGS"
12725 LDFLAGS="$save_LDFLAGS"
12726 LIBS="$save_LIBS"
12727 ;;
12728 esac
12729
12730 case $lt_cv_dlopen_self in
12731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12732 *) enable_dlopen_self=unknown ;;
12733 esac
12734
12735 case $lt_cv_dlopen_self_static in
12736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12737 *) enable_dlopen_self_static=unknown ;;
12738 esac
12739fi 13120fi
12740 13121
12741 13122
12742# The else clause should only fire when bootstrapping the 13123# The else clause should only fire when bootstrapping the
12743# libtool distribution, otherwise you forgot to ship ltmain.sh 13124# libtool distribution, otherwise you forgot to ship ltmain.sh
12750 setopt NO_GLOB_SUBST 13131 setopt NO_GLOB_SUBST
12751 fi 13132 fi
12752 # Now quote all the things that may contain metacharacters while being 13133 # Now quote all the things that may contain metacharacters while being
12753 # careful not to overquote the AC_SUBSTed values. We take copies of the 13134 # careful not to overquote the AC_SUBSTed values. We take copies of the
12754 # variables and quote the copies for generation of the libtool script. 13135 # variables and quote the copies for generation of the libtool script.
12755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13136 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12756 SED SHELL STRIP \ 13137 SED SHELL STRIP \
12757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12759 deplibs_check_method reload_flag reload_cmds need_locks \ 13140 deplibs_check_method reload_flag reload_cmds need_locks \
12760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12851fast_install=$enable_fast_install 13232fast_install=$enable_fast_install
12852 13233
12853# The host system. 13234# The host system.
12854host_alias=$host_alias 13235host_alias=$host_alias
12855host=$host 13236host=$host
13237host_os=$host_os
13238
13239# The build system.
13240build_alias=$build_alias
13241build=$build
13242build_os=$build_os
12856 13243
12857# An echo program that does not interpret backslashes. 13244# An echo program that does not interpret backslashes.
12858echo=$lt_echo 13245echo=$lt_echo
12859 13246
12860# The archiver. 13247# The archiver.
12862AR_FLAGS=$lt_AR_FLAGS 13249AR_FLAGS=$lt_AR_FLAGS
12863 13250
12864# A C compiler. 13251# A C compiler.
12865LTCC=$lt_LTCC 13252LTCC=$lt_LTCC
12866 13253
13254# LTCC compiler flags.
13255LTCFLAGS=$lt_LTCFLAGS
13256
12867# A language-specific compiler. 13257# A language-specific compiler.
12868CC=$lt_compiler_CXX 13258CC=$lt_compiler_CXX
12869 13259
12870# Is the compiler the GNU C compiler? 13260# Is the compiler the GNU C compiler?
12871with_gcc=$GCC_CXX 13261with_gcc=$GCC_CXX
12912 13302
12913# Old archive suffix (normally "a"). 13303# Old archive suffix (normally "a").
12914libext="$libext" 13304libext="$libext"
12915 13305
12916# Shared library suffix (normally ".so"). 13306# Shared library suffix (normally ".so").
12917shrext='$shrext' 13307shrext_cmds='$shrext_cmds'
12918 13308
12919# Executable file suffix (normally ""). 13309# Executable file suffix (normally "").
12920exeext="$exeext" 13310exeext="$exeext"
12921 13311
12922# Additional compiler flags for building library objects. 13312# Additional compiler flags for building library objects.
12927max_cmd_len=$lt_cv_sys_max_cmd_len 13317max_cmd_len=$lt_cv_sys_max_cmd_len
12928 13318
12929# Does compiler simultaneously support -c and -o options? 13319# Does compiler simultaneously support -c and -o options?
12930compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12931 13321
12932# Must we lock files when doing compilation ? 13322# Must we lock files when doing compilation?
12933need_locks=$lt_need_locks 13323need_locks=$lt_need_locks
12934 13324
12935# Do we need the lib prefix for modules? 13325# Do we need the lib prefix for modules?
12936need_lib_prefix=$need_lib_prefix 13326need_lib_prefix=$need_lib_prefix
12937 13327
13204# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13594# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13205 13595
13206# If no C compiler was specified, use CC. 13596# If no C compiler was specified, use CC.
13207LTCC=${LTCC-"$CC"} 13597LTCC=${LTCC-"$CC"}
13208 13598
13599# If no C compiler flags were specified, use CFLAGS.
13600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13601
13209# Allow CC to be a program name with arguments. 13602# Allow CC to be a program name with arguments.
13210compiler=$CC 13603compiler=$CC
13604
13605
13606# save warnings/boilerplate of simple test code
13607ac_outfile=conftest.$ac_objext
13608printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13610_lt_compiler_boilerplate=`cat conftest.err`
13611$rm conftest*
13612
13613ac_outfile=conftest.$ac_objext
13614printf "$lt_simple_link_test_code" >conftest.$ac_ext
13615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13616_lt_linker_boilerplate=`cat conftest.err`
13617$rm conftest*
13211 13618
13212 13619
13213# Allow CC to be a program name with arguments. 13620# Allow CC to be a program name with arguments.
13214lt_save_CC="$CC" 13621lt_save_CC="$CC"
13215CC=${F77-"f77"} 13622CC=${F77-"f77"}
13216compiler=$CC 13623compiler=$CC
13217compiler_F77=$CC 13624compiler_F77=$CC
13218cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13625for cc_temp in $compiler""; do
13626 case $cc_temp in
13627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13629 \-*) ;;
13630 *) break;;
13631 esac
13632done
13633cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13219 13634
13635
13220echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13636{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13221echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13637echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13222echo "$as_me:$LINENO: result: $can_build_shared" >&5 13638{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13223echo "${ECHO_T}$can_build_shared" >&6 13639echo "${ECHO_T}$can_build_shared" >&6; }
13224 13640
13225echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13641{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13226echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13642echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13227test "$can_build_shared" = "no" && enable_shared=no 13643test "$can_build_shared" = "no" && enable_shared=no
13228 13644
13229# On AIX, shared libraries and static libraries use the same namespace, and 13645# On AIX, shared libraries and static libraries use the same namespace, and
13230# are all built from PIC. 13646# are all built from PIC.
13231case "$host_os" in 13647case $host_os in
13232aix3*) 13648aix3*)
13233 test "$enable_shared" = yes && enable_static=no 13649 test "$enable_shared" = yes && enable_static=no
13234 if test -n "$RANLIB"; then 13650 if test -n "$RANLIB"; then
13235 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13236 postinstall_cmds='$RANLIB $lib' 13652 postinstall_cmds='$RANLIB $lib'
13237 fi 13653 fi
13238 ;; 13654 ;;
13239aix4*) 13655aix4* | aix5*)
13656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13240 test "$enable_shared" = yes && enable_static=no 13657 test "$enable_shared" = yes && enable_static=no
13658 fi
13241 ;; 13659 ;;
13242esac 13660esac
13243echo "$as_me:$LINENO: result: $enable_shared" >&5 13661{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13244echo "${ECHO_T}$enable_shared" >&6 13662echo "${ECHO_T}$enable_shared" >&6; }
13245 13663
13246echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13664{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13247echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13665echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13248# Make sure either enable_shared or enable_static is yes. 13666# Make sure either enable_shared or enable_static is yes.
13249test "$enable_shared" = yes || enable_static=yes 13667test "$enable_shared" = yes || enable_static=yes
13250echo "$as_me:$LINENO: result: $enable_static" >&5 13668{ echo "$as_me:$LINENO: result: $enable_static" >&5
13251echo "${ECHO_T}$enable_static" >&6 13669echo "${ECHO_T}$enable_static" >&6; }
13252
13253test "$ld_shlibs_F77" = no && can_build_shared=no
13254 13670
13255GCC_F77="$G77" 13671GCC_F77="$G77"
13256LD_F77="$LD" 13672LD_F77="$LD"
13257 13673
13258lt_prog_compiler_wl_F77= 13674lt_prog_compiler_wl_F77=
13259lt_prog_compiler_pic_F77= 13675lt_prog_compiler_pic_F77=
13260lt_prog_compiler_static_F77= 13676lt_prog_compiler_static_F77=
13261 13677
13262echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13678{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13263echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13264 13680
13265 if test "$GCC" = yes; then 13681 if test "$GCC" = yes; then
13266 lt_prog_compiler_wl_F77='-Wl,' 13682 lt_prog_compiler_wl_F77='-Wl,'
13267 lt_prog_compiler_static_F77='-static' 13683 lt_prog_compiler_static_F77='-static'
13268 13684
13296 # PIC is the default on this platform 13712 # PIC is the default on this platform
13297 # Common symbols not allowed in MH_DYLIB files 13713 # Common symbols not allowed in MH_DYLIB files
13298 lt_prog_compiler_pic_F77='-fno-common' 13714 lt_prog_compiler_pic_F77='-fno-common'
13299 ;; 13715 ;;
13300 13716
13717 interix3*)
13718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13719 # Instead, we relocate shared libraries at runtime.
13720 ;;
13721
13301 msdosdjgpp*) 13722 msdosdjgpp*)
13302 # Just because we use GCC doesn't mean we suddenly get shared libraries 13723 # Just because we use GCC doesn't mean we suddenly get shared libraries
13303 # on systems that don't support them. 13724 # on systems that don't support them.
13304 lt_prog_compiler_can_build_shared_F77=no 13725 lt_prog_compiler_can_build_shared_F77=no
13305 enable_shared=no 13726 enable_shared=no
13312 ;; 13733 ;;
13313 13734
13314 hpux*) 13735 hpux*)
13315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13316 # not for PA HP-UX. 13737 # not for PA HP-UX.
13317 case "$host_cpu" in 13738 case $host_cpu in
13318 hppa*64*|ia64*) 13739 hppa*64*|ia64*)
13319 # +Z the default 13740 # +Z the default
13320 ;; 13741 ;;
13321 *) 13742 *)
13322 lt_prog_compiler_pic_F77='-fPIC' 13743 lt_prog_compiler_pic_F77='-fPIC'
13338 lt_prog_compiler_static_F77='-Bstatic' 13759 lt_prog_compiler_static_F77='-Bstatic'
13339 else 13760 else
13340 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13761 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13341 fi 13762 fi
13342 ;; 13763 ;;
13764 darwin*)
13765 # PIC is the default on this platform
13766 # Common symbols not allowed in MH_DYLIB files
13767 case $cc_basename in
13768 xlc*)
13769 lt_prog_compiler_pic_F77='-qnocommon'
13770 lt_prog_compiler_wl_F77='-Wl,'
13771 ;;
13772 esac
13773 ;;
13343 13774
13344 mingw* | pw32* | os2*) 13775 mingw* | pw32* | os2*)
13345 # This hack is so that the source file can tell whether it is being 13776 # This hack is so that the source file can tell whether it is being
13346 # built for inclusion in a dll (and should export symbols for example). 13777 # built for inclusion in a dll (and should export symbols for example).
13347 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13778 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13349 13780
13350 hpux9* | hpux10* | hpux11*) 13781 hpux9* | hpux10* | hpux11*)
13351 lt_prog_compiler_wl_F77='-Wl,' 13782 lt_prog_compiler_wl_F77='-Wl,'
13352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13353 # not for PA HP-UX. 13784 # not for PA HP-UX.
13354 case "$host_cpu" in 13785 case $host_cpu in
13355 hppa*64*|ia64*) 13786 hppa*64*|ia64*)
13356 # +Z the default 13787 # +Z the default
13357 ;; 13788 ;;
13358 *) 13789 *)
13359 lt_prog_compiler_pic_F77='+Z' 13790 lt_prog_compiler_pic_F77='+Z'
13372 newsos6) 13803 newsos6)
13373 lt_prog_compiler_pic_F77='-KPIC' 13804 lt_prog_compiler_pic_F77='-KPIC'
13374 lt_prog_compiler_static_F77='-Bstatic' 13805 lt_prog_compiler_static_F77='-Bstatic'
13375 ;; 13806 ;;
13376 13807
13377 linux*) 13808 linux* | k*bsd*-gnu)
13378 case $CC in 13809 case $cc_basename in
13379 icc* | ecc*) 13810 icc* | ecc*)
13380 lt_prog_compiler_wl_F77='-Wl,' 13811 lt_prog_compiler_wl_F77='-Wl,'
13381 lt_prog_compiler_pic_F77='-KPIC' 13812 lt_prog_compiler_pic_F77='-KPIC'
13382 lt_prog_compiler_static_F77='-static' 13813 lt_prog_compiler_static_F77='-static'
13814 ;;
13815 pgcc* | pgf77* | pgf90* | pgf95*)
13816 # Portland Group compilers (*not* the Pentium gcc compiler,
13817 # which looks to be a dead project)
13818 lt_prog_compiler_wl_F77='-Wl,'
13819 lt_prog_compiler_pic_F77='-fpic'
13820 lt_prog_compiler_static_F77='-Bstatic'
13383 ;; 13821 ;;
13384 ccc*) 13822 ccc*)
13385 lt_prog_compiler_wl_F77='-Wl,' 13823 lt_prog_compiler_wl_F77='-Wl,'
13386 # All Alpha code is PIC. 13824 # All Alpha code is PIC.
13387 lt_prog_compiler_static_F77='-non_shared' 13825 lt_prog_compiler_static_F77='-non_shared'
13393 lt_prog_compiler_wl_F77='-Wl,' 13831 lt_prog_compiler_wl_F77='-Wl,'
13394 # All OSF/1 code is PIC. 13832 # All OSF/1 code is PIC.
13395 lt_prog_compiler_static_F77='-non_shared' 13833 lt_prog_compiler_static_F77='-non_shared'
13396 ;; 13834 ;;
13397 13835
13398 sco3.2v5*)
13399 lt_prog_compiler_pic_F77='-Kpic'
13400 lt_prog_compiler_static_F77='-dn'
13401 ;;
13402
13403 solaris*) 13836 solaris*)
13404 lt_prog_compiler_wl_F77='-Wl,'
13405 lt_prog_compiler_pic_F77='-KPIC' 13837 lt_prog_compiler_pic_F77='-KPIC'
13406 lt_prog_compiler_static_F77='-Bstatic' 13838 lt_prog_compiler_static_F77='-Bstatic'
13839 case $cc_basename in
13840 f77* | f90* | f95*)
13841 lt_prog_compiler_wl_F77='-Qoption ld ';;
13842 *)
13843 lt_prog_compiler_wl_F77='-Wl,';;
13844 esac
13407 ;; 13845 ;;
13408 13846
13409 sunos4*) 13847 sunos4*)
13410 lt_prog_compiler_wl_F77='-Qoption ld ' 13848 lt_prog_compiler_wl_F77='-Qoption ld '
13411 lt_prog_compiler_pic_F77='-PIC' 13849 lt_prog_compiler_pic_F77='-PIC'
13412 lt_prog_compiler_static_F77='-Bstatic' 13850 lt_prog_compiler_static_F77='-Bstatic'
13413 ;; 13851 ;;
13414 13852
13415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13853 sysv4 | sysv4.2uw2* | sysv4.3*)
13416 lt_prog_compiler_wl_F77='-Wl,' 13854 lt_prog_compiler_wl_F77='-Wl,'
13417 lt_prog_compiler_pic_F77='-KPIC' 13855 lt_prog_compiler_pic_F77='-KPIC'
13418 lt_prog_compiler_static_F77='-Bstatic' 13856 lt_prog_compiler_static_F77='-Bstatic'
13419 ;; 13857 ;;
13420 13858
13423 lt_prog_compiler_pic_F77='-Kconform_pic' 13861 lt_prog_compiler_pic_F77='-Kconform_pic'
13424 lt_prog_compiler_static_F77='-Bstatic' 13862 lt_prog_compiler_static_F77='-Bstatic'
13425 fi 13863 fi
13426 ;; 13864 ;;
13427 13865
13866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 lt_prog_compiler_pic_F77='-KPIC'
13869 lt_prog_compiler_static_F77='-Bstatic'
13870 ;;
13871
13872 unicos*)
13873 lt_prog_compiler_wl_F77='-Wl,'
13874 lt_prog_compiler_can_build_shared_F77=no
13875 ;;
13876
13428 uts4*) 13877 uts4*)
13429 lt_prog_compiler_pic_F77='-pic' 13878 lt_prog_compiler_pic_F77='-pic'
13430 lt_prog_compiler_static_F77='-Bstatic' 13879 lt_prog_compiler_static_F77='-Bstatic'
13431 ;; 13880 ;;
13432 13881
13434 lt_prog_compiler_can_build_shared_F77=no 13883 lt_prog_compiler_can_build_shared_F77=no
13435 ;; 13884 ;;
13436 esac 13885 esac
13437 fi 13886 fi
13438 13887
13439echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13440echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13889echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13441 13890
13442# 13891#
13443# Check to make sure the PIC flag actually works. 13892# Check to make sure the PIC flag actually works.
13444# 13893#
13445if test -n "$lt_prog_compiler_pic_F77"; then 13894if test -n "$lt_prog_compiler_pic_F77"; then
13446 13895
13447echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13896{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13448echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13897echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13449if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13898if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6 13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else 13900else
13452 lt_prog_compiler_pic_works_F77=no 13901 lt_prog_compiler_pic_works_F77=no
13453 ac_outfile=conftest.$ac_objext 13902 ac_outfile=conftest.$ac_objext
13457 # (2) before a word containing "conftest.", or (3) at the end. 13906 # (2) before a word containing "conftest.", or (3) at the end.
13458 # Note that $ac_compile itself does not contain backslashes and begins 13907 # Note that $ac_compile itself does not contain backslashes and begins
13459 # with a dollar sign (not a hyphen), so the echo should work correctly. 13908 # with a dollar sign (not a hyphen), so the echo should work correctly.
13460 # The option is referenced via a variable to avoid confusing sed. 13909 # The option is referenced via a variable to avoid confusing sed.
13461 lt_compile=`echo "$ac_compile" | $SED \ 13910 lt_compile=`echo "$ac_compile" | $SED \
13462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13464 -e 's:$: $lt_compiler_flag:'` 13913 -e 's:$: $lt_compiler_flag:'`
13465 (eval echo "\"\$as_me:13465: $lt_compile\"" >&5) 13914 (eval echo "\"\$as_me:13914: $lt_compile\"" >&5)
13466 (eval "$lt_compile" 2>conftest.err) 13915 (eval "$lt_compile" 2>conftest.err)
13467 ac_status=$? 13916 ac_status=$?
13468 cat conftest.err >&5 13917 cat conftest.err >&5
13469 echo "$as_me:13469: \$? = $ac_status" >&5 13918 echo "$as_me:13918: \$? = $ac_status" >&5
13470 if (exit $ac_status) && test -s "$ac_outfile"; then 13919 if (exit $ac_status) && test -s "$ac_outfile"; then
13471 # The compiler can only warn and ignore the option if not recognized 13920 # The compiler can only warn and ignore the option if not recognized
13472 # So say no if there are warnings 13921 # So say no if there are warnings other than the usual output.
13473 if test ! -s conftest.err; then 13922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13474 lt_prog_compiler_pic_works_F77=yes 13925 lt_prog_compiler_pic_works_F77=yes
13475 fi 13926 fi
13476 fi 13927 fi
13477 $rm conftest* 13928 $rm conftest*
13478 13929
13479fi 13930fi
13480echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13481echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13932echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13482 13933
13483if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13934if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13484 case $lt_prog_compiler_pic_F77 in 13935 case $lt_prog_compiler_pic_F77 in
13485 "" | " "*) ;; 13936 "" | " "*) ;;
13486 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13937 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13489 lt_prog_compiler_pic_F77= 13940 lt_prog_compiler_pic_F77=
13490 lt_prog_compiler_can_build_shared_F77=no 13941 lt_prog_compiler_can_build_shared_F77=no
13491fi 13942fi
13492 13943
13493fi 13944fi
13494case "$host_os" in 13945case $host_os in
13495 # For platforms which do not support PIC, -DPIC is meaningless: 13946 # For platforms which do not support PIC, -DPIC is meaningless:
13496 *djgpp*) 13947 *djgpp*)
13497 lt_prog_compiler_pic_F77= 13948 lt_prog_compiler_pic_F77=
13498 ;; 13949 ;;
13499 *) 13950 *)
13500 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13951 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13501 ;; 13952 ;;
13502esac 13953esac
13503 13954
13955#
13956# Check to make sure the static flag actually works.
13957#
13958wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13959{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13960echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13961if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963else
13964 lt_prog_compiler_static_works_F77=no
13965 save_LDFLAGS="$LDFLAGS"
13966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13967 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13969 # The linker can only warn and ignore the option if not recognized
13970 # So say no if there are warnings
13971 if test -s conftest.err; then
13972 # Append any errors to the config.log.
13973 cat conftest.err 1>&5
13974 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13976 if diff conftest.exp conftest.er2 >/dev/null; then
13977 lt_prog_compiler_static_works_F77=yes
13978 fi
13979 else
13980 lt_prog_compiler_static_works_F77=yes
13981 fi
13982 fi
13983 $rm conftest*
13984 LDFLAGS="$save_LDFLAGS"
13985
13986fi
13987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13988echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13989
13990if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13991 :
13992else
13993 lt_prog_compiler_static_F77=
13994fi
13995
13996
13504echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13997{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13505echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13506if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13999if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6 14000 echo $ECHO_N "(cached) $ECHO_C" >&6
13508else 14001else
13509 lt_cv_prog_compiler_c_o_F77=no 14002 lt_cv_prog_compiler_c_o_F77=no
13510 $rm -r conftest 2>/dev/null 14003 $rm -r conftest 2>/dev/null
13517 # Insert the option either (1) after the last *FLAGS variable, or 14010 # Insert the option either (1) after the last *FLAGS variable, or
13518 # (2) before a word containing "conftest.", or (3) at the end. 14011 # (2) before a word containing "conftest.", or (3) at the end.
13519 # Note that $ac_compile itself does not contain backslashes and begins 14012 # Note that $ac_compile itself does not contain backslashes and begins
13520 # with a dollar sign (not a hyphen), so the echo should work correctly. 14013 # with a dollar sign (not a hyphen), so the echo should work correctly.
13521 lt_compile=`echo "$ac_compile" | $SED \ 14014 lt_compile=`echo "$ac_compile" | $SED \
13522 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13524 -e 's:$: $lt_compiler_flag:'` 14017 -e 's:$: $lt_compiler_flag:'`
13525 (eval echo "\"\$as_me:13525: $lt_compile\"" >&5) 14018 (eval echo "\"\$as_me:14018: $lt_compile\"" >&5)
13526 (eval "$lt_compile" 2>out/conftest.err) 14019 (eval "$lt_compile" 2>out/conftest.err)
13527 ac_status=$? 14020 ac_status=$?
13528 cat out/conftest.err >&5 14021 cat out/conftest.err >&5
13529 echo "$as_me:13529: \$? = $ac_status" >&5 14022 echo "$as_me:14022: \$? = $ac_status" >&5
13530 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13531 then 14024 then
13532 # The compiler can only warn and ignore the option if not recognized 14025 # The compiler can only warn and ignore the option if not recognized
13533 # So say no if there are warnings 14026 # So say no if there are warnings
13534 if test ! -s out/conftest.err; then 14027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13535 lt_cv_prog_compiler_c_o_F77=yes 14030 lt_cv_prog_compiler_c_o_F77=yes
13536 fi 14031 fi
13537 fi 14032 fi
13538 chmod u+w . 14033 chmod u+w . 2>&5
13539 $rm conftest* 14034 $rm conftest*
13540 # SGI C++ compiler will create directory out/ii_files/ for 14035 # SGI C++ compiler will create directory out/ii_files/ for
13541 # template instantiation 14036 # template instantiation
13542 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13543 $rm out/* && rmdir out 14038 $rm out/* && rmdir out
13544 cd .. 14039 cd ..
13545 rmdir conftest 14040 rmdir conftest
13546 $rm conftest* 14041 $rm conftest*
13547 14042
13548fi 14043fi
13549echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14044{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13550echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14045echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13551 14046
13552 14047
13553hard_links="nottested" 14048hard_links="nottested"
13554if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14049if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13555 # do not overwrite the value of need_locks provided by the user 14050 # do not overwrite the value of need_locks provided by the user
13556 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14051 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13557echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14052echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13558 hard_links=yes 14053 hard_links=yes
13559 $rm conftest* 14054 $rm conftest*
13560 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13561 touch conftest.a 14056 touch conftest.a
13562 ln conftest.a conftest.b 2>&5 || hard_links=no 14057 ln conftest.a conftest.b 2>&5 || hard_links=no
13563 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13564 echo "$as_me:$LINENO: result: $hard_links" >&5 14059 { echo "$as_me:$LINENO: result: $hard_links" >&5
13565echo "${ECHO_T}$hard_links" >&6 14060echo "${ECHO_T}$hard_links" >&6; }
13566 if test "$hard_links" = no; then 14061 if test "$hard_links" = no; then
13567 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13568echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14063echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13569 need_locks=warn 14064 need_locks=warn
13570 fi 14065 fi
13571else 14066else
13572 need_locks=no 14067 need_locks=no
13573fi 14068fi
13574 14069
13575echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14070{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13576echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13577 14072
13578 runpath_var= 14073 runpath_var=
13579 allow_undefined_flag_F77= 14074 allow_undefined_flag_F77=
13580 enable_shared_with_static_runtimes_F77=no 14075 enable_shared_with_static_runtimes_F77=no
13581 archive_cmds_F77= 14076 archive_cmds_F77=
13609 # platforms (ab)use it in PIC code, but their linkers get confused if 14104 # platforms (ab)use it in PIC code, but their linkers get confused if
13610 # the symbol is explicitly referenced. Since portable code cannot 14105 # the symbol is explicitly referenced. Since portable code cannot
13611 # rely on this symbol name, it's probably fine to never include it in 14106 # rely on this symbol name, it's probably fine to never include it in
13612 # preloaded symbol tables. 14107 # preloaded symbol tables.
13613 extract_expsyms_cmds= 14108 extract_expsyms_cmds=
14109 # Just being paranoid about ensuring that cc_basename is set.
14110 for cc_temp in $compiler""; do
14111 case $cc_temp in
14112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14114 \-*) ;;
14115 *) break;;
14116 esac
14117done
14118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13614 14119
13615 case $host_os in 14120 case $host_os in
13616 cygwin* | mingw* | pw32*) 14121 cygwin* | mingw* | pw32*)
13617 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13618 # When not using gcc, we currently assume that we are using 14123 # When not using gcc, we currently assume that we are using
13619 # Microsoft Visual C++. 14124 # Microsoft Visual C++.
13620 if test "$GCC" != yes; then 14125 if test "$GCC" != yes; then
13621 with_gnu_ld=no 14126 with_gnu_ld=no
13622 fi 14127 fi
13623 ;; 14128 ;;
14129 interix*)
14130 # we just hope/assume this is gcc and not c89 (= MSVC++)
14131 with_gnu_ld=yes
14132 ;;
13624 openbsd*) 14133 openbsd*)
13625 with_gnu_ld=no 14134 with_gnu_ld=no
13626 ;; 14135 ;;
13627 esac 14136 esac
13628 14137
13629 ld_shlibs_F77=yes 14138 ld_shlibs_F77=yes
13630 if test "$with_gnu_ld" = yes; then 14139 if test "$with_gnu_ld" = yes; then
13631 # If archive_cmds runs LD, not CC, wlarc should be empty 14140 # If archive_cmds runs LD, not CC, wlarc should be empty
13632 wlarc='${wl}' 14141 wlarc='${wl}'
14142
14143 # Set some defaults for GNU ld with shared library support. These
14144 # are reset later if shared libraries are not supported. Putting them
14145 # here allows them to be overridden if necessary.
14146 runpath_var=LD_RUN_PATH
14147 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14148 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14149 # ancient GNU ld didn't support --whole-archive et. al.
14150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14151 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14152 else
14153 whole_archive_flag_spec_F77=
14154 fi
14155 supports_anon_versioning=no
14156 case `$LD -v 2>/dev/null` in
14157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14160 *\ 2.11.*) ;; # other 2.11 versions
14161 *) supports_anon_versioning=yes ;;
14162 esac
13633 14163
13634 # See if GNU ld supports shared libraries. 14164 # See if GNU ld supports shared libraries.
13635 case $host_os in 14165 case $host_os in
13636 aix3* | aix4* | aix5*) 14166 aix3* | aix4* | aix5*)
13637 # On AIX/PPC, the GNU linker is very broken 14167 # On AIX/PPC, the GNU linker is very broken
13679 # as there is no search path for DLLs. 14209 # as there is no search path for DLLs.
13680 hardcode_libdir_flag_spec_F77='-L$libdir' 14210 hardcode_libdir_flag_spec_F77='-L$libdir'
13681 allow_undefined_flag_F77=unsupported 14211 allow_undefined_flag_F77=unsupported
13682 always_export_symbols_F77=no 14212 always_export_symbols_F77=no
13683 enable_shared_with_static_runtimes_F77=yes 14213 enable_shared_with_static_runtimes_F77=yes
13684 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14214 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13685 14215
13686 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13688 # If the export-symbols file already is a .def file (1st line 14218 # If the export-symbols file already is a .def file (1st line
13689 # is EXPORTS), use it as is; otherwise, prepend... 14219 # is EXPORTS), use it as is; otherwise, prepend...
13690 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14220 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13691 cp $export_symbols $output_objdir/$soname.def; 14221 cp $export_symbols $output_objdir/$soname.def;
13692 else 14222 else
13693 echo EXPORTS > $output_objdir/$soname.def; 14223 echo EXPORTS > $output_objdir/$soname.def;
13694 cat $export_symbols >> $output_objdir/$soname.def; 14224 cat $export_symbols >> $output_objdir/$soname.def;
13695 fi~ 14225 fi~
13696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13697 else 14227 else
13698 ld_shlibs=no 14228 ld_shlibs_F77=no
13699 fi 14229 fi
13700 ;; 14230 ;;
13701 14231
13702 netbsd*) 14232 interix3*)
14233 hardcode_direct_F77=no
14234 hardcode_shlibpath_var_F77=no
14235 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14236 export_dynamic_flag_spec_F77='${wl}-E'
14237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14238 # Instead, shared libraries are loaded at an image base (0x10000000 by
14239 # default) and relocated if they conflict, which is a slow very memory
14240 # consuming and fragmenting process. To avoid this, we pick a random,
14241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14243 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'
14244 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'
14245 ;;
14246
14247 linux* | k*bsd*-gnu)
14248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 tmp_addflag=
14250 case $cc_basename,$host_cpu in
14251 pgcc*) # Portland Group C compiler
14252 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'
14253 tmp_addflag=' $pic_flag'
14254 ;;
14255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14256 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'
14257 tmp_addflag=' $pic_flag -Mnomain' ;;
14258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14259 tmp_addflag=' -i_dynamic' ;;
14260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14261 tmp_addflag=' -i_dynamic -nofor_main' ;;
14262 ifc* | ifort*) # Intel Fortran compiler
14263 tmp_addflag=' -nofor_main' ;;
14264 esac
14265 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266
14267 if test $supports_anon_versioning = yes; then
14268 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14270 $echo "local: *; };" >> $output_objdir/$libname.ver~
14271 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14272 fi
14273 link_all_deplibs_F77=no
14274 else
14275 ld_shlibs_F77=no
14276 fi
14277 ;;
14278
14279 netbsd* | netbsdelf*-gnu)
13703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13704 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14281 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13705 wlarc= 14282 wlarc=
13706 else 14283 else
13707 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14285 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13709 fi 14286 fi
13710 ;; 14287 ;;
13711 14288
13712 solaris* | sysv5*) 14289 solaris*)
13713 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14290 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13714 ld_shlibs_F77=no 14291 ld_shlibs_F77=no
13715 cat <<EOF 1>&2 14292 cat <<EOF 1>&2
13716 14293
13717*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14294*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13728 else 14305 else
13729 ld_shlibs_F77=no 14306 ld_shlibs_F77=no
13730 fi 14307 fi
13731 ;; 14308 ;;
13732 14309
14310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14311 case `$LD -v 2>&1` in
14312 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14313 ld_shlibs_F77=no
14314 cat <<_LT_EOF 1>&2
14315
14316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14317*** reliably create shared libraries on SCO systems. Therefore, libtool
14318*** is disabling shared libraries support. We urge you to upgrade GNU
14319*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14320*** your PATH or compiler configuration so that the native linker is
14321*** used, and then restart.
14322
14323_LT_EOF
14324 ;;
14325 *)
14326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14327 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14328 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14329 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14330 else
14331 ld_shlibs_F77=no
14332 fi
14333 ;;
14334 esac
14335 ;;
14336
13733 sunos4*) 14337 sunos4*)
13734 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14338 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13735 wlarc= 14339 wlarc=
13736 hardcode_direct_F77=yes 14340 hardcode_direct_F77=yes
13737 hardcode_shlibpath_var_F77=no 14341 hardcode_shlibpath_var_F77=no
13738 ;; 14342 ;;
13739
13740 linux*)
13741 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13742 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13743 archive_cmds_F77="$tmp_archive_cmds"
13744 supports_anon_versioning=no
13745 case `$LD -v 2>/dev/null` in
13746 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13749 *\ 2.11.*) ;; # other 2.11 versions
13750 *) supports_anon_versioning=yes ;;
13751 esac
13752 if test $supports_anon_versioning = yes; then
13753 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13754cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13755$echo "local: *; };" >> $output_objdir/$libname.ver~
13756 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13757 else
13758 archive_expsym_cmds_F77="$tmp_archive_cmds"
13759 fi
13760 else
13761 ld_shlibs_F77=no
13762 fi
13763 ;;
13764 14343
13765 *) 14344 *)
13766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13767 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14346 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13768 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14347 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13770 ld_shlibs_F77=no 14349 ld_shlibs_F77=no
13771 fi 14350 fi
13772 ;; 14351 ;;
13773 esac 14352 esac
13774 14353
13775 if test "$ld_shlibs_F77" = yes; then 14354 if test "$ld_shlibs_F77" = no; then
13776 runpath_var=LD_RUN_PATH 14355 runpath_var=
13777 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14356 hardcode_libdir_flag_spec_F77=
13778 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14357 export_dynamic_flag_spec_F77=
13779 # ancient GNU ld didn't support --whole-archive et. al.
13780 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13781 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13782 else
13783 whole_archive_flag_spec_F77= 14358 whole_archive_flag_spec_F77=
13784 fi
13785 fi 14359 fi
13786 else 14360 else
13787 # PORTME fill in a description of your system's linker (not GNU ld) 14361 # PORTME fill in a description of your system's linker (not GNU ld)
13788 case $host_os in 14362 case $host_os in
13789 aix3*) 14363 aix3*)
13791 always_export_symbols_F77=yes 14365 always_export_symbols_F77=yes
13792 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' 14366 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'
13793 # Note: this linker hardcodes the directories in LIBPATH if there 14367 # Note: this linker hardcodes the directories in LIBPATH if there
13794 # are no directories specified by -L. 14368 # are no directories specified by -L.
13795 hardcode_minus_L_F77=yes 14369 hardcode_minus_L_F77=yes
13796 if test "$GCC" = yes && test -z "$link_static_flag"; then 14370 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13797 # Neither direct hardcoding nor static linking is supported with a 14371 # Neither direct hardcoding nor static linking is supported with a
13798 # broken collect2. 14372 # broken collect2.
13799 hardcode_direct_F77=unsupported 14373 hardcode_direct_F77=unsupported
13800 fi 14374 fi
13801 ;; 14375 ;;
13825 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14399 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13826 aix_use_runtimelinking=yes 14400 aix_use_runtimelinking=yes
13827 break 14401 break
13828 fi 14402 fi
13829 done 14403 done
14404 ;;
13830 esac 14405 esac
13831 14406
13832 exp_sym_flag='-bexport' 14407 exp_sym_flag='-bexport'
13833 no_entry_flag='-bnoentry' 14408 no_entry_flag='-bnoentry'
13834 fi 14409 fi
13843 hardcode_direct_F77=yes 14418 hardcode_direct_F77=yes
13844 hardcode_libdir_separator_F77=':' 14419 hardcode_libdir_separator_F77=':'
13845 link_all_deplibs_F77=yes 14420 link_all_deplibs_F77=yes
13846 14421
13847 if test "$GCC" = yes; then 14422 if test "$GCC" = yes; then
13848 case $host_os in aix4.012|aix4.012.*) 14423 case $host_os in aix4.[012]|aix4.[012].*)
13849 # We only want to do this on AIX 4.2 and lower, the check 14424 # We only want to do this on AIX 4.2 and lower, the check
13850 # below for broken collect2 doesn't work under 4.3+ 14425 # below for broken collect2 doesn't work under 4.3+
13851 collect2name=`${CC} -print-prog-name=collect2` 14426 collect2name=`${CC} -print-prog-name=collect2`
13852 if test -f "$collect2name" && \ 14427 if test -f "$collect2name" && \
13853 strings "$collect2name" | grep resolve_lib_name >/dev/null 14428 strings "$collect2name" | grep resolve_lib_name >/dev/null
13862 # to unsupported forces relinking 14437 # to unsupported forces relinking
13863 hardcode_minus_L_F77=yes 14438 hardcode_minus_L_F77=yes
13864 hardcode_libdir_flag_spec_F77='-L$libdir' 14439 hardcode_libdir_flag_spec_F77='-L$libdir'
13865 hardcode_libdir_separator_F77= 14440 hardcode_libdir_separator_F77=
13866 fi 14441 fi
14442 ;;
13867 esac 14443 esac
13868 shared_flag='-shared' 14444 shared_flag='-shared'
14445 if test "$aix_use_runtimelinking" = yes; then
14446 shared_flag="$shared_flag "'${wl}-G'
14447 fi
13869 else 14448 else
13870 # not using gcc 14449 # not using gcc
13871 if test "$host_cpu" = ia64; then 14450 if test "$host_cpu" = ia64; then
13872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13873 # chokes on -Wl,-G. The following line is correct: 14452 # chokes on -Wl,-G. The following line is correct:
13874 shared_flag='-G' 14453 shared_flag='-G'
13875 else 14454 else
13876 if test "$aix_use_runtimelinking" = yes; then 14455 if test "$aix_use_runtimelinking" = yes; then
13877 shared_flag='${wl}-G' 14456 shared_flag='${wl}-G'
13878 else 14457 else
13879 shared_flag='${wl}-bM:SRE' 14458 shared_flag='${wl}-bM:SRE'
13880 fi 14459 fi
13881 fi 14460 fi
13882 fi 14461 fi
13883 14462
13884 # It seems that -bexpall does not export symbols beginning with 14463 # It seems that -bexpall does not export symbols beginning with
13885 # underscore (_), so it is better to generate a list of symbols to export. 14464 # underscore (_), so it is better to generate a list of symbols to export.
13893 program main 14472 program main
13894 14473
13895 end 14474 end
13896_ACEOF 14475_ACEOF
13897rm -f conftest.$ac_objext conftest$ac_exeext 14476rm -f conftest.$ac_objext conftest$ac_exeext
14477if { (ac_try="$ac_link"
14478case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481esac
13898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval $ac_link) 2>conftest.er1 14483 (eval "$ac_link") 2>conftest.er1
13900 ac_status=$? 14484 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err 14485 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1 14486 rm -f conftest.er1
13903 cat conftest.err >&5 14487 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && 14489 (exit $ac_status); } && {
13906 { ac_try='test -z "$ac_f77_werror_flag" 14490 test -z "$ac_f77_werror_flag" ||
13907 || test ! -s conftest.err' 14491 test ! -s conftest.err
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14492 } && test -s conftest$ac_exeext &&
13909 (eval $ac_try) 2>&5 14493 $as_test_x conftest$ac_exeext; then
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 14494
13920aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13921}'` 14496}'`
13922# Check for a 64-bit object if we didn't find anything. 14497# Check for a 64-bit object if we didn't find anything.
13923if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14498if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13924}'`; fi 14499}'`; fi
13925else 14500else
13926 echo "$as_me: failed program was:" >&5 14501 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5 14502sed 's/^/| /' conftest.$ac_ext >&5
13928 14503
14504
13929fi 14505fi
13930rm -f conftest.err conftest.$ac_objext \ 14506
14507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13931 conftest$ac_exeext conftest.$ac_ext 14508 conftest$ac_exeext conftest.$ac_ext
13932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14509if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13933 14510
13934 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14511 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13935 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14512 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"
13936 else 14513 else
13937 if test "$host_cpu" = ia64; then 14514 if test "$host_cpu" = ia64; then
13938 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14515 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13939 allow_undefined_flag_F77="-z nodefs" 14516 allow_undefined_flag_F77="-z nodefs"
13940 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14517 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"
13941 else 14518 else
13942 # Determine the default libpath from the value encoded in an empty executable. 14519 # Determine the default libpath from the value encoded in an empty executable.
13943 cat >conftest.$ac_ext <<_ACEOF 14520 cat >conftest.$ac_ext <<_ACEOF
13944 program main 14521 program main
13945 14522
13946 end 14523 end
13947_ACEOF 14524_ACEOF
13948rm -f conftest.$ac_objext conftest$ac_exeext 14525rm -f conftest.$ac_objext conftest$ac_exeext
14526if { (ac_try="$ac_link"
14527case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530esac
13949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval $ac_link) 2>conftest.er1 14532 (eval "$ac_link") 2>conftest.er1
13951 ac_status=$? 14533 ac_status=$?
13952 grep -v '^ *+' conftest.er1 >conftest.err 14534 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1 14535 rm -f conftest.er1
13954 cat conftest.err >&5 14536 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && 14538 (exit $ac_status); } && {
13957 { ac_try='test -z "$ac_f77_werror_flag" 14539 test -z "$ac_f77_werror_flag" ||
13958 || test ! -s conftest.err' 14540 test ! -s conftest.err
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14541 } && test -s conftest$ac_exeext &&
13960 (eval $ac_try) 2>&5 14542 $as_test_x conftest$ac_exeext; then
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 14543
13971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13972}'` 14545}'`
13973# Check for a 64-bit object if we didn't find anything. 14546# Check for a 64-bit object if we didn't find anything.
13974if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14547if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13975}'`; fi 14548}'`; fi
13976else 14549else
13977 echo "$as_me: failed program was:" >&5 14550 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5 14551sed 's/^/| /' conftest.$ac_ext >&5
13979 14552
14553
13980fi 14554fi
13981rm -f conftest.err conftest.$ac_objext \ 14555
14556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982 conftest$ac_exeext conftest.$ac_ext 14557 conftest$ac_exeext conftest.$ac_ext
13983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13984 14559
13985 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14560 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13986 # Warning - without using the other run time loading flags, 14561 # Warning - without using the other run time loading flags,
13987 # -berok will link without error, but may produce a broken library. 14562 # -berok will link without error, but may produce a broken library.
13988 no_undefined_flag_F77=' ${wl}-bernotok' 14563 no_undefined_flag_F77=' ${wl}-bernotok'
13989 allow_undefined_flag_F77=' ${wl}-berok' 14564 allow_undefined_flag_F77=' ${wl}-berok'
13990 # -bexpall does not export symbols beginning with underscore (_)
13991 always_export_symbols_F77=yes
13992 # Exported symbols can be pulled into shared objects from archives 14565 # Exported symbols can be pulled into shared objects from archives
13993 whole_archive_flag_spec_F77=' ' 14566 whole_archive_flag_spec_F77='$convenience'
13994 archive_cmds_need_lc_F77=yes 14567 archive_cmds_need_lc_F77=yes
13995 # This is similar to how AIX traditionally builds it's shared libraries. 14568 # This is similar to how AIX traditionally builds its shared libraries.
13996 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14569 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'
13997 fi 14570 fi
13998 fi 14571 fi
13999 ;; 14572 ;;
14000 14573
14001 amigaos*) 14574 amigaos*)
14004 hardcode_minus_L_F77=yes 14577 hardcode_minus_L_F77=yes
14005 # see comment about different semantics on the GNU ld section 14578 # see comment about different semantics on the GNU ld section
14006 ld_shlibs_F77=no 14579 ld_shlibs_F77=no
14007 ;; 14580 ;;
14008 14581
14009 bsdi4*) 14582 bsdi[45]*)
14010 export_dynamic_flag_spec_F77=-rdynamic 14583 export_dynamic_flag_spec_F77=-rdynamic
14011 ;; 14584 ;;
14012 14585
14013 cygwin* | mingw* | pw32*) 14586 cygwin* | mingw* | pw32*)
14014 # When not using gcc, we currently assume that we are using 14587 # When not using gcc, we currently assume that we are using
14018 hardcode_libdir_flag_spec_F77=' ' 14591 hardcode_libdir_flag_spec_F77=' '
14019 allow_undefined_flag_F77=unsupported 14592 allow_undefined_flag_F77=unsupported
14020 # Tell ltmain to make .lib files, not .a files. 14593 # Tell ltmain to make .lib files, not .a files.
14021 libext=lib 14594 libext=lib
14022 # Tell ltmain to make .dll files, not .so files. 14595 # Tell ltmain to make .dll files, not .so files.
14023 shrext=".dll" 14596 shrext_cmds=".dll"
14024 # FIXME: Setting linknames here is a bad hack. 14597 # FIXME: Setting linknames here is a bad hack.
14025 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14598 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14026 # The linker will automatically build a .lib file if we build a DLL. 14599 # The linker will automatically build a .lib file if we build a DLL.
14027 old_archive_From_new_cmds_F77='true' 14600 old_archive_From_new_cmds_F77='true'
14028 # FIXME: Should let the user specify the lib program. 14601 # FIXME: Should let the user specify the lib program.
14029 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14602 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14030 fix_srcfile_path='`cygpath -w "$srcfile"`' 14603 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14031 enable_shared_with_static_runtimes_F77=yes 14604 enable_shared_with_static_runtimes_F77=yes
14032 ;; 14605 ;;
14033 14606
14034 darwin* | rhapsody*) 14607 darwin* | rhapsody*)
14035 if test "$GXX" = yes ; then 14608 case $host_os in
14609 rhapsody* | darwin1.[012])
14610 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14611 ;;
14612 *) # Darwin 1.3 on
14613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14614 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14615 else
14616 case ${MACOSX_DEPLOYMENT_TARGET} in
14617 10.[012])
14618 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14619 ;;
14620 10.*)
14621 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14622 ;;
14623 esac
14624 fi
14625 ;;
14626 esac
14036 archive_cmds_need_lc_F77=no 14627 archive_cmds_need_lc_F77=no
14037 case "$host_os" in
14038 rhapsody* | darwin1.[012])
14039 allow_undefined_flag_F77='-undefined suppress'
14040 ;;
14041 *) # Darwin 1.3 on
14042 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14043 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14044 else
14045 case ${MACOSX_DEPLOYMENT_TARGET} in
14046 10.[012])
14047 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14048 ;;
14049 10.*)
14050 allow_undefined_flag_F77='-undefined dynamic_lookup'
14051 ;;
14052 esac
14053 fi
14054 ;;
14055 esac
14056 lt_int_apple_cc_single_mod=no
14057 output_verbose_link_cmd='echo'
14058 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14059 lt_int_apple_cc_single_mod=yes
14060 fi
14061 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14062 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14063 else
14064 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14065 fi
14066 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14069 archive_expsym_cmds_F77='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}'
14070 else
14071 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14072 fi
14073 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}'
14074 hardcode_direct_F77=no 14628 hardcode_direct_F77=no
14075 hardcode_automatic_F77=yes 14629 hardcode_automatic_F77=yes
14076 hardcode_shlibpath_var_F77=unsupported 14630 hardcode_shlibpath_var_F77=unsupported
14077 whole_archive_flag_spec_F77='-all_load $convenience' 14631 whole_archive_flag_spec_F77=''
14078 link_all_deplibs_F77=yes 14632 link_all_deplibs_F77=yes
14633 if test "$GCC" = yes ; then
14634 output_verbose_link_cmd='echo'
14635 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14636 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14637 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14638 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}'
14639 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}'
14079 else 14640 else
14641 case $cc_basename in
14642 xlc*)
14643 output_verbose_link_cmd='echo'
14644 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14645 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14646 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14647 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14648 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}'
14649 ;;
14650 *)
14080 ld_shlibs_F77=no 14651 ld_shlibs_F77=no
14652 ;;
14653 esac
14081 fi 14654 fi
14082 ;; 14655 ;;
14083 14656
14084 dgux*) 14657 dgux*)
14085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14109 hardcode_minus_L_F77=yes 14682 hardcode_minus_L_F77=yes
14110 hardcode_shlibpath_var_F77=no 14683 hardcode_shlibpath_var_F77=no
14111 ;; 14684 ;;
14112 14685
14113 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14686 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14114 freebsd* | kfreebsd*-gnu) 14687 freebsd* | dragonfly*)
14115 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14688 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14116 hardcode_libdir_flag_spec_F77='-R$libdir' 14689 hardcode_libdir_flag_spec_F77='-R$libdir'
14117 hardcode_direct_F77=yes 14690 hardcode_direct_F77=yes
14118 hardcode_shlibpath_var_F77=no 14691 hardcode_shlibpath_var_F77=no
14119 ;; 14692 ;;
14132 # but as the default location of the library. 14705 # but as the default location of the library.
14133 hardcode_minus_L_F77=yes 14706 hardcode_minus_L_F77=yes
14134 export_dynamic_flag_spec_F77='${wl}-E' 14707 export_dynamic_flag_spec_F77='${wl}-E'
14135 ;; 14708 ;;
14136 14709
14137 hpux10* | hpux11*) 14710 hpux10*)
14138 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14712 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14713 else
14714 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14715 fi
14716 if test "$with_gnu_ld" = no; then
14717 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14718 hardcode_libdir_separator_F77=:
14719
14720 hardcode_direct_F77=yes
14721 export_dynamic_flag_spec_F77='${wl}-E'
14722
14723 # hardcode_minus_L: Not really in the search PATH,
14724 # but as the default location of the library.
14725 hardcode_minus_L_F77=yes
14726 fi
14727 ;;
14728
14729 hpux11*)
14730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14139 case "$host_cpu" in 14731 case $host_cpu in
14140 hppa*64*|ia64*) 14732 hppa*64*)
14141 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14733 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14734 ;;
14735 ia64*)
14736 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14142 ;; 14737 ;;
14143 *) 14738 *)
14144 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14739 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14145 ;; 14740 ;;
14146 esac 14741 esac
14147 else 14742 else
14148 case "$host_cpu" in 14743 case $host_cpu in
14149 hppa*64*|ia64*) 14744 hppa*64*)
14150 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14745 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746 ;;
14747 ia64*)
14748 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14151 ;; 14749 ;;
14152 *) 14750 *)
14153 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14751 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14154 ;; 14752 ;;
14155 esac 14753 esac
14156 fi 14754 fi
14157 if test "$with_gnu_ld" = no; then 14755 if test "$with_gnu_ld" = no; then
14158 case "$host_cpu" in
14159 hppa*64*)
14160 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14756 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14757 hardcode_libdir_separator_F77=:
14758
14759 case $host_cpu in
14760 hppa*64*|ia64*)
14161 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14761 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14162 hardcode_libdir_separator_F77=:
14163 hardcode_direct_F77=no 14762 hardcode_direct_F77=no
14164 hardcode_shlibpath_var_F77=no 14763 hardcode_shlibpath_var_F77=no
14165 ;; 14764 ;;
14166 ia64*)
14167 hardcode_libdir_flag_spec_F77='-L$libdir'
14168 hardcode_direct_F77=no
14169 hardcode_shlibpath_var_F77=no
14170
14171 # hardcode_minus_L: Not really in the search PATH,
14172 # but as the default location of the library.
14173 hardcode_minus_L_F77=yes
14174 ;;
14175 *) 14765 *)
14176 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14177 hardcode_libdir_separator_F77=:
14178 hardcode_direct_F77=yes 14766 hardcode_direct_F77=yes
14179 export_dynamic_flag_spec_F77='${wl}-E' 14767 export_dynamic_flag_spec_F77='${wl}-E'
14180 14768
14181 # hardcode_minus_L: Not really in the search PATH, 14769 # hardcode_minus_L: Not really in the search PATH,
14182 # but as the default location of the library. 14770 # but as the default location of the library.
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14784 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14197 hardcode_libdir_separator_F77=: 14785 hardcode_libdir_separator_F77=:
14198 link_all_deplibs_F77=yes 14786 link_all_deplibs_F77=yes
14199 ;; 14787 ;;
14200 14788
14201 netbsd*) 14789 netbsd* | netbsdelf*-gnu)
14202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14203 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14791 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14204 else 14792 else
14205 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14793 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14206 fi 14794 fi
14220 openbsd*) 14808 openbsd*)
14221 hardcode_direct_F77=yes 14809 hardcode_direct_F77=yes
14222 hardcode_shlibpath_var_F77=no 14810 hardcode_shlibpath_var_F77=no
14223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14224 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14812 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14813 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14225 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14814 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14226 export_dynamic_flag_spec_F77='${wl}-E' 14815 export_dynamic_flag_spec_F77='${wl}-E'
14227 else 14816 else
14228 case $host_os in 14817 case $host_os in
14229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14818 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14265 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14854 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14266 else 14855 else
14267 allow_undefined_flag_F77=' -expect_unresolved \*' 14856 allow_undefined_flag_F77=' -expect_unresolved \*'
14268 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' 14857 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'
14269 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~ 14858 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~
14270 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14859 $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'
14271 14860
14272 # Both c and cxx compiler support -rpath directly 14861 # Both c and cxx compiler support -rpath directly
14273 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14862 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14274 fi 14863 fi
14275 hardcode_libdir_separator_F77=: 14864 hardcode_libdir_separator_F77=:
14276 ;; 14865 ;;
14277 14866
14278 sco3.2v5*)
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_shlibpath_var_F77=no
14281 export_dynamic_flag_spec_F77='${wl}-Bexport'
14282 runpath_var=LD_RUN_PATH
14283 hardcode_runpath_var=yes
14284 ;;
14285
14286 solaris*) 14867 solaris*)
14287 no_undefined_flag_F77=' -z text' 14868 no_undefined_flag_F77=' -z text'
14288 if test "$GCC" = yes; then 14869 if test "$GCC" = yes; then
14870 wlarc='${wl}'
14289 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14871 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14290 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14291 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14873 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14292 else 14874 else
14875 wlarc=''
14293 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14876 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14294 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14296 fi 14879 fi
14297 hardcode_libdir_flag_spec_F77='-R$libdir' 14880 hardcode_libdir_flag_spec_F77='-R$libdir'
14298 hardcode_shlibpath_var_F77=no 14881 hardcode_shlibpath_var_F77=no
14299 case $host_os in 14882 case $host_os in
14300 solaris2.[0-5] | solaris2.[0-5].*) ;; 14883 solaris2.[0-5] | solaris2.[0-5].*) ;;
14884 *)
14885 # The compiler driver will combine linker options so we
14886 # cannot just pass the convience library names through
14887 # without $wl, iff we do not link with $LD.
14888 # Luckily, gcc supports the same syntax we need for Sun Studio.
14301 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14889 # Supported since Solaris 2.6 (maybe 2.5.1?)
14890 case $wlarc in
14891 '')
14302 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14892 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14893 *)
14894 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14895 esac ;;
14303 esac 14896 esac
14304 link_all_deplibs_F77=yes 14897 link_all_deplibs_F77=yes
14305 ;; 14898 ;;
14306 14899
14307 sunos4*) 14900 sunos4*)
14354 hardcode_runpath_var=yes 14947 hardcode_runpath_var=yes
14355 ld_shlibs_F77=yes 14948 ld_shlibs_F77=yes
14356 fi 14949 fi
14357 ;; 14950 ;;
14358 14951
14359 sysv4.2uw2*) 14952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14360 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14361 hardcode_direct_F77=yes
14362 hardcode_minus_L_F77=no
14363 hardcode_shlibpath_var_F77=no
14364 hardcode_runpath_var=yes
14365 runpath_var=LD_RUN_PATH
14366 ;;
14367
14368 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14369 no_undefined_flag_F77='${wl}-z ${wl}text' 14953 no_undefined_flag_F77='${wl}-z,text'
14370 if test "$GCC" = yes; then 14954 archive_cmds_need_lc_F77=no
14371 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14372 else
14373 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14374 fi
14375 runpath_var='LD_RUN_PATH'
14376 hardcode_shlibpath_var_F77=no
14377 ;;
14378
14379 sysv5*)
14380 no_undefined_flag_F77=' -z text'
14381 # $CC -shared without GNU ld will not create a library from C++
14382 # object files and a static libstdc++, better avoid it by now
14383 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14384 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14386 hardcode_libdir_flag_spec_F77=
14387 hardcode_shlibpath_var_F77=no 14955 hardcode_shlibpath_var_F77=no
14388 runpath_var='LD_RUN_PATH' 14956 runpath_var='LD_RUN_PATH'
14957
14958 if test "$GCC" = yes; then
14959 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 else
14962 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 fi
14965 ;;
14966
14967 sysv5* | sco3.2v5* | sco5v6*)
14968 # Note: We can NOT use -z defs as we might desire, because we do not
14969 # link with -lc, and that would cause any symbols used from libc to
14970 # always be unresolved, which means just about no library would
14971 # ever link correctly. If we're not using GNU ld we use -z text
14972 # though, which does catch some bad symbols but isn't as heavy-handed
14973 # as -z defs.
14974 no_undefined_flag_F77='${wl}-z,text'
14975 allow_undefined_flag_F77='${wl}-z,nodefs'
14976 archive_cmds_need_lc_F77=no
14977 hardcode_shlibpath_var_F77=no
14978 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14979 hardcode_libdir_separator_F77=':'
14980 link_all_deplibs_F77=yes
14981 export_dynamic_flag_spec_F77='${wl}-Bexport'
14982 runpath_var='LD_RUN_PATH'
14983
14984 if test "$GCC" = yes; then
14985 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 else
14988 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14989 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 fi
14389 ;; 14991 ;;
14390 14992
14391 uts4*) 14993 uts4*)
14392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14994 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14393 hardcode_libdir_flag_spec_F77='-L$libdir' 14995 hardcode_libdir_flag_spec_F77='-L$libdir'
14398 ld_shlibs_F77=no 15000 ld_shlibs_F77=no
14399 ;; 15001 ;;
14400 esac 15002 esac
14401 fi 15003 fi
14402 15004
14403echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15005{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14404echo "${ECHO_T}$ld_shlibs_F77" >&6 15006echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14405test "$ld_shlibs_F77" = no && can_build_shared=no 15007test "$ld_shlibs_F77" = no && can_build_shared=no
14406
14407variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14408if test "$GCC" = yes; then
14409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14410fi
14411 15008
14412# 15009#
14413# Do we need to explicitly link libc? 15010# Do we need to explicitly link libc?
14414# 15011#
14415case "x$archive_cmds_need_lc_F77" in 15012case "x$archive_cmds_need_lc_F77" in
14424 ;; 15021 ;;
14425 '$CC '*) 15022 '$CC '*)
14426 # Test whether the compiler implicitly links with -lc since on some 15023 # Test whether the compiler implicitly links with -lc since on some
14427 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14428 # to ld, don't add -lc before -lgcc. 15025 # to ld, don't add -lc before -lgcc.
14429 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15026 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14430echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14431 $rm conftest* 15028 $rm conftest*
14432 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14433 15030
14434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14435 (eval $ac_compile) 2>&5 15032 (eval $ac_compile) 2>&5
14439 soname=conftest 15036 soname=conftest
14440 lib=conftest 15037 lib=conftest
14441 libobjs=conftest.$ac_objext 15038 libobjs=conftest.$ac_objext
14442 deplibs= 15039 deplibs=
14443 wl=$lt_prog_compiler_wl_F77 15040 wl=$lt_prog_compiler_wl_F77
15041 pic_flag=$lt_prog_compiler_pic_F77
14444 compiler_flags=-v 15042 compiler_flags=-v
14445 linker_flags=-v 15043 linker_flags=-v
14446 verstring= 15044 verstring=
14447 output_objdir=. 15045 output_objdir=.
14448 libname=conftest 15046 libname=conftest
14461 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15059 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14462 else 15060 else
14463 cat conftest.err 1>&5 15061 cat conftest.err 1>&5
14464 fi 15062 fi
14465 $rm conftest* 15063 $rm conftest*
14466 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15064 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14467echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15065echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14468 ;; 15066 ;;
14469 esac 15067 esac
14470 fi 15068 fi
14471 ;; 15069 ;;
14472esac 15070esac
14473 15071
14474echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14475echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14476library_names_spec= 15074library_names_spec=
14477libname_spec='lib$name' 15075libname_spec='lib$name'
14478soname_spec= 15076soname_spec=
14479shrext=".so" 15077shrext_cmds=".so"
14480postinstall_cmds= 15078postinstall_cmds=
14481postuninstall_cmds= 15079postuninstall_cmds=
14482finish_cmds= 15080finish_cmds=
14483finish_eval= 15081finish_eval=
14484shlibpath_var= 15082shlibpath_var=
14571 library_names_spec='${libname}${shared_ext}' 15169 library_names_spec='${libname}${shared_ext}'
14572 dynamic_linker="$host_os ld.so" 15170 dynamic_linker="$host_os ld.so"
14573 shlibpath_var=LIBRARY_PATH 15171 shlibpath_var=LIBRARY_PATH
14574 ;; 15172 ;;
14575 15173
14576bsdi4*) 15174bsdi[45]*)
14577 version_type=linux 15175 version_type=linux
14578 need_version=no 15176 need_version=no
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major' 15178 soname_spec='${libname}${release}${shared_ext}$major'
14581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14587 # libtool to hard-code these into programs 15185 # libtool to hard-code these into programs
14588 ;; 15186 ;;
14589 15187
14590cygwin* | mingw* | pw32*) 15188cygwin* | mingw* | pw32*)
14591 version_type=windows 15189 version_type=windows
14592 shrext=".dll" 15190 shrext_cmds=".dll"
14593 need_version=no 15191 need_version=no
14594 need_lib_prefix=no 15192 need_lib_prefix=no
14595 15193
14596 case $GCC,$host_os in 15194 case $GCC,$host_os in
14597 yes,cygwin* | yes,mingw* | yes,pw32*) 15195 yes,cygwin* | yes,mingw* | yes,pw32*)
14599 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14600 postinstall_cmds='base_file=`basename \${file}`~ 15198 postinstall_cmds='base_file=`basename \${file}`~
14601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14602 dldir=$destdir/`dirname \$dlpath`~ 15200 dldir=$destdir/`dirname \$dlpath`~
14603 test -d \$dldir || mkdir -p \$dldir~ 15201 test -d \$dldir || mkdir -p \$dldir~
14604 $install_prog $dir/$dlname \$dldir/$dlname' 15202 $install_prog $dir/$dlname \$dldir/$dlname~
15203 chmod a+x \$dldir/$dlname'
14605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14606 dlpath=$dir/\$dldll~ 15205 dlpath=$dir/\$dldll~
14607 $rm \$dlpath' 15206 $rm \$dlpath'
14608 shlibpath_overrides_runpath=yes 15207 shlibpath_overrides_runpath=yes
14609 15208
14629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14630 fi 15229 fi
14631 ;; 15230 ;;
14632 pw32*) 15231 pw32*)
14633 # pw32 DLLs use 'pw' prefix rather than 'lib' 15232 # pw32 DLLs use 'pw' prefix rather than 'lib'
14634 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 15233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14635 ;; 15234 ;;
14636 esac 15235 esac
14637 ;; 15236 ;;
14638 15237
14639 *) 15238 *)
14652 need_version=no 15251 need_version=no
14653 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14654 soname_spec='${libname}${release}${major}$shared_ext' 15253 soname_spec='${libname}${release}${major}$shared_ext'
14655 shlibpath_overrides_runpath=yes 15254 shlibpath_overrides_runpath=yes
14656 shlibpath_var=DYLD_LIBRARY_PATH 15255 shlibpath_var=DYLD_LIBRARY_PATH
14657 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 15256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14658 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14659 if test "$GCC" = yes; then 15258 if test "$GCC" = yes; then
14660 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15259 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14661 else 15260 else
14662 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14675 15274
14676freebsd1*) 15275freebsd1*)
14677 dynamic_linker=no 15276 dynamic_linker=no
14678 ;; 15277 ;;
14679 15278
14680kfreebsd*-gnu) 15279freebsd* | dragonfly*)
14681 version_type=linux 15280 # DragonFly does not have aout. When/if they implement a new
14682 need_lib_prefix=no 15281 # versioning mechanism, adjust this.
14683 need_version=no 15282 if test -x /usr/bin/objformat; then
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15283 objformat=`/usr/bin/objformat`
14685 soname_spec='${libname}${release}${shared_ext}$major' 15284 else
14686 shlibpath_var=LD_LIBRARY_PATH 15285 case $host_os in
14687 shlibpath_overrides_runpath=no 15286 freebsd[123]*) objformat=aout ;;
14688 hardcode_into_libs=yes 15287 *) objformat=elf ;;
14689 dynamic_linker='GNU ld.so' 15288 esac
14690 ;; 15289 fi
14691
14692freebsd*)
14693 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14694 version_type=freebsd-$objformat 15290 version_type=freebsd-$objformat
14695 case $version_type in 15291 case $version_type in
14696 freebsd-elf*) 15292 freebsd-elf*)
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14698 need_version=no 15294 need_version=no
14706 shlibpath_var=LD_LIBRARY_PATH 15302 shlibpath_var=LD_LIBRARY_PATH
14707 case $host_os in 15303 case $host_os in
14708 freebsd2*) 15304 freebsd2*)
14709 shlibpath_overrides_runpath=yes 15305 shlibpath_overrides_runpath=yes
14710 ;; 15306 ;;
14711 freebsd3.01* | freebsdelf3.01*) 15307 freebsd3.[01]* | freebsdelf3.[01]*)
14712 shlibpath_overrides_runpath=yes 15308 shlibpath_overrides_runpath=yes
14713 hardcode_into_libs=yes 15309 hardcode_into_libs=yes
14714 ;; 15310 ;;
14715 *) # from 3.2 on 15311 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15312 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14716 shlibpath_overrides_runpath=no 15313 shlibpath_overrides_runpath=no
15314 hardcode_into_libs=yes
15315 ;;
15316 freebsd*) # from 4.6 on
15317 shlibpath_overrides_runpath=yes
14717 hardcode_into_libs=yes 15318 hardcode_into_libs=yes
14718 ;; 15319 ;;
14719 esac 15320 esac
14720 ;; 15321 ;;
14721 15322
14733 # Give a soname corresponding to the major version so that dld.sl refuses to 15334 # Give a soname corresponding to the major version so that dld.sl refuses to
14734 # link against other versions. 15335 # link against other versions.
14735 version_type=sunos 15336 version_type=sunos
14736 need_lib_prefix=no 15337 need_lib_prefix=no
14737 need_version=no 15338 need_version=no
14738 case "$host_cpu" in 15339 case $host_cpu in
14739 ia64*) 15340 ia64*)
14740 shrext='.so' 15341 shrext_cmds='.so'
14741 hardcode_into_libs=yes 15342 hardcode_into_libs=yes
14742 dynamic_linker="$host_os dld.so" 15343 dynamic_linker="$host_os dld.so"
14743 shlibpath_var=LD_LIBRARY_PATH 15344 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14751 fi 15352 fi
14752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14753 ;; 15354 ;;
14754 hppa*64*) 15355 hppa*64*)
14755 shrext='.sl' 15356 shrext_cmds='.sl'
14756 hardcode_into_libs=yes 15357 hardcode_into_libs=yes
14757 dynamic_linker="$host_os dld.sl" 15358 dynamic_linker="$host_os dld.sl"
14758 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major' 15362 soname_spec='${libname}${release}${shared_ext}$major'
14762 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14764 ;; 15365 ;;
14765 *) 15366 *)
14766 shrext='.sl' 15367 shrext_cmds='.sl'
14767 dynamic_linker="$host_os dld.sl" 15368 dynamic_linker="$host_os dld.sl"
14768 shlibpath_var=SHLIB_PATH 15369 shlibpath_var=SHLIB_PATH
14769 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major' 15372 soname_spec='${libname}${release}${shared_ext}$major'
14772 ;; 15373 ;;
14773 esac 15374 esac
14774 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15375 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14775 postinstall_cmds='chmod 555 $lib' 15376 postinstall_cmds='chmod 555 $lib'
15377 ;;
15378
15379interix3*)
15380 version_type=linux
15381 need_lib_prefix=no
15382 need_version=no
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 shlibpath_overrides_runpath=no
15388 hardcode_into_libs=yes
14776 ;; 15389 ;;
14777 15390
14778irix5* | irix6* | nonstopux*) 15391irix5* | irix6* | nonstopux*)
14779 case $host_os in 15392 case $host_os in
14780 nonstopux*) version_type=nonstopux ;; 15393 nonstopux*) version_type=nonstopux ;;
14816linux*oldld* | linux*aout* | linux*coff*) 15429linux*oldld* | linux*aout* | linux*coff*)
14817 dynamic_linker=no 15430 dynamic_linker=no
14818 ;; 15431 ;;
14819 15432
14820# This must be Linux ELF. 15433# This must be Linux ELF.
14821linux*) 15434linux* | k*bsd*-gnu)
14822 version_type=linux 15435 version_type=linux
14823 need_lib_prefix=no 15436 need_lib_prefix=no
14824 need_version=no 15437 need_version=no
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 soname_spec='${libname}${release}${shared_ext}$major' 15439 soname_spec='${libname}${release}${shared_ext}$major'
14832 # before this can be enabled. 15445 # before this can be enabled.
14833 hardcode_into_libs=yes 15446 hardcode_into_libs=yes
14834 15447
14835 # Append ld.so.conf contents to the search path 15448 # Append ld.so.conf contents to the search path
14836 if test -f /etc/ld.so.conf; then 15449 if test -f /etc/ld.so.conf; then
14837 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` 15450 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14838 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" 15451 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14839 fi 15452 fi
14840 15453
14841 # We used to test for /lib/ld.so.1 and disable shared libraries on 15454 # We used to test for /lib/ld.so.1 and disable shared libraries on
14842 # powerpc, because MkLinux only supported shared libraries with the 15455 # powerpc, because MkLinux only supported shared libraries with the
14843 # GNU dynamic linker. Since this was broken with cross compilers, 15456 # GNU dynamic linker. Since this was broken with cross compilers,
14845 # people can always --disable-shared, the test was removed, and we 15458 # people can always --disable-shared, the test was removed, and we
14846 # assume the GNU/Linux dynamic linker is in use. 15459 # assume the GNU/Linux dynamic linker is in use.
14847 dynamic_linker='GNU/Linux ld.so' 15460 dynamic_linker='GNU/Linux ld.so'
14848 ;; 15461 ;;
14849 15462
14850knetbsd*-gnu) 15463netbsdelf*-gnu)
14851 version_type=linux 15464 version_type=linux
14852 need_lib_prefix=no 15465 need_lib_prefix=no
14853 need_version=no 15466 need_version=no
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major' 15468 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH 15469 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=no 15470 shlibpath_overrides_runpath=no
14858 hardcode_into_libs=yes 15471 hardcode_into_libs=yes
14859 dynamic_linker='GNU ld.so' 15472 dynamic_linker='NetBSD ld.elf_so'
14860 ;; 15473 ;;
14861 15474
14862netbsd*) 15475netbsd*)
14863 version_type=sunos 15476 version_type=sunos
14864 need_lib_prefix=no 15477 need_lib_prefix=no
14894 shlibpath_overrides_runpath=yes 15507 shlibpath_overrides_runpath=yes
14895 ;; 15508 ;;
14896 15509
14897openbsd*) 15510openbsd*)
14898 version_type=sunos 15511 version_type=sunos
15512 sys_lib_dlsearch_path_spec="/usr/lib"
14899 need_lib_prefix=no 15513 need_lib_prefix=no
14900 need_version=yes 15514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15515 case $host_os in
15516 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15517 *) need_version=no ;;
15518 esac
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14903 shlibpath_var=LD_LIBRARY_PATH 15521 shlibpath_var=LD_LIBRARY_PATH
14904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14905 case $host_os in 15523 case $host_os in
14915 fi 15533 fi
14916 ;; 15534 ;;
14917 15535
14918os2*) 15536os2*)
14919 libname_spec='$name' 15537 libname_spec='$name'
14920 shrext=".dll" 15538 shrext_cmds=".dll"
14921 need_lib_prefix=no 15539 need_lib_prefix=no
14922 library_names_spec='$libname${shared_ext} $libname.a' 15540 library_names_spec='$libname${shared_ext} $libname.a'
14923 dynamic_linker='OS/2 ld.exe' 15541 dynamic_linker='OS/2 ld.exe'
14924 shlibpath_var=LIBPATH 15542 shlibpath_var=LIBPATH
14925 ;; 15543 ;;
14931 soname_spec='${libname}${release}${shared_ext}$major' 15549 soname_spec='${libname}${release}${shared_ext}$major'
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 shlibpath_var=LD_LIBRARY_PATH 15551 shlibpath_var=LD_LIBRARY_PATH
14934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14936 ;;
14937
14938sco3.2v5*)
14939 version_type=osf
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 ;; 15554 ;;
14944 15555
14945solaris*) 15556solaris*)
14946 version_type=linux 15557 version_type=linux
14947 need_lib_prefix=no 15558 need_lib_prefix=no
14965 need_lib_prefix=no 15576 need_lib_prefix=no
14966 fi 15577 fi
14967 need_version=yes 15578 need_version=yes
14968 ;; 15579 ;;
14969 15580
14970sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15581sysv4 | sysv4.3*)
14971 version_type=linux 15582 version_type=linux
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major' 15584 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH 15585 shlibpath_var=LD_LIBRARY_PATH
14975 case $host_vendor in 15586 case $host_vendor in
14998 soname_spec='$libname${shared_ext}.$major' 15609 soname_spec='$libname${shared_ext}.$major'
14999 shlibpath_var=LD_LIBRARY_PATH 15610 shlibpath_var=LD_LIBRARY_PATH
15000 fi 15611 fi
15001 ;; 15612 ;;
15002 15613
15614sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15615 version_type=freebsd-elf
15616 need_lib_prefix=no
15617 need_version=no
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 hardcode_into_libs=yes
15622 if test "$with_gnu_ld" = yes; then
15623 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15624 shlibpath_overrides_runpath=no
15625 else
15626 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15627 shlibpath_overrides_runpath=yes
15628 case $host_os in
15629 sco3.2v5*)
15630 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15631 ;;
15632 esac
15633 fi
15634 sys_lib_dlsearch_path_spec='/usr/lib'
15635 ;;
15636
15003uts4*) 15637uts4*)
15004 version_type=linux 15638 version_type=linux
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major' 15640 soname_spec='${libname}${release}${shared_ext}$major'
15007 shlibpath_var=LD_LIBRARY_PATH 15641 shlibpath_var=LD_LIBRARY_PATH
15009 15643
15010*) 15644*)
15011 dynamic_linker=no 15645 dynamic_linker=no
15012 ;; 15646 ;;
15013esac 15647esac
15014echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15648{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15015echo "${ECHO_T}$dynamic_linker" >&6 15649echo "${ECHO_T}$dynamic_linker" >&6; }
15016test "$dynamic_linker" = no && can_build_shared=no 15650test "$dynamic_linker" = no && can_build_shared=no
15017 15651
15652variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15653if test "$GCC" = yes; then
15654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15655fi
15656
15018echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15657{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15019echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15658echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15020hardcode_action_F77= 15659hardcode_action_F77=
15021if test -n "$hardcode_libdir_flag_spec_F77" || \ 15660if test -n "$hardcode_libdir_flag_spec_F77" || \
15022 test -n "$runpath_var F77" || \ 15661 test -n "$runpath_var_F77" || \
15023 test "X$hardcode_automatic_F77"="Xyes" ; then 15662 test "X$hardcode_automatic_F77" = "Xyes" ; then
15024 15663
15025 # We can hardcode non-existant directories. 15664 # We can hardcode non-existant directories.
15026 if test "$hardcode_direct_F77" != no && 15665 if test "$hardcode_direct_F77" != no &&
15027 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15666 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15028 # have to relink, otherwise we might link with an installed library 15667 # have to relink, otherwise we might link with an installed library
15038else 15677else
15039 # We cannot hardcode anything, or else we can only hardcode existing 15678 # We cannot hardcode anything, or else we can only hardcode existing
15040 # directories. 15679 # directories.
15041 hardcode_action_F77=unsupported 15680 hardcode_action_F77=unsupported
15042fi 15681fi
15043echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15682{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15044echo "${ECHO_T}$hardcode_action_F77" >&6 15683echo "${ECHO_T}$hardcode_action_F77" >&6; }
15045 15684
15046if test "$hardcode_action_F77" = relink; then 15685if test "$hardcode_action_F77" = relink; then
15047 # Fast installation is not supported 15686 # Fast installation is not supported
15048 enable_fast_install=no 15687 enable_fast_install=no
15049elif test "$shlibpath_overrides_runpath" = yes || 15688elif test "$shlibpath_overrides_runpath" = yes ||
15050 test "$enable_shared" = no; then 15689 test "$enable_shared" = no; then
15051 # Fast installation is not necessary 15690 # Fast installation is not necessary
15052 enable_fast_install=needless 15691 enable_fast_install=needless
15053fi 15692fi
15054
15055striplib=
15056old_striplib=
15057echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15058echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15059if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15060 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15061 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15062 echo "$as_me:$LINENO: result: yes" >&5
15063echo "${ECHO_T}yes" >&6
15064else
15065# FIXME - insert some real tests, host_os isn't really good enough
15066 case $host_os in
15067 darwin*)
15068 if test -n "$STRIP" ; then
15069 striplib="$STRIP -x"
15070 echo "$as_me:$LINENO: result: yes" >&5
15071echo "${ECHO_T}yes" >&6
15072 else
15073 echo "$as_me:$LINENO: result: no" >&5
15074echo "${ECHO_T}no" >&6
15075fi
15076 ;;
15077 *)
15078 echo "$as_me:$LINENO: result: no" >&5
15079echo "${ECHO_T}no" >&6
15080 ;;
15081 esac
15082fi
15083
15084 15693
15085 15694
15086# The else clause should only fire when bootstrapping the 15695# The else clause should only fire when bootstrapping the
15087# libtool distribution, otherwise you forgot to ship ltmain.sh 15696# libtool distribution, otherwise you forgot to ship ltmain.sh
15088# with your package, and you will get complaints that there are 15697# with your package, and you will get complaints that there are
15094 setopt NO_GLOB_SUBST 15703 setopt NO_GLOB_SUBST
15095 fi 15704 fi
15096 # Now quote all the things that may contain metacharacters while being 15705 # Now quote all the things that may contain metacharacters while being
15097 # careful not to overquote the AC_SUBSTed values. We take copies of the 15706 # careful not to overquote the AC_SUBSTed values. We take copies of the
15098 # variables and quote the copies for generation of the libtool script. 15707 # variables and quote the copies for generation of the libtool script.
15099 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15100 SED SHELL STRIP \ 15709 SED SHELL STRIP \
15101 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15102 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15103 deplibs_check_method reload_flag reload_cmds need_locks \ 15712 deplibs_check_method reload_flag reload_cmds need_locks \
15104 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15195fast_install=$enable_fast_install 15804fast_install=$enable_fast_install
15196 15805
15197# The host system. 15806# The host system.
15198host_alias=$host_alias 15807host_alias=$host_alias
15199host=$host 15808host=$host
15809host_os=$host_os
15810
15811# The build system.
15812build_alias=$build_alias
15813build=$build
15814build_os=$build_os
15200 15815
15201# An echo program that does not interpret backslashes. 15816# An echo program that does not interpret backslashes.
15202echo=$lt_echo 15817echo=$lt_echo
15203 15818
15204# The archiver. 15819# The archiver.
15206AR_FLAGS=$lt_AR_FLAGS 15821AR_FLAGS=$lt_AR_FLAGS
15207 15822
15208# A C compiler. 15823# A C compiler.
15209LTCC=$lt_LTCC 15824LTCC=$lt_LTCC
15210 15825
15826# LTCC compiler flags.
15827LTCFLAGS=$lt_LTCFLAGS
15828
15211# A language-specific compiler. 15829# A language-specific compiler.
15212CC=$lt_compiler_F77 15830CC=$lt_compiler_F77
15213 15831
15214# Is the compiler the GNU C compiler? 15832# Is the compiler the GNU C compiler?
15215with_gcc=$GCC_F77 15833with_gcc=$GCC_F77
15256 15874
15257# Old archive suffix (normally "a"). 15875# Old archive suffix (normally "a").
15258libext="$libext" 15876libext="$libext"
15259 15877
15260# Shared library suffix (normally ".so"). 15878# Shared library suffix (normally ".so").
15261shrext='$shrext' 15879shrext_cmds='$shrext_cmds'
15262 15880
15263# Executable file suffix (normally ""). 15881# Executable file suffix (normally "").
15264exeext="$exeext" 15882exeext="$exeext"
15265 15883
15266# Additional compiler flags for building library objects. 15884# Additional compiler flags for building library objects.
15271max_cmd_len=$lt_cv_sys_max_cmd_len 15889max_cmd_len=$lt_cv_sys_max_cmd_len
15272 15890
15273# Does compiler simultaneously support -c and -o options? 15891# Does compiler simultaneously support -c and -o options?
15274compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15275 15893
15276# Must we lock files when doing compilation ? 15894# Must we lock files when doing compilation?
15277need_locks=$lt_need_locks 15895need_locks=$lt_need_locks
15278 15896
15279# Do we need the lib prefix for modules? 15897# Do we need the lib prefix for modules?
15280need_lib_prefix=$need_lib_prefix 15898need_lib_prefix=$need_lib_prefix
15281 15899
15497 16115
15498 GCJ) 16116 GCJ)
15499 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16117 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15500 16118
15501 16119
15502
15503# Source file extension for Java test sources. 16120# Source file extension for Java test sources.
15504ac_ext=java 16121ac_ext=java
15505 16122
15506# Object file extension for compiled Java test sources. 16123# Object file extension for compiled Java test sources.
15507objext=o 16124objext=o
15509 16126
15510# Code to be used in simple compile tests 16127# Code to be used in simple compile tests
15511lt_simple_compile_test_code="class foo {}\n" 16128lt_simple_compile_test_code="class foo {}\n"
15512 16129
15513# Code to be used in simple link tests 16130# Code to be used in simple link tests
15514lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 16131lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15515 16132
15516# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16133# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15517 16134
15518# If no C compiler was specified, use CC. 16135# If no C compiler was specified, use CC.
15519LTCC=${LTCC-"$CC"} 16136LTCC=${LTCC-"$CC"}
15520 16137
16138# If no C compiler flags were specified, use CFLAGS.
16139LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16140
15521# Allow CC to be a program name with arguments. 16141# Allow CC to be a program name with arguments.
15522compiler=$CC 16142compiler=$CC
16143
16144
16145# save warnings/boilerplate of simple test code
16146ac_outfile=conftest.$ac_objext
16147printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16148eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16149_lt_compiler_boilerplate=`cat conftest.err`
16150$rm conftest*
16151
16152ac_outfile=conftest.$ac_objext
16153printf "$lt_simple_link_test_code" >conftest.$ac_ext
16154eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16155_lt_linker_boilerplate=`cat conftest.err`
16156$rm conftest*
15523 16157
15524 16158
15525# Allow CC to be a program name with arguments. 16159# Allow CC to be a program name with arguments.
15526lt_save_CC="$CC" 16160lt_save_CC="$CC"
15527CC=${GCJ-"gcj"} 16161CC=${GCJ-"gcj"}
15528compiler=$CC 16162compiler=$CC
15529compiler_GCJ=$CC 16163compiler_GCJ=$CC
16164for cc_temp in $compiler""; do
16165 case $cc_temp in
16166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16168 \-*) ;;
16169 *) break;;
16170 esac
16171done
16172cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16173
15530 16174
15531# GCJ did not exist at the time GCC didn't implicitly link libc in. 16175# GCJ did not exist at the time GCC didn't implicitly link libc in.
15532archive_cmds_need_lc_GCJ=no 16176archive_cmds_need_lc_GCJ=no
15533 16177
16178old_archive_cmds_GCJ=$old_archive_cmds
16179
15534 16180
15535lt_prog_compiler_no_builtin_flag_GCJ= 16181lt_prog_compiler_no_builtin_flag_GCJ=
15536 16182
15537if test "$GCC" = yes; then 16183if test "$GCC" = yes; then
15538 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16184 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15539 16185
15540 16186
15541echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16187{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15542echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16188echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15543if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16189if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6 16190 echo $ECHO_N "(cached) $ECHO_C" >&6
15545else 16191else
15546 lt_cv_prog_compiler_rtti_exceptions=no 16192 lt_cv_prog_compiler_rtti_exceptions=no
15547 ac_outfile=conftest.$ac_objext 16193 ac_outfile=conftest.$ac_objext
15551 # (2) before a word containing "conftest.", or (3) at the end. 16197 # (2) before a word containing "conftest.", or (3) at the end.
15552 # Note that $ac_compile itself does not contain backslashes and begins 16198 # Note that $ac_compile itself does not contain backslashes and begins
15553 # with a dollar sign (not a hyphen), so the echo should work correctly. 16199 # with a dollar sign (not a hyphen), so the echo should work correctly.
15554 # The option is referenced via a variable to avoid confusing sed. 16200 # The option is referenced via a variable to avoid confusing sed.
15555 lt_compile=`echo "$ac_compile" | $SED \ 16201 lt_compile=`echo "$ac_compile" | $SED \
15556 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15558 -e 's:$: $lt_compiler_flag:'` 16204 -e 's:$: $lt_compiler_flag:'`
15559 (eval echo "\"\$as_me:15559: $lt_compile\"" >&5) 16205 (eval echo "\"\$as_me:16205: $lt_compile\"" >&5)
15560 (eval "$lt_compile" 2>conftest.err) 16206 (eval "$lt_compile" 2>conftest.err)
15561 ac_status=$? 16207 ac_status=$?
15562 cat conftest.err >&5 16208 cat conftest.err >&5
15563 echo "$as_me:15563: \$? = $ac_status" >&5 16209 echo "$as_me:16209: \$? = $ac_status" >&5
15564 if (exit $ac_status) && test -s "$ac_outfile"; then 16210 if (exit $ac_status) && test -s "$ac_outfile"; then
15565 # The compiler can only warn and ignore the option if not recognized 16211 # The compiler can only warn and ignore the option if not recognized
15566 # So say no if there are warnings 16212 # So say no if there are warnings other than the usual output.
15567 if test ! -s conftest.err; then 16213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15568 lt_cv_prog_compiler_rtti_exceptions=yes 16216 lt_cv_prog_compiler_rtti_exceptions=yes
15569 fi 16217 fi
15570 fi 16218 fi
15571 $rm conftest* 16219 $rm conftest*
15572 16220
15573fi 16221fi
15574echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16222{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15575echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16223echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15576 16224
15577if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16225if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15578 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16226 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15579else 16227else
15580 : 16228 :
15584 16232
15585lt_prog_compiler_wl_GCJ= 16233lt_prog_compiler_wl_GCJ=
15586lt_prog_compiler_pic_GCJ= 16234lt_prog_compiler_pic_GCJ=
15587lt_prog_compiler_static_GCJ= 16235lt_prog_compiler_static_GCJ=
15588 16236
15589echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16237{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15590echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16238echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15591 16239
15592 if test "$GCC" = yes; then 16240 if test "$GCC" = yes; then
15593 lt_prog_compiler_wl_GCJ='-Wl,' 16241 lt_prog_compiler_wl_GCJ='-Wl,'
15594 lt_prog_compiler_static_GCJ='-static' 16242 lt_prog_compiler_static_GCJ='-static'
15595 16243
15623 # PIC is the default on this platform 16271 # PIC is the default on this platform
15624 # Common symbols not allowed in MH_DYLIB files 16272 # Common symbols not allowed in MH_DYLIB files
15625 lt_prog_compiler_pic_GCJ='-fno-common' 16273 lt_prog_compiler_pic_GCJ='-fno-common'
15626 ;; 16274 ;;
15627 16275
16276 interix3*)
16277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16278 # Instead, we relocate shared libraries at runtime.
16279 ;;
16280
15628 msdosdjgpp*) 16281 msdosdjgpp*)
15629 # Just because we use GCC doesn't mean we suddenly get shared libraries 16282 # Just because we use GCC doesn't mean we suddenly get shared libraries
15630 # on systems that don't support them. 16283 # on systems that don't support them.
15631 lt_prog_compiler_can_build_shared_GCJ=no 16284 lt_prog_compiler_can_build_shared_GCJ=no
15632 enable_shared=no 16285 enable_shared=no
15639 ;; 16292 ;;
15640 16293
15641 hpux*) 16294 hpux*)
15642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15643 # not for PA HP-UX. 16296 # not for PA HP-UX.
15644 case "$host_cpu" in 16297 case $host_cpu in
15645 hppa*64*|ia64*) 16298 hppa*64*|ia64*)
15646 # +Z the default 16299 # +Z the default
15647 ;; 16300 ;;
15648 *) 16301 *)
15649 lt_prog_compiler_pic_GCJ='-fPIC' 16302 lt_prog_compiler_pic_GCJ='-fPIC'
15665 lt_prog_compiler_static_GCJ='-Bstatic' 16318 lt_prog_compiler_static_GCJ='-Bstatic'
15666 else 16319 else
15667 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16320 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15668 fi 16321 fi
15669 ;; 16322 ;;
16323 darwin*)
16324 # PIC is the default on this platform
16325 # Common symbols not allowed in MH_DYLIB files
16326 case $cc_basename in
16327 xlc*)
16328 lt_prog_compiler_pic_GCJ='-qnocommon'
16329 lt_prog_compiler_wl_GCJ='-Wl,'
16330 ;;
16331 esac
16332 ;;
15670 16333
15671 mingw* | pw32* | os2*) 16334 mingw* | pw32* | os2*)
15672 # This hack is so that the source file can tell whether it is being 16335 # This hack is so that the source file can tell whether it is being
15673 # built for inclusion in a dll (and should export symbols for example). 16336 # built for inclusion in a dll (and should export symbols for example).
15674 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16337 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15676 16339
15677 hpux9* | hpux10* | hpux11*) 16340 hpux9* | hpux10* | hpux11*)
15678 lt_prog_compiler_wl_GCJ='-Wl,' 16341 lt_prog_compiler_wl_GCJ='-Wl,'
15679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15680 # not for PA HP-UX. 16343 # not for PA HP-UX.
15681 case "$host_cpu" in 16344 case $host_cpu in
15682 hppa*64*|ia64*) 16345 hppa*64*|ia64*)
15683 # +Z the default 16346 # +Z the default
15684 ;; 16347 ;;
15685 *) 16348 *)
15686 lt_prog_compiler_pic_GCJ='+Z' 16349 lt_prog_compiler_pic_GCJ='+Z'
15699 newsos6) 16362 newsos6)
15700 lt_prog_compiler_pic_GCJ='-KPIC' 16363 lt_prog_compiler_pic_GCJ='-KPIC'
15701 lt_prog_compiler_static_GCJ='-Bstatic' 16364 lt_prog_compiler_static_GCJ='-Bstatic'
15702 ;; 16365 ;;
15703 16366
15704 linux*) 16367 linux* | k*bsd*-gnu)
15705 case $CC in 16368 case $cc_basename in
15706 icc* | ecc*) 16369 icc* | ecc*)
15707 lt_prog_compiler_wl_GCJ='-Wl,' 16370 lt_prog_compiler_wl_GCJ='-Wl,'
15708 lt_prog_compiler_pic_GCJ='-KPIC' 16371 lt_prog_compiler_pic_GCJ='-KPIC'
15709 lt_prog_compiler_static_GCJ='-static' 16372 lt_prog_compiler_static_GCJ='-static'
16373 ;;
16374 pgcc* | pgf77* | pgf90* | pgf95*)
16375 # Portland Group compilers (*not* the Pentium gcc compiler,
16376 # which looks to be a dead project)
16377 lt_prog_compiler_wl_GCJ='-Wl,'
16378 lt_prog_compiler_pic_GCJ='-fpic'
16379 lt_prog_compiler_static_GCJ='-Bstatic'
15710 ;; 16380 ;;
15711 ccc*) 16381 ccc*)
15712 lt_prog_compiler_wl_GCJ='-Wl,' 16382 lt_prog_compiler_wl_GCJ='-Wl,'
15713 # All Alpha code is PIC. 16383 # All Alpha code is PIC.
15714 lt_prog_compiler_static_GCJ='-non_shared' 16384 lt_prog_compiler_static_GCJ='-non_shared'
15720 lt_prog_compiler_wl_GCJ='-Wl,' 16390 lt_prog_compiler_wl_GCJ='-Wl,'
15721 # All OSF/1 code is PIC. 16391 # All OSF/1 code is PIC.
15722 lt_prog_compiler_static_GCJ='-non_shared' 16392 lt_prog_compiler_static_GCJ='-non_shared'
15723 ;; 16393 ;;
15724 16394
15725 sco3.2v5*)
15726 lt_prog_compiler_pic_GCJ='-Kpic'
15727 lt_prog_compiler_static_GCJ='-dn'
15728 ;;
15729
15730 solaris*) 16395 solaris*)
15731 lt_prog_compiler_wl_GCJ='-Wl,'
15732 lt_prog_compiler_pic_GCJ='-KPIC' 16396 lt_prog_compiler_pic_GCJ='-KPIC'
15733 lt_prog_compiler_static_GCJ='-Bstatic' 16397 lt_prog_compiler_static_GCJ='-Bstatic'
16398 case $cc_basename in
16399 f77* | f90* | f95*)
16400 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16401 *)
16402 lt_prog_compiler_wl_GCJ='-Wl,';;
16403 esac
15734 ;; 16404 ;;
15735 16405
15736 sunos4*) 16406 sunos4*)
15737 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16407 lt_prog_compiler_wl_GCJ='-Qoption ld '
15738 lt_prog_compiler_pic_GCJ='-PIC' 16408 lt_prog_compiler_pic_GCJ='-PIC'
15739 lt_prog_compiler_static_GCJ='-Bstatic' 16409 lt_prog_compiler_static_GCJ='-Bstatic'
15740 ;; 16410 ;;
15741 16411
15742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16412 sysv4 | sysv4.2uw2* | sysv4.3*)
15743 lt_prog_compiler_wl_GCJ='-Wl,' 16413 lt_prog_compiler_wl_GCJ='-Wl,'
15744 lt_prog_compiler_pic_GCJ='-KPIC' 16414 lt_prog_compiler_pic_GCJ='-KPIC'
15745 lt_prog_compiler_static_GCJ='-Bstatic' 16415 lt_prog_compiler_static_GCJ='-Bstatic'
15746 ;; 16416 ;;
15747 16417
15750 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16420 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15751 lt_prog_compiler_static_GCJ='-Bstatic' 16421 lt_prog_compiler_static_GCJ='-Bstatic'
15752 fi 16422 fi
15753 ;; 16423 ;;
15754 16424
16425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16426 lt_prog_compiler_wl_GCJ='-Wl,'
16427 lt_prog_compiler_pic_GCJ='-KPIC'
16428 lt_prog_compiler_static_GCJ='-Bstatic'
16429 ;;
16430
16431 unicos*)
16432 lt_prog_compiler_wl_GCJ='-Wl,'
16433 lt_prog_compiler_can_build_shared_GCJ=no
16434 ;;
16435
15755 uts4*) 16436 uts4*)
15756 lt_prog_compiler_pic_GCJ='-pic' 16437 lt_prog_compiler_pic_GCJ='-pic'
15757 lt_prog_compiler_static_GCJ='-Bstatic' 16438 lt_prog_compiler_static_GCJ='-Bstatic'
15758 ;; 16439 ;;
15759 16440
15761 lt_prog_compiler_can_build_shared_GCJ=no 16442 lt_prog_compiler_can_build_shared_GCJ=no
15762 ;; 16443 ;;
15763 esac 16444 esac
15764 fi 16445 fi
15765 16446
15766echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16447{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15767echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16448echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15768 16449
15769# 16450#
15770# Check to make sure the PIC flag actually works. 16451# Check to make sure the PIC flag actually works.
15771# 16452#
15772if test -n "$lt_prog_compiler_pic_GCJ"; then 16453if test -n "$lt_prog_compiler_pic_GCJ"; then
15773 16454
15774echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16455{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15775echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16456echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15776if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16457if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6 16458 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else 16459else
15779 lt_prog_compiler_pic_works_GCJ=no 16460 lt_prog_compiler_pic_works_GCJ=no
15780 ac_outfile=conftest.$ac_objext 16461 ac_outfile=conftest.$ac_objext
15784 # (2) before a word containing "conftest.", or (3) at the end. 16465 # (2) before a word containing "conftest.", or (3) at the end.
15785 # Note that $ac_compile itself does not contain backslashes and begins 16466 # Note that $ac_compile itself does not contain backslashes and begins
15786 # with a dollar sign (not a hyphen), so the echo should work correctly. 16467 # with a dollar sign (not a hyphen), so the echo should work correctly.
15787 # The option is referenced via a variable to avoid confusing sed. 16468 # The option is referenced via a variable to avoid confusing sed.
15788 lt_compile=`echo "$ac_compile" | $SED \ 16469 lt_compile=`echo "$ac_compile" | $SED \
15789 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15791 -e 's:$: $lt_compiler_flag:'` 16472 -e 's:$: $lt_compiler_flag:'`
15792 (eval echo "\"\$as_me:15792: $lt_compile\"" >&5) 16473 (eval echo "\"\$as_me:16473: $lt_compile\"" >&5)
15793 (eval "$lt_compile" 2>conftest.err) 16474 (eval "$lt_compile" 2>conftest.err)
15794 ac_status=$? 16475 ac_status=$?
15795 cat conftest.err >&5 16476 cat conftest.err >&5
15796 echo "$as_me:15796: \$? = $ac_status" >&5 16477 echo "$as_me:16477: \$? = $ac_status" >&5
15797 if (exit $ac_status) && test -s "$ac_outfile"; then 16478 if (exit $ac_status) && test -s "$ac_outfile"; then
15798 # The compiler can only warn and ignore the option if not recognized 16479 # The compiler can only warn and ignore the option if not recognized
15799 # So say no if there are warnings 16480 # So say no if there are warnings other than the usual output.
15800 if test ! -s conftest.err; then 16481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15801 lt_prog_compiler_pic_works_GCJ=yes 16484 lt_prog_compiler_pic_works_GCJ=yes
15802 fi 16485 fi
15803 fi 16486 fi
15804 $rm conftest* 16487 $rm conftest*
15805 16488
15806fi 16489fi
15807echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16490{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15808echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16491echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15809 16492
15810if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16493if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15811 case $lt_prog_compiler_pic_GCJ in 16494 case $lt_prog_compiler_pic_GCJ in
15812 "" | " "*) ;; 16495 "" | " "*) ;;
15813 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16496 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15816 lt_prog_compiler_pic_GCJ= 16499 lt_prog_compiler_pic_GCJ=
15817 lt_prog_compiler_can_build_shared_GCJ=no 16500 lt_prog_compiler_can_build_shared_GCJ=no
15818fi 16501fi
15819 16502
15820fi 16503fi
15821case "$host_os" in 16504case $host_os in
15822 # For platforms which do not support PIC, -DPIC is meaningless: 16505 # For platforms which do not support PIC, -DPIC is meaningless:
15823 *djgpp*) 16506 *djgpp*)
15824 lt_prog_compiler_pic_GCJ= 16507 lt_prog_compiler_pic_GCJ=
15825 ;; 16508 ;;
15826 *) 16509 *)
15827 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16510 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15828 ;; 16511 ;;
15829esac 16512esac
15830 16513
16514#
16515# Check to make sure the static flag actually works.
16516#
16517wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16518{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16519echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16520if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523 lt_prog_compiler_static_works_GCJ=no
16524 save_LDFLAGS="$LDFLAGS"
16525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16526 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16528 # The linker can only warn and ignore the option if not recognized
16529 # So say no if there are warnings
16530 if test -s conftest.err; then
16531 # Append any errors to the config.log.
16532 cat conftest.err 1>&5
16533 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16535 if diff conftest.exp conftest.er2 >/dev/null; then
16536 lt_prog_compiler_static_works_GCJ=yes
16537 fi
16538 else
16539 lt_prog_compiler_static_works_GCJ=yes
16540 fi
16541 fi
16542 $rm conftest*
16543 LDFLAGS="$save_LDFLAGS"
16544
16545fi
16546{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16547echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16548
16549if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16550 :
16551else
16552 lt_prog_compiler_static_GCJ=
16553fi
16554
16555
15831echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16556{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15832echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16557echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15833if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16558if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6 16559 echo $ECHO_N "(cached) $ECHO_C" >&6
15835else 16560else
15836 lt_cv_prog_compiler_c_o_GCJ=no 16561 lt_cv_prog_compiler_c_o_GCJ=no
15837 $rm -r conftest 2>/dev/null 16562 $rm -r conftest 2>/dev/null
15844 # Insert the option either (1) after the last *FLAGS variable, or 16569 # Insert the option either (1) after the last *FLAGS variable, or
15845 # (2) before a word containing "conftest.", or (3) at the end. 16570 # (2) before a word containing "conftest.", or (3) at the end.
15846 # Note that $ac_compile itself does not contain backslashes and begins 16571 # Note that $ac_compile itself does not contain backslashes and begins
15847 # with a dollar sign (not a hyphen), so the echo should work correctly. 16572 # with a dollar sign (not a hyphen), so the echo should work correctly.
15848 lt_compile=`echo "$ac_compile" | $SED \ 16573 lt_compile=`echo "$ac_compile" | $SED \
15849 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15851 -e 's:$: $lt_compiler_flag:'` 16576 -e 's:$: $lt_compiler_flag:'`
15852 (eval echo "\"\$as_me:15852: $lt_compile\"" >&5) 16577 (eval echo "\"\$as_me:16577: $lt_compile\"" >&5)
15853 (eval "$lt_compile" 2>out/conftest.err) 16578 (eval "$lt_compile" 2>out/conftest.err)
15854 ac_status=$? 16579 ac_status=$?
15855 cat out/conftest.err >&5 16580 cat out/conftest.err >&5
15856 echo "$as_me:15856: \$? = $ac_status" >&5 16581 echo "$as_me:16581: \$? = $ac_status" >&5
15857 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15858 then 16583 then
15859 # The compiler can only warn and ignore the option if not recognized 16584 # The compiler can only warn and ignore the option if not recognized
15860 # So say no if there are warnings 16585 # So say no if there are warnings
15861 if test ! -s out/conftest.err; then 16586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15862 lt_cv_prog_compiler_c_o_GCJ=yes 16589 lt_cv_prog_compiler_c_o_GCJ=yes
15863 fi 16590 fi
15864 fi 16591 fi
15865 chmod u+w . 16592 chmod u+w . 2>&5
15866 $rm conftest* 16593 $rm conftest*
15867 # SGI C++ compiler will create directory out/ii_files/ for 16594 # SGI C++ compiler will create directory out/ii_files/ for
15868 # template instantiation 16595 # template instantiation
15869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16596 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15870 $rm out/* && rmdir out 16597 $rm out/* && rmdir out
15871 cd .. 16598 cd ..
15872 rmdir conftest 16599 rmdir conftest
15873 $rm conftest* 16600 $rm conftest*
15874 16601
15875fi 16602fi
15876echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16603{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15877echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16604echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15878 16605
15879 16606
15880hard_links="nottested" 16607hard_links="nottested"
15881if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16608if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15882 # do not overwrite the value of need_locks provided by the user 16609 # do not overwrite the value of need_locks provided by the user
15883 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16610 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15884echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16611echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15885 hard_links=yes 16612 hard_links=yes
15886 $rm conftest* 16613 $rm conftest*
15887 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15888 touch conftest.a 16615 touch conftest.a
15889 ln conftest.a conftest.b 2>&5 || hard_links=no 16616 ln conftest.a conftest.b 2>&5 || hard_links=no
15890 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15891 echo "$as_me:$LINENO: result: $hard_links" >&5 16618 { echo "$as_me:$LINENO: result: $hard_links" >&5
15892echo "${ECHO_T}$hard_links" >&6 16619echo "${ECHO_T}$hard_links" >&6; }
15893 if test "$hard_links" = no; then 16620 if test "$hard_links" = no; then
15894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16621 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15895echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16622echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15896 need_locks=warn 16623 need_locks=warn
15897 fi 16624 fi
15898else 16625else
15899 need_locks=no 16626 need_locks=no
15900fi 16627fi
15901 16628
15902echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16629{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15903echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16630echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15904 16631
15905 runpath_var= 16632 runpath_var=
15906 allow_undefined_flag_GCJ= 16633 allow_undefined_flag_GCJ=
15907 enable_shared_with_static_runtimes_GCJ=no 16634 enable_shared_with_static_runtimes_GCJ=no
15908 archive_cmds_GCJ= 16635 archive_cmds_GCJ=
15936 # platforms (ab)use it in PIC code, but their linkers get confused if 16663 # platforms (ab)use it in PIC code, but their linkers get confused if
15937 # the symbol is explicitly referenced. Since portable code cannot 16664 # the symbol is explicitly referenced. Since portable code cannot
15938 # rely on this symbol name, it's probably fine to never include it in 16665 # rely on this symbol name, it's probably fine to never include it in
15939 # preloaded symbol tables. 16666 # preloaded symbol tables.
15940 extract_expsyms_cmds= 16667 extract_expsyms_cmds=
16668 # Just being paranoid about ensuring that cc_basename is set.
16669 for cc_temp in $compiler""; do
16670 case $cc_temp in
16671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16673 \-*) ;;
16674 *) break;;
16675 esac
16676done
16677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15941 16678
15942 case $host_os in 16679 case $host_os in
15943 cygwin* | mingw* | pw32*) 16680 cygwin* | mingw* | pw32*)
15944 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15945 # When not using gcc, we currently assume that we are using 16682 # When not using gcc, we currently assume that we are using
15946 # Microsoft Visual C++. 16683 # Microsoft Visual C++.
15947 if test "$GCC" != yes; then 16684 if test "$GCC" != yes; then
15948 with_gnu_ld=no 16685 with_gnu_ld=no
15949 fi 16686 fi
15950 ;; 16687 ;;
16688 interix*)
16689 # we just hope/assume this is gcc and not c89 (= MSVC++)
16690 with_gnu_ld=yes
16691 ;;
15951 openbsd*) 16692 openbsd*)
15952 with_gnu_ld=no 16693 with_gnu_ld=no
15953 ;; 16694 ;;
15954 esac 16695 esac
15955 16696
15956 ld_shlibs_GCJ=yes 16697 ld_shlibs_GCJ=yes
15957 if test "$with_gnu_ld" = yes; then 16698 if test "$with_gnu_ld" = yes; then
15958 # If archive_cmds runs LD, not CC, wlarc should be empty 16699 # If archive_cmds runs LD, not CC, wlarc should be empty
15959 wlarc='${wl}' 16700 wlarc='${wl}'
16701
16702 # Set some defaults for GNU ld with shared library support. These
16703 # are reset later if shared libraries are not supported. Putting them
16704 # here allows them to be overridden if necessary.
16705 runpath_var=LD_RUN_PATH
16706 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16707 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16708 # ancient GNU ld didn't support --whole-archive et. al.
16709 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16710 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16711 else
16712 whole_archive_flag_spec_GCJ=
16713 fi
16714 supports_anon_versioning=no
16715 case `$LD -v 2>/dev/null` in
16716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16719 *\ 2.11.*) ;; # other 2.11 versions
16720 *) supports_anon_versioning=yes ;;
16721 esac
15960 16722
15961 # See if GNU ld supports shared libraries. 16723 # See if GNU ld supports shared libraries.
15962 case $host_os in 16724 case $host_os in
15963 aix3* | aix4* | aix5*) 16725 aix3* | aix4* | aix5*)
15964 # On AIX/PPC, the GNU linker is very broken 16726 # On AIX/PPC, the GNU linker is very broken
16006 # as there is no search path for DLLs. 16768 # as there is no search path for DLLs.
16007 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16008 allow_undefined_flag_GCJ=unsupported 16770 allow_undefined_flag_GCJ=unsupported
16009 always_export_symbols_GCJ=no 16771 always_export_symbols_GCJ=no
16010 enable_shared_with_static_runtimes_GCJ=yes 16772 enable_shared_with_static_runtimes_GCJ=yes
16011 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16773 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16012 16774
16013 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16014 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16776 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16015 # If the export-symbols file already is a .def file (1st line 16777 # If the export-symbols file already is a .def file (1st line
16016 # is EXPORTS), use it as is; otherwise, prepend... 16778 # is EXPORTS), use it as is; otherwise, prepend...
16017 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16779 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16018 cp $export_symbols $output_objdir/$soname.def; 16780 cp $export_symbols $output_objdir/$soname.def;
16019 else 16781 else
16020 echo EXPORTS > $output_objdir/$soname.def; 16782 echo EXPORTS > $output_objdir/$soname.def;
16021 cat $export_symbols >> $output_objdir/$soname.def; 16783 cat $export_symbols >> $output_objdir/$soname.def;
16022 fi~ 16784 fi~
16023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16024 else 16786 else
16025 ld_shlibs=no 16787 ld_shlibs_GCJ=no
16026 fi 16788 fi
16027 ;; 16789 ;;
16028 16790
16029 netbsd*) 16791 interix3*)
16792 hardcode_direct_GCJ=no
16793 hardcode_shlibpath_var_GCJ=no
16794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16795 export_dynamic_flag_spec_GCJ='${wl}-E'
16796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16797 # Instead, shared libraries are loaded at an image base (0x10000000 by
16798 # default) and relocated if they conflict, which is a slow very memory
16799 # consuming and fragmenting process. To avoid this, we pick a random,
16800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16802 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'
16803 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'
16804 ;;
16805
16806 linux* | k*bsd*-gnu)
16807 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16808 tmp_addflag=
16809 case $cc_basename,$host_cpu in
16810 pgcc*) # Portland Group C compiler
16811 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'
16812 tmp_addflag=' $pic_flag'
16813 ;;
16814 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16815 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'
16816 tmp_addflag=' $pic_flag -Mnomain' ;;
16817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16818 tmp_addflag=' -i_dynamic' ;;
16819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16820 tmp_addflag=' -i_dynamic -nofor_main' ;;
16821 ifc* | ifort*) # Intel Fortran compiler
16822 tmp_addflag=' -nofor_main' ;;
16823 esac
16824 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16825
16826 if test $supports_anon_versioning = yes; then
16827 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16829 $echo "local: *; };" >> $output_objdir/$libname.ver~
16830 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16831 fi
16832 link_all_deplibs_GCJ=no
16833 else
16834 ld_shlibs_GCJ=no
16835 fi
16836 ;;
16837
16838 netbsd* | netbsdelf*-gnu)
16030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16031 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16840 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16032 wlarc= 16841 wlarc=
16033 else 16842 else
16034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16036 fi 16845 fi
16037 ;; 16846 ;;
16038 16847
16039 solaris* | sysv5*) 16848 solaris*)
16040 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16849 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16041 ld_shlibs_GCJ=no 16850 ld_shlibs_GCJ=no
16042 cat <<EOF 1>&2 16851 cat <<EOF 1>&2
16043 16852
16044*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16853*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16055 else 16864 else
16056 ld_shlibs_GCJ=no 16865 ld_shlibs_GCJ=no
16057 fi 16866 fi
16058 ;; 16867 ;;
16059 16868
16869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16870 case `$LD -v 2>&1` in
16871 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16872 ld_shlibs_GCJ=no
16873 cat <<_LT_EOF 1>&2
16874
16875*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16876*** reliably create shared libraries on SCO systems. Therefore, libtool
16877*** is disabling shared libraries support. We urge you to upgrade GNU
16878*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16879*** your PATH or compiler configuration so that the native linker is
16880*** used, and then restart.
16881
16882_LT_EOF
16883 ;;
16884 *)
16885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16886 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16889 else
16890 ld_shlibs_GCJ=no
16891 fi
16892 ;;
16893 esac
16894 ;;
16895
16060 sunos4*) 16896 sunos4*)
16061 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16897 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 wlarc= 16898 wlarc=
16063 hardcode_direct_GCJ=yes 16899 hardcode_direct_GCJ=yes
16064 hardcode_shlibpath_var_GCJ=no 16900 hardcode_shlibpath_var_GCJ=no
16065 ;; 16901 ;;
16066
16067 linux*)
16068 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16069 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16070 archive_cmds_GCJ="$tmp_archive_cmds"
16071 supports_anon_versioning=no
16072 case `$LD -v 2>/dev/null` in
16073 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16076 *\ 2.11.*) ;; # other 2.11 versions
16077 *) supports_anon_versioning=yes ;;
16078 esac
16079 if test $supports_anon_versioning = yes; then
16080 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16081cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16082$echo "local: *; };" >> $output_objdir/$libname.ver~
16083 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16084 else
16085 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16086 fi
16087 else
16088 ld_shlibs_GCJ=no
16089 fi
16090 ;;
16091 16902
16092 *) 16903 *)
16093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16094 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16095 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16906 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16097 ld_shlibs_GCJ=no 16908 ld_shlibs_GCJ=no
16098 fi 16909 fi
16099 ;; 16910 ;;
16100 esac 16911 esac
16101 16912
16102 if test "$ld_shlibs_GCJ" = yes; then 16913 if test "$ld_shlibs_GCJ" = no; then
16103 runpath_var=LD_RUN_PATH 16914 runpath_var=
16104 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16915 hardcode_libdir_flag_spec_GCJ=
16105 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16916 export_dynamic_flag_spec_GCJ=
16106 # ancient GNU ld didn't support --whole-archive et. al.
16107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16108 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16109 else
16110 whole_archive_flag_spec_GCJ= 16917 whole_archive_flag_spec_GCJ=
16111 fi
16112 fi 16918 fi
16113 else 16919 else
16114 # PORTME fill in a description of your system's linker (not GNU ld) 16920 # PORTME fill in a description of your system's linker (not GNU ld)
16115 case $host_os in 16921 case $host_os in
16116 aix3*) 16922 aix3*)
16118 always_export_symbols_GCJ=yes 16924 always_export_symbols_GCJ=yes
16119 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' 16925 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'
16120 # Note: this linker hardcodes the directories in LIBPATH if there 16926 # Note: this linker hardcodes the directories in LIBPATH if there
16121 # are no directories specified by -L. 16927 # are no directories specified by -L.
16122 hardcode_minus_L_GCJ=yes 16928 hardcode_minus_L_GCJ=yes
16123 if test "$GCC" = yes && test -z "$link_static_flag"; then 16929 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16124 # Neither direct hardcoding nor static linking is supported with a 16930 # Neither direct hardcoding nor static linking is supported with a
16125 # broken collect2. 16931 # broken collect2.
16126 hardcode_direct_GCJ=unsupported 16932 hardcode_direct_GCJ=unsupported
16127 fi 16933 fi
16128 ;; 16934 ;;
16152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16958 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16153 aix_use_runtimelinking=yes 16959 aix_use_runtimelinking=yes
16154 break 16960 break
16155 fi 16961 fi
16156 done 16962 done
16963 ;;
16157 esac 16964 esac
16158 16965
16159 exp_sym_flag='-bexport' 16966 exp_sym_flag='-bexport'
16160 no_entry_flag='-bnoentry' 16967 no_entry_flag='-bnoentry'
16161 fi 16968 fi
16170 hardcode_direct_GCJ=yes 16977 hardcode_direct_GCJ=yes
16171 hardcode_libdir_separator_GCJ=':' 16978 hardcode_libdir_separator_GCJ=':'
16172 link_all_deplibs_GCJ=yes 16979 link_all_deplibs_GCJ=yes
16173 16980
16174 if test "$GCC" = yes; then 16981 if test "$GCC" = yes; then
16175 case $host_os in aix4.012|aix4.012.*) 16982 case $host_os in aix4.[012]|aix4.[012].*)
16176 # We only want to do this on AIX 4.2 and lower, the check 16983 # We only want to do this on AIX 4.2 and lower, the check
16177 # below for broken collect2 doesn't work under 4.3+ 16984 # below for broken collect2 doesn't work under 4.3+
16178 collect2name=`${CC} -print-prog-name=collect2` 16985 collect2name=`${CC} -print-prog-name=collect2`
16179 if test -f "$collect2name" && \ 16986 if test -f "$collect2name" && \
16180 strings "$collect2name" | grep resolve_lib_name >/dev/null 16987 strings "$collect2name" | grep resolve_lib_name >/dev/null
16189 # to unsupported forces relinking 16996 # to unsupported forces relinking
16190 hardcode_minus_L_GCJ=yes 16997 hardcode_minus_L_GCJ=yes
16191 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16192 hardcode_libdir_separator_GCJ= 16999 hardcode_libdir_separator_GCJ=
16193 fi 17000 fi
17001 ;;
16194 esac 17002 esac
16195 shared_flag='-shared' 17003 shared_flag='-shared'
17004 if test "$aix_use_runtimelinking" = yes; then
17005 shared_flag="$shared_flag "'${wl}-G'
17006 fi
16196 else 17007 else
16197 # not using gcc 17008 # not using gcc
16198 if test "$host_cpu" = ia64; then 17009 if test "$host_cpu" = ia64; then
16199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16200 # chokes on -Wl,-G. The following line is correct: 17011 # chokes on -Wl,-G. The following line is correct:
16201 shared_flag='-G' 17012 shared_flag='-G'
16202 else 17013 else
16203 if test "$aix_use_runtimelinking" = yes; then 17014 if test "$aix_use_runtimelinking" = yes; then
16204 shared_flag='${wl}-G' 17015 shared_flag='${wl}-G'
16205 else 17016 else
16206 shared_flag='${wl}-bM:SRE' 17017 shared_flag='${wl}-bM:SRE'
16207 fi 17018 fi
16208 fi 17019 fi
16209 fi 17020 fi
16210 17021
16211 # It seems that -bexpall does not export symbols beginning with 17022 # It seems that -bexpall does not export symbols beginning with
16212 # underscore (_), so it is better to generate a list of symbols to export. 17023 # underscore (_), so it is better to generate a list of symbols to export.
16230 ; 17041 ;
16231 return 0; 17042 return 0;
16232} 17043}
16233_ACEOF 17044_ACEOF
16234rm -f conftest.$ac_objext conftest$ac_exeext 17045rm -f conftest.$ac_objext conftest$ac_exeext
17046if { (ac_try="$ac_link"
17047case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050esac
16235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval $ac_link) 2>conftest.er1 17052 (eval "$ac_link") 2>conftest.er1
16237 ac_status=$? 17053 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err 17054 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1 17055 rm -f conftest.er1
16240 cat conftest.err >&5 17056 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && 17058 (exit $ac_status); } && {
16243 { ac_try='test -z "$ac_c_werror_flag" 17059 test -z "$ac_c_werror_flag" ||
16244 || test ! -s conftest.err' 17060 test ! -s conftest.err
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17061 } && test -s conftest$ac_exeext &&
16246 (eval $ac_try) 2>&5 17062 $as_test_x conftest$ac_exeext; then
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest$ac_exeext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 17063
16257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16258}'` 17065}'`
16259# Check for a 64-bit object if we didn't find anything. 17066# Check for a 64-bit object if we didn't find anything.
16260if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17067if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16261}'`; fi 17068}'`; fi
16262else 17069else
16263 echo "$as_me: failed program was:" >&5 17070 echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5 17071sed 's/^/| /' conftest.$ac_ext >&5
16265 17072
17073
16266fi 17074fi
16267rm -f conftest.err conftest.$ac_objext \ 17075
17076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16268 conftest$ac_exeext conftest.$ac_ext 17077 conftest$ac_exeext conftest.$ac_ext
16269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17078if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16270 17079
16271 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17080 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16272 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17081 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"
16273 else 17082 else
16274 if test "$host_cpu" = ia64; then 17083 if test "$host_cpu" = ia64; then
16275 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17084 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16276 allow_undefined_flag_GCJ="-z nodefs" 17085 allow_undefined_flag_GCJ="-z nodefs"
16277 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 17086 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"
16278 else 17087 else
16279 # Determine the default libpath from the value encoded in an empty executable. 17088 # Determine the default libpath from the value encoded in an empty executable.
16280 cat >conftest.$ac_ext <<_ACEOF 17089 cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */ 17090/* confdefs.h. */
16282_ACEOF 17091_ACEOF
16291 ; 17100 ;
16292 return 0; 17101 return 0;
16293} 17102}
16294_ACEOF 17103_ACEOF
16295rm -f conftest.$ac_objext conftest$ac_exeext 17104rm -f conftest.$ac_objext conftest$ac_exeext
17105if { (ac_try="$ac_link"
17106case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
16296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval $ac_link) 2>conftest.er1 17111 (eval "$ac_link") 2>conftest.er1
16298 ac_status=$? 17112 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err 17113 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1 17114 rm -f conftest.er1
16301 cat conftest.err >&5 17115 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && 17117 (exit $ac_status); } && {
16304 { ac_try='test -z "$ac_c_werror_flag" 17118 test -z "$ac_c_werror_flag" ||
16305 || test ! -s conftest.err' 17119 test ! -s conftest.err
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17120 } && test -s conftest$ac_exeext &&
16307 (eval $ac_try) 2>&5 17121 $as_test_x conftest$ac_exeext; then
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest$ac_exeext'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16317 17122
16318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16319}'` 17124}'`
16320# Check for a 64-bit object if we didn't find anything. 17125# Check for a 64-bit object if we didn't find anything.
16321if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17126if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16322}'`; fi 17127}'`; fi
16323else 17128else
16324 echo "$as_me: failed program was:" >&5 17129 echo "$as_me: failed program was:" >&5
16325sed 's/^/| /' conftest.$ac_ext >&5 17130sed 's/^/| /' conftest.$ac_ext >&5
16326 17131
17132
16327fi 17133fi
16328rm -f conftest.err conftest.$ac_objext \ 17134
17135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16329 conftest$ac_exeext conftest.$ac_ext 17136 conftest$ac_exeext conftest.$ac_ext
16330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16331 17138
16332 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17139 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16333 # Warning - without using the other run time loading flags, 17140 # Warning - without using the other run time loading flags,
16334 # -berok will link without error, but may produce a broken library. 17141 # -berok will link without error, but may produce a broken library.
16335 no_undefined_flag_GCJ=' ${wl}-bernotok' 17142 no_undefined_flag_GCJ=' ${wl}-bernotok'
16336 allow_undefined_flag_GCJ=' ${wl}-berok' 17143 allow_undefined_flag_GCJ=' ${wl}-berok'
16337 # -bexpall does not export symbols beginning with underscore (_)
16338 always_export_symbols_GCJ=yes
16339 # Exported symbols can be pulled into shared objects from archives 17144 # Exported symbols can be pulled into shared objects from archives
16340 whole_archive_flag_spec_GCJ=' ' 17145 whole_archive_flag_spec_GCJ='$convenience'
16341 archive_cmds_need_lc_GCJ=yes 17146 archive_cmds_need_lc_GCJ=yes
16342 # This is similar to how AIX traditionally builds it's shared libraries. 17147 # This is similar to how AIX traditionally builds its shared libraries.
16343 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17148 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'
16344 fi 17149 fi
16345 fi 17150 fi
16346 ;; 17151 ;;
16347 17152
16348 amigaos*) 17153 amigaos*)
16351 hardcode_minus_L_GCJ=yes 17156 hardcode_minus_L_GCJ=yes
16352 # see comment about different semantics on the GNU ld section 17157 # see comment about different semantics on the GNU ld section
16353 ld_shlibs_GCJ=no 17158 ld_shlibs_GCJ=no
16354 ;; 17159 ;;
16355 17160
16356 bsdi4*) 17161 bsdi[45]*)
16357 export_dynamic_flag_spec_GCJ=-rdynamic 17162 export_dynamic_flag_spec_GCJ=-rdynamic
16358 ;; 17163 ;;
16359 17164
16360 cygwin* | mingw* | pw32*) 17165 cygwin* | mingw* | pw32*)
16361 # When not using gcc, we currently assume that we are using 17166 # When not using gcc, we currently assume that we are using
16365 hardcode_libdir_flag_spec_GCJ=' ' 17170 hardcode_libdir_flag_spec_GCJ=' '
16366 allow_undefined_flag_GCJ=unsupported 17171 allow_undefined_flag_GCJ=unsupported
16367 # Tell ltmain to make .lib files, not .a files. 17172 # Tell ltmain to make .lib files, not .a files.
16368 libext=lib 17173 libext=lib
16369 # Tell ltmain to make .dll files, not .so files. 17174 # Tell ltmain to make .dll files, not .so files.
16370 shrext=".dll" 17175 shrext_cmds=".dll"
16371 # FIXME: Setting linknames here is a bad hack. 17176 # FIXME: Setting linknames here is a bad hack.
16372 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17177 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16373 # The linker will automatically build a .lib file if we build a DLL. 17178 # The linker will automatically build a .lib file if we build a DLL.
16374 old_archive_From_new_cmds_GCJ='true' 17179 old_archive_From_new_cmds_GCJ='true'
16375 # FIXME: Should let the user specify the lib program. 17180 # FIXME: Should let the user specify the lib program.
16376 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17181 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16377 fix_srcfile_path='`cygpath -w "$srcfile"`' 17182 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16378 enable_shared_with_static_runtimes_GCJ=yes 17183 enable_shared_with_static_runtimes_GCJ=yes
16379 ;; 17184 ;;
16380 17185
16381 darwin* | rhapsody*) 17186 darwin* | rhapsody*)
16382 if test "$GXX" = yes ; then 17187 case $host_os in
17188 rhapsody* | darwin1.[012])
17189 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17190 ;;
17191 *) # Darwin 1.3 on
17192 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17193 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17194 else
17195 case ${MACOSX_DEPLOYMENT_TARGET} in
17196 10.[012])
17197 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17198 ;;
17199 10.*)
17200 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17201 ;;
17202 esac
17203 fi
17204 ;;
17205 esac
16383 archive_cmds_need_lc_GCJ=no 17206 archive_cmds_need_lc_GCJ=no
16384 case "$host_os" in
16385 rhapsody* | darwin1.[012])
16386 allow_undefined_flag_GCJ='-undefined suppress'
16387 ;;
16388 *) # Darwin 1.3 on
16389 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16390 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16391 else
16392 case ${MACOSX_DEPLOYMENT_TARGET} in
16393 10.[012])
16394 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16395 ;;
16396 10.*)
16397 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16398 ;;
16399 esac
16400 fi
16401 ;;
16402 esac
16403 lt_int_apple_cc_single_mod=no
16404 output_verbose_link_cmd='echo'
16405 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16406 lt_int_apple_cc_single_mod=yes
16407 fi
16408 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16409 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16410 else
16411 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16412 fi
16413 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16415 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16416 archive_expsym_cmds_GCJ='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}'
16417 else
16418 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16419 fi
16420 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}'
16421 hardcode_direct_GCJ=no 17207 hardcode_direct_GCJ=no
16422 hardcode_automatic_GCJ=yes 17208 hardcode_automatic_GCJ=yes
16423 hardcode_shlibpath_var_GCJ=unsupported 17209 hardcode_shlibpath_var_GCJ=unsupported
16424 whole_archive_flag_spec_GCJ='-all_load $convenience' 17210 whole_archive_flag_spec_GCJ=''
16425 link_all_deplibs_GCJ=yes 17211 link_all_deplibs_GCJ=yes
17212 if test "$GCC" = yes ; then
17213 output_verbose_link_cmd='echo'
17214 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17215 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17217 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}'
17218 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}'
16426 else 17219 else
17220 case $cc_basename in
17221 xlc*)
17222 output_verbose_link_cmd='echo'
17223 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17224 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17225 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17226 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17227 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}'
17228 ;;
17229 *)
16427 ld_shlibs_GCJ=no 17230 ld_shlibs_GCJ=no
17231 ;;
17232 esac
16428 fi 17233 fi
16429 ;; 17234 ;;
16430 17235
16431 dgux*) 17236 dgux*)
16432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_minus_L_GCJ=yes 17261 hardcode_minus_L_GCJ=yes
16457 hardcode_shlibpath_var_GCJ=no 17262 hardcode_shlibpath_var_GCJ=no
16458 ;; 17263 ;;
16459 17264
16460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16461 freebsd* | kfreebsd*-gnu) 17266 freebsd* | dragonfly*)
16462 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17267 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16463 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17268 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16464 hardcode_direct_GCJ=yes 17269 hardcode_direct_GCJ=yes
16465 hardcode_shlibpath_var_GCJ=no 17270 hardcode_shlibpath_var_GCJ=no
16466 ;; 17271 ;;
16479 # but as the default location of the library. 17284 # but as the default location of the library.
16480 hardcode_minus_L_GCJ=yes 17285 hardcode_minus_L_GCJ=yes
16481 export_dynamic_flag_spec_GCJ='${wl}-E' 17286 export_dynamic_flag_spec_GCJ='${wl}-E'
16482 ;; 17287 ;;
16483 17288
16484 hpux10* | hpux11*) 17289 hpux10*)
16485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17291 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17292 else
17293 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17294 fi
17295 if test "$with_gnu_ld" = no; then
17296 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17297 hardcode_libdir_separator_GCJ=:
17298
17299 hardcode_direct_GCJ=yes
17300 export_dynamic_flag_spec_GCJ='${wl}-E'
17301
17302 # hardcode_minus_L: Not really in the search PATH,
17303 # but as the default location of the library.
17304 hardcode_minus_L_GCJ=yes
17305 fi
17306 ;;
17307
17308 hpux11*)
17309 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16486 case "$host_cpu" in 17310 case $host_cpu in
16487 hppa*64*|ia64*) 17311 hppa*64*)
16488 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17312 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17313 ;;
17314 ia64*)
17315 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16489 ;; 17316 ;;
16490 *) 17317 *)
16491 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17318 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16492 ;; 17319 ;;
16493 esac 17320 esac
16494 else 17321 else
16495 case "$host_cpu" in 17322 case $host_cpu in
16496 hppa*64*|ia64*) 17323 hppa*64*)
16497 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17324 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17325 ;;
17326 ia64*)
17327 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16498 ;; 17328 ;;
16499 *) 17329 *)
16500 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17330 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16501 ;; 17331 ;;
16502 esac 17332 esac
16503 fi 17333 fi
16504 if test "$with_gnu_ld" = no; then 17334 if test "$with_gnu_ld" = no; then
16505 case "$host_cpu" in
16506 hppa*64*)
16507 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17335 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17336 hardcode_libdir_separator_GCJ=:
17337
17338 case $host_cpu in
17339 hppa*64*|ia64*)
16508 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17340 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16509 hardcode_libdir_separator_GCJ=:
16510 hardcode_direct_GCJ=no 17341 hardcode_direct_GCJ=no
16511 hardcode_shlibpath_var_GCJ=no 17342 hardcode_shlibpath_var_GCJ=no
16512 ;; 17343 ;;
16513 ia64*)
16514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16515 hardcode_direct_GCJ=no
16516 hardcode_shlibpath_var_GCJ=no
16517
16518 # hardcode_minus_L: Not really in the search PATH,
16519 # but as the default location of the library.
16520 hardcode_minus_L_GCJ=yes
16521 ;;
16522 *) 17344 *)
16523 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16524 hardcode_libdir_separator_GCJ=:
16525 hardcode_direct_GCJ=yes 17345 hardcode_direct_GCJ=yes
16526 export_dynamic_flag_spec_GCJ='${wl}-E' 17346 export_dynamic_flag_spec_GCJ='${wl}-E'
16527 17347
16528 # hardcode_minus_L: Not really in the search PATH, 17348 # hardcode_minus_L: Not really in the search PATH,
16529 # but as the default location of the library. 17349 # but as the default location of the library.
16543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16544 hardcode_libdir_separator_GCJ=: 17364 hardcode_libdir_separator_GCJ=:
16545 link_all_deplibs_GCJ=yes 17365 link_all_deplibs_GCJ=yes
16546 ;; 17366 ;;
16547 17367
16548 netbsd*) 17368 netbsd* | netbsdelf*-gnu)
16549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16550 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16551 else 17371 else
16552 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17372 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16553 fi 17373 fi
16567 openbsd*) 17387 openbsd*)
16568 hardcode_direct_GCJ=yes 17388 hardcode_direct_GCJ=yes
16569 hardcode_shlibpath_var_GCJ=no 17389 hardcode_shlibpath_var_GCJ=no
16570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16571 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17391 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17392 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16573 export_dynamic_flag_spec_GCJ='${wl}-E' 17394 export_dynamic_flag_spec_GCJ='${wl}-E'
16574 else 17395 else
16575 case $host_os in 17396 case $host_os in
16576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17397 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17433 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16613 else 17434 else
16614 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17435 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16615 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' 17436 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'
16616 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~ 17437 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~
16617 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 17438 $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'
16618 17439
16619 # Both c and cxx compiler support -rpath directly 17440 # Both c and cxx compiler support -rpath directly
16620 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17441 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16621 fi 17442 fi
16622 hardcode_libdir_separator_GCJ=: 17443 hardcode_libdir_separator_GCJ=:
16623 ;; 17444 ;;
16624 17445
16625 sco3.2v5*)
16626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627 hardcode_shlibpath_var_GCJ=no
16628 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16629 runpath_var=LD_RUN_PATH
16630 hardcode_runpath_var=yes
16631 ;;
16632
16633 solaris*) 17446 solaris*)
16634 no_undefined_flag_GCJ=' -z text' 17447 no_undefined_flag_GCJ=' -z text'
16635 if test "$GCC" = yes; then 17448 if test "$GCC" = yes; then
17449 wlarc='${wl}'
16636 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17450 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16637 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17451 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16638 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17452 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16639 else 17453 else
17454 wlarc=''
16640 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17455 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17456 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16643 fi 17458 fi
16644 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16645 hardcode_shlibpath_var_GCJ=no 17460 hardcode_shlibpath_var_GCJ=no
16646 case $host_os in 17461 case $host_os in
16647 solaris2.[0-5] | solaris2.[0-5].*) ;; 17462 solaris2.[0-5] | solaris2.[0-5].*) ;;
17463 *)
17464 # The compiler driver will combine linker options so we
17465 # cannot just pass the convience library names through
17466 # without $wl, iff we do not link with $LD.
17467 # Luckily, gcc supports the same syntax we need for Sun Studio.
16648 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 17468 # Supported since Solaris 2.6 (maybe 2.5.1?)
17469 case $wlarc in
17470 '')
16649 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17471 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17472 *)
17473 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17474 esac ;;
16650 esac 17475 esac
16651 link_all_deplibs_GCJ=yes 17476 link_all_deplibs_GCJ=yes
16652 ;; 17477 ;;
16653 17478
16654 sunos4*) 17479 sunos4*)
16701 hardcode_runpath_var=yes 17526 hardcode_runpath_var=yes
16702 ld_shlibs_GCJ=yes 17527 ld_shlibs_GCJ=yes
16703 fi 17528 fi
16704 ;; 17529 ;;
16705 17530
16706 sysv4.2uw2*) 17531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16707 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16708 hardcode_direct_GCJ=yes
16709 hardcode_minus_L_GCJ=no
16710 hardcode_shlibpath_var_GCJ=no
16711 hardcode_runpath_var=yes
16712 runpath_var=LD_RUN_PATH
16713 ;;
16714
16715 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16716 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17532 no_undefined_flag_GCJ='${wl}-z,text'
16717 if test "$GCC" = yes; then 17533 archive_cmds_need_lc_GCJ=no
16718 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16719 else
16720 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 fi
16722 runpath_var='LD_RUN_PATH'
16723 hardcode_shlibpath_var_GCJ=no
16724 ;;
16725
16726 sysv5*)
16727 no_undefined_flag_GCJ=' -z text'
16728 # $CC -shared without GNU ld will not create a library from C++
16729 # object files and a static libstdc++, better avoid it by now
16730 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16732 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16733 hardcode_libdir_flag_spec_GCJ=
16734 hardcode_shlibpath_var_GCJ=no 17534 hardcode_shlibpath_var_GCJ=no
16735 runpath_var='LD_RUN_PATH' 17535 runpath_var='LD_RUN_PATH'
17536
17537 if test "$GCC" = yes; then
17538 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17540 else
17541 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17542 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17543 fi
17544 ;;
17545
17546 sysv5* | sco3.2v5* | sco5v6*)
17547 # Note: We can NOT use -z defs as we might desire, because we do not
17548 # link with -lc, and that would cause any symbols used from libc to
17549 # always be unresolved, which means just about no library would
17550 # ever link correctly. If we're not using GNU ld we use -z text
17551 # though, which does catch some bad symbols but isn't as heavy-handed
17552 # as -z defs.
17553 no_undefined_flag_GCJ='${wl}-z,text'
17554 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17555 archive_cmds_need_lc_GCJ=no
17556 hardcode_shlibpath_var_GCJ=no
17557 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17558 hardcode_libdir_separator_GCJ=':'
17559 link_all_deplibs_GCJ=yes
17560 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17561 runpath_var='LD_RUN_PATH'
17562
17563 if test "$GCC" = yes; then
17564 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17565 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 else
17567 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17568 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569 fi
16736 ;; 17570 ;;
16737 17571
16738 uts4*) 17572 uts4*)
16739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16745 ld_shlibs_GCJ=no 17579 ld_shlibs_GCJ=no
16746 ;; 17580 ;;
16747 esac 17581 esac
16748 fi 17582 fi
16749 17583
16750echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17584{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16751echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17585echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16752test "$ld_shlibs_GCJ" = no && can_build_shared=no 17586test "$ld_shlibs_GCJ" = no && can_build_shared=no
16753
16754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16755if test "$GCC" = yes; then
16756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16757fi
16758 17587
16759# 17588#
16760# Do we need to explicitly link libc? 17589# Do we need to explicitly link libc?
16761# 17590#
16762case "x$archive_cmds_need_lc_GCJ" in 17591case "x$archive_cmds_need_lc_GCJ" in
16771 ;; 17600 ;;
16772 '$CC '*) 17601 '$CC '*)
16773 # Test whether the compiler implicitly links with -lc since on some 17602 # Test whether the compiler implicitly links with -lc since on some
16774 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16775 # to ld, don't add -lc before -lgcc. 17604 # to ld, don't add -lc before -lgcc.
16776 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17605 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17606echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16778 $rm conftest* 17607 $rm conftest*
16779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16780 17609
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>&5 17611 (eval $ac_compile) 2>&5
16786 soname=conftest 17615 soname=conftest
16787 lib=conftest 17616 lib=conftest
16788 libobjs=conftest.$ac_objext 17617 libobjs=conftest.$ac_objext
16789 deplibs= 17618 deplibs=
16790 wl=$lt_prog_compiler_wl_GCJ 17619 wl=$lt_prog_compiler_wl_GCJ
17620 pic_flag=$lt_prog_compiler_pic_GCJ
16791 compiler_flags=-v 17621 compiler_flags=-v
16792 linker_flags=-v 17622 linker_flags=-v
16793 verstring= 17623 verstring=
16794 output_objdir=. 17624 output_objdir=.
16795 libname=conftest 17625 libname=conftest
16808 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17638 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16809 else 17639 else
16810 cat conftest.err 1>&5 17640 cat conftest.err 1>&5
16811 fi 17641 fi
16812 $rm conftest* 17642 $rm conftest*
16813 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17643 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16814echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17644echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16815 ;; 17645 ;;
16816 esac 17646 esac
16817 fi 17647 fi
16818 ;; 17648 ;;
16819esac 17649esac
16820 17650
16821echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17651{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17652echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16823library_names_spec= 17653library_names_spec=
16824libname_spec='lib$name' 17654libname_spec='lib$name'
16825soname_spec= 17655soname_spec=
16826shrext=".so" 17656shrext_cmds=".so"
16827postinstall_cmds= 17657postinstall_cmds=
16828postuninstall_cmds= 17658postuninstall_cmds=
16829finish_cmds= 17659finish_cmds=
16830finish_eval= 17660finish_eval=
16831shlibpath_var= 17661shlibpath_var=
16918 library_names_spec='${libname}${shared_ext}' 17748 library_names_spec='${libname}${shared_ext}'
16919 dynamic_linker="$host_os ld.so" 17749 dynamic_linker="$host_os ld.so"
16920 shlibpath_var=LIBRARY_PATH 17750 shlibpath_var=LIBRARY_PATH
16921 ;; 17751 ;;
16922 17752
16923bsdi4*) 17753bsdi[45]*)
16924 version_type=linux 17754 version_type=linux
16925 need_version=no 17755 need_version=no
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major' 17757 soname_spec='${libname}${release}${shared_ext}$major'
16928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16934 # libtool to hard-code these into programs 17764 # libtool to hard-code these into programs
16935 ;; 17765 ;;
16936 17766
16937cygwin* | mingw* | pw32*) 17767cygwin* | mingw* | pw32*)
16938 version_type=windows 17768 version_type=windows
16939 shrext=".dll" 17769 shrext_cmds=".dll"
16940 need_version=no 17770 need_version=no
16941 need_lib_prefix=no 17771 need_lib_prefix=no
16942 17772
16943 case $GCC,$host_os in 17773 case $GCC,$host_os in
16944 yes,cygwin* | yes,mingw* | yes,pw32*) 17774 yes,cygwin* | yes,mingw* | yes,pw32*)
16946 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16947 postinstall_cmds='base_file=`basename \${file}`~ 17777 postinstall_cmds='base_file=`basename \${file}`~
16948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16949 dldir=$destdir/`dirname \$dlpath`~ 17779 dldir=$destdir/`dirname \$dlpath`~
16950 test -d \$dldir || mkdir -p \$dldir~ 17780 test -d \$dldir || mkdir -p \$dldir~
16951 $install_prog $dir/$dlname \$dldir/$dlname' 17781 $install_prog $dir/$dlname \$dldir/$dlname~
17782 chmod a+x \$dldir/$dlname'
16952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16953 dlpath=$dir/\$dldll~ 17784 dlpath=$dir/\$dldll~
16954 $rm \$dlpath' 17785 $rm \$dlpath'
16955 shlibpath_overrides_runpath=yes 17786 shlibpath_overrides_runpath=yes
16956 17787
16976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16977 fi 17808 fi
16978 ;; 17809 ;;
16979 pw32*) 17810 pw32*)
16980 # pw32 DLLs use 'pw' prefix rather than 'lib' 17811 # pw32 DLLs use 'pw' prefix rather than 'lib'
16981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16982 ;; 17813 ;;
16983 esac 17814 esac
16984 ;; 17815 ;;
16985 17816
16986 *) 17817 *)
16999 need_version=no 17830 need_version=no
17000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17001 soname_spec='${libname}${release}${major}$shared_ext' 17832 soname_spec='${libname}${release}${major}$shared_ext'
17002 shlibpath_overrides_runpath=yes 17833 shlibpath_overrides_runpath=yes
17003 shlibpath_var=DYLD_LIBRARY_PATH 17834 shlibpath_var=DYLD_LIBRARY_PATH
17004 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 17835 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17005 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17006 if test "$GCC" = yes; then 17837 if test "$GCC" = yes; then
17007 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17838 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17008 else 17839 else
17009 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17022 17853
17023freebsd1*) 17854freebsd1*)
17024 dynamic_linker=no 17855 dynamic_linker=no
17025 ;; 17856 ;;
17026 17857
17027kfreebsd*-gnu) 17858freebsd* | dragonfly*)
17028 version_type=linux 17859 # DragonFly does not have aout. When/if they implement a new
17029 need_lib_prefix=no 17860 # versioning mechanism, adjust this.
17030 need_version=no 17861 if test -x /usr/bin/objformat; then
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17862 objformat=`/usr/bin/objformat`
17032 soname_spec='${libname}${release}${shared_ext}$major' 17863 else
17033 shlibpath_var=LD_LIBRARY_PATH 17864 case $host_os in
17034 shlibpath_overrides_runpath=no 17865 freebsd[123]*) objformat=aout ;;
17035 hardcode_into_libs=yes 17866 *) objformat=elf ;;
17036 dynamic_linker='GNU ld.so' 17867 esac
17037 ;; 17868 fi
17038
17039freebsd*)
17040 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17041 version_type=freebsd-$objformat 17869 version_type=freebsd-$objformat
17042 case $version_type in 17870 case $version_type in
17043 freebsd-elf*) 17871 freebsd-elf*)
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17045 need_version=no 17873 need_version=no
17053 shlibpath_var=LD_LIBRARY_PATH 17881 shlibpath_var=LD_LIBRARY_PATH
17054 case $host_os in 17882 case $host_os in
17055 freebsd2*) 17883 freebsd2*)
17056 shlibpath_overrides_runpath=yes 17884 shlibpath_overrides_runpath=yes
17057 ;; 17885 ;;
17058 freebsd3.01* | freebsdelf3.01*) 17886 freebsd3.[01]* | freebsdelf3.[01]*)
17059 shlibpath_overrides_runpath=yes 17887 shlibpath_overrides_runpath=yes
17060 hardcode_into_libs=yes 17888 hardcode_into_libs=yes
17061 ;; 17889 ;;
17062 *) # from 3.2 on 17890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17063 shlibpath_overrides_runpath=no 17892 shlibpath_overrides_runpath=no
17893 hardcode_into_libs=yes
17894 ;;
17895 freebsd*) # from 4.6 on
17896 shlibpath_overrides_runpath=yes
17064 hardcode_into_libs=yes 17897 hardcode_into_libs=yes
17065 ;; 17898 ;;
17066 esac 17899 esac
17067 ;; 17900 ;;
17068 17901
17080 # Give a soname corresponding to the major version so that dld.sl refuses to 17913 # Give a soname corresponding to the major version so that dld.sl refuses to
17081 # link against other versions. 17914 # link against other versions.
17082 version_type=sunos 17915 version_type=sunos
17083 need_lib_prefix=no 17916 need_lib_prefix=no
17084 need_version=no 17917 need_version=no
17085 case "$host_cpu" in 17918 case $host_cpu in
17086 ia64*) 17919 ia64*)
17087 shrext='.so' 17920 shrext_cmds='.so'
17088 hardcode_into_libs=yes 17921 hardcode_into_libs=yes
17089 dynamic_linker="$host_os dld.so" 17922 dynamic_linker="$host_os dld.so"
17090 shlibpath_var=LD_LIBRARY_PATH 17923 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17098 fi 17931 fi
17099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17100 ;; 17933 ;;
17101 hppa*64*) 17934 hppa*64*)
17102 shrext='.sl' 17935 shrext_cmds='.sl'
17103 hardcode_into_libs=yes 17936 hardcode_into_libs=yes
17104 dynamic_linker="$host_os dld.sl" 17937 dynamic_linker="$host_os dld.sl"
17105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major' 17941 soname_spec='${libname}${release}${shared_ext}$major'
17109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17111 ;; 17944 ;;
17112 *) 17945 *)
17113 shrext='.sl' 17946 shrext_cmds='.sl'
17114 dynamic_linker="$host_os dld.sl" 17947 dynamic_linker="$host_os dld.sl"
17115 shlibpath_var=SHLIB_PATH 17948 shlibpath_var=SHLIB_PATH
17116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major' 17951 soname_spec='${libname}${release}${shared_ext}$major'
17119 ;; 17952 ;;
17120 esac 17953 esac
17121 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17122 postinstall_cmds='chmod 555 $lib' 17955 postinstall_cmds='chmod 555 $lib'
17956 ;;
17957
17958interix3*)
17959 version_type=linux
17960 need_lib_prefix=no
17961 need_version=no
17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17963 soname_spec='${libname}${release}${shared_ext}$major'
17964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath=no
17967 hardcode_into_libs=yes
17123 ;; 17968 ;;
17124 17969
17125irix5* | irix6* | nonstopux*) 17970irix5* | irix6* | nonstopux*)
17126 case $host_os in 17971 case $host_os in
17127 nonstopux*) version_type=nonstopux ;; 17972 nonstopux*) version_type=nonstopux ;;
17163linux*oldld* | linux*aout* | linux*coff*) 18008linux*oldld* | linux*aout* | linux*coff*)
17164 dynamic_linker=no 18009 dynamic_linker=no
17165 ;; 18010 ;;
17166 18011
17167# This must be Linux ELF. 18012# This must be Linux ELF.
17168linux*) 18013linux* | k*bsd*-gnu)
17169 version_type=linux 18014 version_type=linux
17170 need_lib_prefix=no 18015 need_lib_prefix=no
17171 need_version=no 18016 need_version=no
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major' 18018 soname_spec='${libname}${release}${shared_ext}$major'
17179 # before this can be enabled. 18024 # before this can be enabled.
17180 hardcode_into_libs=yes 18025 hardcode_into_libs=yes
17181 18026
17182 # Append ld.so.conf contents to the search path 18027 # Append ld.so.conf contents to the search path
17183 if test -f /etc/ld.so.conf; then 18028 if test -f /etc/ld.so.conf; then
17184 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` 18029 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17185 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" 18030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17186 fi 18031 fi
17187 18032
17188 # We used to test for /lib/ld.so.1 and disable shared libraries on 18033 # We used to test for /lib/ld.so.1 and disable shared libraries on
17189 # powerpc, because MkLinux only supported shared libraries with the 18034 # powerpc, because MkLinux only supported shared libraries with the
17190 # GNU dynamic linker. Since this was broken with cross compilers, 18035 # GNU dynamic linker. Since this was broken with cross compilers,
17192 # people can always --disable-shared, the test was removed, and we 18037 # people can always --disable-shared, the test was removed, and we
17193 # assume the GNU/Linux dynamic linker is in use. 18038 # assume the GNU/Linux dynamic linker is in use.
17194 dynamic_linker='GNU/Linux ld.so' 18039 dynamic_linker='GNU/Linux ld.so'
17195 ;; 18040 ;;
17196 18041
17197knetbsd*-gnu) 18042netbsdelf*-gnu)
17198 version_type=linux 18043 version_type=linux
17199 need_lib_prefix=no 18044 need_lib_prefix=no
17200 need_version=no 18045 need_version=no
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17202 soname_spec='${libname}${release}${shared_ext}$major' 18047 soname_spec='${libname}${release}${shared_ext}$major'
17203 shlibpath_var=LD_LIBRARY_PATH 18048 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=no 18049 shlibpath_overrides_runpath=no
17205 hardcode_into_libs=yes 18050 hardcode_into_libs=yes
17206 dynamic_linker='GNU ld.so' 18051 dynamic_linker='NetBSD ld.elf_so'
17207 ;; 18052 ;;
17208 18053
17209netbsd*) 18054netbsd*)
17210 version_type=sunos 18055 version_type=sunos
17211 need_lib_prefix=no 18056 need_lib_prefix=no
17241 shlibpath_overrides_runpath=yes 18086 shlibpath_overrides_runpath=yes
17242 ;; 18087 ;;
17243 18088
17244openbsd*) 18089openbsd*)
17245 version_type=sunos 18090 version_type=sunos
18091 sys_lib_dlsearch_path_spec="/usr/lib"
17246 need_lib_prefix=no 18092 need_lib_prefix=no
17247 need_version=yes 18093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18094 case $host_os in
18095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18096 *) need_version=no ;;
18097 esac
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17250 shlibpath_var=LD_LIBRARY_PATH 18100 shlibpath_var=LD_LIBRARY_PATH
17251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17252 case $host_os in 18102 case $host_os in
17262 fi 18112 fi
17263 ;; 18113 ;;
17264 18114
17265os2*) 18115os2*)
17266 libname_spec='$name' 18116 libname_spec='$name'
17267 shrext=".dll" 18117 shrext_cmds=".dll"
17268 need_lib_prefix=no 18118 need_lib_prefix=no
17269 library_names_spec='$libname${shared_ext} $libname.a' 18119 library_names_spec='$libname${shared_ext} $libname.a'
17270 dynamic_linker='OS/2 ld.exe' 18120 dynamic_linker='OS/2 ld.exe'
17271 shlibpath_var=LIBPATH 18121 shlibpath_var=LIBPATH
17272 ;; 18122 ;;
17278 soname_spec='${libname}${release}${shared_ext}$major' 18128 soname_spec='${libname}${release}${shared_ext}$major'
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280 shlibpath_var=LD_LIBRARY_PATH 18130 shlibpath_var=LD_LIBRARY_PATH
17281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17283 ;;
17284
17285sco3.2v5*)
17286 version_type=osf
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 ;; 18133 ;;
17291 18134
17292solaris*) 18135solaris*)
17293 version_type=linux 18136 version_type=linux
17294 need_lib_prefix=no 18137 need_lib_prefix=no
17312 need_lib_prefix=no 18155 need_lib_prefix=no
17313 fi 18156 fi
17314 need_version=yes 18157 need_version=yes
17315 ;; 18158 ;;
17316 18159
17317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18160sysv4 | sysv4.3*)
17318 version_type=linux 18161 version_type=linux
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major' 18163 soname_spec='${libname}${release}${shared_ext}$major'
17321 shlibpath_var=LD_LIBRARY_PATH 18164 shlibpath_var=LD_LIBRARY_PATH
17322 case $host_vendor in 18165 case $host_vendor in
17345 soname_spec='$libname${shared_ext}.$major' 18188 soname_spec='$libname${shared_ext}.$major'
17346 shlibpath_var=LD_LIBRARY_PATH 18189 shlibpath_var=LD_LIBRARY_PATH
17347 fi 18190 fi
17348 ;; 18191 ;;
17349 18192
18193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18194 version_type=freebsd-elf
18195 need_lib_prefix=no
18196 need_version=no
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 shlibpath_var=LD_LIBRARY_PATH
18200 hardcode_into_libs=yes
18201 if test "$with_gnu_ld" = yes; then
18202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18203 shlibpath_overrides_runpath=no
18204 else
18205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18206 shlibpath_overrides_runpath=yes
18207 case $host_os in
18208 sco3.2v5*)
18209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18210 ;;
18211 esac
18212 fi
18213 sys_lib_dlsearch_path_spec='/usr/lib'
18214 ;;
18215
17350uts4*) 18216uts4*)
17351 version_type=linux 18217 version_type=linux
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major' 18219 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH 18220 shlibpath_var=LD_LIBRARY_PATH
17356 18222
17357*) 18223*)
17358 dynamic_linker=no 18224 dynamic_linker=no
17359 ;; 18225 ;;
17360esac 18226esac
17361echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18227{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17362echo "${ECHO_T}$dynamic_linker" >&6 18228echo "${ECHO_T}$dynamic_linker" >&6; }
17363test "$dynamic_linker" = no && can_build_shared=no 18229test "$dynamic_linker" = no && can_build_shared=no
17364 18230
18231variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18232if test "$GCC" = yes; then
18233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18234fi
18235
17365echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18236{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17366echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18237echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17367hardcode_action_GCJ= 18238hardcode_action_GCJ=
17368if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18239if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17369 test -n "$runpath_var GCJ" || \ 18240 test -n "$runpath_var_GCJ" || \
17370 test "X$hardcode_automatic_GCJ"="Xyes" ; then 18241 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17371 18242
17372 # We can hardcode non-existant directories. 18243 # We can hardcode non-existant directories.
17373 if test "$hardcode_direct_GCJ" != no && 18244 if test "$hardcode_direct_GCJ" != no &&
17374 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17375 # have to relink, otherwise we might link with an installed library 18246 # have to relink, otherwise we might link with an installed library
17385else 18256else
17386 # We cannot hardcode anything, or else we can only hardcode existing 18257 # We cannot hardcode anything, or else we can only hardcode existing
17387 # directories. 18258 # directories.
17388 hardcode_action_GCJ=unsupported 18259 hardcode_action_GCJ=unsupported
17389fi 18260fi
17390echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18261{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17391echo "${ECHO_T}$hardcode_action_GCJ" >&6 18262echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17392 18263
17393if test "$hardcode_action_GCJ" = relink; then 18264if test "$hardcode_action_GCJ" = relink; then
17394 # Fast installation is not supported 18265 # Fast installation is not supported
17395 enable_fast_install=no 18266 enable_fast_install=no
17396elif test "$shlibpath_overrides_runpath" = yes || 18267elif test "$shlibpath_overrides_runpath" = yes ||
17397 test "$enable_shared" = no; then 18268 test "$enable_shared" = no; then
17398 # Fast installation is not necessary 18269 # Fast installation is not necessary
17399 enable_fast_install=needless 18270 enable_fast_install=needless
17400fi
17401
17402striplib=
17403old_striplib=
17404echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17405echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17406if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17407 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17408 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17409 echo "$as_me:$LINENO: result: yes" >&5
17410echo "${ECHO_T}yes" >&6
17411else
17412# FIXME - insert some real tests, host_os isn't really good enough
17413 case $host_os in
17414 darwin*)
17415 if test -n "$STRIP" ; then
17416 striplib="$STRIP -x"
17417 echo "$as_me:$LINENO: result: yes" >&5
17418echo "${ECHO_T}yes" >&6
17419 else
17420 echo "$as_me:$LINENO: result: no" >&5
17421echo "${ECHO_T}no" >&6
17422fi
17423 ;;
17424 *)
17425 echo "$as_me:$LINENO: result: no" >&5
17426echo "${ECHO_T}no" >&6
17427 ;;
17428 esac
17429fi
17430
17431if test "x$enable_dlopen" != xyes; then
17432 enable_dlopen=unknown
17433 enable_dlopen_self=unknown
17434 enable_dlopen_self_static=unknown
17435else
17436 lt_cv_dlopen=no
17437 lt_cv_dlopen_libs=
17438
17439 case $host_os in
17440 beos*)
17441 lt_cv_dlopen="load_add_on"
17442 lt_cv_dlopen_libs=
17443 lt_cv_dlopen_self=yes
17444 ;;
17445
17446 mingw* | pw32*)
17447 lt_cv_dlopen="LoadLibrary"
17448 lt_cv_dlopen_libs=
17449 ;;
17450
17451 cygwin*)
17452 lt_cv_dlopen="dlopen"
17453 lt_cv_dlopen_libs=
17454 ;;
17455
17456 darwin*)
17457 # if libdl is installed we need to link against it
17458 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17459echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17460if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 ac_check_lib_save_LIBS=$LIBS
17464LIBS="-ldl $LIBS"
17465cat >conftest.$ac_ext <<_ACEOF
17466/* confdefs.h. */
17467_ACEOF
17468cat confdefs.h >>conftest.$ac_ext
17469cat >>conftest.$ac_ext <<_ACEOF
17470/* end confdefs.h. */
17471
17472/* Override any gcc2 internal prototype to avoid an error. */
17473#ifdef __cplusplus
17474extern "C"
17475#endif
17476/* We use char because int might match the return type of a gcc2
17477 builtin and then its argument prototype would still apply. */
17478char dlopen ();
17479int
17480main ()
17481{
17482dlopen ();
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext conftest$ac_exeext
17488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489 (eval $ac_link) 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag"
17497 || test ! -s conftest.err'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 ac_cv_lib_dl_dlopen=yes
17510else
17511 echo "$as_me: failed program was:" >&5
17512sed 's/^/| /' conftest.$ac_ext >&5
17513
17514ac_cv_lib_dl_dlopen=no
17515fi
17516rm -f conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518LIBS=$ac_check_lib_save_LIBS
17519fi
17520echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17521echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17522if test $ac_cv_lib_dl_dlopen = yes; then
17523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17524else
17525
17526 lt_cv_dlopen="dyld"
17527 lt_cv_dlopen_libs=
17528 lt_cv_dlopen_self=yes
17529
17530fi
17531
17532 ;;
17533
17534 *)
17535 echo "$as_me:$LINENO: checking for shl_load" >&5
17536echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17537if test "${ac_cv_func_shl_load+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17548#define shl_load innocuous_shl_load
17549
17550/* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char shl_load (); below.
17552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17553 <limits.h> exists even on freestanding compilers. */
17554
17555#ifdef __STDC__
17556# include <limits.h>
17557#else
17558# include <assert.h>
17559#endif
17560
17561#undef shl_load
17562
17563/* Override any gcc2 internal prototype to avoid an error. */
17564#ifdef __cplusplus
17565extern "C"
17566{
17567#endif
17568/* We use char because int might match the return type of a gcc2
17569 builtin and then its argument prototype would still apply. */
17570char shl_load ();
17571/* The GNU C library defines this for functions which it implements
17572 to always fail with ENOSYS. Some functions are actually named
17573 something starting with __ and the normal name is an alias. */
17574#if defined (__stub_shl_load) || defined (__stub___shl_load)
17575choke me
17576#else
17577char (*f) () = shl_load;
17578#endif
17579#ifdef __cplusplus
17580}
17581#endif
17582
17583int
17584main ()
17585{
17586return f != shl_load;
17587 ;
17588 return 0;
17589}
17590_ACEOF
17591rm -f conftest.$ac_objext conftest$ac_exeext
17592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17593 (eval $ac_link) 2>conftest.er1
17594 ac_status=$?
17595 grep -v '^ *+' conftest.er1 >conftest.err
17596 rm -f conftest.er1
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag"
17601 || test ! -s conftest.err'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest$ac_exeext'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_func_shl_load=yes
17614else
17615 echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618ac_cv_func_shl_load=no
17619fi
17620rm -f conftest.err conftest.$ac_objext \
17621 conftest$ac_exeext conftest.$ac_ext
17622fi
17623echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17624echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17625if test $ac_cv_func_shl_load = yes; then
17626 lt_cv_dlopen="shl_load"
17627else
17628 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17630if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632else
17633 ac_check_lib_save_LIBS=$LIBS
17634LIBS="-ldld $LIBS"
17635cat >conftest.$ac_ext <<_ACEOF
17636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
17641
17642/* Override any gcc2 internal prototype to avoid an error. */
17643#ifdef __cplusplus
17644extern "C"
17645#endif
17646/* We use char because int might match the return type of a gcc2
17647 builtin and then its argument prototype would still apply. */
17648char shl_load ();
17649int
17650main ()
17651{
17652shl_load ();
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext conftest$ac_exeext
17658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17659 (eval $ac_link) 2>conftest.er1
17660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest$ac_exeext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_lib_dld_shl_load=yes
17680else
17681 echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684ac_cv_lib_dld_shl_load=no
17685fi
17686rm -f conftest.err conftest.$ac_objext \
17687 conftest$ac_exeext conftest.$ac_ext
17688LIBS=$ac_check_lib_save_LIBS
17689fi
17690echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17691echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17692if test $ac_cv_lib_dld_shl_load = yes; then
17693 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17694else
17695 echo "$as_me:$LINENO: checking for dlopen" >&5
17696echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17697if test "${ac_cv_func_dlopen+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708#define dlopen innocuous_dlopen
17709
17710/* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char dlopen (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17714
17715#ifdef __STDC__
17716# include <limits.h>
17717#else
17718# include <assert.h>
17719#endif
17720
17721#undef dlopen
17722
17723/* Override any gcc2 internal prototype to avoid an error. */
17724#ifdef __cplusplus
17725extern "C"
17726{
17727#endif
17728/* We use char because int might match the return type of a gcc2
17729 builtin and then its argument prototype would still apply. */
17730char dlopen ();
17731/* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734#if defined (__stub_dlopen) || defined (__stub___dlopen)
17735choke me
17736#else
17737char (*f) () = dlopen;
17738#endif
17739#ifdef __cplusplus
17740}
17741#endif
17742
17743int
17744main ()
17745{
17746return f != dlopen;
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_func_dlopen=yes
17774else
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
17778ac_cv_func_dlopen=no
17779fi
17780rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782fi
17783echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17784echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17785if test $ac_cv_func_dlopen = yes; then
17786 lt_cv_dlopen="dlopen"
17787else
17788 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17789echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17790if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 ac_check_lib_save_LIBS=$LIBS
17794LIBS="-ldl $LIBS"
17795cat >conftest.$ac_ext <<_ACEOF
17796/* confdefs.h. */
17797_ACEOF
17798cat confdefs.h >>conftest.$ac_ext
17799cat >>conftest.$ac_ext <<_ACEOF
17800/* end confdefs.h. */
17801
17802/* Override any gcc2 internal prototype to avoid an error. */
17803#ifdef __cplusplus
17804extern "C"
17805#endif
17806/* We use char because int might match the return type of a gcc2
17807 builtin and then its argument prototype would still apply. */
17808char dlopen ();
17809int
17810main ()
17811{
17812dlopen ();
17813 ;
17814 return 0;
17815}
17816_ACEOF
17817rm -f conftest.$ac_objext conftest$ac_exeext
17818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_cv_lib_dl_dlopen=yes
17840else
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844ac_cv_lib_dl_dlopen=no
17845fi
17846rm -f conftest.err conftest.$ac_objext \
17847 conftest$ac_exeext conftest.$ac_ext
17848LIBS=$ac_check_lib_save_LIBS
17849fi
17850echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17851echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17852if test $ac_cv_lib_dl_dlopen = yes; then
17853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17854else
17855 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17856echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17857if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859else
17860 ac_check_lib_save_LIBS=$LIBS
17861LIBS="-lsvld $LIBS"
17862cat >conftest.$ac_ext <<_ACEOF
17863/* confdefs.h. */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h. */
17868
17869/* Override any gcc2 internal prototype to avoid an error. */
17870#ifdef __cplusplus
17871extern "C"
17872#endif
17873/* We use char because int might match the return type of a gcc2
17874 builtin and then its argument prototype would still apply. */
17875char dlopen ();
17876int
17877main ()
17878{
17879dlopen ();
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext conftest$ac_exeext
17885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17886 (eval $ac_link) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_cv_lib_svld_dlopen=yes
17907else
17908 echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911ac_cv_lib_svld_dlopen=no
17912fi
17913rm -f conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17915LIBS=$ac_check_lib_save_LIBS
17916fi
17917echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17918echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17919if test $ac_cv_lib_svld_dlopen = yes; then
17920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17921else
17922 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17923echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17924if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926else
17927 ac_check_lib_save_LIBS=$LIBS
17928LIBS="-ldld $LIBS"
17929cat >conftest.$ac_ext <<_ACEOF
17930/* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
17935
17936/* Override any gcc2 internal prototype to avoid an error. */
17937#ifdef __cplusplus
17938extern "C"
17939#endif
17940/* We use char because int might match the return type of a gcc2
17941 builtin and then its argument prototype would still apply. */
17942char dld_link ();
17943int
17944main ()
17945{
17946dld_link ();
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext conftest$ac_exeext
17952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953 (eval $ac_link) 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_cv_lib_dld_dld_link=yes
17974else
17975 echo "$as_me: failed program was:" >&5
17976sed 's/^/| /' conftest.$ac_ext >&5
17977
17978ac_cv_lib_dld_dld_link=no
17979fi
17980rm -f conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982LIBS=$ac_check_lib_save_LIBS
17983fi
17984echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17985echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17986if test $ac_cv_lib_dld_dld_link = yes; then
17987 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17988fi
17989
17990
17991fi
17992
17993
17994fi
17995
17996
17997fi
17998
17999
18000fi
18001
18002
18003fi
18004
18005 ;;
18006 esac
18007
18008 if test "x$lt_cv_dlopen" != xno; then
18009 enable_dlopen=yes
18010 else
18011 enable_dlopen=no
18012 fi
18013
18014 case $lt_cv_dlopen in
18015 dlopen)
18016 save_CPPFLAGS="$CPPFLAGS"
18017 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18018
18019 save_LDFLAGS="$LDFLAGS"
18020 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18021
18022 save_LIBS="$LIBS"
18023 LIBS="$lt_cv_dlopen_libs $LIBS"
18024
18025 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18026echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18027if test "${lt_cv_dlopen_self+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029else
18030 if test "$cross_compiling" = yes; then :
18031 lt_cv_dlopen_self=cross
18032else
18033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18034 lt_status=$lt_dlunknown
18035 cat > conftest.$ac_ext <<EOF
18036#line 18036 "configure"
18037#include "confdefs.h"
18038
18039#if HAVE_DLFCN_H
18040#include <dlfcn.h>
18041#endif
18042
18043#include <stdio.h>
18044
18045#ifdef RTLD_GLOBAL
18046# define LT_DLGLOBAL RTLD_GLOBAL
18047#else
18048# ifdef DL_GLOBAL
18049# define LT_DLGLOBAL DL_GLOBAL
18050# else
18051# define LT_DLGLOBAL 0
18052# endif
18053#endif
18054
18055/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18056 find out it does not work in some platform. */
18057#ifndef LT_DLLAZY_OR_NOW
18058# ifdef RTLD_LAZY
18059# define LT_DLLAZY_OR_NOW RTLD_LAZY
18060# else
18061# ifdef DL_LAZY
18062# define LT_DLLAZY_OR_NOW DL_LAZY
18063# else
18064# ifdef RTLD_NOW
18065# define LT_DLLAZY_OR_NOW RTLD_NOW
18066# else
18067# ifdef DL_NOW
18068# define LT_DLLAZY_OR_NOW DL_NOW
18069# else
18070# define LT_DLLAZY_OR_NOW 0
18071# endif
18072# endif
18073# endif
18074# endif
18075#endif
18076
18077#ifdef __cplusplus
18078extern "C" void exit (int);
18079#endif
18080
18081void fnord() { int i=42;}
18082int main ()
18083{
18084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18085 int status = $lt_dlunknown;
18086
18087 if (self)
18088 {
18089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18091 /* dlclose (self); */
18092 }
18093
18094 exit (status);
18095}
18096EOF
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18102 (./conftest; exit; ) 2>/dev/null
18103 lt_status=$?
18104 case x$lt_status in
18105 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18106 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18107 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18108 esac
18109 else :
18110 # compilation failed
18111 lt_cv_dlopen_self=no
18112 fi
18113fi
18114rm -fr conftest*
18115
18116
18117fi
18118echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18119echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18120
18121 if test "x$lt_cv_dlopen_self" = xyes; then
18122 LDFLAGS="$LDFLAGS $link_static_flag"
18123 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18124echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18125if test "${lt_cv_dlopen_self_static+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128 if test "$cross_compiling" = yes; then :
18129 lt_cv_dlopen_self_static=cross
18130else
18131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18132 lt_status=$lt_dlunknown
18133 cat > conftest.$ac_ext <<EOF
18134#line 18134 "configure"
18135#include "confdefs.h"
18136
18137#if HAVE_DLFCN_H
18138#include <dlfcn.h>
18139#endif
18140
18141#include <stdio.h>
18142
18143#ifdef RTLD_GLOBAL
18144# define LT_DLGLOBAL RTLD_GLOBAL
18145#else
18146# ifdef DL_GLOBAL
18147# define LT_DLGLOBAL DL_GLOBAL
18148# else
18149# define LT_DLGLOBAL 0
18150# endif
18151#endif
18152
18153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18154 find out it does not work in some platform. */
18155#ifndef LT_DLLAZY_OR_NOW
18156# ifdef RTLD_LAZY
18157# define LT_DLLAZY_OR_NOW RTLD_LAZY
18158# else
18159# ifdef DL_LAZY
18160# define LT_DLLAZY_OR_NOW DL_LAZY
18161# else
18162# ifdef RTLD_NOW
18163# define LT_DLLAZY_OR_NOW RTLD_NOW
18164# else
18165# ifdef DL_NOW
18166# define LT_DLLAZY_OR_NOW DL_NOW
18167# else
18168# define LT_DLLAZY_OR_NOW 0
18169# endif
18170# endif
18171# endif
18172# endif
18173#endif
18174
18175#ifdef __cplusplus
18176extern "C" void exit (int);
18177#endif
18178
18179void fnord() { int i=42;}
18180int main ()
18181{
18182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18183 int status = $lt_dlunknown;
18184
18185 if (self)
18186 {
18187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18188 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18189 /* dlclose (self); */
18190 }
18191
18192 exit (status);
18193}
18194EOF
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18200 (./conftest; exit; ) 2>/dev/null
18201 lt_status=$?
18202 case x$lt_status in
18203 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18204 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18205 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18206 esac
18207 else :
18208 # compilation failed
18209 lt_cv_dlopen_self_static=no
18210 fi
18211fi
18212rm -fr conftest*
18213
18214
18215fi
18216echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18217echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18218 fi
18219
18220 CPPFLAGS="$save_CPPFLAGS"
18221 LDFLAGS="$save_LDFLAGS"
18222 LIBS="$save_LIBS"
18223 ;;
18224 esac
18225
18226 case $lt_cv_dlopen_self in
18227 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18228 *) enable_dlopen_self=unknown ;;
18229 esac
18230
18231 case $lt_cv_dlopen_self_static in
18232 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18233 *) enable_dlopen_self_static=unknown ;;
18234 esac
18235fi 18271fi
18236 18272
18237 18273
18238# The else clause should only fire when bootstrapping the 18274# The else clause should only fire when bootstrapping the
18239# libtool distribution, otherwise you forgot to ship ltmain.sh 18275# libtool distribution, otherwise you forgot to ship ltmain.sh
18246 setopt NO_GLOB_SUBST 18282 setopt NO_GLOB_SUBST
18247 fi 18283 fi
18248 # Now quote all the things that may contain metacharacters while being 18284 # Now quote all the things that may contain metacharacters while being
18249 # careful not to overquote the AC_SUBSTed values. We take copies of the 18285 # careful not to overquote the AC_SUBSTed values. We take copies of the
18250 # variables and quote the copies for generation of the libtool script. 18286 # variables and quote the copies for generation of the libtool script.
18251 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18287 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18252 SED SHELL STRIP \ 18288 SED SHELL STRIP \
18253 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18289 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18254 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18290 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18255 deplibs_check_method reload_flag reload_cmds need_locks \ 18291 deplibs_check_method reload_flag reload_cmds need_locks \
18256 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18292 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18347fast_install=$enable_fast_install 18383fast_install=$enable_fast_install
18348 18384
18349# The host system. 18385# The host system.
18350host_alias=$host_alias 18386host_alias=$host_alias
18351host=$host 18387host=$host
18388host_os=$host_os
18389
18390# The build system.
18391build_alias=$build_alias
18392build=$build
18393build_os=$build_os
18352 18394
18353# An echo program that does not interpret backslashes. 18395# An echo program that does not interpret backslashes.
18354echo=$lt_echo 18396echo=$lt_echo
18355 18397
18356# The archiver. 18398# The archiver.
18358AR_FLAGS=$lt_AR_FLAGS 18400AR_FLAGS=$lt_AR_FLAGS
18359 18401
18360# A C compiler. 18402# A C compiler.
18361LTCC=$lt_LTCC 18403LTCC=$lt_LTCC
18362 18404
18405# LTCC compiler flags.
18406LTCFLAGS=$lt_LTCFLAGS
18407
18363# A language-specific compiler. 18408# A language-specific compiler.
18364CC=$lt_compiler_GCJ 18409CC=$lt_compiler_GCJ
18365 18410
18366# Is the compiler the GNU C compiler? 18411# Is the compiler the GNU C compiler?
18367with_gcc=$GCC_GCJ 18412with_gcc=$GCC_GCJ
18408 18453
18409# Old archive suffix (normally "a"). 18454# Old archive suffix (normally "a").
18410libext="$libext" 18455libext="$libext"
18411 18456
18412# Shared library suffix (normally ".so"). 18457# Shared library suffix (normally ".so").
18413shrext='$shrext' 18458shrext_cmds='$shrext_cmds'
18414 18459
18415# Executable file suffix (normally ""). 18460# Executable file suffix (normally "").
18416exeext="$exeext" 18461exeext="$exeext"
18417 18462
18418# Additional compiler flags for building library objects. 18463# Additional compiler flags for building library objects.
18423max_cmd_len=$lt_cv_sys_max_cmd_len 18468max_cmd_len=$lt_cv_sys_max_cmd_len
18424 18469
18425# Does compiler simultaneously support -c and -o options? 18470# Does compiler simultaneously support -c and -o options?
18426compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18471compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18427 18472
18428# Must we lock files when doing compilation ? 18473# Must we lock files when doing compilation?
18429need_locks=$lt_need_locks 18474need_locks=$lt_need_locks
18430 18475
18431# Do we need the lib prefix for modules? 18476# Do we need the lib prefix for modules?
18432need_lib_prefix=$need_lib_prefix 18477need_lib_prefix=$need_lib_prefix
18433 18478
18648 ;; 18693 ;;
18649 18694
18650 RC) 18695 RC)
18651 18696
18652 18697
18653
18654# Source file extension for RC test sources. 18698# Source file extension for RC test sources.
18655ac_ext=rc 18699ac_ext=rc
18656 18700
18657# Object file extension for compiled RC test sources. 18701# Object file extension for compiled RC test sources.
18658objext=o 18702objext=o
18667# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18711# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18668 18712
18669# If no C compiler was specified, use CC. 18713# If no C compiler was specified, use CC.
18670LTCC=${LTCC-"$CC"} 18714LTCC=${LTCC-"$CC"}
18671 18715
18716# If no C compiler flags were specified, use CFLAGS.
18717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18718
18672# Allow CC to be a program name with arguments. 18719# Allow CC to be a program name with arguments.
18673compiler=$CC 18720compiler=$CC
18721
18722
18723# save warnings/boilerplate of simple test code
18724ac_outfile=conftest.$ac_objext
18725printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18726eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18727_lt_compiler_boilerplate=`cat conftest.err`
18728$rm conftest*
18729
18730ac_outfile=conftest.$ac_objext
18731printf "$lt_simple_link_test_code" >conftest.$ac_ext
18732eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18733_lt_linker_boilerplate=`cat conftest.err`
18734$rm conftest*
18674 18735
18675 18736
18676# Allow CC to be a program name with arguments. 18737# Allow CC to be a program name with arguments.
18677lt_save_CC="$CC" 18738lt_save_CC="$CC"
18678CC=${RC-"windres"} 18739CC=${RC-"windres"}
18679compiler=$CC 18740compiler=$CC
18680compiler_RC=$CC 18741compiler_RC=$CC
18742for cc_temp in $compiler""; do
18743 case $cc_temp in
18744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18746 \-*) ;;
18747 *) break;;
18748 esac
18749done
18750cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18751
18681lt_cv_prog_compiler_c_o_RC=yes 18752lt_cv_prog_compiler_c_o_RC=yes
18682 18753
18683# The else clause should only fire when bootstrapping the 18754# The else clause should only fire when bootstrapping the
18684# libtool distribution, otherwise you forgot to ship ltmain.sh 18755# libtool distribution, otherwise you forgot to ship ltmain.sh
18685# with your package, and you will get complaints that there are 18756# with your package, and you will get complaints that there are
18691 setopt NO_GLOB_SUBST 18762 setopt NO_GLOB_SUBST
18692 fi 18763 fi
18693 # Now quote all the things that may contain metacharacters while being 18764 # Now quote all the things that may contain metacharacters while being
18694 # careful not to overquote the AC_SUBSTed values. We take copies of the 18765 # careful not to overquote the AC_SUBSTed values. We take copies of the
18695 # variables and quote the copies for generation of the libtool script. 18766 # variables and quote the copies for generation of the libtool script.
18696 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18767 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18697 SED SHELL STRIP \ 18768 SED SHELL STRIP \
18698 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18769 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18699 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18770 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18700 deplibs_check_method reload_flag reload_cmds need_locks \ 18771 deplibs_check_method reload_flag reload_cmds need_locks \
18701 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18772 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18792fast_install=$enable_fast_install 18863fast_install=$enable_fast_install
18793 18864
18794# The host system. 18865# The host system.
18795host_alias=$host_alias 18866host_alias=$host_alias
18796host=$host 18867host=$host
18868host_os=$host_os
18869
18870# The build system.
18871build_alias=$build_alias
18872build=$build
18873build_os=$build_os
18797 18874
18798# An echo program that does not interpret backslashes. 18875# An echo program that does not interpret backslashes.
18799echo=$lt_echo 18876echo=$lt_echo
18800 18877
18801# The archiver. 18878# The archiver.
18803AR_FLAGS=$lt_AR_FLAGS 18880AR_FLAGS=$lt_AR_FLAGS
18804 18881
18805# A C compiler. 18882# A C compiler.
18806LTCC=$lt_LTCC 18883LTCC=$lt_LTCC
18807 18884
18885# LTCC compiler flags.
18886LTCFLAGS=$lt_LTCFLAGS
18887
18808# A language-specific compiler. 18888# A language-specific compiler.
18809CC=$lt_compiler_RC 18889CC=$lt_compiler_RC
18810 18890
18811# Is the compiler the GNU C compiler? 18891# Is the compiler the GNU C compiler?
18812with_gcc=$GCC_RC 18892with_gcc=$GCC_RC
18853 18933
18854# Old archive suffix (normally "a"). 18934# Old archive suffix (normally "a").
18855libext="$libext" 18935libext="$libext"
18856 18936
18857# Shared library suffix (normally ".so"). 18937# Shared library suffix (normally ".so").
18858shrext='$shrext' 18938shrext_cmds='$shrext_cmds'
18859 18939
18860# Executable file suffix (normally ""). 18940# Executable file suffix (normally "").
18861exeext="$exeext" 18941exeext="$exeext"
18862 18942
18863# Additional compiler flags for building library objects. 18943# Additional compiler flags for building library objects.
18868max_cmd_len=$lt_cv_sys_max_cmd_len 18948max_cmd_len=$lt_cv_sys_max_cmd_len
18869 18949
18870# Does compiler simultaneously support -c and -o options? 18950# Does compiler simultaneously support -c and -o options?
18871compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18872 18952
18873# Must we lock files when doing compilation ? 18953# Must we lock files when doing compilation?
18874need_locks=$lt_need_locks 18954need_locks=$lt_need_locks
18875 18955
18876# Do we need the lib prefix for modules? 18956# Do we need the lib prefix for modules?
18877need_lib_prefix=$need_lib_prefix 18957need_lib_prefix=$need_lib_prefix
18878 18958
19210#------------------------------------------------------------------------------- 19290#-------------------------------------------------------------------------------
19211# Check for some library functions 19291# Check for some library functions
19212#------------------------------------------------------------------------------- 19292#-------------------------------------------------------------------------------
19213 19293
19214 19294
19215echo "$as_me:$LINENO: checking for exit in -lc" >&5 19295{ echo "$as_me:$LINENO: checking for exit in -lc" >&5
19216echo $ECHO_N "checking for exit in -lc... $ECHO_C" >&6 19296echo $ECHO_N "checking for exit in -lc... $ECHO_C" >&6; }
19217if test "${ac_cv_lib_c_exit+set}" = set; then 19297if test "${ac_cv_lib_c_exit+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6 19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19219else 19299else
19220 ac_check_lib_save_LIBS=$LIBS 19300 ac_check_lib_save_LIBS=$LIBS
19221LIBS="-lc $LIBS" 19301LIBS="-lc $LIBS"
19224_ACEOF 19304_ACEOF
19225cat confdefs.h >>conftest.$ac_ext 19305cat confdefs.h >>conftest.$ac_ext
19226cat >>conftest.$ac_ext <<_ACEOF 19306cat >>conftest.$ac_ext <<_ACEOF
19227/* end confdefs.h. */ 19307/* end confdefs.h. */
19228 19308
19229/* Override any gcc2 internal prototype to avoid an error. */ 19309/* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19230#ifdef __cplusplus 19312#ifdef __cplusplus
19231extern "C" 19313extern "C"
19232#endif 19314#endif
19233/* We use char because int might match the return type of a gcc2
19234 builtin and then its argument prototype would still apply. */
19235char exit (); 19315char exit ();
19236int 19316int
19237main () 19317main ()
19238{ 19318{
19239exit (); 19319return exit ();
19240 ; 19320 ;
19241 return 0; 19321 return 0;
19242} 19322}
19243_ACEOF 19323_ACEOF
19244rm -f conftest.$ac_objext conftest$ac_exeext 19324rm -f conftest.$ac_objext conftest$ac_exeext
19325if { (ac_try="$ac_link"
19326case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19329esac
19245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval $ac_link) 2>conftest.er1 19331 (eval "$ac_link") 2>conftest.er1
19247 ac_status=$? 19332 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err 19333 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1 19334 rm -f conftest.er1
19250 cat conftest.err >&5 19335 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && 19337 (exit $ac_status); } && {
19253 { ac_try='test -z "$ac_c_werror_flag" 19338 test -z "$ac_c_werror_flag" ||
19254 || test ! -s conftest.err' 19339 test ! -s conftest.err
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19340 } && test -s conftest$ac_exeext &&
19256 (eval $ac_try) 2>&5 19341 $as_test_x conftest$ac_exeext; then
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest$ac_exeext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_lib_c_exit=yes 19342 ac_cv_lib_c_exit=yes
19267else 19343else
19268 echo "$as_me: failed program was:" >&5 19344 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5 19345sed 's/^/| /' conftest.$ac_ext >&5
19270 19346
19271ac_cv_lib_c_exit=no 19347 ac_cv_lib_c_exit=no
19272fi 19348fi
19273rm -f conftest.err conftest.$ac_objext \ 19349
19350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19274 conftest$ac_exeext conftest.$ac_ext 19351 conftest$ac_exeext conftest.$ac_ext
19275LIBS=$ac_check_lib_save_LIBS 19352LIBS=$ac_check_lib_save_LIBS
19276fi 19353fi
19277echo "$as_me:$LINENO: result: $ac_cv_lib_c_exit" >&5 19354{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_exit" >&5
19278echo "${ECHO_T}$ac_cv_lib_c_exit" >&6 19355echo "${ECHO_T}$ac_cv_lib_c_exit" >&6; }
19279if test $ac_cv_lib_c_exit = yes; then 19356if test $ac_cv_lib_c_exit = yes; then
19280 cat >>confdefs.h <<_ACEOF 19357 cat >>confdefs.h <<_ACEOF
19281#define HAVE_LIBC 1 19358#define HAVE_LIBC 1
19282_ACEOF 19359_ACEOF
19283 19360
19284 LIBS="-lc $LIBS" 19361 LIBS="-lc $LIBS"
19285 19362
19286fi 19363fi
19287 19364
19288 19365
19289echo "$as_me:$LINENO: checking for inet_pton in -lnsl" >&5 19366{ echo "$as_me:$LINENO: checking for inet_pton in -lnsl" >&5
19290echo $ECHO_N "checking for inet_pton in -lnsl... $ECHO_C" >&6 19367echo $ECHO_N "checking for inet_pton in -lnsl... $ECHO_C" >&6; }
19291if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then 19368if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6 19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19293else 19370else
19294 ac_check_lib_save_LIBS=$LIBS 19371 ac_check_lib_save_LIBS=$LIBS
19295LIBS="-lnsl $LIBS" 19372LIBS="-lnsl $LIBS"
19298_ACEOF 19375_ACEOF
19299cat confdefs.h >>conftest.$ac_ext 19376cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF 19377cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */ 19378/* end confdefs.h. */
19302 19379
19303/* Override any gcc2 internal prototype to avoid an error. */ 19380/* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19304#ifdef __cplusplus 19383#ifdef __cplusplus
19305extern "C" 19384extern "C"
19306#endif 19385#endif
19307/* We use char because int might match the return type of a gcc2
19308 builtin and then its argument prototype would still apply. */
19309char inet_pton (); 19386char inet_pton ();
19310int 19387int
19311main () 19388main ()
19312{ 19389{
19313inet_pton (); 19390return inet_pton ();
19314 ; 19391 ;
19315 return 0; 19392 return 0;
19316} 19393}
19317_ACEOF 19394_ACEOF
19318rm -f conftest.$ac_objext conftest$ac_exeext 19395rm -f conftest.$ac_objext conftest$ac_exeext
19396if { (ac_try="$ac_link"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval $ac_link) 2>conftest.er1 19402 (eval "$ac_link") 2>conftest.er1
19321 ac_status=$? 19403 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err 19404 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1 19405 rm -f conftest.er1
19324 cat conftest.err >&5 19406 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && 19408 (exit $ac_status); } && {
19327 { ac_try='test -z "$ac_c_werror_flag" 19409 test -z "$ac_c_werror_flag" ||
19328 || test ! -s conftest.err' 19410 test ! -s conftest.err
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19411 } && test -s conftest$ac_exeext &&
19330 (eval $ac_try) 2>&5 19412 $as_test_x conftest$ac_exeext; then
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest$ac_exeext'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340 ac_cv_lib_nsl_inet_pton=yes 19413 ac_cv_lib_nsl_inet_pton=yes
19341else 19414else
19342 echo "$as_me: failed program was:" >&5 19415 echo "$as_me: failed program was:" >&5
19343sed 's/^/| /' conftest.$ac_ext >&5 19416sed 's/^/| /' conftest.$ac_ext >&5
19344 19417
19345ac_cv_lib_nsl_inet_pton=no 19418 ac_cv_lib_nsl_inet_pton=no
19346fi 19419fi
19347rm -f conftest.err conftest.$ac_objext \ 19420
19421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19348 conftest$ac_exeext conftest.$ac_ext 19422 conftest$ac_exeext conftest.$ac_ext
19349LIBS=$ac_check_lib_save_LIBS 19423LIBS=$ac_check_lib_save_LIBS
19350fi 19424fi
19351echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_pton" >&5 19425{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_pton" >&5
19352echo "${ECHO_T}$ac_cv_lib_nsl_inet_pton" >&6 19426echo "${ECHO_T}$ac_cv_lib_nsl_inet_pton" >&6; }
19353if test $ac_cv_lib_nsl_inet_pton = yes; then 19427if test $ac_cv_lib_nsl_inet_pton = yes; then
19354 cat >>confdefs.h <<_ACEOF 19428 cat >>confdefs.h <<_ACEOF
19355#define HAVE_LIBNSL 1 19429#define HAVE_LIBNSL 1
19356_ACEOF 19430_ACEOF
19357 19431
19358 LIBS="-lnsl $LIBS" 19432 LIBS="-lnsl $LIBS"
19359 19433
19360fi 19434fi
19361 19435
19362 19436
19363echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 19437{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19364echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 19438echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19365if test "${ac_cv_lib_socket_socket+set}" = set; then 19439if test "${ac_cv_lib_socket_socket+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6 19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19367else 19441else
19368 ac_check_lib_save_LIBS=$LIBS 19442 ac_check_lib_save_LIBS=$LIBS
19369LIBS="-lsocket $LIBS" 19443LIBS="-lsocket $LIBS"
19372_ACEOF 19446_ACEOF
19373cat confdefs.h >>conftest.$ac_ext 19447cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF 19448cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */ 19449/* end confdefs.h. */
19376 19450
19377/* Override any gcc2 internal prototype to avoid an error. */ 19451/* Override any GCC internal prototype to avoid an error.
19452 Use char because int might match the return type of a GCC
19453 builtin and then its argument prototype would still apply. */
19378#ifdef __cplusplus 19454#ifdef __cplusplus
19379extern "C" 19455extern "C"
19380#endif 19456#endif
19381/* We use char because int might match the return type of a gcc2
19382 builtin and then its argument prototype would still apply. */
19383char socket (); 19457char socket ();
19384int 19458int
19385main () 19459main ()
19386{ 19460{
19387socket (); 19461return socket ();
19388 ; 19462 ;
19389 return 0; 19463 return 0;
19390} 19464}
19391_ACEOF 19465_ACEOF
19392rm -f conftest.$ac_objext conftest$ac_exeext 19466rm -f conftest.$ac_objext conftest$ac_exeext
19467if { (ac_try="$ac_link"
19468case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471esac
19393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval $ac_link) 2>conftest.er1 19473 (eval "$ac_link") 2>conftest.er1
19395 ac_status=$? 19474 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err 19475 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1 19476 rm -f conftest.er1
19398 cat conftest.err >&5 19477 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && 19479 (exit $ac_status); } && {
19401 { ac_try='test -z "$ac_c_werror_flag" 19480 test -z "$ac_c_werror_flag" ||
19402 || test ! -s conftest.err' 19481 test ! -s conftest.err
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19482 } && test -s conftest$ac_exeext &&
19404 (eval $ac_try) 2>&5 19483 $as_test_x conftest$ac_exeext; then
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest$ac_exeext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_lib_socket_socket=yes 19484 ac_cv_lib_socket_socket=yes
19415else 19485else
19416 echo "$as_me: failed program was:" >&5 19486 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5 19487sed 's/^/| /' conftest.$ac_ext >&5
19418 19488
19419ac_cv_lib_socket_socket=no 19489 ac_cv_lib_socket_socket=no
19420fi 19490fi
19421rm -f conftest.err conftest.$ac_objext \ 19491
19492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19422 conftest$ac_exeext conftest.$ac_ext 19493 conftest$ac_exeext conftest.$ac_ext
19423LIBS=$ac_check_lib_save_LIBS 19494LIBS=$ac_check_lib_save_LIBS
19424fi 19495fi
19425echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 19496{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19426echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 19497echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
19427if test $ac_cv_lib_socket_socket = yes; then 19498if test $ac_cv_lib_socket_socket = yes; then
19428 cat >>confdefs.h <<_ACEOF 19499 cat >>confdefs.h <<_ACEOF
19429#define HAVE_LIBSOCKET 1 19500#define HAVE_LIBSOCKET 1
19430_ACEOF 19501_ACEOF
19431 19502
19432 LIBS="-lsocket $LIBS" 19503 LIBS="-lsocket $LIBS"
19433 19504
19434fi 19505fi
19435 19506
19436 19507
19437echo "$as_me:$LINENO: checking for SPF_sanitize in -lspf2" >&5 19508{ echo "$as_me:$LINENO: checking for SPF_sanitize in -lspf2" >&5
19438echo $ECHO_N "checking for SPF_sanitize in -lspf2... $ECHO_C" >&6 19509echo $ECHO_N "checking for SPF_sanitize in -lspf2... $ECHO_C" >&6; }
19439if test "${ac_cv_lib_spf2_SPF_sanitize+set}" = set; then 19510if test "${ac_cv_lib_spf2_SPF_sanitize+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6 19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19441else 19512else
19442 ac_check_lib_save_LIBS=$LIBS 19513 ac_check_lib_save_LIBS=$LIBS
19443LIBS="-lspf2 $LIBS" 19514LIBS="-lspf2 $LIBS"
19446_ACEOF 19517_ACEOF
19447cat confdefs.h >>conftest.$ac_ext 19518cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF 19519cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */ 19520/* end confdefs.h. */
19450 19521
19451/* Override any gcc2 internal prototype to avoid an error. */ 19522/* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19452#ifdef __cplusplus 19525#ifdef __cplusplus
19453extern "C" 19526extern "C"
19454#endif 19527#endif
19455/* We use char because int might match the return type of a gcc2
19456 builtin and then its argument prototype would still apply. */
19457char SPF_sanitize (); 19528char SPF_sanitize ();
19458int 19529int
19459main () 19530main ()
19460{ 19531{
19461SPF_sanitize (); 19532return SPF_sanitize ();
19462 ; 19533 ;
19463 return 0; 19534 return 0;
19464} 19535}
19465_ACEOF 19536_ACEOF
19466rm -f conftest.$ac_objext conftest$ac_exeext 19537rm -f conftest.$ac_objext conftest$ac_exeext
19538if { (ac_try="$ac_link"
19539case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542esac
19467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval $ac_link) 2>conftest.er1 19544 (eval "$ac_link") 2>conftest.er1
19469 ac_status=$? 19545 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err 19546 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1 19547 rm -f conftest.er1
19472 cat conftest.err >&5 19548 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && 19550 (exit $ac_status); } && {
19475 { ac_try='test -z "$ac_c_werror_flag" 19551 test -z "$ac_c_werror_flag" ||
19476 || test ! -s conftest.err' 19552 test ! -s conftest.err
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19553 } && test -s conftest$ac_exeext &&
19478 (eval $ac_try) 2>&5 19554 $as_test_x conftest$ac_exeext; then
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest$ac_exeext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_lib_spf2_SPF_sanitize=yes 19555 ac_cv_lib_spf2_SPF_sanitize=yes
19489else 19556else
19490 echo "$as_me: failed program was:" >&5 19557 echo "$as_me: failed program was:" >&5
19491sed 's/^/| /' conftest.$ac_ext >&5 19558sed 's/^/| /' conftest.$ac_ext >&5
19492 19559
19493ac_cv_lib_spf2_SPF_sanitize=no 19560 ac_cv_lib_spf2_SPF_sanitize=no
19494fi 19561fi
19495rm -f conftest.err conftest.$ac_objext \ 19562
19563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 conftest$ac_exeext conftest.$ac_ext 19564 conftest$ac_exeext conftest.$ac_ext
19497LIBS=$ac_check_lib_save_LIBS 19565LIBS=$ac_check_lib_save_LIBS
19498fi 19566fi
19499echo "$as_me:$LINENO: result: $ac_cv_lib_spf2_SPF_sanitize" >&5 19567{ echo "$as_me:$LINENO: result: $ac_cv_lib_spf2_SPF_sanitize" >&5
19500echo "${ECHO_T}$ac_cv_lib_spf2_SPF_sanitize" >&6 19568echo "${ECHO_T}$ac_cv_lib_spf2_SPF_sanitize" >&6; }
19501if test $ac_cv_lib_spf2_SPF_sanitize = yes; then 19569if test $ac_cv_lib_spf2_SPF_sanitize = yes; then
19502 LIBSPF2_POOPOO="true" 19570 LIBSPF2_POOPOO="true"
19503fi 19571fi
19504 19572
19505if test "$LIBSPF2_POOPOO" ; then 19573if test "$LIBSPF2_POOPOO" ; then
19515#------------------------------------------------------------------------------- 19583#-------------------------------------------------------------------------------
19516# Check up on GCC 19584# Check up on GCC
19517#------------------------------------------------------------------------------- 19585#-------------------------------------------------------------------------------
19518 19586
19519# We don't want gcc 2.7 19587# We don't want gcc 2.7
19520echo "$as_me:$LINENO: checking for a supported version of gcc" >&5 19588{ echo "$as_me:$LINENO: checking for a supported version of gcc" >&5
19521echo $ECHO_N "checking for a supported version of gcc... $ECHO_C" >&6 19589echo $ECHO_N "checking for a supported version of gcc... $ECHO_C" >&6; }
19522 19590
19523gcc_version=`${CC} --version | head -n 1` 19591gcc_version=`${CC} --version | head -n 1`
19524gcc_special_cflags="" 19592gcc_special_cflags=""
19525case "${gcc_version}" in 19593case "${gcc_version}" in
19526 2.7.*) 19594 2.7.*)
19527 echo "$as_me:$LINENO: result: no (${gcc_version})" >&5 19595 { echo "$as_me:$LINENO: result: no (${gcc_version})" >&5
19528echo "${ECHO_T}no (${gcc_version})" >&6 19596echo "${ECHO_T}no (${gcc_version})" >&6; }
19529 { { echo "$as_me:$LINENO: error: please use a recent (>= gcc-2.95) version of gcc" >&5 19597 { { echo "$as_me:$LINENO: error: please use a recent (>= gcc-2.95) version of gcc" >&5
19530echo "$as_me: error: please use a recent (>= gcc-2.95) version of gcc" >&2;} 19598echo "$as_me: error: please use a recent (>= gcc-2.95) version of gcc" >&2;}
19531 { (exit 1); exit 1; }; } 19599 { (exit 1); exit 1; }; }
19532 ;; 19600 ;;
19533 2.95.*) 19601 2.95.*)
19534 echo "$as_me:$LINENO: result: yes (${gcc_version}) using %d instead of %zu" >&5 19602 { echo "$as_me:$LINENO: result: yes (${gcc_version}) using %d instead of %zu" >&5
19535echo "${ECHO_T}yes (${gcc_version}) using %d instead of %zu" >&6 19603echo "${ECHO_T}yes (${gcc_version}) using %d instead of %zu" >&6; }
19536 UNSIGNED_INT_ARG="%d" 19604 UNSIGNED_INT_ARG="%d"
19537 19605
19538 gcc_special_cflags="-mcpu=pentium -malign-loops=5 -malign-jumps=5 -malign-functions=5" 19606 gcc_special_cflags="-mcpu=pentium -malign-loops=5 -malign-jumps=5 -malign-functions=5"
19539 ;; 19607 ;;
19540 3.*) 19608 3.*)
19541 echo "$as_me:$LINENO: result: yes (${gcc_version}) using -falign instead of -malign" >&5 19609 { echo "$as_me:$LINENO: result: yes (${gcc_version}) using -falign instead of -malign" >&5
19542echo "${ECHO_T}yes (${gcc_version}) using -falign instead of -malign" >&6 19610echo "${ECHO_T}yes (${gcc_version}) using -falign instead of -malign" >&6; }
19543 UNSIGNED_INT_ARG="%zu" 19611 UNSIGNED_INT_ARG="%zu"
19544 19612
19545 gcc_special_cflags="-mcpu=pentium -falign-loops=5 -falign-jumps=5 -falign-functions=5" 19613 gcc_special_cflags="-mcpu=pentium -falign-loops=5 -falign-jumps=5 -falign-functions=5"
19546 ;; 19614 ;;
19547 4.*) 19615 4.*)
19548 echo "$as_me:$LINENO: result: yes (${gcc_version}) using -falign instead of -malign" >&5 19616 { echo "$as_me:$LINENO: result: yes (${gcc_version}) using -falign instead of -malign" >&5
19549echo "${ECHO_T}yes (${gcc_version}) using -falign instead of -malign" >&6 19617echo "${ECHO_T}yes (${gcc_version}) using -falign instead of -malign" >&6; }
19550 UNSIGNED_INT_ARG="%zu" 19618 UNSIGNED_INT_ARG="%zu"
19551 19619
19552 gcc_special_cflags="-mcpu=pentium -falign-loops=5 -falign-jumps=5 -falign-functions=5" 19620 gcc_special_cflags="-mcpu=pentium -falign-loops=5 -falign-jumps=5 -falign-functions=5"
19553 ;; 19621 ;;
19554 *) 19622 *)
19555 echo "$as_me:$LINENO: result: ok (${gcc_version})" >&5 19623 { echo "$as_me:$LINENO: result: ok (${gcc_version})" >&5
19556echo "${ECHO_T}ok (${gcc_version})" >&6 19624echo "${ECHO_T}ok (${gcc_version})" >&6; }
19557 UNSIGNED_INT_ARG="%zu" 19625 UNSIGNED_INT_ARG="%zu"
19558 19626
19559 ;; 19627 ;;
19560esac 19628esac
19561 19629
19610 19678
19611#------------------------------------------------------------------------------- 19679#-------------------------------------------------------------------------------
19612# Checks for header files. 19680# Checks for header files.
19613#------------------------------------------------------------------------------- 19681#-------------------------------------------------------------------------------
19614 19682
19615echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19683{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19616echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19684echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19617if test "${ac_cv_header_stdc+set}" = set; then 19685if test "${ac_cv_header_stdc+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6 19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19619else 19687else
19620 cat >conftest.$ac_ext <<_ACEOF 19688 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */ 19689/* confdefs.h. */
19635 ; 19703 ;
19636 return 0; 19704 return 0;
19637} 19705}
19638_ACEOF 19706_ACEOF
19639rm -f conftest.$ac_objext 19707rm -f conftest.$ac_objext
19708if { (ac_try="$ac_compile"
19709case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval $ac_compile) 2>conftest.er1 19714 (eval "$ac_compile") 2>conftest.er1
19642 ac_status=$? 19715 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err 19716 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1 19717 rm -f conftest.er1
19645 cat conftest.err >&5 19718 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && 19720 (exit $ac_status); } && {
19648 { ac_try='test -z "$ac_c_werror_flag" 19721 test -z "$ac_c_werror_flag" ||
19649 || test ! -s conftest.err' 19722 test ! -s conftest.err
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19723 } && test -s conftest.$ac_objext; then
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_header_stdc=yes 19724 ac_cv_header_stdc=yes
19662else 19725else
19663 echo "$as_me: failed program was:" >&5 19726 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5 19727sed 's/^/| /' conftest.$ac_ext >&5
19665 19728
19666ac_cv_header_stdc=no 19729 ac_cv_header_stdc=no
19667fi 19730fi
19731
19668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669 19733
19670if test $ac_cv_header_stdc = yes; then 19734if test $ac_cv_header_stdc = yes; then
19671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19672 cat >conftest.$ac_ext <<_ACEOF 19736 cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */ 19737/* confdefs.h. */
19719_ACEOF 19783_ACEOF
19720cat confdefs.h >>conftest.$ac_ext 19784cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF 19785cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */ 19786/* end confdefs.h. */
19723#include <ctype.h> 19787#include <ctype.h>
19788#include <stdlib.h>
19724#if ((' ' & 0x0FF) == 0x020) 19789#if ((' ' & 0x0FF) == 0x020)
19725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19790# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19791# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19727#else 19792#else
19728# define ISLOWER(c) \ 19793# define ISLOWER(c) \
19738{ 19803{
19739 int i; 19804 int i;
19740 for (i = 0; i < 256; i++) 19805 for (i = 0; i < 256; i++)
19741 if (XOR (islower (i), ISLOWER (i)) 19806 if (XOR (islower (i), ISLOWER (i))
19742 || toupper (i) != TOUPPER (i)) 19807 || toupper (i) != TOUPPER (i))
19743 exit(2); 19808 return 2;
19744 exit (0); 19809 return 0;
19745} 19810}
19746_ACEOF 19811_ACEOF
19747rm -f conftest$ac_exeext 19812rm -f conftest$ac_exeext
19813if { (ac_try="$ac_link"
19814case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817esac
19748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval $ac_link) 2>&5 19819 (eval "$ac_link") 2>&5
19750 ac_status=$? 19820 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval $ac_try) 2>&5 19828 (eval "$ac_try") 2>&5
19755 ac_status=$? 19829 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then 19831 (exit $ac_status); }; }; then
19758 : 19832 :
19759else 19833else
19762sed 's/^/| /' conftest.$ac_ext >&5 19836sed 's/^/| /' conftest.$ac_ext >&5
19763 19837
19764( exit $ac_status ) 19838( exit $ac_status )
19765ac_cv_header_stdc=no 19839ac_cv_header_stdc=no
19766fi 19840fi
19767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19768fi 19842fi
19843
19844
19769fi 19845fi
19770fi 19846fi
19771echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19847{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19772echo "${ECHO_T}$ac_cv_header_stdc" >&6 19848echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19773if test $ac_cv_header_stdc = yes; then 19849if test $ac_cv_header_stdc = yes; then
19774 19850
19775cat >>confdefs.h <<\_ACEOF 19851cat >>confdefs.h <<\_ACEOF
19776#define STDC_HEADERS 1 19852#define STDC_HEADERS 1
19777_ACEOF 19853_ACEOF
19790 19866
19791for ac_header in arpa/inet.h, netdb.h, netinet/in.h, stdlib.h, \ 19867for ac_header in arpa/inet.h, netdb.h, netinet/in.h, stdlib.h, \
19792 string.h, strings.h, sys/socket.h unistd.h, error.h, inttypes.h 19868 string.h, strings.h, sys/socket.h unistd.h, error.h, inttypes.h
19793do 19869do
19794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19795if eval "test \"\${$as_ac_Header+set}\" = set"; then 19871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19796 echo "$as_me:$LINENO: checking for $ac_header" >&5 19872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19798if eval "test \"\${$as_ac_Header+set}\" = set"; then 19874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6 19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19800fi 19876fi
19801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19877ac_res=`eval echo '${'$as_ac_Header'}'`
19802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19878 { echo "$as_me:$LINENO: result: $ac_res" >&5
19879echo "${ECHO_T}$ac_res" >&6; }
19803else 19880else
19804 # Is the header compilable? 19881 # Is the header compilable?
19805echo "$as_me:$LINENO: checking $ac_header usability" >&5 19882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19807cat >conftest.$ac_ext <<_ACEOF 19884cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h. */ 19885/* confdefs.h. */
19809_ACEOF 19886_ACEOF
19810cat confdefs.h >>conftest.$ac_ext 19887cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF 19888cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h. */ 19889/* end confdefs.h. */
19813$ac_includes_default 19890$ac_includes_default
19814#include <$ac_header> 19891#include <$ac_header>
19815_ACEOF 19892_ACEOF
19816rm -f conftest.$ac_objext 19893rm -f conftest.$ac_objext
19894if { (ac_try="$ac_compile"
19895case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval $ac_compile) 2>conftest.er1 19900 (eval "$ac_compile") 2>conftest.er1
19819 ac_status=$? 19901 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err 19902 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1 19903 rm -f conftest.er1
19822 cat conftest.err >&5 19904 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && 19906 (exit $ac_status); } && {
19825 { ac_try='test -z "$ac_c_werror_flag" 19907 test -z "$ac_c_werror_flag" ||
19826 || test ! -s conftest.err' 19908 test ! -s conftest.err
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19909 } && test -s conftest.$ac_objext; then
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 ac_header_compiler=yes 19910 ac_header_compiler=yes
19839else 19911else
19840 echo "$as_me: failed program was:" >&5 19912 echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5 19913sed 's/^/| /' conftest.$ac_ext >&5
19842 19914
19843ac_header_compiler=no 19915 ac_header_compiler=no
19844fi 19916fi
19917
19845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19919{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19847echo "${ECHO_T}$ac_header_compiler" >&6 19920echo "${ECHO_T}$ac_header_compiler" >&6; }
19848 19921
19849# Is the header present? 19922# Is the header present?
19850echo "$as_me:$LINENO: checking $ac_header presence" >&5 19923{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19852cat >conftest.$ac_ext <<_ACEOF 19925cat >conftest.$ac_ext <<_ACEOF
19853/* confdefs.h. */ 19926/* confdefs.h. */
19854_ACEOF 19927_ACEOF
19855cat confdefs.h >>conftest.$ac_ext 19928cat confdefs.h >>conftest.$ac_ext
19856cat >>conftest.$ac_ext <<_ACEOF 19929cat >>conftest.$ac_ext <<_ACEOF
19857/* end confdefs.h. */ 19930/* end confdefs.h. */
19858#include <$ac_header> 19931#include <$ac_header>
19859_ACEOF 19932_ACEOF
19860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19933if { (ac_try="$ac_cpp conftest.$ac_ext"
19934case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19862 ac_status=$? 19940 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err 19941 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1 19942 rm -f conftest.er1
19865 cat conftest.err >&5 19943 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } >/dev/null; then 19945 (exit $ac_status); } >/dev/null && {
19946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19868 if test -s conftest.err; then 19947 test ! -s conftest.err
19869 ac_cpp_err=$ac_c_preproc_warn_flag 19948 }; then
19870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19871 else
19872 ac_cpp_err=
19873 fi
19874else
19875 ac_cpp_err=yes
19876fi
19877if test -z "$ac_cpp_err"; then
19878 ac_header_preproc=yes 19949 ac_header_preproc=yes
19879else 19950else
19880 echo "$as_me: failed program was:" >&5 19951 echo "$as_me: failed program was:" >&5
19881sed 's/^/| /' conftest.$ac_ext >&5 19952sed 's/^/| /' conftest.$ac_ext >&5
19882 19953
19883 ac_header_preproc=no 19954 ac_header_preproc=no
19884fi 19955fi
19956
19885rm -f conftest.err conftest.$ac_ext 19957rm -f conftest.err conftest.$ac_ext
19886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19887echo "${ECHO_T}$ac_header_preproc" >&6 19959echo "${ECHO_T}$ac_header_preproc" >&6; }
19888 19960
19889# So? What about this header? 19961# So? What about this header?
19890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19891 yes:no: ) 19963 yes:no: )
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19911 (
19912 cat <<\_ASBOX 19983 ( cat <<\_ASBOX
19913## ------------------------------------ ## 19984## ------------------------------------ ##
19914## Report this to jcouzens@codeshare.ca ## 19985## Report this to jcouzens@codeshare.ca ##
19915## ------------------------------------ ## 19986## ------------------------------------ ##
19916_ASBOX 19987_ASBOX
19917 ) |
19918 sed "s/^/$as_me: WARNING: /" >&2 19988 ) | sed "s/^/$as_me: WARNING: /" >&2
19919 ;; 19989 ;;
19920esac 19990esac
19921echo "$as_me:$LINENO: checking for $ac_header" >&5 19991{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19923if eval "test \"\${$as_ac_Header+set}\" = set"; then 19993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6 19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19925else 19995else
19926 eval "$as_ac_Header=\$ac_header_preproc" 19996 eval "$as_ac_Header=\$ac_header_preproc"
19927fi 19997fi
19928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19998ac_res=`eval echo '${'$as_ac_Header'}'`
19929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19999 { echo "$as_me:$LINENO: result: $ac_res" >&5
20000echo "${ECHO_T}$ac_res" >&6; }
19930 20001
19931fi 20002fi
19932if test `eval echo '${'$as_ac_Header'}'` = yes; then 20003if test `eval echo '${'$as_ac_Header'}'` = yes; then
19933 cat >>confdefs.h <<_ACEOF 20004 cat >>confdefs.h <<_ACEOF
19934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19942 20013
19943#------------------------------------------------------------------------------- 20014#-------------------------------------------------------------------------------
19944# Required Types, structures and other compiler requirements 20015# Required Types, structures and other compiler requirements
19945#------------------------------------------------------------------------------- 20016#-------------------------------------------------------------------------------
19946 20017
19947echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20018{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19948echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20019echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19949if test "${ac_cv_c_const+set}" = set; then 20020if test "${ac_cv_c_const+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6 20021 echo $ECHO_N "(cached) $ECHO_C" >&6
19951else 20022else
19952 cat >conftest.$ac_ext <<_ACEOF 20023 cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */ 20024/* confdefs.h. */
19961{ 20032{
19962/* FIXME: Include the comments suggested by Paul. */ 20033/* FIXME: Include the comments suggested by Paul. */
19963#ifndef __cplusplus 20034#ifndef __cplusplus
19964 /* Ultrix mips cc rejects this. */ 20035 /* Ultrix mips cc rejects this. */
19965 typedef int charset[2]; 20036 typedef int charset[2];
19966 const charset x; 20037 const charset cs;
19967 /* SunOS 4.1.1 cc rejects this. */ 20038 /* SunOS 4.1.1 cc rejects this. */
19968 char const *const *ccp; 20039 char const *const *pcpcc;
19969 char **p; 20040 char **ppc;
19970 /* NEC SVR4.0.2 mips cc rejects this. */ 20041 /* NEC SVR4.0.2 mips cc rejects this. */
19971 struct point {int x, y;}; 20042 struct point {int x, y;};
19972 static struct point const zero = {0,0}; 20043 static struct point const zero = {0,0};
19973 /* AIX XL C 1.02.0.0 rejects this. 20044 /* AIX XL C 1.02.0.0 rejects this.
19974 It does not let you subtract one const X* pointer from another in 20045 It does not let you subtract one const X* pointer from another in
19975 an arm of an if-expression whose if-part is not a constant 20046 an arm of an if-expression whose if-part is not a constant
19976 expression */ 20047 expression */
19977 const char *g = "string"; 20048 const char *g = "string";
19978 ccp = &g + (g ? g-g : 0); 20049 pcpcc = &g + (g ? g-g : 0);
19979 /* HPUX 7.0 cc rejects these. */ 20050 /* HPUX 7.0 cc rejects these. */
19980 ++ccp; 20051 ++pcpcc;
19981 p = (char**) ccp; 20052 ppc = (char**) pcpcc;
19982 ccp = (char const *const *) p; 20053 pcpcc = (char const *const *) ppc;
19983 { /* SCO 3.2v4 cc rejects this. */ 20054 { /* SCO 3.2v4 cc rejects this. */
19984 char *t; 20055 char *t;
19985 char const *s = 0 ? (char *) 0 : (char const *) 0; 20056 char const *s = 0 ? (char *) 0 : (char const *) 0;
19986 20057
19987 *t++ = 0; 20058 *t++ = 0;
20059 if (s) return 0;
19988 } 20060 }
19989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19990 int x[] = {25, 17}; 20062 int x[] = {25, 17};
19991 const int *foo = &x[0]; 20063 const int *foo = &x[0];
19992 ++foo; 20064 ++foo;
20001 struct s { int j; const int *ap[3]; }; 20073 struct s { int j; const int *ap[3]; };
20002 struct s *b; b->j = 5; 20074 struct s *b; b->j = 5;
20003 } 20075 }
20004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20005 const int foo = 10; 20077 const int foo = 10;
20078 if (!foo) return 0;
20006 } 20079 }
20080 return !cs[0] && !zero.x;
20007#endif 20081#endif
20008 20082
20009 ; 20083 ;
20010 return 0; 20084 return 0;
20011} 20085}
20012_ACEOF 20086_ACEOF
20013rm -f conftest.$ac_objext 20087rm -f conftest.$ac_objext
20088if { (ac_try="$ac_compile"
20089case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092esac
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval $ac_compile) 2>conftest.er1 20094 (eval "$ac_compile") 2>conftest.er1
20016 ac_status=$? 20095 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err 20096 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1 20097 rm -f conftest.er1
20019 cat conftest.err >&5 20098 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && 20100 (exit $ac_status); } && {
20022 { ac_try='test -z "$ac_c_werror_flag" 20101 test -z "$ac_c_werror_flag" ||
20023 || test ! -s conftest.err' 20102 test ! -s conftest.err
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20103 } && test -s conftest.$ac_objext; then
20025 (eval $ac_try) 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest.$ac_objext'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_cv_c_const=yes 20104 ac_cv_c_const=yes
20036else 20105else
20037 echo "$as_me: failed program was:" >&5 20106 echo "$as_me: failed program was:" >&5
20038sed 's/^/| /' conftest.$ac_ext >&5 20107sed 's/^/| /' conftest.$ac_ext >&5
20039 20108
20040ac_cv_c_const=no 20109 ac_cv_c_const=no
20041fi 20110fi
20111
20042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043fi 20113fi
20044echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20114{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20045echo "${ECHO_T}$ac_cv_c_const" >&6 20115echo "${ECHO_T}$ac_cv_c_const" >&6; }
20046if test $ac_cv_c_const = no; then 20116if test $ac_cv_c_const = no; then
20047 20117
20048cat >>confdefs.h <<\_ACEOF 20118cat >>confdefs.h <<\_ACEOF
20049#define const 20119#define const
20050_ACEOF 20120_ACEOF
20051 20121
20052fi 20122fi
20053 20123
20054echo "$as_me:$LINENO: checking for inline" >&5 20124{ echo "$as_me:$LINENO: checking for inline" >&5
20055echo $ECHO_N "checking for inline... $ECHO_C" >&6 20125echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20056if test "${ac_cv_c_inline+set}" = set; then 20126if test "${ac_cv_c_inline+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6 20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20058else 20128else
20059 ac_cv_c_inline=no 20129 ac_cv_c_inline=no
20060for ac_kw in inline __inline__ __inline; do 20130for ac_kw in inline __inline__ __inline; do
20070$ac_kw foo_t foo () {return 0; } 20140$ac_kw foo_t foo () {return 0; }
20071#endif 20141#endif
20072 20142
20073_ACEOF 20143_ACEOF
20074rm -f conftest.$ac_objext 20144rm -f conftest.$ac_objext
20145if { (ac_try="$ac_compile"
20146case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval $ac_compile) 2>conftest.er1 20151 (eval "$ac_compile") 2>conftest.er1
20077 ac_status=$? 20152 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err 20153 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1 20154 rm -f conftest.er1
20080 cat conftest.err >&5 20155 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } && 20157 (exit $ac_status); } && {
20083 { ac_try='test -z "$ac_c_werror_flag" 20158 test -z "$ac_c_werror_flag" ||
20084 || test ! -s conftest.err' 20159 test ! -s conftest.err
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20160 } && test -s conftest.$ac_objext; then
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest.$ac_objext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_cv_c_inline=$ac_kw; break 20161 ac_cv_c_inline=$ac_kw
20097else 20162else
20098 echo "$as_me: failed program was:" >&5 20163 echo "$as_me: failed program was:" >&5
20099sed 's/^/| /' conftest.$ac_ext >&5 20164sed 's/^/| /' conftest.$ac_ext >&5
20100 20165
20166
20101fi 20167fi
20168
20102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170 test "$ac_cv_c_inline" != no && break
20103done 20171done
20104 20172
20105fi 20173fi
20106echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 20174{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20107echo "${ECHO_T}$ac_cv_c_inline" >&6 20175echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20108 20176
20109 20177
20110case $ac_cv_c_inline in 20178case $ac_cv_c_inline in
20111 inline | yes) ;; 20179 inline | yes) ;;
20112 *) 20180 *)
20120#endif 20188#endif
20121_ACEOF 20189_ACEOF
20122 ;; 20190 ;;
20123esac 20191esac
20124 20192
20125echo "$as_me:$LINENO: checking for size_t" >&5 20193{ echo "$as_me:$LINENO: checking for size_t" >&5
20126echo $ECHO_N "checking for size_t... $ECHO_C" >&6 20194echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20127if test "${ac_cv_type_size_t+set}" = set; then 20195if test "${ac_cv_type_size_t+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6 20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20129else 20197else
20130 cat >conftest.$ac_ext <<_ACEOF 20198 cat >conftest.$ac_ext <<_ACEOF
20131/* confdefs.h. */ 20199/* confdefs.h. */
20132_ACEOF 20200_ACEOF
20133cat confdefs.h >>conftest.$ac_ext 20201cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF 20202cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h. */ 20203/* end confdefs.h. */
20136$ac_includes_default 20204$ac_includes_default
20205typedef size_t ac__type_new_;
20137int 20206int
20138main () 20207main ()
20139{ 20208{
20140if ((size_t *) 0) 20209if ((ac__type_new_ *) 0)
20141 return 0; 20210 return 0;
20142if (sizeof (size_t)) 20211if (sizeof (ac__type_new_))
20143 return 0; 20212 return 0;
20144 ; 20213 ;
20145 return 0; 20214 return 0;
20146} 20215}
20147_ACEOF 20216_ACEOF
20148rm -f conftest.$ac_objext 20217rm -f conftest.$ac_objext
20218if { (ac_try="$ac_compile"
20219case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222esac
20149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval $ac_compile) 2>conftest.er1 20224 (eval "$ac_compile") 2>conftest.er1
20151 ac_status=$? 20225 ac_status=$?
20152 grep -v '^ *+' conftest.er1 >conftest.err 20226 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1 20227 rm -f conftest.er1
20154 cat conftest.err >&5 20228 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && 20230 (exit $ac_status); } && {
20157 { ac_try='test -z "$ac_c_werror_flag" 20231 test -z "$ac_c_werror_flag" ||
20158 || test ! -s conftest.err' 20232 test ! -s conftest.err
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20233 } && test -s conftest.$ac_objext; then
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest.$ac_objext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_type_size_t=yes 20234 ac_cv_type_size_t=yes
20171else 20235else
20172 echo "$as_me: failed program was:" >&5 20236 echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5 20237sed 's/^/| /' conftest.$ac_ext >&5
20174 20238
20175ac_cv_type_size_t=no 20239 ac_cv_type_size_t=no
20176fi 20240fi
20241
20177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20178fi 20243fi
20179echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20244{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20180echo "${ECHO_T}$ac_cv_type_size_t" >&6 20245echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20181if test $ac_cv_type_size_t = yes; then 20246if test $ac_cv_type_size_t = yes; then
20182 : 20247 :
20183else 20248else
20184 20249
20185cat >>confdefs.h <<_ACEOF 20250cat >>confdefs.h <<_ACEOF
20186#define size_t unsigned 20251#define size_t unsigned int
20187_ACEOF 20252_ACEOF
20188 20253
20189fi 20254fi
20190 20255
20191echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20256{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20192echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 20257echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20193if test "${ac_cv_struct_tm+set}" = set; then 20258if test "${ac_cv_struct_tm+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6 20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20195else 20260else
20196 cat >conftest.$ac_ext <<_ACEOF 20261 cat >conftest.$ac_ext <<_ACEOF
20197/* confdefs.h. */ 20262/* confdefs.h. */
20203#include <time.h> 20268#include <time.h>
20204 20269
20205int 20270int
20206main () 20271main ()
20207{ 20272{
20208struct tm *tp; tp->tm_sec; 20273struct tm tm;
20274 int *p = &tm.tm_sec;
20275 return !p;
20209 ; 20276 ;
20210 return 0; 20277 return 0;
20211} 20278}
20212_ACEOF 20279_ACEOF
20213rm -f conftest.$ac_objext 20280rm -f conftest.$ac_objext
20281if { (ac_try="$ac_compile"
20282case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285esac
20214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval $ac_compile) 2>conftest.er1 20287 (eval "$ac_compile") 2>conftest.er1
20216 ac_status=$? 20288 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err 20289 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1 20290 rm -f conftest.er1
20219 cat conftest.err >&5 20291 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } && 20293 (exit $ac_status); } && {
20222 { ac_try='test -z "$ac_c_werror_flag" 20294 test -z "$ac_c_werror_flag" ||
20223 || test ! -s conftest.err' 20295 test ! -s conftest.err
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20296 } && test -s conftest.$ac_objext; then
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_struct_tm=time.h 20297 ac_cv_struct_tm=time.h
20236else 20298else
20237 echo "$as_me: failed program was:" >&5 20299 echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5 20300sed 's/^/| /' conftest.$ac_ext >&5
20239 20301
20240ac_cv_struct_tm=sys/time.h 20302 ac_cv_struct_tm=sys/time.h
20241fi 20303fi
20304
20242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243fi 20306fi
20244echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20307{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20245echo "${ECHO_T}$ac_cv_struct_tm" >&6 20308echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20246if test $ac_cv_struct_tm = sys/time.h; then 20309if test $ac_cv_struct_tm = sys/time.h; then
20247 20310
20248cat >>confdefs.h <<\_ACEOF 20311cat >>confdefs.h <<\_ACEOF
20249#define TM_IN_SYS_TIME 1 20312#define TM_IN_SYS_TIME 1
20250_ACEOF 20313_ACEOF
20251 20314
20252fi 20315fi
20253 20316
20254 20317
20255echo "$as_me:$LINENO: checking whether char is unsigned" >&5 20318{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20256echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 20319echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20257if test "${ac_cv_c_char_unsigned+set}" = set; then 20320if test "${ac_cv_c_char_unsigned+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6 20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20259else 20322else
20260 cat >conftest.$ac_ext <<_ACEOF 20323 cat >conftest.$ac_ext <<_ACEOF
20261/* confdefs.h. */ 20324/* confdefs.h. */
20273 ; 20336 ;
20274 return 0; 20337 return 0;
20275} 20338}
20276_ACEOF 20339_ACEOF
20277rm -f conftest.$ac_objext 20340rm -f conftest.$ac_objext
20341if { (ac_try="$ac_compile"
20342case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20345esac
20278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval $ac_compile) 2>conftest.er1 20347 (eval "$ac_compile") 2>conftest.er1
20280 ac_status=$? 20348 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err 20349 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1 20350 rm -f conftest.er1
20283 cat conftest.err >&5 20351 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && 20353 (exit $ac_status); } && {
20286 { ac_try='test -z "$ac_c_werror_flag" 20354 test -z "$ac_c_werror_flag" ||
20287 || test ! -s conftest.err' 20355 test ! -s conftest.err
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20356 } && test -s conftest.$ac_objext; then
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_c_char_unsigned=no 20357 ac_cv_c_char_unsigned=no
20300else 20358else
20301 echo "$as_me: failed program was:" >&5 20359 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5 20360sed 's/^/| /' conftest.$ac_ext >&5
20303 20361
20304ac_cv_c_char_unsigned=yes 20362 ac_cv_c_char_unsigned=yes
20305fi 20363fi
20364
20306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20307fi 20366fi
20308echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 20367{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20309echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 20368echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20310if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 20369if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20311 cat >>confdefs.h <<\_ACEOF 20370 cat >>confdefs.h <<\_ACEOF
20312#define __CHAR_UNSIGNED__ 1 20371#define __CHAR_UNSIGNED__ 1
20313_ACEOF 20372_ACEOF
20314 20373
20315fi 20374fi
20316 20375
20317echo "$as_me:$LINENO: checking for u_char" >&5 20376{ echo "$as_me:$LINENO: checking for u_char" >&5
20318echo $ECHO_N "checking for u_char... $ECHO_C" >&6 20377echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
20319if test "${ac_cv_type_u_char+set}" = set; then 20378if test "${ac_cv_type_u_char+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6 20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20321else 20380else
20322 cat >conftest.$ac_ext <<_ACEOF 20381 cat >conftest.$ac_ext <<_ACEOF
20323/* confdefs.h. */ 20382/* confdefs.h. */
20324_ACEOF 20383_ACEOF
20325cat confdefs.h >>conftest.$ac_ext 20384cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF 20385cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h. */ 20386/* end confdefs.h. */
20328$ac_includes_default 20387$ac_includes_default
20388typedef u_char ac__type_new_;
20329int 20389int
20330main () 20390main ()
20331{ 20391{
20332if ((u_char *) 0) 20392if ((ac__type_new_ *) 0)
20333 return 0; 20393 return 0;
20334if (sizeof (u_char)) 20394if (sizeof (ac__type_new_))
20335 return 0; 20395 return 0;
20336 ; 20396 ;
20337 return 0; 20397 return 0;
20338} 20398}
20339_ACEOF 20399_ACEOF
20340rm -f conftest.$ac_objext 20400rm -f conftest.$ac_objext
20401if { (ac_try="$ac_compile"
20402case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405esac
20341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval $ac_compile) 2>conftest.er1 20407 (eval "$ac_compile") 2>conftest.er1
20343 ac_status=$? 20408 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err 20409 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1 20410 rm -f conftest.er1
20346 cat conftest.err >&5 20411 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } && 20413 (exit $ac_status); } && {
20349 { ac_try='test -z "$ac_c_werror_flag" 20414 test -z "$ac_c_werror_flag" ||
20350 || test ! -s conftest.err' 20415 test ! -s conftest.err
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20416 } && test -s conftest.$ac_objext; then
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_type_u_char=yes 20417 ac_cv_type_u_char=yes
20363else 20418else
20364 echo "$as_me: failed program was:" >&5 20419 echo "$as_me: failed program was:" >&5
20365sed 's/^/| /' conftest.$ac_ext >&5 20420sed 's/^/| /' conftest.$ac_ext >&5
20366 20421
20367ac_cv_type_u_char=no 20422 ac_cv_type_u_char=no
20368fi 20423fi
20424
20369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370fi 20426fi
20371echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5 20427{ echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
20372echo "${ECHO_T}$ac_cv_type_u_char" >&6 20428echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
20373if test $ac_cv_type_u_char = yes; then 20429if test $ac_cv_type_u_char = yes; then
20374 20430
20375cat >>confdefs.h <<_ACEOF 20431cat >>confdefs.h <<_ACEOF
20376#define HAVE_U_CHAR 1 20432#define HAVE_U_CHAR 1
20377_ACEOF 20433_ACEOF
20378 20434
20379 20435
20380fi 20436fi
20381echo "$as_me:$LINENO: checking for time_t" >&5 20437{ echo "$as_me:$LINENO: checking for time_t" >&5
20382echo $ECHO_N "checking for time_t... $ECHO_C" >&6 20438echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
20383if test "${ac_cv_type_time_t+set}" = set; then 20439if test "${ac_cv_type_time_t+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6 20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20385else 20441else
20386 cat >conftest.$ac_ext <<_ACEOF 20442 cat >conftest.$ac_ext <<_ACEOF
20387/* confdefs.h. */ 20443/* confdefs.h. */
20388_ACEOF 20444_ACEOF
20389cat confdefs.h >>conftest.$ac_ext 20445cat confdefs.h >>conftest.$ac_ext
20390cat >>conftest.$ac_ext <<_ACEOF 20446cat >>conftest.$ac_ext <<_ACEOF
20391/* end confdefs.h. */ 20447/* end confdefs.h. */
20392$ac_includes_default 20448$ac_includes_default
20449typedef time_t ac__type_new_;
20393int 20450int
20394main () 20451main ()
20395{ 20452{
20396if ((time_t *) 0) 20453if ((ac__type_new_ *) 0)
20397 return 0; 20454 return 0;
20398if (sizeof (time_t)) 20455if (sizeof (ac__type_new_))
20399 return 0; 20456 return 0;
20400 ; 20457 ;
20401 return 0; 20458 return 0;
20402} 20459}
20403_ACEOF 20460_ACEOF
20404rm -f conftest.$ac_objext 20461rm -f conftest.$ac_objext
20462if { (ac_try="$ac_compile"
20463case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466esac
20405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval $ac_compile) 2>conftest.er1 20468 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$? 20469 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err 20470 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1 20471 rm -f conftest.er1
20410 cat conftest.err >&5 20472 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && 20474 (exit $ac_status); } && {
20413 { ac_try='test -z "$ac_c_werror_flag" 20475 test -z "$ac_c_werror_flag" ||
20414 || test ! -s conftest.err' 20476 test ! -s conftest.err
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20477 } && test -s conftest.$ac_objext; then
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_cv_type_time_t=yes 20478 ac_cv_type_time_t=yes
20427else 20479else
20428 echo "$as_me: failed program was:" >&5 20480 echo "$as_me: failed program was:" >&5
20429sed 's/^/| /' conftest.$ac_ext >&5 20481sed 's/^/| /' conftest.$ac_ext >&5
20430 20482
20431ac_cv_type_time_t=no 20483 ac_cv_type_time_t=no
20432fi 20484fi
20485
20433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434fi 20487fi
20435echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 20488{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20436echo "${ECHO_T}$ac_cv_type_time_t" >&6 20489echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
20437if test $ac_cv_type_time_t = yes; then 20490if test $ac_cv_type_time_t = yes; then
20438 20491
20439cat >>confdefs.h <<_ACEOF 20492cat >>confdefs.h <<_ACEOF
20440#define HAVE_TIME_T 1 20493#define HAVE_TIME_T 1
20441_ACEOF 20494_ACEOF
20451 20504
20452 20505
20453for ac_header in stdlib.h 20506for ac_header in stdlib.h
20454do 20507do
20455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20456if eval "test \"\${$as_ac_Header+set}\" = set"; then 20509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20457 echo "$as_me:$LINENO: checking for $ac_header" >&5 20510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20459if eval "test \"\${$as_ac_Header+set}\" = set"; then 20512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6 20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20461fi 20514fi
20462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20515ac_res=`eval echo '${'$as_ac_Header'}'`
20463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20516 { echo "$as_me:$LINENO: result: $ac_res" >&5
20517echo "${ECHO_T}$ac_res" >&6; }
20464else 20518else
20465 # Is the header compilable? 20519 # Is the header compilable?
20466echo "$as_me:$LINENO: checking $ac_header usability" >&5 20520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20468cat >conftest.$ac_ext <<_ACEOF 20522cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */ 20523/* confdefs.h. */
20470_ACEOF 20524_ACEOF
20471cat confdefs.h >>conftest.$ac_ext 20525cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF 20526cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */ 20527/* end confdefs.h. */
20474$ac_includes_default 20528$ac_includes_default
20475#include <$ac_header> 20529#include <$ac_header>
20476_ACEOF 20530_ACEOF
20477rm -f conftest.$ac_objext 20531rm -f conftest.$ac_objext
20532if { (ac_try="$ac_compile"
20533case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536esac
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval $ac_compile) 2>conftest.er1 20538 (eval "$ac_compile") 2>conftest.er1
20480 ac_status=$? 20539 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err 20540 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1 20541 rm -f conftest.er1
20483 cat conftest.err >&5 20542 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } && 20544 (exit $ac_status); } && {
20486 { ac_try='test -z "$ac_c_werror_flag" 20545 test -z "$ac_c_werror_flag" ||
20487 || test ! -s conftest.err' 20546 test ! -s conftest.err
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20547 } && test -s conftest.$ac_objext; then
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_header_compiler=yes 20548 ac_header_compiler=yes
20500else 20549else
20501 echo "$as_me: failed program was:" >&5 20550 echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5 20551sed 's/^/| /' conftest.$ac_ext >&5
20503 20552
20504ac_header_compiler=no 20553 ac_header_compiler=no
20505fi 20554fi
20555
20506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20508echo "${ECHO_T}$ac_header_compiler" >&6 20558echo "${ECHO_T}$ac_header_compiler" >&6; }
20509 20559
20510# Is the header present? 20560# Is the header present?
20511echo "$as_me:$LINENO: checking $ac_header presence" >&5 20561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20513cat >conftest.$ac_ext <<_ACEOF 20563cat >conftest.$ac_ext <<_ACEOF
20514/* confdefs.h. */ 20564/* confdefs.h. */
20515_ACEOF 20565_ACEOF
20516cat confdefs.h >>conftest.$ac_ext 20566cat confdefs.h >>conftest.$ac_ext
20517cat >>conftest.$ac_ext <<_ACEOF 20567cat >>conftest.$ac_ext <<_ACEOF
20518/* end confdefs.h. */ 20568/* end confdefs.h. */
20519#include <$ac_header> 20569#include <$ac_header>
20520_ACEOF 20570_ACEOF
20521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20571if { (ac_try="$ac_cpp conftest.$ac_ext"
20572case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20575esac
20576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20523 ac_status=$? 20578 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err 20579 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1 20580 rm -f conftest.er1
20526 cat conftest.err >&5 20581 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } >/dev/null; then 20583 (exit $ac_status); } >/dev/null && {
20584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20529 if test -s conftest.err; then 20585 test ! -s conftest.err
20530 ac_cpp_err=$ac_c_preproc_warn_flag 20586 }; then
20531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20532 else
20533 ac_cpp_err=
20534 fi
20535else
20536 ac_cpp_err=yes
20537fi
20538if test -z "$ac_cpp_err"; then
20539 ac_header_preproc=yes 20587 ac_header_preproc=yes
20540else 20588else
20541 echo "$as_me: failed program was:" >&5 20589 echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5 20590sed 's/^/| /' conftest.$ac_ext >&5
20543 20591
20544 ac_header_preproc=no 20592 ac_header_preproc=no
20545fi 20593fi
20594
20546rm -f conftest.err conftest.$ac_ext 20595rm -f conftest.err conftest.$ac_ext
20547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20548echo "${ECHO_T}$ac_header_preproc" >&6 20597echo "${ECHO_T}$ac_header_preproc" >&6; }
20549 20598
20550# So? What about this header? 20599# So? What about this header?
20551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20552 yes:no: ) 20601 yes:no: )
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20572 (
20573 cat <<\_ASBOX 20621 ( cat <<\_ASBOX
20574## ------------------------------------ ## 20622## ------------------------------------ ##
20575## Report this to jcouzens@codeshare.ca ## 20623## Report this to jcouzens@codeshare.ca ##
20576## ------------------------------------ ## 20624## ------------------------------------ ##
20577_ASBOX 20625_ASBOX
20578 ) |
20579 sed "s/^/$as_me: WARNING: /" >&2 20626 ) | sed "s/^/$as_me: WARNING: /" >&2
20580 ;; 20627 ;;
20581esac 20628esac
20582echo "$as_me:$LINENO: checking for $ac_header" >&5 20629{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20584if eval "test \"\${$as_ac_Header+set}\" = set"; then 20631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6 20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20586else 20633else
20587 eval "$as_ac_Header=\$ac_header_preproc" 20634 eval "$as_ac_Header=\$ac_header_preproc"
20588fi 20635fi
20589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20636ac_res=`eval echo '${'$as_ac_Header'}'`
20590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20637 { echo "$as_me:$LINENO: result: $ac_res" >&5
20638echo "${ECHO_T}$ac_res" >&6; }
20591 20639
20592fi 20640fi
20593if test `eval echo '${'$as_ac_Header'}'` = yes; then 20641if test `eval echo '${'$as_ac_Header'}'` = yes; then
20594 cat >>confdefs.h <<_ACEOF 20642 cat >>confdefs.h <<_ACEOF
20595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20597 20645
20598fi 20646fi
20599 20647
20600done 20648done
20601 20649
20602echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 20650{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20603echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 20651echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
20604if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 20652if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6 20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20606else 20654else
20607 if test "$cross_compiling" = yes; then 20655 if test "$cross_compiling" = yes; then
20608 ac_cv_func_malloc_0_nonnull=no 20656 ac_cv_func_malloc_0_nonnull=no
20611/* confdefs.h. */ 20659/* confdefs.h. */
20612_ACEOF 20660_ACEOF
20613cat confdefs.h >>conftest.$ac_ext 20661cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF 20662cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */ 20663/* end confdefs.h. */
20616#if STDC_HEADERS || HAVE_STDLIB_H 20664#if defined STDC_HEADERS || defined HAVE_STDLIB_H
20617# include <stdlib.h> 20665# include <stdlib.h>
20618#else 20666#else
20619char *malloc (); 20667char *malloc ();
20620#endif 20668#endif
20621 20669
20622int 20670int
20623main () 20671main ()
20624{ 20672{
20625exit (malloc (0) ? 0 : 1); 20673return ! malloc (0);
20626 ; 20674 ;
20627 return 0; 20675 return 0;
20628} 20676}
20629_ACEOF 20677_ACEOF
20630rm -f conftest$ac_exeext 20678rm -f conftest$ac_exeext
20679if { (ac_try="$ac_link"
20680case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20683esac
20631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval $ac_link) 2>&5 20685 (eval "$ac_link") 2>&5
20633 ac_status=$? 20686 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20689 { (case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20692esac
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval $ac_try) 2>&5 20694 (eval "$ac_try") 2>&5
20638 ac_status=$? 20695 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then 20697 (exit $ac_status); }; }; then
20641 ac_cv_func_malloc_0_nonnull=yes 20698 ac_cv_func_malloc_0_nonnull=yes
20642else 20699else
20645sed 's/^/| /' conftest.$ac_ext >&5 20702sed 's/^/| /' conftest.$ac_ext >&5
20646 20703
20647( exit $ac_status ) 20704( exit $ac_status )
20648ac_cv_func_malloc_0_nonnull=no 20705ac_cv_func_malloc_0_nonnull=no
20649fi 20706fi
20650rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20651fi 20708fi
20709
20710
20652fi 20711fi
20653echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 20712{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20654echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 20713echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20655if test $ac_cv_func_malloc_0_nonnull = yes; then 20714if test $ac_cv_func_malloc_0_nonnull = yes; then
20656 20715
20657cat >>confdefs.h <<\_ACEOF 20716cat >>confdefs.h <<\_ACEOF
20658#define HAVE_MALLOC 1 20717#define HAVE_MALLOC 1
20659_ACEOF 20718_ACEOF
20661else 20720else
20662 cat >>confdefs.h <<\_ACEOF 20721 cat >>confdefs.h <<\_ACEOF
20663#define HAVE_MALLOC 0 20722#define HAVE_MALLOC 0
20664_ACEOF 20723_ACEOF
20665 20724
20666 case $LIBOBJS in 20725 case " $LIBOBJS " in
20667 "malloc.$ac_objext" | \
20668 *" malloc.$ac_objext" | \
20669 "malloc.$ac_objext "* | \
20670 *" malloc.$ac_objext "* ) ;; 20726 *" malloc.$ac_objext "* ) ;;
20671 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 20727 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20728 ;;
20672esac 20729esac
20673 20730
20674 20731
20675cat >>confdefs.h <<\_ACEOF 20732cat >>confdefs.h <<\_ACEOF
20676#define malloc rpl_malloc 20733#define malloc rpl_malloc
20682 20739
20683 20740
20684for ac_header in stdlib.h 20741for ac_header in stdlib.h
20685do 20742do
20686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687if eval "test \"\${$as_ac_Header+set}\" = set"; then 20744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20688 echo "$as_me:$LINENO: checking for $ac_header" >&5 20745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20690if eval "test \"\${$as_ac_Header+set}\" = set"; then 20747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6 20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20692fi 20749fi
20693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20750ac_res=`eval echo '${'$as_ac_Header'}'`
20694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20751 { echo "$as_me:$LINENO: result: $ac_res" >&5
20752echo "${ECHO_T}$ac_res" >&6; }
20695else 20753else
20696 # Is the header compilable? 20754 # Is the header compilable?
20697echo "$as_me:$LINENO: checking $ac_header usability" >&5 20755{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20699cat >conftest.$ac_ext <<_ACEOF 20757cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h. */ 20758/* confdefs.h. */
20701_ACEOF 20759_ACEOF
20702cat confdefs.h >>conftest.$ac_ext 20760cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF 20761cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h. */ 20762/* end confdefs.h. */
20705$ac_includes_default 20763$ac_includes_default
20706#include <$ac_header> 20764#include <$ac_header>
20707_ACEOF 20765_ACEOF
20708rm -f conftest.$ac_objext 20766rm -f conftest.$ac_objext
20767if { (ac_try="$ac_compile"
20768case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20771esac
20709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval $ac_compile) 2>conftest.er1 20773 (eval "$ac_compile") 2>conftest.er1
20711 ac_status=$? 20774 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err 20775 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1 20776 rm -f conftest.er1
20714 cat conftest.err >&5 20777 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && 20779 (exit $ac_status); } && {
20717 { ac_try='test -z "$ac_c_werror_flag" 20780 test -z "$ac_c_werror_flag" ||
20718 || test ! -s conftest.err' 20781 test ! -s conftest.err
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20782 } && test -s conftest.$ac_objext; then
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_header_compiler=yes 20783 ac_header_compiler=yes
20731else 20784else
20732 echo "$as_me: failed program was:" >&5 20785 echo "$as_me: failed program was:" >&5
20733sed 's/^/| /' conftest.$ac_ext >&5 20786sed 's/^/| /' conftest.$ac_ext >&5
20734 20787
20735ac_header_compiler=no 20788 ac_header_compiler=no
20736fi 20789fi
20790
20737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20739echo "${ECHO_T}$ac_header_compiler" >&6 20793echo "${ECHO_T}$ac_header_compiler" >&6; }
20740 20794
20741# Is the header present? 20795# Is the header present?
20742echo "$as_me:$LINENO: checking $ac_header presence" >&5 20796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20744cat >conftest.$ac_ext <<_ACEOF 20798cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h. */ 20799/* confdefs.h. */
20746_ACEOF 20800_ACEOF
20747cat confdefs.h >>conftest.$ac_ext 20801cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF 20802cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h. */ 20803/* end confdefs.h. */
20750#include <$ac_header> 20804#include <$ac_header>
20751_ACEOF 20805_ACEOF
20752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20806if { (ac_try="$ac_cpp conftest.$ac_ext"
20807case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810esac
20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20754 ac_status=$? 20813 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err 20814 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1 20815 rm -f conftest.er1
20757 cat conftest.err >&5 20816 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } >/dev/null; then 20818 (exit $ac_status); } >/dev/null && {
20819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20760 if test -s conftest.err; then 20820 test ! -s conftest.err
20761 ac_cpp_err=$ac_c_preproc_warn_flag 20821 }; then
20762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20763 else
20764 ac_cpp_err=
20765 fi
20766else
20767 ac_cpp_err=yes
20768fi
20769if test -z "$ac_cpp_err"; then
20770 ac_header_preproc=yes 20822 ac_header_preproc=yes
20771else 20823else
20772 echo "$as_me: failed program was:" >&5 20824 echo "$as_me: failed program was:" >&5
20773sed 's/^/| /' conftest.$ac_ext >&5 20825sed 's/^/| /' conftest.$ac_ext >&5
20774 20826
20775 ac_header_preproc=no 20827 ac_header_preproc=no
20776fi 20828fi
20829
20777rm -f conftest.err conftest.$ac_ext 20830rm -f conftest.err conftest.$ac_ext
20778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20831{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20779echo "${ECHO_T}$ac_header_preproc" >&6 20832echo "${ECHO_T}$ac_header_preproc" >&6; }
20780 20833
20781# So? What about this header? 20834# So? What about this header?
20782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20783 yes:no: ) 20836 yes:no: )
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20803 (
20804 cat <<\_ASBOX 20856 ( cat <<\_ASBOX
20805## ------------------------------------ ## 20857## ------------------------------------ ##
20806## Report this to jcouzens@codeshare.ca ## 20858## Report this to jcouzens@codeshare.ca ##
20807## ------------------------------------ ## 20859## ------------------------------------ ##
20808_ASBOX 20860_ASBOX
20809 ) |
20810 sed "s/^/$as_me: WARNING: /" >&2 20861 ) | sed "s/^/$as_me: WARNING: /" >&2
20811 ;; 20862 ;;
20812esac 20863esac
20813echo "$as_me:$LINENO: checking for $ac_header" >&5 20864{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20815if eval "test \"\${$as_ac_Header+set}\" = set"; then 20866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6 20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20817else 20868else
20818 eval "$as_ac_Header=\$ac_header_preproc" 20869 eval "$as_ac_Header=\$ac_header_preproc"
20819fi 20870fi
20820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20871ac_res=`eval echo '${'$as_ac_Header'}'`
20821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20872 { echo "$as_me:$LINENO: result: $ac_res" >&5
20873echo "${ECHO_T}$ac_res" >&6; }
20822 20874
20823fi 20875fi
20824if test `eval echo '${'$as_ac_Header'}'` = yes; then 20876if test `eval echo '${'$as_ac_Header'}'` = yes; then
20825 cat >>confdefs.h <<_ACEOF 20877 cat >>confdefs.h <<_ACEOF
20826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 20880
20829fi 20881fi
20830 20882
20831done 20883done
20832 20884
20833echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 20885{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20834echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 20886echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
20835if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 20887if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6 20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20837else 20889else
20838 if test "$cross_compiling" = yes; then 20890 if test "$cross_compiling" = yes; then
20839 ac_cv_func_realloc_0_nonnull=no 20891 ac_cv_func_realloc_0_nonnull=no
20842/* confdefs.h. */ 20894/* confdefs.h. */
20843_ACEOF 20895_ACEOF
20844cat confdefs.h >>conftest.$ac_ext 20896cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF 20897cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */ 20898/* end confdefs.h. */
20847#if STDC_HEADERS || HAVE_STDLIB_H 20899#if defined STDC_HEADERS || defined HAVE_STDLIB_H
20848# include <stdlib.h> 20900# include <stdlib.h>
20849#else 20901#else
20850char *realloc (); 20902char *realloc ();
20851#endif 20903#endif
20852 20904
20853int 20905int
20854main () 20906main ()
20855{ 20907{
20856exit (realloc (0, 0) ? 0 : 1); 20908return ! realloc (0, 0);
20857 ; 20909 ;
20858 return 0; 20910 return 0;
20859} 20911}
20860_ACEOF 20912_ACEOF
20861rm -f conftest$ac_exeext 20913rm -f conftest$ac_exeext
20914if { (ac_try="$ac_link"
20915case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918esac
20862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval $ac_link) 2>&5 20920 (eval "$ac_link") 2>&5
20864 ac_status=$? 20921 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927esac
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval $ac_try) 2>&5 20929 (eval "$ac_try") 2>&5
20869 ac_status=$? 20930 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then 20932 (exit $ac_status); }; }; then
20872 ac_cv_func_realloc_0_nonnull=yes 20933 ac_cv_func_realloc_0_nonnull=yes
20873else 20934else
20876sed 's/^/| /' conftest.$ac_ext >&5 20937sed 's/^/| /' conftest.$ac_ext >&5
20877 20938
20878( exit $ac_status ) 20939( exit $ac_status )
20879ac_cv_func_realloc_0_nonnull=no 20940ac_cv_func_realloc_0_nonnull=no
20880fi 20941fi
20881rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20882fi 20943fi
20944
20945
20883fi 20946fi
20884echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 20947{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20885echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 20948echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
20886if test $ac_cv_func_realloc_0_nonnull = yes; then 20949if test $ac_cv_func_realloc_0_nonnull = yes; then
20887 20950
20888cat >>confdefs.h <<\_ACEOF 20951cat >>confdefs.h <<\_ACEOF
20889#define HAVE_REALLOC 1 20952#define HAVE_REALLOC 1
20890_ACEOF 20953_ACEOF
20892else 20955else
20893 cat >>confdefs.h <<\_ACEOF 20956 cat >>confdefs.h <<\_ACEOF
20894#define HAVE_REALLOC 0 20957#define HAVE_REALLOC 0
20895_ACEOF 20958_ACEOF
20896 20959
20897 case $LIBOBJS in 20960 case " $LIBOBJS " in
20898 "realloc.$ac_objext" | \
20899 *" realloc.$ac_objext" | \
20900 "realloc.$ac_objext "* | \
20901 *" realloc.$ac_objext "* ) ;; 20961 *" realloc.$ac_objext "* ) ;;
20902 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; 20962 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
20963 ;;
20903esac 20964esac
20904 20965
20905 20966
20906cat >>confdefs.h <<\_ACEOF 20967cat >>confdefs.h <<\_ACEOF
20907#define realloc rpl_realloc 20968#define realloc rpl_realloc
20913 20974
20914 20975
20915for ac_func in strftime 20976for ac_func in strftime
20916do 20977do
20917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20918echo "$as_me:$LINENO: checking for $ac_func" >&5 20979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20920if eval "test \"\${$as_ac_var+set}\" = set"; then 20981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6 20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20922else 20983else
20923 cat >conftest.$ac_ext <<_ACEOF 20984 cat >conftest.$ac_ext <<_ACEOF
20924/* confdefs.h. */ 20985/* confdefs.h. */
20925_ACEOF 20986_ACEOF
20941# include <assert.h> 21002# include <assert.h>
20942#endif 21003#endif
20943 21004
20944#undef $ac_func 21005#undef $ac_func
20945 21006
20946/* Override any gcc2 internal prototype to avoid an error. */ 21007/* Override any GCC internal prototype to avoid an error.
21008 Use char because int might match the return type of a GCC
21009 builtin and then its argument prototype would still apply. */
20947#ifdef __cplusplus 21010#ifdef __cplusplus
20948extern "C" 21011extern "C"
20949{
20950#endif 21012#endif
20951/* We use char because int might match the return type of a gcc2
20952 builtin and then its argument prototype would still apply. */
20953char $ac_func (); 21013char $ac_func ();
20954/* The GNU C library defines this for functions which it implements 21014/* The GNU C library defines this for functions which it implements
20955 to always fail with ENOSYS. Some functions are actually named 21015 to always fail with ENOSYS. Some functions are actually named
20956 something starting with __ and the normal name is an alias. */ 21016 something starting with __ and the normal name is an alias. */
20957#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21017#if defined __stub_$ac_func || defined __stub___$ac_func
20958choke me 21018choke me
20959#else
20960char (*f) () = $ac_func;
20961#endif
20962#ifdef __cplusplus
20963}
20964#endif 21019#endif
20965 21020
20966int 21021int
20967main () 21022main ()
20968{ 21023{
20969return f != $ac_func; 21024return $ac_func ();
20970 ; 21025 ;
20971 return 0; 21026 return 0;
20972} 21027}
20973_ACEOF 21028_ACEOF
20974rm -f conftest.$ac_objext conftest$ac_exeext 21029rm -f conftest.$ac_objext conftest$ac_exeext
21030if { (ac_try="$ac_link"
21031case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034esac
20975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval $ac_link) 2>conftest.er1 21036 (eval "$ac_link") 2>conftest.er1
20977 ac_status=$? 21037 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err 21038 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1 21039 rm -f conftest.er1
20980 cat conftest.err >&5 21040 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && 21042 (exit $ac_status); } && {
20983 { ac_try='test -z "$ac_c_werror_flag" 21043 test -z "$ac_c_werror_flag" ||
20984 || test ! -s conftest.err' 21044 test ! -s conftest.err
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21045 } && test -s conftest$ac_exeext &&
20986 (eval $ac_try) 2>&5 21046 $as_test_x conftest$ac_exeext; then
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest$ac_exeext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 eval "$as_ac_var=yes" 21047 eval "$as_ac_var=yes"
20997else 21048else
20998 echo "$as_me: failed program was:" >&5 21049 echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5 21050sed 's/^/| /' conftest.$ac_ext >&5
21000 21051
21001eval "$as_ac_var=no" 21052 eval "$as_ac_var=no"
21002fi 21053fi
21003rm -f conftest.err conftest.$ac_objext \ 21054
21055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21004 conftest$ac_exeext conftest.$ac_ext 21056 conftest$ac_exeext conftest.$ac_ext
21005fi 21057fi
21006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21058ac_res=`eval echo '${'$as_ac_var'}'`
21007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060echo "${ECHO_T}$ac_res" >&6; }
21008if test `eval echo '${'$as_ac_var'}'` = yes; then 21061if test `eval echo '${'$as_ac_var'}'` = yes; then
21009 cat >>confdefs.h <<_ACEOF 21062 cat >>confdefs.h <<_ACEOF
21010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21011_ACEOF 21064_ACEOF
21012 21065
21013else 21066else
21014 # strftime is in -lintl on SCO UNIX. 21067 # strftime is in -lintl on SCO UNIX.
21015echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 21068{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21016echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 21069echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
21017if test "${ac_cv_lib_intl_strftime+set}" = set; then 21070if test "${ac_cv_lib_intl_strftime+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6 21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21019else 21072else
21020 ac_check_lib_save_LIBS=$LIBS 21073 ac_check_lib_save_LIBS=$LIBS
21021LIBS="-lintl $LIBS" 21074LIBS="-lintl $LIBS"
21024_ACEOF 21077_ACEOF
21025cat confdefs.h >>conftest.$ac_ext 21078cat confdefs.h >>conftest.$ac_ext
21026cat >>conftest.$ac_ext <<_ACEOF 21079cat >>conftest.$ac_ext <<_ACEOF
21027/* end confdefs.h. */ 21080/* end confdefs.h. */
21028 21081
21029/* Override any gcc2 internal prototype to avoid an error. */ 21082/* Override any GCC internal prototype to avoid an error.
21083 Use char because int might match the return type of a GCC
21084 builtin and then its argument prototype would still apply. */
21030#ifdef __cplusplus 21085#ifdef __cplusplus
21031extern "C" 21086extern "C"
21032#endif 21087#endif
21033/* We use char because int might match the return type of a gcc2
21034 builtin and then its argument prototype would still apply. */
21035char strftime (); 21088char strftime ();
21036int 21089int
21037main () 21090main ()
21038{ 21091{
21039strftime (); 21092return strftime ();
21040 ; 21093 ;
21041 return 0; 21094 return 0;
21042} 21095}
21043_ACEOF 21096_ACEOF
21044rm -f conftest.$ac_objext conftest$ac_exeext 21097rm -f conftest.$ac_objext conftest$ac_exeext
21098if { (ac_try="$ac_link"
21099case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21102esac
21045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval $ac_link) 2>conftest.er1 21104 (eval "$ac_link") 2>conftest.er1
21047 ac_status=$? 21105 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err 21106 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1 21107 rm -f conftest.er1
21050 cat conftest.err >&5 21108 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } && 21110 (exit $ac_status); } && {
21053 { ac_try='test -z "$ac_c_werror_flag" 21111 test -z "$ac_c_werror_flag" ||
21054 || test ! -s conftest.err' 21112 test ! -s conftest.err
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21113 } && test -s conftest$ac_exeext &&
21056 (eval $ac_try) 2>&5 21114 $as_test_x conftest$ac_exeext; then
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest$ac_exeext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_lib_intl_strftime=yes 21115 ac_cv_lib_intl_strftime=yes
21067else 21116else
21068 echo "$as_me: failed program was:" >&5 21117 echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5 21118sed 's/^/| /' conftest.$ac_ext >&5
21070 21119
21071ac_cv_lib_intl_strftime=no 21120 ac_cv_lib_intl_strftime=no
21072fi 21121fi
21073rm -f conftest.err conftest.$ac_objext \ 21122
21123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21074 conftest$ac_exeext conftest.$ac_ext 21124 conftest$ac_exeext conftest.$ac_ext
21075LIBS=$ac_check_lib_save_LIBS 21125LIBS=$ac_check_lib_save_LIBS
21076fi 21126fi
21077echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 21127{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21078echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 21128echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
21079if test $ac_cv_lib_intl_strftime = yes; then 21129if test $ac_cv_lib_intl_strftime = yes; then
21080 cat >>confdefs.h <<\_ACEOF 21130 cat >>confdefs.h <<\_ACEOF
21081#define HAVE_STRFTIME 1 21131#define HAVE_STRFTIME 1
21082_ACEOF 21132_ACEOF
21083 21133
21099 21149
21100for ac_func in gethostbyname, inet_ntoa, memset, strcasecmp, \ 21150for ac_func in gethostbyname, inet_ntoa, memset, strcasecmp, \
21101 localtime_r, strchr, strdup, strrchr, strstr, mkdir 21151 localtime_r, strchr, strdup, strrchr, strstr, mkdir
21102do 21152do
21103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21104echo "$as_me:$LINENO: checking for $ac_func" >&5 21154{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21106if eval "test \"\${$as_ac_var+set}\" = set"; then 21156if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6 21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21108else 21158else
21109 cat >conftest.$ac_ext <<_ACEOF 21159 cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */ 21160/* confdefs.h. */
21111_ACEOF 21161_ACEOF
21127# include <assert.h> 21177# include <assert.h>
21128#endif 21178#endif
21129 21179
21130#undef $ac_func 21180#undef $ac_func
21131 21181
21132/* Override any gcc2 internal prototype to avoid an error. */ 21182/* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21133#ifdef __cplusplus 21185#ifdef __cplusplus
21134extern "C" 21186extern "C"
21135{
21136#endif 21187#endif
21137/* We use char because int might match the return type of a gcc2
21138 builtin and then its argument prototype would still apply. */
21139char $ac_func (); 21188char $ac_func ();
21140/* The GNU C library defines this for functions which it implements 21189/* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named 21190 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */ 21191 something starting with __ and the normal name is an alias. */
21143#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21192#if defined __stub_$ac_func || defined __stub___$ac_func
21144choke me 21193choke me
21145#else
21146char (*f) () = $ac_func;
21147#endif
21148#ifdef __cplusplus
21149}
21150#endif 21194#endif
21151 21195
21152int 21196int
21153main () 21197main ()
21154{ 21198{
21155return f != $ac_func; 21199return $ac_func ();
21156 ; 21200 ;
21157 return 0; 21201 return 0;
21158} 21202}
21159_ACEOF 21203_ACEOF
21160rm -f conftest.$ac_objext conftest$ac_exeext 21204rm -f conftest.$ac_objext conftest$ac_exeext
21205if { (ac_try="$ac_link"
21206case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209esac
21161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval $ac_link) 2>conftest.er1 21211 (eval "$ac_link") 2>conftest.er1
21163 ac_status=$? 21212 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err 21213 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1 21214 rm -f conftest.er1
21166 cat conftest.err >&5 21215 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && 21217 (exit $ac_status); } && {
21169 { ac_try='test -z "$ac_c_werror_flag" 21218 test -z "$ac_c_werror_flag" ||
21170 || test ! -s conftest.err' 21219 test ! -s conftest.err
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21220 } && test -s conftest$ac_exeext &&
21172 (eval $ac_try) 2>&5 21221 $as_test_x conftest$ac_exeext; then
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 eval "$as_ac_var=yes" 21222 eval "$as_ac_var=yes"
21183else 21223else
21184 echo "$as_me: failed program was:" >&5 21224 echo "$as_me: failed program was:" >&5
21185sed 's/^/| /' conftest.$ac_ext >&5 21225sed 's/^/| /' conftest.$ac_ext >&5
21186 21226
21187eval "$as_ac_var=no" 21227 eval "$as_ac_var=no"
21188fi 21228fi
21189rm -f conftest.err conftest.$ac_objext \ 21229
21230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21190 conftest$ac_exeext conftest.$ac_ext 21231 conftest$ac_exeext conftest.$ac_ext
21191fi 21232fi
21192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21233ac_res=`eval echo '${'$as_ac_var'}'`
21193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21234 { echo "$as_me:$LINENO: result: $ac_res" >&5
21235echo "${ECHO_T}$ac_res" >&6; }
21194if test `eval echo '${'$as_ac_var'}'` = yes; then 21236if test `eval echo '${'$as_ac_var'}'` = yes; then
21195 cat >>confdefs.h <<_ACEOF 21237 cat >>confdefs.h <<_ACEOF
21196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21197_ACEOF 21239_ACEOF
21198 21240
21203 21245
21204#------------------------------------------------------------------------------- 21246#-------------------------------------------------------------------------------
21205# __BEGIN_DECLS / __END_DECLS defined ? 21247# __BEGIN_DECLS / __END_DECLS defined ?
21206#------------------------------------------------------------------------------- 21248#-------------------------------------------------------------------------------
21207 21249
21208echo "$as_me:$LINENO: checking __BEGIN_DECLS" >&5 21250{ echo "$as_me:$LINENO: checking __BEGIN_DECLS" >&5
21209echo $ECHO_N "checking __BEGIN_DECLS... $ECHO_C" >&6 21251echo $ECHO_N "checking __BEGIN_DECLS... $ECHO_C" >&6; }
21210cat >conftest.$ac_ext <<_ACEOF 21252cat >conftest.$ac_ext <<_ACEOF
21211 21253
21212#include <features.h> 21254#include <features.h>
21213__BEGIN_DECLS 21255__BEGIN_DECLS
21214extern int x; 21256extern int x;
21215__END_DECLS 21257__END_DECLS
21216_ACEOF 21258_ACEOF
21217rm -f conftest.$ac_objext 21259rm -f conftest.$ac_objext
21260if { (ac_try="$ac_compile"
21261case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264esac
21218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval $ac_compile) 2>conftest.er1 21266 (eval "$ac_compile") 2>conftest.er1
21220 ac_status=$? 21267 ac_status=$?
21221 grep -v '^ *+' conftest.er1 >conftest.err 21268 grep -v '^ *+' conftest.er1 >conftest.err
21222 rm -f conftest.er1 21269 rm -f conftest.er1
21223 cat conftest.err >&5 21270 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && 21272 (exit $ac_status); } && {
21226 { ac_try='test -z "$ac_c_werror_flag" 21273 test -z "$ac_c_werror_flag" ||
21227 || test ! -s conftest.err' 21274 test ! -s conftest.err
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21275 } && test -s conftest.$ac_objext; then
21229 (eval $ac_try) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 echo "$as_me:$LINENO: result: yes" >&5 21276 { echo "$as_me:$LINENO: result: yes" >&5
21240echo "${ECHO_T}yes" >&6 21277echo "${ECHO_T}yes" >&6; }
21241 21278
21242cat >>confdefs.h <<\_ACEOF 21279cat >>confdefs.h <<\_ACEOF
21243#define HAVE__BEGIN_DECLS 1 21280#define HAVE__BEGIN_DECLS 1
21244_ACEOF 21281_ACEOF
21245 21282
21249 21286
21250else 21287else
21251 echo "$as_me: failed program was:" >&5 21288 echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5 21289sed 's/^/| /' conftest.$ac_ext >&5
21253 21290
21254echo "$as_me:$LINENO: result: no" >&5 21291 { echo "$as_me:$LINENO: result: no" >&5
21255echo "${ECHO_T}no" >&6 21292echo "${ECHO_T}no" >&6; }
21256 21293
21257 __BEGIN_DECLS_INCL=$srcdir/conf/begin_decls 21294 __BEGIN_DECLS_INCL=$srcdir/conf/begin_decls
21258 21295
21259 __END_DECLS_INCL=$srcdir/conf/end_decls 21296 __END_DECLS_INCL=$srcdir/conf/end_decls
21260 21297
21261fi 21298fi
21299
21262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 21301
21264 21302
21265#------------------------------------------------------------------------------- 21303#-------------------------------------------------------------------------------
21266# Unsigned int types 21304# Unsigned int types
21267#------------------------------------------------------------------------------- 21305#-------------------------------------------------------------------------------
21268 21306
21269 21307
21270 21308
21271 21309
21272echo "$as_me:$LINENO: checking size of int" >&5 21310{ echo "$as_me:$LINENO: checking size of int" >&5
21273echo $ECHO_N "checking size of int... $ECHO_C" >&6 21311echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21274if test "${ac_cv_sizeof_int+set}" = set; then 21312if test "${ac_cv_sizeof_int+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6 21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21276else 21314else
21277 if test "$cross_compiling" = yes; then 21315 if test "$cross_compiling" = yes; then
21278 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 21316 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
21293 fprintf(f, "%d\n", (int)sizeof(int)); 21331 fprintf(f, "%d\n", (int)sizeof(int));
21294 exit(0); 21332 exit(0);
21295 } 21333 }
21296_ACEOF 21334_ACEOF
21297rm -f conftest$ac_exeext 21335rm -f conftest$ac_exeext
21336if { (ac_try="$ac_link"
21337case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340esac
21298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval $ac_link) 2>&5 21342 (eval "$ac_link") 2>&5
21300 ac_status=$? 21343 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346 { (case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21349esac
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval $ac_try) 2>&5 21351 (eval "$ac_try") 2>&5
21305 ac_status=$? 21352 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then 21354 (exit $ac_status); }; }; then
21308 ac_cv_sizeof_int=`cat conftestval` 21355 ac_cv_sizeof_int=`cat conftestval`
21309else 21356else
21312sed 's/^/| /' conftest.$ac_ext >&5 21359sed 's/^/| /' conftest.$ac_ext >&5
21313 21360
21314( exit $ac_status ) 21361( exit $ac_status )
21315ac_cv_sizeof_int=0 21362ac_cv_sizeof_int=0
21316fi 21363fi
21317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21318fi 21365fi
21319fi
21320 21366
21367
21368fi
21369
21321echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 21370{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21322echo "${ECHO_T}$ac_cv_sizeof_int" >&6 21371echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21323 21372
21324cat >>confdefs.h <<_ACEOF 21373cat >>confdefs.h <<_ACEOF
21325#define SIZEOF_INT $ac_cv_sizeof_int 21374#define SIZEOF_INT $ac_cv_sizeof_int
21326_ACEOF 21375_ACEOF
21327 21376
21328#AC_DEFINE([SIZEOF_INT], [$ac_cv_sizeof_int], [Check to fix sizeof bug that can't print %d]) 21377#AC_DEFINE([SIZEOF_INT], [$ac_cv_sizeof_int], [Check to fix sizeof bug that can't print %d])
21329 21378
21330 21379
21331 21380
21332# ------ AC CREATE STDINT H ------------------------------------- 21381# ------ AC CREATE STDINT H -------------------------------------
21333echo "$as_me:$LINENO: checking for stdint-types...." >&5 21382{ echo "$as_me:$LINENO: checking for stdint-types...." >&5
21334echo $ECHO_N "checking for stdint-types....... $ECHO_C" >&6 21383echo $ECHO_N "checking for stdint-types....... $ECHO_C" >&6; }
21335ac_stdint_h=`echo src/libspf/_stdint.h` 21384ac_stdint_h=`echo src/libspf/_stdint.h`
21336if test "$ac_stdint_h" = "stdint.h" ; then 21385if test "$ac_stdint_h" = "stdint.h" ; then
21337 echo "$as_me:$LINENO: result: \"(are you sure you want them in ./stdint.h?)\"" >&5 21386 { echo "$as_me:$LINENO: result: \"(are you sure you want them in ./stdint.h?)\"" >&5
21338echo "${ECHO_T}\"(are you sure you want them in ./stdint.h?)\"" >&6 21387echo "${ECHO_T}\"(are you sure you want them in ./stdint.h?)\"" >&6; }
21339elif test "$ac_stdint_h" = "inttypes.h" ; then 21388elif test "$ac_stdint_h" = "inttypes.h" ; then
21340 echo "$as_me:$LINENO: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5 21389 { echo "$as_me:$LINENO: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5
21341echo "${ECHO_T}\"(are you sure you want them in ./inttypes.h?)\"" >&6 21390echo "${ECHO_T}\"(are you sure you want them in ./inttypes.h?)\"" >&6; }
21342else 21391else
21343 echo "$as_me:$LINENO: result: \"(putting them into $ac_stdint_h)\"" >&5 21392 { echo "$as_me:$LINENO: result: \"(putting them into $ac_stdint_h)\"" >&5
21344echo "${ECHO_T}\"(putting them into $ac_stdint_h)\"" >&6 21393echo "${ECHO_T}\"(putting them into $ac_stdint_h)\"" >&6; }
21345fi 21394fi
21346 21395
21347inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h \ 21396inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h \
21348| sed -e 's/,/ /g'` 21397| sed -e 's/,/ /g'`
21349 21398
21351 ac_cv_header_stdint_o="no-file" 21400 ac_cv_header_stdint_o="no-file"
21352 ac_cv_header_stdint_u="no-file" 21401 ac_cv_header_stdint_u="no-file"
21353 for i in stdint.h $inttype_headers ; do 21402 for i in stdint.h $inttype_headers ; do
21354 unset ac_cv_type_uintptr_t 21403 unset ac_cv_type_uintptr_t
21355 unset ac_cv_type_uint64_t 21404 unset ac_cv_type_uint64_t
21356 echo "$as_me:$LINENO: checking for uintptr_t" >&5 21405 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
21357echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 21406echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
21358if test "${ac_cv_type_uintptr_t+set}" = set; then 21407if test "${ac_cv_type_uintptr_t+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6 21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else 21409else
21361 cat >conftest.$ac_ext <<_ACEOF 21410 cat >conftest.$ac_ext <<_ACEOF
21362/* confdefs.h. */ 21411/* confdefs.h. */
21364cat confdefs.h >>conftest.$ac_ext 21413cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF 21414cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */ 21415/* end confdefs.h. */
21367#include <$i> 21416#include <$i>
21368 21417
21418typedef uintptr_t ac__type_new_;
21369int 21419int
21370main () 21420main ()
21371{ 21421{
21372if ((uintptr_t *) 0) 21422if ((ac__type_new_ *) 0)
21373 return 0; 21423 return 0;
21374if (sizeof (uintptr_t)) 21424if (sizeof (ac__type_new_))
21375 return 0; 21425 return 0;
21376 ; 21426 ;
21377 return 0; 21427 return 0;
21378} 21428}
21379_ACEOF 21429_ACEOF
21380rm -f conftest.$ac_objext 21430rm -f conftest.$ac_objext
21431if { (ac_try="$ac_compile"
21432case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21435esac
21381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval $ac_compile) 2>conftest.er1 21437 (eval "$ac_compile") 2>conftest.er1
21383 ac_status=$? 21438 ac_status=$?
21384 grep -v '^ *+' conftest.er1 >conftest.err 21439 grep -v '^ *+' conftest.er1 >conftest.err
21385 rm -f conftest.er1 21440 rm -f conftest.er1
21386 cat conftest.err >&5 21441 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && 21443 (exit $ac_status); } && {
21389 { ac_try='test -z "$ac_c_werror_flag" 21444 test -z "$ac_c_werror_flag" ||
21390 || test ! -s conftest.err' 21445 test ! -s conftest.err
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21446 } && test -s conftest.$ac_objext; then
21392 (eval $ac_try) 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest.$ac_objext'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21402 ac_cv_type_uintptr_t=yes 21447 ac_cv_type_uintptr_t=yes
21403else 21448else
21404 echo "$as_me: failed program was:" >&5 21449 echo "$as_me: failed program was:" >&5
21405sed 's/^/| /' conftest.$ac_ext >&5 21450sed 's/^/| /' conftest.$ac_ext >&5
21406 21451
21407ac_cv_type_uintptr_t=no 21452 ac_cv_type_uintptr_t=no
21408fi 21453fi
21454
21409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410fi 21456fi
21411echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 21457{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21412echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 21458echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
21413if test $ac_cv_type_uintptr_t = yes; then 21459if test $ac_cv_type_uintptr_t = yes; then
21414 ac_cv_header_stdint_x=$i 21460 ac_cv_header_stdint_x=$i
21415else 21461else
21416 continue 21462 continue
21417fi 21463fi
21418 21464
21419 echo "$as_me:$LINENO: checking for uint64_t" >&5 21465 { echo "$as_me:$LINENO: checking for uint64_t" >&5
21420echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 21466echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
21421if test "${ac_cv_type_uint64_t+set}" = set; then 21467if test "${ac_cv_type_uint64_t+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6 21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21423else 21469else
21424 cat >conftest.$ac_ext <<_ACEOF 21470 cat >conftest.$ac_ext <<_ACEOF
21425/* confdefs.h. */ 21471/* confdefs.h. */
21427cat confdefs.h >>conftest.$ac_ext 21473cat confdefs.h >>conftest.$ac_ext
21428cat >>conftest.$ac_ext <<_ACEOF 21474cat >>conftest.$ac_ext <<_ACEOF
21429/* end confdefs.h. */ 21475/* end confdefs.h. */
21430#include<$i> 21476#include<$i>
21431 21477
21478typedef uint64_t ac__type_new_;
21432int 21479int
21433main () 21480main ()
21434{ 21481{
21435if ((uint64_t *) 0) 21482if ((ac__type_new_ *) 0)
21436 return 0; 21483 return 0;
21437if (sizeof (uint64_t)) 21484if (sizeof (ac__type_new_))
21438 return 0; 21485 return 0;
21439 ; 21486 ;
21440 return 0; 21487 return 0;
21441} 21488}
21442_ACEOF 21489_ACEOF
21443rm -f conftest.$ac_objext 21490rm -f conftest.$ac_objext
21491if { (ac_try="$ac_compile"
21492case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21495esac
21444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval $ac_compile) 2>conftest.er1 21497 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$? 21498 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err 21499 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1 21500 rm -f conftest.er1
21449 cat conftest.err >&5 21501 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && 21503 (exit $ac_status); } && {
21452 { ac_try='test -z "$ac_c_werror_flag" 21504 test -z "$ac_c_werror_flag" ||
21453 || test ! -s conftest.err' 21505 test ! -s conftest.err
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21506 } && test -s conftest.$ac_objext; then
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest.$ac_objext'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_cv_type_uint64_t=yes 21507 ac_cv_type_uint64_t=yes
21466else 21508else
21467 echo "$as_me: failed program was:" >&5 21509 echo "$as_me: failed program was:" >&5
21468sed 's/^/| /' conftest.$ac_ext >&5 21510sed 's/^/| /' conftest.$ac_ext >&5
21469 21511
21470ac_cv_type_uint64_t=no 21512 ac_cv_type_uint64_t=no
21471fi 21513fi
21514
21472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473fi 21516fi
21474echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 21517{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21475echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 21518echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
21476if test $ac_cv_type_uint64_t = yes; then 21519if test $ac_cv_type_uint64_t = yes; then
21477 and64="(uint64_t too)" 21520 and64="(uint64_t too)"
21478else 21521else
21479 and64="" 21522 and64=""
21480fi 21523fi
21481 21524
21482 echo "$as_me:$LINENO: result: ... seen our uintptr_t in $i $and64" >&5 21525 { echo "$as_me:$LINENO: result: ... seen our uintptr_t in $i $and64" >&5
21483echo "${ECHO_T}... seen our uintptr_t in $i $and64" >&6 21526echo "${ECHO_T}... seen our uintptr_t in $i $and64" >&6; }
21484 break; 21527 break;
21485 done 21528 done
21486 if test "$ac_cv_header_stdint_x" = "no-file" ; then 21529 if test "$ac_cv_header_stdint_x" = "no-file" ; then
21487 for i in stdint.h $inttype_headers ; do 21530 for i in stdint.h $inttype_headers ; do
21488 unset ac_cv_type_uint32_t 21531 unset ac_cv_type_uint32_t
21489 unset ac_cv_type_uint64_t 21532 unset ac_cv_type_uint64_t
21490 echo "$as_me:$LINENO: checking for uint32_t" >&5 21533 { echo "$as_me:$LINENO: checking for uint32_t" >&5
21491echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 21534echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21492if test "${ac_cv_type_uint32_t+set}" = set; then 21535if test "${ac_cv_type_uint32_t+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6 21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21494else 21537else
21495 cat >conftest.$ac_ext <<_ACEOF 21538 cat >conftest.$ac_ext <<_ACEOF
21496/* confdefs.h. */ 21539/* confdefs.h. */
21498cat confdefs.h >>conftest.$ac_ext 21541cat confdefs.h >>conftest.$ac_ext
21499cat >>conftest.$ac_ext <<_ACEOF 21542cat >>conftest.$ac_ext <<_ACEOF
21500/* end confdefs.h. */ 21543/* end confdefs.h. */
21501#include <$i> 21544#include <$i>
21502 21545
21546typedef uint32_t ac__type_new_;
21503int 21547int
21504main () 21548main ()
21505{ 21549{
21506if ((uint32_t *) 0) 21550if ((ac__type_new_ *) 0)
21507 return 0; 21551 return 0;
21508if (sizeof (uint32_t)) 21552if (sizeof (ac__type_new_))
21509 return 0; 21553 return 0;
21510 ; 21554 ;
21511 return 0; 21555 return 0;
21512} 21556}
21513_ACEOF 21557_ACEOF
21514rm -f conftest.$ac_objext 21558rm -f conftest.$ac_objext
21559if { (ac_try="$ac_compile"
21560case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563esac
21515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval $ac_compile) 2>conftest.er1 21565 (eval "$ac_compile") 2>conftest.er1
21517 ac_status=$? 21566 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err 21567 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1 21568 rm -f conftest.er1
21520 cat conftest.err >&5 21569 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && 21571 (exit $ac_status); } && {
21523 { ac_try='test -z "$ac_c_werror_flag" 21572 test -z "$ac_c_werror_flag" ||
21524 || test ! -s conftest.err' 21573 test ! -s conftest.err
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21574 } && test -s conftest.$ac_objext; then
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; } &&
21530 { ac_try='test -s conftest.$ac_objext'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 ac_cv_type_uint32_t=yes 21575 ac_cv_type_uint32_t=yes
21537else 21576else
21538 echo "$as_me: failed program was:" >&5 21577 echo "$as_me: failed program was:" >&5
21539sed 's/^/| /' conftest.$ac_ext >&5 21578sed 's/^/| /' conftest.$ac_ext >&5
21540 21579
21541ac_cv_type_uint32_t=no 21580 ac_cv_type_uint32_t=no
21542fi 21581fi
21582
21543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544fi 21584fi
21545echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 21585{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21546echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 21586echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
21547if test $ac_cv_type_uint32_t = yes; then 21587if test $ac_cv_type_uint32_t = yes; then
21548 ac_cv_header_stdint_o=$i 21588 ac_cv_header_stdint_o=$i
21549else 21589else
21550 continue 21590 continue
21551fi 21591fi
21552 21592
21553 echo "$as_me:$LINENO: checking for uint64_t" >&5 21593 { echo "$as_me:$LINENO: checking for uint64_t" >&5
21554echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 21594echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
21555if test "${ac_cv_type_uint64_t+set}" = set; then 21595if test "${ac_cv_type_uint64_t+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6 21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21557else 21597else
21558 cat >conftest.$ac_ext <<_ACEOF 21598 cat >conftest.$ac_ext <<_ACEOF
21559/* confdefs.h. */ 21599/* confdefs.h. */
21561cat confdefs.h >>conftest.$ac_ext 21601cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF 21602cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h. */ 21603/* end confdefs.h. */
21564#include<$i> 21604#include<$i>
21565 21605
21606typedef uint64_t ac__type_new_;
21566int 21607int
21567main () 21608main ()
21568{ 21609{
21569if ((uint64_t *) 0) 21610if ((ac__type_new_ *) 0)
21570 return 0; 21611 return 0;
21571if (sizeof (uint64_t)) 21612if (sizeof (ac__type_new_))
21572 return 0; 21613 return 0;
21573 ; 21614 ;
21574 return 0; 21615 return 0;
21575} 21616}
21576_ACEOF 21617_ACEOF
21577rm -f conftest.$ac_objext 21618rm -f conftest.$ac_objext
21619if { (ac_try="$ac_compile"
21620case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623esac
21578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval $ac_compile) 2>conftest.er1 21625 (eval "$ac_compile") 2>conftest.er1
21580 ac_status=$? 21626 ac_status=$?
21581 grep -v '^ *+' conftest.er1 >conftest.err 21627 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1 21628 rm -f conftest.er1
21583 cat conftest.err >&5 21629 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && 21631 (exit $ac_status); } && {
21586 { ac_try='test -z "$ac_c_werror_flag" 21632 test -z "$ac_c_werror_flag" ||
21587 || test ! -s conftest.err' 21633 test ! -s conftest.err
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21634 } && test -s conftest.$ac_objext; then
21589 (eval $ac_try) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest.$ac_objext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 ac_cv_type_uint64_t=yes 21635 ac_cv_type_uint64_t=yes
21600else 21636else
21601 echo "$as_me: failed program was:" >&5 21637 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5 21638sed 's/^/| /' conftest.$ac_ext >&5
21603 21639
21604ac_cv_type_uint64_t=no 21640 ac_cv_type_uint64_t=no
21605fi 21641fi
21642
21606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607fi 21644fi
21608echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 21645{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21609echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 21646echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
21610if test $ac_cv_type_uint64_t = yes; then 21647if test $ac_cv_type_uint64_t = yes; then
21611 and64="(uint64_t too)" 21648 and64="(uint64_t too)"
21612else 21649else
21613 and64="" 21650 and64=""
21614fi 21651fi
21615 21652
21616 echo "$as_me:$LINENO: result: ... seen our uint32_t in $i $and64" >&5 21653 { echo "$as_me:$LINENO: result: ... seen our uint32_t in $i $and64" >&5
21617echo "${ECHO_T}... seen our uint32_t in $i $and64" >&6 21654echo "${ECHO_T}... seen our uint32_t in $i $and64" >&6; }
21618 break; 21655 break;
21619 done 21656 done
21620 if test "$ac_cv_header_stdint_o" = "no-file" ; then 21657 if test "$ac_cv_header_stdint_o" = "no-file" ; then
21621 for i in sys/types.h $inttype_headers ; do 21658 for i in sys/types.h $inttype_headers ; do
21622 unset ac_cv_type_u_int32_t 21659 unset ac_cv_type_u_int32_t
21623 unset ac_cv_type_u_int64_t 21660 unset ac_cv_type_u_int64_t
21624 echo "$as_me:$LINENO: checking for u_int32_t" >&5 21661 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
21625echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 21662echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
21626if test "${ac_cv_type_u_int32_t+set}" = set; then 21663if test "${ac_cv_type_u_int32_t+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6 21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21628else 21665else
21629 cat >conftest.$ac_ext <<_ACEOF 21666 cat >conftest.$ac_ext <<_ACEOF
21630/* confdefs.h. */ 21667/* confdefs.h. */
21632cat confdefs.h >>conftest.$ac_ext 21669cat confdefs.h >>conftest.$ac_ext
21633cat >>conftest.$ac_ext <<_ACEOF 21670cat >>conftest.$ac_ext <<_ACEOF
21634/* end confdefs.h. */ 21671/* end confdefs.h. */
21635#include <$i> 21672#include <$i>
21636 21673
21674typedef u_int32_t ac__type_new_;
21637int 21675int
21638main () 21676main ()
21639{ 21677{
21640if ((u_int32_t *) 0) 21678if ((ac__type_new_ *) 0)
21641 return 0; 21679 return 0;
21642if (sizeof (u_int32_t)) 21680if (sizeof (ac__type_new_))
21643 return 0; 21681 return 0;
21644 ; 21682 ;
21645 return 0; 21683 return 0;
21646} 21684}
21647_ACEOF 21685_ACEOF
21648rm -f conftest.$ac_objext 21686rm -f conftest.$ac_objext
21687if { (ac_try="$ac_compile"
21688case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691esac
21649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650 (eval $ac_compile) 2>conftest.er1 21693 (eval "$ac_compile") 2>conftest.er1
21651 ac_status=$? 21694 ac_status=$?
21652 grep -v '^ *+' conftest.er1 >conftest.err 21695 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1 21696 rm -f conftest.er1
21654 cat conftest.err >&5 21697 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && 21699 (exit $ac_status); } && {
21657 { ac_try='test -z "$ac_c_werror_flag" 21700 test -z "$ac_c_werror_flag" ||
21658 || test ! -s conftest.err' 21701 test ! -s conftest.err
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21702 } && test -s conftest.$ac_objext; then
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; } &&
21664 { ac_try='test -s conftest.$ac_objext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 ac_cv_type_u_int32_t=yes 21703 ac_cv_type_u_int32_t=yes
21671else 21704else
21672 echo "$as_me: failed program was:" >&5 21705 echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5 21706sed 's/^/| /' conftest.$ac_ext >&5
21674 21707
21675ac_cv_type_u_int32_t=no 21708 ac_cv_type_u_int32_t=no
21676fi 21709fi
21710
21677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678fi 21712fi
21679echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 21713{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
21680echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 21714echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
21681if test $ac_cv_type_u_int32_t = yes; then 21715if test $ac_cv_type_u_int32_t = yes; then
21682 ac_cv_header_stdint_u=$i 21716 ac_cv_header_stdint_u=$i
21683else 21717else
21684 continue 21718 continue
21685fi 21719fi
21686 21720
21687 echo "$as_me:$LINENO: checking for uint64_t" >&5 21721 { echo "$as_me:$LINENO: checking for uint64_t" >&5
21688echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 21722echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
21689if test "${ac_cv_type_uint64_t+set}" = set; then 21723if test "${ac_cv_type_uint64_t+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6 21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21691else 21725else
21692 cat >conftest.$ac_ext <<_ACEOF 21726 cat >conftest.$ac_ext <<_ACEOF
21693/* confdefs.h. */ 21727/* confdefs.h. */
21695cat confdefs.h >>conftest.$ac_ext 21729cat confdefs.h >>conftest.$ac_ext
21696cat >>conftest.$ac_ext <<_ACEOF 21730cat >>conftest.$ac_ext <<_ACEOF
21697/* end confdefs.h. */ 21731/* end confdefs.h. */
21698#include<$i> 21732#include<$i>
21699 21733
21734typedef uint64_t ac__type_new_;
21700int 21735int
21701main () 21736main ()
21702{ 21737{
21703if ((uint64_t *) 0) 21738if ((ac__type_new_ *) 0)
21704 return 0; 21739 return 0;
21705if (sizeof (uint64_t)) 21740if (sizeof (ac__type_new_))
21706 return 0; 21741 return 0;
21707 ; 21742 ;
21708 return 0; 21743 return 0;
21709} 21744}
21710_ACEOF 21745_ACEOF
21711rm -f conftest.$ac_objext 21746rm -f conftest.$ac_objext
21747if { (ac_try="$ac_compile"
21748case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21751esac
21712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval $ac_compile) 2>conftest.er1 21753 (eval "$ac_compile") 2>conftest.er1
21714 ac_status=$? 21754 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err 21755 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1 21756 rm -f conftest.er1
21717 cat conftest.err >&5 21757 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && 21759 (exit $ac_status); } && {
21720 { ac_try='test -z "$ac_c_werror_flag" 21760 test -z "$ac_c_werror_flag" ||
21721 || test ! -s conftest.err' 21761 test ! -s conftest.err
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21762 } && test -s conftest.$ac_objext; then
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest.$ac_objext'
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 ac_cv_type_uint64_t=yes 21763 ac_cv_type_uint64_t=yes
21734else 21764else
21735 echo "$as_me: failed program was:" >&5 21765 echo "$as_me: failed program was:" >&5
21736sed 's/^/| /' conftest.$ac_ext >&5 21766sed 's/^/| /' conftest.$ac_ext >&5
21737 21767
21738ac_cv_type_uint64_t=no 21768 ac_cv_type_uint64_t=no
21739fi 21769fi
21770
21740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21741fi 21772fi
21742echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 21773{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21743echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 21774echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
21744if test $ac_cv_type_uint64_t = yes; then 21775if test $ac_cv_type_uint64_t = yes; then
21745 and64="(u_int64_t too)" 21776 and64="(u_int64_t too)"
21746else 21777else
21747 and64="" 21778 and64=""
21748fi 21779fi
21749 21780
21750 echo "$as_me:$LINENO: result: ... seen our u_int32_t in $i $and64" >&5 21781 { echo "$as_me:$LINENO: result: ... seen our u_int32_t in $i $and64" >&5
21751echo "${ECHO_T}... seen our u_int32_t in $i $and64" >&6 21782echo "${ECHO_T}... seen our u_int32_t in $i $and64" >&6; }
21752 break; 21783 break;
21753 done 21784 done
21754 fi 21785 fi
21755 fi 21786 fi
21756 21787
21757# ----------------- DONE inttypes.h checks MAYBE C basic types -------- 21788# ----------------- DONE inttypes.h checks MAYBE C basic types --------
21758 21789
21759if test "$ac_cv_header_stdint_x" = "no-file" ; then 21790if test "$ac_cv_header_stdint_x" = "no-file" ; then
21760 echo "$as_me:$LINENO: checking that size of char is " >&5 21791 { echo "$as_me:$LINENO: checking that size of char is " >&5
21761echo $ECHO_N "checking that size of char is ... $ECHO_C" >&6 21792echo $ECHO_N "checking that size of char is ... $ECHO_C" >&6; }
21762 cat >conftest.$ac_ext <<_ACEOF 21793 cat >conftest.$ac_ext <<_ACEOF
21763/* confdefs.h. */ 21794/* confdefs.h. */
21764_ACEOF 21795_ACEOF
21765cat confdefs.h >>conftest.$ac_ext 21796cat confdefs.h >>conftest.$ac_ext
21766cat >>conftest.$ac_ext <<_ACEOF 21797cat >>conftest.$ac_ext <<_ACEOF
21773 ; 21804 ;
21774 return 0; 21805 return 0;
21775} 21806}
21776_ACEOF 21807_ACEOF
21777rm -f conftest.$ac_objext 21808rm -f conftest.$ac_objext
21809if { (ac_try="$ac_compile"
21810case "(($ac_try" in
21811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21812 *) ac_try_echo=$ac_try;;
21813esac
21778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval $ac_compile) 2>conftest.er1 21815 (eval "$ac_compile") 2>conftest.er1
21780 ac_status=$? 21816 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err 21817 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1 21818 rm -f conftest.er1
21783 cat conftest.err >&5 21819 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && 21821 (exit $ac_status); } && {
21786 { ac_try='test -z "$ac_c_werror_flag" 21822 test -z "$ac_c_werror_flag" ||
21787 || test ! -s conftest.err' 21823 test ! -s conftest.err
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21824 } && test -s conftest.$ac_objext; then
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try='test -s conftest.$ac_objext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 : 21825 :
21800else 21826else
21801 echo "$as_me: failed program was:" >&5 21827 echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5 21828sed 's/^/| /' conftest.$ac_ext >&5
21803 21829
21804{ { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5 21830 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5
21805echo "$as_me: error: can not build a default inttypes.h" >&2;} 21831echo "$as_me: error: can not build a default inttypes.h" >&2;}
21806 { (exit 1); exit 1; }; } 21832 { (exit 1); exit 1; }; }
21807fi 21833fi
21834
21808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 echo "$as_me:$LINENO: result: yes" >&5 21836 { echo "$as_me:$LINENO: result: yes" >&5
21810echo "${ECHO_T}yes" >&6 21837echo "${ECHO_T}yes" >&6; }
21811 echo "$as_me:$LINENO: checking that size of short is " >&5 21838 { echo "$as_me:$LINENO: checking that size of short is " >&5
21812echo $ECHO_N "checking that size of short is ... $ECHO_C" >&6 21839echo $ECHO_N "checking that size of short is ... $ECHO_C" >&6; }
21813 cat >conftest.$ac_ext <<_ACEOF 21840 cat >conftest.$ac_ext <<_ACEOF
21814/* confdefs.h. */ 21841/* confdefs.h. */
21815_ACEOF 21842_ACEOF
21816cat confdefs.h >>conftest.$ac_ext 21843cat confdefs.h >>conftest.$ac_ext
21817cat >>conftest.$ac_ext <<_ACEOF 21844cat >>conftest.$ac_ext <<_ACEOF
21824 ; 21851 ;
21825 return 0; 21852 return 0;
21826} 21853}
21827_ACEOF 21854_ACEOF
21828rm -f conftest.$ac_objext 21855rm -f conftest.$ac_objext
21856if { (ac_try="$ac_compile"
21857case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21860esac
21829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval $ac_compile) 2>conftest.er1 21862 (eval "$ac_compile") 2>conftest.er1
21831 ac_status=$? 21863 ac_status=$?
21832 grep -v '^ *+' conftest.er1 >conftest.err 21864 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1 21865 rm -f conftest.er1
21834 cat conftest.err >&5 21866 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } && 21868 (exit $ac_status); } && {
21837 { ac_try='test -z "$ac_c_werror_flag" 21869 test -z "$ac_c_werror_flag" ||
21838 || test ! -s conftest.err' 21870 test ! -s conftest.err
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21871 } && test -s conftest.$ac_objext; then
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest.$ac_objext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 : 21872 :
21851else 21873else
21852 echo "$as_me: failed program was:" >&5 21874 echo "$as_me: failed program was:" >&5
21853sed 's/^/| /' conftest.$ac_ext >&5 21875sed 's/^/| /' conftest.$ac_ext >&5
21854 21876
21855{ { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5 21877 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5
21856echo "$as_me: error: can not build a default inttypes.h" >&2;} 21878echo "$as_me: error: can not build a default inttypes.h" >&2;}
21857 { (exit 1); exit 1; }; } 21879 { (exit 1); exit 1; }; }
21858fi 21880fi
21881
21859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 echo "$as_me:$LINENO: result: yes" >&5 21883 { echo "$as_me:$LINENO: result: yes" >&5
21861echo "${ECHO_T}yes" >&6 21884echo "${ECHO_T}yes" >&6; }
21862 echo "$as_me:$LINENO: checking that size of int is " >&5 21885 { echo "$as_me:$LINENO: checking that size of int is " >&5
21863echo $ECHO_N "checking that size of int is ... $ECHO_C" >&6 21886echo $ECHO_N "checking that size of int is ... $ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF 21887 cat >conftest.$ac_ext <<_ACEOF
21865/* confdefs.h. */ 21888/* confdefs.h. */
21866_ACEOF 21889_ACEOF
21867cat confdefs.h >>conftest.$ac_ext 21890cat confdefs.h >>conftest.$ac_ext
21868cat >>conftest.$ac_ext <<_ACEOF 21891cat >>conftest.$ac_ext <<_ACEOF
21875 ; 21898 ;
21876 return 0; 21899 return 0;
21877} 21900}
21878_ACEOF 21901_ACEOF
21879rm -f conftest.$ac_objext 21902rm -f conftest.$ac_objext
21903if { (ac_try="$ac_compile"
21904case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907esac
21880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval $ac_compile) 2>conftest.er1 21909 (eval "$ac_compile") 2>conftest.er1
21882 ac_status=$? 21910 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err 21911 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1 21912 rm -f conftest.er1
21885 cat conftest.err >&5 21913 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && 21915 (exit $ac_status); } && {
21888 { ac_try='test -z "$ac_c_werror_flag" 21916 test -z "$ac_c_werror_flag" ||
21889 || test ! -s conftest.err' 21917 test ! -s conftest.err
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21918 } && test -s conftest.$ac_objext; then
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 : 21919 :
21902else 21920else
21903 echo "$as_me: failed program was:" >&5 21921 echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5 21922sed 's/^/| /' conftest.$ac_ext >&5
21905 21923
21906{ { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5 21924 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5
21907echo "$as_me: error: can not build a default inttypes.h" >&2;} 21925echo "$as_me: error: can not build a default inttypes.h" >&2;}
21908 { (exit 1); exit 1; }; } 21926 { (exit 1); exit 1; }; }
21909fi 21927fi
21928
21910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 echo "$as_me:$LINENO: result: yes" >&5 21930 { echo "$as_me:$LINENO: result: yes" >&5
21912echo "${ECHO_T}yes" >&6 21931echo "${ECHO_T}yes" >&6; }
21913 echo "$as_me:$LINENO: checking that size of long is " >&5 21932 { echo "$as_me:$LINENO: checking that size of long is " >&5
21914echo $ECHO_N "checking that size of long is ... $ECHO_C" >&6 21933echo $ECHO_N "checking that size of long is ... $ECHO_C" >&6; }
21915 cat >conftest.$ac_ext <<_ACEOF 21934 cat >conftest.$ac_ext <<_ACEOF
21916/* confdefs.h. */ 21935/* confdefs.h. */
21917_ACEOF 21936_ACEOF
21918cat confdefs.h >>conftest.$ac_ext 21937cat confdefs.h >>conftest.$ac_ext
21919cat >>conftest.$ac_ext <<_ACEOF 21938cat >>conftest.$ac_ext <<_ACEOF
21926 ; 21945 ;
21927 return 0; 21946 return 0;
21928} 21947}
21929_ACEOF 21948_ACEOF
21930rm -f conftest.$ac_objext 21949rm -f conftest.$ac_objext
21950if { (ac_try="$ac_compile"
21951case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954esac
21931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932 (eval $ac_compile) 2>conftest.er1 21956 (eval "$ac_compile") 2>conftest.er1
21933 ac_status=$? 21957 ac_status=$?
21934 grep -v '^ *+' conftest.er1 >conftest.err 21958 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1 21959 rm -f conftest.er1
21936 cat conftest.err >&5 21960 cat conftest.err >&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && 21962 (exit $ac_status); } && {
21939 { ac_try='test -z "$ac_c_werror_flag" 21963 test -z "$ac_c_werror_flag" ||
21940 || test ! -s conftest.err' 21964 test ! -s conftest.err
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21965 } && test -s conftest.$ac_objext; then
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; } &&
21946 { ac_try='test -s conftest.$ac_objext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 : 21966 :
21953else 21967else
21954 echo "$as_me: failed program was:" >&5 21968 echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5 21969sed 's/^/| /' conftest.$ac_ext >&5
21956 21970
21957{ { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5 21971 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5
21958echo "$as_me: error: can not build a default inttypes.h" >&2;} 21972echo "$as_me: error: can not build a default inttypes.h" >&2;}
21959 { (exit 1); exit 1; }; } 21973 { (exit 1); exit 1; }; }
21960fi 21974fi
21975
21961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 echo "$as_me:$LINENO: result: yes" >&5 21977 { echo "$as_me:$LINENO: result: yes" >&5
21963echo "${ECHO_T}yes" >&6 21978echo "${ECHO_T}yes" >&6; }
21964 echo "$as_me:$LINENO: checking that size of void* is " >&5 21979 { echo "$as_me:$LINENO: checking that size of void* is " >&5
21965echo $ECHO_N "checking that size of void* is ... $ECHO_C" >&6 21980echo $ECHO_N "checking that size of void* is ... $ECHO_C" >&6; }
21966 cat >conftest.$ac_ext <<_ACEOF 21981 cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */ 21982/* confdefs.h. */
21968_ACEOF 21983_ACEOF
21969cat confdefs.h >>conftest.$ac_ext 21984cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF 21985cat >>conftest.$ac_ext <<_ACEOF
21977 ; 21992 ;
21978 return 0; 21993 return 0;
21979} 21994}
21980_ACEOF 21995_ACEOF
21981rm -f conftest.$ac_objext 21996rm -f conftest.$ac_objext
21997if { (ac_try="$ac_compile"
21998case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001esac
21982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval $ac_compile) 2>conftest.er1 22003 (eval "$ac_compile") 2>conftest.er1
21984 ac_status=$? 22004 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err 22005 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1 22006 rm -f conftest.er1
21987 cat conftest.err >&5 22007 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && 22009 (exit $ac_status); } && {
21990 { ac_try='test -z "$ac_c_werror_flag" 22010 test -z "$ac_c_werror_flag" ||
21991 || test ! -s conftest.err' 22011 test ! -s conftest.err
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22012 } && test -s conftest.$ac_objext; then
21993 (eval $ac_try) 2>&5
21994 ac_status=$?
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; } &&
21997 { ac_try='test -s conftest.$ac_objext'
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22003 : 22013 :
22004else 22014else
22005 echo "$as_me: failed program was:" >&5 22015 echo "$as_me: failed program was:" >&5
22006sed 's/^/| /' conftest.$ac_ext >&5 22016sed 's/^/| /' conftest.$ac_ext >&5
22007 22017
22008{ { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5 22018 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5
22009echo "$as_me: error: can not build a default inttypes.h" >&2;} 22019echo "$as_me: error: can not build a default inttypes.h" >&2;}
22010 { (exit 1); exit 1; }; } 22020 { (exit 1); exit 1; }; }
22011fi 22021fi
22022
22012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 echo "$as_me:$LINENO: result: yes" >&5 22024 { echo "$as_me:$LINENO: result: yes" >&5
22014echo "${ECHO_T}yes" >&6 22025echo "${ECHO_T}yes" >&6; }
22015 ac_cv_header_stdint_test="yes" 22026 ac_cv_header_stdint_test="yes"
22016else 22027else
22017 ac_cv_header_stdint_test="no" 22028 ac_cv_header_stdint_test="no"
22018fi 22029fi
22019 22030
22020# ----------------- DONE inttypes.h checks START header ------------- 22031# ----------------- DONE inttypes.h checks START header -------------
22021_ac_stdint_h=`echo "_$ac_stdint_h" | $as_tr_cpp` 22032_ac_stdint_h=`echo "_$ac_stdint_h" | $as_tr_cpp`
22022echo "$as_me:$LINENO: result: creating $ac_stdint_h : $_ac_stdint_h" >&5 22033{ echo "$as_me:$LINENO: result: creating $ac_stdint_h : $_ac_stdint_h" >&5
22023echo "${ECHO_T}creating $ac_stdint_h : $_ac_stdint_h" >&6 22034echo "${ECHO_T}creating $ac_stdint_h : $_ac_stdint_h" >&6; }
22024echo "#ifndef" $_ac_stdint_h >$ac_stdint_h 22035echo "#ifndef" $_ac_stdint_h >$ac_stdint_h
22025echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h 22036echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h
22026echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h 22037echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h
22027echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h 22038echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h
22028if test "$GCC" = "yes" ; then 22039if test "$GCC" = "yes" ; then
22044fi 22055fi
22045 22056
22046# ----------------- See if int_least and int_fast types are present 22057# ----------------- See if int_least and int_fast types are present
22047unset ac_cv_type_int_least32_t 22058unset ac_cv_type_int_least32_t
22048unset ac_cv_type_int_fast32_t 22059unset ac_cv_type_int_fast32_t
22049echo "$as_me:$LINENO: checking for int_least32_t" >&5 22060{ echo "$as_me:$LINENO: checking for int_least32_t" >&5
22050echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 22061echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
22051if test "${ac_cv_type_int_least32_t+set}" = set; then 22062if test "${ac_cv_type_int_least32_t+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6 22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22053else 22064else
22054 cat >conftest.$ac_ext <<_ACEOF 22065 cat >conftest.$ac_ext <<_ACEOF
22055/* confdefs.h. */ 22066/* confdefs.h. */
22057cat confdefs.h >>conftest.$ac_ext 22068cat confdefs.h >>conftest.$ac_ext
22058cat >>conftest.$ac_ext <<_ACEOF 22069cat >>conftest.$ac_ext <<_ACEOF
22059/* end confdefs.h. */ 22070/* end confdefs.h. */
22060#include <$ac_cv_header_stdint> 22071#include <$ac_cv_header_stdint>
22061 22072
22073typedef int_least32_t ac__type_new_;
22062int 22074int
22063main () 22075main ()
22064{ 22076{
22065if ((int_least32_t *) 0) 22077if ((ac__type_new_ *) 0)
22066 return 0; 22078 return 0;
22067if (sizeof (int_least32_t)) 22079if (sizeof (ac__type_new_))
22068 return 0; 22080 return 0;
22069 ; 22081 ;
22070 return 0; 22082 return 0;
22071} 22083}
22072_ACEOF 22084_ACEOF
22073rm -f conftest.$ac_objext 22085rm -f conftest.$ac_objext
22086if { (ac_try="$ac_compile"
22087case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090esac
22074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval $ac_compile) 2>conftest.er1 22092 (eval "$ac_compile") 2>conftest.er1
22076 ac_status=$? 22093 ac_status=$?
22077 grep -v '^ *+' conftest.er1 >conftest.err 22094 grep -v '^ *+' conftest.er1 >conftest.err
22078 rm -f conftest.er1 22095 rm -f conftest.er1
22079 cat conftest.err >&5 22096 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && 22098 (exit $ac_status); } && {
22082 { ac_try='test -z "$ac_c_werror_flag" 22099 test -z "$ac_c_werror_flag" ||
22083 || test ! -s conftest.err' 22100 test ! -s conftest.err
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22101 } && test -s conftest.$ac_objext; then
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest.$ac_objext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 ac_cv_type_int_least32_t=yes 22102 ac_cv_type_int_least32_t=yes
22096else 22103else
22097 echo "$as_me: failed program was:" >&5 22104 echo "$as_me: failed program was:" >&5
22098sed 's/^/| /' conftest.$ac_ext >&5 22105sed 's/^/| /' conftest.$ac_ext >&5
22099 22106
22100ac_cv_type_int_least32_t=no 22107 ac_cv_type_int_least32_t=no
22101fi 22108fi
22109
22102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103fi 22111fi
22104echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 22112{ echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
22105echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 22113echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
22106 22114
22107echo "$as_me:$LINENO: checking for int_fast32_t" >&5 22115{ echo "$as_me:$LINENO: checking for int_fast32_t" >&5
22108echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 22116echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
22109if test "${ac_cv_type_int_fast32_t+set}" = set; then 22117if test "${ac_cv_type_int_fast32_t+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6 22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22111else 22119else
22112 cat >conftest.$ac_ext <<_ACEOF 22120 cat >conftest.$ac_ext <<_ACEOF
22113/* confdefs.h. */ 22121/* confdefs.h. */
22115cat confdefs.h >>conftest.$ac_ext 22123cat confdefs.h >>conftest.$ac_ext
22116cat >>conftest.$ac_ext <<_ACEOF 22124cat >>conftest.$ac_ext <<_ACEOF
22117/* end confdefs.h. */ 22125/* end confdefs.h. */
22118#include<$ac_cv_header_stdint> 22126#include<$ac_cv_header_stdint>
22119 22127
22128typedef int_fast32_t ac__type_new_;
22120int 22129int
22121main () 22130main ()
22122{ 22131{
22123if ((int_fast32_t *) 0) 22132if ((ac__type_new_ *) 0)
22124 return 0; 22133 return 0;
22125if (sizeof (int_fast32_t)) 22134if (sizeof (ac__type_new_))
22126 return 0; 22135 return 0;
22127 ; 22136 ;
22128 return 0; 22137 return 0;
22129} 22138}
22130_ACEOF 22139_ACEOF
22131rm -f conftest.$ac_objext 22140rm -f conftest.$ac_objext
22141if { (ac_try="$ac_compile"
22142case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145esac
22132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval $ac_compile) 2>conftest.er1 22147 (eval "$ac_compile") 2>conftest.er1
22134 ac_status=$? 22148 ac_status=$?
22135 grep -v '^ *+' conftest.er1 >conftest.err 22149 grep -v '^ *+' conftest.er1 >conftest.err
22136 rm -f conftest.er1 22150 rm -f conftest.er1
22137 cat conftest.err >&5 22151 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && 22153 (exit $ac_status); } && {
22140 { ac_try='test -z "$ac_c_werror_flag" 22154 test -z "$ac_c_werror_flag" ||
22141 || test ! -s conftest.err' 22155 test ! -s conftest.err
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22156 } && test -s conftest.$ac_objext; then
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; } &&
22147 { ac_try='test -s conftest.$ac_objext'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 ac_cv_type_int_fast32_t=yes 22157 ac_cv_type_int_fast32_t=yes
22154else 22158else
22155 echo "$as_me: failed program was:" >&5 22159 echo "$as_me: failed program was:" >&5
22156sed 's/^/| /' conftest.$ac_ext >&5 22160sed 's/^/| /' conftest.$ac_ext >&5
22157 22161
22158ac_cv_type_int_fast32_t=no 22162 ac_cv_type_int_fast32_t=no
22159fi 22163fi
22164
22160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161fi 22166fi
22162echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 22167{ echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
22163echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 22168echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
22164 22169
22165 22170
22166if test "$ac_cv_header_stdint" != "stddef.h" ; then 22171if test "$ac_cv_header_stdint" != "stddef.h" ; then
22167if test "$ac_cv_header_stdint" != "stdint.h" ; then 22172if test "$ac_cv_header_stdint" != "stdint.h" ; then
22168echo "$as_me:$LINENO: result: ..adding include stddef.h" >&5 22173{ echo "$as_me:$LINENO: result: ..adding include stddef.h" >&5
22169echo "${ECHO_T}..adding include stddef.h" >&6 22174echo "${ECHO_T}..adding include stddef.h" >&6; }
22170 echo "#include <stddef.h>" >>$ac_stdint_h 22175 echo "#include <stddef.h>" >>$ac_stdint_h
22171fi ; fi 22176fi ; fi
22172echo "$as_me:$LINENO: result: ..adding include $ac_cv_header_stdint" >&5 22177{ echo "$as_me:$LINENO: result: ..adding include $ac_cv_header_stdint" >&5
22173echo "${ECHO_T}..adding include $ac_cv_header_stdint" >&6 22178echo "${ECHO_T}..adding include $ac_cv_header_stdint" >&6; }
22174 echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h 22179 echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h
22175echo "" >>$ac_stdint_h 22180echo "" >>$ac_stdint_h
22176 22181
22177# ----------------- DONE header START basic int types ------------- 22182# ----------------- DONE header START basic int types -------------
22178if test "$ac_cv_header_stdint_x" = "no-file" ; then 22183if test "$ac_cv_header_stdint_x" = "no-file" ; then
22179 echo "$as_me:$LINENO: result: ... need to look at C basic types" >&5 22184 { echo "$as_me:$LINENO: result: ... need to look at C basic types" >&5
22180echo "${ECHO_T}... need to look at C basic types" >&6 22185echo "${ECHO_T}... need to look at C basic types" >&6; }
22181else 22186else
22182 echo "$as_me:$LINENO: result: ... seen good stdint.h inttypes" >&5 22187 { echo "$as_me:$LINENO: result: ... seen good stdint.h inttypes" >&5
22183echo "${ECHO_T}... seen good stdint.h inttypes" >&6 22188echo "${ECHO_T}... seen good stdint.h inttypes" >&6; }
22184fi 22189fi
22185 22190
22186if test "$ac_cv_header_stdint_u" != "no-file" ; then 22191if test "$ac_cv_header_stdint_u" != "no-file" ; then
22187 echo "$as_me:$LINENO: result: ... seen bsd/sysv typedefs" >&5 22192 { echo "$as_me:$LINENO: result: ... seen bsd/sysv typedefs" >&5
22188echo "${ECHO_T}... seen bsd/sysv typedefs" >&6 22193echo "${ECHO_T}... seen bsd/sysv typedefs" >&6; }
22189 cat >>$ac_stdint_h <<EOF 22194 cat >>$ac_stdint_h <<EOF
22190 22195
22191/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 22196/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
22192typedef u_int8_t uint8_t; 22197typedef u_int8_t uint8_t;
22193typedef u_int16_t uint16_t; 22198typedef u_int16_t uint16_t;
22211 cat >>$ac_stdint_h <<EOF 22216 cat >>$ac_stdint_h <<EOF
22212/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */ 22217/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */
22213EOF 22218EOF
22214 t="typedefs for a" 22219 t="typedefs for a"
22215 case "$ac_cv_sizeof_X" in 22220 case "$ac_cv_sizeof_X" in
22216 1:2:2:2:4) echo "$as_me:$LINENO: result: ..adding $t normal 16-bit system" >&5 22221 1:2:2:2:4) { echo "$as_me:$LINENO: result: ..adding $t normal 16-bit system" >&5
22217echo "${ECHO_T}..adding $t normal 16-bit system" >&6 22222echo "${ECHO_T}..adding $t normal 16-bit system" >&6; }
22218 cat >>$ac_stdint_h <<EOF 22223 cat >>$ac_stdint_h <<EOF
22219/* a normal 16-bit system */ 22224/* a normal 16-bit system */
22220typedef unsigned char uint8_t; 22225typedef unsigned char uint8_t;
22221typedef unsigned short uint16_t; 22226typedef unsigned short uint16_t;
22222typedef unsigned long uint32_t; 22227typedef unsigned long uint32_t;
22226typedef short int16_t; 22231typedef short int16_t;
22227typedef long int32_t; 22232typedef long int32_t;
22228#endif 22233#endif
22229EOF 22234EOF
22230;; 22235;;
22231 1:2:2:4:4) echo "$as_me:$LINENO: result: ..adding $t 32-bit system derived from a 16-bit" >&5 22236 1:2:2:4:4) { echo "$as_me:$LINENO: result: ..adding $t 32-bit system derived from a 16-bit" >&5
22232echo "${ECHO_T}..adding $t 32-bit system derived from a 16-bit" >&6 22237echo "${ECHO_T}..adding $t 32-bit system derived from a 16-bit" >&6; }
22233 cat >>$ac_stdint_h <<EOF 22238 cat >>$ac_stdint_h <<EOF
22234/* a 32-bit system derived from a 16-bit */ 22239/* a 32-bit system derived from a 16-bit */
22235typedef unsigned char uint8_t; 22240typedef unsigned char uint8_t;
22236typedef unsigned short uint16_t; 22241typedef unsigned short uint16_t;
22237typedef unsigned int uint32_t; 22242typedef unsigned int uint32_t;
22241typedef short int16_t; 22246typedef short int16_t;
22242typedef int int32_t; 22247typedef int int32_t;
22243#endif 22248#endif
22244EOF 22249EOF
22245;; 22250;;
22246 1:2:4:4:4) echo "$as_me:$LINENO: result: ..adding $t normal 32-bit system" >&5 22251 1:2:4:4:4) { echo "$as_me:$LINENO: result: ..adding $t normal 32-bit system" >&5
22247echo "${ECHO_T}..adding $t normal 32-bit system" >&6 22252echo "${ECHO_T}..adding $t normal 32-bit system" >&6; }
22248 cat >>$ac_stdint_h <<EOF 22253 cat >>$ac_stdint_h <<EOF
22249/* a normal 32-bit system */ 22254/* a normal 32-bit system */
22250typedef unsigned char uint8_t; 22255typedef unsigned char uint8_t;
22251typedef unsigned short uint16_t; 22256typedef unsigned short uint16_t;
22252typedef unsigned int uint32_t; 22257typedef unsigned int uint32_t;
22256typedef short int16_t; 22261typedef short int16_t;
22257typedef int int32_t; 22262typedef int int32_t;
22258#endif 22263#endif
22259EOF 22264EOF
22260;; 22265;;
22261 1:2:4:4:8) echo "$as_me:$LINENO: result: ..adding $t 32-bit system prepared for 64-bit" >&5 22266 1:2:4:4:8) { echo "$as_me:$LINENO: result: ..adding $t 32-bit system prepared for 64-bit" >&5
22262echo "${ECHO_T}..adding $t 32-bit system prepared for 64-bit" >&6 22267echo "${ECHO_T}..adding $t 32-bit system prepared for 64-bit" >&6; }
22263 cat >>$ac_stdint_h <<EOF 22268 cat >>$ac_stdint_h <<EOF
22264 22269
22265/* a 32-bit system prepared for 64-bit */ 22270/* a 32-bit system prepared for 64-bit */
22266typedef unsigned char uint8_t; 22271typedef unsigned char uint8_t;
22267typedef unsigned short uint16_t; 22272typedef unsigned short uint16_t;
22272typedef short int16_t; 22277typedef short int16_t;
22273typedef int int32_t; 22278typedef int int32_t;
22274#endif 22279#endif
22275EOF 22280EOF
22276;; 22281;;
22277 1:2:4:8:8) echo "$as_me:$LINENO: result: ..adding $t normal 64-bit system" >&5 22282 1:2:4:8:8) { echo "$as_me:$LINENO: result: ..adding $t normal 64-bit system" >&5
22278echo "${ECHO_T}..adding $t normal 64-bit system" >&6 22283echo "${ECHO_T}..adding $t normal 64-bit system" >&6; }
22279 cat >>$ac_stdint_h <<EOF 22284 cat >>$ac_stdint_h <<EOF
22280 22285
22281/* a normal 64-bit system */ 22286/* a normal 64-bit system */
22282typedef unsigned char uint8_t; 22287typedef unsigned char uint8_t;
22283typedef unsigned short uint16_t; 22288typedef unsigned short uint16_t;
22288typedef short int16_t; 22293typedef short int16_t;
22289typedef int int32_t; 22294typedef int int32_t;
22290#endif 22295#endif
22291EOF 22296EOF
22292;; 22297;;
22293 1:2:4:8:4) echo "$as_me:$LINENO: result: ..adding $t 64-bit system derived from a 32-bit" >&5 22298 1:2:4:8:4) { echo "$as_me:$LINENO: result: ..adding $t 64-bit system derived from a 32-bit" >&5
22294echo "${ECHO_T}..adding $t 64-bit system derived from a 32-bit" >&6 22299echo "${ECHO_T}..adding $t 64-bit system derived from a 32-bit" >&6; }
22295 cat >>$ac_stdint_h <<EOF 22300 cat >>$ac_stdint_h <<EOF
22296 22301
22297/* a 64-bit system derived from a 32-bit system */ 22302/* a 64-bit system derived from a 32-bit system */
22298typedef unsigned char uint8_t; 22303typedef unsigned char uint8_t;
22299typedef unsigned short uint16_t; 22304typedef unsigned short uint16_t;
22315 esac 22320 esac
22316fi 22321fi
22317 22322
22318# ------------- DONE basic int types START int64_t types ------------ 22323# ------------- DONE basic int types START int64_t types ------------
22319if test "$ac_cv_type_uint64_t" = "yes" 22324if test "$ac_cv_type_uint64_t" = "yes"
22320then echo "$as_me:$LINENO: result: ... seen good uint64_t" >&5 22325then { echo "$as_me:$LINENO: result: ... seen good uint64_t" >&5
22321echo "${ECHO_T}... seen good uint64_t" >&6 22326echo "${ECHO_T}... seen good uint64_t" >&6; }
22322 cat >>$ac_stdint_h <<EOF 22327 cat >>$ac_stdint_h <<EOF
22323 22328
22324/* system headers have good uint64_t */ 22329/* system headers have good uint64_t */
22325#ifndef _HAVE_UINT64_T 22330#ifndef _HAVE_UINT64_T
22326#define _HAVE_UINT64_T 22331#define _HAVE_UINT64_T
22327#endif 22332#endif
22328EOF 22333EOF
22329 22334
22330elif test "$ac_cv_type_u_int64_t" = "yes" 22335elif test "$ac_cv_type_u_int64_t" = "yes"
22331then echo "$as_me:$LINENO: result: ..adding typedef u_int64_t uint64_t" >&5 22336then { echo "$as_me:$LINENO: result: ..adding typedef u_int64_t uint64_t" >&5
22332echo "${ECHO_T}..adding typedef u_int64_t uint64_t" >&6 22337echo "${ECHO_T}..adding typedef u_int64_t uint64_t" >&6; }
22333 cat >>$ac_stdint_h <<EOF 22338 cat >>$ac_stdint_h <<EOF
22334 22339
22335/* system headers have an u_int64_t */ 22340/* system headers have an u_int64_t */
22336#ifndef _HAVE_UINT64_T 22341#ifndef _HAVE_UINT64_T
22337#define _HAVE_UINT64_T 22342#define _HAVE_UINT64_T
22338typedef u_int64_t uint64_t; 22343typedef u_int64_t uint64_t;
22339#endif 22344#endif
22340EOF 22345EOF
22341else echo "$as_me:$LINENO: result: ..adding generic uint64_t runtime checks" >&5 22346else { echo "$as_me:$LINENO: result: ..adding generic uint64_t runtime checks" >&5
22342echo "${ECHO_T}..adding generic uint64_t runtime checks" >&6 22347echo "${ECHO_T}..adding generic uint64_t runtime checks" >&6; }
22343 cat >>$ac_stdint_h <<EOF 22348 cat >>$ac_stdint_h <<EOF
22344 22349
22345/* -------------------- 64 BIT GENERIC SECTION -------------------- */ 22350/* -------------------- 64 BIT GENERIC SECTION -------------------- */
22346/* here are some common heuristics using compiler runtime specifics */ 22351/* here are some common heuristics using compiler runtime specifics */
22347#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L 22352#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
22385#endif 22390#endif
22386EOF 22391EOF
22387 22392
22388# plus a default 64-bit for systems that are likely to be 64-bit ready 22393# plus a default 64-bit for systems that are likely to be 64-bit ready
22389 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in 22394 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in
22390 1:2:8:8) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5 22395 1:2:8:8) { echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
22391echo "${ECHO_T}..adding uint64_t default" >&6 22396echo "${ECHO_T}..adding uint64_t default" >&6; }
22392cat >>$ac_stdint_h <<EOF 22397cat >>$ac_stdint_h <<EOF
22393/* DEFAULT: */ 22398/* DEFAULT: */
22394/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */ 22399/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */
22395#ifndef _HAVE_UINT64_T 22400#ifndef _HAVE_UINT64_T
22396#define _HAVE_UINT64_T 22401#define _HAVE_UINT64_T
22397typedef long int64_t; 22402typedef long int64_t;
22398typedef unsigned long uint64_t; 22403typedef unsigned long uint64_t;
22399#endif 22404#endif
22400EOF 22405EOF
22401;; 22406;;
22402 1:2:4:8) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5 22407 1:2:4:8) { echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
22403echo "${ECHO_T}..adding uint64_t default" >&6 22408echo "${ECHO_T}..adding uint64_t default" >&6; }
22404cat >>$ac_stdint_h <<EOF 22409cat >>$ac_stdint_h <<EOF
22405/* DEFAULT: */ 22410/* DEFAULT: */
22406/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */ 22411/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */
22407#ifndef _HAVE_UINT64_T 22412#ifndef _HAVE_UINT64_T
22408#define _HAVE_UINT64_T 22413#define _HAVE_UINT64_T
22409typedef long int64_t; 22414typedef long int64_t;
22410typedef unsigned long uint64_t; 22415typedef unsigned long uint64_t;
22411#endif 22416#endif
22412EOF 22417EOF
22413;; 22418;;
22414 1:2:8:4) echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5 22419 1:2:8:4) { echo "$as_me:$LINENO: result: ..adding uint64_t default" >&5
22415echo "${ECHO_T}..adding uint64_t default" >&6 22420echo "${ECHO_T}..adding uint64_t default" >&6; }
22416cat >>$ac_stdint_h <<EOF 22421cat >>$ac_stdint_h <<EOF
22417/* DEFAULT: */ 22422/* DEFAULT: */
22418/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */ 22423/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */
22419#ifndef _HAVE_UINT64_T 22424#ifndef _HAVE_UINT64_T
22420#define _HAVE_UINT64_T 22425#define _HAVE_UINT64_T
22470typedef unsigned long uintptr_t; 22475typedef unsigned long uintptr_t;
22471typedef long intptr_t; 22476typedef long intptr_t;
22472EOF 22477EOF
22473;; 22478;;
22474 esac 22479 esac
22475echo "$as_me:$LINENO: result: ..adding typedef $a intptr_t" >&5 22480{ echo "$as_me:$LINENO: result: ..adding typedef $a intptr_t" >&5
22476echo "${ECHO_T}..adding typedef $a intptr_t" >&6 22481echo "${ECHO_T}..adding typedef $a intptr_t" >&6; }
22477fi 22482fi
22478 22483
22479# ------------- DONE intptr types START int_least types ------------ 22484# ------------- DONE intptr types START int_least types ------------
22480if test "$ac_cv_type_int_least32_t" = "no"; then 22485if test "$ac_cv_type_int_least32_t" = "no"; then
22481echo "$as_me:$LINENO: result: ..adding generic int_least-types" >&5 22486{ echo "$as_me:$LINENO: result: ..adding generic int_least-types" >&5
22482echo "${ECHO_T}..adding generic int_least-types" >&6 22487echo "${ECHO_T}..adding generic int_least-types" >&6; }
22483 cat >>$ac_stdint_h <<EOF 22488 cat >>$ac_stdint_h <<EOF
22484 22489
22485/* --------------GENERIC INT_LEAST ------------------ */ 22490/* --------------GENERIC INT_LEAST ------------------ */
22486 22491
22487typedef int8_t int_least8_t; 22492typedef int8_t int_least8_t;
22500EOF 22505EOF
22501fi 22506fi
22502 22507
22503# ------------- DONE intptr types START int_least types ------------ 22508# ------------- DONE intptr types START int_least types ------------
22504if test "$ac_cv_type_int_fast32_t" = "no"; then 22509if test "$ac_cv_type_int_fast32_t" = "no"; then
22505echo "$as_me:$LINENO: result: ..adding generic int_fast-types" >&5 22510{ echo "$as_me:$LINENO: result: ..adding generic int_fast-types" >&5
22506echo "${ECHO_T}..adding generic int_fast-types" >&6 22511echo "${ECHO_T}..adding generic int_fast-types" >&6; }
22507 cat >>$ac_stdint_h <<EOF 22512 cat >>$ac_stdint_h <<EOF
22508 22513
22509/* --------------GENERIC INT_FAST ------------------ */ 22514/* --------------GENERIC INT_FAST ------------------ */
22510 22515
22511typedef int8_t int_fast8_t; 22516typedef int8_t int_fast8_t;
22535typedef unsigned long uintmax_t; 22540typedef unsigned long uintmax_t;
22536#endif 22541#endif
22537EOF 22542EOF
22538fi 22543fi
22539 22544
22540echo "$as_me:$LINENO: result: ... DONE $ac_stdint_h" >&5 22545{ echo "$as_me:$LINENO: result: ... DONE $ac_stdint_h" >&5
22541echo "${ECHO_T}... DONE $ac_stdint_h" >&6 22546echo "${ECHO_T}... DONE $ac_stdint_h" >&6; }
22542 cat >>$ac_stdint_h <<EOF 22547 cat >>$ac_stdint_h <<EOF
22543 22548
22544 /* once */ 22549 /* once */
22545#endif 22550#endif
22546#endif 22551#endif
22576 22581
22577#------------------------------------------------------------------------------- 22582#-------------------------------------------------------------------------------
22578# __FUNCTION__ 22583# __FUNCTION__
22579#------------------------------------------------------------------------------- 22584#-------------------------------------------------------------------------------
22580 22585
22581echo "$as_me:$LINENO: checking __FUNCTION__" >&5 22586{ echo "$as_me:$LINENO: checking __FUNCTION__" >&5
22582echo $ECHO_N "checking __FUNCTION__... $ECHO_C" >&6 22587echo $ECHO_N "checking __FUNCTION__... $ECHO_C" >&6; }
22583func=none 22588func=none
22584cat >conftest.$ac_ext <<_ACEOF 22589cat >conftest.$ac_ext <<_ACEOF
22585int x() { f(__FUNCTION__); } 22590int x() { f(__FUNCTION__); }
22586_ACEOF 22591_ACEOF
22587rm -f conftest.$ac_objext 22592rm -f conftest.$ac_objext
22593if { (ac_try="$ac_compile"
22594case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597esac
22588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval $ac_compile) 2>conftest.er1 22599 (eval "$ac_compile") 2>conftest.er1
22590 ac_status=$? 22600 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err 22601 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1 22602 rm -f conftest.er1
22593 cat conftest.err >&5 22603 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && 22605 (exit $ac_status); } && {
22596 { ac_try='test -z "$ac_c_werror_flag" 22606 test -z "$ac_c_werror_flag" ||
22597 || test ! -s conftest.err' 22607 test ! -s conftest.err
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22608 } && test -s conftest.$ac_objext; then
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } &&
22603 { ac_try='test -s conftest.$ac_objext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 echo "$as_me:$LINENO: result: __FUNCTION__" >&5 22609 { echo "$as_me:$LINENO: result: __FUNCTION__" >&5
22610echo "${ECHO_T}__FUNCTION__" >&6 22610echo "${ECHO_T}__FUNCTION__" >&6; }
22611 22611
22612cat >>confdefs.h <<\_ACEOF 22612cat >>confdefs.h <<\_ACEOF
22613#define HAVE___FUNCTION__ 22613#define HAVE___FUNCTION__
22614_ACEOF 22614_ACEOF
22615 22615
22616else 22616else
22617 echo "$as_me: failed program was:" >&5 22617 echo "$as_me: failed program was:" >&5
22618sed 's/^/| /' conftest.$ac_ext >&5 22618sed 's/^/| /' conftest.$ac_ext >&5
22619 22619
22620cat >conftest.$ac_ext <<_ACEOF 22620 cat >conftest.$ac_ext <<_ACEOF
22621int x() { f(__func__); } 22621int x() { f(__func__); }
22622_ACEOF 22622_ACEOF
22623rm -f conftest.$ac_objext 22623rm -f conftest.$ac_objext
22624if { (ac_try="$ac_compile"
22625case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628esac
22624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625 (eval $ac_compile) 2>conftest.er1 22630 (eval "$ac_compile") 2>conftest.er1
22626 ac_status=$? 22631 ac_status=$?
22627 grep -v '^ *+' conftest.er1 >conftest.err 22632 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1 22633 rm -f conftest.er1
22629 cat conftest.err >&5 22634 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && 22636 (exit $ac_status); } && {
22632 { ac_try='test -z "$ac_c_werror_flag" 22637 test -z "$ac_c_werror_flag" ||
22633 || test ! -s conftest.err' 22638 test ! -s conftest.err
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22639 } && test -s conftest.$ac_objext; then
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; } &&
22639 { ac_try='test -s conftest.$ac_objext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 echo "$as_me:$LINENO: result: __func__" >&5 22640 { echo "$as_me:$LINENO: result: __func__" >&5
22646echo "${ECHO_T}__func__" >&6 22641echo "${ECHO_T}__func__" >&6; }
22647 22642
22648cat >>confdefs.h <<\_ACEOF 22643cat >>confdefs.h <<\_ACEOF
22649#define HAVE___FUNC__ 22644#define HAVE___FUNC__
22650_ACEOF 22645_ACEOF
22651 22646
22652else 22647else
22653 echo "$as_me: failed program was:" >&5 22648 echo "$as_me: failed program was:" >&5
22654sed 's/^/| /' conftest.$ac_ext >&5 22649sed 's/^/| /' conftest.$ac_ext >&5
22655 22650
22651
22656fi 22652fi
22653
22657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658fi 22655fi
22656
22659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660 22658
22661 22659
22662#------------------------------------------------------------------------------- 22660#-------------------------------------------------------------------------------
22663# Setup build directories 22661# Setup build directories
22664#------------------------------------------------------------------------------- 22662#-------------------------------------------------------------------------------
22686 22684
22687#------------------------------------------------------------------------------- 22685#-------------------------------------------------------------------------------
22688# Check to see if we want to link libbind 22686# Check to see if we want to link libbind
22689#------------------------------------------------------------------------------- 22687#-------------------------------------------------------------------------------
22690 22688
22691echo "$as_me:$LINENO: checking whether to link libbind is eanbled" >&5 22689{ echo "$as_me:$LINENO: checking whether to link libbind is eanbled" >&5
22692echo $ECHO_N "checking whether to link libbind is eanbled... $ECHO_C" >&6 22690echo $ECHO_N "checking whether to link libbind is eanbled... $ECHO_C" >&6; }
22693# Check whether --enable-libbind or --disable-libbind was given. 22691# Check whether --enable-libbind was given.
22694if test "${enable_libbind+set}" = set; then 22692if test "${enable_libbind+set}" = set; then
22695 enableval="$enable_libbind" 22693 enableval=$enable_libbind; case "${enableval}" in
22696 case "${enableval}" in
22697 yes) 22694 yes)
22698 libbind=true 22695 libbind=true
22699 echo "$as_me:$LINENO: result: yes" >&5 22696 { echo "$as_me:$LINENO: result: yes" >&5
22700echo "${ECHO_T}yes" >&6 22697echo "${ECHO_T}yes" >&6; }
22701 ;; 22698 ;;
22702 no) 22699 no)
22703 libbind=false 22700 libbind=false
22704 echo "$as_me:$LINENO: result: no" >&5 22701 { echo "$as_me:$LINENO: result: no" >&5
22705echo "${ECHO_T}no" >&6 22702echo "${ECHO_T}no" >&6; }
22706 ;; 22703 ;;
22707 *) 22704 *)
22708 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libbind" >&5 22705 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libbind" >&5
22709echo "$as_me: error: bad value ${enableval} for --enable-libbind" >&2;} 22706echo "$as_me: error: bad value ${enableval} for --enable-libbind" >&2;}
22710 { (exit 1); exit 1; }; } 22707 { (exit 1); exit 1; }; }
22711 ;; 22708 ;;
22712esac 22709esac
22713else 22710else
22711 libbind=false
22714 libbind=false echo "$as_me:$LINENO: result: no" >&5 22712{ echo "$as_me:$LINENO: result: no" >&5
22715echo "${ECHO_T}no" >&6 22713echo "${ECHO_T}no" >&6; }
22716fi; 22714fi
22715
22717 22716
22718if test "$libbind" = "true"; then 22717if test "$libbind" = "true"; then
22719 LIBSPF_RESOLV_LIB="-lbind" 22718 LIBSPF_RESOLV_LIB="-lbind"
22720fi 22719fi
22721 22720
22729 22728
22730 22729
22731for ac_func in res_query 22730for ac_func in res_query
22732do 22731do
22733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22734echo "$as_me:$LINENO: checking for $ac_func" >&5 22733{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22736if eval "test \"\${$as_ac_var+set}\" = set"; then 22735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6 22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22738else 22737else
22739 cat >conftest.$ac_ext <<_ACEOF 22738 cat >conftest.$ac_ext <<_ACEOF
22740/* confdefs.h. */ 22739/* confdefs.h. */
22741_ACEOF 22740_ACEOF
22757# include <assert.h> 22756# include <assert.h>
22758#endif 22757#endif
22759 22758
22760#undef $ac_func 22759#undef $ac_func
22761 22760
22762/* Override any gcc2 internal prototype to avoid an error. */ 22761/* Override any GCC internal prototype to avoid an error.
22762 Use char because int might match the return type of a GCC
22763 builtin and then its argument prototype would still apply. */
22763#ifdef __cplusplus 22764#ifdef __cplusplus
22764extern "C" 22765extern "C"
22765{
22766#endif 22766#endif
22767/* We use char because int might match the return type of a gcc2
22768 builtin and then its argument prototype would still apply. */
22769char $ac_func (); 22767char $ac_func ();
22770/* The GNU C library defines this for functions which it implements 22768/* The GNU C library defines this for functions which it implements
22771 to always fail with ENOSYS. Some functions are actually named 22769 to always fail with ENOSYS. Some functions are actually named
22772 something starting with __ and the normal name is an alias. */ 22770 something starting with __ and the normal name is an alias. */
22773#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22771#if defined __stub_$ac_func || defined __stub___$ac_func
22774choke me 22772choke me
22775#else
22776char (*f) () = $ac_func;
22777#endif
22778#ifdef __cplusplus
22779}
22780#endif 22773#endif
22781 22774
22782int 22775int
22783main () 22776main ()
22784{ 22777{
22785return f != $ac_func; 22778return $ac_func ();
22786 ; 22779 ;
22787 return 0; 22780 return 0;
22788} 22781}
22789_ACEOF 22782_ACEOF
22790rm -f conftest.$ac_objext conftest$ac_exeext 22783rm -f conftest.$ac_objext conftest$ac_exeext
22784if { (ac_try="$ac_link"
22785case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22788esac
22791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval $ac_link) 2>conftest.er1 22790 (eval "$ac_link") 2>conftest.er1
22793 ac_status=$? 22791 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err 22792 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1 22793 rm -f conftest.er1
22796 cat conftest.err >&5 22794 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && 22796 (exit $ac_status); } && {
22799 { ac_try='test -z "$ac_c_werror_flag" 22797 test -z "$ac_c_werror_flag" ||
22800 || test ! -s conftest.err' 22798 test ! -s conftest.err
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22799 } && test -s conftest$ac_exeext &&
22802 (eval $ac_try) 2>&5 22800 $as_test_x conftest$ac_exeext; then
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; } &&
22806 { ac_try='test -s conftest$ac_exeext'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 eval "$as_ac_var=yes" 22801 eval "$as_ac_var=yes"
22813else 22802else
22814 echo "$as_me: failed program was:" >&5 22803 echo "$as_me: failed program was:" >&5
22815sed 's/^/| /' conftest.$ac_ext >&5 22804sed 's/^/| /' conftest.$ac_ext >&5
22816 22805
22817eval "$as_ac_var=no" 22806 eval "$as_ac_var=no"
22818fi 22807fi
22819rm -f conftest.err conftest.$ac_objext \ 22808
22809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22820 conftest$ac_exeext conftest.$ac_ext 22810 conftest$ac_exeext conftest.$ac_ext
22821fi 22811fi
22822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22812ac_res=`eval echo '${'$as_ac_var'}'`
22823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22813 { echo "$as_me:$LINENO: result: $ac_res" >&5
22814echo "${ECHO_T}$ac_res" >&6; }
22824if test `eval echo '${'$as_ac_var'}'` = yes; then 22815if test `eval echo '${'$as_ac_var'}'` = yes; then
22825 cat >>confdefs.h <<_ACEOF 22816 cat >>confdefs.h <<_ACEOF
22826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22827_ACEOF 22818_ACEOF
22828 res_search 22819 res_search
22838 have_res_search=yes 22829 have_res_search=yes
22839 fi 22830 fi
22840 22831
22841 if test "x-$have_res_query" = "x-no" || test "x-$have_res_search" = "no" ; then 22832 if test "x-$have_res_query" = "x-no" || test "x-$have_res_search" = "no" ; then
22842 22833
22843echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 22834{ echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
22844echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 22835echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
22845if test "${ac_cv_lib_resolv_res_query+set}" = set; then 22836if test "${ac_cv_lib_resolv_res_query+set}" = set; then
22846 echo $ECHO_N "(cached) $ECHO_C" >&6 22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22847else 22838else
22848 ac_check_lib_save_LIBS=$LIBS 22839 ac_check_lib_save_LIBS=$LIBS
22849LIBS="-lresolv $LIBS" 22840LIBS="-lresolv $LIBS"
22852_ACEOF 22843_ACEOF
22853cat confdefs.h >>conftest.$ac_ext 22844cat confdefs.h >>conftest.$ac_ext
22854cat >>conftest.$ac_ext <<_ACEOF 22845cat >>conftest.$ac_ext <<_ACEOF
22855/* end confdefs.h. */ 22846/* end confdefs.h. */
22856 22847
22857/* Override any gcc2 internal prototype to avoid an error. */ 22848/* Override any GCC internal prototype to avoid an error.
22849 Use char because int might match the return type of a GCC
22850 builtin and then its argument prototype would still apply. */
22858#ifdef __cplusplus 22851#ifdef __cplusplus
22859extern "C" 22852extern "C"
22860#endif 22853#endif
22861/* We use char because int might match the return type of a gcc2
22862 builtin and then its argument prototype would still apply. */
22863char res_query (); 22854char res_query ();
22864int 22855int
22865main () 22856main ()
22866{ 22857{
22867res_query (); 22858return res_query ();
22868 ; 22859 ;
22869 return 0; 22860 return 0;
22870} 22861}
22871_ACEOF 22862_ACEOF
22872rm -f conftest.$ac_objext conftest$ac_exeext 22863rm -f conftest.$ac_objext conftest$ac_exeext
22864if { (ac_try="$ac_link"
22865case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22868esac
22873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval $ac_link) 2>conftest.er1 22870 (eval "$ac_link") 2>conftest.er1
22875 ac_status=$? 22871 ac_status=$?
22876 grep -v '^ *+' conftest.er1 >conftest.err 22872 grep -v '^ *+' conftest.er1 >conftest.err
22877 rm -f conftest.er1 22873 rm -f conftest.er1
22878 cat conftest.err >&5 22874 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && 22876 (exit $ac_status); } && {
22881 { ac_try='test -z "$ac_c_werror_flag" 22877 test -z "$ac_c_werror_flag" ||
22882 || test ! -s conftest.err' 22878 test ! -s conftest.err
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22879 } && test -s conftest$ac_exeext &&
22884 (eval $ac_try) 2>&5 22880 $as_test_x conftest$ac_exeext; then
22885 ac_status=$?
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; } &&
22888 { ac_try='test -s conftest$ac_exeext'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; }; then
22894 ac_cv_lib_resolv_res_query=yes 22881 ac_cv_lib_resolv_res_query=yes
22895else 22882else
22896 echo "$as_me: failed program was:" >&5 22883 echo "$as_me: failed program was:" >&5
22897sed 's/^/| /' conftest.$ac_ext >&5 22884sed 's/^/| /' conftest.$ac_ext >&5
22898 22885
22899ac_cv_lib_resolv_res_query=no 22886 ac_cv_lib_resolv_res_query=no
22900fi 22887fi
22901rm -f conftest.err conftest.$ac_objext \ 22888
22889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22902 conftest$ac_exeext conftest.$ac_ext 22890 conftest$ac_exeext conftest.$ac_ext
22903LIBS=$ac_check_lib_save_LIBS 22891LIBS=$ac_check_lib_save_LIBS
22904fi 22892fi
22905echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 22893{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
22906echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6 22894echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
22907if test $ac_cv_lib_resolv_res_query = yes; then 22895if test $ac_cv_lib_resolv_res_query = yes; then
22908 cat >>confdefs.h <<_ACEOF 22896 cat >>confdefs.h <<_ACEOF
22909#define HAVE_LIBRESOLV 1 22897#define HAVE_LIBRESOLV 1
22910_ACEOF 22898_ACEOF
22911 22899
22915 22903
22916 if test "x-$ac_cv_lib_resolv_res_query" = "x-yes" ; then 22904 if test "x-$ac_cv_lib_resolv_res_query" = "x-yes" ; then
22917 have_res_query=yes 22905 have_res_query=yes
22918 else 22906 else
22919 22907
22920echo "$as_me:$LINENO: checking for res_query in -lbind" >&5 22908{ echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
22921echo $ECHO_N "checking for res_query in -lbind... $ECHO_C" >&6 22909echo $ECHO_N "checking for res_query in -lbind... $ECHO_C" >&6; }
22922if test "${ac_cv_lib_bind_res_query+set}" = set; then 22910if test "${ac_cv_lib_bind_res_query+set}" = set; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6 22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22924else 22912else
22925 ac_check_lib_save_LIBS=$LIBS 22913 ac_check_lib_save_LIBS=$LIBS
22926LIBS="-lbind $LIBS" 22914LIBS="-lbind $LIBS"
22929_ACEOF 22917_ACEOF
22930cat confdefs.h >>conftest.$ac_ext 22918cat confdefs.h >>conftest.$ac_ext
22931cat >>conftest.$ac_ext <<_ACEOF 22919cat >>conftest.$ac_ext <<_ACEOF
22932/* end confdefs.h. */ 22920/* end confdefs.h. */
22933 22921
22934/* Override any gcc2 internal prototype to avoid an error. */ 22922/* Override any GCC internal prototype to avoid an error.
22923 Use char because int might match the return type of a GCC
22924 builtin and then its argument prototype would still apply. */
22935#ifdef __cplusplus 22925#ifdef __cplusplus
22936extern "C" 22926extern "C"
22937#endif 22927#endif
22938/* We use char because int might match the return type of a gcc2
22939 builtin and then its argument prototype would still apply. */
22940char res_query (); 22928char res_query ();
22941int 22929int
22942main () 22930main ()
22943{ 22931{
22944res_query (); 22932return res_query ();
22945 ; 22933 ;
22946 return 0; 22934 return 0;
22947} 22935}
22948_ACEOF 22936_ACEOF
22949rm -f conftest.$ac_objext conftest$ac_exeext 22937rm -f conftest.$ac_objext conftest$ac_exeext
22938if { (ac_try="$ac_link"
22939case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22942esac
22950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951 (eval $ac_link) 2>conftest.er1 22944 (eval "$ac_link") 2>conftest.er1
22952 ac_status=$? 22945 ac_status=$?
22953 grep -v '^ *+' conftest.er1 >conftest.err 22946 grep -v '^ *+' conftest.er1 >conftest.err
22954 rm -f conftest.er1 22947 rm -f conftest.er1
22955 cat conftest.err >&5 22948 cat conftest.err >&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } && 22950 (exit $ac_status); } && {
22958 { ac_try='test -z "$ac_c_werror_flag" 22951 test -z "$ac_c_werror_flag" ||
22959 || test ! -s conftest.err' 22952 test ! -s conftest.err
22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22953 } && test -s conftest$ac_exeext &&
22961 (eval $ac_try) 2>&5 22954 $as_test_x conftest$ac_exeext; then
22962 ac_status=$?
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; } &&
22965 { ac_try='test -s conftest$ac_exeext'
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; }; then
22971 ac_cv_lib_bind_res_query=yes 22955 ac_cv_lib_bind_res_query=yes
22972else 22956else
22973 echo "$as_me: failed program was:" >&5 22957 echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5 22958sed 's/^/| /' conftest.$ac_ext >&5
22975 22959
22976ac_cv_lib_bind_res_query=no 22960 ac_cv_lib_bind_res_query=no
22977fi 22961fi
22978rm -f conftest.err conftest.$ac_objext \ 22962
22963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22979 conftest$ac_exeext conftest.$ac_ext 22964 conftest$ac_exeext conftest.$ac_ext
22980LIBS=$ac_check_lib_save_LIBS 22965LIBS=$ac_check_lib_save_LIBS
22981fi 22966fi
22982echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5 22967{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5
22983echo "${ECHO_T}$ac_cv_lib_bind_res_query" >&6 22968echo "${ECHO_T}$ac_cv_lib_bind_res_query" >&6; }
22984if test $ac_cv_lib_bind_res_query = yes; then 22969if test $ac_cv_lib_bind_res_query = yes; then
22985 cat >>confdefs.h <<_ACEOF 22970 cat >>confdefs.h <<_ACEOF
22986#define HAVE_LIBBIND 1 22971#define HAVE_LIBBIND 1
22987_ACEOF 22972_ACEOF
22988 22973
22991fi 22976fi
22992 22977
22993 if test "x-$ac_cv_lib_bind_res_query" = "x-yes" ; then 22978 if test "x-$ac_cv_lib_bind_res_query" = "x-yes" ; then
22994 have_res_query=yes 22979 have_res_query=yes
22995 else 22980 else
22996 echo "$as_me:$LINENO: checking for res_query in -lresolv (alternate version)" >&5 22981 { echo "$as_me:$LINENO: checking for res_query in -lresolv (alternate version)" >&5
22997echo $ECHO_N "checking for res_query in -lresolv (alternate version)... $ECHO_C" >&6 22982echo $ECHO_N "checking for res_query in -lresolv (alternate version)... $ECHO_C" >&6; }
22998 save_libs="$LIBS" 22983 save_libs="$LIBS"
22999 libresolv=true 22984 libresolv=true
23000 LIBS="-lresolv $LIBS" 22985 LIBS="-lresolv $LIBS"
23001 LIBSPF_RESOLV_LIB="-lresolv" 22986 LIBSPF_RESOLV_LIB="-lresolv"
23002 cat >conftest.$ac_ext <<_ACEOF 22987 cat >conftest.$ac_ext <<_ACEOF
23013 ; 22998 ;
23014 return 0; 22999 return 0;
23015} 23000}
23016_ACEOF 23001_ACEOF
23017rm -f conftest.$ac_objext conftest$ac_exeext 23002rm -f conftest.$ac_objext conftest$ac_exeext
23003if { (ac_try="$ac_link"
23004case "(($ac_try" in
23005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006 *) ac_try_echo=$ac_try;;
23007esac
23018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23019 (eval $ac_link) 2>conftest.er1 23009 (eval "$ac_link") 2>conftest.er1
23020 ac_status=$? 23010 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err 23011 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1 23012 rm -f conftest.er1
23023 cat conftest.err >&5 23013 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } && 23015 (exit $ac_status); } && {
23026 { ac_try='test -z "$ac_c_werror_flag" 23016 test -z "$ac_c_werror_flag" ||
23027 || test ! -s conftest.err' 23017 test ! -s conftest.err
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23018 } && test -s conftest$ac_exeext &&
23029 (eval $ac_try) 2>&5 23019 $as_test_x conftest$ac_exeext; then
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; } &&
23033 { ac_try='test -s conftest$ac_exeext'
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; }; then
23039 echo "$as_me:$LINENO: result: yes" >&5 23020 { echo "$as_me:$LINENO: result: yes" >&5
23040echo "${ECHO_T}yes" >&6 23021echo "${ECHO_T}yes" >&6; }
23041 have_res_query=yes 23022 have_res_query=yes
23042else 23023else
23043 echo "$as_me: failed program was:" >&5 23024 echo "$as_me: failed program was:" >&5
23044sed 's/^/| /' conftest.$ac_ext >&5 23025sed 's/^/| /' conftest.$ac_ext >&5
23045 23026
23046echo "$as_me:$LINENO: result: no" >&5 23027 { echo "$as_me:$LINENO: result: no" >&5
23047echo "${ECHO_T}no" >&6 23028echo "${ECHO_T}no" >&6; }
23048 libresolv=false 23029 libresolv=false
23049 LIBS="$save_libs" 23030 LIBS="$save_libs"
23050fi 23031fi
23051rm -f conftest.err conftest.$ac_objext \ 23032
23033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23052 conftest$ac_exeext conftest.$ac_ext 23034 conftest$ac_exeext conftest.$ac_ext
23053 fi 23035 fi
23054 fi 23036 fi
23055 fi 23037 fi
23056 23038
23068 23050
23069fi 23051fi
23070 23052
23071# Checks for libraries. 23053# Checks for libraries.
23072 23054
23073echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 23055{ echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
23074echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6 23056echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
23075if test "${ac_cv_lib_resolv_res_search+set}" = set; then 23057if test "${ac_cv_lib_resolv_res_search+set}" = set; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6 23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23077else 23059else
23078 ac_check_lib_save_LIBS=$LIBS 23060 ac_check_lib_save_LIBS=$LIBS
23079LIBS="-lresolv $LIBS" 23061LIBS="-lresolv $LIBS"
23082_ACEOF 23064_ACEOF
23083cat confdefs.h >>conftest.$ac_ext 23065cat confdefs.h >>conftest.$ac_ext
23084cat >>conftest.$ac_ext <<_ACEOF 23066cat >>conftest.$ac_ext <<_ACEOF
23085/* end confdefs.h. */ 23067/* end confdefs.h. */
23086 23068
23087/* Override any gcc2 internal prototype to avoid an error. */ 23069/* Override any GCC internal prototype to avoid an error.
23070 Use char because int might match the return type of a GCC
23071 builtin and then its argument prototype would still apply. */
23088#ifdef __cplusplus 23072#ifdef __cplusplus
23089extern "C" 23073extern "C"
23090#endif 23074#endif
23091/* We use char because int might match the return type of a gcc2
23092 builtin and then its argument prototype would still apply. */
23093char res_search (); 23075char res_search ();
23094int 23076int
23095main () 23077main ()
23096{ 23078{
23097res_search (); 23079return res_search ();
23098 ; 23080 ;
23099 return 0; 23081 return 0;
23100} 23082}
23101_ACEOF 23083_ACEOF
23102rm -f conftest.$ac_objext conftest$ac_exeext 23084rm -f conftest.$ac_objext conftest$ac_exeext
23085if { (ac_try="$ac_link"
23086case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089esac
23103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104 (eval $ac_link) 2>conftest.er1 23091 (eval "$ac_link") 2>conftest.er1
23105 ac_status=$? 23092 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err 23093 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1 23094 rm -f conftest.er1
23108 cat conftest.err >&5 23095 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } && 23097 (exit $ac_status); } && {
23111 { ac_try='test -z "$ac_c_werror_flag" 23098 test -z "$ac_c_werror_flag" ||
23112 || test ! -s conftest.err' 23099 test ! -s conftest.err
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23100 } && test -s conftest$ac_exeext &&
23114 (eval $ac_try) 2>&5 23101 $as_test_x conftest$ac_exeext; then
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest$ac_exeext'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 ac_cv_lib_resolv_res_search=yes 23102 ac_cv_lib_resolv_res_search=yes
23125else 23103else
23126 echo "$as_me: failed program was:" >&5 23104 echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5 23105sed 's/^/| /' conftest.$ac_ext >&5
23128 23106
23129ac_cv_lib_resolv_res_search=no 23107 ac_cv_lib_resolv_res_search=no
23130fi 23108fi
23131rm -f conftest.err conftest.$ac_objext \ 23109
23110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23132 conftest$ac_exeext conftest.$ac_ext 23111 conftest$ac_exeext conftest.$ac_ext
23133LIBS=$ac_check_lib_save_LIBS 23112LIBS=$ac_check_lib_save_LIBS
23134fi 23113fi
23135echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 23114{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
23136echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6 23115echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
23137if test $ac_cv_lib_resolv_res_search = yes; then 23116if test $ac_cv_lib_resolv_res_search = yes; then
23138 cat >>confdefs.h <<_ACEOF 23117 cat >>confdefs.h <<_ACEOF
23139#define HAVE_LIBRESOLV 1 23118#define HAVE_LIBRESOLV 1
23140_ACEOF 23119_ACEOF
23141 23120
23148 23127
23149#------------------------------------------------------------------------------- 23128#-------------------------------------------------------------------------------
23150# Check to see if we want to enable debugging 23129# Check to see if we want to enable debugging
23151#------------------------------------------------------------------------------- 23130#-------------------------------------------------------------------------------
23152 23131
23153echo "$as_me:$LINENO: checking whether DEBUG is eanbled" >&5 23132{ echo "$as_me:$LINENO: checking whether DEBUG is eanbled" >&5
23154echo $ECHO_N "checking whether DEBUG is eanbled... $ECHO_C" >&6 23133echo $ECHO_N "checking whether DEBUG is eanbled... $ECHO_C" >&6; }
23155# Check whether --enable-debug or --disable-debug was given. 23134# Check whether --enable-debug was given.
23156if test "${enable_debug+set}" = set; then 23135if test "${enable_debug+set}" = set; then
23157 enableval="$enable_debug" 23136 enableval=$enable_debug; case "${enableval}" in
23158 case "${enableval}" in
23159 yes) 23137 yes)
23160 debug=true 23138 debug=true
23161 echo "$as_me:$LINENO: result: yes" >&5 23139 { echo "$as_me:$LINENO: result: yes" >&5
23162echo "${ECHO_T}yes" >&6 23140echo "${ECHO_T}yes" >&6; }
23163 ;; 23141 ;;
23164 no) 23142 no)
23165 debug=false 23143 debug=false
23166 echo "$as_me:$LINENO: result: no" >&5 23144 { echo "$as_me:$LINENO: result: no" >&5
23167echo "${ECHO_T}no" >&6 23145echo "${ECHO_T}no" >&6; }
23168 ;; 23146 ;;
23169 *) 23147 *)
23170 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 23148 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
23171echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 23149echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
23172 { (exit 1); exit 1; }; } 23150 { (exit 1); exit 1; }; }
23173 ;; 23151 ;;
23174esac 23152esac
23175else 23153else
23154 debug=false
23176 debug=false echo "$as_me:$LINENO: result: no" >&5 23155{ echo "$as_me:$LINENO: result: no" >&5
23177echo "${ECHO_T}no" >&6 23156echo "${ECHO_T}no" >&6; }
23178fi; 23157fi
23158
23179 23159
23180CFLAGS="" 23160CFLAGS=""
23181if test "$debug" = "true"; then 23161if test "$debug" = "true"; then
23182 CFLAGS="-ggdb -O -D_SPF_DEBUG" 23162 CFLAGS="-ggdb -O -D_SPF_DEBUG"
23183else 23163else
23184 echo "$as_me:$LINENO: result: Enabling GCC optimisations" >&5 23164 { echo "$as_me:$LINENO: result: Enabling GCC optimisations" >&5
23185echo "${ECHO_T}Enabling GCC optimisations" >&6 23165echo "${ECHO_T}Enabling GCC optimisations" >&6; }
23186 CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer" 23166 CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer"
23187 23167
23188 if [ "x$GCC_VERSION" = "x3" ]; then 23168 if [ "x$GCC_VERSION" = "x3" ]; then
23189 echo "$as_me:$LINENO: result: Enabling GCC v3 optimizations" >&5 23169 { echo "$as_me:$LINENO: result: Enabling GCC v3 optimizations" >&5
23190echo "${ECHO_T}Enabling GCC v3 optimizations" >&6 23170echo "${ECHO_T}Enabling GCC v3 optimizations" >&6; }
23191 CFLAGS="$CFLAGS -minline-all-stringops -fno-math-errno" 23171 CFLAGS="$CFLAGS -minline-all-stringops -fno-math-errno"
23192 fi 23172 fi
23193fi 23173fi
23194 23174
23195case "${host_cpu}" in 23175case "${host_cpu}" in
23196 i?86) 23176 i?86)
23197 echo "$as_me:$LINENO: result: CPU: ${host_cpu}; Enabling pentium optimisations" >&5 23177 { echo "$as_me:$LINENO: result: CPU: ${host_cpu}; Enabling pentium optimisations" >&5
23198echo "${ECHO_T}CPU: ${host_cpu}; Enabling pentium optimisations" >&6 23178echo "${ECHO_T}CPU: ${host_cpu}; Enabling pentium optimisations" >&6; }
23199 # cannot do malign-double as we link to other libraries and it 23179 # cannot do malign-double as we link to other libraries and it
23200 # would break binary compatibility 23180 # would break binary compatibility
23201 CFLAGS="$CFLAGS ${gcc_special_cflags}" 23181 CFLAGS="$CFLAGS ${gcc_special_cflags}"
23202 ;; 23182 ;;
23203 *) 23183 *)
23204 echo "$as_me:$LINENO: result: Please e-mail author optimizations for this cpu" >&5 23184 { echo "$as_me:$LINENO: result: Please e-mail author optimizations for this cpu" >&5
23205echo "${ECHO_T}Please e-mail author optimizations for this cpu" >&6 23185echo "${ECHO_T}Please e-mail author optimizations for this cpu" >&6; }
23206 ;; 23186 ;;
23207esac 23187esac
23208 23188
23209 23189
23210#------------------------------------------------------------------------------- 23190#-------------------------------------------------------------------------------
23211# Check to see if we want to enable debugging output to logfile 23191# Check to see if we want to enable debugging output to logfile
23212#------------------------------------------------------------------------------- 23192#-------------------------------------------------------------------------------
23213 23193
23214if test "$debug" = "true"; then 23194if test "$debug" = "true"; then
23215 echo "$as_me:$LINENO: checking whether you want debug output to a logfile" >&5 23195 { echo "$as_me:$LINENO: checking whether you want debug output to a logfile" >&5
23216echo $ECHO_N "checking whether you want debug output to a logfile... $ECHO_C" >&6 23196echo $ECHO_N "checking whether you want debug output to a logfile... $ECHO_C" >&6; }
23217 # Check whether --enable-debug_logfile or --disable-debug_logfile was given. 23197 # Check whether --enable-debug_logfile was given.
23218if test "${enable_debug_logfile+set}" = set; then 23198if test "${enable_debug_logfile+set}" = set; then
23219 enableval="$enable_debug_logfile" 23199 enableval=$enable_debug_logfile; case "${enableval}" in
23220 case "${enableval}" in
23221 yes) 23200 yes)
23222 debug_logfile=true 23201 debug_logfile=true
23223 echo "$as_me:$LINENO: result: yes" >&5 23202 { echo "$as_me:$LINENO: result: yes" >&5
23224echo "${ECHO_T}yes" >&6 23203echo "${ECHO_T}yes" >&6; }
23225 ;; 23204 ;;
23226 no) 23205 no)
23227 debug_logfile=false 23206 debug_logfile=false
23228 echo "$as_me:$LINENO: result: no" >&5 23207 { echo "$as_me:$LINENO: result: no" >&5
23229echo "${ECHO_T}no" >&6 23208echo "${ECHO_T}no" >&6; }
23230 ;; 23209 ;;
23231 *) 23210 *)
23232 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-logfile" >&5 23211 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-logfile" >&5
23233echo "$as_me: error: bad value ${enableval} for --enable-debug-logfile" >&2;} 23212echo "$as_me: error: bad value ${enableval} for --enable-debug-logfile" >&2;}
23234 { (exit 1); exit 1; }; } 23213 { (exit 1); exit 1; }; }
23235 ;; 23214 ;;
23236 esac 23215 esac
23237else 23216else
23217 debug_logfile=true
23238 debug_logfile=true echo "$as_me:$LINENO: result: no" >&5 23218 { echo "$as_me:$LINENO: result: no" >&5
23239echo "${ECHO_T}no" >&6 23219echo "${ECHO_T}no" >&6; }
23240fi; 23220fi
23221
23241 23222
23242 if test "$debug_logfile" = "true"; then 23223 if test "$debug_logfile" = "true"; then
23243 CFLAGS="-D_SPF_DEBUG_LOGFILE $CFLAGS" 23224 CFLAGS="-D_SPF_DEBUG_LOGFILE $CFLAGS"
23244 fi 23225 fi
23245fi 23226fi
23248#------------------------------------------------------------------------------- 23229#-------------------------------------------------------------------------------
23249# Check to see if we want to enable logfile statistics 23230# Check to see if we want to enable logfile statistics
23250#------------------------------------------------------------------------------- 23231#-------------------------------------------------------------------------------
23251 23232
23252logfile_stats=false 23233logfile_stats=false
23253echo "$as_me:$LINENO: checking whether you want logfile statistics" >&5 23234{ echo "$as_me:$LINENO: checking whether you want logfile statistics" >&5
23254echo $ECHO_N "checking whether you want logfile statistics... $ECHO_C" >&6 23235echo $ECHO_N "checking whether you want logfile statistics... $ECHO_C" >&6; }
23255# Check whether --enable-logfile_stats or --disable-logfile_stats was given. 23236# Check whether --enable-logfile_stats was given.
23256if test "${enable_logfile_stats+set}" = set; then 23237if test "${enable_logfile_stats+set}" = set; then
23257 enableval="$enable_logfile_stats" 23238 enableval=$enable_logfile_stats; case "${enableval}" in
23258 case "${enableval}" in
23259 yes) 23239 yes)
23260 logfile_stats=true 23240 logfile_stats=true
23261 echo "$as_me:$LINENO: result: yes" >&5 23241 { echo "$as_me:$LINENO: result: yes" >&5
23262echo "${ECHO_T}yes" >&6 23242echo "${ECHO_T}yes" >&6; }
23263 ;; 23243 ;;
23264 no) 23244 no)
23265 logfile_stats=false 23245 logfile_stats=false
23266 echo "$as_me:$LINENO: result: no" >&5 23246 { echo "$as_me:$LINENO: result: no" >&5
23267echo "${ECHO_T}no" >&6 23247echo "${ECHO_T}no" >&6; }
23268 ;; 23248 ;;
23269 *) 23249 *)
23270 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-logfile-stats" >&5 23250 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-logfile-stats" >&5
23271echo "$as_me: error: bad value ${enableval} for --enable-logfile-stats" >&2;} 23251echo "$as_me: error: bad value ${enableval} for --enable-logfile-stats" >&2;}
23272 { (exit 1); exit 1; }; } 23252 { (exit 1); exit 1; }; }
23273 ;; 23253 ;;
23274esac 23254esac
23275else 23255else
23256 logfile_stats=false
23276 logfile_stats=false echo "$as_me:$LINENO: result: no" >&5 23257{ echo "$as_me:$LINENO: result: no" >&5
23277echo "${ECHO_T}no" >&6 23258echo "${ECHO_T}no" >&6; }
23278fi; 23259fi
23260
23279 23261
23280if test "$logfile_stats" = "true"; then 23262if test "$logfile_stats" = "true"; then
23281 CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS" 23263 CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS"
23282fi 23264fi
23283 23265
23285#------------------------------------------------------------------------------- 23267#-------------------------------------------------------------------------------
23286# Check whether to enable a memset after each malloc 23268# Check whether to enable a memset after each malloc
23287#------------------------------------------------------------------------------- 23269#-------------------------------------------------------------------------------
23288 23270
23289rfc_recursion=false 23271rfc_recursion=false
23290echo "$as_me:$LINENO: checking whether to abide by the RFC as regards recursiveness" >&5 23272{ echo "$as_me:$LINENO: checking whether to abide by the RFC as regards recursiveness" >&5
23291echo $ECHO_N "checking whether to abide by the RFC as regards recursiveness... $ECHO_C" >&6 23273echo $ECHO_N "checking whether to abide by the RFC as regards recursiveness... $ECHO_C" >&6; }
23292# Check whether --enable-rfc_recursion or --disable-rfc_recursion was given. 23274# Check whether --enable-rfc_recursion was given.
23293if test "${enable_rfc_recursion+set}" = set; then 23275if test "${enable_rfc_recursion+set}" = set; then
23294 enableval="$enable_rfc_recursion" 23276 enableval=$enable_rfc_recursion; case "${enableval}" in
23295 case "${enableval}" in
23296 yes) 23277 yes)
23297 rfc_recursion=true 23278 rfc_recursion=true
23298 echo "$as_me:$LINENO: result: yes" >&5 23279 { echo "$as_me:$LINENO: result: yes" >&5
23299echo "${ECHO_T}yes" >&6 23280echo "${ECHO_T}yes" >&6; }
23300 ;; 23281 ;;
23301 no) 23282 no)
23302 rfc_recursion=false 23283 rfc_recursion=false
23303 echo "$as_me:$LINENO: result: no" >&5 23284 { echo "$as_me:$LINENO: result: no" >&5
23304echo "${ECHO_T}no" >&6 23285echo "${ECHO_T}no" >&6; }
23305 ;; 23286 ;;
23306 *) 23287 *)
23307 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-rfc-recursion" >&5 23288 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-rfc-recursion" >&5
23308echo "$as_me: error: bad value ${enableval} for --enable-rfc-recursion" >&2;} 23289echo "$as_me: error: bad value ${enableval} for --enable-rfc-recursion" >&2;}
23309 { (exit 1); exit 1; }; } 23290 { (exit 1); exit 1; }; }
23310 ;; 23291 ;;
23311esac 23292esac
23312else 23293else
23294 rfc_recursion=false
23313 rfc_recursion=false echo "$as_me:$LINENO: result: no" >&5 23295{ echo "$as_me:$LINENO: result: no" >&5
23314echo "${ECHO_T}no" >&6 23296echo "${ECHO_T}no" >&6; }
23315fi; 23297fi
23298
23316 23299
23317if test "$rfc_recursion" = "true"; then 23300if test "$rfc_recursion" = "true"; then
23318 CFLAGS="-D_RFC_RECURSION $CFLAGS" 23301 CFLAGS="-D_RFC_RECURSION $CFLAGS"
23319 { echo "$as_me:$LINENO: WARNING: === THE INTERNET IS FULL OF ILLITERATE AND LAZY PEOPLE ===" >&5 23302 { echo "$as_me:$LINENO: WARNING: === THE INTERNET IS FULL OF ILLITERATE AND LAZY PEOPLE ===" >&5
23320echo "$as_me: WARNING: === THE INTERNET IS FULL OF ILLITERATE AND LAZY PEOPLE ===" >&2;} 23303echo "$as_me: WARNING: === THE INTERNET IS FULL OF ILLITERATE AND LAZY PEOPLE ===" >&2;}
23349#------------------------------------------------------------------------------- 23332#-------------------------------------------------------------------------------
23350# Check whether to enable a memset after each malloc 23333# Check whether to enable a memset after each malloc
23351#------------------------------------------------------------------------------- 23334#-------------------------------------------------------------------------------
23352 23335
23353paranoid_malloc=true 23336paranoid_malloc=true
23354echo "$as_me:$LINENO: checking whether to memset after every malloc (paranoid malloc)?" >&5 23337{ echo "$as_me:$LINENO: checking whether to memset after every malloc (paranoid malloc)?" >&5
23355echo $ECHO_N "checking whether to memset after every malloc (paranoid malloc)?... $ECHO_C" >&6 23338echo $ECHO_N "checking whether to memset after every malloc (paranoid malloc)?... $ECHO_C" >&6; }
23356# Check whether --enable-paranoid_malloc or --disable-paranoid_malloc was given. 23339# Check whether --enable-paranoid_malloc was given.
23357if test "${enable_paranoid_malloc+set}" = set; then 23340if test "${enable_paranoid_malloc+set}" = set; then
23358 enableval="$enable_paranoid_malloc" 23341 enableval=$enable_paranoid_malloc; case "${enableval}" in
23359 case "${enableval}" in
23360 yes) 23342 yes)
23361 paranoid_malloc=true 23343 paranoid_malloc=true
23362 echo "$as_me:$LINENO: result: yes" >&5 23344 { echo "$as_me:$LINENO: result: yes" >&5
23363echo "${ECHO_T}yes" >&6 23345echo "${ECHO_T}yes" >&6; }
23364 ;; 23346 ;;
23365 no) 23347 no)
23366 paranoid_malloc=false 23348 paranoid_malloc=false
23367 echo "$as_me:$LINENO: result: no" >&5 23349 { echo "$as_me:$LINENO: result: no" >&5
23368echo "${ECHO_T}no" >&6 23350echo "${ECHO_T}no" >&6; }
23369 ;; 23351 ;;
23370 *) 23352 *)
23371 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-paranoid-malloc" >&5 23353 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-paranoid-malloc" >&5
23372echo "$as_me: error: bad value ${enableval} for --enable-paranoid-malloc" >&2;} 23354echo "$as_me: error: bad value ${enableval} for --enable-paranoid-malloc" >&2;}
23373 { (exit 1); exit 1; }; } 23355 { (exit 1); exit 1; }; }
23374 ;; 23356 ;;
23375esac 23357esac
23376else 23358else
23359 paranoid_malloc=true
23377 paranoid_malloc=true echo "$as_me:$LINENO: result: yes" >&5 23360{ echo "$as_me:$LINENO: result: yes" >&5
23378echo "${ECHO_T}yes" >&6 23361echo "${ECHO_T}yes" >&6; }
23379fi; 23362fi
23363
23380 23364
23381if test "$paranoid_malloc" = "true"; then 23365if test "$paranoid_malloc" = "true"; then
23382 CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS" 23366 CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS"
23383fi 23367fi
23384 23368
23388# res_query behaviour. See Debian bug tracking list thread: 23372# res_query behaviour. See Debian bug tracking list thread:
23389# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297060 for more information. 23373# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297060 for more information.
23390#------------------------------------------------------------------------------- 23374#-------------------------------------------------------------------------------
23391 23375
23392res_search=false 23376res_search=false
23393echo "$as_me:$LINENO: checking whether to use res_search instead of res_query?" >&5 23377{ echo "$as_me:$LINENO: checking whether to use res_search instead of res_query?" >&5
23394echo $ECHO_N "checking whether to use res_search instead of res_query?... $ECHO_C" >&6 23378echo $ECHO_N "checking whether to use res_search instead of res_query?... $ECHO_C" >&6; }
23395# Check whether --enable-res_search or --disable-res_search was given. 23379# Check whether --enable-res_search was given.
23396if test "${enable_res_search+set}" = set; then 23380if test "${enable_res_search+set}" = set; then
23397 enableval="$enable_res_search" 23381 enableval=$enable_res_search; case "${enableval}" in
23398 case "${enableval}" in
23399 yes) 23382 yes)
23400 res_search=true 23383 res_search=true
23401 echo "$as_me:$LINENO: result: yes" >&5 23384 { echo "$as_me:$LINENO: result: yes" >&5
23402echo "${ECHO_T}yes" >&6 23385echo "${ECHO_T}yes" >&6; }
23403 ;; 23386 ;;
23404 no) 23387 no)
23405 res_search=false 23388 res_search=false
23406 echo "$as_me:$LINENO: result: no" >&5 23389 { echo "$as_me:$LINENO: result: no" >&5
23407echo "${ECHO_T}no" >&6 23390echo "${ECHO_T}no" >&6; }
23408 ;; 23391 ;;
23409 *) 23392 *)
23410 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-res_search" >&5 23393 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-res_search" >&5
23411echo "$as_me: error: bad value ${enableval} for --enable-res_search" >&2;} 23394echo "$as_me: error: bad value ${enableval} for --enable-res_search" >&2;}
23412 { (exit 1); exit 1; }; } 23395 { (exit 1); exit 1; }; }
23413 ;; 23396 ;;
23414esac 23397esac
23415else 23398else
23399 res_search=false
23416 res_search=falsee echo "$as_me:$LINENO: result: no" >&5 23400{ echo "$as_me:$LINENO: result: no" >&5
23417echo "${ECHO_T}no" >&6 23401echo "${ECHO_T}no" >&6; }
23418fi; 23402fi
23403
23419 23404
23420if test "$res_search" = "true"; then 23405if test "$res_search" = "true"; then
23421 CFLAGS="-D_WITH_RES_SEARCH $CFLAGS" 23406 CFLAGS="-D_WITH_RES_SEARCH $CFLAGS"
23422fi 23407fi
23423 23408
23424 23409
23425#------------------------------------------------------------------------------- 23410#-------------------------------------------------------------------------------
23426# Check to see if we should build libSPF Query Tool 23411# Check to see if we should build libSPF Query Tool
23427#------------------------------------------------------------------------------- 23412#-------------------------------------------------------------------------------
23428 23413
23429echo "$as_me:$LINENO: checking whether to disable build the libSPF Query Tool?" >&5 23414{ echo "$as_me:$LINENO: checking whether to disable build the libSPF Query Tool?" >&5
23430echo $ECHO_N "checking whether to disable build the libSPF Query Tool?... $ECHO_C" >&6 23415echo $ECHO_N "checking whether to disable build the libSPF Query Tool?... $ECHO_C" >&6; }
23431# Check whether --enable-spfqtool or --disable-spfqtool was given. 23416# Check whether --enable-spfqtool was given.
23432if test "${enable_spfqtool+set}" = set; then 23417if test "${enable_spfqtool+set}" = set; then
23433 enableval="$enable_spfqtool" 23418 enableval=$enable_spfqtool; case "${enableval}" in
23434 case "${enableval}" in
23435 yes) 23419 yes)
23436 spfqtool=true 23420 spfqtool=true
23437 echo "$as_me:$LINENO: result: yes" >&5 23421 { echo "$as_me:$LINENO: result: yes" >&5
23438echo "${ECHO_T}yes" >&6 23422echo "${ECHO_T}yes" >&6; }
23439 ;; 23423 ;;
23440 no) 23424 no)
23441 spfqtool=false 23425 spfqtool=false
23442 echo "$as_me:$LINENO: result: no" >&5 23426 { echo "$as_me:$LINENO: result: no" >&5
23443echo "${ECHO_T}no" >&6 23427echo "${ECHO_T}no" >&6; }
23444 ;; 23428 ;;
23445 *) 23429 *)
23446 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-spfqtool" >&5 23430 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-spfqtool" >&5
23447echo "$as_me: error: bad value ${enableval} for --disable-spfqtool" >&2;} 23431echo "$as_me: error: bad value ${enableval} for --disable-spfqtool" >&2;}
23448 { (exit 1); exit 1; }; } 23432 { (exit 1); exit 1; }; }
23449 ;; 23433 ;;
23450esac 23434esac
23451else 23435else
23436 spfqtool=false
23452 spfqtool=false echo "$as_me:$LINENO: result: no" >&5 23437{ echo "$as_me:$LINENO: result: no" >&5
23453echo "${ECHO_T}no" >&6 23438echo "${ECHO_T}no" >&6; }
23454fi; 23439fi
23440
23455 23441
23456if test "$spfqtool" = "true"; then 23442if test "$spfqtool" = "true"; then
23457 LIBSPF_BUILD_DIRS="libspf" 23443 LIBSPF_BUILD_DIRS="libspf"
23458fi 23444fi
23459#AC_SUBST(LIBSPF_BUILD_DIRS) 23445#AC_SUBST(LIBSPF_BUILD_DIRS)
23465# _DNS_gethostbyname_r reentrant wrapper to gethostbyname unless 23451# _DNS_gethostbyname_r reentrant wrapper to gethostbyname unless
23466# gethostbyname_r is available (GNU extention) then the wrapper will 23452# gethostbyname_r is available (GNU extention) then the wrapper will
23467# be around that instead and won't use the mutex 23453# be around that instead and won't use the mutex
23468#------------------------------------------------------------------------------- 23454#-------------------------------------------------------------------------------
23469 23455
23470echo "$as_me:$LINENO: checking whether to compile with reentrant capabilities" >&5 23456{ echo "$as_me:$LINENO: checking whether to compile with reentrant capabilities" >&5
23471echo $ECHO_N "checking whether to compile with reentrant capabilities... $ECHO_C" >&6 23457echo $ECHO_N "checking whether to compile with reentrant capabilities... $ECHO_C" >&6; }
23472# Check whether --enable-pthreads or --disable-pthreads was given. 23458# Check whether --enable-pthreads was given.
23473if test "${enable_pthreads+set}" = set; then 23459if test "${enable_pthreads+set}" = set; then
23474 enableval="$enable_pthreads" 23460 enableval=$enable_pthreads; case "${enableval}" in
23475 case "${enableval}" in
23476 yes) 23461 yes)
23477 pthreads=true 23462 pthreads=true
23478 echo "$as_me:$LINENO: result: yes" >&5 23463 { echo "$as_me:$LINENO: result: yes" >&5
23479echo "${ECHO_T}yes" >&6 23464echo "${ECHO_T}yes" >&6; }
23480 ;; 23465 ;;
23481 no) 23466 no)
23482 pthreads=false 23467 pthreads=false
23483 echo "$as_me:$LINENO: result: no" >&5 23468 { echo "$as_me:$LINENO: result: no" >&5
23484echo "${ECHO_T}no" >&6 23469echo "${ECHO_T}no" >&6; }
23485 ;; 23470 ;;
23486 *) 23471 *)
23487 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pthreads" >&5 23472 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pthreads" >&5
23488echo "$as_me: error: bad value ${enableval} for --enable-pthreads" >&2;} 23473echo "$as_me: error: bad value ${enableval} for --enable-pthreads" >&2;}
23489 { (exit 1); exit 1; }; } 23474 { (exit 1); exit 1; }; }
23490 ;; 23475 ;;
23491esac 23476esac
23492else 23477else
23478 pthreads=false
23493 pthreads=false echo "$as_me:$LINENO: result: no" >&5 23479{ echo "$as_me:$LINENO: result: no" >&5
23494echo "${ECHO_T}no" >&6 23480echo "${ECHO_T}no" >&6; }
23495fi; 23481fi
23482
23496 23483
23497if test "$pthreads" = "true"; then 23484if test "$pthreads" = "true"; then
23498 23485
23499 23486
23500for ac_header in pthread.h 23487for ac_header in pthread.h
23501do 23488do
23502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23503if eval "test \"\${$as_ac_Header+set}\" = set"; then 23490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23504 echo "$as_me:$LINENO: checking for $ac_header" >&5 23491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23506if eval "test \"\${$as_ac_Header+set}\" = set"; then 23493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6 23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23508fi 23495fi
23509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23496ac_res=`eval echo '${'$as_ac_Header'}'`
23510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23497 { echo "$as_me:$LINENO: result: $ac_res" >&5
23498echo "${ECHO_T}$ac_res" >&6; }
23511else 23499else
23512 # Is the header compilable? 23500 # Is the header compilable?
23513echo "$as_me:$LINENO: checking $ac_header usability" >&5 23501{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23515cat >conftest.$ac_ext <<_ACEOF 23503cat >conftest.$ac_ext <<_ACEOF
23516/* confdefs.h. */ 23504/* confdefs.h. */
23517_ACEOF 23505_ACEOF
23518cat confdefs.h >>conftest.$ac_ext 23506cat confdefs.h >>conftest.$ac_ext
23519cat >>conftest.$ac_ext <<_ACEOF 23507cat >>conftest.$ac_ext <<_ACEOF
23520/* end confdefs.h. */ 23508/* end confdefs.h. */
23521$ac_includes_default 23509$ac_includes_default
23522#include <$ac_header> 23510#include <$ac_header>
23523_ACEOF 23511_ACEOF
23524rm -f conftest.$ac_objext 23512rm -f conftest.$ac_objext
23513if { (ac_try="$ac_compile"
23514case "(($ac_try" in
23515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516 *) ac_try_echo=$ac_try;;
23517esac
23525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval $ac_compile) 2>conftest.er1 23519 (eval "$ac_compile") 2>conftest.er1
23527 ac_status=$? 23520 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err 23521 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1 23522 rm -f conftest.er1
23530 cat conftest.err >&5 23523 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && 23525 (exit $ac_status); } && {
23533 { ac_try='test -z "$ac_c_werror_flag" 23526 test -z "$ac_c_werror_flag" ||
23534 || test ! -s conftest.err' 23527 test ! -s conftest.err
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23528 } && test -s conftest.$ac_objext; then
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; } &&
23540 { ac_try='test -s conftest.$ac_objext'
23541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542 (eval $ac_try) 2>&5
23543 ac_status=$?
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; }; then
23546 ac_header_compiler=yes 23529 ac_header_compiler=yes
23547else 23530else
23548 echo "$as_me: failed program was:" >&5 23531 echo "$as_me: failed program was:" >&5
23549sed 's/^/| /' conftest.$ac_ext >&5 23532sed 's/^/| /' conftest.$ac_ext >&5
23550 23533
23551ac_header_compiler=no 23534 ac_header_compiler=no
23552fi 23535fi
23536
23553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23538{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23555echo "${ECHO_T}$ac_header_compiler" >&6 23539echo "${ECHO_T}$ac_header_compiler" >&6; }
23556 23540
23557# Is the header present? 23541# Is the header present?
23558echo "$as_me:$LINENO: checking $ac_header presence" >&5 23542{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23560cat >conftest.$ac_ext <<_ACEOF 23544cat >conftest.$ac_ext <<_ACEOF
23561/* confdefs.h. */ 23545/* confdefs.h. */
23562_ACEOF 23546_ACEOF
23563cat confdefs.h >>conftest.$ac_ext 23547cat confdefs.h >>conftest.$ac_ext
23564cat >>conftest.$ac_ext <<_ACEOF 23548cat >>conftest.$ac_ext <<_ACEOF
23565/* end confdefs.h. */ 23549/* end confdefs.h. */
23566#include <$ac_header> 23550#include <$ac_header>
23567_ACEOF 23551_ACEOF
23568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 23552if { (ac_try="$ac_cpp conftest.$ac_ext"
23553case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23556esac
23557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 23558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23570 ac_status=$? 23559 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err 23560 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1 23561 rm -f conftest.er1
23573 cat conftest.err >&5 23562 cat conftest.err >&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } >/dev/null; then 23564 (exit $ac_status); } >/dev/null && {
23565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23576 if test -s conftest.err; then 23566 test ! -s conftest.err
23577 ac_cpp_err=$ac_c_preproc_warn_flag 23567 }; then
23578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23579 else
23580 ac_cpp_err=
23581 fi
23582else
23583 ac_cpp_err=yes
23584fi
23585if test -z "$ac_cpp_err"; then
23586 ac_header_preproc=yes 23568 ac_header_preproc=yes
23587else 23569else
23588 echo "$as_me: failed program was:" >&5 23570 echo "$as_me: failed program was:" >&5
23589sed 's/^/| /' conftest.$ac_ext >&5 23571sed 's/^/| /' conftest.$ac_ext >&5
23590 23572
23591 ac_header_preproc=no 23573 ac_header_preproc=no
23592fi 23574fi
23575
23593rm -f conftest.err conftest.$ac_ext 23576rm -f conftest.err conftest.$ac_ext
23594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23595echo "${ECHO_T}$ac_header_preproc" >&6 23578echo "${ECHO_T}$ac_header_preproc" >&6; }
23596 23579
23597# So? What about this header? 23580# So? What about this header?
23598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23599 yes:no: ) 23582 yes:no: )
23600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23619 (
23620 cat <<\_ASBOX 23602 ( cat <<\_ASBOX
23621## ------------------------------------ ## 23603## ------------------------------------ ##
23622## Report this to jcouzens@codeshare.ca ## 23604## Report this to jcouzens@codeshare.ca ##
23623## ------------------------------------ ## 23605## ------------------------------------ ##
23624_ASBOX 23606_ASBOX
23625 ) |
23626 sed "s/^/$as_me: WARNING: /" >&2 23607 ) | sed "s/^/$as_me: WARNING: /" >&2
23627 ;; 23608 ;;
23628esac 23609esac
23629echo "$as_me:$LINENO: checking for $ac_header" >&5 23610{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23631if eval "test \"\${$as_ac_Header+set}\" = set"; then 23612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23632 echo $ECHO_N "(cached) $ECHO_C" >&6 23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23633else 23614else
23634 eval "$as_ac_Header=\$ac_header_preproc" 23615 eval "$as_ac_Header=\$ac_header_preproc"
23635fi 23616fi
23636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23617ac_res=`eval echo '${'$as_ac_Header'}'`
23637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23618 { echo "$as_me:$LINENO: result: $ac_res" >&5
23619echo "${ECHO_T}$ac_res" >&6; }
23638 23620
23639fi 23621fi
23640if test `eval echo '${'$as_ac_Header'}'` = yes; then 23622if test `eval echo '${'$as_ac_Header'}'` = yes; then
23641 cat >>confdefs.h <<_ACEOF 23623 cat >>confdefs.h <<_ACEOF
23642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23667 23649
23668 23650
23669for ac_func in gethostbyname_r 23651for ac_func in gethostbyname_r
23670do 23652do
23671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23672echo "$as_me:$LINENO: checking for $ac_func" >&5 23654{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23674if eval "test \"\${$as_ac_var+set}\" = set"; then 23656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6 23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23676else 23658else
23677 cat >conftest.$ac_ext <<_ACEOF 23659 cat >conftest.$ac_ext <<_ACEOF
23678/* confdefs.h. */ 23660/* confdefs.h. */
23679_ACEOF 23661_ACEOF
23695# include <assert.h> 23677# include <assert.h>
23696#endif 23678#endif
23697 23679
23698#undef $ac_func 23680#undef $ac_func
23699 23681
23700/* Override any gcc2 internal prototype to avoid an error. */ 23682/* Override any GCC internal prototype to avoid an error.
23683 Use char because int might match the return type of a GCC
23684 builtin and then its argument prototype would still apply. */
23701#ifdef __cplusplus 23685#ifdef __cplusplus
23702extern "C" 23686extern "C"
23703{
23704#endif 23687#endif
23705/* We use char because int might match the return type of a gcc2
23706 builtin and then its argument prototype would still apply. */
23707char $ac_func (); 23688char $ac_func ();
23708/* The GNU C library defines this for functions which it implements 23689/* The GNU C library defines this for functions which it implements
23709 to always fail with ENOSYS. Some functions are actually named 23690 to always fail with ENOSYS. Some functions are actually named
23710 something starting with __ and the normal name is an alias. */ 23691 something starting with __ and the normal name is an alias. */
23711#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23692#if defined __stub_$ac_func || defined __stub___$ac_func
23712choke me 23693choke me
23713#else
23714char (*f) () = $ac_func;
23715#endif
23716#ifdef __cplusplus
23717}
23718#endif 23694#endif
23719 23695
23720int 23696int
23721main () 23697main ()
23722{ 23698{
23723return f != $ac_func; 23699return $ac_func ();
23724 ; 23700 ;
23725 return 0; 23701 return 0;
23726} 23702}
23727_ACEOF 23703_ACEOF
23728rm -f conftest.$ac_objext conftest$ac_exeext 23704rm -f conftest.$ac_objext conftest$ac_exeext
23705if { (ac_try="$ac_link"
23706case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23709esac
23729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval $ac_link) 2>conftest.er1 23711 (eval "$ac_link") 2>conftest.er1
23731 ac_status=$? 23712 ac_status=$?
23732 grep -v '^ *+' conftest.er1 >conftest.err 23713 grep -v '^ *+' conftest.er1 >conftest.err
23733 rm -f conftest.er1 23714 rm -f conftest.er1
23734 cat conftest.err >&5 23715 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && 23717 (exit $ac_status); } && {
23737 { ac_try='test -z "$ac_c_werror_flag" 23718 test -z "$ac_c_werror_flag" ||
23738 || test ! -s conftest.err' 23719 test ! -s conftest.err
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23720 } && test -s conftest$ac_exeext &&
23740 (eval $ac_try) 2>&5 23721 $as_test_x conftest$ac_exeext; then
23741 ac_status=$?
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; } &&
23744 { ac_try='test -s conftest$ac_exeext'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23747 ac_status=$?
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 eval "$as_ac_var=yes" 23722 eval "$as_ac_var=yes"
23751else 23723else
23752 echo "$as_me: failed program was:" >&5 23724 echo "$as_me: failed program was:" >&5
23753sed 's/^/| /' conftest.$ac_ext >&5 23725sed 's/^/| /' conftest.$ac_ext >&5
23754 23726
23755eval "$as_ac_var=no" 23727 eval "$as_ac_var=no"
23756fi 23728fi
23757rm -f conftest.err conftest.$ac_objext \ 23729
23730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23758 conftest$ac_exeext conftest.$ac_ext 23731 conftest$ac_exeext conftest.$ac_ext
23759fi 23732fi
23760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23733ac_res=`eval echo '${'$as_ac_var'}'`
23761echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23734 { echo "$as_me:$LINENO: result: $ac_res" >&5
23735echo "${ECHO_T}$ac_res" >&6; }
23762if test `eval echo '${'$as_ac_var'}'` = yes; then 23736if test `eval echo '${'$as_ac_var'}'` = yes; then
23763 cat >>confdefs.h <<_ACEOF 23737 cat >>confdefs.h <<_ACEOF
23764#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23765_ACEOF 23739_ACEOF
23766 23740
23790# Check to see if we should build Sendmail SPF milter and perform the pthreads 23764# Check to see if we should build Sendmail SPF milter and perform the pthreads
23791# check again and in the event it wasn't specified (its required) or it failed, 23765# check again and in the event it wasn't specified (its required) or it failed,
23792# we will catch it (and enable it if successful) here. 23766# we will catch it (and enable it if successful) here.
23793#------------------------------------------------------------------------------- 23767#-------------------------------------------------------------------------------
23794 23768
23795echo "$as_me:$LINENO: checking whether to build the Sendmail SPF milter?" >&5 23769{ echo "$as_me:$LINENO: checking whether to build the Sendmail SPF milter?" >&5
23796echo $ECHO_N "checking whether to build the Sendmail SPF milter?... $ECHO_C" >&6 23770echo $ECHO_N "checking whether to build the Sendmail SPF milter?... $ECHO_C" >&6; }
23797# Check whether --enable-spfmilter or --disable-spfmilter was given. 23771# Check whether --enable-spfmilter was given.
23798if test "${enable_spfmilter+set}" = set; then 23772if test "${enable_spfmilter+set}" = set; then
23799 enableval="$enable_spfmilter" 23773 enableval=$enable_spfmilter; case "${enableval}" in
23800 case "${enableval}" in
23801 yes) 23774 yes)
23802 spfmilter=true 23775 spfmilter=true
23803 echo "$as_me:$LINENO: result: yes" >&5 23776 { echo "$as_me:$LINENO: result: yes" >&5
23804echo "${ECHO_T}yes" >&6 23777echo "${ECHO_T}yes" >&6; }
23805 ;; 23778 ;;
23806 no) 23779 no)
23807 spfmilter=false 23780 spfmilter=false
23808 echo "$as_me:$LINENO: result: no" >&5 23781 { echo "$as_me:$LINENO: result: no" >&5
23809echo "${ECHO_T}no" >&6 23782echo "${ECHO_T}no" >&6; }
23810 ;; 23783 ;;
23811 *) 23784 *)
23812 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-spfmilter" >&5 23785 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-spfmilter" >&5
23813echo "$as_me: error: bad value ${enableval} for --enable-spfmilter" >&2;} 23786echo "$as_me: error: bad value ${enableval} for --enable-spfmilter" >&2;}
23814 { (exit 1); exit 1; }; } 23787 { (exit 1); exit 1; }; }
23815 ;; 23788 ;;
23816esac 23789esac
23817else 23790else
23791 spfmilter=false
23818 spfmilter=false echo "$as_me:$LINENO: result: no" >&5 23792{ echo "$as_me:$LINENO: result: no" >&5
23819echo "${ECHO_T}no" >&6 23793echo "${ECHO_T}no" >&6; }
23820fi; 23794fi
23795
23821 23796
23822if test "$pthreads" = "false"; then 23797if test "$pthreads" = "false"; then
23823 if test "$spfmilter" = "true"; then 23798 if test "$spfmilter" = "true"; then
23824 { { echo "$as_me:$LINENO: error: pthreads is required, please re-configure with --enable-pthreads" >&5 23799 { { echo "$as_me:$LINENO: error: pthreads is required, please re-configure with --enable-pthreads" >&5
23825echo "$as_me: error: pthreads is required, please re-configure with --enable-pthreads" >&2;} 23800echo "$as_me: error: pthreads is required, please re-configure with --enable-pthreads" >&2;}
23857 23832
23858#------------------------------------------------------------------------------- 23833#-------------------------------------------------------------------------------
23859# getpwuid (pwd.h) 23834# getpwuid (pwd.h)
23860#------------------------------------------------------------------------------- 23835#-------------------------------------------------------------------------------
23861 23836
23862echo "$as_me:$LINENO: checking getpwuid" >&5 23837{ echo "$as_me:$LINENO: checking getpwuid" >&5
23863echo $ECHO_N "checking getpwuid... $ECHO_C" >&6 23838echo $ECHO_N "checking getpwuid... $ECHO_C" >&6; }
23864use_getpwuid=no 23839use_getpwuid=no
23865echo "$as_me:$LINENO: checking for getpwuid" >&5 23840{ echo "$as_me:$LINENO: checking for getpwuid" >&5
23866echo $ECHO_N "checking for getpwuid... $ECHO_C" >&6 23841echo $ECHO_N "checking for getpwuid... $ECHO_C" >&6; }
23867if test "${ac_cv_func_getpwuid+set}" = set; then 23842if test "${ac_cv_func_getpwuid+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6 23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23869else 23844else
23870 cat >conftest.$ac_ext <<_ACEOF 23845 cat >conftest.$ac_ext <<_ACEOF
23871/* confdefs.h. */ 23846/* confdefs.h. */
23888# include <assert.h> 23863# include <assert.h>
23889#endif 23864#endif
23890 23865
23891#undef getpwuid 23866#undef getpwuid
23892 23867
23893/* Override any gcc2 internal prototype to avoid an error. */ 23868/* Override any GCC internal prototype to avoid an error.
23869 Use char because int might match the return type of a GCC
23870 builtin and then its argument prototype would still apply. */
23894#ifdef __cplusplus 23871#ifdef __cplusplus
23895extern "C" 23872extern "C"
23896{
23897#endif 23873#endif
23898/* We use char because int might match the return type of a gcc2
23899 builtin and then its argument prototype would still apply. */
23900char getpwuid (); 23874char getpwuid ();
23901/* The GNU C library defines this for functions which it implements 23875/* The GNU C library defines this for functions which it implements
23902 to always fail with ENOSYS. Some functions are actually named 23876 to always fail with ENOSYS. Some functions are actually named
23903 something starting with __ and the normal name is an alias. */ 23877 something starting with __ and the normal name is an alias. */
23904#if defined (__stub_getpwuid) || defined (__stub___getpwuid) 23878#if defined __stub_getpwuid || defined __stub___getpwuid
23905choke me 23879choke me
23906#else
23907char (*f) () = getpwuid;
23908#endif
23909#ifdef __cplusplus
23910}
23911#endif 23880#endif
23912 23881
23913int 23882int
23914main () 23883main ()
23915{ 23884{
23916return f != getpwuid; 23885return getpwuid ();
23917 ; 23886 ;
23918 return 0; 23887 return 0;
23919} 23888}
23920_ACEOF 23889_ACEOF
23921rm -f conftest.$ac_objext conftest$ac_exeext 23890rm -f conftest.$ac_objext conftest$ac_exeext
23891if { (ac_try="$ac_link"
23892case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23895esac
23922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923 (eval $ac_link) 2>conftest.er1 23897 (eval "$ac_link") 2>conftest.er1
23924 ac_status=$? 23898 ac_status=$?
23925 grep -v '^ *+' conftest.er1 >conftest.err 23899 grep -v '^ *+' conftest.er1 >conftest.err
23926 rm -f conftest.er1 23900 rm -f conftest.er1
23927 cat conftest.err >&5 23901 cat conftest.err >&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } && 23903 (exit $ac_status); } && {
23930 { ac_try='test -z "$ac_c_werror_flag" 23904 test -z "$ac_c_werror_flag" ||
23931 || test ! -s conftest.err' 23905 test ! -s conftest.err
23932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23906 } && test -s conftest$ac_exeext &&
23933 (eval $ac_try) 2>&5 23907 $as_test_x conftest$ac_exeext; then
23934 ac_status=$?
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); }; } &&
23937 { ac_try='test -s conftest$ac_exeext'
23938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); }; }; then
23943 ac_cv_func_getpwuid=yes 23908 ac_cv_func_getpwuid=yes
23944else 23909else
23945 echo "$as_me: failed program was:" >&5 23910 echo "$as_me: failed program was:" >&5
23946sed 's/^/| /' conftest.$ac_ext >&5 23911sed 's/^/| /' conftest.$ac_ext >&5
23947 23912
23948ac_cv_func_getpwuid=no 23913 ac_cv_func_getpwuid=no
23949fi 23914fi
23950rm -f conftest.err conftest.$ac_objext \ 23915
23916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23951 conftest$ac_exeext conftest.$ac_ext 23917 conftest$ac_exeext conftest.$ac_ext
23952fi 23918fi
23953echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid" >&5 23919{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid" >&5
23954echo "${ECHO_T}$ac_cv_func_getpwuid" >&6 23920echo "${ECHO_T}$ac_cv_func_getpwuid" >&6; }
23955if test $ac_cv_func_getpwuid = yes; then 23921if test $ac_cv_func_getpwuid = yes; then
23956 use_getpwuid=yes 23922 use_getpwuid=yes
23957else 23923else
23958 echo "$as_me:$LINENO: checking for getpwuid" >&5 23924 { echo "$as_me:$LINENO: checking for getpwuid" >&5
23959echo $ECHO_N "checking for getpwuid... $ECHO_C" >&6 23925echo $ECHO_N "checking for getpwuid... $ECHO_C" >&6; }
23960if test "${ac_cv_func_getpwuid+set}" = set; then 23926if test "${ac_cv_func_getpwuid+set}" = set; then
23961 echo $ECHO_N "(cached) $ECHO_C" >&6 23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23962else 23928else
23963 cat >conftest.$ac_ext <<_ACEOF 23929 cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h. */ 23930/* confdefs.h. */
23981# include <assert.h> 23947# include <assert.h>
23982#endif 23948#endif
23983 23949
23984#undef getpwuid 23950#undef getpwuid
23985 23951
23986/* Override any gcc2 internal prototype to avoid an error. */ 23952/* Override any GCC internal prototype to avoid an error.
23953 Use char because int might match the return type of a GCC
23954 builtin and then its argument prototype would still apply. */
23987#ifdef __cplusplus 23955#ifdef __cplusplus
23988extern "C" 23956extern "C"
23989{
23990#endif 23957#endif
23991/* We use char because int might match the return type of a gcc2
23992 builtin and then its argument prototype would still apply. */
23993char getpwuid (); 23958char getpwuid ();
23994/* The GNU C library defines this for functions which it implements 23959/* The GNU C library defines this for functions which it implements
23995 to always fail with ENOSYS. Some functions are actually named 23960 to always fail with ENOSYS. Some functions are actually named
23996 something starting with __ and the normal name is an alias. */ 23961 something starting with __ and the normal name is an alias. */
23997#if defined (__stub_getpwuid) || defined (__stub___getpwuid) 23962#if defined __stub_getpwuid || defined __stub___getpwuid
23998choke me 23963choke me
23999#else
24000char (*f) () = getpwuid;
24001#endif
24002#ifdef __cplusplus
24003}
24004#endif 23964#endif
24005 23965
24006int 23966int
24007main () 23967main ()
24008{ 23968{
24009return f != getpwuid; 23969return getpwuid ();
24010 ; 23970 ;
24011 return 0; 23971 return 0;
24012} 23972}
24013_ACEOF 23973_ACEOF
24014rm -f conftest.$ac_objext conftest$ac_exeext 23974rm -f conftest.$ac_objext conftest$ac_exeext
23975if { (ac_try="$ac_link"
23976case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23979esac
24015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24016 (eval $ac_link) 2>conftest.er1 23981 (eval "$ac_link") 2>conftest.er1
24017 ac_status=$? 23982 ac_status=$?
24018 grep -v '^ *+' conftest.er1 >conftest.err 23983 grep -v '^ *+' conftest.er1 >conftest.err
24019 rm -f conftest.er1 23984 rm -f conftest.er1
24020 cat conftest.err >&5 23985 cat conftest.err >&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } && 23987 (exit $ac_status); } && {
24023 { ac_try='test -z "$ac_c_werror_flag" 23988 test -z "$ac_c_werror_flag" ||
24024 || test ! -s conftest.err' 23989 test ! -s conftest.err
24025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23990 } && test -s conftest$ac_exeext &&
24026 (eval $ac_try) 2>&5 23991 $as_test_x conftest$ac_exeext; then
24027 ac_status=$?
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); }; } &&
24030 { ac_try='test -s conftest$ac_exeext'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; }; then
24036 ac_cv_func_getpwuid=yes 23992 ac_cv_func_getpwuid=yes
24037else 23993else
24038 echo "$as_me: failed program was:" >&5 23994 echo "$as_me: failed program was:" >&5
24039sed 's/^/| /' conftest.$ac_ext >&5 23995sed 's/^/| /' conftest.$ac_ext >&5
24040 23996
24041ac_cv_func_getpwuid=no 23997 ac_cv_func_getpwuid=no
24042fi 23998fi
24043rm -f conftest.err conftest.$ac_objext \ 23999
24000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24044 conftest$ac_exeext conftest.$ac_ext 24001 conftest$ac_exeext conftest.$ac_ext
24045fi 24002fi
24046echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid" >&5 24003{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid" >&5
24047echo "${ECHO_T}$ac_cv_func_getpwuid" >&6 24004echo "${ECHO_T}$ac_cv_func_getpwuid" >&6; }
24048 24005
24049fi 24006fi
24050 24007
24051 if test "x$use_getpwuid" = "xyes"; then 24008 if test "x$use_getpwuid" = "xyes"; then
24052 24009
24063 24020
24064#------------------------------------------------------------------------------- 24021#-------------------------------------------------------------------------------
24065# setgroups (grp.h) 24022# setgroups (grp.h)
24066#------------------------------------------------------------------------------- 24023#-------------------------------------------------------------------------------
24067 24024
24068echo "$as_me:$LINENO: checking setgroups" >&5 24025{ echo "$as_me:$LINENO: checking setgroups" >&5
24069echo $ECHO_N "checking setgroups... $ECHO_C" >&6 24026echo $ECHO_N "checking setgroups... $ECHO_C" >&6; }
24070use_setgroups=no 24027use_setgroups=no
24071echo "$as_me:$LINENO: checking for setgroups" >&5 24028{ echo "$as_me:$LINENO: checking for setgroups" >&5
24072echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 24029echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
24073if test "${ac_cv_func_setgroups+set}" = set; then 24030if test "${ac_cv_func_setgroups+set}" = set; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6 24031 echo $ECHO_N "(cached) $ECHO_C" >&6
24075else 24032else
24076 cat >conftest.$ac_ext <<_ACEOF 24033 cat >conftest.$ac_ext <<_ACEOF
24077/* confdefs.h. */ 24034/* confdefs.h. */
24094# include <assert.h> 24051# include <assert.h>
24095#endif 24052#endif
24096 24053
24097#undef setgroups 24054#undef setgroups
24098 24055
24099/* Override any gcc2 internal prototype to avoid an error. */ 24056/* Override any GCC internal prototype to avoid an error.
24057 Use char because int might match the return type of a GCC
24058 builtin and then its argument prototype would still apply. */
24100#ifdef __cplusplus 24059#ifdef __cplusplus
24101extern "C" 24060extern "C"
24102{
24103#endif 24061#endif
24104/* We use char because int might match the return type of a gcc2
24105 builtin and then its argument prototype would still apply. */
24106char setgroups (); 24062char setgroups ();
24107/* The GNU C library defines this for functions which it implements 24063/* The GNU C library defines this for functions which it implements
24108 to always fail with ENOSYS. Some functions are actually named 24064 to always fail with ENOSYS. Some functions are actually named
24109 something starting with __ and the normal name is an alias. */ 24065 something starting with __ and the normal name is an alias. */
24110#if defined (__stub_setgroups) || defined (__stub___setgroups) 24066#if defined __stub_setgroups || defined __stub___setgroups
24111choke me 24067choke me
24112#else
24113char (*f) () = setgroups;
24114#endif
24115#ifdef __cplusplus
24116}
24117#endif 24068#endif
24118 24069
24119int 24070int
24120main () 24071main ()
24121{ 24072{
24122return f != setgroups; 24073return setgroups ();
24123 ; 24074 ;
24124 return 0; 24075 return 0;
24125} 24076}
24126_ACEOF 24077_ACEOF
24127rm -f conftest.$ac_objext conftest$ac_exeext 24078rm -f conftest.$ac_objext conftest$ac_exeext
24079if { (ac_try="$ac_link"
24080case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24083esac
24128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129 (eval $ac_link) 2>conftest.er1 24085 (eval "$ac_link") 2>conftest.er1
24130 ac_status=$? 24086 ac_status=$?
24131 grep -v '^ *+' conftest.er1 >conftest.err 24087 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1 24088 rm -f conftest.er1
24133 cat conftest.err >&5 24089 cat conftest.err >&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && 24091 (exit $ac_status); } && {
24136 { ac_try='test -z "$ac_c_werror_flag" 24092 test -z "$ac_c_werror_flag" ||
24137 || test ! -s conftest.err' 24093 test ! -s conftest.err
24138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24094 } && test -s conftest$ac_exeext &&
24139 (eval $ac_try) 2>&5 24095 $as_test_x conftest$ac_exeext; then
24140 ac_status=$?
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; } &&
24143 { ac_try='test -s conftest$ac_exeext'
24144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145 (eval $ac_try) 2>&5
24146 ac_status=$?
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; }; then
24149 ac_cv_func_setgroups=yes 24096 ac_cv_func_setgroups=yes
24150else 24097else
24151 echo "$as_me: failed program was:" >&5 24098 echo "$as_me: failed program was:" >&5
24152sed 's/^/| /' conftest.$ac_ext >&5 24099sed 's/^/| /' conftest.$ac_ext >&5
24153 24100
24154ac_cv_func_setgroups=no 24101 ac_cv_func_setgroups=no
24155fi 24102fi
24156rm -f conftest.err conftest.$ac_objext \ 24103
24104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24157 conftest$ac_exeext conftest.$ac_ext 24105 conftest$ac_exeext conftest.$ac_ext
24158fi 24106fi
24159echo "$as_me:$LINENO: result: $ac_cv_func_setgroups" >&5 24107{ echo "$as_me:$LINENO: result: $ac_cv_func_setgroups" >&5
24160echo "${ECHO_T}$ac_cv_func_setgroups" >&6 24108echo "${ECHO_T}$ac_cv_func_setgroups" >&6; }
24161if test $ac_cv_func_setgroups = yes; then 24109if test $ac_cv_func_setgroups = yes; then
24162 use_setgroups=yes 24110 use_setgroups=yes
24163else 24111else
24164 echo "$as_me:$LINENO: checking for setgroups" >&5 24112 { echo "$as_me:$LINENO: checking for setgroups" >&5
24165echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 24113echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
24166if test "${ac_cv_func_setgroups+set}" = set; then 24114if test "${ac_cv_func_setgroups+set}" = set; then
24167 echo $ECHO_N "(cached) $ECHO_C" >&6 24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24168else 24116else
24169 cat >conftest.$ac_ext <<_ACEOF 24117 cat >conftest.$ac_ext <<_ACEOF
24170/* confdefs.h. */ 24118/* confdefs.h. */
24187# include <assert.h> 24135# include <assert.h>
24188#endif 24136#endif
24189 24137
24190#undef setgroups 24138#undef setgroups
24191 24139
24192/* Override any gcc2 internal prototype to avoid an error. */ 24140/* Override any GCC internal prototype to avoid an error.
24141 Use char because int might match the return type of a GCC
24142 builtin and then its argument prototype would still apply. */
24193#ifdef __cplusplus 24143#ifdef __cplusplus
24194extern "C" 24144extern "C"
24195{
24196#endif 24145#endif
24197/* We use char because int might match the return type of a gcc2
24198 builtin and then its argument prototype would still apply. */
24199char setgroups (); 24146char setgroups ();
24200/* The GNU C library defines this for functions which it implements 24147/* The GNU C library defines this for functions which it implements
24201 to always fail with ENOSYS. Some functions are actually named 24148 to always fail with ENOSYS. Some functions are actually named
24202 something starting with __ and the normal name is an alias. */ 24149 something starting with __ and the normal name is an alias. */
24203#if defined (__stub_setgroups) || defined (__stub___setgroups) 24150#if defined __stub_setgroups || defined __stub___setgroups
24204choke me 24151choke me
24205#else
24206char (*f) () = setgroups;
24207#endif
24208#ifdef __cplusplus
24209}
24210#endif 24152#endif
24211 24153
24212int 24154int
24213main () 24155main ()
24214{ 24156{
24215return f != setgroups; 24157return setgroups ();
24216 ; 24158 ;
24217 return 0; 24159 return 0;
24218} 24160}
24219_ACEOF 24161_ACEOF
24220rm -f conftest.$ac_objext conftest$ac_exeext 24162rm -f conftest.$ac_objext conftest$ac_exeext
24163if { (ac_try="$ac_link"
24164case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167esac
24221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24222 (eval $ac_link) 2>conftest.er1 24169 (eval "$ac_link") 2>conftest.er1
24223 ac_status=$? 24170 ac_status=$?
24224 grep -v '^ *+' conftest.er1 >conftest.err 24171 grep -v '^ *+' conftest.er1 >conftest.err
24225 rm -f conftest.er1 24172 rm -f conftest.er1
24226 cat conftest.err >&5 24173 cat conftest.err >&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } && 24175 (exit $ac_status); } && {
24229 { ac_try='test -z "$ac_c_werror_flag" 24176 test -z "$ac_c_werror_flag" ||
24230 || test ! -s conftest.err' 24177 test ! -s conftest.err
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24178 } && test -s conftest$ac_exeext &&
24232 (eval $ac_try) 2>&5 24179 $as_test_x conftest$ac_exeext; then
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; } &&
24236 { ac_try='test -s conftest$ac_exeext'
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 ac_cv_func_setgroups=yes 24180 ac_cv_func_setgroups=yes
24243else 24181else
24244 echo "$as_me: failed program was:" >&5 24182 echo "$as_me: failed program was:" >&5
24245sed 's/^/| /' conftest.$ac_ext >&5 24183sed 's/^/| /' conftest.$ac_ext >&5
24246 24184
24247ac_cv_func_setgroups=no 24185 ac_cv_func_setgroups=no
24248fi 24186fi
24249rm -f conftest.err conftest.$ac_objext \ 24187
24188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24250 conftest$ac_exeext conftest.$ac_ext 24189 conftest$ac_exeext conftest.$ac_ext
24251fi 24190fi
24252echo "$as_me:$LINENO: result: $ac_cv_func_setgroups" >&5 24191{ echo "$as_me:$LINENO: result: $ac_cv_func_setgroups" >&5
24253echo "${ECHO_T}$ac_cv_func_setgroups" >&6 24192echo "${ECHO_T}$ac_cv_func_setgroups" >&6; }
24254 24193
24255fi 24194fi
24256 24195
24257 if test "x$use_setgroups" = "xyes"; then 24196 if test "x$use_setgroups" = "xyes"; then
24258 24197
24273# Enable compiler full-optimizations which lead to greater performance 24212# Enable compiler full-optimizations which lead to greater performance
24274#------------------------------------------------------------------------------- 24213#-------------------------------------------------------------------------------
24275 24214
24276if test "$debug" = "false"; then 24215if test "$debug" = "false"; then
24277 24216
24278 echo "$as_me:$LINENO: checking whether I should enable full optimizations" >&5 24217 { echo "$as_me:$LINENO: checking whether I should enable full optimizations" >&5
24279echo $ECHO_N "checking whether I should enable full optimizations... $ECHO_C" >&6 24218echo $ECHO_N "checking whether I should enable full optimizations... $ECHO_C" >&6; }
24280 # Check whether --enable-full_optimizations or --disable-full_optimizations was given. 24219 # Check whether --enable-full_optimizations was given.
24281if test "${enable_full_optimizations+set}" = set; then 24220if test "${enable_full_optimizations+set}" = set; then
24282 enableval="$enable_full_optimizations" 24221 enableval=$enable_full_optimizations; case "${enableval}" in
24283 case "${enableval}" in
24284 yes) 24222 yes)
24285 full_optimizations=true 24223 full_optimizations=true
24286 echo "$as_me:$LINENO: result: yes" >&5 24224 { echo "$as_me:$LINENO: result: yes" >&5
24287echo "${ECHO_T}yes" >&6 24225echo "${ECHO_T}yes" >&6; }
24288 ;; 24226 ;;
24289 no) 24227 no)
24290 full_optimizations=false 24228 full_optimizations=false
24291 echo "$as_me:$LINENO: result: no" >&5 24229 { echo "$as_me:$LINENO: result: no" >&5
24292echo "${ECHO_T}no" >&6 24230echo "${ECHO_T}no" >&6; }
24293 ;; 24231 ;;
24294 *) 24232 *)
24295 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-full-optimizations" >&5 24233 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-full-optimizations" >&5
24296echo "$as_me: error: bad value ${enableval} for --enable-full-optimizations" >&2;} 24234echo "$as_me: error: bad value ${enableval} for --enable-full-optimizations" >&2;}
24297 { (exit 1); exit 1; }; } 24235 { (exit 1); exit 1; }; }
24298 ;; 24236 ;;
24299 esac 24237 esac
24300else 24238else
24239 full_optimizations=false
24301 full_optimizations=false echo "$as_me:$LINENO: result: no" >&5 24240 { echo "$as_me:$LINENO: result: no" >&5
24302echo "${ECHO_T}no" >&6 24241echo "${ECHO_T}no" >&6; }
24303fi; 24242fi
24243
24304 24244
24305 if test "$full_optimizations" = "true"; then 24245 if test "$full_optimizations" = "true"; then
24306 if [ "x$GCCVER" != "xno" ]; then 24246 if [ "x$GCCVER" != "xno" ]; then
24307 echo "$as_me:$LINENO: result: yes" >&5 24247 { echo "$as_me:$LINENO: result: yes" >&5
24308echo "${ECHO_T}yes" >&6 24248echo "${ECHO_T}yes" >&6; }
24309 #CFLAGS="$CFLAGS -O2 -pipe -funroll-loops -ffast-math -ftracer -fweb" 24249 #CFLAGS="$CFLAGS -O2 -pipe -funroll-loops -ffast-math -ftracer -fweb"
24310 #CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer" 24250 #CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer"
24311 fi 24251 fi
24312 fi 24252 fi
24313fi 24253fi
24315 24255
24316#------------------------------------------------------------------------------- 24256#-------------------------------------------------------------------------------
24317# Generate Makefiles 24257# Generate Makefiles
24318#------------------------------------------------------------------------------- 24258#-------------------------------------------------------------------------------
24319 24259
24320 ac_config_files="$ac_config_files Makefile src/Makefile src/libspf/Makefile src/spfqtool/Makefile src/libspf/spf.h src/libspf/util.c src/spfmilter/Makefile" 24260ac_config_files="$ac_config_files Makefile src/Makefile src/libspf/Makefile src/spfqtool/Makefile src/libspf/spf.h src/libspf/util.c"
24261
24321cat >confcache <<\_ACEOF 24262cat >confcache <<\_ACEOF
24322# This file is a shell script that caches the results of configure 24263# This file is a shell script that caches the results of configure
24323# tests run on this system so they can be shared between configure 24264# tests run on this system so they can be shared between configure
24324# scripts and configure runs, see configure's option --config-cache. 24265# scripts and configure runs, see configure's option --config-cache.
24325# It is not useful on other systems. If it contains results you don't 24266# It is not useful on other systems. If it contains results you don't
24334 24275
24335_ACEOF 24276_ACEOF
24336 24277
24337# The following way of writing the cache mishandles newlines in values, 24278# The following way of writing the cache mishandles newlines in values,
24338# but we know of no workaround that is simple, portable, and efficient. 24279# but we know of no workaround that is simple, portable, and efficient.
24339# So, don't put newlines in cache variables' values. 24280# So, we kill variables containing newlines.
24340# Ultrix sh set writes to stderr and can't be redirected directly, 24281# Ultrix sh set writes to stderr and can't be redirected directly,
24341# and sets the high bit in the cache file unless we assign to the vars. 24282# and sets the high bit in the cache file unless we assign to the vars.
24342{ 24283(
24284 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24285 eval ac_val=\$$ac_var
24286 case $ac_val in #(
24287 *${as_nl}*)
24288 case $ac_var in #(
24289 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24290echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24291 esac
24292 case $ac_var in #(
24293 _ | IFS | as_nl) ;; #(
24294 *) $as_unset $ac_var ;;
24295 esac ;;
24296 esac
24297 done
24298
24343 (set) 2>&1 | 24299 (set) 2>&1 |
24344 case `(ac_space=' '; set | grep ac_space) 2>&1` in 24300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24345 *ac_space=\ *) 24301 *${as_nl}ac_space=\ *)
24346 # `set' does not quote correctly, so add quotes (double-quote 24302 # `set' does not quote correctly, so add quotes (double-quote
24347 # substitution turns \\\\ into \\, and sed turns \\ into \). 24303 # substitution turns \\\\ into \\, and sed turns \\ into \).
24348 sed -n \ 24304 sed -n \
24349 "s/'/'\\\\''/g; 24305 "s/'/'\\\\''/g;
24350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24351 ;; 24307 ;; #(
24352 *) 24308 *)
24353 # `set' quotes correctly as required by POSIX, so do not add quotes. 24309 # `set' quotes correctly as required by POSIX, so do not add quotes.
24354 sed -n \ 24310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24355 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24356 ;; 24311 ;;
24357 esac; 24312 esac |
24358} | 24313 sort
24314) |
24359 sed ' 24315 sed '
24316 /^ac_cv_env_/b end
24360 t clear 24317 t clear
24361 : clear 24318 :clear
24362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24363 t end 24320 t end
24364 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24365 : end' >>confcache 24322 :end' >>confcache
24366if diff $cache_file confcache >/dev/null 2>&1; then :; else 24323if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24367 if test -w $cache_file; then 24324 if test -w "$cache_file"; then
24368 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 24325 test "x$cache_file" != "x/dev/null" &&
24326 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24327echo "$as_me: updating cache $cache_file" >&6;}
24369 cat confcache >$cache_file 24328 cat confcache >$cache_file
24370 else 24329 else
24330 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24371 echo "not updating unwritable cache $cache_file" 24331echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24372 fi 24332 fi
24373fi 24333fi
24374rm -f confcache 24334rm -f confcache
24375 24335
24376test "x$prefix" = xNONE && prefix=$ac_default_prefix 24336test "x$prefix" = xNONE && prefix=$ac_default_prefix
24377# Let make expand exec_prefix. 24337# Let make expand exec_prefix.
24378test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24338test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24379
24380# VPATH may cause trouble with some makes, so we remove $(srcdir),
24381# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24382# trailing colons and then remove the whole line if VPATH becomes empty
24383# (actually we leave an empty line to preserve line numbers).
24384if test "x$srcdir" = x.; then
24385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24386s/:*\$(srcdir):*/:/;
24387s/:*\${srcdir}:*/:/;
24388s/:*@srcdir@:*/:/;
24389s/^\([^=]*=[ ]*\):*/\1/;
24390s/:*$//;
24391s/^[^=]*=[ ]*$//;
24392}'
24393fi
24394 24339
24395DEFS=-DHAVE_CONFIG_H 24340DEFS=-DHAVE_CONFIG_H
24396 24341
24397ac_libobjs= 24342ac_libobjs=
24398ac_ltlibobjs= 24343ac_ltlibobjs=
24399for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24344for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24400 # 1. Remove the extension, and $U if already installed. 24345 # 1. Remove the extension, and $U if already installed.
24401 ac_i=`echo "$ac_i" |
24402 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 24346 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24403 # 2. Add them. 24347 ac_i=`echo "$ac_i" | sed "$ac_script"`
24348 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24349 # will be set to the directory where LIBOBJS objects are built.
24404 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 24350 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24405 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 24351 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24406done 24352done
24407LIBOBJS=$ac_libobjs 24353LIBOBJS=$ac_libobjs
24408 24354
24409LTLIBOBJS=$ac_ltlibobjs 24355LTLIBOBJS=$ac_ltlibobjs
24410 24356
24445cat >>$CONFIG_STATUS <<\_ACEOF 24391cat >>$CONFIG_STATUS <<\_ACEOF
24446## --------------------- ## 24392## --------------------- ##
24447## M4sh Initialization. ## 24393## M4sh Initialization. ##
24448## --------------------- ## 24394## --------------------- ##
24449 24395
24450# Be Bourne compatible 24396# Be more Bourne compatible
24397DUALCASE=1; export DUALCASE # for MKS sh
24451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24398if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24452 emulate sh 24399 emulate sh
24453 NULLCMD=: 24400 NULLCMD=:
24454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 24401 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24455 # is contrary to our usage. Disable this feature. 24402 # is contrary to our usage. Disable this feature.
24456 alias -g '${1+"$@"}'='"$@"' 24403 alias -g '${1+"$@"}'='"$@"'
24457elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24404 setopt NO_GLOB_SUBST
24458 set -o posix
24459fi
24460DUALCASE=1; export DUALCASE # for MKS sh
24461
24462# Support unset when possible.
24463if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24464 as_unset=unset
24465else
24466 as_unset=false
24467fi
24468
24469
24470# Work around bugs in pre-3.0 UWIN ksh.
24471$as_unset ENV MAIL MAILPATH
24472PS1='$ '
24473PS2='> '
24474PS4='+ '
24475
24476# NLS nuisances.
24477for as_var in \
24478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24480 LC_TELEPHONE LC_TIME
24481do
24482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24483 eval $as_var=C; export $as_var
24484 else 24405else
24485 $as_unset $as_var 24406 case `(set -o) 2>/dev/null` in
24486 fi 24407 *posix*) set -o posix ;;
24487done 24408esac
24488 24409
24489# Required to use basename.
24490if expr a : '\(a\)' >/dev/null 2>&1; then
24491 as_expr=expr
24492else
24493 as_expr=false
24494fi 24410fi
24495 24411
24496if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24497 as_basename=basename
24498else
24499 as_basename=false
24500fi
24501 24412
24502 24413
24503# Name of the executable.
24504as_me=`$as_basename "$0" ||
24505$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24506 X"$0" : 'X\(//\)$' \| \
24507 X"$0" : 'X\(/\)$' \| \
24508 . : '\(.\)' 2>/dev/null ||
24509echo X/"$0" |
24510 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24511 /^X\/\(\/\/\)$/{ s//\1/; q; }
24512 /^X\/\(\/\).*/{ s//\1/; q; }
24513 s/.*/./; q'`
24514 24414
24515 24415# PATH needs CR
24516# PATH needs CR, and LINENO needs CR and PATH.
24517# Avoid depending upon Character Ranges. 24416# Avoid depending upon Character Ranges.
24518as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24519as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24520as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24521as_cr_digits='0123456789' 24420as_cr_digits='0123456789'
24532 PATH_SEPARATOR=: 24431 PATH_SEPARATOR=:
24533 fi 24432 fi
24534 rm -f conf$$.sh 24433 rm -f conf$$.sh
24535fi 24434fi
24536 24435
24436# Support unset when possible.
24437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24438 as_unset=unset
24439else
24440 as_unset=false
24441fi
24537 24442
24538 as_lineno_1=$LINENO 24443
24539 as_lineno_2=$LINENO 24444# IFS
24540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 24445# We need space, tab and new line, in precisely that order. Quoting is
24541 test "x$as_lineno_1" != "x$as_lineno_2" && 24446# there to prevent editors from complaining about space-tab.
24542 test "x$as_lineno_3" = "x$as_lineno_2" || { 24447# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24448# splitting by setting IFS to empty value.)
24449as_nl='
24450'
24451IFS=" "" $as_nl"
24452
24543 # Find who we are. Look in the path if we contain no path at all 24453# Find who we are. Look in the path if we contain no directory separator.
24544 # relative or not.
24545 case $0 in 24454case $0 in
24546 *[\\/]* ) as_myself=$0 ;; 24455 *[\\/]* ) as_myself=$0 ;;
24547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24548for as_dir in $PATH 24457for as_dir in $PATH
24549do 24458do
24550 IFS=$as_save_IFS 24459 IFS=$as_save_IFS
24551 test -z "$as_dir" && as_dir=. 24460 test -z "$as_dir" && as_dir=.
24552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24553done 24462done
24463IFS=$as_save_IFS
24554 24464
24555 ;; 24465 ;;
24556 esac 24466esac
24557 # We did not find ourselves, most probably we were run as `sh COMMAND' 24467# We did not find ourselves, most probably we were run as `sh COMMAND'
24558 # in which case we are not to be found in the path. 24468# in which case we are not to be found in the path.
24559 if test "x$as_myself" = x; then 24469if test "x$as_myself" = x; then
24560 as_myself=$0 24470 as_myself=$0
24471fi
24472if test ! -f "$as_myself"; then
24473 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24474 { (exit 1); exit 1; }
24475fi
24476
24477# Work around bugs in pre-3.0 UWIN ksh.
24478for as_var in ENV MAIL MAILPATH
24479do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24480done
24481PS1='$ '
24482PS2='> '
24483PS4='+ '
24484
24485# NLS nuisances.
24486for as_var in \
24487 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24488 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24489 LC_TELEPHONE LC_TIME
24490do
24491 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24492 eval $as_var=C; export $as_var
24493 else
24494 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24561 fi 24495 fi
24562 if test ! -f "$as_myself"; then 24496done
24563 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 24497
24564echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 24498# Required to use basename.
24565 { (exit 1); exit 1; }; } 24499if expr a : '\(a\)' >/dev/null 2>&1 &&
24566 fi 24500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24567 case $CONFIG_SHELL in 24501 as_expr=expr
24568 '') 24502else
24569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24503 as_expr=false
24570for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 24504fi
24571do 24505
24572 IFS=$as_save_IFS 24506if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24573 test -z "$as_dir" && as_dir=. 24507 as_basename=basename
24574 for as_base in sh bash ksh sh5; do 24508else
24575 case $as_dir in 24509 as_basename=false
24576 /*) 24510fi
24577 if ("$as_dir/$as_base" -c ' 24511
24512
24513# Name of the executable.
24514as_me=`$as_basename -- "$0" ||
24515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24516 X"$0" : 'X\(//\)$' \| \
24517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24518echo X/"$0" |
24519 sed '/^.*\/\([^/][^/]*\)\/*$/{
24520 s//\1/
24521 q
24522 }
24523 /^X\/\(\/\/\)$/{
24524 s//\1/
24525 q
24526 }
24527 /^X\/\(\/\).*/{
24528 s//\1/
24529 q
24530 }
24531 s/.*/./; q'`
24532
24533# CDPATH.
24534$as_unset CDPATH
24535
24536
24537
24578 as_lineno_1=$LINENO 24538 as_lineno_1=$LINENO
24579 as_lineno_2=$LINENO 24539 as_lineno_2=$LINENO
24580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24581 test "x$as_lineno_1" != "x$as_lineno_2" && 24540 test "x$as_lineno_1" != "x$as_lineno_2" &&
24582 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 24541 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24583 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24584 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24585 CONFIG_SHELL=$as_dir/$as_base
24586 export CONFIG_SHELL
24587 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24588 fi;;
24589 esac
24590 done
24591done
24592;;
24593 esac
24594 24542
24595 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 24543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24596 # uniformly replaced by the line number. The first 'sed' inserts a 24544 # uniformly replaced by the line number. The first 'sed' inserts a
24597 # line-number line before each line; the second 'sed' does the real 24545 # line-number line after each line using $LINENO; the second 'sed'
24598 # work. The second script uses 'N' to pair each line-number line 24546 # does the real work. The second script uses 'N' to pair each
24599 # with the numbered line, and appends trailing '-' during 24547 # line-number line with the line containing $LINENO, and appends
24600 # substitution so that $LINENO is not a special case at line end. 24548 # trailing '-' during substitution so that $LINENO is not a special
24549 # case at line end.
24601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 24550 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24602 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 24551 # scripts with optimization help from Paolo Bonzini. Blame Lee
24552 # E. McMahon (1931-1989) for sed's syntax. :-)
24553 sed -n '
24554 p
24555 /[$]LINENO/=
24603 sed '=' <$as_myself | 24556 ' <$as_myself |
24604 sed ' 24557 sed '
24558 s/[$]LINENO.*/&-/
24559 t lineno
24560 b
24561 :lineno
24605 N 24562 N
24606 s,$,-,
24607 : loop 24563 :loop
24608 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 24564 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24609 t loop 24565 t loop
24610 s,-$,, 24566 s/-\n.*//
24611 s,^['$as_cr_digits']*\n,,
24612 ' >$as_me.lineno && 24567 ' >$as_me.lineno &&
24613 chmod +x $as_me.lineno || 24568 chmod +x "$as_me.lineno" ||
24614 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24615echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 24569 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24616 { (exit 1); exit 1; }; } 24570 { (exit 1); exit 1; }; }
24617 24571
24618 # Don't try to exec as it changes $[0], causing all sort of problems 24572 # Don't try to exec as it changes $[0], causing all sort of problems
24619 # (the dirname of $[0] is not the place where we might find the 24573 # (the dirname of $[0] is not the place where we might find the
24620 # original and so on. Autoconf is especially sensible to this). 24574 # original and so on. Autoconf is especially sensitive to this).
24621 . ./$as_me.lineno 24575 . "./$as_me.lineno"
24622 # Exit status is that of the last command. 24576 # Exit status is that of the last command.
24623 exit 24577 exit
24624} 24578}
24625 24579
24626 24580
24627case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 24581if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24628 *c*,-n*) ECHO_N= ECHO_C=' 24582 as_dirname=dirname
24629' ECHO_T=' ' ;; 24583else
24630 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 24584 as_dirname=false
24631 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 24585fi
24586
24587ECHO_C= ECHO_N= ECHO_T=
24588case `echo -n x` in
24589-n*)
24590 case `echo 'x\c'` in
24591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24592 *) ECHO_C='\c';;
24593 esac;;
24594*)
24595 ECHO_N='-n';;
24632esac 24596esac
24633 24597
24634if expr a : '\(a\)' >/dev/null 2>&1; then 24598if expr a : '\(a\)' >/dev/null 2>&1 &&
24599 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24635 as_expr=expr 24600 as_expr=expr
24636else 24601else
24637 as_expr=false 24602 as_expr=false
24638fi 24603fi
24639 24604
24640rm -f conf$$ conf$$.exe conf$$.file 24605rm -f conf$$ conf$$.exe conf$$.file
24606if test -d conf$$.dir; then
24607 rm -f conf$$.dir/conf$$.file
24608else
24609 rm -f conf$$.dir
24610 mkdir conf$$.dir
24611fi
24641echo >conf$$.file 24612echo >conf$$.file
24642if ln -s conf$$.file conf$$ 2>/dev/null; then 24613if ln -s conf$$.file conf$$ 2>/dev/null; then
24643 # We could just check for DJGPP; but this test a) works b) is more generic 24614 as_ln_s='ln -s'
24644 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 24615 # ... but there are two gotchas:
24645 if test -f conf$$.exe; then 24616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24646 # Don't use ln at all; we don't have any links 24617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24618 # In both cases, we have to default to `cp -p'.
24619 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24647 as_ln_s='cp -p' 24620 as_ln_s='cp -p'
24648 else
24649 as_ln_s='ln -s'
24650 fi
24651elif ln conf$$.file conf$$ 2>/dev/null; then 24621elif ln conf$$.file conf$$ 2>/dev/null; then
24652 as_ln_s=ln 24622 as_ln_s=ln
24653else 24623else
24654 as_ln_s='cp -p' 24624 as_ln_s='cp -p'
24655fi 24625fi
24656rm -f conf$$ conf$$.exe conf$$.file 24626rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24627rmdir conf$$.dir 2>/dev/null
24657 24628
24658if mkdir -p . 2>/dev/null; then 24629if mkdir -p . 2>/dev/null; then
24659 as_mkdir_p=: 24630 as_mkdir_p=:
24660else 24631else
24661 test -d ./-p && rmdir ./-p 24632 test -d ./-p && rmdir ./-p
24662 as_mkdir_p=false 24633 as_mkdir_p=false
24663fi 24634fi
24664 24635
24636if test -x / >/dev/null 2>&1; then
24637 as_test_x='test -x'
24638else
24639 if ls -dL / >/dev/null 2>&1; then
24640 as_ls_L_option=L
24641 else
24642 as_ls_L_option=
24643 fi
24644 as_test_x='
24645 eval sh -c '\''
24646 if test -d "$1"; then
24647 test -d "$1/.";
24648 else
24649 case $1 in
24650 -*)set "./$1";;
24651 esac;
24652 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24653 ???[sx]*):;;*)false;;esac;fi
24654 '\'' sh
24655 '
24656fi
24665as_executable_p="test -f" 24657as_executable_p=$as_test_x
24666 24658
24667# Sed expression to map a string onto a valid CPP name. 24659# Sed expression to map a string onto a valid CPP name.
24668as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24660as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24669 24661
24670# Sed expression to map a string onto a valid variable name. 24662# Sed expression to map a string onto a valid variable name.
24671as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24663as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24672 24664
24673 24665
24674# IFS
24675# We need space, tab and new line, in precisely that order.
24676as_nl='
24677'
24678IFS=" $as_nl"
24679
24680# CDPATH.
24681$as_unset CDPATH
24682
24683exec 6>&1 24666exec 6>&1
24684 24667
24685# Open the log real soon, to keep \$[0] and so on meaningful, and to 24668# Save the log message, to keep $[0] and so on meaningful, and to
24686# report actual input values of CONFIG_FILES etc. instead of their 24669# report actual input values of CONFIG_FILES etc. instead of their
24687# values after options handling. Logging --version etc. is OK. 24670# values after options handling.
24688exec 5>>config.log 24671ac_log="
24689{
24690 echo
24691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24692## Running $as_me. ##
24693_ASBOX
24694} >&5
24695cat >&5 <<_CSEOF
24696
24697This file was extended by libspf $as_me 1.0.0-p5, which was 24672This file was extended by libspf $as_me 1.0.0-p5, which was
24698generated by GNU Autoconf 2.59. Invocation command line was 24673generated by GNU Autoconf 2.61. Invocation command line was
24699 24674
24700 CONFIG_FILES = $CONFIG_FILES 24675 CONFIG_FILES = $CONFIG_FILES
24701 CONFIG_HEADERS = $CONFIG_HEADERS 24676 CONFIG_HEADERS = $CONFIG_HEADERS
24702 CONFIG_LINKS = $CONFIG_LINKS 24677 CONFIG_LINKS = $CONFIG_LINKS
24703 CONFIG_COMMANDS = $CONFIG_COMMANDS 24678 CONFIG_COMMANDS = $CONFIG_COMMANDS
24704 $ $0 $@ 24679 $ $0 $@
24705 24680
24706_CSEOF
24707echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 24681on `(hostname || uname -n) 2>/dev/null | sed 1q`
24708echo >&5 24682"
24709_ACEOF
24710 24683
24684_ACEOF
24685
24686cat >>$CONFIG_STATUS <<_ACEOF
24711# Files that config.status was made for. 24687# Files that config.status was made for.
24712if test -n "$ac_config_files"; then 24688config_files="$ac_config_files"
24713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 24689config_headers="$ac_config_headers"
24714fi 24690config_commands="$ac_config_commands"
24715 24691
24716if test -n "$ac_config_headers"; then 24692_ACEOF
24717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24718fi
24719
24720if test -n "$ac_config_links"; then
24721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24722fi
24723
24724if test -n "$ac_config_commands"; then
24725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24726fi
24727 24693
24728cat >>$CONFIG_STATUS <<\_ACEOF 24694cat >>$CONFIG_STATUS <<\_ACEOF
24729
24730ac_cs_usage="\ 24695ac_cs_usage="\
24731\`$as_me' instantiates files from templates according to the 24696\`$as_me' instantiates files from templates according to the
24732current configuration. 24697current configuration.
24733 24698
24734Usage: $0 [OPTIONS] [FILE]... 24699Usage: $0 [OPTIONS] [FILE]...
24735 24700
24736 -h, --help print this help, then exit 24701 -h, --help print this help, then exit
24737 -V, --version print version number, then exit 24702 -V, --version print version number and configuration settings, then exit
24738 -q, --quiet do not print progress messages 24703 -q, --quiet do not print progress messages
24739 -d, --debug don't remove temporary files 24704 -d, --debug don't remove temporary files
24740 --recheck update $as_me by reconfiguring in the same conditions 24705 --recheck update $as_me by reconfiguring in the same conditions
24741 --file=FILE[:TEMPLATE] 24706 --file=FILE[:TEMPLATE]
24742 instantiate the configuration file FILE 24707 instantiate the configuration file FILE
24751 24716
24752Configuration commands: 24717Configuration commands:
24753$config_commands 24718$config_commands
24754 24719
24755Report bugs to <bug-autoconf@gnu.org>." 24720Report bugs to <bug-autoconf@gnu.org>."
24756_ACEOF
24757 24721
24722_ACEOF
24758cat >>$CONFIG_STATUS <<_ACEOF 24723cat >>$CONFIG_STATUS <<_ACEOF
24759ac_cs_version="\\ 24724ac_cs_version="\\
24760libspf config.status 1.0.0-p5 24725libspf config.status 1.0.0-p5
24761configured by $0, generated by GNU Autoconf 2.59, 24726configured by $0, generated by GNU Autoconf 2.61,
24762 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 24727 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24763 24728
24764Copyright (C) 2003 Free Software Foundation, Inc. 24729Copyright (C) 2006 Free Software Foundation, Inc.
24765This config.status script is free software; the Free Software Foundation 24730This config.status script is free software; the Free Software Foundation
24766gives unlimited permission to copy, distribute and modify it." 24731gives unlimited permission to copy, distribute and modify it."
24732
24733ac_pwd='$ac_pwd'
24767srcdir=$srcdir 24734srcdir='$srcdir'
24768INSTALL="$INSTALL" 24735INSTALL='$INSTALL'
24769_ACEOF 24736_ACEOF
24770 24737
24771cat >>$CONFIG_STATUS <<\_ACEOF 24738cat >>$CONFIG_STATUS <<\_ACEOF
24772# If no file are specified by the user, then we need to provide default 24739# If no file are specified by the user, then we need to provide default
24773# value. By we need to know if files were specified by the user. 24740# value. By we need to know if files were specified by the user.
24774ac_need_defaults=: 24741ac_need_defaults=:
24775while test $# != 0 24742while test $# != 0
24776do 24743do
24777 case $1 in 24744 case $1 in
24778 --*=*) 24745 --*=*)
24779 ac_option=`expr "x$1" : 'x\([^=]*\)='` 24746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24780 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 24747 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24781 ac_shift=: 24748 ac_shift=:
24782 ;; 24749 ;;
24783 -*) 24750 *)
24784 ac_option=$1 24751 ac_option=$1
24785 ac_optarg=$2 24752 ac_optarg=$2
24786 ac_shift=shift 24753 ac_shift=shift
24787 ;; 24754 ;;
24788 *) # This is not an option, so the user has probably given explicit
24789 # arguments.
24790 ac_option=$1
24791 ac_need_defaults=false;;
24792 esac 24755 esac
24793 24756
24794 case $ac_option in 24757 case $ac_option in
24795 # Handling of the options. 24758 # Handling of the options.
24796_ACEOF
24797cat >>$CONFIG_STATUS <<\_ACEOF
24798 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24799 ac_cs_recheck=: ;; 24760 ac_cs_recheck=: ;;
24800 --version | --vers* | -V ) 24761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24801 echo "$ac_cs_version"; exit 0 ;; 24762 echo "$ac_cs_version"; exit ;;
24802 --he | --h) 24763 --debug | --debu | --deb | --de | --d | -d )
24803 # Conflict between --help and --header
24804 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24805Try \`$0 --help' for more information." >&5
24806echo "$as_me: error: ambiguous option: $1
24807Try \`$0 --help' for more information." >&2;}
24808 { (exit 1); exit 1; }; };;
24809 --help | --hel | -h )
24810 echo "$ac_cs_usage"; exit 0 ;;
24811 --debug | --d* | -d )
24812 debug=: ;; 24764 debug=: ;;
24813 --file | --fil | --fi | --f ) 24765 --file | --fil | --fi | --f )
24814 $ac_shift 24766 $ac_shift
24815 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24767 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24816 ac_need_defaults=false;; 24768 ac_need_defaults=false;;
24817 --header | --heade | --head | --hea ) 24769 --header | --heade | --head | --hea )
24818 $ac_shift 24770 $ac_shift
24819 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24771 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24820 ac_need_defaults=false;; 24772 ac_need_defaults=false;;
24773 --he | --h)
24774 # Conflict between --help and --header
24775 { echo "$as_me: error: ambiguous option: $1
24776Try \`$0 --help' for more information." >&2
24777 { (exit 1); exit 1; }; };;
24778 --help | --hel | -h )
24779 echo "$ac_cs_usage"; exit ;;
24821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24822 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24823 ac_cs_silent=: ;; 24782 ac_cs_silent=: ;;
24824 24783
24825 # This is an error. 24784 # This is an error.
24826 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24827Try \`$0 --help' for more information." >&5
24828echo "$as_me: error: unrecognized option: $1 24785 -*) { echo "$as_me: error: unrecognized option: $1
24829Try \`$0 --help' for more information." >&2;} 24786Try \`$0 --help' for more information." >&2
24830 { (exit 1); exit 1; }; } ;; 24787 { (exit 1); exit 1; }; } ;;
24831 24788
24832 *) ac_config_targets="$ac_config_targets $1" ;; 24789 *) ac_config_targets="$ac_config_targets $1"
24790 ac_need_defaults=false ;;
24833 24791
24834 esac 24792 esac
24835 shift 24793 shift
24836done 24794done
24837 24795
24843fi 24801fi
24844 24802
24845_ACEOF 24803_ACEOF
24846cat >>$CONFIG_STATUS <<_ACEOF 24804cat >>$CONFIG_STATUS <<_ACEOF
24847if \$ac_cs_recheck; then 24805if \$ac_cs_recheck; then
24848 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24806 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24807 CONFIG_SHELL=$SHELL
24808 export CONFIG_SHELL
24849 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24809 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24850fi 24810fi
24851 24811
24852_ACEOF 24812_ACEOF
24813cat >>$CONFIG_STATUS <<\_ACEOF
24814exec 5>>config.log
24815{
24816 echo
24817 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24818## Running $as_me. ##
24819_ASBOX
24820 echo "$ac_log"
24821} >&5
24853 24822
24823_ACEOF
24854cat >>$CONFIG_STATUS <<_ACEOF 24824cat >>$CONFIG_STATUS <<_ACEOF
24855# 24825#
24856# INIT-COMMANDS section. 24826# INIT-COMMANDS
24857# 24827#
24858
24859AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24828AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24860 24829
24861_ACEOF 24830_ACEOF
24862 24831
24863
24864
24865cat >>$CONFIG_STATUS <<\_ACEOF 24832cat >>$CONFIG_STATUS <<\_ACEOF
24833
24834# Handling of arguments.
24866for ac_config_target in $ac_config_targets 24835for ac_config_target in $ac_config_targets
24867do 24836do
24868 case "$ac_config_target" in 24837 case $ac_config_target in
24869 # Handling of arguments. 24838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24870 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24840 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24871 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24841 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24872 "src/libspf/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libspf/Makefile" ;; 24842 "src/libspf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libspf/Makefile" ;;
24873 "src/spfqtool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/spfqtool/Makefile" ;; 24843 "src/spfqtool/Makefile") CONFIG_FILES="$CONFIG_FILES src/spfqtool/Makefile" ;;
24874 "src/libspf/spf.h" ) CONFIG_FILES="$CONFIG_FILES src/libspf/spf.h" ;; 24844 "src/libspf/spf.h") CONFIG_FILES="$CONFIG_FILES src/libspf/spf.h" ;;
24875 "src/libspf/util.c" ) CONFIG_FILES="$CONFIG_FILES src/libspf/util.c" ;; 24845 "src/libspf/util.c") CONFIG_FILES="$CONFIG_FILES src/libspf/util.c" ;;
24876 "src/spfmilter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/spfmilter/Makefile" ;; 24846
24877 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24878 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24879 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24847 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24880echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24848echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24881 { (exit 1); exit 1; }; };; 24849 { (exit 1); exit 1; }; };;
24882 esac 24850 esac
24883done 24851done
24852
24884 24853
24885# If the user did not use the arguments to specify the items to instantiate, 24854# If the user did not use the arguments to specify the items to instantiate,
24886# then the envvar interface is used. Set only those that are not. 24855# then the envvar interface is used. Set only those that are not.
24887# We use the long form for the default assignment because of an extremely 24856# We use the long form for the default assignment because of an extremely
24888# bizarre bug on SunOS 4.1.3. 24857# bizarre bug on SunOS 4.1.3.
24891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24893fi 24862fi
24894 24863
24895# Have a temporary directory for convenience. Make it in the build tree 24864# Have a temporary directory for convenience. Make it in the build tree
24896# simply because there is no reason to put it here, and in addition, 24865# simply because there is no reason against having it here, and in addition,
24897# creating and moving files from /tmp can sometimes cause problems. 24866# creating and moving files from /tmp can sometimes cause problems.
24898# Create a temporary directory, and hook for its removal unless debugging. 24867# Hook for its removal unless debugging.
24868# Note that there is a small window in which the directory will not be cleaned:
24869# after its creation but before its name has been assigned to `$tmp'.
24899$debug || 24870$debug ||
24900{ 24871{
24901 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24872 tmp=
24873 trap 'exit_status=$?
24874 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24875' 0
24902 trap '{ (exit 1); exit 1; }' 1 2 13 15 24876 trap '{ (exit 1); exit 1; }' 1 2 13 15
24903} 24877}
24904
24905# Create a (secure) tmp directory for tmp files. 24878# Create a (secure) tmp directory for tmp files.
24906 24879
24907{ 24880{
24908 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 24881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24909 test -n "$tmp" && test -d "$tmp" 24882 test -n "$tmp" && test -d "$tmp"
24910} || 24883} ||
24911{ 24884{
24912 tmp=./confstat$$-$RANDOM 24885 tmp=./conf$$-$RANDOM
24913 (umask 077 && mkdir $tmp) 24886 (umask 077 && mkdir "$tmp")
24914} || 24887} ||
24915{ 24888{
24916 echo "$me: cannot create a temporary directory in ." >&2 24889 echo "$me: cannot create a temporary directory in ." >&2
24917 { (exit 1); exit 1; } 24890 { (exit 1); exit 1; }
24918} 24891}
24919 24892
24920_ACEOF
24921
24922cat >>$CONFIG_STATUS <<_ACEOF
24923
24924# 24893#
24925# CONFIG_FILES section. 24894# Set up the sed scripts for CONFIG_FILES section.
24926# 24895#
24927 24896
24928# No need to generate the scripts if there are no CONFIG_FILES. 24897# No need to generate the scripts if there are no CONFIG_FILES.
24929# This happens for instance when ./config.status config.h 24898# This happens for instance when ./config.status config.h
24930if test -n "\$CONFIG_FILES"; then 24899if test -n "$CONFIG_FILES"; then
24931 # Protect against being on the right side of a sed subst in config.status. 24900
24932 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24901_ACEOF
24933 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24902
24934s,@SHELL@,$SHELL,;t t 24903# Create sed commands to just substitute file output variables.
24935s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24904
24936s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24905# Remaining file output variables are in a fragment that also has non-file
24906# output varibles.
24907
24908
24909
24910ac_delim='%!_!# '
24911for ac_last_try in false false false false false :; do
24912 cat >conf$$subs.sed <<_ACEOF
24913SHELL!$SHELL$ac_delim
24914PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24915PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24937s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24916PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24938s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24917PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24939s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24918PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24940s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24919PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24941s,@exec_prefix@,$exec_prefix,;t t 24920exec_prefix!$exec_prefix$ac_delim
24942s,@prefix@,$prefix,;t t 24921prefix!$prefix$ac_delim
24943s,@program_transform_name@,$program_transform_name,;t t 24922program_transform_name!$program_transform_name$ac_delim
24944s,@bindir@,$bindir,;t t 24923bindir!$bindir$ac_delim
24945s,@sbindir@,$sbindir,;t t 24924sbindir!$sbindir$ac_delim
24946s,@libexecdir@,$libexecdir,;t t 24925libexecdir!$libexecdir$ac_delim
24947s,@datadir@,$datadir,;t t 24926datarootdir!$datarootdir$ac_delim
24948s,@sysconfdir@,$sysconfdir,;t t 24927datadir!$datadir$ac_delim
24949s,@sharedstatedir@,$sharedstatedir,;t t 24928sysconfdir!$sysconfdir$ac_delim
24950s,@localstatedir@,$localstatedir,;t t 24929sharedstatedir!$sharedstatedir$ac_delim
24951s,@libdir@,$libdir,;t t 24930localstatedir!$localstatedir$ac_delim
24952s,@includedir@,$includedir,;t t 24931includedir!$includedir$ac_delim
24953s,@oldincludedir@,$oldincludedir,;t t 24932oldincludedir!$oldincludedir$ac_delim
24954s,@infodir@,$infodir,;t t 24933docdir!$docdir$ac_delim
24955s,@mandir@,$mandir,;t t 24934infodir!$infodir$ac_delim
24956s,@build_alias@,$build_alias,;t t 24935htmldir!$htmldir$ac_delim
24957s,@host_alias@,$host_alias,;t t 24936dvidir!$dvidir$ac_delim
24958s,@target_alias@,$target_alias,;t t 24937pdfdir!$pdfdir$ac_delim
24959s,@DEFS@,$DEFS,;t t 24938psdir!$psdir$ac_delim
24960s,@ECHO_C@,$ECHO_C,;t t 24939libdir!$libdir$ac_delim
24961s,@ECHO_N@,$ECHO_N,;t t 24940localedir!$localedir$ac_delim
24962s,@ECHO_T@,$ECHO_T,;t t 24941mandir!$mandir$ac_delim
24963s,@LIBS@,$LIBS,;t t 24942DEFS!$DEFS$ac_delim
24943ECHO_C!$ECHO_C$ac_delim
24944ECHO_N!$ECHO_N$ac_delim
24945ECHO_T!$ECHO_T$ac_delim
24946LIBS!$LIBS$ac_delim
24947build_alias!$build_alias$ac_delim
24948host_alias!$host_alias$ac_delim
24949target_alias!$target_alias$ac_delim
24964s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24950INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24965s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24951INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24966s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24952INSTALL_DATA!$INSTALL_DATA$ac_delim
24967s,@PACKAGE@,$PACKAGE,;t t 24953PACKAGE!$PACKAGE$ac_delim
24968s,@VERSION@,$VERSION,;t t 24954VERSION!$VERSION$ac_delim
24969s,@ACLOCAL@,$ACLOCAL,;t t 24955ACLOCAL!$ACLOCAL$ac_delim
24970s,@AUTOCONF@,$AUTOCONF,;t t 24956AUTOCONF!$AUTOCONF$ac_delim
24971s,@AUTOMAKE@,$AUTOMAKE,;t t 24957AUTOMAKE!$AUTOMAKE$ac_delim
24972s,@AUTOHEADER@,$AUTOHEADER,;t t 24958AUTOHEADER!$AUTOHEADER$ac_delim
24973s,@MAKEINFO@,$MAKEINFO,;t t 24959MAKEINFO!$MAKEINFO$ac_delim
24974s,@AMTAR@,$AMTAR,;t t 24960AMTAR!$AMTAR$ac_delim
24975s,@install_sh@,$install_sh,;t t 24961install_sh!$install_sh$ac_delim
24976s,@STRIP@,$STRIP,;t t 24962STRIP!$STRIP$ac_delim
24977s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24978s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 24963INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24979s,@AWK@,$AWK,;t t 24964AWK!$AWK$ac_delim
24980s,@SET_MAKE@,$SET_MAKE,;t t 24965SET_MAKE!$SET_MAKE$ac_delim
24981s,@CC@,$CC,;t t 24966CC!$CC$ac_delim
24982s,@CFLAGS@,$CFLAGS,;t t 24967CFLAGS!$CFLAGS$ac_delim
24983s,@LDFLAGS@,$LDFLAGS,;t t 24968LDFLAGS!$LDFLAGS$ac_delim
24984s,@CPPFLAGS@,$CPPFLAGS,;t t 24969CPPFLAGS!$CPPFLAGS$ac_delim
24985s,@ac_ct_CC@,$ac_ct_CC,;t t 24970ac_ct_CC!$ac_ct_CC$ac_delim
24986s,@EXEEXT@,$EXEEXT,;t t 24971EXEEXT!$EXEEXT$ac_delim
24987s,@OBJEXT@,$OBJEXT,;t t 24972OBJEXT!$OBJEXT$ac_delim
24988s,@DEPDIR@,$DEPDIR,;t t 24973DEPDIR!$DEPDIR$ac_delim
24989s,@am__include@,$am__include,;t t 24974am__include!$am__include$ac_delim
24990s,@am__quote@,$am__quote,;t t 24975am__quote!$am__quote$ac_delim
24991s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 24976AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24992s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 24977AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24993s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 24978AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24994s,@CCDEPMODE@,$CCDEPMODE,;t t 24979CCDEPMODE!$CCDEPMODE$ac_delim
24995s,@LN_S@,$LN_S,;t t 24980LN_S!$LN_S$ac_delim
24996s,@RANLIB@,$RANLIB,;t t 24981RANLIB!$RANLIB$ac_delim
24997s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24982CPP!$CPP$ac_delim
24998s,@CPP@,$CPP,;t t 24983GCC_TRUE!$GCC_TRUE$ac_delim
24999s,@GCC_TRUE@,$GCC_TRUE,;t t 24984GCC_FALSE!$GCC_FALSE$ac_delim
25000s,@GCC_FALSE@,$GCC_FALSE,;t t 24985build!$build$ac_delim
25001s,@build@,$build,;t t 24986build_cpu!$build_cpu$ac_delim
25002s,@build_cpu@,$build_cpu,;t t 24987build_vendor!$build_vendor$ac_delim
25003s,@build_vendor@,$build_vendor,;t t 24988build_os!$build_os$ac_delim
25004s,@build_os@,$build_os,;t t 24989host!$host$ac_delim
25005s,@host@,$host,;t t 24990host_cpu!$host_cpu$ac_delim
25006s,@host_cpu@,$host_cpu,;t t 24991host_vendor!$host_vendor$ac_delim
25007s,@host_vendor@,$host_vendor,;t t 24992host_os!$host_os$ac_delim
25008s,@host_os@,$host_os,;t t 24993GREP!$GREP$ac_delim
25009s,@EGREP@,$EGREP,;t t 24994EGREP!$EGREP$ac_delim
25010s,@ECHO@,$ECHO,;t t 24995ECHO!$ECHO$ac_delim
25011s,@AR@,$AR,;t t 24996AR!$AR$ac_delim
25012s,@ac_ct_AR@,$ac_ct_AR,;t t 24997CXX!$CXX$ac_delim
25013s,@CXX@,$CXX,;t t 24998CXXFLAGS!$CXXFLAGS$ac_delim
25014s,@CXXFLAGS@,$CXXFLAGS,;t t 24999ac_ct_CXX!$ac_ct_CXX$ac_delim
25015s,@ac_ct_CXX@,$ac_ct_CXX,;t t 25000CXXDEPMODE!$CXXDEPMODE$ac_delim
25016s,@CXXDEPMODE@,$CXXDEPMODE,;t t 25001CXXCPP!$CXXCPP$ac_delim
25017s,@CXXCPP@,$CXXCPP,;t t 25002F77!$F77$ac_delim
25018s,@F77@,$F77,;t t 25003FFLAGS!$FFLAGS$ac_delim
25019s,@FFLAGS@,$FFLAGS,;t t 25004_ACEOF
25020s,@ac_ct_F77@,$ac_ct_F77,;t t 25005
25021s,@LIBTOOL@,$LIBTOOL,;t t 25006 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
25022s,@enable_shared@,$enable_shared,;t t 25007 break
25023s,@enable_static@,$enable_static,;t t 25008 elif $ac_last_try; then
25024s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 25009 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25010echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25011 { (exit 1); exit 1; }; }
25012 else
25013 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25014 fi
25015done
25016
25017ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25018if test -n "$ac_eof"; then
25019 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25020 ac_eof=`expr $ac_eof + 1`
25021fi
25022
25023cat >>$CONFIG_STATUS <<_ACEOF
25024cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25026/^[ ]*@__BEGIN_DECLS_INCL@[ ]*$/{
25027r $__BEGIN_DECLS_INCL
25028d
25029}
25030/^[ ]*@__END_DECLS_INCL@[ ]*$/{
25031r $__END_DECLS_INCL
25032d
25033}
25034_ACEOF
25035sed '
25036s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25037s/^/s,@/; s/!/@,|#_!!_#|/
25038:n
25039t n
25040s/'"$ac_delim"'$/,g/; t
25041s/$/\\/; p
25042N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25043' >>$CONFIG_STATUS <conf$$subs.sed
25044rm -f conf$$subs.sed
25045cat >>$CONFIG_STATUS <<_ACEOF
25046CEOF$ac_eof
25047_ACEOF
25048
25049
25050ac_delim='%!_!# '
25051for ac_last_try in false false false false false :; do
25052 cat >conf$$subs.sed <<_ACEOF
25053ac_ct_F77!$ac_ct_F77$ac_delim
25054LIBTOOL!$LIBTOOL$ac_delim
25055enable_shared!$enable_shared$ac_delim
25056enable_static!$enable_static$ac_delim
25057LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25025s,@LIBSPF_MAJOR_VERSION@,$LIBSPF_MAJOR_VERSION,;t t 25058LIBSPF_MAJOR_VERSION!$LIBSPF_MAJOR_VERSION$ac_delim
25026s,@LIBSPF_MINOR_VERSION@,$LIBSPF_MINOR_VERSION,;t t 25059LIBSPF_MINOR_VERSION!$LIBSPF_MINOR_VERSION$ac_delim
25027s,@LIBSPF_MICRO_VERSION@,$LIBSPF_MICRO_VERSION,;t t 25060LIBSPF_MICRO_VERSION!$LIBSPF_MICRO_VERSION$ac_delim
25028s,@LIBSPF_VERSION@,$LIBSPF_VERSION,;t t 25061LIBSPF_VERSION!$LIBSPF_VERSION$ac_delim
25029s,@LIBSPF_INTERFACE_AGE@,$LIBSPF_INTERFACE_AGE,;t t 25062LIBSPF_INTERFACE_AGE!$LIBSPF_INTERFACE_AGE$ac_delim
25030s,@LIBSPF_BINARY_AGE@,$LIBSPF_BINARY_AGE,;t t 25063LIBSPF_BINARY_AGE!$LIBSPF_BINARY_AGE$ac_delim
25031s,@LT_RELEASE@,$LT_RELEASE,;t t 25064LT_RELEASE!$LT_RELEASE$ac_delim
25032s,@LT_CURRENT@,$LT_CURRENT,;t t 25065LT_CURRENT!$LT_CURRENT$ac_delim
25033s,@LT_REVISION@,$LT_REVISION,;t t 25066LT_REVISION!$LT_REVISION$ac_delim
25034s,@LT_AGE@,$LT_AGE,;t t 25067LT_AGE!$LT_AGE$ac_delim
25035s,@UNSIGNED_INT_ARG@,$UNSIGNED_INT_ARG,;t t 25068UNSIGNED_INT_ARG!$UNSIGNED_INT_ARG$ac_delim
25036s,@LIBOBJS@,$LIBOBJS,;t t 25069LIBOBJS!$LIBOBJS$ac_delim
25037s,@__BEGIN_DECLS@,$__BEGIN_DECLS,;t t 25070__BEGIN_DECLS!$__BEGIN_DECLS$ac_delim
25038s,@__END_DECLS@,$__END_DECLS,;t t 25071__END_DECLS!$__END_DECLS$ac_delim
25039s,@LIBSPF_RESOLV_LIB@,$LIBSPF_RESOLV_LIB,;t t 25072LIBSPF_RESOLV_LIB!$LIBSPF_RESOLV_LIB$ac_delim
25040s,@LIBSPF_PTHREADS_LIB@,$LIBSPF_PTHREADS_LIB,;t t 25073LIBSPF_PTHREADS_LIB!$LIBSPF_PTHREADS_LIB$ac_delim
25041s,@LIBSPF_BUILD_DIRS@,$LIBSPF_BUILD_DIRS,;t t 25074LIBSPF_BUILD_DIRS!$LIBSPF_BUILD_DIRS$ac_delim
25042s,@LTLIBOBJS@,$LTLIBOBJS,;t t 25075LTLIBOBJS!$LTLIBOBJS$ac_delim
25043/@__BEGIN_DECLS_INCL@/r $__BEGIN_DECLS_INCL
25044s,@__BEGIN_DECLS_INCL@,,;t t
25045/@__END_DECLS_INCL@/r $__END_DECLS_INCL
25046s,@__END_DECLS_INCL@,,;t t
25047CEOF 25076_ACEOF
25048 25077
25049_ACEOF 25078 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
25079 break
25080 elif $ac_last_try; then
25081 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25082echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25083 { (exit 1); exit 1; }; }
25084 else
25085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25086 fi
25087done
25050 25088
25089ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25090if test -n "$ac_eof"; then
25091 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25092 ac_eof=`expr $ac_eof + 1`
25093fi
25094
25095cat >>$CONFIG_STATUS <<_ACEOF
25096cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25098_ACEOF
25099sed '
25100s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25101s/^/s,@/; s/!/@,|#_!!_#|/
25102:n
25103t n
25104s/'"$ac_delim"'$/,g/; t
25105s/$/\\/; p
25106N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25107' >>$CONFIG_STATUS <conf$$subs.sed
25108rm -f conf$$subs.sed
25109cat >>$CONFIG_STATUS <<_ACEOF
25110:end
25111s/|#_!!_#|//g
25112CEOF$ac_eof
25113_ACEOF
25114
25115
25116# VPATH may cause trouble with some makes, so we remove $(srcdir),
25117# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25118# trailing colons and then remove the whole line if VPATH becomes empty
25119# (actually we leave an empty line to preserve line numbers).
25120if test "x$srcdir" = x.; then
25121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25122s/:*\$(srcdir):*/:/
25123s/:*\${srcdir}:*/:/
25124s/:*@srcdir@:*/:/
25125s/^\([^=]*=[ ]*\):*/\1/
25126s/:*$//
25127s/^[^=]*=[ ]*$//
25128}'
25129fi
25130
25051 cat >>$CONFIG_STATUS <<\_ACEOF 25131cat >>$CONFIG_STATUS <<\_ACEOF
25052 # Split the substitutions into bite-sized pieces for seds with 25132fi # test -n "$CONFIG_FILES"
25053 # small command number limits, like on Digital OSF/1 and HP-UX. 25133
25054 ac_max_sed_lines=48 25134
25055 ac_sed_frag=1 # Number of current file. 25135for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25056 ac_beg=1 # First line for current file. 25136do
25057 ac_end=$ac_max_sed_lines # Line after last line for current file. 25137 case $ac_tag in
25058 ac_more_lines=: 25138 :[FHLC]) ac_mode=$ac_tag; continue;;
25059 ac_sed_cmds= 25139 esac
25060 while $ac_more_lines; do 25140 case $ac_mode$ac_tag in
25061 if test $ac_beg -gt 1; then 25141 :[FHL]*:*);;
25062 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 25142 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25063 else 25143echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25064 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 25144 { (exit 1); exit 1; }; };;
25145 :[FH]-) ac_tag=-:-;;
25146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25147 esac
25148 ac_save_IFS=$IFS
25149 IFS=:
25150 set x $ac_tag
25151 IFS=$ac_save_IFS
25152 shift
25153 ac_file=$1
25154 shift
25155
25156 case $ac_mode in
25157 :L) ac_source=$1;;
25158 :[FH])
25159 ac_file_inputs=
25160 for ac_f
25161 do
25162 case $ac_f in
25163 -) ac_f="$tmp/stdin";;
25164 *) # Look for the file first in the build tree, then in the source tree
25165 # (if the path is not absolute). The absolute path cannot be DOS-style,
25166 # because $ac_f cannot contain `:'.
25167 test -f "$ac_f" ||
25168 case $ac_f in
25169 [\\/$]*) false;;
25170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25171 esac ||
25172 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25173echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25174 { (exit 1); exit 1; }; };;
25175 esac
25176 ac_file_inputs="$ac_file_inputs $ac_f"
25177 done
25178
25179 # Let's still pretend it is `configure' which instantiates (i.e., don't
25180 # use $as_me), people would be surprised to read:
25181 # /* config.h. Generated by config.status. */
25182 configure_input="Generated from "`IFS=:
25183 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25184 if test x"$ac_file" != x-; then
25185 configure_input="$ac_file. $configure_input"
25186 { echo "$as_me:$LINENO: creating $ac_file" >&5
25187echo "$as_me: creating $ac_file" >&6;}
25065 fi 25188 fi
25066 if test ! -s $tmp/subs.frag; then
25067 ac_more_lines=false
25068 else
25069 # The purpose of the label and of the branching condition is to
25070 # speed up the sed processing (if there are no `@' at all, there
25071 # is no need to browse any of the substitutions).
25072 # These are the two extra sed commands mentioned above.
25073 (echo ':t
25074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25075 if test -z "$ac_sed_cmds"; then
25076 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25077 else
25078 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25079 fi
25080 ac_sed_frag=`expr $ac_sed_frag + 1`
25081 ac_beg=$ac_end
25082 ac_end=`expr $ac_end + $ac_max_sed_lines`
25083 fi
25084 done
25085 if test -z "$ac_sed_cmds"; then
25086 ac_sed_cmds=cat
25087 fi
25088fi # test -n "$CONFIG_FILES"
25089 25189
25090_ACEOF
25091cat >>$CONFIG_STATUS <<\_ACEOF
25092for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25094 case $ac_file in 25190 case $ac_tag in
25095 - | *:- | *:-:* ) # input from stdin 25191 *:-:* | *:-) cat >"$tmp/stdin";;
25096 cat >$tmp/stdin 25192 esac
25097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25193 ;;
25098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25101 * ) ac_file_in=$ac_file.in ;;
25102 esac 25194 esac
25103 25195
25104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 25196 ac_dir=`$as_dirname -- "$ac_file" ||
25105 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25106$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25197$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107 X"$ac_file" : 'X\(//\)[^/]' \| \ 25198 X"$ac_file" : 'X\(//\)[^/]' \| \
25108 X"$ac_file" : 'X\(//\)$' \| \ 25199 X"$ac_file" : 'X\(//\)$' \| \
25109 X"$ac_file" : 'X\(/\)' \| \ 25200 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25110 . : '\(.\)' 2>/dev/null ||
25111echo X"$ac_file" | 25201echo X"$ac_file" |
25112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25113 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25203 s//\1/
25114 /^X\(\/\/\)$/{ s//\1/; q; } 25204 q
25115 /^X\(\/\).*/{ s//\1/; q; } 25205 }
25206 /^X\(\/\/\)[^/].*/{
25207 s//\1/
25208 q
25209 }
25210 /^X\(\/\/\)$/{
25211 s//\1/
25212 q
25213 }
25214 /^X\(\/\).*/{
25215 s//\1/
25216 q
25217 }
25116 s/.*/./; q'` 25218 s/.*/./; q'`
25117 { if $as_mkdir_p; then
25118 mkdir -p "$ac_dir"
25119 else
25120 as_dir="$ac_dir" 25219 { as_dir="$ac_dir"
25220 case $as_dir in #(
25221 -*) as_dir=./$as_dir;;
25222 esac
25223 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25121 as_dirs= 25224 as_dirs=
25122 while test ! -d "$as_dir"; do 25225 while :; do
25226 case $as_dir in #(
25227 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25228 *) as_qdir=$as_dir;;
25229 esac
25123 as_dirs="$as_dir $as_dirs" 25230 as_dirs="'$as_qdir' $as_dirs"
25124 as_dir=`(dirname "$as_dir") 2>/dev/null || 25231 as_dir=`$as_dirname -- "$as_dir" ||
25125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25126 X"$as_dir" : 'X\(//\)[^/]' \| \ 25233 X"$as_dir" : 'X\(//\)[^/]' \| \
25127 X"$as_dir" : 'X\(//\)$' \| \ 25234 X"$as_dir" : 'X\(//\)$' \| \
25128 X"$as_dir" : 'X\(/\)' \| \ 25235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25129 . : '\(.\)' 2>/dev/null ||
25130echo X"$as_dir" | 25236echo X"$as_dir" |
25131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25132 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25238 s//\1/
25133 /^X\(\/\/\)$/{ s//\1/; q; } 25239 q
25134 /^X\(\/\).*/{ s//\1/; q; } 25240 }
25241 /^X\(\/\/\)[^/].*/{
25242 s//\1/
25243 q
25244 }
25245 /^X\(\/\/\)$/{
25246 s//\1/
25247 q
25248 }
25249 /^X\(\/\).*/{
25250 s//\1/
25251 q
25252 }
25135 s/.*/./; q'` 25253 s/.*/./; q'`
25254 test -d "$as_dir" && break
25136 done 25255 done
25137 test ! -n "$as_dirs" || mkdir $as_dirs 25256 test -z "$as_dirs" || eval "mkdir $as_dirs"
25138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 25257 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25139echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 25258echo "$as_me: error: cannot create directory $as_dir" >&2;}
25140 { (exit 1); exit 1; }; }; } 25259 { (exit 1); exit 1; }; }; }
25141
25142 ac_builddir=. 25260 ac_builddir=.
25143 25261
25144if test "$ac_dir" != .; then 25262case "$ac_dir" in
25263.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25264*)
25145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 25265 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25146 # A "../" for each directory in $ac_dir_suffix. 25266 # A ".." for each directory in $ac_dir_suffix.
25147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 25267 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25148else 25268 case $ac_top_builddir_sub in
25149 ac_dir_suffix= ac_top_builddir= 25269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25150fi 25270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25271 esac ;;
25272esac
25273ac_abs_top_builddir=$ac_pwd
25274ac_abs_builddir=$ac_pwd$ac_dir_suffix
25275# for backward compatibility:
25276ac_top_builddir=$ac_top_build_prefix
25151 25277
25152case $srcdir in 25278case $srcdir in
25153 .) # No --srcdir option. We are building in place. 25279 .) # We are building in place.
25154 ac_srcdir=. 25280 ac_srcdir=.
25155 if test -z "$ac_top_builddir"; then 25281 ac_top_srcdir=$ac_top_builddir_sub
25156 ac_top_srcdir=. 25282 ac_abs_top_srcdir=$ac_pwd ;;
25157 else
25158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25159 fi ;;
25160 [\\/]* | ?:[\\/]* ) # Absolute path. 25283 [\\/]* | ?:[\\/]* ) # Absolute name.
25161 ac_srcdir=$srcdir$ac_dir_suffix; 25284 ac_srcdir=$srcdir$ac_dir_suffix;
25162 ac_top_srcdir=$srcdir ;; 25285 ac_top_srcdir=$srcdir
25286 ac_abs_top_srcdir=$srcdir ;;
25163 *) # Relative path. 25287 *) # Relative name.
25164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 25288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25165 ac_top_srcdir=$ac_top_builddir$srcdir ;; 25289 ac_top_srcdir=$ac_top_build_prefix$srcdir
25290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25166esac 25291esac
25292ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25167 25293
25168# Do not use `cd foo && pwd` to compute absolute paths, because 25294
25169# the directories may not exist.
25170case `pwd` in
25171.) ac_abs_builddir="$ac_dir";;
25172*)
25173 case "$ac_dir" in 25295 case $ac_mode in
25174 .) ac_abs_builddir=`pwd`;; 25296 :F)
25175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 25297 #
25176 *) ac_abs_builddir=`pwd`/"$ac_dir";; 25298 # CONFIG_FILE
25177 esac;; 25299 #
25178esac
25179case $ac_abs_builddir in
25180.) ac_abs_top_builddir=${ac_top_builddir}.;;
25181*)
25182 case ${ac_top_builddir}. in
25183 .) ac_abs_top_builddir=$ac_abs_builddir;;
25184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25186 esac;;
25187esac
25188case $ac_abs_builddir in
25189.) ac_abs_srcdir=$ac_srcdir;;
25190*)
25191 case $ac_srcdir in
25192 .) ac_abs_srcdir=$ac_abs_builddir;;
25193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25195 esac;;
25196esac
25197case $ac_abs_builddir in
25198.) ac_abs_top_srcdir=$ac_top_srcdir;;
25199*)
25200 case $ac_top_srcdir in
25201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25204 esac;;
25205esac
25206
25207 25300
25208 case $INSTALL in 25301 case $INSTALL in
25209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25210 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 25303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25211 esac 25304 esac
25212
25213 if test x"$ac_file" != x-; then
25214 { echo "$as_me:$LINENO: creating $ac_file" >&5
25215echo "$as_me: creating $ac_file" >&6;}
25216 rm -f "$ac_file"
25217 fi
25218 # Let's still pretend it is `configure' which instantiates (i.e., don't
25219 # use $as_me), people would be surprised to read:
25220 # /* config.h. Generated by config.status. */
25221 if test x"$ac_file" = x-; then
25222 configure_input=
25223 else
25224 configure_input="$ac_file. "
25225 fi
25226 configure_input=$configure_input"Generated from `echo $ac_file_in |
25227 sed 's,.*/,,'` by configure."
25228
25229 # First look for the input files in the build tree, otherwise in the
25230 # src tree.
25231 ac_file_inputs=`IFS=:
25232 for f in $ac_file_in; do
25233 case $f in
25234 -) echo $tmp/stdin ;;
25235 [\\/$]*)
25236 # Absolute (can't be DOS-style, as IFS=:)
25237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25238echo "$as_me: error: cannot find input file: $f" >&2;}
25239 { (exit 1); exit 1; }; }
25240 echo "$f";;
25241 *) # Relative
25242 if test -f "$f"; then
25243 # Build tree
25244 echo "$f"
25245 elif test -f "$srcdir/$f"; then
25246 # Source tree
25247 echo "$srcdir/$f"
25248 else
25249 # /dev/null tree
25250 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25251echo "$as_me: error: cannot find input file: $f" >&2;}
25252 { (exit 1); exit 1; }; }
25253 fi;;
25254 esac
25255 done` || { (exit 1); exit 1; }
25256_ACEOF 25305_ACEOF
25306
25307cat >>$CONFIG_STATUS <<\_ACEOF
25308# If the template does not know about datarootdir, expand it.
25309# FIXME: This hack should be removed a few years after 2.60.
25310ac_datarootdir_hack=; ac_datarootdir_seen=
25311
25312case `sed -n '/datarootdir/ {
25313 p
25314 q
25315}
25316/@datadir@/p
25317/@docdir@/p
25318/@infodir@/p
25319/@localedir@/p
25320/@mandir@/p
25321' $ac_file_inputs` in
25322*datarootdir*) ac_datarootdir_seen=yes;;
25323*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25324 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25325echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25326_ACEOF
25327cat >>$CONFIG_STATUS <<_ACEOF
25328 ac_datarootdir_hack='
25329 s&@datadir@&$datadir&g
25330 s&@docdir@&$docdir&g
25331 s&@infodir@&$infodir&g
25332 s&@localedir@&$localedir&g
25333 s&@mandir@&$mandir&g
25334 s&\\\${datarootdir}&$datarootdir&g' ;;
25335esac
25336_ACEOF
25337
25338# Neutralize VPATH when `$srcdir' = `.'.
25339# Shell code in configure.ac might set extrasub.
25340# FIXME: do we really want to maintain this feature?
25257cat >>$CONFIG_STATUS <<_ACEOF 25341cat >>$CONFIG_STATUS <<_ACEOF
25258 sed "$ac_vpsub 25342 sed "$ac_vpsub
25259$extrasub 25343$extrasub
25260_ACEOF 25344_ACEOF
25261cat >>$CONFIG_STATUS <<\_ACEOF 25345cat >>$CONFIG_STATUS <<\_ACEOF
25262:t 25346:t
25263/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25264s,@configure_input@,$configure_input,;t t 25348s&@configure_input@&$configure_input&;t t
25349s&@top_builddir@&$ac_top_builddir_sub&;t t
25265s,@srcdir@,$ac_srcdir,;t t 25350s&@srcdir@&$ac_srcdir&;t t
25266s,@abs_srcdir@,$ac_abs_srcdir,;t t 25351s&@abs_srcdir@&$ac_abs_srcdir&;t t
25267s,@top_srcdir@,$ac_top_srcdir,;t t 25352s&@top_srcdir@&$ac_top_srcdir&;t t
25268s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 25353s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25269s,@builddir@,$ac_builddir,;t t 25354s&@builddir@&$ac_builddir&;t t
25270s,@abs_builddir@,$ac_abs_builddir,;t t 25355s&@abs_builddir@&$ac_abs_builddir&;t t
25271s,@top_builddir@,$ac_top_builddir,;t t
25272s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 25356s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25273s,@INSTALL@,$ac_INSTALL,;t t 25357s&@INSTALL@&$ac_INSTALL&;t t
25274" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 25358$ac_datarootdir_hack
25359" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25360
25361test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25362 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25364 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25365which seems to be undefined. Please make sure it is defined." >&5
25366echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25367which seems to be undefined. Please make sure it is defined." >&2;}
25368
25275 rm -f $tmp/stdin 25369 rm -f "$tmp/stdin"
25276 if test x"$ac_file" != x-; then 25370 case $ac_file in
25277 mv $tmp/out $ac_file 25371 -) cat "$tmp/out"; rm -f "$tmp/out";;
25278 else 25372 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25279 cat $tmp/out 25373 esac
25280 rm -f $tmp/out 25374 ;;
25281 fi 25375 :H)
25282 25376 #
25283done 25377 # CONFIG_HEADER
25378 #
25284_ACEOF 25379_ACEOF
25285cat >>$CONFIG_STATUS <<\_ACEOF
25286 25380
25287# 25381# Transform confdefs.h into a sed script `conftest.defines', that
25288# CONFIG_HEADER section. 25382# substitutes the proper values into config.h.in to produce config.h.
25289# 25383rm -f conftest.defines conftest.tail
25290 25384# First, append a space to every undef/define line, to ease matching.
25385echo 's/$/ /' >conftest.defines
25386# Then, protect against being on the right side of a sed subst, or in
25387# an unquoted here document, in config.status. If some macros were
25388# called several times there might be several #defines for the same
25389# symbol, which is useless. But do not sort them, since the last
25390# AC_DEFINE must be honored.
25391ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25291# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 25392# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25292# NAME is the cpp macro being defined and VALUE is the value it is being given. 25393# NAME is the cpp macro being defined, VALUE is the value it is being given.
25293# 25394# PARAMS is the parameter list in the macro definition--in most cases, it's
25294# ac_d sets the value in "#define NAME VALUE" lines. 25395# just an empty string.
25295ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 25396ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25296ac_dB='[ ].*$,\1#\2' 25397ac_dB='\\)[ (].*,\\1define\\2'
25297ac_dC=' ' 25398ac_dC=' '
25298ac_dD=',;t' 25399ac_dD=' ,'
25299# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25300ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25301ac_uB='$,\1#\2define\3'
25302ac_uC=' '
25303ac_uD=',;t'
25304 25400
25305for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 25401uniq confdefs.h |
25306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25402 sed -n '
25307 case $ac_file in 25403 t rset
25308 - | *:- | *:-:* ) # input from stdin 25404 :rset
25309 cat >$tmp/stdin 25405 s/^[ ]*#[ ]*define[ ][ ]*//
25310 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25406 t ok
25311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 25407 d
25312 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 25408 :ok
25313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25314 * ) ac_file_in=$ac_file.in ;;
25315 esac
25316
25317 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25318echo "$as_me: creating $ac_file" >&6;}
25319
25320 # First look for the input files in the build tree, otherwise in the
25321 # src tree.
25322 ac_file_inputs=`IFS=:
25323 for f in $ac_file_in; do
25324 case $f in
25325 -) echo $tmp/stdin ;;
25326 [\\/$]*)
25327 # Absolute (can't be DOS-style, as IFS=:)
25328 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25329echo "$as_me: error: cannot find input file: $f" >&2;}
25330 { (exit 1); exit 1; }; }
25331 # Do quote $f, to prevent DOS paths from being IFS'd.
25332 echo "$f";;
25333 *) # Relative
25334 if test -f "$f"; then
25335 # Build tree
25336 echo "$f"
25337 elif test -f "$srcdir/$f"; then
25338 # Source tree
25339 echo "$srcdir/$f"
25340 else
25341 # /dev/null tree
25342 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25343echo "$as_me: error: cannot find input file: $f" >&2;}
25344 { (exit 1); exit 1; }; }
25345 fi;;
25346 esac
25347 done` || { (exit 1); exit 1; }
25348 # Remove the trailing spaces.
25349 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25350
25351_ACEOF
25352
25353# Transform confdefs.h into two sed scripts, `conftest.defines' and
25354# `conftest.undefs', that substitutes the proper values into
25355# config.h.in to produce config.h. The first handles `#define'
25356# templates, and the second `#undef' templates.
25357# And first: Protect against being on the right side of a sed subst in
25358# config.status. Protect against being in an unquoted here document
25359# in config.status.
25360rm -f conftest.defines conftest.undefs
25361# Using a here document instead of a string reduces the quoting nightmare.
25362# Putting comments in sed scripts is not portable.
25363#
25364# `end' is used to avoid that the second main sed command (meant for
25365# 0-ary CPP macros) applies to n-ary macro definitions.
25366# See the Autoconf documentation for `clear'.
25367cat >confdef2sed.sed <<\_ACEOF
25368s/[\\&,]/\\&/g 25409 s/[\\&,]/\\&/g
25369s,[\\$`],\\&,g 25410 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25370t clear 25411 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25371: clear 25412 ' >>conftest.defines
25372s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25373t end
25374s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25375: end
25376_ACEOF
25377# If some macros were called several times there might be several times
25378# the same #defines, which is useless. Nevertheless, we may not want to
25379# sort them, since we want the *last* AC-DEFINE to be honored.
25380uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25381sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25382rm -f confdef2sed.sed
25383 25413
25414# Remove the space that was appended to ease matching.
25384# This sed command replaces #undef with comments. This is necessary, for 25415# Then replace #undef with comments. This is necessary, for
25385# example, in the case of _POSIX_SOURCE, which is predefined and required 25416# example, in the case of _POSIX_SOURCE, which is predefined and required
25386# on some systems where configure will not decide to define it. 25417# on some systems where configure will not decide to define it.
25387cat >>conftest.undefs <<\_ACEOF 25418# (The regexp can be short, since the line contains either #define or #undef.)
25388s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 25419echo 's/ $//
25389_ACEOF 25420s,^[ #]*u.*,/* & */,' >>conftest.defines
25390 25421
25391# Break up conftest.defines because some shells have a limit on the size 25422# Break up conftest.defines:
25392# of here documents, and old seds have small limits too (100 cmds). 25423ac_max_sed_lines=50
25393echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 25424
25394echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 25425# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25395echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 25426# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25396echo ' :' >>$CONFIG_STATUS 25427# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25397rm -f conftest.tail 25428# et cetera.
25398while grep . conftest.defines >/dev/null 25429ac_in='$ac_file_inputs'
25430ac_out='"$tmp/out1"'
25431ac_nxt='"$tmp/out2"'
25432
25433while :
25399do 25434do
25400 # Write a limited-size here document to $tmp/defines.sed. 25435 # Write a here document:
25401 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 25436 cat >>$CONFIG_STATUS <<_ACEOF
25402 # Speed up: don't consider the non `#define' lines. 25437 # First, check the format of the line:
25403 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 25438 cat >"\$tmp/defines.sed" <<\\CEOF
25404 # Work around the forget-to-reset-the-flag bug. 25439/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25405 echo 't clr' >>$CONFIG_STATUS 25440/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25406 echo ': clr' >>$CONFIG_STATUS 25441b
25442:def
25443_ACEOF
25407 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 25444 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25408 echo 'CEOF 25445 echo 'CEOF
25409 sed -f $tmp/defines.sed $tmp/in >$tmp/out 25446 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25410 rm -f $tmp/in 25447 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25411 mv $tmp/out $tmp/in
25412' >>$CONFIG_STATUS
25413 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 25448 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25449 grep . conftest.tail >/dev/null || break
25414 rm -f conftest.defines 25450 rm -f conftest.defines
25415 mv conftest.tail conftest.defines 25451 mv conftest.tail conftest.defines
25416done 25452done
25417rm -f conftest.defines 25453rm -f conftest.defines conftest.tail
25418echo ' fi # grep' >>$CONFIG_STATUS
25419echo >>$CONFIG_STATUS
25420 25454
25421# Break up conftest.undefs because some shells have a limit on the size 25455echo "ac_result=$ac_in" >>$CONFIG_STATUS
25422# of here documents, and old seds have small limits too (100 cmds).
25423echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25424rm -f conftest.tail
25425while grep . conftest.undefs >/dev/null
25426do
25427 # Write a limited-size here document to $tmp/undefs.sed.
25428 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25429 # Speed up: don't consider the non `#undef'
25430 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25431 # Work around the forget-to-reset-the-flag bug.
25432 echo 't clr' >>$CONFIG_STATUS
25433 echo ': clr' >>$CONFIG_STATUS
25434 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25435 echo 'CEOF
25436 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25437 rm -f $tmp/in
25438 mv $tmp/out $tmp/in
25439' >>$CONFIG_STATUS
25440 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25441 rm -f conftest.undefs
25442 mv conftest.tail conftest.undefs
25443done
25444rm -f conftest.undefs
25445
25446cat >>$CONFIG_STATUS <<\_ACEOF 25456cat >>$CONFIG_STATUS <<\_ACEOF
25447 # Let's still pretend it is `configure' which instantiates (i.e., don't
25448 # use $as_me), people would be surprised to read:
25449 # /* config.h. Generated by config.status. */
25450 if test x"$ac_file" = x-; then
25451 echo "/* Generated by configure. */" >$tmp/config.h
25452 else
25453 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25454 fi
25455 cat $tmp/in >>$tmp/config.h
25456 rm -f $tmp/in
25457 if test x"$ac_file" != x-; then 25457 if test x"$ac_file" != x-; then
25458 echo "/* $configure_input */" >"$tmp/config.h"
25459 cat "$ac_result" >>"$tmp/config.h"
25458 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 25460 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25459 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 25461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25460echo "$as_me: $ac_file is unchanged" >&6;} 25462echo "$as_me: $ac_file is unchanged" >&6;}
25461 else 25463 else
25462 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25464 X"$ac_file" : 'X\(//\)[^/]' \| \
25465 X"$ac_file" : 'X\(//\)$' \| \
25466 X"$ac_file" : 'X\(/\)' \| \
25467 . : '\(.\)' 2>/dev/null ||
25468echo X"$ac_file" |
25469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25471 /^X\(\/\/\)$/{ s//\1/; q; }
25472 /^X\(\/\).*/{ s//\1/; q; }
25473 s/.*/./; q'`
25474 { if $as_mkdir_p; then
25475 mkdir -p "$ac_dir"
25476 else
25477 as_dir="$ac_dir"
25478 as_dirs=
25479 while test ! -d "$as_dir"; do
25480 as_dirs="$as_dir $as_dirs"
25481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25483 X"$as_dir" : 'X\(//\)[^/]' \| \
25484 X"$as_dir" : 'X\(//\)$' \| \
25485 X"$as_dir" : 'X\(/\)' \| \
25486 . : '\(.\)' 2>/dev/null ||
25487echo X"$as_dir" |
25488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25490 /^X\(\/\/\)$/{ s//\1/; q; }
25491 /^X\(\/\).*/{ s//\1/; q; }
25492 s/.*/./; q'`
25493 done
25494 test ! -n "$as_dirs" || mkdir $as_dirs
25495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25496echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25497 { (exit 1); exit 1; }; }; }
25498
25499 rm -f $ac_file 25464 rm -f $ac_file
25500 mv $tmp/config.h $ac_file 25465 mv "$tmp/config.h" $ac_file
25501 fi 25466 fi
25502 else 25467 else
25503 cat $tmp/config.h 25468 echo "/* $configure_input */"
25504 rm -f $tmp/config.h 25469 cat "$ac_result"
25505 fi 25470 fi
25506 # Run the commands associated with the file. 25471 rm -f "$tmp/out12"
25472 ;;
25473
25474 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25475echo "$as_me: executing $ac_file commands" >&6;}
25476 ;;
25477 esac
25478
25479
25507 case $ac_file in 25480 case $ac_file$ac_mode in
25508 config.h ) # update the timestamp 25481 "config.h":H) # update the timestamp
25509echo 'timestamp for config.h' >"./stamp-h1" 25482echo 'timestamp for config.h' >"./stamp-h1"
25510 ;; 25483 ;;
25511 esac
25512done
25513_ACEOF
25514cat >>$CONFIG_STATUS <<\_ACEOF
25515
25516#
25517# CONFIG_COMMANDS section.
25518#
25519for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25520 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25521 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25522 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25523$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25524 X"$ac_dest" : 'X\(//\)[^/]' \| \
25525 X"$ac_dest" : 'X\(//\)$' \| \
25526 X"$ac_dest" : 'X\(/\)' \| \
25527 . : '\(.\)' 2>/dev/null ||
25528echo X"$ac_dest" |
25529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25531 /^X\(\/\/\)$/{ s//\1/; q; }
25532 /^X\(\/\).*/{ s//\1/; q; }
25533 s/.*/./; q'`
25534 { if $as_mkdir_p; then
25535 mkdir -p "$ac_dir"
25536 else
25537 as_dir="$ac_dir"
25538 as_dirs=
25539 while test ! -d "$as_dir"; do
25540 as_dirs="$as_dir $as_dirs"
25541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25543 X"$as_dir" : 'X\(//\)[^/]' \| \
25544 X"$as_dir" : 'X\(//\)$' \| \
25545 X"$as_dir" : 'X\(/\)' \| \
25546 . : '\(.\)' 2>/dev/null ||
25547echo X"$as_dir" |
25548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25550 /^X\(\/\/\)$/{ s//\1/; q; }
25551 /^X\(\/\).*/{ s//\1/; q; }
25552 s/.*/./; q'`
25553 done
25554 test ! -n "$as_dirs" || mkdir $as_dirs
25555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25556echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25557 { (exit 1); exit 1; }; }; }
25558
25559 ac_builddir=.
25560
25561if test "$ac_dir" != .; then
25562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25563 # A "../" for each directory in $ac_dir_suffix.
25564 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25565else
25566 ac_dir_suffix= ac_top_builddir=
25567fi
25568
25569case $srcdir in
25570 .) # No --srcdir option. We are building in place.
25571 ac_srcdir=.
25572 if test -z "$ac_top_builddir"; then
25573 ac_top_srcdir=.
25574 else
25575 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25576 fi ;;
25577 [\\/]* | ?:[\\/]* ) # Absolute path.
25578 ac_srcdir=$srcdir$ac_dir_suffix;
25579 ac_top_srcdir=$srcdir ;;
25580 *) # Relative path.
25581 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25582 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25583esac
25584
25585# Do not use `cd foo && pwd` to compute absolute paths, because
25586# the directories may not exist.
25587case `pwd` in
25588.) ac_abs_builddir="$ac_dir";;
25589*)
25590 case "$ac_dir" in
25591 .) ac_abs_builddir=`pwd`;;
25592 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25593 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25594 esac;;
25595esac
25596case $ac_abs_builddir in
25597.) ac_abs_top_builddir=${ac_top_builddir}.;;
25598*)
25599 case ${ac_top_builddir}. in
25600 .) ac_abs_top_builddir=$ac_abs_builddir;;
25601 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25602 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25603 esac;;
25604esac
25605case $ac_abs_builddir in
25606.) ac_abs_srcdir=$ac_srcdir;;
25607*)
25608 case $ac_srcdir in
25609 .) ac_abs_srcdir=$ac_abs_builddir;;
25610 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25611 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25612 esac;;
25613esac
25614case $ac_abs_builddir in
25615.) ac_abs_top_srcdir=$ac_top_srcdir;;
25616*)
25617 case $ac_top_srcdir in
25618 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25619 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25620 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25621 esac;;
25622esac
25623
25624
25625 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25626echo "$as_me: executing $ac_dest commands" >&6;}
25627 case $ac_dest in
25628 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 25484 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25629 # Strip MF so we end up with the name of the file. 25485 # Strip MF so we end up with the name of the file.
25630 mf=`echo "$mf" | sed -e 's/:.*$//'` 25486 mf=`echo "$mf" | sed -e 's/:.*$//'`
25631 # Check whether this is an Automake generated Makefile or not. 25487 # Check whether this is an Automake generated Makefile or not.
25632 # We used to match only the files named `Makefile.in', but 25488 # We used to match only the files named `Makefile.in', but
25633 # some people rename them; so instead we look at the file content. 25489 # some people rename them; so instead we look at the file content.
25634 # Grep'ing the first line is not enough: some people post-process 25490 # Grep'ing the first line is not enough: some people post-process
25635 # each Makefile.in and add a new line on top of each file to say so. 25491 # each Makefile.in and add a new line on top of each file to say so.
25636 # So let's grep whole file. 25492 # So let's grep whole file.
25637 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 25493 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25638 dirpart=`(dirname "$mf") 2>/dev/null || 25494 dirpart=`$as_dirname -- "$mf" ||
25639$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25495$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25640 X"$mf" : 'X\(//\)[^/]' \| \ 25496 X"$mf" : 'X\(//\)[^/]' \| \
25641 X"$mf" : 'X\(//\)$' \| \ 25497 X"$mf" : 'X\(//\)$' \| \
25642 X"$mf" : 'X\(/\)' \| \ 25498 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25643 . : '\(.\)' 2>/dev/null ||
25644echo X"$mf" | 25499echo X"$mf" |
25645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25646 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25501 s//\1/
25647 /^X\(\/\/\)$/{ s//\1/; q; } 25502 q
25648 /^X\(\/\).*/{ s//\1/; q; } 25503 }
25504 /^X\(\/\/\)[^/].*/{
25505 s//\1/
25506 q
25507 }
25508 /^X\(\/\/\)$/{
25509 s//\1/
25510 q
25511 }
25512 /^X\(\/\).*/{
25513 s//\1/
25514 q
25515 }
25649 s/.*/./; q'` 25516 s/.*/./; q'`
25650 else 25517 else
25651 continue 25518 continue
25652 fi 25519 fi
25653 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 25520 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25654 # Extract the definition of DEP_FILES from the Makefile without 25521 # Extract the definition of DEP_FILES from the Makefile without
25672 } 25539 }
25673 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 25540 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25674 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25541 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25675 # Make sure the directory exists. 25542 # Make sure the directory exists.
25676 test -f "$dirpart/$file" && continue 25543 test -f "$dirpart/$file" && continue
25677 fdir=`(dirname "$file") 2>/dev/null || 25544 fdir=`$as_dirname -- "$file" ||
25678$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25545$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25679 X"$file" : 'X\(//\)[^/]' \| \ 25546 X"$file" : 'X\(//\)[^/]' \| \
25680 X"$file" : 'X\(//\)$' \| \ 25547 X"$file" : 'X\(//\)$' \| \
25681 X"$file" : 'X\(/\)' \| \ 25548 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25682 . : '\(.\)' 2>/dev/null ||
25683echo X"$file" | 25549echo X"$file" |
25684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25685 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25551 s//\1/
25686 /^X\(\/\/\)$/{ s//\1/; q; } 25552 q
25687 /^X\(\/\).*/{ s//\1/; q; } 25553 }
25554 /^X\(\/\/\)[^/].*/{
25555 s//\1/
25556 q
25557 }
25558 /^X\(\/\/\)$/{
25559 s//\1/
25560 q
25561 }
25562 /^X\(\/\).*/{
25563 s//\1/
25564 q
25565 }
25688 s/.*/./; q'` 25566 s/.*/./; q'`
25689 { if $as_mkdir_p; then
25690 mkdir -p $dirpart/$fdir
25691 else
25692 as_dir=$dirpart/$fdir 25567 { as_dir=$dirpart/$fdir
25568 case $as_dir in #(
25569 -*) as_dir=./$as_dir;;
25570 esac
25571 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25693 as_dirs= 25572 as_dirs=
25694 while test ! -d "$as_dir"; do 25573 while :; do
25574 case $as_dir in #(
25575 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25576 *) as_qdir=$as_dir;;
25577 esac
25695 as_dirs="$as_dir $as_dirs" 25578 as_dirs="'$as_qdir' $as_dirs"
25696 as_dir=`(dirname "$as_dir") 2>/dev/null || 25579 as_dir=`$as_dirname -- "$as_dir" ||
25697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25698 X"$as_dir" : 'X\(//\)[^/]' \| \ 25581 X"$as_dir" : 'X\(//\)[^/]' \| \
25699 X"$as_dir" : 'X\(//\)$' \| \ 25582 X"$as_dir" : 'X\(//\)$' \| \
25700 X"$as_dir" : 'X\(/\)' \| \ 25583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25701 . : '\(.\)' 2>/dev/null ||
25702echo X"$as_dir" | 25584echo X"$as_dir" |
25703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25704 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25586 s//\1/
25705 /^X\(\/\/\)$/{ s//\1/; q; } 25587 q
25706 /^X\(\/\).*/{ s//\1/; q; } 25588 }
25589 /^X\(\/\/\)[^/].*/{
25590 s//\1/
25591 q
25592 }
25593 /^X\(\/\/\)$/{
25594 s//\1/
25595 q
25596 }
25597 /^X\(\/\).*/{
25598 s//\1/
25599 q
25600 }
25707 s/.*/./; q'` 25601 s/.*/./; q'`
25602 test -d "$as_dir" && break
25708 done 25603 done
25709 test ! -n "$as_dirs" || mkdir $as_dirs 25604 test -z "$as_dirs" || eval "mkdir $as_dirs"
25710 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 25605 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25711echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 25606echo "$as_me: error: cannot create directory $as_dir" >&2;}
25712 { (exit 1); exit 1; }; }; } 25607 { (exit 1); exit 1; }; }; }
25713
25714 # echo "creating $dirpart/$file" 25608 # echo "creating $dirpart/$file"
25715 echo '# dummy' > "$dirpart/$file" 25609 echo '# dummy' > "$dirpart/$file"
25716 done 25610 done
25717done 25611done
25718 ;; 25612 ;;
25613
25719 esac 25614 esac
25720done 25615done # for ac_tag
25721_ACEOF
25722 25616
25723cat >>$CONFIG_STATUS <<\_ACEOF
25724 25617
25725{ (exit 0); exit 0; } 25618{ (exit 0); exit 0; }
25726_ACEOF 25619_ACEOF
25727chmod +x $CONFIG_STATUS 25620chmod +x $CONFIG_STATUS
25728ac_clean_files=$ac_clean_files_save 25621ac_clean_files=$ac_clean_files_save

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines