1 |
#! /bin/sh |
2 |
# From configure.ac Id: configure.ac 1540 2012-09-29 20:03:55Z michael . |
3 |
# Guess values for system-dependent variables and create Makefiles. |
4 |
# Generated by GNU Autoconf 2.69 for ircd-hybrid 8.0.0. |
5 |
# |
6 |
# Report bugs to <bugs@ircd-hybrid.org>. |
7 |
# |
8 |
# |
9 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
10 |
# |
11 |
# |
12 |
# This configure script is free software; the Free Software Foundation |
13 |
# gives unlimited permission to copy, distribute and modify it. |
14 |
## -------------------- ## |
15 |
## M4sh Initialization. ## |
16 |
## -------------------- ## |
17 |
|
18 |
# Be more Bourne compatible |
19 |
DUALCASE=1; export DUALCASE # for MKS sh |
20 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
21 |
emulate sh |
22 |
NULLCMD=: |
23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
24 |
# is contrary to our usage. Disable this feature. |
25 |
alias -g '${1+"$@"}'='"$@"' |
26 |
setopt NO_GLOB_SUBST |
27 |
else |
28 |
case `(set -o) 2>/dev/null` in #( |
29 |
*posix*) : |
30 |
set -o posix ;; #( |
31 |
*) : |
32 |
;; |
33 |
esac |
34 |
fi |
35 |
|
36 |
|
37 |
as_nl=' |
38 |
' |
39 |
export as_nl |
40 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
41 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
43 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
44 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
45 |
# but without wasting forks for bash or zsh. |
46 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
47 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='print -r --' |
49 |
as_echo_n='print -rn --' |
50 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
51 |
as_echo='printf %s\n' |
52 |
as_echo_n='printf %s' |
53 |
else |
54 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
55 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
56 |
as_echo_n='/usr/ucb/echo -n' |
57 |
else |
58 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
59 |
as_echo_n_body='eval |
60 |
arg=$1; |
61 |
case $arg in #( |
62 |
*"$as_nl"*) |
63 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
64 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
65 |
esac; |
66 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
67 |
' |
68 |
export as_echo_n_body |
69 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
70 |
fi |
71 |
export as_echo_body |
72 |
as_echo='sh -c $as_echo_body as_echo' |
73 |
fi |
74 |
|
75 |
# The user is always right. |
76 |
if test "${PATH_SEPARATOR+set}" != set; then |
77 |
PATH_SEPARATOR=: |
78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
80 |
PATH_SEPARATOR=';' |
81 |
} |
82 |
fi |
83 |
|
84 |
|
85 |
# IFS |
86 |
# We need space, tab and new line, in precisely that order. Quoting is |
87 |
# there to prevent editors from complaining about space-tab. |
88 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
89 |
# splitting by setting IFS to empty value.) |
90 |
IFS=" "" $as_nl" |
91 |
|
92 |
# Find who we are. Look in the path if we contain no directory separator. |
93 |
as_myself= |
94 |
case $0 in #(( |
95 |
*[\\/]* ) as_myself=$0 ;; |
96 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
97 |
for as_dir in $PATH |
98 |
do |
99 |
IFS=$as_save_IFS |
100 |
test -z "$as_dir" && as_dir=. |
101 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
102 |
done |
103 |
IFS=$as_save_IFS |
104 |
|
105 |
;; |
106 |
esac |
107 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
108 |
# in which case we are not to be found in the path. |
109 |
if test "x$as_myself" = x; then |
110 |
as_myself=$0 |
111 |
fi |
112 |
if test ! -f "$as_myself"; then |
113 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
114 |
exit 1 |
115 |
fi |
116 |
|
117 |
# Unset variables that we do not need and which cause bugs (e.g. in |
118 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
119 |
# suppresses any "Segmentation fault" message there. '((' could |
120 |
# trigger a bug in pdksh 5.2.14. |
121 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
122 |
do eval test x\${$as_var+set} = xset \ |
123 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
124 |
done |
125 |
PS1='$ ' |
126 |
PS2='> ' |
127 |
PS4='+ ' |
128 |
|
129 |
# NLS nuisances. |
130 |
LC_ALL=C |
131 |
export LC_ALL |
132 |
LANGUAGE=C |
133 |
export LANGUAGE |
134 |
|
135 |
# CDPATH. |
136 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 |
|
138 |
# Use a proper internal environment variable to ensure we don't fall |
139 |
# into an infinite loop, continuously re-executing ourselves. |
140 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
141 |
_as_can_reexec=no; export _as_can_reexec; |
142 |
# We cannot yet assume a decent shell, so we have to provide a |
143 |
# neutralization value for shells without unset; and this also |
144 |
# works around shells that cannot unset nonexistent variables. |
145 |
# Preserve -v and -x to the replacement shell. |
146 |
BASH_ENV=/dev/null |
147 |
ENV=/dev/null |
148 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
149 |
case $- in # (((( |
150 |
*v*x* | *x*v* ) as_opts=-vx ;; |
151 |
*v* ) as_opts=-v ;; |
152 |
*x* ) as_opts=-x ;; |
153 |
* ) as_opts= ;; |
154 |
esac |
155 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
156 |
# Admittedly, this is quite paranoid, since all the known shells bail |
157 |
# out after a failed `exec'. |
158 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
159 |
as_fn_exit 255 |
160 |
fi |
161 |
# We don't want this to propagate to other subprocesses. |
162 |
{ _as_can_reexec=; unset _as_can_reexec;} |
163 |
if test "x$CONFIG_SHELL" = x; then |
164 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
165 |
emulate sh |
166 |
NULLCMD=: |
167 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
168 |
# is contrary to our usage. Disable this feature. |
169 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
170 |
setopt NO_GLOB_SUBST |
171 |
else |
172 |
case \`(set -o) 2>/dev/null\` in #( |
173 |
*posix*) : |
174 |
set -o posix ;; #( |
175 |
*) : |
176 |
;; |
177 |
esac |
178 |
fi |
179 |
" |
180 |
as_required="as_fn_return () { (exit \$1); } |
181 |
as_fn_success () { as_fn_return 0; } |
182 |
as_fn_failure () { as_fn_return 1; } |
183 |
as_fn_ret_success () { return 0; } |
184 |
as_fn_ret_failure () { return 1; } |
185 |
|
186 |
exitcode=0 |
187 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
188 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
189 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
190 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
191 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
192 |
|
193 |
else |
194 |
exitcode=1; echo positional parameters were not saved. |
195 |
fi |
196 |
test x\$exitcode = x0 || exit 1 |
197 |
test -x / || exit 1" |
198 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
199 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
200 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
201 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
202 |
|
203 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
204 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
205 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
206 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
207 |
PATH=/empty FPATH=/empty; export PATH FPATH |
208 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
209 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
210 |
test \$(( 1 + 1 )) = 2 || exit 1" |
211 |
if (eval "$as_required") 2>/dev/null; then : |
212 |
as_have_required=yes |
213 |
else |
214 |
as_have_required=no |
215 |
fi |
216 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
217 |
|
218 |
else |
219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
220 |
as_found=false |
221 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
222 |
do |
223 |
IFS=$as_save_IFS |
224 |
test -z "$as_dir" && as_dir=. |
225 |
as_found=: |
226 |
case $as_dir in #( |
227 |
/*) |
228 |
for as_base in sh bash ksh sh5; do |
229 |
# Try only shells that exist, to save several forks. |
230 |
as_shell=$as_dir/$as_base |
231 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
233 |
CONFIG_SHELL=$as_shell as_have_required=yes |
234 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
235 |
break 2 |
236 |
fi |
237 |
fi |
238 |
done;; |
239 |
esac |
240 |
as_found=false |
241 |
done |
242 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
243 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
244 |
CONFIG_SHELL=$SHELL as_have_required=yes |
245 |
fi; } |
246 |
IFS=$as_save_IFS |
247 |
|
248 |
|
249 |
if test "x$CONFIG_SHELL" != x; then : |
250 |
export CONFIG_SHELL |
251 |
# We cannot yet assume a decent shell, so we have to provide a |
252 |
# neutralization value for shells without unset; and this also |
253 |
# works around shells that cannot unset nonexistent variables. |
254 |
# Preserve -v and -x to the replacement shell. |
255 |
BASH_ENV=/dev/null |
256 |
ENV=/dev/null |
257 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
258 |
case $- in # (((( |
259 |
*v*x* | *x*v* ) as_opts=-vx ;; |
260 |
*v* ) as_opts=-v ;; |
261 |
*x* ) as_opts=-x ;; |
262 |
* ) as_opts= ;; |
263 |
esac |
264 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
265 |
# Admittedly, this is quite paranoid, since all the known shells bail |
266 |
# out after a failed `exec'. |
267 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
268 |
exit 255 |
269 |
fi |
270 |
|
271 |
if test x$as_have_required = xno; then : |
272 |
$as_echo "$0: This script requires a shell more modern than all" |
273 |
$as_echo "$0: the shells that I found on your system." |
274 |
if test x${ZSH_VERSION+set} = xset ; then |
275 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
276 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
277 |
else |
278 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and |
279 |
$0: bugs@ircd-hybrid.org about your system, including any |
280 |
$0: error possibly output before this message. Then install |
281 |
$0: a modern shell, or manually run the script under such a |
282 |
$0: shell if you do have one." |
283 |
fi |
284 |
exit 1 |
285 |
fi |
286 |
fi |
287 |
fi |
288 |
SHELL=${CONFIG_SHELL-/bin/sh} |
289 |
export SHELL |
290 |
# Unset more variables known to interfere with behavior of common tools. |
291 |
CLICOLOR_FORCE= GREP_OPTIONS= |
292 |
unset CLICOLOR_FORCE GREP_OPTIONS |
293 |
|
294 |
## --------------------- ## |
295 |
## M4sh Shell Functions. ## |
296 |
## --------------------- ## |
297 |
# as_fn_unset VAR |
298 |
# --------------- |
299 |
# Portably unset VAR. |
300 |
as_fn_unset () |
301 |
{ |
302 |
{ eval $1=; unset $1;} |
303 |
} |
304 |
as_unset=as_fn_unset |
305 |
|
306 |
# as_fn_set_status STATUS |
307 |
# ----------------------- |
308 |
# Set $? to STATUS, without forking. |
309 |
as_fn_set_status () |
310 |
{ |
311 |
return $1 |
312 |
} # as_fn_set_status |
313 |
|
314 |
# as_fn_exit STATUS |
315 |
# ----------------- |
316 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
317 |
as_fn_exit () |
318 |
{ |
319 |
set +e |
320 |
as_fn_set_status $1 |
321 |
exit $1 |
322 |
} # as_fn_exit |
323 |
|
324 |
# as_fn_mkdir_p |
325 |
# ------------- |
326 |
# Create "$as_dir" as a directory, including parents if necessary. |
327 |
as_fn_mkdir_p () |
328 |
{ |
329 |
|
330 |
case $as_dir in #( |
331 |
-*) as_dir=./$as_dir;; |
332 |
esac |
333 |
test -d "$as_dir" || eval $as_mkdir_p || { |
334 |
as_dirs= |
335 |
while :; do |
336 |
case $as_dir in #( |
337 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
338 |
*) as_qdir=$as_dir;; |
339 |
esac |
340 |
as_dirs="'$as_qdir' $as_dirs" |
341 |
as_dir=`$as_dirname -- "$as_dir" || |
342 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
343 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
344 |
X"$as_dir" : 'X\(//\)$' \| \ |
345 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
346 |
$as_echo X"$as_dir" | |
347 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
/^X\(\/\/\)[^/].*/{ |
352 |
s//\1/ |
353 |
q |
354 |
} |
355 |
/^X\(\/\/\)$/{ |
356 |
s//\1/ |
357 |
q |
358 |
} |
359 |
/^X\(\/\).*/{ |
360 |
s//\1/ |
361 |
q |
362 |
} |
363 |
s/.*/./; q'` |
364 |
test -d "$as_dir" && break |
365 |
done |
366 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
367 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
368 |
|
369 |
|
370 |
} # as_fn_mkdir_p |
371 |
|
372 |
# as_fn_executable_p FILE |
373 |
# ----------------------- |
374 |
# Test if FILE is an executable regular file. |
375 |
as_fn_executable_p () |
376 |
{ |
377 |
test -f "$1" && test -x "$1" |
378 |
} # as_fn_executable_p |
379 |
# as_fn_append VAR VALUE |
380 |
# ---------------------- |
381 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
382 |
# advantage of any shell optimizations that allow amortized linear growth over |
383 |
# repeated appends, instead of the typical quadratic growth present in naive |
384 |
# implementations. |
385 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
386 |
eval 'as_fn_append () |
387 |
{ |
388 |
eval $1+=\$2 |
389 |
}' |
390 |
else |
391 |
as_fn_append () |
392 |
{ |
393 |
eval $1=\$$1\$2 |
394 |
} |
395 |
fi # as_fn_append |
396 |
|
397 |
# as_fn_arith ARG... |
398 |
# ------------------ |
399 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
400 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
401 |
# must be portable across $(()) and expr. |
402 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
403 |
eval 'as_fn_arith () |
404 |
{ |
405 |
as_val=$(( $* )) |
406 |
}' |
407 |
else |
408 |
as_fn_arith () |
409 |
{ |
410 |
as_val=`expr "$@" || test $? -eq 1` |
411 |
} |
412 |
fi # as_fn_arith |
413 |
|
414 |
|
415 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
416 |
# ---------------------------------------- |
417 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
418 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
419 |
# script with STATUS, using 1 if that was 0. |
420 |
as_fn_error () |
421 |
{ |
422 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
423 |
if test "$4"; then |
424 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
425 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
426 |
fi |
427 |
$as_echo "$as_me: error: $2" >&2 |
428 |
as_fn_exit $as_status |
429 |
} # as_fn_error |
430 |
|
431 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
432 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
433 |
as_expr=expr |
434 |
else |
435 |
as_expr=false |
436 |
fi |
437 |
|
438 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
439 |
as_basename=basename |
440 |
else |
441 |
as_basename=false |
442 |
fi |
443 |
|
444 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
445 |
as_dirname=dirname |
446 |
else |
447 |
as_dirname=false |
448 |
fi |
449 |
|
450 |
as_me=`$as_basename -- "$0" || |
451 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
452 |
X"$0" : 'X\(//\)$' \| \ |
453 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
454 |
$as_echo X/"$0" | |
455 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
456 |
s//\1/ |
457 |
q |
458 |
} |
459 |
/^X\/\(\/\/\)$/{ |
460 |
s//\1/ |
461 |
q |
462 |
} |
463 |
/^X\/\(\/\).*/{ |
464 |
s//\1/ |
465 |
q |
466 |
} |
467 |
s/.*/./; q'` |
468 |
|
469 |
# Avoid depending upon Character Ranges. |
470 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
471 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
472 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
473 |
as_cr_digits='0123456789' |
474 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
475 |
|
476 |
|
477 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
478 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
479 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
480 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
481 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
482 |
sed -n ' |
483 |
p |
484 |
/[$]LINENO/= |
485 |
' <$as_myself | |
486 |
sed ' |
487 |
s/[$]LINENO.*/&-/ |
488 |
t lineno |
489 |
b |
490 |
:lineno |
491 |
N |
492 |
:loop |
493 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
494 |
t loop |
495 |
s/-\n.*// |
496 |
' >$as_me.lineno && |
497 |
chmod +x "$as_me.lineno" || |
498 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
499 |
|
500 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 |
# already done that, so ensure we don't try to do so again and fall |
502 |
# in an infinite loop. This has already happened in practice. |
503 |
_as_can_reexec=no; export _as_can_reexec |
504 |
# Don't try to exec as it changes $[0], causing all sort of problems |
505 |
# (the dirname of $[0] is not the place where we might find the |
506 |
# original and so on. Autoconf is especially sensitive to this). |
507 |
. "./$as_me.lineno" |
508 |
# Exit status is that of the last command. |
509 |
exit |
510 |
} |
511 |
|
512 |
ECHO_C= ECHO_N= ECHO_T= |
513 |
case `echo -n x` in #((((( |
514 |
-n*) |
515 |
case `echo 'xy\c'` in |
516 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
517 |
xy) ECHO_C='\c';; |
518 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
519 |
ECHO_T=' ';; |
520 |
esac;; |
521 |
*) |
522 |
ECHO_N='-n';; |
523 |
esac |
524 |
|
525 |
rm -f conf$$ conf$$.exe conf$$.file |
526 |
if test -d conf$$.dir; then |
527 |
rm -f conf$$.dir/conf$$.file |
528 |
else |
529 |
rm -f conf$$.dir |
530 |
mkdir conf$$.dir 2>/dev/null |
531 |
fi |
532 |
if (echo >conf$$.file) 2>/dev/null; then |
533 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
534 |
as_ln_s='ln -s' |
535 |
# ... but there are two gotchas: |
536 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
537 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
538 |
# In both cases, we have to default to `cp -pR'. |
539 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
540 |
as_ln_s='cp -pR' |
541 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
542 |
as_ln_s=ln |
543 |
else |
544 |
as_ln_s='cp -pR' |
545 |
fi |
546 |
else |
547 |
as_ln_s='cp -pR' |
548 |
fi |
549 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
550 |
rmdir conf$$.dir 2>/dev/null |
551 |
|
552 |
if mkdir -p . 2>/dev/null; then |
553 |
as_mkdir_p='mkdir -p "$as_dir"' |
554 |
else |
555 |
test -d ./-p && rmdir ./-p |
556 |
as_mkdir_p=false |
557 |
fi |
558 |
|
559 |
as_test_x='test -x' |
560 |
as_executable_p=as_fn_executable_p |
561 |
|
562 |
# Sed expression to map a string onto a valid CPP name. |
563 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
564 |
|
565 |
# Sed expression to map a string onto a valid variable name. |
566 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
567 |
|
568 |
lt_ltdl_dir='libltdl' |
569 |
|
570 |
SHELL=${CONFIG_SHELL-/bin/sh} |
571 |
|
572 |
|
573 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
574 |
exec 6>&1 |
575 |
|
576 |
# Name of the host. |
577 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
578 |
# so uname gets run too. |
579 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
580 |
|
581 |
# |
582 |
# Initializations. |
583 |
# |
584 |
ac_default_prefix=/usr/local |
585 |
ac_clean_files= |
586 |
ac_config_libobj_dir=. |
587 |
LIBOBJS= |
588 |
cross_compiling=no |
589 |
subdirs= |
590 |
MFLAGS= |
591 |
MAKEFLAGS= |
592 |
|
593 |
# Identity of this package. |
594 |
PACKAGE_NAME='ircd-hybrid' |
595 |
PACKAGE_TARNAME='ircd-hybrid' |
596 |
PACKAGE_VERSION='8.0.0' |
597 |
PACKAGE_STRING='ircd-hybrid 8.0.0' |
598 |
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
599 |
PACKAGE_URL='' |
600 |
|
601 |
ac_unique_file="src/ircd.c" |
602 |
# Factoring default headers for most tests. |
603 |
ac_includes_default="\ |
604 |
#include <stdio.h> |
605 |
#ifdef HAVE_SYS_TYPES_H |
606 |
# include <sys/types.h> |
607 |
#endif |
608 |
#ifdef HAVE_SYS_STAT_H |
609 |
# include <sys/stat.h> |
610 |
#endif |
611 |
#ifdef STDC_HEADERS |
612 |
# include <stdlib.h> |
613 |
# include <stddef.h> |
614 |
#else |
615 |
# ifdef HAVE_STDLIB_H |
616 |
# include <stdlib.h> |
617 |
# endif |
618 |
#endif |
619 |
#ifdef HAVE_STRING_H |
620 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
621 |
# include <memory.h> |
622 |
# endif |
623 |
# include <string.h> |
624 |
#endif |
625 |
#ifdef HAVE_STRINGS_H |
626 |
# include <strings.h> |
627 |
#endif |
628 |
#ifdef HAVE_INTTYPES_H |
629 |
# include <inttypes.h> |
630 |
#endif |
631 |
#ifdef HAVE_STDINT_H |
632 |
# include <stdint.h> |
633 |
#endif |
634 |
#ifdef HAVE_UNISTD_H |
635 |
# include <unistd.h> |
636 |
#endif" |
637 |
|
638 |
ac_func_list= |
639 |
ac_header_list= |
640 |
ac_subst_vars='ltdl_LTLIBOBJS |
641 |
ltdl_LIBOBJS |
642 |
am__EXEEXT_FALSE |
643 |
am__EXEEXT_TRUE |
644 |
LTLIBOBJS |
645 |
LIBOBJS |
646 |
LOCALSTATEDIR |
647 |
DATADIR |
648 |
LIBDIR |
649 |
SYSCONFDIR |
650 |
PREFIX |
651 |
ENABLE_SSL_FALSE |
652 |
ENABLE_SSL_TRUE |
653 |
LTDLOPEN |
654 |
LT_CONFIG_H |
655 |
CONVENIENCE_LTDL_FALSE |
656 |
CONVENIENCE_LTDL_TRUE |
657 |
INSTALL_LTDL_FALSE |
658 |
INSTALL_LTDL_TRUE |
659 |
ARGZ_H |
660 |
sys_symbol_underscore |
661 |
LIBADD_DL |
662 |
LT_DLPREOPEN |
663 |
LIBADD_DLD_LINK |
664 |
LIBADD_SHL_LOAD |
665 |
LIBADD_DLOPEN |
666 |
LT_DLLOADERS |
667 |
INCLTDL |
668 |
LTDLINCL |
669 |
LTDLDEPS |
670 |
LIBLTDL |
671 |
CPP |
672 |
OTOOL64 |
673 |
OTOOL |
674 |
LIPO |
675 |
NMEDIT |
676 |
DSYMUTIL |
677 |
MANIFEST_TOOL |
678 |
RANLIB |
679 |
ac_ct_AR |
680 |
AR |
681 |
DLLTOOL |
682 |
OBJDUMP |
683 |
LN_S |
684 |
NM |
685 |
ac_ct_DUMPBIN |
686 |
DUMPBIN |
687 |
LD |
688 |
FGREP |
689 |
EGREP |
690 |
GREP |
691 |
SED |
692 |
host_os |
693 |
host_vendor |
694 |
host_cpu |
695 |
host |
696 |
build_os |
697 |
build_vendor |
698 |
build_cpu |
699 |
build |
700 |
LIBTOOL |
701 |
LEXLIB |
702 |
LEX_OUTPUT_ROOT |
703 |
LEX |
704 |
YFLAGS |
705 |
YACC |
706 |
am__fastdepCC_FALSE |
707 |
am__fastdepCC_TRUE |
708 |
CCDEPMODE |
709 |
am__nodep |
710 |
AMDEPBACKSLASH |
711 |
AMDEP_FALSE |
712 |
AMDEP_TRUE |
713 |
am__quote |
714 |
am__include |
715 |
DEPDIR |
716 |
OBJEXT |
717 |
EXEEXT |
718 |
ac_ct_CC |
719 |
CPPFLAGS |
720 |
LDFLAGS |
721 |
CFLAGS |
722 |
CC |
723 |
MAINT |
724 |
MAINTAINER_MODE_FALSE |
725 |
MAINTAINER_MODE_TRUE |
726 |
am__untar |
727 |
am__tar |
728 |
AMTAR |
729 |
am__leading_dot |
730 |
SET_MAKE |
731 |
AWK |
732 |
mkdir_p |
733 |
MKDIR_P |
734 |
INSTALL_STRIP_PROGRAM |
735 |
STRIP |
736 |
install_sh |
737 |
MAKEINFO |
738 |
AUTOHEADER |
739 |
AUTOMAKE |
740 |
AUTOCONF |
741 |
ACLOCAL |
742 |
VERSION |
743 |
PACKAGE |
744 |
CYGPATH_W |
745 |
am__isrc |
746 |
INSTALL_DATA |
747 |
INSTALL_SCRIPT |
748 |
INSTALL_PROGRAM |
749 |
target_alias |
750 |
host_alias |
751 |
build_alias |
752 |
LIBS |
753 |
ECHO_T |
754 |
ECHO_N |
755 |
ECHO_C |
756 |
DEFS |
757 |
mandir |
758 |
localedir |
759 |
libdir |
760 |
psdir |
761 |
pdfdir |
762 |
dvidir |
763 |
htmldir |
764 |
infodir |
765 |
docdir |
766 |
oldincludedir |
767 |
includedir |
768 |
localstatedir |
769 |
sharedstatedir |
770 |
sysconfdir |
771 |
datadir |
772 |
datarootdir |
773 |
libexecdir |
774 |
sbindir |
775 |
bindir |
776 |
program_transform_name |
777 |
prefix |
778 |
exec_prefix |
779 |
PACKAGE_URL |
780 |
PACKAGE_BUGREPORT |
781 |
PACKAGE_STRING |
782 |
PACKAGE_VERSION |
783 |
PACKAGE_TARNAME |
784 |
PACKAGE_NAME |
785 |
PATH_SEPARATOR |
786 |
SHELL' |
787 |
ac_subst_files='' |
788 |
ac_user_opts=' |
789 |
enable_option_checking |
790 |
enable_maintainer_mode |
791 |
enable_dependency_tracking |
792 |
enable_static |
793 |
enable_shared |
794 |
with_pic |
795 |
enable_fast_install |
796 |
with_gnu_ld |
797 |
with_sysroot |
798 |
enable_libtool_lock |
799 |
with_included_ltdl |
800 |
with_ltdl_include |
801 |
with_ltdl_lib |
802 |
enable_ltdl_install |
803 |
enable_libpcre |
804 |
enable_openssl |
805 |
enable_assert |
806 |
enable_kqueue |
807 |
enable_epoll |
808 |
enable_devpoll |
809 |
enable_rtsigio |
810 |
enable_poll |
811 |
enable_select |
812 |
with_nicklen |
813 |
with_topiclen |
814 |
enable_halfops |
815 |
enable_debugging |
816 |
enable_warnings |
817 |
' |
818 |
ac_precious_vars='build_alias |
819 |
host_alias |
820 |
target_alias |
821 |
CC |
822 |
CFLAGS |
823 |
LDFLAGS |
824 |
LIBS |
825 |
CPPFLAGS |
826 |
YACC |
827 |
YFLAGS |
828 |
CPP' |
829 |
|
830 |
|
831 |
# Initialize some variables set by options. |
832 |
ac_init_help= |
833 |
ac_init_version=false |
834 |
ac_unrecognized_opts= |
835 |
ac_unrecognized_sep= |
836 |
# The variables have the same names as the options, with |
837 |
# dashes changed to underlines. |
838 |
cache_file=/dev/null |
839 |
exec_prefix=NONE |
840 |
no_create= |
841 |
no_recursion= |
842 |
prefix=NONE |
843 |
program_prefix=NONE |
844 |
program_suffix=NONE |
845 |
program_transform_name=s,x,x, |
846 |
silent= |
847 |
site= |
848 |
srcdir= |
849 |
verbose= |
850 |
x_includes=NONE |
851 |
x_libraries=NONE |
852 |
|
853 |
# Installation directory options. |
854 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
855 |
# and all the variables that are supposed to be based on exec_prefix |
856 |
# by default will actually change. |
857 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
858 |
# (The list follows the same order as the GNU Coding Standards.) |
859 |
bindir='${exec_prefix}/bin' |
860 |
sbindir='${exec_prefix}/sbin' |
861 |
libexecdir='${exec_prefix}/libexec' |
862 |
datarootdir='${prefix}/share' |
863 |
datadir='${datarootdir}' |
864 |
sysconfdir='${prefix}/etc' |
865 |
sharedstatedir='${prefix}/com' |
866 |
localstatedir='${prefix}/var' |
867 |
includedir='${prefix}/include' |
868 |
oldincludedir='/usr/include' |
869 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
870 |
infodir='${datarootdir}/info' |
871 |
htmldir='${docdir}' |
872 |
dvidir='${docdir}' |
873 |
pdfdir='${docdir}' |
874 |
psdir='${docdir}' |
875 |
libdir='${exec_prefix}/lib' |
876 |
localedir='${datarootdir}/locale' |
877 |
mandir='${datarootdir}/man' |
878 |
|
879 |
ac_prev= |
880 |
ac_dashdash= |
881 |
for ac_option |
882 |
do |
883 |
# If the previous option needs an argument, assign it. |
884 |
if test -n "$ac_prev"; then |
885 |
eval $ac_prev=\$ac_option |
886 |
ac_prev= |
887 |
continue |
888 |
fi |
889 |
|
890 |
case $ac_option in |
891 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
892 |
*=) ac_optarg= ;; |
893 |
*) ac_optarg=yes ;; |
894 |
esac |
895 |
|
896 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
897 |
|
898 |
case $ac_dashdash$ac_option in |
899 |
--) |
900 |
ac_dashdash=yes ;; |
901 |
|
902 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
903 |
ac_prev=bindir ;; |
904 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
905 |
bindir=$ac_optarg ;; |
906 |
|
907 |
-build | --build | --buil | --bui | --bu) |
908 |
ac_prev=build_alias ;; |
909 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
910 |
build_alias=$ac_optarg ;; |
911 |
|
912 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
913 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
914 |
ac_prev=cache_file ;; |
915 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
916 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
917 |
cache_file=$ac_optarg ;; |
918 |
|
919 |
--config-cache | -C) |
920 |
cache_file=config.cache ;; |
921 |
|
922 |
-datadir | --datadir | --datadi | --datad) |
923 |
ac_prev=datadir ;; |
924 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
925 |
datadir=$ac_optarg ;; |
926 |
|
927 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
928 |
| --dataroo | --dataro | --datar) |
929 |
ac_prev=datarootdir ;; |
930 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
931 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
932 |
datarootdir=$ac_optarg ;; |
933 |
|
934 |
-disable-* | --disable-*) |
935 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
936 |
# Reject names that are not valid shell variable names. |
937 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
938 |
as_fn_error $? "invalid feature name: $ac_useropt" |
939 |
ac_useropt_orig=$ac_useropt |
940 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
941 |
case $ac_user_opts in |
942 |
*" |
943 |
"enable_$ac_useropt" |
944 |
"*) ;; |
945 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
946 |
ac_unrecognized_sep=', ';; |
947 |
esac |
948 |
eval enable_$ac_useropt=no ;; |
949 |
|
950 |
-docdir | --docdir | --docdi | --doc | --do) |
951 |
ac_prev=docdir ;; |
952 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
953 |
docdir=$ac_optarg ;; |
954 |
|
955 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
956 |
ac_prev=dvidir ;; |
957 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
958 |
dvidir=$ac_optarg ;; |
959 |
|
960 |
-enable-* | --enable-*) |
961 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
962 |
# Reject names that are not valid shell variable names. |
963 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
964 |
as_fn_error $? "invalid feature name: $ac_useropt" |
965 |
ac_useropt_orig=$ac_useropt |
966 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
967 |
case $ac_user_opts in |
968 |
*" |
969 |
"enable_$ac_useropt" |
970 |
"*) ;; |
971 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
972 |
ac_unrecognized_sep=', ';; |
973 |
esac |
974 |
eval enable_$ac_useropt=\$ac_optarg ;; |
975 |
|
976 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
977 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
978 |
| --exec | --exe | --ex) |
979 |
ac_prev=exec_prefix ;; |
980 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
981 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
982 |
| --exec=* | --exe=* | --ex=*) |
983 |
exec_prefix=$ac_optarg ;; |
984 |
|
985 |
-gas | --gas | --ga | --g) |
986 |
# Obsolete; use --with-gas. |
987 |
with_gas=yes ;; |
988 |
|
989 |
-help | --help | --hel | --he | -h) |
990 |
ac_init_help=long ;; |
991 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
992 |
ac_init_help=recursive ;; |
993 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
994 |
ac_init_help=short ;; |
995 |
|
996 |
-host | --host | --hos | --ho) |
997 |
ac_prev=host_alias ;; |
998 |
-host=* | --host=* | --hos=* | --ho=*) |
999 |
host_alias=$ac_optarg ;; |
1000 |
|
1001 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1002 |
ac_prev=htmldir ;; |
1003 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1004 |
| --ht=*) |
1005 |
htmldir=$ac_optarg ;; |
1006 |
|
1007 |
-includedir | --includedir | --includedi | --included | --include \ |
1008 |
| --includ | --inclu | --incl | --inc) |
1009 |
ac_prev=includedir ;; |
1010 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1011 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
1012 |
includedir=$ac_optarg ;; |
1013 |
|
1014 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
1015 |
ac_prev=infodir ;; |
1016 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1017 |
infodir=$ac_optarg ;; |
1018 |
|
1019 |
-libdir | --libdir | --libdi | --libd) |
1020 |
ac_prev=libdir ;; |
1021 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
1022 |
libdir=$ac_optarg ;; |
1023 |
|
1024 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1025 |
| --libexe | --libex | --libe) |
1026 |
ac_prev=libexecdir ;; |
1027 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1028 |
| --libexe=* | --libex=* | --libe=*) |
1029 |
libexecdir=$ac_optarg ;; |
1030 |
|
1031 |
-localedir | --localedir | --localedi | --localed | --locale) |
1032 |
ac_prev=localedir ;; |
1033 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1034 |
localedir=$ac_optarg ;; |
1035 |
|
1036 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1037 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1038 |
ac_prev=localstatedir ;; |
1039 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1040 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1041 |
localstatedir=$ac_optarg ;; |
1042 |
|
1043 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1044 |
ac_prev=mandir ;; |
1045 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1046 |
mandir=$ac_optarg ;; |
1047 |
|
1048 |
-nfp | --nfp | --nf) |
1049 |
# Obsolete; use --without-fp. |
1050 |
with_fp=no ;; |
1051 |
|
1052 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1053 |
| --no-cr | --no-c | -n) |
1054 |
no_create=yes ;; |
1055 |
|
1056 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1057 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1058 |
no_recursion=yes ;; |
1059 |
|
1060 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1061 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1062 |
| --oldin | --oldi | --old | --ol | --o) |
1063 |
ac_prev=oldincludedir ;; |
1064 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1065 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1066 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1067 |
oldincludedir=$ac_optarg ;; |
1068 |
|
1069 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1070 |
ac_prev=prefix ;; |
1071 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1072 |
prefix=$ac_optarg ;; |
1073 |
|
1074 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1075 |
| --program-pre | --program-pr | --program-p) |
1076 |
ac_prev=program_prefix ;; |
1077 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1078 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1079 |
program_prefix=$ac_optarg ;; |
1080 |
|
1081 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1082 |
| --program-suf | --program-su | --program-s) |
1083 |
ac_prev=program_suffix ;; |
1084 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1085 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1086 |
program_suffix=$ac_optarg ;; |
1087 |
|
1088 |
-program-transform-name | --program-transform-name \ |
1089 |
| --program-transform-nam | --program-transform-na \ |
1090 |
| --program-transform-n | --program-transform- \ |
1091 |
| --program-transform | --program-transfor \ |
1092 |
| --program-transfo | --program-transf \ |
1093 |
| --program-trans | --program-tran \ |
1094 |
| --progr-tra | --program-tr | --program-t) |
1095 |
ac_prev=program_transform_name ;; |
1096 |
-program-transform-name=* | --program-transform-name=* \ |
1097 |
| --program-transform-nam=* | --program-transform-na=* \ |
1098 |
| --program-transform-n=* | --program-transform-=* \ |
1099 |
| --program-transform=* | --program-transfor=* \ |
1100 |
| --program-transfo=* | --program-transf=* \ |
1101 |
| --program-trans=* | --program-tran=* \ |
1102 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1103 |
program_transform_name=$ac_optarg ;; |
1104 |
|
1105 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1106 |
ac_prev=pdfdir ;; |
1107 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1108 |
pdfdir=$ac_optarg ;; |
1109 |
|
1110 |
-psdir | --psdir | --psdi | --psd | --ps) |
1111 |
ac_prev=psdir ;; |
1112 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1113 |
psdir=$ac_optarg ;; |
1114 |
|
1115 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1116 |
| -silent | --silent | --silen | --sile | --sil) |
1117 |
silent=yes ;; |
1118 |
|
1119 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1120 |
ac_prev=sbindir ;; |
1121 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1122 |
| --sbi=* | --sb=*) |
1123 |
sbindir=$ac_optarg ;; |
1124 |
|
1125 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1126 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1127 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1128 |
| --sha | --sh) |
1129 |
ac_prev=sharedstatedir ;; |
1130 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1131 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1132 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1133 |
| --sha=* | --sh=*) |
1134 |
sharedstatedir=$ac_optarg ;; |
1135 |
|
1136 |
-site | --site | --sit) |
1137 |
ac_prev=site ;; |
1138 |
-site=* | --site=* | --sit=*) |
1139 |
site=$ac_optarg ;; |
1140 |
|
1141 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1142 |
ac_prev=srcdir ;; |
1143 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1144 |
srcdir=$ac_optarg ;; |
1145 |
|
1146 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1147 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1148 |
ac_prev=sysconfdir ;; |
1149 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1150 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1151 |
sysconfdir=$ac_optarg ;; |
1152 |
|
1153 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1154 |
ac_prev=target_alias ;; |
1155 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1156 |
target_alias=$ac_optarg ;; |
1157 |
|
1158 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1159 |
verbose=yes ;; |
1160 |
|
1161 |
-version | --version | --versio | --versi | --vers | -V) |
1162 |
ac_init_version=: ;; |
1163 |
|
1164 |
-with-* | --with-*) |
1165 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1166 |
# Reject names that are not valid shell variable names. |
1167 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1168 |
as_fn_error $? "invalid package name: $ac_useropt" |
1169 |
ac_useropt_orig=$ac_useropt |
1170 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1171 |
case $ac_user_opts in |
1172 |
*" |
1173 |
"with_$ac_useropt" |
1174 |
"*) ;; |
1175 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1176 |
ac_unrecognized_sep=', ';; |
1177 |
esac |
1178 |
eval with_$ac_useropt=\$ac_optarg ;; |
1179 |
|
1180 |
-without-* | --without-*) |
1181 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1182 |
# Reject names that are not valid shell variable names. |
1183 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 |
as_fn_error $? "invalid package name: $ac_useropt" |
1185 |
ac_useropt_orig=$ac_useropt |
1186 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1187 |
case $ac_user_opts in |
1188 |
*" |
1189 |
"with_$ac_useropt" |
1190 |
"*) ;; |
1191 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1192 |
ac_unrecognized_sep=', ';; |
1193 |
esac |
1194 |
eval with_$ac_useropt=no ;; |
1195 |
|
1196 |
--x) |
1197 |
# Obsolete; use --with-x. |
1198 |
with_x=yes ;; |
1199 |
|
1200 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1201 |
| --x-incl | --x-inc | --x-in | --x-i) |
1202 |
ac_prev=x_includes ;; |
1203 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1204 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1205 |
x_includes=$ac_optarg ;; |
1206 |
|
1207 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1208 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1209 |
ac_prev=x_libraries ;; |
1210 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1211 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1212 |
x_libraries=$ac_optarg ;; |
1213 |
|
1214 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1215 |
Try \`$0 --help' for more information" |
1216 |
;; |
1217 |
|
1218 |
*=*) |
1219 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1220 |
# Reject names that are not valid shell variable names. |
1221 |
case $ac_envvar in #( |
1222 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1223 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1224 |
esac |
1225 |
eval $ac_envvar=\$ac_optarg |
1226 |
export $ac_envvar ;; |
1227 |
|
1228 |
*) |
1229 |
# FIXME: should be removed in autoconf 3.0. |
1230 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1231 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1232 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1233 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1234 |
;; |
1235 |
|
1236 |
esac |
1237 |
done |
1238 |
|
1239 |
if test -n "$ac_prev"; then |
1240 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1241 |
as_fn_error $? "missing argument to $ac_option" |
1242 |
fi |
1243 |
|
1244 |
if test -n "$ac_unrecognized_opts"; then |
1245 |
case $enable_option_checking in |
1246 |
no) ;; |
1247 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1248 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1249 |
esac |
1250 |
fi |
1251 |
|
1252 |
# Check all directory arguments for consistency. |
1253 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1254 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1255 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1256 |
libdir localedir mandir |
1257 |
do |
1258 |
eval ac_val=\$$ac_var |
1259 |
# Remove trailing slashes. |
1260 |
case $ac_val in |
1261 |
*/ ) |
1262 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1263 |
eval $ac_var=\$ac_val;; |
1264 |
esac |
1265 |
# Be sure to have absolute directory names. |
1266 |
case $ac_val in |
1267 |
[\\/$]* | ?:[\\/]* ) continue;; |
1268 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1269 |
esac |
1270 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1271 |
done |
1272 |
|
1273 |
# There might be people who depend on the old broken behavior: `$host' |
1274 |
# used to hold the argument of --host etc. |
1275 |
# FIXME: To remove some day. |
1276 |
build=$build_alias |
1277 |
host=$host_alias |
1278 |
target=$target_alias |
1279 |
|
1280 |
# FIXME: To remove some day. |
1281 |
if test "x$host_alias" != x; then |
1282 |
if test "x$build_alias" = x; then |
1283 |
cross_compiling=maybe |
1284 |
elif test "x$build_alias" != "x$host_alias"; then |
1285 |
cross_compiling=yes |
1286 |
fi |
1287 |
fi |
1288 |
|
1289 |
ac_tool_prefix= |
1290 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1291 |
|
1292 |
test "$silent" = yes && exec 6>/dev/null |
1293 |
|
1294 |
|
1295 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1296 |
ac_ls_di=`ls -di .` && |
1297 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1298 |
as_fn_error $? "working directory cannot be determined" |
1299 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1300 |
as_fn_error $? "pwd does not report name of working directory" |
1301 |
|
1302 |
|
1303 |
# Find the source files, if location was not specified. |
1304 |
if test -z "$srcdir"; then |
1305 |
ac_srcdir_defaulted=yes |
1306 |
# Try the directory containing this script, then the parent directory. |
1307 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1308 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1309 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1310 |
X"$as_myself" : 'X\(//\)$' \| \ |
1311 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1312 |
$as_echo X"$as_myself" | |
1313 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1314 |
s//\1/ |
1315 |
q |
1316 |
} |
1317 |
/^X\(\/\/\)[^/].*/{ |
1318 |
s//\1/ |
1319 |
q |
1320 |
} |
1321 |
/^X\(\/\/\)$/{ |
1322 |
s//\1/ |
1323 |
q |
1324 |
} |
1325 |
/^X\(\/\).*/{ |
1326 |
s//\1/ |
1327 |
q |
1328 |
} |
1329 |
s/.*/./; q'` |
1330 |
srcdir=$ac_confdir |
1331 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1332 |
srcdir=.. |
1333 |
fi |
1334 |
else |
1335 |
ac_srcdir_defaulted=no |
1336 |
fi |
1337 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1338 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1339 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1340 |
fi |
1341 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1342 |
ac_abs_confdir=`( |
1343 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1344 |
pwd)` |
1345 |
# When building in place, set srcdir=. |
1346 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1347 |
srcdir=. |
1348 |
fi |
1349 |
# Remove unnecessary trailing slashes from srcdir. |
1350 |
# Double slashes in file names in object file debugging info |
1351 |
# mess up M-x gdb in Emacs. |
1352 |
case $srcdir in |
1353 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1354 |
esac |
1355 |
for ac_var in $ac_precious_vars; do |
1356 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1357 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1358 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1359 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1360 |
done |
1361 |
|
1362 |
# |
1363 |
# Report the --help message. |
1364 |
# |
1365 |
if test "$ac_init_help" = "long"; then |
1366 |
# Omit some internal or obsolete options to make the list less imposing. |
1367 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1368 |
cat <<_ACEOF |
1369 |
\`configure' configures ircd-hybrid 8.0.0 to adapt to many kinds of systems. |
1370 |
|
1371 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1372 |
|
1373 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1374 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1375 |
|
1376 |
Defaults for the options are specified in brackets. |
1377 |
|
1378 |
Configuration: |
1379 |
-h, --help display this help and exit |
1380 |
--help=short display options specific to this package |
1381 |
--help=recursive display the short help of all the included packages |
1382 |
-V, --version display version information and exit |
1383 |
-q, --quiet, --silent do not print \`checking ...' messages |
1384 |
--cache-file=FILE cache test results in FILE [disabled] |
1385 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1386 |
-n, --no-create do not create output files |
1387 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1388 |
|
1389 |
Installation directories: |
1390 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1391 |
[$ac_default_prefix] |
1392 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1393 |
[PREFIX] |
1394 |
|
1395 |
By default, \`make install' will install all the files in |
1396 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1397 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1398 |
for instance \`--prefix=\$HOME'. |
1399 |
|
1400 |
For better control, use the options below. |
1401 |
|
1402 |
Fine tuning of the installation directories: |
1403 |
--bindir=DIR user executables [EPREFIX/bin] |
1404 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1405 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1406 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1407 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1408 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1409 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1410 |
--includedir=DIR C header files [PREFIX/include] |
1411 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1412 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1413 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1414 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1415 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1416 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1417 |
--docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] |
1418 |
--htmldir=DIR html documentation [DOCDIR] |
1419 |
--dvidir=DIR dvi documentation [DOCDIR] |
1420 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1421 |
--psdir=DIR ps documentation [DOCDIR] |
1422 |
_ACEOF |
1423 |
|
1424 |
cat <<\_ACEOF |
1425 |
|
1426 |
Program names: |
1427 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1428 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1429 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1430 |
|
1431 |
System types: |
1432 |
--build=BUILD configure for building on BUILD [guessed] |
1433 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1434 |
_ACEOF |
1435 |
fi |
1436 |
|
1437 |
if test -n "$ac_init_help"; then |
1438 |
case $ac_init_help in |
1439 |
short | recursive ) echo "Configuration of ircd-hybrid 8.0.0:";; |
1440 |
esac |
1441 |
cat <<\_ACEOF |
1442 |
|
1443 |
Optional Features: |
1444 |
--disable-option-checking ignore unrecognized --enable/--with options |
1445 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1446 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1447 |
--enable-maintainer-mode |
1448 |
enable make rules and dependencies not useful (and |
1449 |
sometimes confusing) to the casual installer |
1450 |
--enable-dependency-tracking |
1451 |
do not reject slow dependency extractors |
1452 |
--disable-dependency-tracking |
1453 |
speeds up one-time build |
1454 |
--enable-static[=PKGS] build static libraries [default=no] |
1455 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1456 |
--enable-fast-install[=PKGS] |
1457 |
optimize for fast installation [default=yes] |
1458 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1459 |
--enable-ltdl-install install libltdl |
1460 |
--disable-libpcre Disable PCRE support |
1461 |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
1462 |
--disable-openssl Disable OpenSSL support. |
1463 |
--enable-assert Enable assert() statements |
1464 |
--enable-kqueue Force kqueue usage. |
1465 |
--enable-epoll Force epoll usage. |
1466 |
--enable-devpoll Force devpoll usage. |
1467 |
--enable-rtsigio Force rtsigio usage. |
1468 |
--enable-poll Force poll usage. |
1469 |
--enable-select Force select usage. |
1470 |
--enable-halfops Enable halfops support. |
1471 |
--enable-debugging Enable debugging. |
1472 |
--enable-warnings Enable compiler warnings. |
1473 |
|
1474 |
Optional Packages: |
1475 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1476 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1477 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1478 |
both] |
1479 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1480 |
--with-sysroot=DIR Search for dependent libraries within DIR |
1481 |
(or the compiler's sysroot if not specified). |
1482 |
--with-included-ltdl use the GNU ltdl sources included here |
1483 |
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
1484 |
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
1485 |
--with-nicklen=<value> Set nickname length (default 9). |
1486 |
--with-topiclen=<value> Set topic length (default 160). |
1487 |
|
1488 |
Some influential environment variables: |
1489 |
CC C compiler command |
1490 |
CFLAGS C compiler flags |
1491 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1492 |
nonstandard directory <lib dir> |
1493 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1494 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1495 |
you have headers in a nonstandard directory <include dir> |
1496 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
1497 |
Defaults to the first program found out of: `bison -y', `byacc', |
1498 |
`yacc'. |
1499 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1500 |
This script will default YFLAGS to the empty string to avoid a |
1501 |
default value of `-d' given by some make applications. |
1502 |
CPP C preprocessor |
1503 |
|
1504 |
Use these variables to override the choices made by `configure' or to help |
1505 |
it to find libraries and programs with nonstandard names/locations. |
1506 |
|
1507 |
Report bugs to <bugs@ircd-hybrid.org>. |
1508 |
_ACEOF |
1509 |
ac_status=$? |
1510 |
fi |
1511 |
|
1512 |
if test "$ac_init_help" = "recursive"; then |
1513 |
# If there are subdirs, report their specific --help. |
1514 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1515 |
test -d "$ac_dir" || |
1516 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1517 |
continue |
1518 |
ac_builddir=. |
1519 |
|
1520 |
case "$ac_dir" in |
1521 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1522 |
*) |
1523 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1524 |
# A ".." for each directory in $ac_dir_suffix. |
1525 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1526 |
case $ac_top_builddir_sub in |
1527 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1528 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1529 |
esac ;; |
1530 |
esac |
1531 |
ac_abs_top_builddir=$ac_pwd |
1532 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1533 |
# for backward compatibility: |
1534 |
ac_top_builddir=$ac_top_build_prefix |
1535 |
|
1536 |
case $srcdir in |
1537 |
.) # We are building in place. |
1538 |
ac_srcdir=. |
1539 |
ac_top_srcdir=$ac_top_builddir_sub |
1540 |
ac_abs_top_srcdir=$ac_pwd ;; |
1541 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1542 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1543 |
ac_top_srcdir=$srcdir |
1544 |
ac_abs_top_srcdir=$srcdir ;; |
1545 |
*) # Relative name. |
1546 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1547 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1548 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1549 |
esac |
1550 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1551 |
|
1552 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1553 |
# Check for guested configure. |
1554 |
if test -f "$ac_srcdir/configure.gnu"; then |
1555 |
echo && |
1556 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1557 |
elif test -f "$ac_srcdir/configure"; then |
1558 |
echo && |
1559 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1560 |
else |
1561 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1562 |
fi || ac_status=$? |
1563 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1564 |
done |
1565 |
fi |
1566 |
|
1567 |
test -n "$ac_init_help" && exit $ac_status |
1568 |
if $ac_init_version; then |
1569 |
cat <<\_ACEOF |
1570 |
ircd-hybrid configure 8.0.0 |
1571 |
generated by GNU Autoconf 2.69 |
1572 |
|
1573 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1574 |
This configure script is free software; the Free Software Foundation |
1575 |
gives unlimited permission to copy, distribute and modify it. |
1576 |
_ACEOF |
1577 |
exit |
1578 |
fi |
1579 |
|
1580 |
## ------------------------ ## |
1581 |
## Autoconf initialization. ## |
1582 |
## ------------------------ ## |
1583 |
|
1584 |
# ac_fn_c_try_compile LINENO |
1585 |
# -------------------------- |
1586 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1587 |
ac_fn_c_try_compile () |
1588 |
{ |
1589 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1590 |
rm -f conftest.$ac_objext |
1591 |
if { { ac_try="$ac_compile" |
1592 |
case "(($ac_try" in |
1593 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1594 |
*) ac_try_echo=$ac_try;; |
1595 |
esac |
1596 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1597 |
$as_echo "$ac_try_echo"; } >&5 |
1598 |
(eval "$ac_compile") 2>conftest.err |
1599 |
ac_status=$? |
1600 |
if test -s conftest.err; then |
1601 |
grep -v '^ *+' conftest.err >conftest.er1 |
1602 |
cat conftest.er1 >&5 |
1603 |
mv -f conftest.er1 conftest.err |
1604 |
fi |
1605 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1606 |
test $ac_status = 0; } && { |
1607 |
test -z "$ac_c_werror_flag" || |
1608 |
test ! -s conftest.err |
1609 |
} && test -s conftest.$ac_objext; then : |
1610 |
ac_retval=0 |
1611 |
else |
1612 |
$as_echo "$as_me: failed program was:" >&5 |
1613 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1614 |
|
1615 |
ac_retval=1 |
1616 |
fi |
1617 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1618 |
as_fn_set_status $ac_retval |
1619 |
|
1620 |
} # ac_fn_c_try_compile |
1621 |
|
1622 |
# ac_fn_c_try_link LINENO |
1623 |
# ----------------------- |
1624 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1625 |
ac_fn_c_try_link () |
1626 |
{ |
1627 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1628 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1629 |
if { { ac_try="$ac_link" |
1630 |
case "(($ac_try" in |
1631 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1632 |
*) ac_try_echo=$ac_try;; |
1633 |
esac |
1634 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1635 |
$as_echo "$ac_try_echo"; } >&5 |
1636 |
(eval "$ac_link") 2>conftest.err |
1637 |
ac_status=$? |
1638 |
if test -s conftest.err; then |
1639 |
grep -v '^ *+' conftest.err >conftest.er1 |
1640 |
cat conftest.er1 >&5 |
1641 |
mv -f conftest.er1 conftest.err |
1642 |
fi |
1643 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1644 |
test $ac_status = 0; } && { |
1645 |
test -z "$ac_c_werror_flag" || |
1646 |
test ! -s conftest.err |
1647 |
} && test -s conftest$ac_exeext && { |
1648 |
test "$cross_compiling" = yes || |
1649 |
test -x conftest$ac_exeext |
1650 |
}; then : |
1651 |
ac_retval=0 |
1652 |
else |
1653 |
$as_echo "$as_me: failed program was:" >&5 |
1654 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1655 |
|
1656 |
ac_retval=1 |
1657 |
fi |
1658 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1659 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1660 |
# interfere with the next link command; also delete a directory that is |
1661 |
# left behind by Apple's compiler. We do this before executing the actions. |
1662 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1663 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1664 |
as_fn_set_status $ac_retval |
1665 |
|
1666 |
} # ac_fn_c_try_link |
1667 |
|
1668 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1669 |
# ------------------------------------------------------- |
1670 |
# Tests whether HEADER exists and can be compiled using the include files in |
1671 |
# INCLUDES, setting the cache variable VAR accordingly. |
1672 |
ac_fn_c_check_header_compile () |
1673 |
{ |
1674 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1676 |
$as_echo_n "checking for $2... " >&6; } |
1677 |
if eval \${$3+:} false; then : |
1678 |
$as_echo_n "(cached) " >&6 |
1679 |
else |
1680 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1681 |
/* end confdefs.h. */ |
1682 |
$4 |
1683 |
#include <$2> |
1684 |
_ACEOF |
1685 |
if ac_fn_c_try_compile "$LINENO"; then : |
1686 |
eval "$3=yes" |
1687 |
else |
1688 |
eval "$3=no" |
1689 |
fi |
1690 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1691 |
fi |
1692 |
eval ac_res=\$$3 |
1693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1694 |
$as_echo "$ac_res" >&6; } |
1695 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1696 |
|
1697 |
} # ac_fn_c_check_header_compile |
1698 |
|
1699 |
# ac_fn_c_try_cpp LINENO |
1700 |
# ---------------------- |
1701 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1702 |
ac_fn_c_try_cpp () |
1703 |
{ |
1704 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1705 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1706 |
case "(($ac_try" in |
1707 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1708 |
*) ac_try_echo=$ac_try;; |
1709 |
esac |
1710 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1711 |
$as_echo "$ac_try_echo"; } >&5 |
1712 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1713 |
ac_status=$? |
1714 |
if test -s conftest.err; then |
1715 |
grep -v '^ *+' conftest.err >conftest.er1 |
1716 |
cat conftest.er1 >&5 |
1717 |
mv -f conftest.er1 conftest.err |
1718 |
fi |
1719 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1720 |
test $ac_status = 0; } > conftest.i && { |
1721 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1722 |
test ! -s conftest.err |
1723 |
}; then : |
1724 |
ac_retval=0 |
1725 |
else |
1726 |
$as_echo "$as_me: failed program was:" >&5 |
1727 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1728 |
|
1729 |
ac_retval=1 |
1730 |
fi |
1731 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1732 |
as_fn_set_status $ac_retval |
1733 |
|
1734 |
} # ac_fn_c_try_cpp |
1735 |
|
1736 |
# ac_fn_c_try_run LINENO |
1737 |
# ---------------------- |
1738 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1739 |
# that executables *can* be run. |
1740 |
ac_fn_c_try_run () |
1741 |
{ |
1742 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1743 |
if { { ac_try="$ac_link" |
1744 |
case "(($ac_try" in |
1745 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1746 |
*) ac_try_echo=$ac_try;; |
1747 |
esac |
1748 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1749 |
$as_echo "$ac_try_echo"; } >&5 |
1750 |
(eval "$ac_link") 2>&5 |
1751 |
ac_status=$? |
1752 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1753 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1754 |
{ { case "(($ac_try" in |
1755 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1756 |
*) ac_try_echo=$ac_try;; |
1757 |
esac |
1758 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1759 |
$as_echo "$ac_try_echo"; } >&5 |
1760 |
(eval "$ac_try") 2>&5 |
1761 |
ac_status=$? |
1762 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1763 |
test $ac_status = 0; }; }; then : |
1764 |
ac_retval=0 |
1765 |
else |
1766 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1767 |
$as_echo "$as_me: failed program was:" >&5 |
1768 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1769 |
|
1770 |
ac_retval=$ac_status |
1771 |
fi |
1772 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1773 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1774 |
as_fn_set_status $ac_retval |
1775 |
|
1776 |
} # ac_fn_c_try_run |
1777 |
|
1778 |
# ac_fn_c_check_func LINENO FUNC VAR |
1779 |
# ---------------------------------- |
1780 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1781 |
ac_fn_c_check_func () |
1782 |
{ |
1783 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1785 |
$as_echo_n "checking for $2... " >&6; } |
1786 |
if eval \${$3+:} false; then : |
1787 |
$as_echo_n "(cached) " >&6 |
1788 |
else |
1789 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1790 |
/* end confdefs.h. */ |
1791 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1792 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1793 |
#define $2 innocuous_$2 |
1794 |
|
1795 |
/* System header to define __stub macros and hopefully few prototypes, |
1796 |
which can conflict with char $2 (); below. |
1797 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1798 |
<limits.h> exists even on freestanding compilers. */ |
1799 |
|
1800 |
#ifdef __STDC__ |
1801 |
# include <limits.h> |
1802 |
#else |
1803 |
# include <assert.h> |
1804 |
#endif |
1805 |
|
1806 |
#undef $2 |
1807 |
|
1808 |
/* Override any GCC internal prototype to avoid an error. |
1809 |
Use char because int might match the return type of a GCC |
1810 |
builtin and then its argument prototype would still apply. */ |
1811 |
#ifdef __cplusplus |
1812 |
extern "C" |
1813 |
#endif |
1814 |
char $2 (); |
1815 |
/* The GNU C library defines this for functions which it implements |
1816 |
to always fail with ENOSYS. Some functions are actually named |
1817 |
something starting with __ and the normal name is an alias. */ |
1818 |
#if defined __stub_$2 || defined __stub___$2 |
1819 |
choke me |
1820 |
#endif |
1821 |
|
1822 |
int |
1823 |
main () |
1824 |
{ |
1825 |
return $2 (); |
1826 |
; |
1827 |
return 0; |
1828 |
} |
1829 |
_ACEOF |
1830 |
if ac_fn_c_try_link "$LINENO"; then : |
1831 |
eval "$3=yes" |
1832 |
else |
1833 |
eval "$3=no" |
1834 |
fi |
1835 |
rm -f core conftest.err conftest.$ac_objext \ |
1836 |
conftest$ac_exeext conftest.$ac_ext |
1837 |
fi |
1838 |
eval ac_res=\$$3 |
1839 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1840 |
$as_echo "$ac_res" >&6; } |
1841 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1842 |
|
1843 |
} # ac_fn_c_check_func |
1844 |
|
1845 |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1846 |
# --------------------------------------------- |
1847 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1848 |
# accordingly. |
1849 |
ac_fn_c_check_decl () |
1850 |
{ |
1851 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1852 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
1853 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
1855 |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
1856 |
if eval \${$3+:} false; then : |
1857 |
$as_echo_n "(cached) " >&6 |
1858 |
else |
1859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1860 |
/* end confdefs.h. */ |
1861 |
$4 |
1862 |
int |
1863 |
main () |
1864 |
{ |
1865 |
#ifndef $as_decl_name |
1866 |
#ifdef __cplusplus |
1867 |
(void) $as_decl_use; |
1868 |
#else |
1869 |
(void) $as_decl_name; |
1870 |
#endif |
1871 |
#endif |
1872 |
|
1873 |
; |
1874 |
return 0; |
1875 |
} |
1876 |
_ACEOF |
1877 |
if ac_fn_c_try_compile "$LINENO"; then : |
1878 |
eval "$3=yes" |
1879 |
else |
1880 |
eval "$3=no" |
1881 |
fi |
1882 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1883 |
fi |
1884 |
eval ac_res=\$$3 |
1885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1886 |
$as_echo "$ac_res" >&6; } |
1887 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1888 |
|
1889 |
} # ac_fn_c_check_decl |
1890 |
|
1891 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1892 |
# ------------------------------------------- |
1893 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
1894 |
# variable VAR accordingly. |
1895 |
ac_fn_c_check_type () |
1896 |
{ |
1897 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1898 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1899 |
$as_echo_n "checking for $2... " >&6; } |
1900 |
if eval \${$3+:} false; then : |
1901 |
$as_echo_n "(cached) " >&6 |
1902 |
else |
1903 |
eval "$3=no" |
1904 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1905 |
/* end confdefs.h. */ |
1906 |
$4 |
1907 |
int |
1908 |
main () |
1909 |
{ |
1910 |
if (sizeof ($2)) |
1911 |
return 0; |
1912 |
; |
1913 |
return 0; |
1914 |
} |
1915 |
_ACEOF |
1916 |
if ac_fn_c_try_compile "$LINENO"; then : |
1917 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1918 |
/* end confdefs.h. */ |
1919 |
$4 |
1920 |
int |
1921 |
main () |
1922 |
{ |
1923 |
if (sizeof (($2))) |
1924 |
return 0; |
1925 |
; |
1926 |
return 0; |
1927 |
} |
1928 |
_ACEOF |
1929 |
if ac_fn_c_try_compile "$LINENO"; then : |
1930 |
|
1931 |
else |
1932 |
eval "$3=yes" |
1933 |
fi |
1934 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1935 |
fi |
1936 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1937 |
fi |
1938 |
eval ac_res=\$$3 |
1939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1940 |
$as_echo "$ac_res" >&6; } |
1941 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1942 |
|
1943 |
} # ac_fn_c_check_type |
1944 |
|
1945 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1946 |
# ---------------------------------------------------- |
1947 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
1948 |
# INCLUDES, setting cache variable VAR accordingly. |
1949 |
ac_fn_c_check_member () |
1950 |
{ |
1951 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
1953 |
$as_echo_n "checking for $2.$3... " >&6; } |
1954 |
if eval \${$4+:} false; then : |
1955 |
$as_echo_n "(cached) " >&6 |
1956 |
else |
1957 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1958 |
/* end confdefs.h. */ |
1959 |
$5 |
1960 |
int |
1961 |
main () |
1962 |
{ |
1963 |
static $2 ac_aggr; |
1964 |
if (ac_aggr.$3) |
1965 |
return 0; |
1966 |
; |
1967 |
return 0; |
1968 |
} |
1969 |
_ACEOF |
1970 |
if ac_fn_c_try_compile "$LINENO"; then : |
1971 |
eval "$4=yes" |
1972 |
else |
1973 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1974 |
/* end confdefs.h. */ |
1975 |
$5 |
1976 |
int |
1977 |
main () |
1978 |
{ |
1979 |
static $2 ac_aggr; |
1980 |
if (sizeof ac_aggr.$3) |
1981 |
return 0; |
1982 |
; |
1983 |
return 0; |
1984 |
} |
1985 |
_ACEOF |
1986 |
if ac_fn_c_try_compile "$LINENO"; then : |
1987 |
eval "$4=yes" |
1988 |
else |
1989 |
eval "$4=no" |
1990 |
fi |
1991 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1992 |
fi |
1993 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1994 |
fi |
1995 |
eval ac_res=\$$4 |
1996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1997 |
$as_echo "$ac_res" >&6; } |
1998 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1999 |
|
2000 |
} # ac_fn_c_check_member |
2001 |
|
2002 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
2003 |
# ------------------------------------------------------- |
2004 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
2005 |
# the include files in INCLUDES and setting the cache variable VAR |
2006 |
# accordingly. |
2007 |
ac_fn_c_check_header_mongrel () |
2008 |
{ |
2009 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2010 |
if eval \${$3+:} false; then : |
2011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2012 |
$as_echo_n "checking for $2... " >&6; } |
2013 |
if eval \${$3+:} false; then : |
2014 |
$as_echo_n "(cached) " >&6 |
2015 |
fi |
2016 |
eval ac_res=\$$3 |
2017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2018 |
$as_echo "$ac_res" >&6; } |
2019 |
else |
2020 |
# Is the header compilable? |
2021 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
2022 |
$as_echo_n "checking $2 usability... " >&6; } |
2023 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2024 |
/* end confdefs.h. */ |
2025 |
$4 |
2026 |
#include <$2> |
2027 |
_ACEOF |
2028 |
if ac_fn_c_try_compile "$LINENO"; then : |
2029 |
ac_header_compiler=yes |
2030 |
else |
2031 |
ac_header_compiler=no |
2032 |
fi |
2033 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2034 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
2035 |
$as_echo "$ac_header_compiler" >&6; } |
2036 |
|
2037 |
# Is the header present? |
2038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
2039 |
$as_echo_n "checking $2 presence... " >&6; } |
2040 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2041 |
/* end confdefs.h. */ |
2042 |
#include <$2> |
2043 |
_ACEOF |
2044 |
if ac_fn_c_try_cpp "$LINENO"; then : |
2045 |
ac_header_preproc=yes |
2046 |
else |
2047 |
ac_header_preproc=no |
2048 |
fi |
2049 |
rm -f conftest.err conftest.i conftest.$ac_ext |
2050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2051 |
$as_echo "$ac_header_preproc" >&6; } |
2052 |
|
2053 |
# So? What about this header? |
2054 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
2055 |
yes:no: ) |
2056 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
2057 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
2058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2059 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2060 |
;; |
2061 |
no:yes:* ) |
2062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
2063 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
2064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
2065 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
2066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
2067 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
2068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
2069 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
2070 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2071 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2072 |
( $as_echo "## ----------------------------------- ## |
2073 |
## Report this to bugs@ircd-hybrid.org ## |
2074 |
## ----------------------------------- ##" |
2075 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
2076 |
;; |
2077 |
esac |
2078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2079 |
$as_echo_n "checking for $2... " >&6; } |
2080 |
if eval \${$3+:} false; then : |
2081 |
$as_echo_n "(cached) " >&6 |
2082 |
else |
2083 |
eval "$3=\$ac_header_compiler" |
2084 |
fi |
2085 |
eval ac_res=\$$3 |
2086 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2087 |
$as_echo "$ac_res" >&6; } |
2088 |
fi |
2089 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2090 |
|
2091 |
} # ac_fn_c_check_header_mongrel |
2092 |
cat >config.log <<_ACEOF |
2093 |
This file contains any messages produced by compilers while |
2094 |
running configure, to aid debugging if configure makes a mistake. |
2095 |
|
2096 |
It was created by ircd-hybrid $as_me 8.0.0, which was |
2097 |
generated by GNU Autoconf 2.69. Invocation command line was |
2098 |
|
2099 |
$ $0 $@ |
2100 |
|
2101 |
_ACEOF |
2102 |
exec 5>>config.log |
2103 |
{ |
2104 |
cat <<_ASUNAME |
2105 |
## --------- ## |
2106 |
## Platform. ## |
2107 |
## --------- ## |
2108 |
|
2109 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2110 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2111 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2112 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2113 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2114 |
|
2115 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2116 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2117 |
|
2118 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2119 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2120 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2121 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2122 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2123 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2124 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2125 |
|
2126 |
_ASUNAME |
2127 |
|
2128 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2129 |
for as_dir in $PATH |
2130 |
do |
2131 |
IFS=$as_save_IFS |
2132 |
test -z "$as_dir" && as_dir=. |
2133 |
$as_echo "PATH: $as_dir" |
2134 |
done |
2135 |
IFS=$as_save_IFS |
2136 |
|
2137 |
} >&5 |
2138 |
|
2139 |
cat >&5 <<_ACEOF |
2140 |
|
2141 |
|
2142 |
## ----------- ## |
2143 |
## Core tests. ## |
2144 |
## ----------- ## |
2145 |
|
2146 |
_ACEOF |
2147 |
|
2148 |
|
2149 |
# Keep a trace of the command line. |
2150 |
# Strip out --no-create and --no-recursion so they do not pile up. |
2151 |
# Strip out --silent because we don't want to record it for future runs. |
2152 |
# Also quote any args containing shell meta-characters. |
2153 |
# Make two passes to allow for proper duplicate-argument suppression. |
2154 |
ac_configure_args= |
2155 |
ac_configure_args0= |
2156 |
ac_configure_args1= |
2157 |
ac_must_keep_next=false |
2158 |
for ac_pass in 1 2 |
2159 |
do |
2160 |
for ac_arg |
2161 |
do |
2162 |
case $ac_arg in |
2163 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2164 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2165 |
| -silent | --silent | --silen | --sile | --sil) |
2166 |
continue ;; |
2167 |
*\'*) |
2168 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2169 |
esac |
2170 |
case $ac_pass in |
2171 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2172 |
2) |
2173 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
2174 |
if test $ac_must_keep_next = true; then |
2175 |
ac_must_keep_next=false # Got value, back to normal. |
2176 |
else |
2177 |
case $ac_arg in |
2178 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
2179 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2180 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2181 |
| -with-* | --with-* | -without-* | --without-* | --x) |
2182 |
case "$ac_configure_args0 " in |
2183 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2184 |
esac |
2185 |
;; |
2186 |
-* ) ac_must_keep_next=true ;; |
2187 |
esac |
2188 |
fi |
2189 |
as_fn_append ac_configure_args " '$ac_arg'" |
2190 |
;; |
2191 |
esac |
2192 |
done |
2193 |
done |
2194 |
{ ac_configure_args0=; unset ac_configure_args0;} |
2195 |
{ ac_configure_args1=; unset ac_configure_args1;} |
2196 |
|
2197 |
# When interrupted or exit'd, cleanup temporary files, and complete |
2198 |
# config.log. We remove comments because anyway the quotes in there |
2199 |
# would cause problems or look ugly. |
2200 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
2201 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2202 |
trap 'exit_status=$? |
2203 |
# Save into config.log some information that might help in debugging. |
2204 |
{ |
2205 |
echo |
2206 |
|
2207 |
$as_echo "## ---------------- ## |
2208 |
## Cache variables. ## |
2209 |
## ---------------- ##" |
2210 |
echo |
2211 |
# The following way of writing the cache mishandles newlines in values, |
2212 |
( |
2213 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2214 |
eval ac_val=\$$ac_var |
2215 |
case $ac_val in #( |
2216 |
*${as_nl}*) |
2217 |
case $ac_var in #( |
2218 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2219 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2220 |
esac |
2221 |
case $ac_var in #( |
2222 |
_ | IFS | as_nl) ;; #( |
2223 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2224 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2225 |
esac ;; |
2226 |
esac |
2227 |
done |
2228 |
(set) 2>&1 | |
2229 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2230 |
*${as_nl}ac_space=\ *) |
2231 |
sed -n \ |
2232 |
"s/'\''/'\''\\\\'\'''\''/g; |
2233 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2234 |
;; #( |
2235 |
*) |
2236 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2237 |
;; |
2238 |
esac | |
2239 |
sort |
2240 |
) |
2241 |
echo |
2242 |
|
2243 |
$as_echo "## ----------------- ## |
2244 |
## Output variables. ## |
2245 |
## ----------------- ##" |
2246 |
echo |
2247 |
for ac_var in $ac_subst_vars |
2248 |
do |
2249 |
eval ac_val=\$$ac_var |
2250 |
case $ac_val in |
2251 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2252 |
esac |
2253 |
$as_echo "$ac_var='\''$ac_val'\''" |
2254 |
done | sort |
2255 |
echo |
2256 |
|
2257 |
if test -n "$ac_subst_files"; then |
2258 |
$as_echo "## ------------------- ## |
2259 |
## File substitutions. ## |
2260 |
## ------------------- ##" |
2261 |
echo |
2262 |
for ac_var in $ac_subst_files |
2263 |
do |
2264 |
eval ac_val=\$$ac_var |
2265 |
case $ac_val in |
2266 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2267 |
esac |
2268 |
$as_echo "$ac_var='\''$ac_val'\''" |
2269 |
done | sort |
2270 |
echo |
2271 |
fi |
2272 |
|
2273 |
if test -s confdefs.h; then |
2274 |
$as_echo "## ----------- ## |
2275 |
## confdefs.h. ## |
2276 |
## ----------- ##" |
2277 |
echo |
2278 |
cat confdefs.h |
2279 |
echo |
2280 |
fi |
2281 |
test "$ac_signal" != 0 && |
2282 |
$as_echo "$as_me: caught signal $ac_signal" |
2283 |
$as_echo "$as_me: exit $exit_status" |
2284 |
} >&5 |
2285 |
rm -f core *.core core.conftest.* && |
2286 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2287 |
exit $exit_status |
2288 |
' 0 |
2289 |
for ac_signal in 1 2 13 15; do |
2290 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2291 |
done |
2292 |
ac_signal=0 |
2293 |
|
2294 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2295 |
rm -f -r conftest* confdefs.h |
2296 |
|
2297 |
$as_echo "/* confdefs.h */" > confdefs.h |
2298 |
|
2299 |
# Predefined preprocessor variables. |
2300 |
|
2301 |
cat >>confdefs.h <<_ACEOF |
2302 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
2303 |
_ACEOF |
2304 |
|
2305 |
cat >>confdefs.h <<_ACEOF |
2306 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2307 |
_ACEOF |
2308 |
|
2309 |
cat >>confdefs.h <<_ACEOF |
2310 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2311 |
_ACEOF |
2312 |
|
2313 |
cat >>confdefs.h <<_ACEOF |
2314 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2315 |
_ACEOF |
2316 |
|
2317 |
cat >>confdefs.h <<_ACEOF |
2318 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2319 |
_ACEOF |
2320 |
|
2321 |
cat >>confdefs.h <<_ACEOF |
2322 |
#define PACKAGE_URL "$PACKAGE_URL" |
2323 |
_ACEOF |
2324 |
|
2325 |
|
2326 |
# Let the site file select an alternate cache file if it wants to. |
2327 |
# Prefer an explicitly selected file to automatically selected ones. |
2328 |
ac_site_file1=NONE |
2329 |
ac_site_file2=NONE |
2330 |
if test -n "$CONFIG_SITE"; then |
2331 |
# We do not want a PATH search for config.site. |
2332 |
case $CONFIG_SITE in #(( |
2333 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2334 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2335 |
*) ac_site_file1=./$CONFIG_SITE;; |
2336 |
esac |
2337 |
elif test "x$prefix" != xNONE; then |
2338 |
ac_site_file1=$prefix/share/config.site |
2339 |
ac_site_file2=$prefix/etc/config.site |
2340 |
else |
2341 |
ac_site_file1=$ac_default_prefix/share/config.site |
2342 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2343 |
fi |
2344 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2345 |
do |
2346 |
test "x$ac_site_file" = xNONE && continue |
2347 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2349 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2350 |
sed 's/^/| /' "$ac_site_file" >&5 |
2351 |
. "$ac_site_file" \ |
2352 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2353 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2354 |
as_fn_error $? "failed to load site script $ac_site_file |
2355 |
See \`config.log' for more details" "$LINENO" 5; } |
2356 |
fi |
2357 |
done |
2358 |
|
2359 |
if test -r "$cache_file"; then |
2360 |
# Some versions of bash will fail to source /dev/null (special files |
2361 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2362 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2364 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2365 |
case $cache_file in |
2366 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2367 |
*) . "./$cache_file";; |
2368 |
esac |
2369 |
fi |
2370 |
else |
2371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2372 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2373 |
>$cache_file |
2374 |
fi |
2375 |
|
2376 |
as_fn_append ac_func_list " mmap" |
2377 |
as_fn_append ac_func_list " strtok_r" |
2378 |
as_fn_append ac_func_list " usleep" |
2379 |
as_fn_append ac_func_list " strlcat" |
2380 |
as_fn_append ac_func_list " strlcpy" |
2381 |
as_fn_append ac_header_list " crypt.h" |
2382 |
as_fn_append ac_header_list " sys/resource.h" |
2383 |
as_fn_append ac_header_list " sys/param.h" |
2384 |
as_fn_append ac_header_list " types.h" |
2385 |
as_fn_append ac_header_list " socket.h" |
2386 |
as_fn_append ac_header_list " sys/wait.h" |
2387 |
as_fn_append ac_header_list " wait.h" |
2388 |
# Check that the precious variables saved in the cache have kept the same |
2389 |
# value. |
2390 |
ac_cache_corrupted=false |
2391 |
for ac_var in $ac_precious_vars; do |
2392 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2393 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2394 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2395 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2396 |
case $ac_old_set,$ac_new_set in |
2397 |
set,) |
2398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2399 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2400 |
ac_cache_corrupted=: ;; |
2401 |
,set) |
2402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2403 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2404 |
ac_cache_corrupted=: ;; |
2405 |
,);; |
2406 |
*) |
2407 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2408 |
# differences in whitespace do not lead to failure. |
2409 |
ac_old_val_w=`echo x $ac_old_val` |
2410 |
ac_new_val_w=`echo x $ac_new_val` |
2411 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2413 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2414 |
ac_cache_corrupted=: |
2415 |
else |
2416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2417 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2418 |
eval $ac_var=\$ac_old_val |
2419 |
fi |
2420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2421 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2423 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2424 |
fi;; |
2425 |
esac |
2426 |
# Pass precious variables to config.status. |
2427 |
if test "$ac_new_set" = set; then |
2428 |
case $ac_new_val in |
2429 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2430 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2431 |
esac |
2432 |
case " $ac_configure_args " in |
2433 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2434 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2435 |
esac |
2436 |
fi |
2437 |
done |
2438 |
if $ac_cache_corrupted; then |
2439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2440 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2441 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2442 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2443 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2444 |
fi |
2445 |
## -------------------- ## |
2446 |
## Main body of script. ## |
2447 |
## -------------------- ## |
2448 |
|
2449 |
ac_ext=c |
2450 |
ac_cpp='$CPP $CPPFLAGS' |
2451 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2452 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2453 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2454 |
|
2455 |
|
2456 |
am__api_version='1.12' |
2457 |
|
2458 |
ac_aux_dir= |
2459 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2460 |
if test -f "$ac_dir/install-sh"; then |
2461 |
ac_aux_dir=$ac_dir |
2462 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2463 |
break |
2464 |
elif test -f "$ac_dir/install.sh"; then |
2465 |
ac_aux_dir=$ac_dir |
2466 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2467 |
break |
2468 |
elif test -f "$ac_dir/shtool"; then |
2469 |
ac_aux_dir=$ac_dir |
2470 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2471 |
break |
2472 |
fi |
2473 |
done |
2474 |
if test -z "$ac_aux_dir"; then |
2475 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2476 |
fi |
2477 |
|
2478 |
# These three variables are undocumented and unsupported, |
2479 |
# and are intended to be withdrawn in a future Autoconf release. |
2480 |
# They can cause serious problems if a builder's source tree is in a directory |
2481 |
# whose full name contains unusual characters. |
2482 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2483 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2484 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2485 |
|
2486 |
|
2487 |
# Find a good install program. We prefer a C program (faster), |
2488 |
# so one script is as good as another. But avoid the broken or |
2489 |
# incompatible versions: |
2490 |
# SysV /etc/install, /usr/sbin/install |
2491 |
# SunOS /usr/etc/install |
2492 |
# IRIX /sbin/install |
2493 |
# AIX /bin/install |
2494 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2495 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2496 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2497 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2498 |
# OS/2's system install, which has a completely different semantic |
2499 |
# ./install, which can be erroneously created by make from ./install.sh. |
2500 |
# Reject install programs that cannot install multiple files. |
2501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2502 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2503 |
if test -z "$INSTALL"; then |
2504 |
if ${ac_cv_path_install+:} false; then : |
2505 |
$as_echo_n "(cached) " >&6 |
2506 |
else |
2507 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2508 |
for as_dir in $PATH |
2509 |
do |
2510 |
IFS=$as_save_IFS |
2511 |
test -z "$as_dir" && as_dir=. |
2512 |
# Account for people who put trailing slashes in PATH elements. |
2513 |
case $as_dir/ in #(( |
2514 |
./ | .// | /[cC]/* | \ |
2515 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2516 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2517 |
/usr/ucb/* ) ;; |
2518 |
*) |
2519 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2520 |
# Don't use installbsd from OSF since it installs stuff as root |
2521 |
# by default. |
2522 |
for ac_prog in ginstall scoinst install; do |
2523 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2524 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2525 |
if test $ac_prog = install && |
2526 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2527 |
# AIX install. It has an incompatible calling convention. |
2528 |
: |
2529 |
elif test $ac_prog = install && |
2530 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2531 |
# program-specific install script used by HP pwplus--don't use. |
2532 |
: |
2533 |
else |
2534 |
rm -rf conftest.one conftest.two conftest.dir |
2535 |
echo one > conftest.one |
2536 |
echo two > conftest.two |
2537 |
mkdir conftest.dir |
2538 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2539 |
test -s conftest.one && test -s conftest.two && |
2540 |
test -s conftest.dir/conftest.one && |
2541 |
test -s conftest.dir/conftest.two |
2542 |
then |
2543 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2544 |
break 3 |
2545 |
fi |
2546 |
fi |
2547 |
fi |
2548 |
done |
2549 |
done |
2550 |
;; |
2551 |
esac |
2552 |
|
2553 |
done |
2554 |
IFS=$as_save_IFS |
2555 |
|
2556 |
rm -rf conftest.one conftest.two conftest.dir |
2557 |
|
2558 |
fi |
2559 |
if test "${ac_cv_path_install+set}" = set; then |
2560 |
INSTALL=$ac_cv_path_install |
2561 |
else |
2562 |
# As a last resort, use the slow shell script. Don't cache a |
2563 |
# value for INSTALL within a source directory, because that will |
2564 |
# break other packages using the cache if that directory is |
2565 |
# removed, or if the value is a relative name. |
2566 |
INSTALL=$ac_install_sh |
2567 |
fi |
2568 |
fi |
2569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2570 |
$as_echo "$INSTALL" >&6; } |
2571 |
|
2572 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2573 |
# It thinks the first close brace ends the variable substitution. |
2574 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2575 |
|
2576 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2577 |
|
2578 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2579 |
|
2580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2581 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2582 |
# Reject unsafe characters in $srcdir or the absolute working directory |
2583 |
# name. Accept space and tab only in the latter. |
2584 |
am_lf=' |
2585 |
' |
2586 |
case `pwd` in |
2587 |
*[\\\"\#\$\&\'\`$am_lf]*) |
2588 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
2589 |
esac |
2590 |
case $srcdir in |
2591 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2592 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
2593 |
esac |
2594 |
|
2595 |
# Do 'set' in a subshell so we don't clobber the current shell's |
2596 |
# arguments. Must try -L first in case configure is actually a |
2597 |
# symlink; some systems play weird games with the mod time of symlinks |
2598 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2599 |
# directory). |
2600 |
if ( |
2601 |
am_has_slept=no |
2602 |
for am_try in 1 2; do |
2603 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
2604 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2605 |
if test "$*" = "X"; then |
2606 |
# -L didn't work. |
2607 |
set X `ls -t "$srcdir/configure" conftest.file` |
2608 |
fi |
2609 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2610 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2611 |
|
2612 |
# If neither matched, then we have a broken ls. This can happen |
2613 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2614 |
# broken ls alias from the environment. This has actually |
2615 |
# happened. Such a system could not be considered "sane". |
2616 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2617 |
alias in your environment" "$LINENO" 5 |
2618 |
fi |
2619 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
2620 |
break |
2621 |
fi |
2622 |
# Just in case. |
2623 |
sleep 1 |
2624 |
am_has_slept=yes |
2625 |
done |
2626 |
test "$2" = conftest.file |
2627 |
) |
2628 |
then |
2629 |
# Ok. |
2630 |
: |
2631 |
else |
2632 |
as_fn_error $? "newly created file is older than distributed files! |
2633 |
Check your system clock" "$LINENO" 5 |
2634 |
fi |
2635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2636 |
$as_echo "yes" >&6; } |
2637 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
2638 |
# generated files are strictly newer. |
2639 |
am_sleep_pid= |
2640 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2641 |
( sleep 1 ) & |
2642 |
am_sleep_pid=$! |
2643 |
fi |
2644 |
|
2645 |
rm -f conftest.file |
2646 |
|
2647 |
test "$program_prefix" != NONE && |
2648 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2649 |
# Use a double $ so make ignores it. |
2650 |
test "$program_suffix" != NONE && |
2651 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2652 |
# Double any \ or $. |
2653 |
# By default was `s,x,x', remove it if useless. |
2654 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2655 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2656 |
|
2657 |
# expand $ac_aux_dir to an absolute path |
2658 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2659 |
|
2660 |
if test x"${MISSING+set}" != xset; then |
2661 |
case $am_aux_dir in |
2662 |
*\ * | *\ *) |
2663 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2664 |
*) |
2665 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2666 |
esac |
2667 |
fi |
2668 |
# Use eval to expand $SHELL |
2669 |
if eval "$MISSING --run true"; then |
2670 |
am_missing_run="$MISSING --run " |
2671 |
else |
2672 |
am_missing_run= |
2673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2674 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2675 |
fi |
2676 |
|
2677 |
if test x"${install_sh}" != xset; then |
2678 |
case $am_aux_dir in |
2679 |
*\ * | *\ *) |
2680 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2681 |
*) |
2682 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
2683 |
esac |
2684 |
fi |
2685 |
|
2686 |
# Installed binaries are usually stripped using 'strip' when the user |
2687 |
# run "make install-strip". However 'strip' might not be the right |
2688 |
# tool to use in cross-compilation environments, therefore Automake |
2689 |
# will honor the 'STRIP' environment variable to overrule this program. |
2690 |
if test "$cross_compiling" != no; then |
2691 |
if test -n "$ac_tool_prefix"; then |
2692 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2693 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2695 |
$as_echo_n "checking for $ac_word... " >&6; } |
2696 |
if ${ac_cv_prog_STRIP+:} false; then : |
2697 |
$as_echo_n "(cached) " >&6 |
2698 |
else |
2699 |
if test -n "$STRIP"; then |
2700 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2701 |
else |
2702 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2703 |
for as_dir in $PATH |
2704 |
do |
2705 |
IFS=$as_save_IFS |
2706 |
test -z "$as_dir" && as_dir=. |
2707 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2708 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2709 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2710 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2711 |
break 2 |
2712 |
fi |
2713 |
done |
2714 |
done |
2715 |
IFS=$as_save_IFS |
2716 |
|
2717 |
fi |
2718 |
fi |
2719 |
STRIP=$ac_cv_prog_STRIP |
2720 |
if test -n "$STRIP"; then |
2721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2722 |
$as_echo "$STRIP" >&6; } |
2723 |
else |
2724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2725 |
$as_echo "no" >&6; } |
2726 |
fi |
2727 |
|
2728 |
|
2729 |
fi |
2730 |
if test -z "$ac_cv_prog_STRIP"; then |
2731 |
ac_ct_STRIP=$STRIP |
2732 |
# Extract the first word of "strip", so it can be a program name with args. |
2733 |
set dummy strip; ac_word=$2 |
2734 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2735 |
$as_echo_n "checking for $ac_word... " >&6; } |
2736 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
2737 |
$as_echo_n "(cached) " >&6 |
2738 |
else |
2739 |
if test -n "$ac_ct_STRIP"; then |
2740 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2741 |
else |
2742 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2743 |
for as_dir in $PATH |
2744 |
do |
2745 |
IFS=$as_save_IFS |
2746 |
test -z "$as_dir" && as_dir=. |
2747 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2748 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2749 |
ac_cv_prog_ac_ct_STRIP="strip" |
2750 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2751 |
break 2 |
2752 |
fi |
2753 |
done |
2754 |
done |
2755 |
IFS=$as_save_IFS |
2756 |
|
2757 |
fi |
2758 |
fi |
2759 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2760 |
if test -n "$ac_ct_STRIP"; then |
2761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2762 |
$as_echo "$ac_ct_STRIP" >&6; } |
2763 |
else |
2764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2765 |
$as_echo "no" >&6; } |
2766 |
fi |
2767 |
|
2768 |
if test "x$ac_ct_STRIP" = x; then |
2769 |
STRIP=":" |
2770 |
else |
2771 |
case $cross_compiling:$ac_tool_warned in |
2772 |
yes:) |
2773 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2774 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2775 |
ac_tool_warned=yes ;; |
2776 |
esac |
2777 |
STRIP=$ac_ct_STRIP |
2778 |
fi |
2779 |
else |
2780 |
STRIP="$ac_cv_prog_STRIP" |
2781 |
fi |
2782 |
|
2783 |
fi |
2784 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2785 |
|
2786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2787 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2788 |
if test -z "$MKDIR_P"; then |
2789 |
if ${ac_cv_path_mkdir+:} false; then : |
2790 |
$as_echo_n "(cached) " >&6 |
2791 |
else |
2792 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2793 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2794 |
do |
2795 |
IFS=$as_save_IFS |
2796 |
test -z "$as_dir" && as_dir=. |
2797 |
for ac_prog in mkdir gmkdir; do |
2798 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2799 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2800 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2801 |
'mkdir (GNU coreutils) '* | \ |
2802 |
'mkdir (coreutils) '* | \ |
2803 |
'mkdir (fileutils) '4.1*) |
2804 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2805 |
break 3;; |
2806 |
esac |
2807 |
done |
2808 |
done |
2809 |
done |
2810 |
IFS=$as_save_IFS |
2811 |
|
2812 |
fi |
2813 |
|
2814 |
test -d ./--version && rmdir ./--version |
2815 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2816 |
MKDIR_P="$ac_cv_path_mkdir -p" |
2817 |
else |
2818 |
# As a last resort, use the slow shell script. Don't cache a |
2819 |
# value for MKDIR_P within a source directory, because that will |
2820 |
# break other packages using the cache if that directory is |
2821 |
# removed, or if the value is a relative name. |
2822 |
MKDIR_P="$ac_install_sh -d" |
2823 |
fi |
2824 |
fi |
2825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2826 |
$as_echo "$MKDIR_P" >&6; } |
2827 |
|
2828 |
for ac_prog in gawk mawk nawk awk |
2829 |
do |
2830 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2831 |
set dummy $ac_prog; ac_word=$2 |
2832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2833 |
$as_echo_n "checking for $ac_word... " >&6; } |
2834 |
if ${ac_cv_prog_AWK+:} false; then : |
2835 |
$as_echo_n "(cached) " >&6 |
2836 |
else |
2837 |
if test -n "$AWK"; then |
2838 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2839 |
else |
2840 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2841 |
for as_dir in $PATH |
2842 |
do |
2843 |
IFS=$as_save_IFS |
2844 |
test -z "$as_dir" && as_dir=. |
2845 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2846 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2847 |
ac_cv_prog_AWK="$ac_prog" |
2848 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2849 |
break 2 |
2850 |
fi |
2851 |
done |
2852 |
done |
2853 |
IFS=$as_save_IFS |
2854 |
|
2855 |
fi |
2856 |
fi |
2857 |
AWK=$ac_cv_prog_AWK |
2858 |
if test -n "$AWK"; then |
2859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2860 |
$as_echo "$AWK" >&6; } |
2861 |
else |
2862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2863 |
$as_echo "no" >&6; } |
2864 |
fi |
2865 |
|
2866 |
|
2867 |
test -n "$AWK" && break |
2868 |
done |
2869 |
|
2870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2871 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2872 |
set x ${MAKE-make} |
2873 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2874 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2875 |
$as_echo_n "(cached) " >&6 |
2876 |
else |
2877 |
cat >conftest.make <<\_ACEOF |
2878 |
SHELL = /bin/sh |
2879 |
all: |
2880 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2881 |
_ACEOF |
2882 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2883 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2884 |
*@@@%%%=?*=@@@%%%*) |
2885 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2886 |
*) |
2887 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2888 |
esac |
2889 |
rm -f conftest.make |
2890 |
fi |
2891 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2893 |
$as_echo "yes" >&6; } |
2894 |
SET_MAKE= |
2895 |
else |
2896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2897 |
$as_echo "no" >&6; } |
2898 |
SET_MAKE="MAKE=${MAKE-make}" |
2899 |
fi |
2900 |
|
2901 |
rm -rf .tst 2>/dev/null |
2902 |
mkdir .tst 2>/dev/null |
2903 |
if test -d .tst; then |
2904 |
am__leading_dot=. |
2905 |
else |
2906 |
am__leading_dot=_ |
2907 |
fi |
2908 |
rmdir .tst 2>/dev/null |
2909 |
|
2910 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2911 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2912 |
# is not polluted with repeated "-I." |
2913 |
am__isrc=' -I$(srcdir)' |
2914 |
# test to see if srcdir already configured |
2915 |
if test -f $srcdir/config.status; then |
2916 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2917 |
fi |
2918 |
fi |
2919 |
|
2920 |
# test whether we have cygpath |
2921 |
if test -z "$CYGPATH_W"; then |
2922 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2923 |
CYGPATH_W='cygpath -w' |
2924 |
else |
2925 |
CYGPATH_W=echo |
2926 |
fi |
2927 |
fi |
2928 |
|
2929 |
|
2930 |
# Define the identity of the package. |
2931 |
PACKAGE='ircd-hybrid' |
2932 |
VERSION='8.0.0' |
2933 |
|
2934 |
|
2935 |
cat >>confdefs.h <<_ACEOF |
2936 |
#define PACKAGE "$PACKAGE" |
2937 |
_ACEOF |
2938 |
|
2939 |
|
2940 |
cat >>confdefs.h <<_ACEOF |
2941 |
#define VERSION "$VERSION" |
2942 |
_ACEOF |
2943 |
|
2944 |
# Some tools Automake needs. |
2945 |
|
2946 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2947 |
|
2948 |
|
2949 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2950 |
|
2951 |
|
2952 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2953 |
|
2954 |
|
2955 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2956 |
|
2957 |
|
2958 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2959 |
|
2960 |
# For better backward compatibility. To be removed once Automake 1.9.x |
2961 |
# dies out for good. For more background, see: |
2962 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
2963 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2964 |
mkdir_p='$(MKDIR_P)' |
2965 |
|
2966 |
# We need awk for the "check" target. The system "awk" is bad on |
2967 |
# some platforms. |
2968 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
2969 |
# in the wild :-( We should find a proper way to deprecate it ... |
2970 |
AMTAR='$${TAR-tar}' |
2971 |
|
2972 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2973 |
|
2974 |
|
2975 |
|
2976 |
|
2977 |
|
2978 |
|
2979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2980 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
2981 |
# Check whether --enable-maintainer-mode was given. |
2982 |
if test "${enable_maintainer_mode+set}" = set; then : |
2983 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2984 |
else |
2985 |
USE_MAINTAINER_MODE=no |
2986 |
fi |
2987 |
|
2988 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2989 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
2990 |
if test $USE_MAINTAINER_MODE = yes; then |
2991 |
MAINTAINER_MODE_TRUE= |
2992 |
MAINTAINER_MODE_FALSE='#' |
2993 |
else |
2994 |
MAINTAINER_MODE_TRUE='#' |
2995 |
MAINTAINER_MODE_FALSE= |
2996 |
fi |
2997 |
|
2998 |
MAINT=$MAINTAINER_MODE_TRUE |
2999 |
|
3000 |
|
3001 |
ac_config_headers="$ac_config_headers config.h" |
3002 |
|
3003 |
|
3004 |
|
3005 |
# Checks for programs. |
3006 |
DEPDIR="${am__leading_dot}deps" |
3007 |
|
3008 |
ac_config_commands="$ac_config_commands depfiles" |
3009 |
|
3010 |
|
3011 |
am_make=${MAKE-make} |
3012 |
cat > confinc << 'END' |
3013 |
am__doit: |
3014 |
@echo this is the am__doit target |
3015 |
.PHONY: am__doit |
3016 |
END |
3017 |
# If we don't find an include directive, just comment out the code. |
3018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3019 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
3020 |
am__include="#" |
3021 |
am__quote= |
3022 |
_am_result=none |
3023 |
# First try GNU make style include. |
3024 |
echo "include confinc" > confmf |
3025 |
# Ignore all kinds of additional output from 'make'. |
3026 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
3027 |
*the\ am__doit\ target*) |
3028 |
am__include=include |
3029 |
am__quote= |
3030 |
_am_result=GNU |
3031 |
;; |
3032 |
esac |
3033 |
# Now try BSD make style include. |
3034 |
if test "$am__include" = "#"; then |
3035 |
echo '.include "confinc"' > confmf |
3036 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
3037 |
*the\ am__doit\ target*) |
3038 |
am__include=.include |
3039 |
am__quote="\"" |
3040 |
_am_result=BSD |
3041 |
;; |
3042 |
esac |
3043 |
fi |
3044 |
|
3045 |
|
3046 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3047 |
$as_echo "$_am_result" >&6; } |
3048 |
rm -f confinc confmf |
3049 |
|
3050 |
# Check whether --enable-dependency-tracking was given. |
3051 |
if test "${enable_dependency_tracking+set}" = set; then : |
3052 |
enableval=$enable_dependency_tracking; |
3053 |
fi |
3054 |
|
3055 |
if test "x$enable_dependency_tracking" != xno; then |
3056 |
am_depcomp="$ac_aux_dir/depcomp" |
3057 |
AMDEPBACKSLASH='\' |
3058 |
am__nodep='_no' |
3059 |
fi |
3060 |
if test "x$enable_dependency_tracking" != xno; then |
3061 |
AMDEP_TRUE= |
3062 |
AMDEP_FALSE='#' |
3063 |
else |
3064 |
AMDEP_TRUE='#' |
3065 |
AMDEP_FALSE= |
3066 |
fi |
3067 |
|
3068 |
|
3069 |
ac_ext=c |
3070 |
ac_cpp='$CPP $CPPFLAGS' |
3071 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3072 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3073 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3074 |
if test -n "$ac_tool_prefix"; then |
3075 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3076 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3078 |
$as_echo_n "checking for $ac_word... " >&6; } |
3079 |
if ${ac_cv_prog_CC+:} false; then : |
3080 |
$as_echo_n "(cached) " >&6 |
3081 |
else |
3082 |
if test -n "$CC"; then |
3083 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3084 |
else |
3085 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3086 |
for as_dir in $PATH |
3087 |
do |
3088 |
IFS=$as_save_IFS |
3089 |
test -z "$as_dir" && as_dir=. |
3090 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3091 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3092 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3093 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3094 |
break 2 |
3095 |
fi |
3096 |
done |
3097 |
done |
3098 |
IFS=$as_save_IFS |
3099 |
|
3100 |
fi |
3101 |
fi |
3102 |
CC=$ac_cv_prog_CC |
3103 |
if test -n "$CC"; then |
3104 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3105 |
$as_echo "$CC" >&6; } |
3106 |
else |
3107 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3108 |
$as_echo "no" >&6; } |
3109 |
fi |
3110 |
|
3111 |
|
3112 |
fi |
3113 |
if test -z "$ac_cv_prog_CC"; then |
3114 |
ac_ct_CC=$CC |
3115 |
# Extract the first word of "gcc", so it can be a program name with args. |
3116 |
set dummy gcc; ac_word=$2 |
3117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3118 |
$as_echo_n "checking for $ac_word... " >&6; } |
3119 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3120 |
$as_echo_n "(cached) " >&6 |
3121 |
else |
3122 |
if test -n "$ac_ct_CC"; then |
3123 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3124 |
else |
3125 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3126 |
for as_dir in $PATH |
3127 |
do |
3128 |
IFS=$as_save_IFS |
3129 |
test -z "$as_dir" && as_dir=. |
3130 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3131 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3132 |
ac_cv_prog_ac_ct_CC="gcc" |
3133 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3134 |
break 2 |
3135 |
fi |
3136 |
done |
3137 |
done |
3138 |
IFS=$as_save_IFS |
3139 |
|
3140 |
fi |
3141 |
fi |
3142 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3143 |
if test -n "$ac_ct_CC"; then |
3144 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3145 |
$as_echo "$ac_ct_CC" >&6; } |
3146 |
else |
3147 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3148 |
$as_echo "no" >&6; } |
3149 |
fi |
3150 |
|
3151 |
if test "x$ac_ct_CC" = x; then |
3152 |
CC="" |
3153 |
else |
3154 |
case $cross_compiling:$ac_tool_warned in |
3155 |
yes:) |
3156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3157 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3158 |
ac_tool_warned=yes ;; |
3159 |
esac |
3160 |
CC=$ac_ct_CC |
3161 |
fi |
3162 |
else |
3163 |
CC="$ac_cv_prog_CC" |
3164 |
fi |
3165 |
|
3166 |
if test -z "$CC"; then |
3167 |
if test -n "$ac_tool_prefix"; then |
3168 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3169 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3171 |
$as_echo_n "checking for $ac_word... " >&6; } |
3172 |
if ${ac_cv_prog_CC+:} false; then : |
3173 |
$as_echo_n "(cached) " >&6 |
3174 |
else |
3175 |
if test -n "$CC"; then |
3176 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3177 |
else |
3178 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3179 |
for as_dir in $PATH |
3180 |
do |
3181 |
IFS=$as_save_IFS |
3182 |
test -z "$as_dir" && as_dir=. |
3183 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3184 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3185 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3186 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3187 |
break 2 |
3188 |
fi |
3189 |
done |
3190 |
done |
3191 |
IFS=$as_save_IFS |
3192 |
|
3193 |
fi |
3194 |
fi |
3195 |
CC=$ac_cv_prog_CC |
3196 |
if test -n "$CC"; then |
3197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3198 |
$as_echo "$CC" >&6; } |
3199 |
else |
3200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3201 |
$as_echo "no" >&6; } |
3202 |
fi |
3203 |
|
3204 |
|
3205 |
fi |
3206 |
fi |
3207 |
if test -z "$CC"; then |
3208 |
# Extract the first word of "cc", so it can be a program name with args. |
3209 |
set dummy cc; ac_word=$2 |
3210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3211 |
$as_echo_n "checking for $ac_word... " >&6; } |
3212 |
if ${ac_cv_prog_CC+:} false; then : |
3213 |
$as_echo_n "(cached) " >&6 |
3214 |
else |
3215 |
if test -n "$CC"; then |
3216 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3217 |
else |
3218 |
ac_prog_rejected=no |
3219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3220 |
for as_dir in $PATH |
3221 |
do |
3222 |
IFS=$as_save_IFS |
3223 |
test -z "$as_dir" && as_dir=. |
3224 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3225 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3226 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3227 |
ac_prog_rejected=yes |
3228 |
continue |
3229 |
fi |
3230 |
ac_cv_prog_CC="cc" |
3231 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3232 |
break 2 |
3233 |
fi |
3234 |
done |
3235 |
done |
3236 |
IFS=$as_save_IFS |
3237 |
|
3238 |
if test $ac_prog_rejected = yes; then |
3239 |
# We found a bogon in the path, so make sure we never use it. |
3240 |
set dummy $ac_cv_prog_CC |
3241 |
shift |
3242 |
if test $# != 0; then |
3243 |
# We chose a different compiler from the bogus one. |
3244 |
# However, it has the same basename, so the bogon will be chosen |
3245 |
# first if we set CC to just the basename; use the full file name. |
3246 |
shift |
3247 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3248 |
fi |
3249 |
fi |
3250 |
fi |
3251 |
fi |
3252 |
CC=$ac_cv_prog_CC |
3253 |
if test -n "$CC"; then |
3254 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3255 |
$as_echo "$CC" >&6; } |
3256 |
else |
3257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3258 |
$as_echo "no" >&6; } |
3259 |
fi |
3260 |
|
3261 |
|
3262 |
fi |
3263 |
if test -z "$CC"; then |
3264 |
if test -n "$ac_tool_prefix"; then |
3265 |
for ac_prog in cl.exe |
3266 |
do |
3267 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3268 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3269 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3270 |
$as_echo_n "checking for $ac_word... " >&6; } |
3271 |
if ${ac_cv_prog_CC+:} false; then : |
3272 |
$as_echo_n "(cached) " >&6 |
3273 |
else |
3274 |
if test -n "$CC"; then |
3275 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3276 |
else |
3277 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3278 |
for as_dir in $PATH |
3279 |
do |
3280 |
IFS=$as_save_IFS |
3281 |
test -z "$as_dir" && as_dir=. |
3282 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3283 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3284 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3285 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3286 |
break 2 |
3287 |
fi |
3288 |
done |
3289 |
done |
3290 |
IFS=$as_save_IFS |
3291 |
|
3292 |
fi |
3293 |
fi |
3294 |
CC=$ac_cv_prog_CC |
3295 |
if test -n "$CC"; then |
3296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3297 |
$as_echo "$CC" >&6; } |
3298 |
else |
3299 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3300 |
$as_echo "no" >&6; } |
3301 |
fi |
3302 |
|
3303 |
|
3304 |
test -n "$CC" && break |
3305 |
done |
3306 |
fi |
3307 |
if test -z "$CC"; then |
3308 |
ac_ct_CC=$CC |
3309 |
for ac_prog in cl.exe |
3310 |
do |
3311 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3312 |
set dummy $ac_prog; ac_word=$2 |
3313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3314 |
$as_echo_n "checking for $ac_word... " >&6; } |
3315 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3316 |
$as_echo_n "(cached) " >&6 |
3317 |
else |
3318 |
if test -n "$ac_ct_CC"; then |
3319 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3320 |
else |
3321 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3322 |
for as_dir in $PATH |
3323 |
do |
3324 |
IFS=$as_save_IFS |
3325 |
test -z "$as_dir" && as_dir=. |
3326 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3327 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3328 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3329 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3330 |
break 2 |
3331 |
fi |
3332 |
done |
3333 |
done |
3334 |
IFS=$as_save_IFS |
3335 |
|
3336 |
fi |
3337 |
fi |
3338 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3339 |
if test -n "$ac_ct_CC"; then |
3340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3341 |
$as_echo "$ac_ct_CC" >&6; } |
3342 |
else |
3343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3344 |
$as_echo "no" >&6; } |
3345 |
fi |
3346 |
|
3347 |
|
3348 |
test -n "$ac_ct_CC" && break |
3349 |
done |
3350 |
|
3351 |
if test "x$ac_ct_CC" = x; then |
3352 |
CC="" |
3353 |
else |
3354 |
case $cross_compiling:$ac_tool_warned in |
3355 |
yes:) |
3356 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3357 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3358 |
ac_tool_warned=yes ;; |
3359 |
esac |
3360 |
CC=$ac_ct_CC |
3361 |
fi |
3362 |
fi |
3363 |
|
3364 |
fi |
3365 |
|
3366 |
|
3367 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3368 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3369 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3370 |
See \`config.log' for more details" "$LINENO" 5; } |
3371 |
|
3372 |
# Provide some information about the compiler. |
3373 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3374 |
set X $ac_compile |
3375 |
ac_compiler=$2 |
3376 |
for ac_option in --version -v -V -qversion; do |
3377 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3378 |
case "(($ac_try" in |
3379 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3380 |
*) ac_try_echo=$ac_try;; |
3381 |
esac |
3382 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3383 |
$as_echo "$ac_try_echo"; } >&5 |
3384 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3385 |
ac_status=$? |
3386 |
if test -s conftest.err; then |
3387 |
sed '10a\ |
3388 |
... rest of stderr output deleted ... |
3389 |
10q' conftest.err >conftest.er1 |
3390 |
cat conftest.er1 >&5 |
3391 |
fi |
3392 |
rm -f conftest.er1 conftest.err |
3393 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3394 |
test $ac_status = 0; } |
3395 |
done |
3396 |
|
3397 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3398 |
/* end confdefs.h. */ |
3399 |
|
3400 |
int |
3401 |
main () |
3402 |
{ |
3403 |
|
3404 |
; |
3405 |
return 0; |
3406 |
} |
3407 |
_ACEOF |
3408 |
ac_clean_files_save=$ac_clean_files |
3409 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3410 |
# Try to create an executable without -o first, disregard a.out. |
3411 |
# It will help us diagnose broken compilers, and finding out an intuition |
3412 |
# of exeext. |
3413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3414 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3415 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3416 |
|
3417 |
# The possible output files: |
3418 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3419 |
|
3420 |
ac_rmfiles= |
3421 |
for ac_file in $ac_files |
3422 |
do |
3423 |
case $ac_file in |
3424 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3425 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3426 |
esac |
3427 |
done |
3428 |
rm -f $ac_rmfiles |
3429 |
|
3430 |
if { { ac_try="$ac_link_default" |
3431 |
case "(($ac_try" in |
3432 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3433 |
*) ac_try_echo=$ac_try;; |
3434 |
esac |
3435 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3436 |
$as_echo "$ac_try_echo"; } >&5 |
3437 |
(eval "$ac_link_default") 2>&5 |
3438 |
ac_status=$? |
3439 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3440 |
test $ac_status = 0; }; then : |
3441 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3442 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3443 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3444 |
# so that the user can short-circuit this test for compilers unknown to |
3445 |
# Autoconf. |
3446 |
for ac_file in $ac_files '' |
3447 |
do |
3448 |
test -f "$ac_file" || continue |
3449 |
case $ac_file in |
3450 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3451 |
;; |
3452 |
[ab].out ) |
3453 |
# We found the default executable, but exeext='' is most |
3454 |
# certainly right. |
3455 |
break;; |
3456 |
*.* ) |
3457 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3458 |
then :; else |
3459 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3460 |
fi |
3461 |
# We set ac_cv_exeext here because the later test for it is not |
3462 |
# safe: cross compilers may not add the suffix if given an `-o' |
3463 |
# argument, so we may need to know it at that point already. |
3464 |
# Even if this section looks crufty: it has the advantage of |
3465 |
# actually working. |
3466 |
break;; |
3467 |
* ) |
3468 |
break;; |
3469 |
esac |
3470 |
done |
3471 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3472 |
|
3473 |
else |
3474 |
ac_file='' |
3475 |
fi |
3476 |
if test -z "$ac_file"; then : |
3477 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3478 |
$as_echo "no" >&6; } |
3479 |
$as_echo "$as_me: failed program was:" >&5 |
3480 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3481 |
|
3482 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3483 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3484 |
as_fn_error 77 "C compiler cannot create executables |
3485 |
See \`config.log' for more details" "$LINENO" 5; } |
3486 |
else |
3487 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3488 |
$as_echo "yes" >&6; } |
3489 |
fi |
3490 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3491 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3493 |
$as_echo "$ac_file" >&6; } |
3494 |
ac_exeext=$ac_cv_exeext |
3495 |
|
3496 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3497 |
ac_clean_files=$ac_clean_files_save |
3498 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3499 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3500 |
if { { ac_try="$ac_link" |
3501 |
case "(($ac_try" in |
3502 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3503 |
*) ac_try_echo=$ac_try;; |
3504 |
esac |
3505 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3506 |
$as_echo "$ac_try_echo"; } >&5 |
3507 |
(eval "$ac_link") 2>&5 |
3508 |
ac_status=$? |
3509 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3510 |
test $ac_status = 0; }; then : |
3511 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3512 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3513 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3514 |
# `rm'. |
3515 |
for ac_file in conftest.exe conftest conftest.*; do |
3516 |
test -f "$ac_file" || continue |
3517 |
case $ac_file in |
3518 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3519 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3520 |
break;; |
3521 |
* ) break;; |
3522 |
esac |
3523 |
done |
3524 |
else |
3525 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3526 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3527 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3528 |
See \`config.log' for more details" "$LINENO" 5; } |
3529 |
fi |
3530 |
rm -f conftest conftest$ac_cv_exeext |
3531 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3532 |
$as_echo "$ac_cv_exeext" >&6; } |
3533 |
|
3534 |
rm -f conftest.$ac_ext |
3535 |
EXEEXT=$ac_cv_exeext |
3536 |
ac_exeext=$EXEEXT |
3537 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3538 |
/* end confdefs.h. */ |
3539 |
#include <stdio.h> |
3540 |
int |
3541 |
main () |
3542 |
{ |
3543 |
FILE *f = fopen ("conftest.out", "w"); |
3544 |
return ferror (f) || fclose (f) != 0; |
3545 |
|
3546 |
; |
3547 |
return 0; |
3548 |
} |
3549 |
_ACEOF |
3550 |
ac_clean_files="$ac_clean_files conftest.out" |
3551 |
# Check that the compiler produces executables we can run. If not, either |
3552 |
# the compiler is broken, or we cross compile. |
3553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3554 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3555 |
if test "$cross_compiling" != yes; then |
3556 |
{ { ac_try="$ac_link" |
3557 |
case "(($ac_try" in |
3558 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3559 |
*) ac_try_echo=$ac_try;; |
3560 |
esac |
3561 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3562 |
$as_echo "$ac_try_echo"; } >&5 |
3563 |
(eval "$ac_link") 2>&5 |
3564 |
ac_status=$? |
3565 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3566 |
test $ac_status = 0; } |
3567 |
if { ac_try='./conftest$ac_cv_exeext' |
3568 |
{ { case "(($ac_try" in |
3569 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3570 |
*) ac_try_echo=$ac_try;; |
3571 |
esac |
3572 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3573 |
$as_echo "$ac_try_echo"; } >&5 |
3574 |
(eval "$ac_try") 2>&5 |
3575 |
ac_status=$? |
3576 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3577 |
test $ac_status = 0; }; }; then |
3578 |
cross_compiling=no |
3579 |
else |
3580 |
if test "$cross_compiling" = maybe; then |
3581 |
cross_compiling=yes |
3582 |
else |
3583 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3584 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3585 |
as_fn_error $? "cannot run C compiled programs. |
3586 |
If you meant to cross compile, use \`--host'. |
3587 |
See \`config.log' for more details" "$LINENO" 5; } |
3588 |
fi |
3589 |
fi |
3590 |
fi |
3591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3592 |
$as_echo "$cross_compiling" >&6; } |
3593 |
|
3594 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3595 |
ac_clean_files=$ac_clean_files_save |
3596 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3597 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3598 |
if ${ac_cv_objext+:} false; then : |
3599 |
$as_echo_n "(cached) " >&6 |
3600 |
else |
3601 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3602 |
/* end confdefs.h. */ |
3603 |
|
3604 |
int |
3605 |
main () |
3606 |
{ |
3607 |
|
3608 |
; |
3609 |
return 0; |
3610 |
} |
3611 |
_ACEOF |
3612 |
rm -f conftest.o conftest.obj |
3613 |
if { { ac_try="$ac_compile" |
3614 |
case "(($ac_try" in |
3615 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3616 |
*) ac_try_echo=$ac_try;; |
3617 |
esac |
3618 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3619 |
$as_echo "$ac_try_echo"; } >&5 |
3620 |
(eval "$ac_compile") 2>&5 |
3621 |
ac_status=$? |
3622 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3623 |
test $ac_status = 0; }; then : |
3624 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3625 |
test -f "$ac_file" || continue; |
3626 |
case $ac_file in |
3627 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3628 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3629 |
break;; |
3630 |
esac |
3631 |
done |
3632 |
else |
3633 |
$as_echo "$as_me: failed program was:" >&5 |
3634 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3635 |
|
3636 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3637 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3638 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3639 |
See \`config.log' for more details" "$LINENO" 5; } |
3640 |
fi |
3641 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3642 |
fi |
3643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3644 |
$as_echo "$ac_cv_objext" >&6; } |
3645 |
OBJEXT=$ac_cv_objext |
3646 |
ac_objext=$OBJEXT |
3647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3648 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3649 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3650 |
$as_echo_n "(cached) " >&6 |
3651 |
else |
3652 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3653 |
/* end confdefs.h. */ |
3654 |
|
3655 |
int |
3656 |
main () |
3657 |
{ |
3658 |
#ifndef __GNUC__ |
3659 |
choke me |
3660 |
#endif |
3661 |
|
3662 |
; |
3663 |
return 0; |
3664 |
} |
3665 |
_ACEOF |
3666 |
if ac_fn_c_try_compile "$LINENO"; then : |
3667 |
ac_compiler_gnu=yes |
3668 |
else |
3669 |
ac_compiler_gnu=no |
3670 |
fi |
3671 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3672 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3673 |
|
3674 |
fi |
3675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3676 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3677 |
if test $ac_compiler_gnu = yes; then |
3678 |
GCC=yes |
3679 |
else |
3680 |
GCC= |
3681 |
fi |
3682 |
ac_test_CFLAGS=${CFLAGS+set} |
3683 |
ac_save_CFLAGS=$CFLAGS |
3684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3685 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3686 |
if ${ac_cv_prog_cc_g+:} false; then : |
3687 |
$as_echo_n "(cached) " >&6 |
3688 |
else |
3689 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3690 |
ac_c_werror_flag=yes |
3691 |
ac_cv_prog_cc_g=no |
3692 |
CFLAGS="-g" |
3693 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3694 |
/* end confdefs.h. */ |
3695 |
|
3696 |
int |
3697 |
main () |
3698 |
{ |
3699 |
|
3700 |
; |
3701 |
return 0; |
3702 |
} |
3703 |
_ACEOF |
3704 |
if ac_fn_c_try_compile "$LINENO"; then : |
3705 |
ac_cv_prog_cc_g=yes |
3706 |
else |
3707 |
CFLAGS="" |
3708 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3709 |
/* end confdefs.h. */ |
3710 |
|
3711 |
int |
3712 |
main () |
3713 |
{ |
3714 |
|
3715 |
; |
3716 |
return 0; |
3717 |
} |
3718 |
_ACEOF |
3719 |
if ac_fn_c_try_compile "$LINENO"; then : |
3720 |
|
3721 |
else |
3722 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3723 |
CFLAGS="-g" |
3724 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3725 |
/* end confdefs.h. */ |
3726 |
|
3727 |
int |
3728 |
main () |
3729 |
{ |
3730 |
|
3731 |
; |
3732 |
return 0; |
3733 |
} |
3734 |
_ACEOF |
3735 |
if ac_fn_c_try_compile "$LINENO"; then : |
3736 |
ac_cv_prog_cc_g=yes |
3737 |
fi |
3738 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3739 |
fi |
3740 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3741 |
fi |
3742 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3743 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3744 |
fi |
3745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3746 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3747 |
if test "$ac_test_CFLAGS" = set; then |
3748 |
CFLAGS=$ac_save_CFLAGS |
3749 |
elif test $ac_cv_prog_cc_g = yes; then |
3750 |
if test "$GCC" = yes; then |
3751 |
CFLAGS="-g -O2" |
3752 |
else |
3753 |
CFLAGS="-g" |
3754 |
fi |
3755 |
else |
3756 |
if test "$GCC" = yes; then |
3757 |
CFLAGS="-O2" |
3758 |
else |
3759 |
CFLAGS= |
3760 |
fi |
3761 |
fi |
3762 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3763 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3764 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3765 |
$as_echo_n "(cached) " >&6 |
3766 |
else |
3767 |
ac_cv_prog_cc_c89=no |
3768 |
ac_save_CC=$CC |
3769 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3770 |
/* end confdefs.h. */ |
3771 |
#include <stdarg.h> |
3772 |
#include <stdio.h> |
3773 |
struct stat; |
3774 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3775 |
struct buf { int x; }; |
3776 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3777 |
static char *e (p, i) |
3778 |
char **p; |
3779 |
int i; |
3780 |
{ |
3781 |
return p[i]; |
3782 |
} |
3783 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3784 |
{ |
3785 |
char *s; |
3786 |
va_list v; |
3787 |
va_start (v,p); |
3788 |
s = g (p, va_arg (v,int)); |
3789 |
va_end (v); |
3790 |
return s; |
3791 |
} |
3792 |
|
3793 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3794 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3795 |
These don't provoke an error unfortunately, instead are silently treated |
3796 |
as 'x'. The following induces an error, until -std is added to get |
3797 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3798 |
array size at least. It's necessary to write '\x00'==0 to get something |
3799 |
that's true only with -std. */ |
3800 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3801 |
|
3802 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3803 |
inside strings and character constants. */ |
3804 |
#define FOO(x) 'x' |
3805 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3806 |
|
3807 |
int test (int i, double x); |
3808 |
struct s1 {int (*f) (int a);}; |
3809 |
struct s2 {int (*f) (double a);}; |
3810 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3811 |
int argc; |
3812 |
char **argv; |
3813 |
int |
3814 |
main () |
3815 |
{ |
3816 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3817 |
; |
3818 |
return 0; |
3819 |
} |
3820 |
_ACEOF |
3821 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3822 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3823 |
do |
3824 |
CC="$ac_save_CC $ac_arg" |
3825 |
if ac_fn_c_try_compile "$LINENO"; then : |
3826 |
ac_cv_prog_cc_c89=$ac_arg |
3827 |
fi |
3828 |
rm -f core conftest.err conftest.$ac_objext |
3829 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3830 |
done |
3831 |
rm -f conftest.$ac_ext |
3832 |
CC=$ac_save_CC |
3833 |
|
3834 |
fi |
3835 |
# AC_CACHE_VAL |
3836 |
case "x$ac_cv_prog_cc_c89" in |
3837 |
x) |
3838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3839 |
$as_echo "none needed" >&6; } ;; |
3840 |
xno) |
3841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3842 |
$as_echo "unsupported" >&6; } ;; |
3843 |
*) |
3844 |
CC="$CC $ac_cv_prog_cc_c89" |
3845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3846 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3847 |
esac |
3848 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3849 |
|
3850 |
fi |
3851 |
|
3852 |
ac_ext=c |
3853 |
ac_cpp='$CPP $CPPFLAGS' |
3854 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3855 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3856 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3857 |
|
3858 |
depcc="$CC" am_compiler_list= |
3859 |
|
3860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3861 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
3862 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
3863 |
$as_echo_n "(cached) " >&6 |
3864 |
else |
3865 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3866 |
# We make a subdir and do the tests there. Otherwise we can end up |
3867 |
# making bogus files that we don't know about and never remove. For |
3868 |
# instance it was reported that on HP-UX the gcc test will end up |
3869 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
3870 |
# in D". |
3871 |
rm -rf conftest.dir |
3872 |
mkdir conftest.dir |
3873 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
3874 |
# using a relative directory. |
3875 |
cp "$am_depcomp" conftest.dir |
3876 |
cd conftest.dir |
3877 |
# We will build objects and dependencies in a subdirectory because |
3878 |
# it helps to detect inapplicable dependency modes. For instance |
3879 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
3880 |
# side effect of compilation, but ICC will put the dependencies in |
3881 |
# the current directory while Tru64 will put them in the object |
3882 |
# directory. |
3883 |
mkdir sub |
3884 |
|
3885 |
am_cv_CC_dependencies_compiler_type=none |
3886 |
if test "$am_compiler_list" = ""; then |
3887 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3888 |
fi |
3889 |
am__universal=false |
3890 |
case " $depcc " in #( |
3891 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
3892 |
esac |
3893 |
|
3894 |
for depmode in $am_compiler_list; do |
3895 |
# Setup a source with many dependencies, because some compilers |
3896 |
# like to wrap large dependency lists on column 80 (with \), and |
3897 |
# we should not choose a depcomp mode which is confused by this. |
3898 |
# |
3899 |
# We need to recreate these files for each test, as the compiler may |
3900 |
# overwrite some of them when testing with obscure command lines. |
3901 |
# This happens at least with the AIX C compiler. |
3902 |
: > sub/conftest.c |
3903 |
for i in 1 2 3 4 5 6; do |
3904 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3905 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3906 |
# Solaris 10 /bin/sh. |
3907 |
echo '/* dummy */' > sub/conftst$i.h |
3908 |
done |
3909 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3910 |
|
3911 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
3912 |
# mode. It turns out that the SunPro C++ compiler does not properly |
3913 |
# handle '-M -o', and we need to detect this. Also, some Intel |
3914 |
# versions had trouble with output in subdirs. |
3915 |
am__obj=sub/conftest.${OBJEXT-o} |
3916 |
am__minus_obj="-o $am__obj" |
3917 |
case $depmode in |
3918 |
gcc) |
3919 |
# This depmode causes a compiler race in universal mode. |
3920 |
test "$am__universal" = false || continue |
3921 |
;; |
3922 |
nosideeffect) |
3923 |
# After this tag, mechanisms are not by side-effect, so they'll |
3924 |
# only be used when explicitly requested. |
3925 |
if test "x$enable_dependency_tracking" = xyes; then |
3926 |
continue |
3927 |
else |
3928 |
break |
3929 |
fi |
3930 |
;; |
3931 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3932 |
# This compiler won't grok '-c -o', but also, the minuso test has |
3933 |
# not run yet. These depmodes are late enough in the game, and |
3934 |
# so weak that their functioning should not be impacted. |
3935 |
am__obj=conftest.${OBJEXT-o} |
3936 |
am__minus_obj= |
3937 |
;; |
3938 |
none) break ;; |
3939 |
esac |
3940 |
if depmode=$depmode \ |
3941 |
source=sub/conftest.c object=$am__obj \ |
3942 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3943 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
3944 |
>/dev/null 2>conftest.err && |
3945 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
3946 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3947 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
3948 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3949 |
# icc doesn't choke on unknown options, it will just issue warnings |
3950 |
# or remarks (even with -Werror). So we grep stderr for any message |
3951 |
# that says an option was ignored or not supported. |
3952 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
3953 |
# icc: Command line warning: ignoring option '-M'; no argument required |
3954 |
# The diagnosis changed in icc 8.0: |
3955 |
# icc: Command line remark: option '-MP' not supported |
3956 |
if (grep 'ignoring option' conftest.err || |
3957 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3958 |
am_cv_CC_dependencies_compiler_type=$depmode |
3959 |
break |
3960 |
fi |
3961 |
fi |
3962 |
done |
3963 |
|
3964 |
cd .. |
3965 |
rm -rf conftest.dir |
3966 |
else |
3967 |
am_cv_CC_dependencies_compiler_type=none |
3968 |
fi |
3969 |
|
3970 |
fi |
3971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3972 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
3973 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3974 |
|
3975 |
if |
3976 |
test "x$enable_dependency_tracking" != xno \ |
3977 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3978 |
am__fastdepCC_TRUE= |
3979 |
am__fastdepCC_FALSE='#' |
3980 |
else |
3981 |
am__fastdepCC_TRUE='#' |
3982 |
am__fastdepCC_FALSE= |
3983 |
fi |
3984 |
|
3985 |
|
3986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3987 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
3988 |
if ${ac_cv_prog_cc_c99+:} false; then : |
3989 |
$as_echo_n "(cached) " >&6 |
3990 |
else |
3991 |
ac_cv_prog_cc_c99=no |
3992 |
ac_save_CC=$CC |
3993 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3994 |
/* end confdefs.h. */ |
3995 |
#include <stdarg.h> |
3996 |
#include <stdbool.h> |
3997 |
#include <stdlib.h> |
3998 |
#include <wchar.h> |
3999 |
#include <stdio.h> |
4000 |
|
4001 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
4002 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
4003 |
#define showlist(...) puts (#__VA_ARGS__) |
4004 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
4005 |
static void |
4006 |
test_varargs_macros (void) |
4007 |
{ |
4008 |
int x = 1234; |
4009 |
int y = 5678; |
4010 |
debug ("Flag"); |
4011 |
debug ("X = %d\n", x); |
4012 |
showlist (The first, second, and third items.); |
4013 |
report (x>y, "x is %d but y is %d", x, y); |
4014 |
} |
4015 |
|
4016 |
// Check long long types. |
4017 |
#define BIG64 18446744073709551615ull |
4018 |
#define BIG32 4294967295ul |
4019 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
4020 |
#if !BIG_OK |
4021 |
your preprocessor is broken; |
4022 |
#endif |
4023 |
#if BIG_OK |
4024 |
#else |
4025 |
your preprocessor is broken; |
4026 |
#endif |
4027 |
static long long int bignum = -9223372036854775807LL; |
4028 |
static unsigned long long int ubignum = BIG64; |
4029 |
|
4030 |
struct incomplete_array |
4031 |
{ |
4032 |
int datasize; |
4033 |
double data[]; |
4034 |
}; |
4035 |
|
4036 |
struct named_init { |
4037 |
int number; |
4038 |
const wchar_t *name; |
4039 |
double average; |
4040 |
}; |
4041 |
|
4042 |
typedef const char *ccp; |
4043 |
|
4044 |
static inline int |
4045 |
test_restrict (ccp restrict text) |
4046 |
{ |
4047 |
// See if C++-style comments work. |
4048 |
// Iterate through items via the restricted pointer. |
4049 |
// Also check for declarations in for loops. |
4050 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
4051 |
continue; |
4052 |
return 0; |
4053 |
} |
4054 |
|
4055 |
// Check varargs and va_copy. |
4056 |
static void |
4057 |
test_varargs (const char *format, ...) |
4058 |
{ |
4059 |
va_list args; |
4060 |
va_start (args, format); |
4061 |
va_list args_copy; |
4062 |
va_copy (args_copy, args); |
4063 |
|
4064 |
const char *str; |
4065 |
int number; |
4066 |
float fnumber; |
4067 |
|
4068 |
while (*format) |
4069 |
{ |
4070 |
switch (*format++) |
4071 |
{ |
4072 |
case 's': // string |
4073 |
str = va_arg (args_copy, const char *); |
4074 |
break; |
4075 |
case 'd': // int |
4076 |
number = va_arg (args_copy, int); |
4077 |
break; |
4078 |
case 'f': // float |
4079 |
fnumber = va_arg (args_copy, double); |
4080 |
break; |
4081 |
default: |
4082 |
break; |
4083 |
} |
4084 |
} |
4085 |
va_end (args_copy); |
4086 |
va_end (args); |
4087 |
} |
4088 |
|
4089 |
int |
4090 |
main () |
4091 |
{ |
4092 |
|
4093 |
// Check bool. |
4094 |
_Bool success = false; |
4095 |
|
4096 |
// Check restrict. |
4097 |
if (test_restrict ("String literal") == 0) |
4098 |
success = true; |
4099 |
char *restrict newvar = "Another string"; |
4100 |
|
4101 |
// Check varargs. |
4102 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
4103 |
test_varargs_macros (); |
4104 |
|
4105 |
// Check flexible array members. |
4106 |
struct incomplete_array *ia = |
4107 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
4108 |
ia->datasize = 10; |
4109 |
for (int i = 0; i < ia->datasize; ++i) |
4110 |
ia->data[i] = i * 1.234; |
4111 |
|
4112 |
// Check named initializers. |
4113 |
struct named_init ni = { |
4114 |
.number = 34, |
4115 |
.name = L"Test wide string", |
4116 |
.average = 543.34343, |
4117 |
}; |
4118 |
|
4119 |
ni.number = 58; |
4120 |
|
4121 |
int dynamic_array[ni.number]; |
4122 |
dynamic_array[ni.number - 1] = 543; |
4123 |
|
4124 |
// work around unused variable warnings |
4125 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
4126 |
|| dynamic_array[ni.number - 1] != 543); |
4127 |
|
4128 |
; |
4129 |
return 0; |
4130 |
} |
4131 |
_ACEOF |
4132 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
4133 |
do |
4134 |
CC="$ac_save_CC $ac_arg" |
4135 |
if ac_fn_c_try_compile "$LINENO"; then : |
4136 |
ac_cv_prog_cc_c99=$ac_arg |
4137 |
fi |
4138 |
rm -f core conftest.err conftest.$ac_objext |
4139 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
4140 |
done |
4141 |
rm -f conftest.$ac_ext |
4142 |
CC=$ac_save_CC |
4143 |
|
4144 |
fi |
4145 |
# AC_CACHE_VAL |
4146 |
case "x$ac_cv_prog_cc_c99" in |
4147 |
x) |
4148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4149 |
$as_echo "none needed" >&6; } ;; |
4150 |
xno) |
4151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4152 |
$as_echo "unsupported" >&6; } ;; |
4153 |
*) |
4154 |
CC="$CC $ac_cv_prog_cc_c99" |
4155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4156 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
4157 |
esac |
4158 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
4159 |
|
4160 |
fi |
4161 |
|
4162 |
|
4163 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
4164 |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
4165 |
fi |
4166 |
for ac_prog in 'bison -y' byacc |
4167 |
do |
4168 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4169 |
set dummy $ac_prog; ac_word=$2 |
4170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4171 |
$as_echo_n "checking for $ac_word... " >&6; } |
4172 |
if ${ac_cv_prog_YACC+:} false; then : |
4173 |
$as_echo_n "(cached) " >&6 |
4174 |
else |
4175 |
if test -n "$YACC"; then |
4176 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
4177 |
else |
4178 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4179 |
for as_dir in $PATH |
4180 |
do |
4181 |
IFS=$as_save_IFS |
4182 |
test -z "$as_dir" && as_dir=. |
4183 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4184 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4185 |
ac_cv_prog_YACC="$ac_prog" |
4186 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4187 |
break 2 |
4188 |
fi |
4189 |
done |
4190 |
done |
4191 |
IFS=$as_save_IFS |
4192 |
|
4193 |
fi |
4194 |
fi |
4195 |
YACC=$ac_cv_prog_YACC |
4196 |
if test -n "$YACC"; then |
4197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
4198 |
$as_echo "$YACC" >&6; } |
4199 |
else |
4200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 |
$as_echo "no" >&6; } |
4202 |
fi |
4203 |
|
4204 |
|
4205 |
test -n "$YACC" && break |
4206 |
done |
4207 |
test -n "$YACC" || YACC="yacc" |
4208 |
|
4209 |
|
4210 |
for ac_prog in flex lex |
4211 |
do |
4212 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4213 |
set dummy $ac_prog; ac_word=$2 |
4214 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4215 |
$as_echo_n "checking for $ac_word... " >&6; } |
4216 |
if ${ac_cv_prog_LEX+:} false; then : |
4217 |
$as_echo_n "(cached) " >&6 |
4218 |
else |
4219 |
if test -n "$LEX"; then |
4220 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
4221 |
else |
4222 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4223 |
for as_dir in $PATH |
4224 |
do |
4225 |
IFS=$as_save_IFS |
4226 |
test -z "$as_dir" && as_dir=. |
4227 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4228 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4229 |
ac_cv_prog_LEX="$ac_prog" |
4230 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4231 |
break 2 |
4232 |
fi |
4233 |
done |
4234 |
done |
4235 |
IFS=$as_save_IFS |
4236 |
|
4237 |
fi |
4238 |
fi |
4239 |
LEX=$ac_cv_prog_LEX |
4240 |
if test -n "$LEX"; then |
4241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
4242 |
$as_echo "$LEX" >&6; } |
4243 |
else |
4244 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4245 |
$as_echo "no" >&6; } |
4246 |
fi |
4247 |
|
4248 |
|
4249 |
test -n "$LEX" && break |
4250 |
done |
4251 |
test -n "$LEX" || LEX=":" |
4252 |
|
4253 |
if test "x$LEX" != "x:"; then |
4254 |
cat >conftest.l <<_ACEOF |
4255 |
%% |
4256 |
a { ECHO; } |
4257 |
b { REJECT; } |
4258 |
c { yymore (); } |
4259 |
d { yyless (1); } |
4260 |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
4261 |
yyless ((input () != 0)); } |
4262 |
f { unput (yytext[0]); } |
4263 |
. { BEGIN INITIAL; } |
4264 |
%% |
4265 |
#ifdef YYTEXT_POINTER |
4266 |
extern char *yytext; |
4267 |
#endif |
4268 |
int |
4269 |
main (void) |
4270 |
{ |
4271 |
return ! yylex () + ! yywrap (); |
4272 |
} |
4273 |
_ACEOF |
4274 |
{ { ac_try="$LEX conftest.l" |
4275 |
case "(($ac_try" in |
4276 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4277 |
*) ac_try_echo=$ac_try;; |
4278 |
esac |
4279 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4280 |
$as_echo "$ac_try_echo"; } >&5 |
4281 |
(eval "$LEX conftest.l") 2>&5 |
4282 |
ac_status=$? |
4283 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4284 |
test $ac_status = 0; } |
4285 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
4286 |
$as_echo_n "checking lex output file root... " >&6; } |
4287 |
if ${ac_cv_prog_lex_root+:} false; then : |
4288 |
$as_echo_n "(cached) " >&6 |
4289 |
else |
4290 |
|
4291 |
if test -f lex.yy.c; then |
4292 |
ac_cv_prog_lex_root=lex.yy |
4293 |
elif test -f lexyy.c; then |
4294 |
ac_cv_prog_lex_root=lexyy |
4295 |
else |
4296 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
4297 |
fi |
4298 |
fi |
4299 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
4300 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
4301 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
4302 |
|
4303 |
if test -z "${LEXLIB+set}"; then |
4304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
4305 |
$as_echo_n "checking lex library... " >&6; } |
4306 |
if ${ac_cv_lib_lex+:} false; then : |
4307 |
$as_echo_n "(cached) " >&6 |
4308 |
else |
4309 |
|
4310 |
ac_save_LIBS=$LIBS |
4311 |
ac_cv_lib_lex='none needed' |
4312 |
for ac_lib in '' -lfl -ll; do |
4313 |
LIBS="$ac_lib $ac_save_LIBS" |
4314 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4315 |
/* end confdefs.h. */ |
4316 |
`cat $LEX_OUTPUT_ROOT.c` |
4317 |
_ACEOF |
4318 |
if ac_fn_c_try_link "$LINENO"; then : |
4319 |
ac_cv_lib_lex=$ac_lib |
4320 |
fi |
4321 |
rm -f core conftest.err conftest.$ac_objext \ |
4322 |
conftest$ac_exeext conftest.$ac_ext |
4323 |
test "$ac_cv_lib_lex" != 'none needed' && break |
4324 |
done |
4325 |
LIBS=$ac_save_LIBS |
4326 |
|
4327 |
fi |
4328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
4329 |
$as_echo "$ac_cv_lib_lex" >&6; } |
4330 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
4331 |
fi |
4332 |
|
4333 |
|
4334 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
4335 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
4336 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
4337 |
$as_echo_n "(cached) " >&6 |
4338 |
else |
4339 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
4340 |
# default is implementation-dependent. Figure out which it is, since |
4341 |
# not all implementations provide the %pointer and %array declarations. |
4342 |
ac_cv_prog_lex_yytext_pointer=no |
4343 |
ac_save_LIBS=$LIBS |
4344 |
LIBS="$LEXLIB $ac_save_LIBS" |
4345 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4346 |
/* end confdefs.h. */ |
4347 |
|
4348 |
#define YYTEXT_POINTER 1 |
4349 |
`cat $LEX_OUTPUT_ROOT.c` |
4350 |
_ACEOF |
4351 |
if ac_fn_c_try_link "$LINENO"; then : |
4352 |
ac_cv_prog_lex_yytext_pointer=yes |
4353 |
fi |
4354 |
rm -f core conftest.err conftest.$ac_objext \ |
4355 |
conftest$ac_exeext conftest.$ac_ext |
4356 |
LIBS=$ac_save_LIBS |
4357 |
|
4358 |
fi |
4359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4360 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
4361 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4362 |
|
4363 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
4364 |
|
4365 |
fi |
4366 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
4367 |
|
4368 |
fi |
4369 |
if test "$LEX" = :; then |
4370 |
LEX=${am_missing_run}flex |
4371 |
fi |
4372 |
|
4373 |
|
4374 |
# Initializing libtool. |
4375 |
|
4376 |
|
4377 |
|
4378 |
|
4379 |
|
4380 |
|
4381 |
|
4382 |
case `pwd` in |
4383 |
*\ * | *\ *) |
4384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4385 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4386 |
esac |
4387 |
|
4388 |
|
4389 |
|
4390 |
macro_version='2.4.2' |
4391 |
macro_revision='1.3337' |
4392 |
|
4393 |
|
4394 |
|
4395 |
|
4396 |
|
4397 |
|
4398 |
|
4399 |
|
4400 |
|
4401 |
|
4402 |
|
4403 |
|
4404 |
|
4405 |
ltmain="$ac_aux_dir/ltmain.sh" |
4406 |
|
4407 |
# Make sure we can run config.sub. |
4408 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4409 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
4410 |
|
4411 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4412 |
$as_echo_n "checking build system type... " >&6; } |
4413 |
if ${ac_cv_build+:} false; then : |
4414 |
$as_echo_n "(cached) " >&6 |
4415 |
else |
4416 |
ac_build_alias=$build_alias |
4417 |
test "x$ac_build_alias" = x && |
4418 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4419 |
test "x$ac_build_alias" = x && |
4420 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4421 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4422 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4423 |
|
4424 |
fi |
4425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4426 |
$as_echo "$ac_cv_build" >&6; } |
4427 |
case $ac_cv_build in |
4428 |
*-*-*) ;; |
4429 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4430 |
esac |
4431 |
build=$ac_cv_build |
4432 |
ac_save_IFS=$IFS; IFS='-' |
4433 |
set x $ac_cv_build |
4434 |
shift |
4435 |
build_cpu=$1 |
4436 |
build_vendor=$2 |
4437 |
shift; shift |
4438 |
# Remember, the first character of IFS is used to create $*, |
4439 |
# except with old shells: |
4440 |
build_os=$* |
4441 |
IFS=$ac_save_IFS |
4442 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4443 |
|
4444 |
|
4445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4446 |
$as_echo_n "checking host system type... " >&6; } |
4447 |
if ${ac_cv_host+:} false; then : |
4448 |
$as_echo_n "(cached) " >&6 |
4449 |
else |
4450 |
if test "x$host_alias" = x; then |
4451 |
ac_cv_host=$ac_cv_build |
4452 |
else |
4453 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4454 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4455 |
fi |
4456 |
|
4457 |
fi |
4458 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4459 |
$as_echo "$ac_cv_host" >&6; } |
4460 |
case $ac_cv_host in |
4461 |
*-*-*) ;; |
4462 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4463 |
esac |
4464 |
host=$ac_cv_host |
4465 |
ac_save_IFS=$IFS; IFS='-' |
4466 |
set x $ac_cv_host |
4467 |
shift |
4468 |
host_cpu=$1 |
4469 |
host_vendor=$2 |
4470 |
shift; shift |
4471 |
# Remember, the first character of IFS is used to create $*, |
4472 |
# except with old shells: |
4473 |
host_os=$* |
4474 |
IFS=$ac_save_IFS |
4475 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4476 |
|
4477 |
|
4478 |
# Backslashify metacharacters that are still active within |
4479 |
# double-quoted strings. |
4480 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
4481 |
|
4482 |
# Same as above, but do not quote variable references. |
4483 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
4484 |
|
4485 |
# Sed substitution to delay expansion of an escaped shell variable in a |
4486 |
# double_quote_subst'ed string. |
4487 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
4488 |
|
4489 |
# Sed substitution to delay expansion of an escaped single quote. |
4490 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
4491 |
|
4492 |
# Sed substitution to avoid accidental globbing in evaled expressions |
4493 |
no_glob_subst='s/\*/\\\*/g' |
4494 |
|
4495 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4496 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
4497 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
4498 |
|
4499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4500 |
$as_echo_n "checking how to print strings... " >&6; } |
4501 |
# Test print first, because it will be a builtin if present. |
4502 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
4503 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4504 |
ECHO='print -r --' |
4505 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4506 |
ECHO='printf %s\n' |
4507 |
else |
4508 |
# Use this function as a fallback that always works. |
4509 |
func_fallback_echo () |
4510 |
{ |
4511 |
eval 'cat <<_LTECHO_EOF |
4512 |
$1 |
4513 |
_LTECHO_EOF' |
4514 |
} |
4515 |
ECHO='func_fallback_echo' |
4516 |
fi |
4517 |
|
4518 |
# func_echo_all arg... |
4519 |
# Invoke $ECHO with all args, space-separated. |
4520 |
func_echo_all () |
4521 |
{ |
4522 |
$ECHO "" |
4523 |
} |
4524 |
|
4525 |
case "$ECHO" in |
4526 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4527 |
$as_echo "printf" >&6; } ;; |
4528 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4529 |
$as_echo "print -r" >&6; } ;; |
4530 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
4531 |
$as_echo "cat" >&6; } ;; |
4532 |
esac |
4533 |
|
4534 |
|
4535 |
|
4536 |
|
4537 |
|
4538 |
|
4539 |
|
4540 |
|
4541 |
|
4542 |
|
4543 |
|
4544 |
|
4545 |
|
4546 |
|
4547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4548 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4549 |
if ${ac_cv_path_SED+:} false; then : |
4550 |
$as_echo_n "(cached) " >&6 |
4551 |
else |
4552 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4553 |
for ac_i in 1 2 3 4 5 6 7; do |
4554 |
ac_script="$ac_script$as_nl$ac_script" |
4555 |
done |
4556 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
4557 |
{ ac_script=; unset ac_script;} |
4558 |
if test -z "$SED"; then |
4559 |
ac_path_SED_found=false |
4560 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4561 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4562 |
for as_dir in $PATH |
4563 |
do |
4564 |
IFS=$as_save_IFS |
4565 |
test -z "$as_dir" && as_dir=. |
4566 |
for ac_prog in sed gsed; do |
4567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4568 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4569 |
as_fn_executable_p "$ac_path_SED" || continue |
4570 |
# Check for GNU ac_path_SED and select it if it is found. |
4571 |
# Check for GNU $ac_path_SED |
4572 |
case `"$ac_path_SED" --version 2>&1` in |
4573 |
*GNU*) |
4574 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
4575 |
*) |
4576 |
ac_count=0 |
4577 |
$as_echo_n 0123456789 >"conftest.in" |
4578 |
while : |
4579 |
do |
4580 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4581 |
mv "conftest.tmp" "conftest.in" |
4582 |
cp "conftest.in" "conftest.nl" |
4583 |
$as_echo '' >> "conftest.nl" |
4584 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4585 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4586 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4587 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
4588 |
# Best one so far, save it but keep looking for a better one |
4589 |
ac_cv_path_SED="$ac_path_SED" |
4590 |
ac_path_SED_max=$ac_count |
4591 |
fi |
4592 |
# 10*(2^10) chars as input seems more than enough |
4593 |
test $ac_count -gt 10 && break |
4594 |
done |
4595 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4596 |
esac |
4597 |
|
4598 |
$ac_path_SED_found && break 3 |
4599 |
done |
4600 |
done |
4601 |
done |
4602 |
IFS=$as_save_IFS |
4603 |
if test -z "$ac_cv_path_SED"; then |
4604 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
4605 |
fi |
4606 |
else |
4607 |
ac_cv_path_SED=$SED |
4608 |
fi |
4609 |
|
4610 |
fi |
4611 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4612 |
$as_echo "$ac_cv_path_SED" >&6; } |
4613 |
SED="$ac_cv_path_SED" |
4614 |
rm -f conftest.sed |
4615 |
|
4616 |
test -z "$SED" && SED=sed |
4617 |
Xsed="$SED -e 1s/^X//" |
4618 |
|
4619 |
|
4620 |
|
4621 |
|
4622 |
|
4623 |
|
4624 |
|
4625 |
|
4626 |
|
4627 |
|
4628 |
|
4629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4630 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4631 |
if ${ac_cv_path_GREP+:} false; then : |
4632 |
$as_echo_n "(cached) " >&6 |
4633 |
else |
4634 |
if test -z "$GREP"; then |
4635 |
ac_path_GREP_found=false |
4636 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4637 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4638 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4639 |
do |
4640 |
IFS=$as_save_IFS |
4641 |
test -z "$as_dir" && as_dir=. |
4642 |
for ac_prog in grep ggrep; do |
4643 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4644 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4645 |
as_fn_executable_p "$ac_path_GREP" || continue |
4646 |
# Check for GNU ac_path_GREP and select it if it is found. |
4647 |
# Check for GNU $ac_path_GREP |
4648 |
case `"$ac_path_GREP" --version 2>&1` in |
4649 |
*GNU*) |
4650 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4651 |
*) |
4652 |
ac_count=0 |
4653 |
$as_echo_n 0123456789 >"conftest.in" |
4654 |
while : |
4655 |
do |
4656 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4657 |
mv "conftest.tmp" "conftest.in" |
4658 |
cp "conftest.in" "conftest.nl" |
4659 |
$as_echo 'GREP' >> "conftest.nl" |
4660 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4661 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4662 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4663 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4664 |
# Best one so far, save it but keep looking for a better one |
4665 |
ac_cv_path_GREP="$ac_path_GREP" |
4666 |
ac_path_GREP_max=$ac_count |
4667 |
fi |
4668 |
# 10*(2^10) chars as input seems more than enough |
4669 |
test $ac_count -gt 10 && break |
4670 |
done |
4671 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4672 |
esac |
4673 |
|
4674 |
$ac_path_GREP_found && break 3 |
4675 |
done |
4676 |
done |
4677 |
done |
4678 |
IFS=$as_save_IFS |
4679 |
if test -z "$ac_cv_path_GREP"; then |
4680 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4681 |
fi |
4682 |
else |
4683 |
ac_cv_path_GREP=$GREP |
4684 |
fi |
4685 |
|
4686 |
fi |
4687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4688 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4689 |
GREP="$ac_cv_path_GREP" |
4690 |
|
4691 |
|
4692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4693 |
$as_echo_n "checking for egrep... " >&6; } |
4694 |
if ${ac_cv_path_EGREP+:} false; then : |
4695 |
$as_echo_n "(cached) " >&6 |
4696 |
else |
4697 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4698 |
then ac_cv_path_EGREP="$GREP -E" |
4699 |
else |
4700 |
if test -z "$EGREP"; then |
4701 |
ac_path_EGREP_found=false |
4702 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4703 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4704 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4705 |
do |
4706 |
IFS=$as_save_IFS |
4707 |
test -z "$as_dir" && as_dir=. |
4708 |
for ac_prog in egrep; do |
4709 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4710 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4711 |
as_fn_executable_p "$ac_path_EGREP" || continue |
4712 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4713 |
# Check for GNU $ac_path_EGREP |
4714 |
case `"$ac_path_EGREP" --version 2>&1` in |
4715 |
*GNU*) |
4716 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4717 |
*) |
4718 |
ac_count=0 |
4719 |
$as_echo_n 0123456789 >"conftest.in" |
4720 |
while : |
4721 |
do |
4722 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4723 |
mv "conftest.tmp" "conftest.in" |
4724 |
cp "conftest.in" "conftest.nl" |
4725 |
$as_echo 'EGREP' >> "conftest.nl" |
4726 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4727 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4728 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4729 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4730 |
# Best one so far, save it but keep looking for a better one |
4731 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4732 |
ac_path_EGREP_max=$ac_count |
4733 |
fi |
4734 |
# 10*(2^10) chars as input seems more than enough |
4735 |
test $ac_count -gt 10 && break |
4736 |
done |
4737 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4738 |
esac |
4739 |
|
4740 |
$ac_path_EGREP_found && break 3 |
4741 |
done |
4742 |
done |
4743 |
done |
4744 |
IFS=$as_save_IFS |
4745 |
if test -z "$ac_cv_path_EGREP"; then |
4746 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4747 |
fi |
4748 |
else |
4749 |
ac_cv_path_EGREP=$EGREP |
4750 |
fi |
4751 |
|
4752 |
fi |
4753 |
fi |
4754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4755 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
4756 |
EGREP="$ac_cv_path_EGREP" |
4757 |
|
4758 |
|
4759 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4760 |
$as_echo_n "checking for fgrep... " >&6; } |
4761 |
if ${ac_cv_path_FGREP+:} false; then : |
4762 |
$as_echo_n "(cached) " >&6 |
4763 |
else |
4764 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4765 |
then ac_cv_path_FGREP="$GREP -F" |
4766 |
else |
4767 |
if test -z "$FGREP"; then |
4768 |
ac_path_FGREP_found=false |
4769 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4770 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4771 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4772 |
do |
4773 |
IFS=$as_save_IFS |
4774 |
test -z "$as_dir" && as_dir=. |
4775 |
for ac_prog in fgrep; do |
4776 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4777 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4778 |
as_fn_executable_p "$ac_path_FGREP" || continue |
4779 |
# Check for GNU ac_path_FGREP and select it if it is found. |
4780 |
# Check for GNU $ac_path_FGREP |
4781 |
case `"$ac_path_FGREP" --version 2>&1` in |
4782 |
*GNU*) |
4783 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
4784 |
*) |
4785 |
ac_count=0 |
4786 |
$as_echo_n 0123456789 >"conftest.in" |
4787 |
while : |
4788 |
do |
4789 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4790 |
mv "conftest.tmp" "conftest.in" |
4791 |
cp "conftest.in" "conftest.nl" |
4792 |
$as_echo 'FGREP' >> "conftest.nl" |
4793 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4794 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4795 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4796 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4797 |
# Best one so far, save it but keep looking for a better one |
4798 |
ac_cv_path_FGREP="$ac_path_FGREP" |
4799 |
ac_path_FGREP_max=$ac_count |
4800 |
fi |
4801 |
# 10*(2^10) chars as input seems more than enough |
4802 |
test $ac_count -gt 10 && break |
4803 |
done |
4804 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4805 |
esac |
4806 |
|
4807 |
$ac_path_FGREP_found && break 3 |
4808 |
done |
4809 |
done |
4810 |
done |
4811 |
IFS=$as_save_IFS |
4812 |
if test -z "$ac_cv_path_FGREP"; then |
4813 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4814 |
fi |
4815 |
else |
4816 |
ac_cv_path_FGREP=$FGREP |
4817 |
fi |
4818 |
|
4819 |
fi |
4820 |
fi |
4821 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4822 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
4823 |
FGREP="$ac_cv_path_FGREP" |
4824 |
|
4825 |
|
4826 |
test -z "$GREP" && GREP=grep |
4827 |
|
4828 |
|
4829 |
|
4830 |
|
4831 |
|
4832 |
|
4833 |
|
4834 |
|
4835 |
|
4836 |
|
4837 |
|
4838 |
|
4839 |
|
4840 |
|
4841 |
|
4842 |
|
4843 |
|
4844 |
|
4845 |
|
4846 |
# Check whether --with-gnu-ld was given. |
4847 |
if test "${with_gnu_ld+set}" = set; then : |
4848 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4849 |
else |
4850 |
with_gnu_ld=no |
4851 |
fi |
4852 |
|
4853 |
ac_prog=ld |
4854 |
if test "$GCC" = yes; then |
4855 |
# Check if gcc -print-prog-name=ld gives a path. |
4856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4857 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
4858 |
case $host in |
4859 |
*-*-mingw*) |
4860 |
# gcc leaves a trailing carriage return which upsets mingw |
4861 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4862 |
*) |
4863 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4864 |
esac |
4865 |
case $ac_prog in |
4866 |
# Accept absolute paths. |
4867 |
[\\/]* | ?:[\\/]*) |
4868 |
re_direlt='/[^/][^/]*/\.\./' |
4869 |
# Canonicalize the pathname of ld |
4870 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4871 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4872 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4873 |
done |
4874 |
test -z "$LD" && LD="$ac_prog" |
4875 |
;; |
4876 |
"") |
4877 |
# If it fails, then pretend we aren't using GCC. |
4878 |
ac_prog=ld |
4879 |
;; |
4880 |
*) |
4881 |
# If it is relative, then search for the first ld in PATH. |
4882 |
with_gnu_ld=unknown |
4883 |
;; |
4884 |
esac |
4885 |
elif test "$with_gnu_ld" = yes; then |
4886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4887 |
$as_echo_n "checking for GNU ld... " >&6; } |
4888 |
else |
4889 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4890 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4891 |
fi |
4892 |
if ${lt_cv_path_LD+:} false; then : |
4893 |
$as_echo_n "(cached) " >&6 |
4894 |
else |
4895 |
if test -z "$LD"; then |
4896 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4897 |
for ac_dir in $PATH; do |
4898 |
IFS="$lt_save_ifs" |
4899 |
test -z "$ac_dir" && ac_dir=. |
4900 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4901 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
4902 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4903 |
# but apparently some variants of GNU ld only accept -v. |
4904 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4905 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4906 |
*GNU* | *'with BFD'*) |
4907 |
test "$with_gnu_ld" != no && break |
4908 |
;; |
4909 |
*) |
4910 |
test "$with_gnu_ld" != yes && break |
4911 |
;; |
4912 |
esac |
4913 |
fi |
4914 |
done |
4915 |
IFS="$lt_save_ifs" |
4916 |
else |
4917 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4918 |
fi |
4919 |
fi |
4920 |
|
4921 |
LD="$lt_cv_path_LD" |
4922 |
if test -n "$LD"; then |
4923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4924 |
$as_echo "$LD" >&6; } |
4925 |
else |
4926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4927 |
$as_echo "no" >&6; } |
4928 |
fi |
4929 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4931 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4932 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
4933 |
$as_echo_n "(cached) " >&6 |
4934 |
else |
4935 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4936 |
case `$LD -v 2>&1 </dev/null` in |
4937 |
*GNU* | *'with BFD'*) |
4938 |
lt_cv_prog_gnu_ld=yes |
4939 |
;; |
4940 |
*) |
4941 |
lt_cv_prog_gnu_ld=no |
4942 |
;; |
4943 |
esac |
4944 |
fi |
4945 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4946 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
4947 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4948 |
|
4949 |
|
4950 |
|
4951 |
|
4952 |
|
4953 |
|
4954 |
|
4955 |
|
4956 |
|
4957 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4958 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4959 |
if ${lt_cv_path_NM+:} false; then : |
4960 |
$as_echo_n "(cached) " >&6 |
4961 |
else |
4962 |
if test -n "$NM"; then |
4963 |
# Let the user override the test. |
4964 |
lt_cv_path_NM="$NM" |
4965 |
else |
4966 |
lt_nm_to_check="${ac_tool_prefix}nm" |
4967 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4968 |
lt_nm_to_check="$lt_nm_to_check nm" |
4969 |
fi |
4970 |
for lt_tmp_nm in $lt_nm_to_check; do |
4971 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4972 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4973 |
IFS="$lt_save_ifs" |
4974 |
test -z "$ac_dir" && ac_dir=. |
4975 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
4976 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4977 |
# Check to see if the nm accepts a BSD-compat flag. |
4978 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4979 |
# nm: unknown option "B" ignored |
4980 |
# Tru64's nm complains that /dev/null is an invalid object file |
4981 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4982 |
*/dev/null* | *'Invalid file or object type'*) |
4983 |
lt_cv_path_NM="$tmp_nm -B" |
4984 |
break |
4985 |
;; |
4986 |
*) |
4987 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4988 |
*/dev/null*) |
4989 |
lt_cv_path_NM="$tmp_nm -p" |
4990 |
break |
4991 |
;; |
4992 |
*) |
4993 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4994 |
continue # so that we can try to find one that supports BSD flags |
4995 |
;; |
4996 |
esac |
4997 |
;; |
4998 |
esac |
4999 |
fi |
5000 |
done |
5001 |
IFS="$lt_save_ifs" |
5002 |
done |
5003 |
: ${lt_cv_path_NM=no} |
5004 |
fi |
5005 |
fi |
5006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5007 |
$as_echo "$lt_cv_path_NM" >&6; } |
5008 |
if test "$lt_cv_path_NM" != "no"; then |
5009 |
NM="$lt_cv_path_NM" |
5010 |
else |
5011 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
5012 |
if test -n "$DUMPBIN"; then : |
5013 |
# Let the user override the test. |
5014 |
else |
5015 |
if test -n "$ac_tool_prefix"; then |
5016 |
for ac_prog in dumpbin "link -dump" |
5017 |
do |
5018 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5019 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5021 |
$as_echo_n "checking for $ac_word... " >&6; } |
5022 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
5023 |
$as_echo_n "(cached) " >&6 |
5024 |
else |
5025 |
if test -n "$DUMPBIN"; then |
5026 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
5027 |
else |
5028 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5029 |
for as_dir in $PATH |
5030 |
do |
5031 |
IFS=$as_save_IFS |
5032 |
test -z "$as_dir" && as_dir=. |
5033 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5034 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5035 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5036 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5037 |
break 2 |
5038 |
fi |
5039 |
done |
5040 |
done |
5041 |
IFS=$as_save_IFS |
5042 |
|
5043 |
fi |
5044 |
fi |
5045 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
5046 |
if test -n "$DUMPBIN"; then |
5047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5048 |
$as_echo "$DUMPBIN" >&6; } |
5049 |
else |
5050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5051 |
$as_echo "no" >&6; } |
5052 |
fi |
5053 |
|
5054 |
|
5055 |
test -n "$DUMPBIN" && break |
5056 |
done |
5057 |
fi |
5058 |
if test -z "$DUMPBIN"; then |
5059 |
ac_ct_DUMPBIN=$DUMPBIN |
5060 |
for ac_prog in dumpbin "link -dump" |
5061 |
do |
5062 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5063 |
set dummy $ac_prog; ac_word=$2 |
5064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5065 |
$as_echo_n "checking for $ac_word... " >&6; } |
5066 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5067 |
$as_echo_n "(cached) " >&6 |
5068 |
else |
5069 |
if test -n "$ac_ct_DUMPBIN"; then |
5070 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
5071 |
else |
5072 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5073 |
for as_dir in $PATH |
5074 |
do |
5075 |
IFS=$as_save_IFS |
5076 |
test -z "$as_dir" && as_dir=. |
5077 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5078 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5079 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5080 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5081 |
break 2 |
5082 |
fi |
5083 |
done |
5084 |
done |
5085 |
IFS=$as_save_IFS |
5086 |
|
5087 |
fi |
5088 |
fi |
5089 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5090 |
if test -n "$ac_ct_DUMPBIN"; then |
5091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5092 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
5093 |
else |
5094 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5095 |
$as_echo "no" >&6; } |
5096 |
fi |
5097 |
|
5098 |
|
5099 |
test -n "$ac_ct_DUMPBIN" && break |
5100 |
done |
5101 |
|
5102 |
if test "x$ac_ct_DUMPBIN" = x; then |
5103 |
DUMPBIN=":" |
5104 |
else |
5105 |
case $cross_compiling:$ac_tool_warned in |
5106 |
yes:) |
5107 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5108 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5109 |
ac_tool_warned=yes ;; |
5110 |
esac |
5111 |
DUMPBIN=$ac_ct_DUMPBIN |
5112 |
fi |
5113 |
fi |
5114 |
|
5115 |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5116 |
*COFF*) |
5117 |
DUMPBIN="$DUMPBIN -symbols" |
5118 |
;; |
5119 |
*) |
5120 |
DUMPBIN=: |
5121 |
;; |
5122 |
esac |
5123 |
fi |
5124 |
|
5125 |
if test "$DUMPBIN" != ":"; then |
5126 |
NM="$DUMPBIN" |
5127 |
fi |
5128 |
fi |
5129 |
test -z "$NM" && NM=nm |
5130 |
|
5131 |
|
5132 |
|
5133 |
|
5134 |
|
5135 |
|
5136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5137 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
5138 |
if ${lt_cv_nm_interface+:} false; then : |
5139 |
$as_echo_n "(cached) " >&6 |
5140 |
else |
5141 |
lt_cv_nm_interface="BSD nm" |
5142 |
echo "int some_variable = 0;" > conftest.$ac_ext |
5143 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
5144 |
(eval "$ac_compile" 2>conftest.err) |
5145 |
cat conftest.err >&5 |
5146 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5147 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5148 |
cat conftest.err >&5 |
5149 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
5150 |
cat conftest.out >&5 |
5151 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5152 |
lt_cv_nm_interface="MS dumpbin" |
5153 |
fi |
5154 |
rm -f conftest* |
5155 |
fi |
5156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5157 |
$as_echo "$lt_cv_nm_interface" >&6; } |
5158 |
|
5159 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5160 |
$as_echo_n "checking whether ln -s works... " >&6; } |
5161 |
LN_S=$as_ln_s |
5162 |
if test "$LN_S" = "ln -s"; then |
5163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5164 |
$as_echo "yes" >&6; } |
5165 |
else |
5166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5167 |
$as_echo "no, using $LN_S" >&6; } |
5168 |
fi |
5169 |
|
5170 |
# find the maximum length of command line arguments |
5171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5172 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
5173 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
5174 |
$as_echo_n "(cached) " >&6 |
5175 |
else |
5176 |
i=0 |
5177 |
teststring="ABCD" |
5178 |
|
5179 |
case $build_os in |
5180 |
msdosdjgpp*) |
5181 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
5182 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
5183 |
# during glob expansion). Even if it were fixed, the result of this |
5184 |
# check would be larger than it should be. |
5185 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5186 |
;; |
5187 |
|
5188 |
gnu*) |
5189 |
# Under GNU Hurd, this test is not required because there is |
5190 |
# no limit to the length of command line arguments. |
5191 |
# Libtool will interpret -1 as no limit whatsoever |
5192 |
lt_cv_sys_max_cmd_len=-1; |
5193 |
;; |
5194 |
|
5195 |
cygwin* | mingw* | cegcc*) |
5196 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
5197 |
# about 5 minutes as the teststring grows exponentially. |
5198 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
5199 |
# you end up with a "frozen" computer, even though with patience |
5200 |
# the test eventually succeeds (with a max line length of 256k). |
5201 |
# Instead, let's just punt: use the minimum linelength reported by |
5202 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
5203 |
lt_cv_sys_max_cmd_len=8192; |
5204 |
;; |
5205 |
|
5206 |
mint*) |
5207 |
# On MiNT this can take a long time and run out of memory. |
5208 |
lt_cv_sys_max_cmd_len=8192; |
5209 |
;; |
5210 |
|
5211 |
amigaos*) |
5212 |
# On AmigaOS with pdksh, this test takes hours, literally. |
5213 |
# So we just punt and use a minimum line length of 8192. |
5214 |
lt_cv_sys_max_cmd_len=8192; |
5215 |
;; |
5216 |
|
5217 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5218 |
# This has been around since 386BSD, at least. Likely further. |
5219 |
if test -x /sbin/sysctl; then |
5220 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5221 |
elif test -x /usr/sbin/sysctl; then |
5222 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5223 |
else |
5224 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5225 |
fi |
5226 |
# And add a safety zone |
5227 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5228 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5229 |
;; |
5230 |
|
5231 |
interix*) |
5232 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
5233 |
lt_cv_sys_max_cmd_len=196608 |
5234 |
;; |
5235 |
|
5236 |
os2*) |
5237 |
# The test takes a long time on OS/2. |
5238 |
lt_cv_sys_max_cmd_len=8192 |
5239 |
;; |
5240 |
|
5241 |
osf*) |
5242 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5243 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5244 |
# nice to cause kernel panics so lets avoid the loop below. |
5245 |
# First set a reasonable default. |
5246 |
lt_cv_sys_max_cmd_len=16384 |
5247 |
# |
5248 |
if test -x /sbin/sysconfig; then |
5249 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5250 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
5251 |
esac |
5252 |
fi |
5253 |
;; |
5254 |
sco3.2v5*) |
5255 |
lt_cv_sys_max_cmd_len=102400 |
5256 |
;; |
5257 |
sysv5* | sco5v6* | sysv4.2uw2*) |
5258 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5259 |
if test -n "$kargmax"; then |
5260 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5261 |
else |
5262 |
lt_cv_sys_max_cmd_len=32768 |
5263 |
fi |
5264 |
;; |
5265 |
*) |
5266 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5267 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
5268 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5269 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5270 |
else |
5271 |
# Make teststring a little bigger before we do anything with it. |
5272 |
# a 1K string should be a reasonable start. |
5273 |
for i in 1 2 3 4 5 6 7 8 ; do |
5274 |
teststring=$teststring$teststring |
5275 |
done |
5276 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5277 |
# If test is not a shell built-in, we'll probably end up computing a |
5278 |
# maximum length that is only half of the actual maximum length, but |
5279 |
# we can't tell. |
5280 |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
5281 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
5282 |
test $i != 17 # 1/2 MB should be enough |
5283 |
do |
5284 |
i=`expr $i + 1` |
5285 |
teststring=$teststring$teststring |
5286 |
done |
5287 |
# Only check the string length outside the loop. |
5288 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
5289 |
teststring= |
5290 |
# Add a significant safety factor because C++ compilers can tack on |
5291 |
# massive amounts of additional arguments before passing them to the |
5292 |
# linker. It appears as though 1/2 is a usable value. |
5293 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5294 |
fi |
5295 |
;; |
5296 |
esac |
5297 |
|
5298 |
fi |
5299 |
|
5300 |
if test -n $lt_cv_sys_max_cmd_len ; then |
5301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5302 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5303 |
else |
5304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5305 |
$as_echo "none" >&6; } |
5306 |
fi |
5307 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
5308 |
|
5309 |
|
5310 |
|
5311 |
|
5312 |
|
5313 |
|
5314 |
: ${CP="cp -f"} |
5315 |
: ${MV="mv -f"} |
5316 |
: ${RM="rm -f"} |
5317 |
|
5318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5319 |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
5320 |
# Try some XSI features |
5321 |
xsi_shell=no |
5322 |
( _lt_dummy="a/b/c" |
5323 |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
5324 |
= c,a/b,b/c, \ |
5325 |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
5326 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
5327 |
&& xsi_shell=yes |
5328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5329 |
$as_echo "$xsi_shell" >&6; } |
5330 |
|
5331 |
|
5332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5333 |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
5334 |
lt_shell_append=no |
5335 |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
5336 |
>/dev/null 2>&1 \ |
5337 |
&& lt_shell_append=yes |
5338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5339 |
$as_echo "$lt_shell_append" >&6; } |
5340 |
|
5341 |
|
5342 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5343 |
lt_unset=unset |
5344 |
else |
5345 |
lt_unset=false |
5346 |
fi |
5347 |
|
5348 |
|
5349 |
|
5350 |
|
5351 |
|
5352 |
# test EBCDIC or ASCII |
5353 |
case `echo X|tr X '\101'` in |
5354 |
A) # ASCII based system |
5355 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
5356 |
lt_SP2NL='tr \040 \012' |
5357 |
lt_NL2SP='tr \015\012 \040\040' |
5358 |
;; |
5359 |
*) # EBCDIC based system |
5360 |
lt_SP2NL='tr \100 \n' |
5361 |
lt_NL2SP='tr \r\n \100\100' |
5362 |
;; |
5363 |
esac |
5364 |
|
5365 |
|
5366 |
|
5367 |
|
5368 |
|
5369 |
|
5370 |
|
5371 |
|
5372 |
|
5373 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5374 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
5375 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
5376 |
$as_echo_n "(cached) " >&6 |
5377 |
else |
5378 |
case $host in |
5379 |
*-*-mingw* ) |
5380 |
case $build in |
5381 |
*-*-mingw* ) # actually msys |
5382 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
5383 |
;; |
5384 |
*-*-cygwin* ) |
5385 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
5386 |
;; |
5387 |
* ) # otherwise, assume *nix |
5388 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
5389 |
;; |
5390 |
esac |
5391 |
;; |
5392 |
*-*-cygwin* ) |
5393 |
case $build in |
5394 |
*-*-mingw* ) # actually msys |
5395 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
5396 |
;; |
5397 |
*-*-cygwin* ) |
5398 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5399 |
;; |
5400 |
* ) # otherwise, assume *nix |
5401 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
5402 |
;; |
5403 |
esac |
5404 |
;; |
5405 |
* ) # unhandled hosts (and "normal" native builds) |
5406 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5407 |
;; |
5408 |
esac |
5409 |
|
5410 |
fi |
5411 |
|
5412 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
5413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
5414 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
5415 |
|
5416 |
|
5417 |
|
5418 |
|
5419 |
|
5420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
5421 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
5422 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
5423 |
$as_echo_n "(cached) " >&6 |
5424 |
else |
5425 |
#assume ordinary cross tools, or native build. |
5426 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
5427 |
case $host in |
5428 |
*-*-mingw* ) |
5429 |
case $build in |
5430 |
*-*-mingw* ) # actually msys |
5431 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
5432 |
;; |
5433 |
esac |
5434 |
;; |
5435 |
esac |
5436 |
|
5437 |
fi |
5438 |
|
5439 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
5440 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
5441 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
5442 |
|
5443 |
|
5444 |
|
5445 |
|
5446 |
|
5447 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5448 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
5449 |
if ${lt_cv_ld_reload_flag+:} false; then : |
5450 |
$as_echo_n "(cached) " >&6 |
5451 |
else |
5452 |
lt_cv_ld_reload_flag='-r' |
5453 |
fi |
5454 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5455 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
5456 |
reload_flag=$lt_cv_ld_reload_flag |
5457 |
case $reload_flag in |
5458 |
"" | " "*) ;; |
5459 |
*) reload_flag=" $reload_flag" ;; |
5460 |
esac |
5461 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5462 |
case $host_os in |
5463 |
cygwin* | mingw* | pw32* | cegcc*) |
5464 |
if test "$GCC" != yes; then |
5465 |
reload_cmds=false |
5466 |
fi |
5467 |
;; |
5468 |
darwin*) |
5469 |
if test "$GCC" = yes; then |
5470 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
5471 |
else |
5472 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5473 |
fi |
5474 |
;; |
5475 |
esac |
5476 |
|
5477 |
|
5478 |
|
5479 |
|
5480 |
|
5481 |
|
5482 |
|
5483 |
|
5484 |
|
5485 |
if test -n "$ac_tool_prefix"; then |
5486 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
5487 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5489 |
$as_echo_n "checking for $ac_word... " >&6; } |
5490 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
5491 |
$as_echo_n "(cached) " >&6 |
5492 |
else |
5493 |
if test -n "$OBJDUMP"; then |
5494 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
5495 |
else |
5496 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5497 |
for as_dir in $PATH |
5498 |
do |
5499 |
IFS=$as_save_IFS |
5500 |
test -z "$as_dir" && as_dir=. |
5501 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5502 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5503 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5504 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5505 |
break 2 |
5506 |
fi |
5507 |
done |
5508 |
done |
5509 |
IFS=$as_save_IFS |
5510 |
|
5511 |
fi |
5512 |
fi |
5513 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
5514 |
if test -n "$OBJDUMP"; then |
5515 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5516 |
$as_echo "$OBJDUMP" >&6; } |
5517 |
else |
5518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5519 |
$as_echo "no" >&6; } |
5520 |
fi |
5521 |
|
5522 |
|
5523 |
fi |
5524 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
5525 |
ac_ct_OBJDUMP=$OBJDUMP |
5526 |
# Extract the first word of "objdump", so it can be a program name with args. |
5527 |
set dummy objdump; ac_word=$2 |
5528 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5529 |
$as_echo_n "checking for $ac_word... " >&6; } |
5530 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5531 |
$as_echo_n "(cached) " >&6 |
5532 |
else |
5533 |
if test -n "$ac_ct_OBJDUMP"; then |
5534 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
5535 |
else |
5536 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5537 |
for as_dir in $PATH |
5538 |
do |
5539 |
IFS=$as_save_IFS |
5540 |
test -z "$as_dir" && as_dir=. |
5541 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5542 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5543 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5544 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5545 |
break 2 |
5546 |
fi |
5547 |
done |
5548 |
done |
5549 |
IFS=$as_save_IFS |
5550 |
|
5551 |
fi |
5552 |
fi |
5553 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5554 |
if test -n "$ac_ct_OBJDUMP"; then |
5555 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5556 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
5557 |
else |
5558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5559 |
$as_echo "no" >&6; } |
5560 |
fi |
5561 |
|
5562 |
if test "x$ac_ct_OBJDUMP" = x; then |
5563 |
OBJDUMP="false" |
5564 |
else |
5565 |
case $cross_compiling:$ac_tool_warned in |
5566 |
yes:) |
5567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5568 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5569 |
ac_tool_warned=yes ;; |
5570 |
esac |
5571 |
OBJDUMP=$ac_ct_OBJDUMP |
5572 |
fi |
5573 |
else |
5574 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
5575 |
fi |
5576 |
|
5577 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5578 |
|
5579 |
|
5580 |
|
5581 |
|
5582 |
|
5583 |
|
5584 |
|
5585 |
|
5586 |
|
5587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5588 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5589 |
if ${lt_cv_deplibs_check_method+:} false; then : |
5590 |
$as_echo_n "(cached) " >&6 |
5591 |
else |
5592 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
5593 |
lt_cv_file_magic_test_file= |
5594 |
lt_cv_deplibs_check_method='unknown' |
5595 |
# Need to set the preceding variable on all platforms that support |
5596 |
# interlibrary dependencies. |
5597 |
# 'none' -- dependencies not supported. |
5598 |
# `unknown' -- same as none, but documents that we really don't know. |
5599 |
# 'pass_all' -- all dependencies passed with no checks. |
5600 |
# 'test_compile' -- check by making test program. |
5601 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
5602 |
# which responds to the $file_magic_cmd with a given extended regex. |
5603 |
# If you have `file' or equivalent on your system and you're not sure |
5604 |
# whether `pass_all' will *always* work, you probably want this one. |
5605 |
|
5606 |
case $host_os in |
5607 |
aix[4-9]*) |
5608 |
lt_cv_deplibs_check_method=pass_all |
5609 |
;; |
5610 |
|
5611 |
beos*) |
5612 |
lt_cv_deplibs_check_method=pass_all |
5613 |
;; |
5614 |
|
5615 |
bsdi[45]*) |
5616 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5617 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
5618 |
lt_cv_file_magic_test_file=/shlib/libc.so |
5619 |
;; |
5620 |
|
5621 |
cygwin*) |
5622 |
# func_win32_libid is a shell function defined in ltmain.sh |
5623 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5624 |
lt_cv_file_magic_cmd='func_win32_libid' |
5625 |
;; |
5626 |
|
5627 |
mingw* | pw32*) |
5628 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
5629 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5630 |
# unless we find 'file', for example because we are cross-compiling. |
5631 |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5632 |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
5633 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5634 |
lt_cv_file_magic_cmd='func_win32_libid' |
5635 |
else |
5636 |
# Keep this pattern in sync with the one in func_win32_libid. |
5637 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
5638 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5639 |
fi |
5640 |
;; |
5641 |
|
5642 |
cegcc*) |
5643 |
# use the weaker test based on 'objdump'. See mingw*. |
5644 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
5645 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5646 |
;; |
5647 |
|
5648 |
darwin* | rhapsody*) |
5649 |
lt_cv_deplibs_check_method=pass_all |
5650 |
;; |
5651 |
|
5652 |
freebsd* | dragonfly*) |
5653 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5654 |
case $host_cpu in |
5655 |
i*86 ) |
5656 |
# Not sure whether the presence of OpenBSD here was a mistake. |
5657 |
# Let's accept both of them until this is cleared up. |
5658 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5659 |
lt_cv_file_magic_cmd=/usr/bin/file |
5660 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5661 |
;; |
5662 |
esac |
5663 |
else |
5664 |
lt_cv_deplibs_check_method=pass_all |
5665 |
fi |
5666 |
;; |
5667 |
|
5668 |
gnu*) |
5669 |
lt_cv_deplibs_check_method=pass_all |
5670 |
;; |
5671 |
|
5672 |
haiku*) |
5673 |
lt_cv_deplibs_check_method=pass_all |
5674 |
;; |
5675 |
|
5676 |
hpux10.20* | hpux11*) |
5677 |
lt_cv_file_magic_cmd=/usr/bin/file |
5678 |
case $host_cpu in |
5679 |
ia64*) |
5680 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5681 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5682 |
;; |
5683 |
hppa*64*) |
5684 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
5685 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5686 |
;; |
5687 |
*) |
5688 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5689 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5690 |
;; |
5691 |
esac |
5692 |
;; |
5693 |
|
5694 |
interix[3-9]*) |
5695 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5696 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5697 |
;; |
5698 |
|
5699 |
irix5* | irix6* | nonstopux*) |
5700 |
case $LD in |
5701 |
*-32|*"-32 ") libmagic=32-bit;; |
5702 |
*-n32|*"-n32 ") libmagic=N32;; |
5703 |
*-64|*"-64 ") libmagic=64-bit;; |
5704 |
*) libmagic=never-match;; |
5705 |
esac |
5706 |
lt_cv_deplibs_check_method=pass_all |
5707 |
;; |
5708 |
|
5709 |
# This must be glibc/ELF. |
5710 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
5711 |
lt_cv_deplibs_check_method=pass_all |
5712 |
;; |
5713 |
|
5714 |
netbsd*) |
5715 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5716 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5717 |
else |
5718 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5719 |
fi |
5720 |
;; |
5721 |
|
5722 |
newos6*) |
5723 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5724 |
lt_cv_file_magic_cmd=/usr/bin/file |
5725 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5726 |
;; |
5727 |
|
5728 |
*nto* | *qnx*) |
5729 |
lt_cv_deplibs_check_method=pass_all |
5730 |
;; |
5731 |
|
5732 |
openbsd*) |
5733 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5734 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5735 |
else |
5736 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5737 |
fi |
5738 |
;; |
5739 |
|
5740 |
osf3* | osf4* | osf5*) |
5741 |
lt_cv_deplibs_check_method=pass_all |
5742 |
;; |
5743 |
|
5744 |
rdos*) |
5745 |
lt_cv_deplibs_check_method=pass_all |
5746 |
;; |
5747 |
|
5748 |
solaris*) |
5749 |
lt_cv_deplibs_check_method=pass_all |
5750 |
;; |
5751 |
|
5752 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5753 |
lt_cv_deplibs_check_method=pass_all |
5754 |
;; |
5755 |
|
5756 |
sysv4 | sysv4.3*) |
5757 |
case $host_vendor in |
5758 |
motorola) |
5759 |
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]' |
5760 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5761 |
;; |
5762 |
ncr) |
5763 |
lt_cv_deplibs_check_method=pass_all |
5764 |
;; |
5765 |
sequent) |
5766 |
lt_cv_file_magic_cmd='/bin/file' |
5767 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5768 |
;; |
5769 |
sni) |
5770 |
lt_cv_file_magic_cmd='/bin/file' |
5771 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5772 |
lt_cv_file_magic_test_file=/lib/libc.so |
5773 |
;; |
5774 |
siemens) |
5775 |
lt_cv_deplibs_check_method=pass_all |
5776 |
;; |
5777 |
pc) |
5778 |
lt_cv_deplibs_check_method=pass_all |
5779 |
;; |
5780 |
esac |
5781 |
;; |
5782 |
|
5783 |
tpf*) |
5784 |
lt_cv_deplibs_check_method=pass_all |
5785 |
;; |
5786 |
esac |
5787 |
|
5788 |
fi |
5789 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5790 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
5791 |
|
5792 |
file_magic_glob= |
5793 |
want_nocaseglob=no |
5794 |
if test "$build" = "$host"; then |
5795 |
case $host_os in |
5796 |
mingw* | pw32*) |
5797 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
5798 |
want_nocaseglob=yes |
5799 |
else |
5800 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
5801 |
fi |
5802 |
;; |
5803 |
esac |
5804 |
fi |
5805 |
|
5806 |
file_magic_cmd=$lt_cv_file_magic_cmd |
5807 |
deplibs_check_method=$lt_cv_deplibs_check_method |
5808 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5809 |
|
5810 |
|
5811 |
|
5812 |
|
5813 |
|
5814 |
|
5815 |
|
5816 |
|
5817 |
|
5818 |
|
5819 |
|
5820 |
|
5821 |
|
5822 |
|
5823 |
|
5824 |
|
5825 |
|
5826 |
|
5827 |
|
5828 |
|
5829 |
|
5830 |
|
5831 |
if test -n "$ac_tool_prefix"; then |
5832 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5833 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
5834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5835 |
$as_echo_n "checking for $ac_word... " >&6; } |
5836 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
5837 |
$as_echo_n "(cached) " >&6 |
5838 |
else |
5839 |
if test -n "$DLLTOOL"; then |
5840 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
5841 |
else |
5842 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5843 |
for as_dir in $PATH |
5844 |
do |
5845 |
IFS=$as_save_IFS |
5846 |
test -z "$as_dir" && as_dir=. |
5847 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5848 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5849 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5850 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5851 |
break 2 |
5852 |
fi |
5853 |
done |
5854 |
done |
5855 |
IFS=$as_save_IFS |
5856 |
|
5857 |
fi |
5858 |
fi |
5859 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
5860 |
if test -n "$DLLTOOL"; then |
5861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
5862 |
$as_echo "$DLLTOOL" >&6; } |
5863 |
else |
5864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5865 |
$as_echo "no" >&6; } |
5866 |
fi |
5867 |
|
5868 |
|
5869 |
fi |
5870 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
5871 |
ac_ct_DLLTOOL=$DLLTOOL |
5872 |
# Extract the first word of "dlltool", so it can be a program name with args. |
5873 |
set dummy dlltool; ac_word=$2 |
5874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5875 |
$as_echo_n "checking for $ac_word... " >&6; } |
5876 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
5877 |
$as_echo_n "(cached) " >&6 |
5878 |
else |
5879 |
if test -n "$ac_ct_DLLTOOL"; then |
5880 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
5881 |
else |
5882 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5883 |
for as_dir in $PATH |
5884 |
do |
5885 |
IFS=$as_save_IFS |
5886 |
test -z "$as_dir" && as_dir=. |
5887 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5888 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5889 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5890 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5891 |
break 2 |
5892 |
fi |
5893 |
done |
5894 |
done |
5895 |
IFS=$as_save_IFS |
5896 |
|
5897 |
fi |
5898 |
fi |
5899 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5900 |
if test -n "$ac_ct_DLLTOOL"; then |
5901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
5902 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
5903 |
else |
5904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5905 |
$as_echo "no" >&6; } |
5906 |
fi |
5907 |
|
5908 |
if test "x$ac_ct_DLLTOOL" = x; then |
5909 |
DLLTOOL="false" |
5910 |
else |
5911 |
case $cross_compiling:$ac_tool_warned in |
5912 |
yes:) |
5913 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5914 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5915 |
ac_tool_warned=yes ;; |
5916 |
esac |
5917 |
DLLTOOL=$ac_ct_DLLTOOL |
5918 |
fi |
5919 |
else |
5920 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
5921 |
fi |
5922 |
|
5923 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5924 |
|
5925 |
|
5926 |
|
5927 |
|
5928 |
|
5929 |
|
5930 |
|
5931 |
|
5932 |
|
5933 |
|
5934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5935 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
5936 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
5937 |
$as_echo_n "(cached) " >&6 |
5938 |
else |
5939 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
5940 |
|
5941 |
case $host_os in |
5942 |
cygwin* | mingw* | pw32* | cegcc*) |
5943 |
# two different shell functions defined in ltmain.sh |
5944 |
# decide which to use based on capabilities of $DLLTOOL |
5945 |
case `$DLLTOOL --help 2>&1` in |
5946 |
*--identify-strict*) |
5947 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
5948 |
;; |
5949 |
*) |
5950 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
5951 |
;; |
5952 |
esac |
5953 |
;; |
5954 |
*) |
5955 |
# fallback: assume linklib IS sharedlib |
5956 |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
5957 |
;; |
5958 |
esac |
5959 |
|
5960 |
fi |
5961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5962 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
5963 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
5964 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5965 |
|
5966 |
|
5967 |
|
5968 |
|
5969 |
|
5970 |
|
5971 |
|
5972 |
if test -n "$ac_tool_prefix"; then |
5973 |
for ac_prog in ar |
5974 |
do |
5975 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5976 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5977 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5978 |
$as_echo_n "checking for $ac_word... " >&6; } |
5979 |
if ${ac_cv_prog_AR+:} false; then : |
5980 |
$as_echo_n "(cached) " >&6 |
5981 |
else |
5982 |
if test -n "$AR"; then |
5983 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5984 |
else |
5985 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5986 |
for as_dir in $PATH |
5987 |
do |
5988 |
IFS=$as_save_IFS |
5989 |
test -z "$as_dir" && as_dir=. |
5990 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5991 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5992 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
5993 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5994 |
break 2 |
5995 |
fi |
5996 |
done |
5997 |
done |
5998 |
IFS=$as_save_IFS |
5999 |
|
6000 |
fi |
6001 |
fi |
6002 |
AR=$ac_cv_prog_AR |
6003 |
if test -n "$AR"; then |
6004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6005 |
$as_echo "$AR" >&6; } |
6006 |
else |
6007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6008 |
$as_echo "no" >&6; } |
6009 |
fi |
6010 |
|
6011 |
|
6012 |
test -n "$AR" && break |
6013 |
done |
6014 |
fi |
6015 |
if test -z "$AR"; then |
6016 |
ac_ct_AR=$AR |
6017 |
for ac_prog in ar |
6018 |
do |
6019 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
6020 |
set dummy $ac_prog; ac_word=$2 |
6021 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6022 |
$as_echo_n "checking for $ac_word... " >&6; } |
6023 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
6024 |
$as_echo_n "(cached) " >&6 |
6025 |
else |
6026 |
if test -n "$ac_ct_AR"; then |
6027 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6028 |
else |
6029 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6030 |
for as_dir in $PATH |
6031 |
do |
6032 |
IFS=$as_save_IFS |
6033 |
test -z "$as_dir" && as_dir=. |
6034 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6035 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6036 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
6037 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6038 |
break 2 |
6039 |
fi |
6040 |
done |
6041 |
done |
6042 |
IFS=$as_save_IFS |
6043 |
|
6044 |
fi |
6045 |
fi |
6046 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6047 |
if test -n "$ac_ct_AR"; then |
6048 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6049 |
$as_echo "$ac_ct_AR" >&6; } |
6050 |
else |
6051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6052 |
$as_echo "no" >&6; } |
6053 |
fi |
6054 |
|
6055 |
|
6056 |
test -n "$ac_ct_AR" && break |
6057 |
done |
6058 |
|
6059 |
if test "x$ac_ct_AR" = x; then |
6060 |
AR="false" |
6061 |
else |
6062 |
case $cross_compiling:$ac_tool_warned in |
6063 |
yes:) |
6064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6065 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6066 |
ac_tool_warned=yes ;; |
6067 |
esac |
6068 |
AR=$ac_ct_AR |
6069 |
fi |
6070 |
fi |
6071 |
|
6072 |
: ${AR=ar} |
6073 |
: ${AR_FLAGS=cru} |
6074 |
|
6075 |
|
6076 |
|
6077 |
|
6078 |
|
6079 |
|
6080 |
|
6081 |
|
6082 |
|
6083 |
|
6084 |
|
6085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
6086 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
6087 |
if ${lt_cv_ar_at_file+:} false; then : |
6088 |
$as_echo_n "(cached) " >&6 |
6089 |
else |
6090 |
lt_cv_ar_at_file=no |
6091 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6092 |
/* end confdefs.h. */ |
6093 |
|
6094 |
int |
6095 |
main () |
6096 |
{ |
6097 |
|
6098 |
; |
6099 |
return 0; |
6100 |
} |
6101 |
_ACEOF |
6102 |
if ac_fn_c_try_compile "$LINENO"; then : |
6103 |
echo conftest.$ac_objext > conftest.lst |
6104 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
6105 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6106 |
(eval $lt_ar_try) 2>&5 |
6107 |
ac_status=$? |
6108 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6109 |
test $ac_status = 0; } |
6110 |
if test "$ac_status" -eq 0; then |
6111 |
# Ensure the archiver fails upon bogus file names. |
6112 |
rm -f conftest.$ac_objext libconftest.a |
6113 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6114 |
(eval $lt_ar_try) 2>&5 |
6115 |
ac_status=$? |
6116 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6117 |
test $ac_status = 0; } |
6118 |
if test "$ac_status" -ne 0; then |
6119 |
lt_cv_ar_at_file=@ |
6120 |
fi |
6121 |
fi |
6122 |
rm -f conftest.* libconftest.a |
6123 |
|
6124 |
fi |
6125 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6126 |
|
6127 |
fi |
6128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
6129 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
6130 |
|
6131 |
if test "x$lt_cv_ar_at_file" = xno; then |
6132 |
archiver_list_spec= |
6133 |
else |
6134 |
archiver_list_spec=$lt_cv_ar_at_file |
6135 |
fi |
6136 |
|
6137 |
|
6138 |
|
6139 |
|
6140 |
|
6141 |
|
6142 |
|
6143 |
if test -n "$ac_tool_prefix"; then |
6144 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6145 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6147 |
$as_echo_n "checking for $ac_word... " >&6; } |
6148 |
if ${ac_cv_prog_STRIP+:} false; then : |
6149 |
$as_echo_n "(cached) " >&6 |
6150 |
else |
6151 |
if test -n "$STRIP"; then |
6152 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6153 |
else |
6154 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6155 |
for as_dir in $PATH |
6156 |
do |
6157 |
IFS=$as_save_IFS |
6158 |
test -z "$as_dir" && as_dir=. |
6159 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6160 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6161 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6162 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6163 |
break 2 |
6164 |
fi |
6165 |
done |
6166 |
done |
6167 |
IFS=$as_save_IFS |
6168 |
|
6169 |
fi |
6170 |
fi |
6171 |
STRIP=$ac_cv_prog_STRIP |
6172 |
if test -n "$STRIP"; then |
6173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6174 |
$as_echo "$STRIP" >&6; } |
6175 |
else |
6176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6177 |
$as_echo "no" >&6; } |
6178 |
fi |
6179 |
|
6180 |
|
6181 |
fi |
6182 |
if test -z "$ac_cv_prog_STRIP"; then |
6183 |
ac_ct_STRIP=$STRIP |
6184 |
# Extract the first word of "strip", so it can be a program name with args. |
6185 |
set dummy strip; ac_word=$2 |
6186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6187 |
$as_echo_n "checking for $ac_word... " >&6; } |
6188 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
6189 |
$as_echo_n "(cached) " >&6 |
6190 |
else |
6191 |
if test -n "$ac_ct_STRIP"; then |
6192 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6193 |
else |
6194 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6195 |
for as_dir in $PATH |
6196 |
do |
6197 |
IFS=$as_save_IFS |
6198 |
test -z "$as_dir" && as_dir=. |
6199 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6200 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6201 |
ac_cv_prog_ac_ct_STRIP="strip" |
6202 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6203 |
break 2 |
6204 |
fi |
6205 |
done |
6206 |
done |
6207 |
IFS=$as_save_IFS |
6208 |
|
6209 |
fi |
6210 |
fi |
6211 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6212 |
if test -n "$ac_ct_STRIP"; then |
6213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6214 |
$as_echo "$ac_ct_STRIP" >&6; } |
6215 |
else |
6216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6217 |
$as_echo "no" >&6; } |
6218 |
fi |
6219 |
|
6220 |
if test "x$ac_ct_STRIP" = x; then |
6221 |
STRIP=":" |
6222 |
else |
6223 |
case $cross_compiling:$ac_tool_warned in |
6224 |
yes:) |
6225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6226 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6227 |
ac_tool_warned=yes ;; |
6228 |
esac |
6229 |
STRIP=$ac_ct_STRIP |
6230 |
fi |
6231 |
else |
6232 |
STRIP="$ac_cv_prog_STRIP" |
6233 |
fi |
6234 |
|
6235 |
test -z "$STRIP" && STRIP=: |
6236 |
|
6237 |
|
6238 |
|
6239 |
|
6240 |
|
6241 |
|
6242 |
if test -n "$ac_tool_prefix"; then |
6243 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6244 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6246 |
$as_echo_n "checking for $ac_word... " >&6; } |
6247 |
if ${ac_cv_prog_RANLIB+:} false; then : |
6248 |
$as_echo_n "(cached) " >&6 |
6249 |
else |
6250 |
if test -n "$RANLIB"; then |
6251 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6252 |
else |
6253 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6254 |
for as_dir in $PATH |
6255 |
do |
6256 |
IFS=$as_save_IFS |
6257 |
test -z "$as_dir" && as_dir=. |
6258 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6259 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6260 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6261 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6262 |
break 2 |
6263 |
fi |
6264 |
done |
6265 |
done |
6266 |
IFS=$as_save_IFS |
6267 |
|
6268 |
fi |
6269 |
fi |
6270 |
RANLIB=$ac_cv_prog_RANLIB |
6271 |
if test -n "$RANLIB"; then |
6272 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6273 |
$as_echo "$RANLIB" >&6; } |
6274 |
else |
6275 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6276 |
$as_echo "no" >&6; } |
6277 |
fi |
6278 |
|
6279 |
|
6280 |
fi |
6281 |
if test -z "$ac_cv_prog_RANLIB"; then |
6282 |
ac_ct_RANLIB=$RANLIB |
6283 |
# Extract the first word of "ranlib", so it can be a program name with args. |
6284 |
set dummy ranlib; ac_word=$2 |
6285 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6286 |
$as_echo_n "checking for $ac_word... " >&6; } |
6287 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6288 |
$as_echo_n "(cached) " >&6 |
6289 |
else |
6290 |
if test -n "$ac_ct_RANLIB"; then |
6291 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6292 |
else |
6293 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6294 |
for as_dir in $PATH |
6295 |
do |
6296 |
IFS=$as_save_IFS |
6297 |
test -z "$as_dir" && as_dir=. |
6298 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6299 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6300 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6301 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6302 |
break 2 |
6303 |
fi |
6304 |
done |
6305 |
done |
6306 |
IFS=$as_save_IFS |
6307 |
|
6308 |
fi |
6309 |
fi |
6310 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6311 |
if test -n "$ac_ct_RANLIB"; then |
6312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6313 |
$as_echo "$ac_ct_RANLIB" >&6; } |
6314 |
else |
6315 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6316 |
$as_echo "no" >&6; } |
6317 |
fi |
6318 |
|
6319 |
if test "x$ac_ct_RANLIB" = x; then |
6320 |
RANLIB=":" |
6321 |
else |
6322 |
case $cross_compiling:$ac_tool_warned in |
6323 |
yes:) |
6324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6325 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6326 |
ac_tool_warned=yes ;; |
6327 |
esac |
6328 |
RANLIB=$ac_ct_RANLIB |
6329 |
fi |
6330 |
else |
6331 |
RANLIB="$ac_cv_prog_RANLIB" |
6332 |
fi |
6333 |
|
6334 |
test -z "$RANLIB" && RANLIB=: |
6335 |
|
6336 |
|
6337 |
|
6338 |
|
6339 |
|
6340 |
|
6341 |
# Determine commands to create old-style static archives. |
6342 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
6343 |
old_postinstall_cmds='chmod 644 $oldlib' |
6344 |
old_postuninstall_cmds= |
6345 |
|
6346 |
if test -n "$RANLIB"; then |
6347 |
case $host_os in |
6348 |
openbsd*) |
6349 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
6350 |
;; |
6351 |
*) |
6352 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
6353 |
;; |
6354 |
esac |
6355 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
6356 |
fi |
6357 |
|
6358 |
case $host_os in |
6359 |
darwin*) |
6360 |
lock_old_archive_extraction=yes ;; |
6361 |
*) |
6362 |
lock_old_archive_extraction=no ;; |
6363 |
esac |
6364 |
|
6365 |
|
6366 |
|
6367 |
|
6368 |
|
6369 |
|
6370 |
|
6371 |
|
6372 |
|
6373 |
|
6374 |
|
6375 |
|
6376 |
|
6377 |
|
6378 |
|
6379 |
|
6380 |
|
6381 |
|
6382 |
|
6383 |
|
6384 |
|
6385 |
|
6386 |
|
6387 |
|
6388 |
|
6389 |
|
6390 |
|
6391 |
|
6392 |
|
6393 |
|
6394 |
|
6395 |
|
6396 |
|
6397 |
|
6398 |
|
6399 |
|
6400 |
|
6401 |
|
6402 |
|
6403 |
# If no C compiler was specified, use CC. |
6404 |
LTCC=${LTCC-"$CC"} |
6405 |
|
6406 |
# If no C compiler flags were specified, use CFLAGS. |
6407 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6408 |
|
6409 |
# Allow CC to be a program name with arguments. |
6410 |
compiler=$CC |
6411 |
|
6412 |
|
6413 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
6414 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6415 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6416 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6417 |
$as_echo_n "(cached) " >&6 |
6418 |
else |
6419 |
|
6420 |
# These are sane defaults that work on at least a few old systems. |
6421 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6422 |
|
6423 |
# Character class describing NM global symbol codes. |
6424 |
symcode='[BCDEGRST]' |
6425 |
|
6426 |
# Regexp to match symbols that can be accessed directly from C. |
6427 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6428 |
|
6429 |
# Define system-specific variables. |
6430 |
case $host_os in |
6431 |
aix*) |
6432 |
symcode='[BCDT]' |
6433 |
;; |
6434 |
cygwin* | mingw* | pw32* | cegcc*) |
6435 |
symcode='[ABCDGISTW]' |
6436 |
;; |
6437 |
hpux*) |
6438 |
if test "$host_cpu" = ia64; then |
6439 |
symcode='[ABCDEGRST]' |
6440 |
fi |
6441 |
;; |
6442 |
irix* | nonstopux*) |
6443 |
symcode='[BCDEGRST]' |
6444 |
;; |
6445 |
osf*) |
6446 |
symcode='[BCDEGQRST]' |
6447 |
;; |
6448 |
solaris*) |
6449 |
symcode='[BDRT]' |
6450 |
;; |
6451 |
sco3.2v5*) |
6452 |
symcode='[DT]' |
6453 |
;; |
6454 |
sysv4.2uw2*) |
6455 |
symcode='[DT]' |
6456 |
;; |
6457 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6458 |
symcode='[ABDT]' |
6459 |
;; |
6460 |
sysv4) |
6461 |
symcode='[DFNSTU]' |
6462 |
;; |
6463 |
esac |
6464 |
|
6465 |
# If we're using GNU nm, then use its standard symbol codes. |
6466 |
case `$NM -V 2>&1` in |
6467 |
*GNU* | *'with BFD'*) |
6468 |
symcode='[ABCDGIRSTW]' ;; |
6469 |
esac |
6470 |
|
6471 |
# Transform an extracted symbol line into a proper C declaration. |
6472 |
# Some systems (esp. on ia64) link data and code symbols differently, |
6473 |
# so use this general approach. |
6474 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6475 |
|
6476 |
# Transform an extracted symbol line into symbol name and symbol address |
6477 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6478 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
6479 |
|
6480 |
# Handle CRLF in mingw tool chain |
6481 |
opt_cr= |
6482 |
case $build_os in |
6483 |
mingw*) |
6484 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6485 |
;; |
6486 |
esac |
6487 |
|
6488 |
# Try without a prefix underscore, then with it. |
6489 |
for ac_symprfx in "" "_"; do |
6490 |
|
6491 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6492 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
6493 |
|
6494 |
# Write the raw and C identifiers. |
6495 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6496 |
# Fake it for dumpbin and say T for any non-static function |
6497 |
# and D for any global variable. |
6498 |
# Also find C++ and __fastcall symbols from MSVC++, |
6499 |
# which start with @ or ?. |
6500 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6501 |
" {last_section=section; section=\$ 3};"\ |
6502 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6503 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6504 |
" \$ 0!~/External *\|/{next};"\ |
6505 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6506 |
" {if(hide[section]) next};"\ |
6507 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
6508 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
6509 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
6510 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
6511 |
" ' prfx=^$ac_symprfx" |
6512 |
else |
6513 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6514 |
fi |
6515 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
6516 |
|
6517 |
# Check to see that the pipe works correctly. |
6518 |
pipe_works=no |
6519 |
|
6520 |
rm -f conftest* |
6521 |
cat > conftest.$ac_ext <<_LT_EOF |
6522 |
#ifdef __cplusplus |
6523 |
extern "C" { |
6524 |
#endif |
6525 |
char nm_test_var; |
6526 |
void nm_test_func(void); |
6527 |
void nm_test_func(void){} |
6528 |
#ifdef __cplusplus |
6529 |
} |
6530 |
#endif |
6531 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
6532 |
_LT_EOF |
6533 |
|
6534 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6535 |
(eval $ac_compile) 2>&5 |
6536 |
ac_status=$? |
6537 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6538 |
test $ac_status = 0; }; then |
6539 |
# Now try to grab the symbols. |
6540 |
nlist=conftest.nm |
6541 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6542 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
6543 |
ac_status=$? |
6544 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6545 |
test $ac_status = 0; } && test -s "$nlist"; then |
6546 |
# Try sorting and uniquifying the output. |
6547 |
if sort "$nlist" | uniq > "$nlist"T; then |
6548 |
mv -f "$nlist"T "$nlist" |
6549 |
else |
6550 |
rm -f "$nlist"T |
6551 |
fi |
6552 |
|
6553 |
# Make sure that we snagged all the symbols we need. |
6554 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6555 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6556 |
cat <<_LT_EOF > conftest.$ac_ext |
6557 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6558 |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
6559 |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
6560 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6561 |
# define LT_DLSYM_CONST |
6562 |
#elif defined(__osf__) |
6563 |
/* This system does not cope well with relocations in const data. */ |
6564 |
# define LT_DLSYM_CONST |
6565 |
#else |
6566 |
# define LT_DLSYM_CONST const |
6567 |
#endif |
6568 |
|
6569 |
#ifdef __cplusplus |
6570 |
extern "C" { |
6571 |
#endif |
6572 |
|
6573 |
_LT_EOF |
6574 |
# Now generate the symbol file. |
6575 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6576 |
|
6577 |
cat <<_LT_EOF >> conftest.$ac_ext |
6578 |
|
6579 |
/* The mapping between symbol names and symbols. */ |
6580 |
LT_DLSYM_CONST struct { |
6581 |
const char *name; |
6582 |
void *address; |
6583 |
} |
6584 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
6585 |
{ |
6586 |
{ "@PROGRAM@", (void *) 0 }, |
6587 |
_LT_EOF |
6588 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6589 |
cat <<\_LT_EOF >> conftest.$ac_ext |
6590 |
{0, (void *) 0} |
6591 |
}; |
6592 |
|
6593 |
/* This works around a problem in FreeBSD linker */ |
6594 |
#ifdef FREEBSD_WORKAROUND |
6595 |
static const void *lt_preloaded_setup() { |
6596 |
return lt__PROGRAM__LTX_preloaded_symbols; |
6597 |
} |
6598 |
#endif |
6599 |
|
6600 |
#ifdef __cplusplus |
6601 |
} |
6602 |
#endif |
6603 |
_LT_EOF |
6604 |
# Now try linking the two files. |
6605 |
mv conftest.$ac_objext conftstm.$ac_objext |
6606 |
lt_globsym_save_LIBS=$LIBS |
6607 |
lt_globsym_save_CFLAGS=$CFLAGS |
6608 |
LIBS="conftstm.$ac_objext" |
6609 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6610 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6611 |
(eval $ac_link) 2>&5 |
6612 |
ac_status=$? |
6613 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6614 |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
6615 |
pipe_works=yes |
6616 |
fi |
6617 |
LIBS=$lt_globsym_save_LIBS |
6618 |
CFLAGS=$lt_globsym_save_CFLAGS |
6619 |
else |
6620 |
echo "cannot find nm_test_func in $nlist" >&5 |
6621 |
fi |
6622 |
else |
6623 |
echo "cannot find nm_test_var in $nlist" >&5 |
6624 |
fi |
6625 |
else |
6626 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6627 |
fi |
6628 |
else |
6629 |
echo "$progname: failed program was:" >&5 |
6630 |
cat conftest.$ac_ext >&5 |
6631 |
fi |
6632 |
rm -rf conftest* conftst* |
6633 |
|
6634 |
# Do not use the global_symbol_pipe unless it works. |
6635 |
if test "$pipe_works" = yes; then |
6636 |
break |
6637 |
else |
6638 |
lt_cv_sys_global_symbol_pipe= |
6639 |
fi |
6640 |
done |
6641 |
|
6642 |
fi |
6643 |
|
6644 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6645 |
lt_cv_sys_global_symbol_to_cdecl= |
6646 |
fi |
6647 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6648 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6649 |
$as_echo "failed" >&6; } |
6650 |
else |
6651 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6652 |
$as_echo "ok" >&6; } |
6653 |
fi |
6654 |
|
6655 |
# Response file support. |
6656 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6657 |
nm_file_list_spec='@' |
6658 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
6659 |
nm_file_list_spec='@' |
6660 |
fi |
6661 |
|
6662 |
|
6663 |
|
6664 |
|
6665 |
|
6666 |
|
6667 |
|
6668 |
|
6669 |
|
6670 |
|
6671 |
|
6672 |
|
6673 |
|
6674 |
|
6675 |
|
6676 |
|
6677 |
|
6678 |
|
6679 |
|
6680 |
|
6681 |
|
6682 |
|
6683 |
|
6684 |
|
6685 |
|
6686 |
|
6687 |
|
6688 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6689 |
$as_echo_n "checking for sysroot... " >&6; } |
6690 |
|
6691 |
# Check whether --with-sysroot was given. |
6692 |
if test "${with_sysroot+set}" = set; then : |
6693 |
withval=$with_sysroot; |
6694 |
else |
6695 |
with_sysroot=no |
6696 |
fi |
6697 |
|
6698 |
|
6699 |
lt_sysroot= |
6700 |
case ${with_sysroot} in #( |
6701 |
yes) |
6702 |
if test "$GCC" = yes; then |
6703 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6704 |
fi |
6705 |
;; #( |
6706 |
/*) |
6707 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
6708 |
;; #( |
6709 |
no|'') |
6710 |
;; #( |
6711 |
*) |
6712 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
6713 |
$as_echo "${with_sysroot}" >&6; } |
6714 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6715 |
;; |
6716 |
esac |
6717 |
|
6718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6719 |
$as_echo "${lt_sysroot:-no}" >&6; } |
6720 |
|
6721 |
|
6722 |
|
6723 |
|
6724 |
|
6725 |
# Check whether --enable-libtool-lock was given. |
6726 |
if test "${enable_libtool_lock+set}" = set; then : |
6727 |
enableval=$enable_libtool_lock; |
6728 |
fi |
6729 |
|
6730 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6731 |
|
6732 |
# Some flags need to be propagated to the compiler or linker for good |
6733 |
# libtool support. |
6734 |
case $host in |
6735 |
ia64-*-hpux*) |
6736 |
# Find out which ABI we are using. |
6737 |
echo 'int i;' > conftest.$ac_ext |
6738 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6739 |
(eval $ac_compile) 2>&5 |
6740 |
ac_status=$? |
6741 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6742 |
test $ac_status = 0; }; then |
6743 |
case `/usr/bin/file conftest.$ac_objext` in |
6744 |
*ELF-32*) |
6745 |
HPUX_IA64_MODE="32" |
6746 |
;; |
6747 |
*ELF-64*) |
6748 |
HPUX_IA64_MODE="64" |
6749 |
;; |
6750 |
esac |
6751 |
fi |
6752 |
rm -rf conftest* |
6753 |
;; |
6754 |
*-*-irix6*) |
6755 |
# Find out which ABI we are using. |
6756 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6757 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6758 |
(eval $ac_compile) 2>&5 |
6759 |
ac_status=$? |
6760 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6761 |
test $ac_status = 0; }; then |
6762 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
6763 |
case `/usr/bin/file conftest.$ac_objext` in |
6764 |
*32-bit*) |
6765 |
LD="${LD-ld} -melf32bsmip" |
6766 |
;; |
6767 |
*N32*) |
6768 |
LD="${LD-ld} -melf32bmipn32" |
6769 |
;; |
6770 |
*64-bit*) |
6771 |
LD="${LD-ld} -melf64bmip" |
6772 |
;; |
6773 |
esac |
6774 |
else |
6775 |
case `/usr/bin/file conftest.$ac_objext` in |
6776 |
*32-bit*) |
6777 |
LD="${LD-ld} -32" |
6778 |
;; |
6779 |
*N32*) |
6780 |
LD="${LD-ld} -n32" |
6781 |
;; |
6782 |
*64-bit*) |
6783 |
LD="${LD-ld} -64" |
6784 |
;; |
6785 |
esac |
6786 |
fi |
6787 |
fi |
6788 |
rm -rf conftest* |
6789 |
;; |
6790 |
|
6791 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6792 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6793 |
# Find out which ABI we are using. |
6794 |
echo 'int i;' > conftest.$ac_ext |
6795 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6796 |
(eval $ac_compile) 2>&5 |
6797 |
ac_status=$? |
6798 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6799 |
test $ac_status = 0; }; then |
6800 |
case `/usr/bin/file conftest.o` in |
6801 |
*32-bit*) |
6802 |
case $host in |
6803 |
x86_64-*kfreebsd*-gnu) |
6804 |
LD="${LD-ld} -m elf_i386_fbsd" |
6805 |
;; |
6806 |
x86_64-*linux*) |
6807 |
LD="${LD-ld} -m elf_i386" |
6808 |
;; |
6809 |
ppc64-*linux*|powerpc64-*linux*) |
6810 |
LD="${LD-ld} -m elf32ppclinux" |
6811 |
;; |
6812 |
s390x-*linux*) |
6813 |
LD="${LD-ld} -m elf_s390" |
6814 |
;; |
6815 |
sparc64-*linux*) |
6816 |
LD="${LD-ld} -m elf32_sparc" |
6817 |
;; |
6818 |
esac |
6819 |
;; |
6820 |
*64-bit*) |
6821 |
case $host in |
6822 |
x86_64-*kfreebsd*-gnu) |
6823 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
6824 |
;; |
6825 |
x86_64-*linux*) |
6826 |
LD="${LD-ld} -m elf_x86_64" |
6827 |
;; |
6828 |
ppc*-*linux*|powerpc*-*linux*) |
6829 |
LD="${LD-ld} -m elf64ppc" |
6830 |
;; |
6831 |
s390*-*linux*|s390*-*tpf*) |
6832 |
LD="${LD-ld} -m elf64_s390" |
6833 |
;; |
6834 |
sparc*-*linux*) |
6835 |
LD="${LD-ld} -m elf64_sparc" |
6836 |
;; |
6837 |
esac |
6838 |
;; |
6839 |
esac |
6840 |
fi |
6841 |
rm -rf conftest* |
6842 |
;; |
6843 |
|
6844 |
*-*-sco3.2v5*) |
6845 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
6846 |
SAVE_CFLAGS="$CFLAGS" |
6847 |
CFLAGS="$CFLAGS -belf" |
6848 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6849 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6850 |
if ${lt_cv_cc_needs_belf+:} false; then : |
6851 |
$as_echo_n "(cached) " >&6 |
6852 |
else |
6853 |
ac_ext=c |
6854 |
ac_cpp='$CPP $CPPFLAGS' |
6855 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6856 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6857 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6858 |
|
6859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6860 |
/* end confdefs.h. */ |
6861 |
|
6862 |
int |
6863 |
main () |
6864 |
{ |
6865 |
|
6866 |
; |
6867 |
return 0; |
6868 |
} |
6869 |
_ACEOF |
6870 |
if ac_fn_c_try_link "$LINENO"; then : |
6871 |
lt_cv_cc_needs_belf=yes |
6872 |
else |
6873 |
lt_cv_cc_needs_belf=no |
6874 |
fi |
6875 |
rm -f core conftest.err conftest.$ac_objext \ |
6876 |
conftest$ac_exeext conftest.$ac_ext |
6877 |
ac_ext=c |
6878 |
ac_cpp='$CPP $CPPFLAGS' |
6879 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6880 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6881 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6882 |
|
6883 |
fi |
6884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6885 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
6886 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6887 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6888 |
CFLAGS="$SAVE_CFLAGS" |
6889 |
fi |
6890 |
;; |
6891 |
*-*solaris*) |
6892 |
# Find out which ABI we are using. |
6893 |
echo 'int i;' > conftest.$ac_ext |
6894 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6895 |
(eval $ac_compile) 2>&5 |
6896 |
ac_status=$? |
6897 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6898 |
test $ac_status = 0; }; then |
6899 |
case `/usr/bin/file conftest.o` in |
6900 |
*64-bit*) |
6901 |
case $lt_cv_prog_gnu_ld in |
6902 |
yes*) |
6903 |
case $host in |
6904 |
i?86-*-solaris*) |
6905 |
LD="${LD-ld} -m elf_x86_64" |
6906 |
;; |
6907 |
sparc*-*-solaris*) |
6908 |
LD="${LD-ld} -m elf64_sparc" |
6909 |
;; |
6910 |
esac |
6911 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
6912 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
6913 |
LD="${LD-ld}_sol2" |
6914 |
fi |
6915 |
;; |
6916 |
*) |
6917 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
6918 |
LD="${LD-ld} -64" |
6919 |
fi |
6920 |
;; |
6921 |
esac |
6922 |
;; |
6923 |
esac |
6924 |
fi |
6925 |
rm -rf conftest* |
6926 |
;; |
6927 |
esac |
6928 |
|
6929 |
need_locks="$enable_libtool_lock" |
6930 |
|
6931 |
if test -n "$ac_tool_prefix"; then |
6932 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
6933 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
6934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6935 |
$as_echo_n "checking for $ac_word... " >&6; } |
6936 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
6937 |
$as_echo_n "(cached) " >&6 |
6938 |
else |
6939 |
if test -n "$MANIFEST_TOOL"; then |
6940 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
6941 |
else |
6942 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6943 |
for as_dir in $PATH |
6944 |
do |
6945 |
IFS=$as_save_IFS |
6946 |
test -z "$as_dir" && as_dir=. |
6947 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6948 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6949 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
6950 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6951 |
break 2 |
6952 |
fi |
6953 |
done |
6954 |
done |
6955 |
IFS=$as_save_IFS |
6956 |
|
6957 |
fi |
6958 |
fi |
6959 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
6960 |
if test -n "$MANIFEST_TOOL"; then |
6961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
6962 |
$as_echo "$MANIFEST_TOOL" >&6; } |
6963 |
else |
6964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6965 |
$as_echo "no" >&6; } |
6966 |
fi |
6967 |
|
6968 |
|
6969 |
fi |
6970 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
6971 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
6972 |
# Extract the first word of "mt", so it can be a program name with args. |
6973 |
set dummy mt; ac_word=$2 |
6974 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6975 |
$as_echo_n "checking for $ac_word... " >&6; } |
6976 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
6977 |
$as_echo_n "(cached) " >&6 |
6978 |
else |
6979 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6980 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
6981 |
else |
6982 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6983 |
for as_dir in $PATH |
6984 |
do |
6985 |
IFS=$as_save_IFS |
6986 |
test -z "$as_dir" && as_dir=. |
6987 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6988 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6989 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
6990 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6991 |
break 2 |
6992 |
fi |
6993 |
done |
6994 |
done |
6995 |
IFS=$as_save_IFS |
6996 |
|
6997 |
fi |
6998 |
fi |
6999 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
7000 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
7001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
7002 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
7003 |
else |
7004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7005 |
$as_echo "no" >&6; } |
7006 |
fi |
7007 |
|
7008 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7009 |
MANIFEST_TOOL=":" |
7010 |
else |
7011 |
case $cross_compiling:$ac_tool_warned in |
7012 |
yes:) |
7013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7014 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7015 |
ac_tool_warned=yes ;; |
7016 |
esac |
7017 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
7018 |
fi |
7019 |
else |
7020 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
7021 |
fi |
7022 |
|
7023 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7024 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
7025 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
7026 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
7027 |
$as_echo_n "(cached) " >&6 |
7028 |
else |
7029 |
lt_cv_path_mainfest_tool=no |
7030 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
7031 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
7032 |
cat conftest.err >&5 |
7033 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
7034 |
lt_cv_path_mainfest_tool=yes |
7035 |
fi |
7036 |
rm -f conftest* |
7037 |
fi |
7038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
7039 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
7040 |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
7041 |
MANIFEST_TOOL=: |
7042 |
fi |
7043 |
|
7044 |
|
7045 |
|
7046 |
|
7047 |
|
7048 |
|
7049 |
case $host_os in |
7050 |
rhapsody* | darwin*) |
7051 |
if test -n "$ac_tool_prefix"; then |
7052 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
7053 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
7054 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7055 |
$as_echo_n "checking for $ac_word... " >&6; } |
7056 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
7057 |
$as_echo_n "(cached) " >&6 |
7058 |
else |
7059 |
if test -n "$DSYMUTIL"; then |
7060 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
7061 |
else |
7062 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7063 |
for as_dir in $PATH |
7064 |
do |
7065 |
IFS=$as_save_IFS |
7066 |
test -z "$as_dir" && as_dir=. |
7067 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7068 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7069 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7070 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7071 |
break 2 |
7072 |
fi |
7073 |
done |
7074 |
done |
7075 |
IFS=$as_save_IFS |
7076 |
|
7077 |
fi |
7078 |
fi |
7079 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7080 |
if test -n "$DSYMUTIL"; then |
7081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7082 |
$as_echo "$DSYMUTIL" >&6; } |
7083 |
else |
7084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7085 |
$as_echo "no" >&6; } |
7086 |
fi |
7087 |
|
7088 |
|
7089 |
fi |
7090 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
7091 |
ac_ct_DSYMUTIL=$DSYMUTIL |
7092 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
7093 |
set dummy dsymutil; ac_word=$2 |
7094 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7095 |
$as_echo_n "checking for $ac_word... " >&6; } |
7096 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
7097 |
$as_echo_n "(cached) " >&6 |
7098 |
else |
7099 |
if test -n "$ac_ct_DSYMUTIL"; then |
7100 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
7101 |
else |
7102 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7103 |
for as_dir in $PATH |
7104 |
do |
7105 |
IFS=$as_save_IFS |
7106 |
test -z "$as_dir" && as_dir=. |
7107 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7108 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7109 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7110 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7111 |
break 2 |
7112 |
fi |
7113 |
done |
7114 |
done |
7115 |
IFS=$as_save_IFS |
7116 |
|
7117 |
fi |
7118 |
fi |
7119 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7120 |
if test -n "$ac_ct_DSYMUTIL"; then |
7121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7122 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
7123 |
else |
7124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7125 |
$as_echo "no" >&6; } |
7126 |
fi |
7127 |
|
7128 |
if test "x$ac_ct_DSYMUTIL" = x; then |
7129 |
DSYMUTIL=":" |
7130 |
else |
7131 |
case $cross_compiling:$ac_tool_warned in |
7132 |
yes:) |
7133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7134 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7135 |
ac_tool_warned=yes ;; |
7136 |
esac |
7137 |
DSYMUTIL=$ac_ct_DSYMUTIL |
7138 |
fi |
7139 |
else |
7140 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
7141 |
fi |
7142 |
|
7143 |
if test -n "$ac_tool_prefix"; then |
7144 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7145 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
7146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7147 |
$as_echo_n "checking for $ac_word... " >&6; } |
7148 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
7149 |
$as_echo_n "(cached) " >&6 |
7150 |
else |
7151 |
if test -n "$NMEDIT"; then |
7152 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
7153 |
else |
7154 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7155 |
for as_dir in $PATH |
7156 |
do |
7157 |
IFS=$as_save_IFS |
7158 |
test -z "$as_dir" && as_dir=. |
7159 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7160 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7161 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7162 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7163 |
break 2 |
7164 |
fi |
7165 |
done |
7166 |
done |
7167 |
IFS=$as_save_IFS |
7168 |
|
7169 |
fi |
7170 |
fi |
7171 |
NMEDIT=$ac_cv_prog_NMEDIT |
7172 |
if test -n "$NMEDIT"; then |
7173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7174 |
$as_echo "$NMEDIT" >&6; } |
7175 |
else |
7176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7177 |
$as_echo "no" >&6; } |
7178 |
fi |
7179 |
|
7180 |
|
7181 |
fi |
7182 |
if test -z "$ac_cv_prog_NMEDIT"; then |
7183 |
ac_ct_NMEDIT=$NMEDIT |
7184 |
# Extract the first word of "nmedit", so it can be a program name with args. |
7185 |
set dummy nmedit; ac_word=$2 |
7186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7187 |
$as_echo_n "checking for $ac_word... " >&6; } |
7188 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
7189 |
$as_echo_n "(cached) " >&6 |
7190 |
else |
7191 |
if test -n "$ac_ct_NMEDIT"; then |
7192 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
7193 |
else |
7194 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7195 |
for as_dir in $PATH |
7196 |
do |
7197 |
IFS=$as_save_IFS |
7198 |
test -z "$as_dir" && as_dir=. |
7199 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7200 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7201 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7202 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7203 |
break 2 |
7204 |
fi |
7205 |
done |
7206 |
done |
7207 |
IFS=$as_save_IFS |
7208 |
|
7209 |
fi |
7210 |
fi |
7211 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7212 |
if test -n "$ac_ct_NMEDIT"; then |
7213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7214 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
7215 |
else |
7216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7217 |
$as_echo "no" >&6; } |
7218 |
fi |
7219 |
|
7220 |
if test "x$ac_ct_NMEDIT" = x; then |
7221 |
NMEDIT=":" |
7222 |
else |
7223 |
case $cross_compiling:$ac_tool_warned in |
7224 |
yes:) |
7225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7226 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7227 |
ac_tool_warned=yes ;; |
7228 |
esac |
7229 |
NMEDIT=$ac_ct_NMEDIT |
7230 |
fi |
7231 |
else |
7232 |
NMEDIT="$ac_cv_prog_NMEDIT" |
7233 |
fi |
7234 |
|
7235 |
if test -n "$ac_tool_prefix"; then |
7236 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7237 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
7238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7239 |
$as_echo_n "checking for $ac_word... " >&6; } |
7240 |
if ${ac_cv_prog_LIPO+:} false; then : |
7241 |
$as_echo_n "(cached) " >&6 |
7242 |
else |
7243 |
if test -n "$LIPO"; then |
7244 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
7245 |
else |
7246 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7247 |
for as_dir in $PATH |
7248 |
do |
7249 |
IFS=$as_save_IFS |
7250 |
test -z "$as_dir" && as_dir=. |
7251 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7252 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7253 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7254 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7255 |
break 2 |
7256 |
fi |
7257 |
done |
7258 |
done |
7259 |
IFS=$as_save_IFS |
7260 |
|
7261 |
fi |
7262 |
fi |
7263 |
LIPO=$ac_cv_prog_LIPO |
7264 |
if test -n "$LIPO"; then |
7265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7266 |
$as_echo "$LIPO" >&6; } |
7267 |
else |
7268 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7269 |
$as_echo "no" >&6; } |
7270 |
fi |
7271 |
|
7272 |
|
7273 |
fi |
7274 |
if test -z "$ac_cv_prog_LIPO"; then |
7275 |
ac_ct_LIPO=$LIPO |
7276 |
# Extract the first word of "lipo", so it can be a program name with args. |
7277 |
set dummy lipo; ac_word=$2 |
7278 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7279 |
$as_echo_n "checking for $ac_word... " >&6; } |
7280 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
7281 |
$as_echo_n "(cached) " >&6 |
7282 |
else |
7283 |
if test -n "$ac_ct_LIPO"; then |
7284 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
7285 |
else |
7286 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7287 |
for as_dir in $PATH |
7288 |
do |
7289 |
IFS=$as_save_IFS |
7290 |
test -z "$as_dir" && as_dir=. |
7291 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7292 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7293 |
ac_cv_prog_ac_ct_LIPO="lipo" |
7294 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7295 |
break 2 |
7296 |
fi |
7297 |
done |
7298 |
done |
7299 |
IFS=$as_save_IFS |
7300 |
|
7301 |
fi |
7302 |
fi |
7303 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7304 |
if test -n "$ac_ct_LIPO"; then |
7305 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7306 |
$as_echo "$ac_ct_LIPO" >&6; } |
7307 |
else |
7308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7309 |
$as_echo "no" >&6; } |
7310 |
fi |
7311 |
|
7312 |
if test "x$ac_ct_LIPO" = x; then |
7313 |
LIPO=":" |
7314 |
else |
7315 |
case $cross_compiling:$ac_tool_warned in |
7316 |
yes:) |
7317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7318 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7319 |
ac_tool_warned=yes ;; |
7320 |
esac |
7321 |
LIPO=$ac_ct_LIPO |
7322 |
fi |
7323 |
else |
7324 |
LIPO="$ac_cv_prog_LIPO" |
7325 |
fi |
7326 |
|
7327 |
if test -n "$ac_tool_prefix"; then |
7328 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7329 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
7330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7331 |
$as_echo_n "checking for $ac_word... " >&6; } |
7332 |
if ${ac_cv_prog_OTOOL+:} false; then : |
7333 |
$as_echo_n "(cached) " >&6 |
7334 |
else |
7335 |
if test -n "$OTOOL"; then |
7336 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
7337 |
else |
7338 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7339 |
for as_dir in $PATH |
7340 |
do |
7341 |
IFS=$as_save_IFS |
7342 |
test -z "$as_dir" && as_dir=. |
7343 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7344 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7345 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7346 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7347 |
break 2 |
7348 |
fi |
7349 |
done |
7350 |
done |
7351 |
IFS=$as_save_IFS |
7352 |
|
7353 |
fi |
7354 |
fi |
7355 |
OTOOL=$ac_cv_prog_OTOOL |
7356 |
if test -n "$OTOOL"; then |
7357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7358 |
$as_echo "$OTOOL" >&6; } |
7359 |
else |
7360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7361 |
$as_echo "no" >&6; } |
7362 |
fi |
7363 |
|
7364 |
|
7365 |
fi |
7366 |
if test -z "$ac_cv_prog_OTOOL"; then |
7367 |
ac_ct_OTOOL=$OTOOL |
7368 |
# Extract the first word of "otool", so it can be a program name with args. |
7369 |
set dummy otool; ac_word=$2 |
7370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7371 |
$as_echo_n "checking for $ac_word... " >&6; } |
7372 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
7373 |
$as_echo_n "(cached) " >&6 |
7374 |
else |
7375 |
if test -n "$ac_ct_OTOOL"; then |
7376 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
7377 |
else |
7378 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7379 |
for as_dir in $PATH |
7380 |
do |
7381 |
IFS=$as_save_IFS |
7382 |
test -z "$as_dir" && as_dir=. |
7383 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7384 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7385 |
ac_cv_prog_ac_ct_OTOOL="otool" |
7386 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7387 |
break 2 |
7388 |
fi |
7389 |
done |
7390 |
done |
7391 |
IFS=$as_save_IFS |
7392 |
|
7393 |
fi |
7394 |
fi |
7395 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7396 |
if test -n "$ac_ct_OTOOL"; then |
7397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7398 |
$as_echo "$ac_ct_OTOOL" >&6; } |
7399 |
else |
7400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7401 |
$as_echo "no" >&6; } |
7402 |
fi |
7403 |
|
7404 |
if test "x$ac_ct_OTOOL" = x; then |
7405 |
OTOOL=":" |
7406 |
else |
7407 |
case $cross_compiling:$ac_tool_warned in |
7408 |
yes:) |
7409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7410 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7411 |
ac_tool_warned=yes ;; |
7412 |
esac |
7413 |
OTOOL=$ac_ct_OTOOL |
7414 |
fi |
7415 |
else |
7416 |
OTOOL="$ac_cv_prog_OTOOL" |
7417 |
fi |
7418 |
|
7419 |
if test -n "$ac_tool_prefix"; then |
7420 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7421 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7423 |
$as_echo_n "checking for $ac_word... " >&6; } |
7424 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
7425 |
$as_echo_n "(cached) " >&6 |
7426 |
else |
7427 |
if test -n "$OTOOL64"; then |
7428 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7429 |
else |
7430 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7431 |
for as_dir in $PATH |
7432 |
do |
7433 |
IFS=$as_save_IFS |
7434 |
test -z "$as_dir" && as_dir=. |
7435 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7436 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7437 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7438 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7439 |
break 2 |
7440 |
fi |
7441 |
done |
7442 |
done |
7443 |
IFS=$as_save_IFS |
7444 |
|
7445 |
fi |
7446 |
fi |
7447 |
OTOOL64=$ac_cv_prog_OTOOL64 |
7448 |
if test -n "$OTOOL64"; then |
7449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7450 |
$as_echo "$OTOOL64" >&6; } |
7451 |
else |
7452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7453 |
$as_echo "no" >&6; } |
7454 |
fi |
7455 |
|
7456 |
|
7457 |
fi |
7458 |
if test -z "$ac_cv_prog_OTOOL64"; then |
7459 |
ac_ct_OTOOL64=$OTOOL64 |
7460 |
# Extract the first word of "otool64", so it can be a program name with args. |
7461 |
set dummy otool64; ac_word=$2 |
7462 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7463 |
$as_echo_n "checking for $ac_word... " >&6; } |
7464 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
7465 |
$as_echo_n "(cached) " >&6 |
7466 |
else |
7467 |
if test -n "$ac_ct_OTOOL64"; then |
7468 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7469 |
else |
7470 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7471 |
for as_dir in $PATH |
7472 |
do |
7473 |
IFS=$as_save_IFS |
7474 |
test -z "$as_dir" && as_dir=. |
7475 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7476 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7477 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7478 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7479 |
break 2 |
7480 |
fi |
7481 |
done |
7482 |
done |
7483 |
IFS=$as_save_IFS |
7484 |
|
7485 |
fi |
7486 |
fi |
7487 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7488 |
if test -n "$ac_ct_OTOOL64"; then |
7489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7490 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
7491 |
else |
7492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7493 |
$as_echo "no" >&6; } |
7494 |
fi |
7495 |
|
7496 |
if test "x$ac_ct_OTOOL64" = x; then |
7497 |
OTOOL64=":" |
7498 |
else |
7499 |
case $cross_compiling:$ac_tool_warned in |
7500 |
yes:) |
7501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7502 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7503 |
ac_tool_warned=yes ;; |
7504 |
esac |
7505 |
OTOOL64=$ac_ct_OTOOL64 |
7506 |
fi |
7507 |
else |
7508 |
OTOOL64="$ac_cv_prog_OTOOL64" |
7509 |
fi |
7510 |
|
7511 |
|
7512 |
|
7513 |
|
7514 |
|
7515 |
|
7516 |
|
7517 |
|
7518 |
|
7519 |
|
7520 |
|
7521 |
|
7522 |
|
7523 |
|
7524 |
|
7525 |
|
7526 |
|
7527 |
|
7528 |
|
7529 |
|
7530 |
|
7531 |
|
7532 |
|
7533 |
|
7534 |
|
7535 |
|
7536 |
|
7537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7538 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
7539 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
7540 |
$as_echo_n "(cached) " >&6 |
7541 |
else |
7542 |
lt_cv_apple_cc_single_mod=no |
7543 |
if test -z "${LT_MULTI_MODULE}"; then |
7544 |
# By default we will add the -single_module flag. You can override |
7545 |
# by either setting the environment variable LT_MULTI_MODULE |
7546 |
# non-empty at configure time, or by adding -multi_module to the |
7547 |
# link flags. |
7548 |
rm -rf libconftest.dylib* |
7549 |
echo "int foo(void){return 1;}" > conftest.c |
7550 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7551 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
7552 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7553 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7554 |
_lt_result=$? |
7555 |
# If there is a non-empty error log, and "single_module" |
7556 |
# appears in it, assume the flag caused a linker warning |
7557 |
if test -s conftest.err && $GREP single_module conftest.err; then |
7558 |
cat conftest.err >&5 |
7559 |
# Otherwise, if the output was created with a 0 exit code from |
7560 |
# the compiler, it worked. |
7561 |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
7562 |
lt_cv_apple_cc_single_mod=yes |
7563 |
else |
7564 |
cat conftest.err >&5 |
7565 |
fi |
7566 |
rm -rf libconftest.dylib* |
7567 |
rm -f conftest.* |
7568 |
fi |
7569 |
fi |
7570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7571 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7572 |
|
7573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7574 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7575 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7576 |
$as_echo_n "(cached) " >&6 |
7577 |
else |
7578 |
lt_cv_ld_exported_symbols_list=no |
7579 |
save_LDFLAGS=$LDFLAGS |
7580 |
echo "_main" > conftest.sym |
7581 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7582 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7583 |
/* end confdefs.h. */ |
7584 |
|
7585 |
int |
7586 |
main () |
7587 |
{ |
7588 |
|
7589 |
; |
7590 |
return 0; |
7591 |
} |
7592 |
_ACEOF |
7593 |
if ac_fn_c_try_link "$LINENO"; then : |
7594 |
lt_cv_ld_exported_symbols_list=yes |
7595 |
else |
7596 |
lt_cv_ld_exported_symbols_list=no |
7597 |
fi |
7598 |
rm -f core conftest.err conftest.$ac_objext \ |
7599 |
conftest$ac_exeext conftest.$ac_ext |
7600 |
LDFLAGS="$save_LDFLAGS" |
7601 |
|
7602 |
fi |
7603 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7604 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7605 |
|
7606 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7607 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7608 |
if ${lt_cv_ld_force_load+:} false; then : |
7609 |
$as_echo_n "(cached) " >&6 |
7610 |
else |
7611 |
lt_cv_ld_force_load=no |
7612 |
cat > conftest.c << _LT_EOF |
7613 |
int forced_loaded() { return 2;} |
7614 |
_LT_EOF |
7615 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7616 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7617 |
echo "$AR cru libconftest.a conftest.o" >&5 |
7618 |
$AR cru libconftest.a conftest.o 2>&5 |
7619 |
echo "$RANLIB libconftest.a" >&5 |
7620 |
$RANLIB libconftest.a 2>&5 |
7621 |
cat > conftest.c << _LT_EOF |
7622 |
int main() { return 0;} |
7623 |
_LT_EOF |
7624 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7625 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7626 |
_lt_result=$? |
7627 |
if test -s conftest.err && $GREP force_load conftest.err; then |
7628 |
cat conftest.err >&5 |
7629 |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
7630 |
lt_cv_ld_force_load=yes |
7631 |
else |
7632 |
cat conftest.err >&5 |
7633 |
fi |
7634 |
rm -f conftest.err libconftest.a conftest conftest.c |
7635 |
rm -rf conftest.dSYM |
7636 |
|
7637 |
fi |
7638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7639 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
7640 |
case $host_os in |
7641 |
rhapsody* | darwin1.[012]) |
7642 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
7643 |
darwin1.*) |
7644 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7645 |
darwin*) # darwin 5.x on |
7646 |
# if running on 10.5 or later, the deployment target defaults |
7647 |
# to the OS version, if on x86, and 10.4, the deployment |
7648 |
# target defaults to 10.4. Don't you love it? |
7649 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7650 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7651 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7652 |
10.[012]*) |
7653 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7654 |
10.*) |
7655 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7656 |
esac |
7657 |
;; |
7658 |
esac |
7659 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
7660 |
_lt_dar_single_mod='$single_module' |
7661 |
fi |
7662 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
7663 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
7664 |
else |
7665 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7666 |
fi |
7667 |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
7668 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7669 |
else |
7670 |
_lt_dsymutil= |
7671 |
fi |
7672 |
;; |
7673 |
esac |
7674 |
|
7675 |
ac_ext=c |
7676 |
ac_cpp='$CPP $CPPFLAGS' |
7677 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7678 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7679 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7680 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7681 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
7682 |
# On Suns, sometimes $CPP names a directory. |
7683 |
if test -n "$CPP" && test -d "$CPP"; then |
7684 |
CPP= |
7685 |
fi |
7686 |
if test -z "$CPP"; then |
7687 |
if ${ac_cv_prog_CPP+:} false; then : |
7688 |
$as_echo_n "(cached) " >&6 |
7689 |
else |
7690 |
# Double quotes because CPP needs to be expanded |
7691 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
7692 |
do |
7693 |
ac_preproc_ok=false |
7694 |
for ac_c_preproc_warn_flag in '' yes |
7695 |
do |
7696 |
# Use a header file that comes with gcc, so configuring glibc |
7697 |
# with a fresh cross-compiler works. |
7698 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7699 |
# <limits.h> exists even on freestanding compilers. |
7700 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7701 |
# not just through cpp. "Syntax error" is here to catch this case. |
7702 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7703 |
/* end confdefs.h. */ |
7704 |
#ifdef __STDC__ |
7705 |
# include <limits.h> |
7706 |
#else |
7707 |
# include <assert.h> |
7708 |
#endif |
7709 |
Syntax error |
7710 |
_ACEOF |
7711 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7712 |
|
7713 |
else |
7714 |
# Broken: fails on valid input. |
7715 |
continue |
7716 |
fi |
7717 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7718 |
|
7719 |
# OK, works on sane cases. Now check whether nonexistent headers |
7720 |
# can be detected and how. |
7721 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7722 |
/* end confdefs.h. */ |
7723 |
#include <ac_nonexistent.h> |
7724 |
_ACEOF |
7725 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7726 |
# Broken: success on invalid input. |
7727 |
continue |
7728 |
else |
7729 |
# Passes both tests. |
7730 |
ac_preproc_ok=: |
7731 |
break |
7732 |
fi |
7733 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7734 |
|
7735 |
done |
7736 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7737 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7738 |
if $ac_preproc_ok; then : |
7739 |
break |
7740 |
fi |
7741 |
|
7742 |
done |
7743 |
ac_cv_prog_CPP=$CPP |
7744 |
|
7745 |
fi |
7746 |
CPP=$ac_cv_prog_CPP |
7747 |
else |
7748 |
ac_cv_prog_CPP=$CPP |
7749 |
fi |
7750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7751 |
$as_echo "$CPP" >&6; } |
7752 |
ac_preproc_ok=false |
7753 |
for ac_c_preproc_warn_flag in '' yes |
7754 |
do |
7755 |
# Use a header file that comes with gcc, so configuring glibc |
7756 |
# with a fresh cross-compiler works. |
7757 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7758 |
# <limits.h> exists even on freestanding compilers. |
7759 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7760 |
# not just through cpp. "Syntax error" is here to catch this case. |
7761 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7762 |
/* end confdefs.h. */ |
7763 |
#ifdef __STDC__ |
7764 |
# include <limits.h> |
7765 |
#else |
7766 |
# include <assert.h> |
7767 |
#endif |
7768 |
Syntax error |
7769 |
_ACEOF |
7770 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7771 |
|
7772 |
else |
7773 |
# Broken: fails on valid input. |
7774 |
continue |
7775 |
fi |
7776 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7777 |
|
7778 |
# OK, works on sane cases. Now check whether nonexistent headers |
7779 |
# can be detected and how. |
7780 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7781 |
/* end confdefs.h. */ |
7782 |
#include <ac_nonexistent.h> |
7783 |
_ACEOF |
7784 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7785 |
# Broken: success on invalid input. |
7786 |
continue |
7787 |
else |
7788 |
# Passes both tests. |
7789 |
ac_preproc_ok=: |
7790 |
break |
7791 |
fi |
7792 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7793 |
|
7794 |
done |
7795 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7796 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7797 |
if $ac_preproc_ok; then : |
7798 |
|
7799 |
else |
7800 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7801 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7802 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7803 |
See \`config.log' for more details" "$LINENO" 5; } |
7804 |
fi |
7805 |
|
7806 |
ac_ext=c |
7807 |
ac_cpp='$CPP $CPPFLAGS' |
7808 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7809 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7810 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7811 |
|
7812 |
|
7813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7814 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7815 |
if ${ac_cv_header_stdc+:} false; then : |
7816 |
$as_echo_n "(cached) " >&6 |
7817 |
else |
7818 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7819 |
/* end confdefs.h. */ |
7820 |
#include <stdlib.h> |
7821 |
#include <stdarg.h> |
7822 |
#include <string.h> |
7823 |
#include <float.h> |
7824 |
|
7825 |
int |
7826 |
main () |
7827 |
{ |
7828 |
|
7829 |
; |
7830 |
return 0; |
7831 |
} |
7832 |
_ACEOF |
7833 |
if ac_fn_c_try_compile "$LINENO"; then : |
7834 |
ac_cv_header_stdc=yes |
7835 |
else |
7836 |
ac_cv_header_stdc=no |
7837 |
fi |
7838 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7839 |
|
7840 |
if test $ac_cv_header_stdc = yes; then |
7841 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7842 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7843 |
/* end confdefs.h. */ |
7844 |
#include <string.h> |
7845 |
|
7846 |
_ACEOF |
7847 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7848 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7849 |
|
7850 |
else |
7851 |
ac_cv_header_stdc=no |
7852 |
fi |
7853 |
rm -f conftest* |
7854 |
|
7855 |
fi |
7856 |
|
7857 |
if test $ac_cv_header_stdc = yes; then |
7858 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7860 |
/* end confdefs.h. */ |
7861 |
#include <stdlib.h> |
7862 |
|
7863 |
_ACEOF |
7864 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7865 |
$EGREP "free" >/dev/null 2>&1; then : |
7866 |
|
7867 |
else |
7868 |
ac_cv_header_stdc=no |
7869 |
fi |
7870 |
rm -f conftest* |
7871 |
|
7872 |
fi |
7873 |
|
7874 |
if test $ac_cv_header_stdc = yes; then |
7875 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7876 |
if test "$cross_compiling" = yes; then : |
7877 |
: |
7878 |
else |
7879 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7880 |
/* end confdefs.h. */ |
7881 |
#include <ctype.h> |
7882 |
#include <stdlib.h> |
7883 |
#if ((' ' & 0x0FF) == 0x020) |
7884 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7885 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7886 |
#else |
7887 |
# define ISLOWER(c) \ |
7888 |
(('a' <= (c) && (c) <= 'i') \ |
7889 |
|| ('j' <= (c) && (c) <= 'r') \ |
7890 |
|| ('s' <= (c) && (c) <= 'z')) |
7891 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7892 |
#endif |
7893 |
|
7894 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7895 |
int |
7896 |
main () |
7897 |
{ |
7898 |
int i; |
7899 |
for (i = 0; i < 256; i++) |
7900 |
if (XOR (islower (i), ISLOWER (i)) |
7901 |
|| toupper (i) != TOUPPER (i)) |
7902 |
return 2; |
7903 |
return 0; |
7904 |
} |
7905 |
_ACEOF |
7906 |
if ac_fn_c_try_run "$LINENO"; then : |
7907 |
|
7908 |
else |
7909 |
ac_cv_header_stdc=no |
7910 |
fi |
7911 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7912 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7913 |
fi |
7914 |
|
7915 |
fi |
7916 |
fi |
7917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7918 |
$as_echo "$ac_cv_header_stdc" >&6; } |
7919 |
if test $ac_cv_header_stdc = yes; then |
7920 |
|
7921 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7922 |
|
7923 |
fi |
7924 |
|
7925 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7926 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7927 |
inttypes.h stdint.h unistd.h |
7928 |
do : |
7929 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7930 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
7931 |
" |
7932 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7933 |
cat >>confdefs.h <<_ACEOF |
7934 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7935 |
_ACEOF |
7936 |
|
7937 |
fi |
7938 |
|
7939 |
done |
7940 |
|
7941 |
|
7942 |
for ac_header in dlfcn.h |
7943 |
do : |
7944 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
7945 |
" |
7946 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7947 |
cat >>confdefs.h <<_ACEOF |
7948 |
#define HAVE_DLFCN_H 1 |
7949 |
_ACEOF |
7950 |
|
7951 |
fi |
7952 |
|
7953 |
done |
7954 |
|
7955 |
|
7956 |
|
7957 |
|
7958 |
|
7959 |
# Set options |
7960 |
enable_dlopen=yes |
7961 |
# Check whether --enable-static was given. |
7962 |
if test "${enable_static+set}" = set; then : |
7963 |
enableval=$enable_static; p=${PACKAGE-default} |
7964 |
case $enableval in |
7965 |
yes) enable_static=yes ;; |
7966 |
no) enable_static=no ;; |
7967 |
*) |
7968 |
enable_static=no |
7969 |
# Look at the argument we got. We use all the common list separators. |
7970 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
7971 |
for pkg in $enableval; do |
7972 |
IFS="$lt_save_ifs" |
7973 |
if test "X$pkg" = "X$p"; then |
7974 |
enable_static=yes |
7975 |
fi |
7976 |
done |
7977 |
IFS="$lt_save_ifs" |
7978 |
;; |
7979 |
esac |
7980 |
else |
7981 |
enable_static=no |
7982 |
fi |
7983 |
|
7984 |
|
7985 |
|
7986 |
|
7987 |
|
7988 |
|
7989 |
|
7990 |
|
7991 |
|
7992 |
|
7993 |
|
7994 |
enable_win32_dll=no |
7995 |
|
7996 |
|
7997 |
# Check whether --enable-shared was given. |
7998 |
if test "${enable_shared+set}" = set; then : |
7999 |
enableval=$enable_shared; p=${PACKAGE-default} |
8000 |
case $enableval in |
8001 |
yes) enable_shared=yes ;; |
8002 |
no) enable_shared=no ;; |
8003 |
*) |
8004 |
enable_shared=no |
8005 |
# Look at the argument we got. We use all the common list separators. |
8006 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8007 |
for pkg in $enableval; do |
8008 |
IFS="$lt_save_ifs" |
8009 |
if test "X$pkg" = "X$p"; then |
8010 |
enable_shared=yes |
8011 |
fi |
8012 |
done |
8013 |
IFS="$lt_save_ifs" |
8014 |
;; |
8015 |
esac |
8016 |
else |
8017 |
enable_shared=yes |
8018 |
fi |
8019 |
|
8020 |
|
8021 |
|
8022 |
|
8023 |
|
8024 |
|
8025 |
|
8026 |
|
8027 |
|
8028 |
|
8029 |
|
8030 |
# Check whether --with-pic was given. |
8031 |
if test "${with_pic+set}" = set; then : |
8032 |
withval=$with_pic; lt_p=${PACKAGE-default} |
8033 |
case $withval in |
8034 |
yes|no) pic_mode=$withval ;; |
8035 |
*) |
8036 |
pic_mode=default |
8037 |
# Look at the argument we got. We use all the common list separators. |
8038 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8039 |
for lt_pkg in $withval; do |
8040 |
IFS="$lt_save_ifs" |
8041 |
if test "X$lt_pkg" = "X$lt_p"; then |
8042 |
pic_mode=yes |
8043 |
fi |
8044 |
done |
8045 |
IFS="$lt_save_ifs" |
8046 |
;; |
8047 |
esac |
8048 |
else |
8049 |
pic_mode=default |
8050 |
fi |
8051 |
|
8052 |
|
8053 |
test -z "$pic_mode" && pic_mode=default |
8054 |
|
8055 |
|
8056 |
|
8057 |
|
8058 |
|
8059 |
|
8060 |
|
8061 |
# Check whether --enable-fast-install was given. |
8062 |
if test "${enable_fast_install+set}" = set; then : |
8063 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
8064 |
case $enableval in |
8065 |
yes) enable_fast_install=yes ;; |
8066 |
no) enable_fast_install=no ;; |
8067 |
*) |
8068 |
enable_fast_install=no |
8069 |
# Look at the argument we got. We use all the common list separators. |
8070 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8071 |
for pkg in $enableval; do |
8072 |
IFS="$lt_save_ifs" |
8073 |
if test "X$pkg" = "X$p"; then |
8074 |
enable_fast_install=yes |
8075 |
fi |
8076 |
done |
8077 |
IFS="$lt_save_ifs" |
8078 |
;; |
8079 |
esac |
8080 |
else |
8081 |
enable_fast_install=yes |
8082 |
fi |
8083 |
|
8084 |
|
8085 |
|
8086 |
|
8087 |
|
8088 |
|
8089 |
|
8090 |
|
8091 |
|
8092 |
|
8093 |
|
8094 |
# This can be used to rebuild libtool when needed |
8095 |
LIBTOOL_DEPS="$ltmain" |
8096 |
|
8097 |
# Always use our own libtool. |
8098 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
8099 |
|
8100 |
|
8101 |
|
8102 |
|
8103 |
|
8104 |
|
8105 |
|
8106 |
|
8107 |
|
8108 |
|
8109 |
|
8110 |
|
8111 |
|
8112 |
|
8113 |
|
8114 |
|
8115 |
|
8116 |
|
8117 |
|
8118 |
|
8119 |
|
8120 |
|
8121 |
|
8122 |
|
8123 |
|
8124 |
|
8125 |
|
8126 |
|
8127 |
|
8128 |
|
8129 |
test -z "$LN_S" && LN_S="ln -s" |
8130 |
|
8131 |
|
8132 |
|
8133 |
|
8134 |
|
8135 |
|
8136 |
|
8137 |
|
8138 |
|
8139 |
|
8140 |
|
8141 |
|
8142 |
|
8143 |
|
8144 |
if test -n "${ZSH_VERSION+set}" ; then |
8145 |
setopt NO_GLOB_SUBST |
8146 |
fi |
8147 |
|
8148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8149 |
$as_echo_n "checking for objdir... " >&6; } |
8150 |
if ${lt_cv_objdir+:} false; then : |
8151 |
$as_echo_n "(cached) " >&6 |
8152 |
else |
8153 |
rm -f .libs 2>/dev/null |
8154 |
mkdir .libs 2>/dev/null |
8155 |
if test -d .libs; then |
8156 |
lt_cv_objdir=.libs |
8157 |
else |
8158 |
# MS-DOS does not allow filenames that begin with a dot. |
8159 |
lt_cv_objdir=_libs |
8160 |
fi |
8161 |
rmdir .libs 2>/dev/null |
8162 |
fi |
8163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8164 |
$as_echo "$lt_cv_objdir" >&6; } |
8165 |
objdir=$lt_cv_objdir |
8166 |
|
8167 |
|
8168 |
|
8169 |
|
8170 |
|
8171 |
cat >>confdefs.h <<_ACEOF |
8172 |
#define LT_OBJDIR "$lt_cv_objdir/" |
8173 |
_ACEOF |
8174 |
|
8175 |
|
8176 |
|
8177 |
|
8178 |
case $host_os in |
8179 |
aix3*) |
8180 |
# AIX sometimes has problems with the GCC collect2 program. For some |
8181 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8182 |
# vanish in a puff of smoke. |
8183 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
8184 |
COLLECT_NAMES= |
8185 |
export COLLECT_NAMES |
8186 |
fi |
8187 |
;; |
8188 |
esac |
8189 |
|
8190 |
# Global variables: |
8191 |
ofile=libtool |
8192 |
can_build_shared=yes |
8193 |
|
8194 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
8195 |
# which needs '.lib'). |
8196 |
libext=a |
8197 |
|
8198 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
8199 |
|
8200 |
old_CC="$CC" |
8201 |
old_CFLAGS="$CFLAGS" |
8202 |
|
8203 |
# Set sane defaults for various variables |
8204 |
test -z "$CC" && CC=cc |
8205 |
test -z "$LTCC" && LTCC=$CC |
8206 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8207 |
test -z "$LD" && LD=ld |
8208 |
test -z "$ac_objext" && ac_objext=o |
8209 |
|
8210 |
for cc_temp in $compiler""; do |
8211 |
case $cc_temp in |
8212 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8213 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8214 |
\-*) ;; |
8215 |
*) break;; |
8216 |
esac |
8217 |
done |
8218 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8219 |
|
8220 |
|
8221 |
# Only perform the check for file, if the check method requires it |
8222 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8223 |
case $deplibs_check_method in |
8224 |
file_magic*) |
8225 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8227 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8228 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8229 |
$as_echo_n "(cached) " >&6 |
8230 |
else |
8231 |
case $MAGIC_CMD in |
8232 |
[\\/*] | ?:[\\/]*) |
8233 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8234 |
;; |
8235 |
*) |
8236 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
8237 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8238 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8239 |
for ac_dir in $ac_dummy; do |
8240 |
IFS="$lt_save_ifs" |
8241 |
test -z "$ac_dir" && ac_dir=. |
8242 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
8243 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
8244 |
if test -n "$file_magic_test_file"; then |
8245 |
case $deplibs_check_method in |
8246 |
"file_magic "*) |
8247 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8248 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8249 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8250 |
$EGREP "$file_magic_regex" > /dev/null; then |
8251 |
: |
8252 |
else |
8253 |
cat <<_LT_EOF 1>&2 |
8254 |
|
8255 |
*** Warning: the command libtool uses to detect shared libraries, |
8256 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8257 |
*** The result is that libtool may fail to recognize shared libraries |
8258 |
*** as such. This will affect the creation of libtool libraries that |
8259 |
*** depend on shared libraries, but programs linked with such libtool |
8260 |
*** libraries will work regardless of this problem. Nevertheless, you |
8261 |
*** may want to report the problem to your system manager and/or to |
8262 |
*** bug-libtool@gnu.org |
8263 |
|
8264 |
_LT_EOF |
8265 |
fi ;; |
8266 |
esac |
8267 |
fi |
8268 |
break |
8269 |
fi |
8270 |
done |
8271 |
IFS="$lt_save_ifs" |
8272 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
8273 |
;; |
8274 |
esac |
8275 |
fi |
8276 |
|
8277 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8278 |
if test -n "$MAGIC_CMD"; then |
8279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8280 |
$as_echo "$MAGIC_CMD" >&6; } |
8281 |
else |
8282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8283 |
$as_echo "no" >&6; } |
8284 |
fi |
8285 |
|
8286 |
|
8287 |
|
8288 |
|
8289 |
|
8290 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
8291 |
if test -n "$ac_tool_prefix"; then |
8292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8293 |
$as_echo_n "checking for file... " >&6; } |
8294 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8295 |
$as_echo_n "(cached) " >&6 |
8296 |
else |
8297 |
case $MAGIC_CMD in |
8298 |
[\\/*] | ?:[\\/]*) |
8299 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8300 |
;; |
8301 |
*) |
8302 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
8303 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8304 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8305 |
for ac_dir in $ac_dummy; do |
8306 |
IFS="$lt_save_ifs" |
8307 |
test -z "$ac_dir" && ac_dir=. |
8308 |
if test -f $ac_dir/file; then |
8309 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
8310 |
if test -n "$file_magic_test_file"; then |
8311 |
case $deplibs_check_method in |
8312 |
"file_magic "*) |
8313 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8314 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8315 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8316 |
$EGREP "$file_magic_regex" > /dev/null; then |
8317 |
: |
8318 |
else |
8319 |
cat <<_LT_EOF 1>&2 |
8320 |
|
8321 |
*** Warning: the command libtool uses to detect shared libraries, |
8322 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8323 |
*** The result is that libtool may fail to recognize shared libraries |
8324 |
*** as such. This will affect the creation of libtool libraries that |
8325 |
*** depend on shared libraries, but programs linked with such libtool |
8326 |
*** libraries will work regardless of this problem. Nevertheless, you |
8327 |
*** may want to report the problem to your system manager and/or to |
8328 |
*** bug-libtool@gnu.org |
8329 |
|
8330 |
_LT_EOF |
8331 |
fi ;; |
8332 |
esac |
8333 |
fi |
8334 |
break |
8335 |
fi |
8336 |
done |
8337 |
IFS="$lt_save_ifs" |
8338 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
8339 |
;; |
8340 |
esac |
8341 |
fi |
8342 |
|
8343 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8344 |
if test -n "$MAGIC_CMD"; then |
8345 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8346 |
$as_echo "$MAGIC_CMD" >&6; } |
8347 |
else |
8348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8349 |
$as_echo "no" >&6; } |
8350 |
fi |
8351 |
|
8352 |
|
8353 |
else |
8354 |
MAGIC_CMD=: |
8355 |
fi |
8356 |
fi |
8357 |
|
8358 |
fi |
8359 |
;; |
8360 |
esac |
8361 |
|
8362 |
# Use C for the default configuration in the libtool script |
8363 |
|
8364 |
lt_save_CC="$CC" |
8365 |
ac_ext=c |
8366 |
ac_cpp='$CPP $CPPFLAGS' |
8367 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8368 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8369 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8370 |
|
8371 |
|
8372 |
# Source file extension for C test sources. |
8373 |
ac_ext=c |
8374 |
|
8375 |
# Object file extension for compiled C test sources. |
8376 |
objext=o |
8377 |
objext=$objext |
8378 |
|
8379 |
# Code to be used in simple compile tests |
8380 |
lt_simple_compile_test_code="int some_variable = 0;" |
8381 |
|
8382 |
# Code to be used in simple link tests |
8383 |
lt_simple_link_test_code='int main(){return(0);}' |
8384 |
|
8385 |
|
8386 |
|
8387 |
|
8388 |
|
8389 |
|
8390 |
|
8391 |
# If no C compiler was specified, use CC. |
8392 |
LTCC=${LTCC-"$CC"} |
8393 |
|
8394 |
# If no C compiler flags were specified, use CFLAGS. |
8395 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8396 |
|
8397 |
# Allow CC to be a program name with arguments. |
8398 |
compiler=$CC |
8399 |
|
8400 |
# Save the default compiler, since it gets overwritten when the other |
8401 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8402 |
compiler_DEFAULT=$CC |
8403 |
|
8404 |
# save warnings/boilerplate of simple test code |
8405 |
ac_outfile=conftest.$ac_objext |
8406 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8407 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8408 |
_lt_compiler_boilerplate=`cat conftest.err` |
8409 |
$RM conftest* |
8410 |
|
8411 |
ac_outfile=conftest.$ac_objext |
8412 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8413 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8414 |
_lt_linker_boilerplate=`cat conftest.err` |
8415 |
$RM -r conftest* |
8416 |
|
8417 |
|
8418 |
if test -n "$compiler"; then |
8419 |
|
8420 |
lt_prog_compiler_no_builtin_flag= |
8421 |
|
8422 |
if test "$GCC" = yes; then |
8423 |
case $cc_basename in |
8424 |
nvcc*) |
8425 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8426 |
*) |
8427 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
8428 |
esac |
8429 |
|
8430 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8431 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8432 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8433 |
$as_echo_n "(cached) " >&6 |
8434 |
else |
8435 |
lt_cv_prog_compiler_rtti_exceptions=no |
8436 |
ac_outfile=conftest.$ac_objext |
8437 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8438 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
8439 |
# Insert the option either (1) after the last *FLAGS variable, or |
8440 |
# (2) before a word containing "conftest.", or (3) at the end. |
8441 |
# Note that $ac_compile itself does not contain backslashes and begins |
8442 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8443 |
# The option is referenced via a variable to avoid confusing sed. |
8444 |
lt_compile=`echo "$ac_compile" | $SED \ |
8445 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8446 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8447 |
-e 's:$: $lt_compiler_flag:'` |
8448 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8449 |
(eval "$lt_compile" 2>conftest.err) |
8450 |
ac_status=$? |
8451 |
cat conftest.err >&5 |
8452 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8453 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8454 |
# The compiler can only warn and ignore the option if not recognized |
8455 |
# So say no if there are warnings other than the usual output. |
8456 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8457 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8458 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8459 |
lt_cv_prog_compiler_rtti_exceptions=yes |
8460 |
fi |
8461 |
fi |
8462 |
$RM conftest* |
8463 |
|
8464 |
fi |
8465 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8466 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8467 |
|
8468 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8469 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8470 |
else |
8471 |
: |
8472 |
fi |
8473 |
|
8474 |
fi |
8475 |
|
8476 |
|
8477 |
|
8478 |
|
8479 |
|
8480 |
|
8481 |
lt_prog_compiler_wl= |
8482 |
lt_prog_compiler_pic= |
8483 |
lt_prog_compiler_static= |
8484 |
|
8485 |
|
8486 |
if test "$GCC" = yes; then |
8487 |
lt_prog_compiler_wl='-Wl,' |
8488 |
lt_prog_compiler_static='-static' |
8489 |
|
8490 |
case $host_os in |
8491 |
aix*) |
8492 |
# All AIX code is PIC. |
8493 |
if test "$host_cpu" = ia64; then |
8494 |
# AIX 5 now supports IA64 processor |
8495 |
lt_prog_compiler_static='-Bstatic' |
8496 |
fi |
8497 |
;; |
8498 |
|
8499 |
amigaos*) |
8500 |
case $host_cpu in |
8501 |
powerpc) |
8502 |
# see comment about AmigaOS4 .so support |
8503 |
lt_prog_compiler_pic='-fPIC' |
8504 |
;; |
8505 |
m68k) |
8506 |
# FIXME: we need at least 68020 code to build shared libraries, but |
8507 |
# adding the `-m68020' flag to GCC prevents building anything better, |
8508 |
# like `-m68040'. |
8509 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8510 |
;; |
8511 |
esac |
8512 |
;; |
8513 |
|
8514 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8515 |
# PIC is the default for these OSes. |
8516 |
;; |
8517 |
|
8518 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8519 |
# This hack is so that the source file can tell whether it is being |
8520 |
# built for inclusion in a dll (and should export symbols for example). |
8521 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8522 |
# (--disable-auto-import) libraries |
8523 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8524 |
;; |
8525 |
|
8526 |
darwin* | rhapsody*) |
8527 |
# PIC is the default on this platform |
8528 |
# Common symbols not allowed in MH_DYLIB files |
8529 |
lt_prog_compiler_pic='-fno-common' |
8530 |
;; |
8531 |
|
8532 |
haiku*) |
8533 |
# PIC is the default for Haiku. |
8534 |
# The "-static" flag exists, but is broken. |
8535 |
lt_prog_compiler_static= |
8536 |
;; |
8537 |
|
8538 |
hpux*) |
8539 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8540 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8541 |
# sets the default TLS model and affects inlining. |
8542 |
case $host_cpu in |
8543 |
hppa*64*) |
8544 |
# +Z the default |
8545 |
;; |
8546 |
*) |
8547 |
lt_prog_compiler_pic='-fPIC' |
8548 |
;; |
8549 |
esac |
8550 |
;; |
8551 |
|
8552 |
interix[3-9]*) |
8553 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8554 |
# Instead, we relocate shared libraries at runtime. |
8555 |
;; |
8556 |
|
8557 |
msdosdjgpp*) |
8558 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
8559 |
# on systems that don't support them. |
8560 |
lt_prog_compiler_can_build_shared=no |
8561 |
enable_shared=no |
8562 |
;; |
8563 |
|
8564 |
*nto* | *qnx*) |
8565 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8566 |
# it will coredump. |
8567 |
lt_prog_compiler_pic='-fPIC -shared' |
8568 |
;; |
8569 |
|
8570 |
sysv4*MP*) |
8571 |
if test -d /usr/nec; then |
8572 |
lt_prog_compiler_pic=-Kconform_pic |
8573 |
fi |
8574 |
;; |
8575 |
|
8576 |
*) |
8577 |
lt_prog_compiler_pic='-fPIC' |
8578 |
;; |
8579 |
esac |
8580 |
|
8581 |
case $cc_basename in |
8582 |
nvcc*) # Cuda Compiler Driver 2.2 |
8583 |
lt_prog_compiler_wl='-Xlinker ' |
8584 |
if test -n "$lt_prog_compiler_pic"; then |
8585 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8586 |
fi |
8587 |
;; |
8588 |
esac |
8589 |
else |
8590 |
# PORTME Check for flag to pass linker flags through the system compiler. |
8591 |
case $host_os in |
8592 |
aix*) |
8593 |
lt_prog_compiler_wl='-Wl,' |
8594 |
if test "$host_cpu" = ia64; then |
8595 |
# AIX 5 now supports IA64 processor |
8596 |
lt_prog_compiler_static='-Bstatic' |
8597 |
else |
8598 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8599 |
fi |
8600 |
;; |
8601 |
|
8602 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8603 |
# This hack is so that the source file can tell whether it is being |
8604 |
# built for inclusion in a dll (and should export symbols for example). |
8605 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8606 |
;; |
8607 |
|
8608 |
hpux9* | hpux10* | hpux11*) |
8609 |
lt_prog_compiler_wl='-Wl,' |
8610 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8611 |
# not for PA HP-UX. |
8612 |
case $host_cpu in |
8613 |
hppa*64*|ia64*) |
8614 |
# +Z the default |
8615 |
;; |
8616 |
*) |
8617 |
lt_prog_compiler_pic='+Z' |
8618 |
;; |
8619 |
esac |
8620 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8621 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
8622 |
;; |
8623 |
|
8624 |
irix5* | irix6* | nonstopux*) |
8625 |
lt_prog_compiler_wl='-Wl,' |
8626 |
# PIC (with -KPIC) is the default. |
8627 |
lt_prog_compiler_static='-non_shared' |
8628 |
;; |
8629 |
|
8630 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8631 |
case $cc_basename in |
8632 |
# old Intel for x86_64 which still supported -KPIC. |
8633 |
ecc*) |
8634 |
lt_prog_compiler_wl='-Wl,' |
8635 |
lt_prog_compiler_pic='-KPIC' |
8636 |
lt_prog_compiler_static='-static' |
8637 |
;; |
8638 |
# icc used to be incompatible with GCC. |
8639 |
# ICC 10 doesn't accept -KPIC any more. |
8640 |
icc* | ifort*) |
8641 |
lt_prog_compiler_wl='-Wl,' |
8642 |
lt_prog_compiler_pic='-fPIC' |
8643 |
lt_prog_compiler_static='-static' |
8644 |
;; |
8645 |
# Lahey Fortran 8.1. |
8646 |
lf95*) |
8647 |
lt_prog_compiler_wl='-Wl,' |
8648 |
lt_prog_compiler_pic='--shared' |
8649 |
lt_prog_compiler_static='--static' |
8650 |
;; |
8651 |
nagfor*) |
8652 |
# NAG Fortran compiler |
8653 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8654 |
lt_prog_compiler_pic='-PIC' |
8655 |
lt_prog_compiler_static='-Bstatic' |
8656 |
;; |
8657 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8658 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
8659 |
# which looks to be a dead project) |
8660 |
lt_prog_compiler_wl='-Wl,' |
8661 |
lt_prog_compiler_pic='-fpic' |
8662 |
lt_prog_compiler_static='-Bstatic' |
8663 |
;; |
8664 |
ccc*) |
8665 |
lt_prog_compiler_wl='-Wl,' |
8666 |
# All Alpha code is PIC. |
8667 |
lt_prog_compiler_static='-non_shared' |
8668 |
;; |
8669 |
xl* | bgxl* | bgf* | mpixl*) |
8670 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
8671 |
lt_prog_compiler_wl='-Wl,' |
8672 |
lt_prog_compiler_pic='-qpic' |
8673 |
lt_prog_compiler_static='-qstaticlink' |
8674 |
;; |
8675 |
*) |
8676 |
case `$CC -V 2>&1 | sed 5q` in |
8677 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8678 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
8679 |
lt_prog_compiler_pic='-KPIC' |
8680 |
lt_prog_compiler_static='-Bstatic' |
8681 |
lt_prog_compiler_wl='' |
8682 |
;; |
8683 |
*Sun\ F* | *Sun*Fortran*) |
8684 |
lt_prog_compiler_pic='-KPIC' |
8685 |
lt_prog_compiler_static='-Bstatic' |
8686 |
lt_prog_compiler_wl='-Qoption ld ' |
8687 |
;; |
8688 |
*Sun\ C*) |
8689 |
# Sun C 5.9 |
8690 |
lt_prog_compiler_pic='-KPIC' |
8691 |
lt_prog_compiler_static='-Bstatic' |
8692 |
lt_prog_compiler_wl='-Wl,' |
8693 |
;; |
8694 |
*Intel*\ [CF]*Compiler*) |
8695 |
lt_prog_compiler_wl='-Wl,' |
8696 |
lt_prog_compiler_pic='-fPIC' |
8697 |
lt_prog_compiler_static='-static' |
8698 |
;; |
8699 |
*Portland\ Group*) |
8700 |
lt_prog_compiler_wl='-Wl,' |
8701 |
lt_prog_compiler_pic='-fpic' |
8702 |
lt_prog_compiler_static='-Bstatic' |
8703 |
;; |
8704 |
esac |
8705 |
;; |
8706 |
esac |
8707 |
;; |
8708 |
|
8709 |
newsos6) |
8710 |
lt_prog_compiler_pic='-KPIC' |
8711 |
lt_prog_compiler_static='-Bstatic' |
8712 |
;; |
8713 |
|
8714 |
*nto* | *qnx*) |
8715 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8716 |
# it will coredump. |
8717 |
lt_prog_compiler_pic='-fPIC -shared' |
8718 |
;; |
8719 |
|
8720 |
osf3* | osf4* | osf5*) |
8721 |
lt_prog_compiler_wl='-Wl,' |
8722 |
# All OSF/1 code is PIC. |
8723 |
lt_prog_compiler_static='-non_shared' |
8724 |
;; |
8725 |
|
8726 |
rdos*) |
8727 |
lt_prog_compiler_static='-non_shared' |
8728 |
;; |
8729 |
|
8730 |
solaris*) |
8731 |
lt_prog_compiler_pic='-KPIC' |
8732 |
lt_prog_compiler_static='-Bstatic' |
8733 |
case $cc_basename in |
8734 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8735 |
lt_prog_compiler_wl='-Qoption ld ';; |
8736 |
*) |
8737 |
lt_prog_compiler_wl='-Wl,';; |
8738 |
esac |
8739 |
;; |
8740 |
|
8741 |
sunos4*) |
8742 |
lt_prog_compiler_wl='-Qoption ld ' |
8743 |
lt_prog_compiler_pic='-PIC' |
8744 |
lt_prog_compiler_static='-Bstatic' |
8745 |
;; |
8746 |
|
8747 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
8748 |
lt_prog_compiler_wl='-Wl,' |
8749 |
lt_prog_compiler_pic='-KPIC' |
8750 |
lt_prog_compiler_static='-Bstatic' |
8751 |
;; |
8752 |
|
8753 |
sysv4*MP*) |
8754 |
if test -d /usr/nec ;then |
8755 |
lt_prog_compiler_pic='-Kconform_pic' |
8756 |
lt_prog_compiler_static='-Bstatic' |
8757 |
fi |
8758 |
;; |
8759 |
|
8760 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8761 |
lt_prog_compiler_wl='-Wl,' |
8762 |
lt_prog_compiler_pic='-KPIC' |
8763 |
lt_prog_compiler_static='-Bstatic' |
8764 |
;; |
8765 |
|
8766 |
unicos*) |
8767 |
lt_prog_compiler_wl='-Wl,' |
8768 |
lt_prog_compiler_can_build_shared=no |
8769 |
;; |
8770 |
|
8771 |
uts4*) |
8772 |
lt_prog_compiler_pic='-pic' |
8773 |
lt_prog_compiler_static='-Bstatic' |
8774 |
;; |
8775 |
|
8776 |
*) |
8777 |
lt_prog_compiler_can_build_shared=no |
8778 |
;; |
8779 |
esac |
8780 |
fi |
8781 |
|
8782 |
case $host_os in |
8783 |
# For platforms which do not support PIC, -DPIC is meaningless: |
8784 |
*djgpp*) |
8785 |
lt_prog_compiler_pic= |
8786 |
;; |
8787 |
*) |
8788 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8789 |
;; |
8790 |
esac |
8791 |
|
8792 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8793 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8794 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
8795 |
$as_echo_n "(cached) " >&6 |
8796 |
else |
8797 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
8798 |
fi |
8799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
8800 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
8801 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
8802 |
|
8803 |
# |
8804 |
# Check to make sure the PIC flag actually works. |
8805 |
# |
8806 |
if test -n "$lt_prog_compiler_pic"; then |
8807 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8808 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8809 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8810 |
$as_echo_n "(cached) " >&6 |
8811 |
else |
8812 |
lt_cv_prog_compiler_pic_works=no |
8813 |
ac_outfile=conftest.$ac_objext |
8814 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8815 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
8816 |
# Insert the option either (1) after the last *FLAGS variable, or |
8817 |
# (2) before a word containing "conftest.", or (3) at the end. |
8818 |
# Note that $ac_compile itself does not contain backslashes and begins |
8819 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8820 |
# The option is referenced via a variable to avoid confusing sed. |
8821 |
lt_compile=`echo "$ac_compile" | $SED \ |
8822 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8823 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8824 |
-e 's:$: $lt_compiler_flag:'` |
8825 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8826 |
(eval "$lt_compile" 2>conftest.err) |
8827 |
ac_status=$? |
8828 |
cat conftest.err >&5 |
8829 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8830 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8831 |
# The compiler can only warn and ignore the option if not recognized |
8832 |
# So say no if there are warnings other than the usual output. |
8833 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8834 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8835 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8836 |
lt_cv_prog_compiler_pic_works=yes |
8837 |
fi |
8838 |
fi |
8839 |
$RM conftest* |
8840 |
|
8841 |
fi |
8842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8843 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
8844 |
|
8845 |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8846 |
case $lt_prog_compiler_pic in |
8847 |
"" | " "*) ;; |
8848 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
8849 |
esac |
8850 |
else |
8851 |
lt_prog_compiler_pic= |
8852 |
lt_prog_compiler_can_build_shared=no |
8853 |
fi |
8854 |
|
8855 |
fi |
8856 |
|
8857 |
|
8858 |
|
8859 |
|
8860 |
|
8861 |
|
8862 |
|
8863 |
|
8864 |
|
8865 |
|
8866 |
|
8867 |
# |
8868 |
# Check to make sure the static flag actually works. |
8869 |
# |
8870 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8871 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8872 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
8873 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
8874 |
$as_echo_n "(cached) " >&6 |
8875 |
else |
8876 |
lt_cv_prog_compiler_static_works=no |
8877 |
save_LDFLAGS="$LDFLAGS" |
8878 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8879 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
8880 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8881 |
# The linker can only warn and ignore the option if not recognized |
8882 |
# So say no if there are warnings |
8883 |
if test -s conftest.err; then |
8884 |
# Append any errors to the config.log. |
8885 |
cat conftest.err 1>&5 |
8886 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8887 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8888 |
if diff conftest.exp conftest.er2 >/dev/null; then |
8889 |
lt_cv_prog_compiler_static_works=yes |
8890 |
fi |
8891 |
else |
8892 |
lt_cv_prog_compiler_static_works=yes |
8893 |
fi |
8894 |
fi |
8895 |
$RM -r conftest* |
8896 |
LDFLAGS="$save_LDFLAGS" |
8897 |
|
8898 |
fi |
8899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8900 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8901 |
|
8902 |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8903 |
: |
8904 |
else |
8905 |
lt_prog_compiler_static= |
8906 |
fi |
8907 |
|
8908 |
|
8909 |
|
8910 |
|
8911 |
|
8912 |
|
8913 |
|
8914 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8915 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8916 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8917 |
$as_echo_n "(cached) " >&6 |
8918 |
else |
8919 |
lt_cv_prog_compiler_c_o=no |
8920 |
$RM -r conftest 2>/dev/null |
8921 |
mkdir conftest |
8922 |
cd conftest |
8923 |
mkdir out |
8924 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8925 |
|
8926 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8927 |
# Insert the option either (1) after the last *FLAGS variable, or |
8928 |
# (2) before a word containing "conftest.", or (3) at the end. |
8929 |
# Note that $ac_compile itself does not contain backslashes and begins |
8930 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8931 |
lt_compile=`echo "$ac_compile" | $SED \ |
8932 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8933 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8934 |
-e 's:$: $lt_compiler_flag:'` |
8935 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8936 |
(eval "$lt_compile" 2>out/conftest.err) |
8937 |
ac_status=$? |
8938 |
cat out/conftest.err >&5 |
8939 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8940 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8941 |
then |
8942 |
# The compiler can only warn and ignore the option if not recognized |
8943 |
# So say no if there are warnings |
8944 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8945 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8946 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8947 |
lt_cv_prog_compiler_c_o=yes |
8948 |
fi |
8949 |
fi |
8950 |
chmod u+w . 2>&5 |
8951 |
$RM conftest* |
8952 |
# SGI C++ compiler will create directory out/ii_files/ for |
8953 |
# template instantiation |
8954 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8955 |
$RM out/* && rmdir out |
8956 |
cd .. |
8957 |
$RM -r conftest |
8958 |
$RM conftest* |
8959 |
|
8960 |
fi |
8961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8962 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8963 |
|
8964 |
|
8965 |
|
8966 |
|
8967 |
|
8968 |
|
8969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8970 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8971 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8972 |
$as_echo_n "(cached) " >&6 |
8973 |
else |
8974 |
lt_cv_prog_compiler_c_o=no |
8975 |
$RM -r conftest 2>/dev/null |
8976 |
mkdir conftest |
8977 |
cd conftest |
8978 |
mkdir out |
8979 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8980 |
|
8981 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8982 |
# Insert the option either (1) after the last *FLAGS variable, or |
8983 |
# (2) before a word containing "conftest.", or (3) at the end. |
8984 |
# Note that $ac_compile itself does not contain backslashes and begins |
8985 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8986 |
lt_compile=`echo "$ac_compile" | $SED \ |
8987 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8988 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8989 |
-e 's:$: $lt_compiler_flag:'` |
8990 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8991 |
(eval "$lt_compile" 2>out/conftest.err) |
8992 |
ac_status=$? |
8993 |
cat out/conftest.err >&5 |
8994 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8995 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8996 |
then |
8997 |
# The compiler can only warn and ignore the option if not recognized |
8998 |
# So say no if there are warnings |
8999 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
9000 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9001 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
9002 |
lt_cv_prog_compiler_c_o=yes |
9003 |
fi |
9004 |
fi |
9005 |
chmod u+w . 2>&5 |
9006 |
$RM conftest* |
9007 |
# SGI C++ compiler will create directory out/ii_files/ for |
9008 |
# template instantiation |
9009 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
9010 |
$RM out/* && rmdir out |
9011 |
cd .. |
9012 |
$RM -r conftest |
9013 |
$RM conftest* |
9014 |
|
9015 |
fi |
9016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9017 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
9018 |
|
9019 |
|
9020 |
|
9021 |
|
9022 |
hard_links="nottested" |
9023 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
9024 |
# do not overwrite the value of need_locks provided by the user |
9025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9026 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
9027 |
hard_links=yes |
9028 |
$RM conftest* |
9029 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9030 |
touch conftest.a |
9031 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
9032 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9033 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9034 |
$as_echo "$hard_links" >&6; } |
9035 |
if test "$hard_links" = no; then |
9036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9037 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
9038 |
need_locks=warn |
9039 |
fi |
9040 |
else |
9041 |
need_locks=no |
9042 |
fi |
9043 |
|
9044 |
|
9045 |
|
9046 |
|
9047 |
|
9048 |
|
9049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9050 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
9051 |
|
9052 |
runpath_var= |
9053 |
allow_undefined_flag= |
9054 |
always_export_symbols=no |
9055 |
archive_cmds= |
9056 |
archive_expsym_cmds= |
9057 |
compiler_needs_object=no |
9058 |
enable_shared_with_static_runtimes=no |
9059 |
export_dynamic_flag_spec= |
9060 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
9061 |
hardcode_automatic=no |
9062 |
hardcode_direct=no |
9063 |
hardcode_direct_absolute=no |
9064 |
hardcode_libdir_flag_spec= |
9065 |
hardcode_libdir_separator= |
9066 |
hardcode_minus_L=no |
9067 |
hardcode_shlibpath_var=unsupported |
9068 |
inherit_rpath=no |
9069 |
link_all_deplibs=unknown |
9070 |
module_cmds= |
9071 |
module_expsym_cmds= |
9072 |
old_archive_from_new_cmds= |
9073 |
old_archive_from_expsyms_cmds= |
9074 |
thread_safe_flag_spec= |
9075 |
whole_archive_flag_spec= |
9076 |
# include_expsyms should be a list of space-separated symbols to be *always* |
9077 |
# included in the symbol list |
9078 |
include_expsyms= |
9079 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
9080 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
9081 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
9082 |
# as well as any symbol that contains `d'. |
9083 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9084 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9085 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
9086 |
# the symbol is explicitly referenced. Since portable code cannot |
9087 |
# rely on this symbol name, it's probably fine to never include it in |
9088 |
# preloaded symbol tables. |
9089 |
# Exclude shared library initialization/finalization symbols. |
9090 |
extract_expsyms_cmds= |
9091 |
|
9092 |
case $host_os in |
9093 |
cygwin* | mingw* | pw32* | cegcc*) |
9094 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
9095 |
# When not using gcc, we currently assume that we are using |
9096 |
# Microsoft Visual C++. |
9097 |
if test "$GCC" != yes; then |
9098 |
with_gnu_ld=no |
9099 |
fi |
9100 |
;; |
9101 |
interix*) |
9102 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
9103 |
with_gnu_ld=yes |
9104 |
;; |
9105 |
openbsd*) |
9106 |
with_gnu_ld=no |
9107 |
;; |
9108 |
esac |
9109 |
|
9110 |
ld_shlibs=yes |
9111 |
|
9112 |
# On some targets, GNU ld is compatible enough with the native linker |
9113 |
# that we're better off using the native interface for both. |
9114 |
lt_use_gnu_ld_interface=no |
9115 |
if test "$with_gnu_ld" = yes; then |
9116 |
case $host_os in |
9117 |
aix*) |
9118 |
# The AIX port of GNU ld has always aspired to compatibility |
9119 |
# with the native linker. However, as the warning in the GNU ld |
9120 |
# block says, versions before 2.19.5* couldn't really create working |
9121 |
# shared libraries, regardless of the interface used. |
9122 |
case `$LD -v 2>&1` in |
9123 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
9124 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
9125 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
9126 |
*) |
9127 |
lt_use_gnu_ld_interface=yes |
9128 |
;; |
9129 |
esac |
9130 |
;; |
9131 |
*) |
9132 |
lt_use_gnu_ld_interface=yes |
9133 |
;; |
9134 |
esac |
9135 |
fi |
9136 |
|
9137 |
if test "$lt_use_gnu_ld_interface" = yes; then |
9138 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
9139 |
wlarc='${wl}' |
9140 |
|
9141 |
# Set some defaults for GNU ld with shared library support. These |
9142 |
# are reset later if shared libraries are not supported. Putting them |
9143 |
# here allows them to be overridden if necessary. |
9144 |
runpath_var=LD_RUN_PATH |
9145 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9146 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
9147 |
# ancient GNU ld didn't support --whole-archive et. al. |
9148 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9149 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
9150 |
else |
9151 |
whole_archive_flag_spec= |
9152 |
fi |
9153 |
supports_anon_versioning=no |
9154 |
case `$LD -v 2>&1` in |
9155 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
9156 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9157 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9158 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
9159 |
*\ 2.11.*) ;; # other 2.11 versions |
9160 |
*) supports_anon_versioning=yes ;; |
9161 |
esac |
9162 |
|
9163 |
# See if GNU ld supports shared libraries. |
9164 |
case $host_os in |
9165 |
aix[3-9]*) |
9166 |
# On AIX/PPC, the GNU linker is very broken |
9167 |
if test "$host_cpu" != ia64; then |
9168 |
ld_shlibs=no |
9169 |
cat <<_LT_EOF 1>&2 |
9170 |
|
9171 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
9172 |
*** to be unable to reliably create shared libraries on AIX. |
9173 |
*** Therefore, libtool is disabling shared libraries support. If you |
9174 |
*** really care for shared libraries, you may want to install binutils |
9175 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
9176 |
*** You will then need to restart the configuration process. |
9177 |
|
9178 |
_LT_EOF |
9179 |
fi |
9180 |
;; |
9181 |
|
9182 |
amigaos*) |
9183 |
case $host_cpu in |
9184 |
powerpc) |
9185 |
# see comment about AmigaOS4 .so support |
9186 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9187 |
archive_expsym_cmds='' |
9188 |
;; |
9189 |
m68k) |
9190 |
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
9191 |
hardcode_libdir_flag_spec='-L$libdir' |
9192 |
hardcode_minus_L=yes |
9193 |
;; |
9194 |
esac |
9195 |
;; |
9196 |
|
9197 |
beos*) |
9198 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9199 |
allow_undefined_flag=unsupported |
9200 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9201 |
# support --undefined. This deserves some investigation. FIXME |
9202 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9203 |
else |
9204 |
ld_shlibs=no |
9205 |
fi |
9206 |
;; |
9207 |
|
9208 |
cygwin* | mingw* | pw32* | cegcc*) |
9209 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9210 |
# as there is no search path for DLLs. |
9211 |
hardcode_libdir_flag_spec='-L$libdir' |
9212 |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
9213 |
allow_undefined_flag=unsupported |
9214 |
always_export_symbols=no |
9215 |
enable_shared_with_static_runtimes=yes |
9216 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
9217 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9218 |
|
9219 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9220 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9221 |
# If the export-symbols file already is a .def file (1st line |
9222 |
# is EXPORTS), use it as is; otherwise, prepend... |
9223 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
9224 |
cp $export_symbols $output_objdir/$soname.def; |
9225 |
else |
9226 |
echo EXPORTS > $output_objdir/$soname.def; |
9227 |
cat $export_symbols >> $output_objdir/$soname.def; |
9228 |
fi~ |
9229 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9230 |
else |
9231 |
ld_shlibs=no |
9232 |
fi |
9233 |
;; |
9234 |
|
9235 |
haiku*) |
9236 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9237 |
link_all_deplibs=yes |
9238 |
;; |
9239 |
|
9240 |
interix[3-9]*) |
9241 |
hardcode_direct=no |
9242 |
hardcode_shlibpath_var=no |
9243 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9244 |
export_dynamic_flag_spec='${wl}-E' |
9245 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9246 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9247 |
# default) and relocated if they conflict, which is a slow very memory |
9248 |
# consuming and fragmenting process. To avoid this, we pick a random, |
9249 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9250 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9251 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9252 |
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' |
9253 |
;; |
9254 |
|
9255 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9256 |
tmp_diet=no |
9257 |
if test "$host_os" = linux-dietlibc; then |
9258 |
case $cc_basename in |
9259 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9260 |
esac |
9261 |
fi |
9262 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9263 |
&& test "$tmp_diet" = no |
9264 |
then |
9265 |
tmp_addflag=' $pic_flag' |
9266 |
tmp_sharedflag='-shared' |
9267 |
case $cc_basename,$host_cpu in |
9268 |
pgcc*) # Portland Group C compiler |
9269 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
9270 |
tmp_addflag=' $pic_flag' |
9271 |
;; |
9272 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
9273 |
# Portland Group f77 and f90 compilers |
9274 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
9275 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
9276 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9277 |
tmp_addflag=' -i_dynamic' ;; |
9278 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9279 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
9280 |
ifc* | ifort*) # Intel Fortran compiler |
9281 |
tmp_addflag=' -nofor_main' ;; |
9282 |
lf95*) # Lahey Fortran 8.1 |
9283 |
whole_archive_flag_spec= |
9284 |
tmp_sharedflag='--shared' ;; |
9285 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9286 |
tmp_sharedflag='-qmkshrobj' |
9287 |
tmp_addflag= ;; |
9288 |
nvcc*) # Cuda Compiler Driver 2.2 |
9289 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
9290 |
compiler_needs_object=yes |
9291 |
;; |
9292 |
esac |
9293 |
case `$CC -V 2>&1 | sed 5q` in |
9294 |
*Sun\ C*) # Sun C 5.9 |
9295 |
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
9296 |
compiler_needs_object=yes |
9297 |
tmp_sharedflag='-G' ;; |
9298 |
*Sun\ F*) # Sun Fortran 8.3 |
9299 |
tmp_sharedflag='-G' ;; |
9300 |
esac |
9301 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9302 |
|
9303 |
if test "x$supports_anon_versioning" = xyes; then |
9304 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9305 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9306 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9307 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
9308 |
fi |
9309 |
|
9310 |
case $cc_basename in |
9311 |
xlf* | bgf* | bgxlf* | mpixlf*) |
9312 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9313 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9314 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9315 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9316 |
if test "x$supports_anon_versioning" = xyes; then |
9317 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9318 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9319 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9320 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9321 |
fi |
9322 |
;; |
9323 |
esac |
9324 |
else |
9325 |
ld_shlibs=no |
9326 |
fi |
9327 |
;; |
9328 |
|
9329 |
netbsd*) |
9330 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9331 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9332 |
wlarc= |
9333 |
else |
9334 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9335 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9336 |
fi |
9337 |
;; |
9338 |
|
9339 |
solaris*) |
9340 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9341 |
ld_shlibs=no |
9342 |
cat <<_LT_EOF 1>&2 |
9343 |
|
9344 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9345 |
*** create shared libraries on Solaris systems. Therefore, libtool |
9346 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9347 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
9348 |
*** your PATH or compiler configuration so that the native linker is |
9349 |
*** used, and then restart. |
9350 |
|
9351 |
_LT_EOF |
9352 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9353 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9354 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9355 |
else |
9356 |
ld_shlibs=no |
9357 |
fi |
9358 |
;; |
9359 |
|
9360 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9361 |
case `$LD -v 2>&1` in |
9362 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9363 |
ld_shlibs=no |
9364 |
cat <<_LT_EOF 1>&2 |
9365 |
|
9366 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9367 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9368 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9369 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9370 |
*** your PATH or compiler configuration so that the native linker is |
9371 |
*** used, and then restart. |
9372 |
|
9373 |
_LT_EOF |
9374 |
;; |
9375 |
*) |
9376 |
# For security reasons, it is highly recommended that you always |
9377 |
# use absolute paths for naming shared libraries, and exclude the |
9378 |
# DT_RUNPATH tag from executables and libraries. But doing so |
9379 |
# requires that you compile everything twice, which is a pain. |
9380 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9381 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9382 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9383 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9384 |
else |
9385 |
ld_shlibs=no |
9386 |
fi |
9387 |
;; |
9388 |
esac |
9389 |
;; |
9390 |
|
9391 |
sunos4*) |
9392 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9393 |
wlarc= |
9394 |
hardcode_direct=yes |
9395 |
hardcode_shlibpath_var=no |
9396 |
;; |
9397 |
|
9398 |
*) |
9399 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9400 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9401 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9402 |
else |
9403 |
ld_shlibs=no |
9404 |
fi |
9405 |
;; |
9406 |
esac |
9407 |
|
9408 |
if test "$ld_shlibs" = no; then |
9409 |
runpath_var= |
9410 |
hardcode_libdir_flag_spec= |
9411 |
export_dynamic_flag_spec= |
9412 |
whole_archive_flag_spec= |
9413 |
fi |
9414 |
else |
9415 |
# PORTME fill in a description of your system's linker (not GNU ld) |
9416 |
case $host_os in |
9417 |
aix3*) |
9418 |
allow_undefined_flag=unsupported |
9419 |
always_export_symbols=yes |
9420 |
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' |
9421 |
# Note: this linker hardcodes the directories in LIBPATH if there |
9422 |
# are no directories specified by -L. |
9423 |
hardcode_minus_L=yes |
9424 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
9425 |
# Neither direct hardcoding nor static linking is supported with a |
9426 |
# broken collect2. |
9427 |
hardcode_direct=unsupported |
9428 |
fi |
9429 |
;; |
9430 |
|
9431 |
aix[4-9]*) |
9432 |
if test "$host_cpu" = ia64; then |
9433 |
# On IA64, the linker does run time linking by default, so we don't |
9434 |
# have to do anything special. |
9435 |
aix_use_runtimelinking=no |
9436 |
exp_sym_flag='-Bexport' |
9437 |
no_entry_flag="" |
9438 |
else |
9439 |
# If we're using GNU nm, then we don't want the "-C" option. |
9440 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
9441 |
# Also, AIX nm treats weak defined symbols like other global |
9442 |
# defined symbols, whereas GNU nm marks them as "W". |
9443 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9444 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
9445 |
else |
9446 |
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
9447 |
fi |
9448 |
aix_use_runtimelinking=no |
9449 |
|
9450 |
# Test if we are trying to use run time linking or normal |
9451 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9452 |
# need to do runtime linking. |
9453 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9454 |
for ld_flag in $LDFLAGS; do |
9455 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
9456 |
aix_use_runtimelinking=yes |
9457 |
break |
9458 |
fi |
9459 |
done |
9460 |
;; |
9461 |
esac |
9462 |
|
9463 |
exp_sym_flag='-bexport' |
9464 |
no_entry_flag='-bnoentry' |
9465 |
fi |
9466 |
|
9467 |
# When large executables or shared objects are built, AIX ld can |
9468 |
# have problems creating the table of contents. If linking a library |
9469 |
# or program results in "error TOC overflow" add -mminimal-toc to |
9470 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9471 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9472 |
|
9473 |
archive_cmds='' |
9474 |
hardcode_direct=yes |
9475 |
hardcode_direct_absolute=yes |
9476 |
hardcode_libdir_separator=':' |
9477 |
link_all_deplibs=yes |
9478 |
file_list_spec='${wl}-f,' |
9479 |
|
9480 |
if test "$GCC" = yes; then |
9481 |
case $host_os in aix4.[012]|aix4.[012].*) |
9482 |
# We only want to do this on AIX 4.2 and lower, the check |
9483 |
# below for broken collect2 doesn't work under 4.3+ |
9484 |
collect2name=`${CC} -print-prog-name=collect2` |
9485 |
if test -f "$collect2name" && |
9486 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9487 |
then |
9488 |
# We have reworked collect2 |
9489 |
: |
9490 |
else |
9491 |
# We have old collect2 |
9492 |
hardcode_direct=unsupported |
9493 |
# It fails to find uninstalled libraries when the uninstalled |
9494 |
# path is not listed in the libpath. Setting hardcode_minus_L |
9495 |
# to unsupported forces relinking |
9496 |
hardcode_minus_L=yes |
9497 |
hardcode_libdir_flag_spec='-L$libdir' |
9498 |
hardcode_libdir_separator= |
9499 |
fi |
9500 |
;; |
9501 |
esac |
9502 |
shared_flag='-shared' |
9503 |
if test "$aix_use_runtimelinking" = yes; then |
9504 |
shared_flag="$shared_flag "'${wl}-G' |
9505 |
fi |
9506 |
else |
9507 |
# not using gcc |
9508 |
if test "$host_cpu" = ia64; then |
9509 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9510 |
# chokes on -Wl,-G. The following line is correct: |
9511 |
shared_flag='-G' |
9512 |
else |
9513 |
if test "$aix_use_runtimelinking" = yes; then |
9514 |
shared_flag='${wl}-G' |
9515 |
else |
9516 |
shared_flag='${wl}-bM:SRE' |
9517 |
fi |
9518 |
fi |
9519 |
fi |
9520 |
|
9521 |
export_dynamic_flag_spec='${wl}-bexpall' |
9522 |
# It seems that -bexpall does not export symbols beginning with |
9523 |
# underscore (_), so it is better to generate a list of symbols to export. |
9524 |
always_export_symbols=yes |
9525 |
if test "$aix_use_runtimelinking" = yes; then |
9526 |
# Warning - without using the other runtime loading flags (-brtl), |
9527 |
# -berok will link without error, but may produce a broken library. |
9528 |
allow_undefined_flag='-berok' |
9529 |
# Determine the default libpath from the value encoded in an |
9530 |
# empty executable. |
9531 |
if test "${lt_cv_aix_libpath+set}" = set; then |
9532 |
aix_libpath=$lt_cv_aix_libpath |
9533 |
else |
9534 |
if ${lt_cv_aix_libpath_+:} false; then : |
9535 |
$as_echo_n "(cached) " >&6 |
9536 |
else |
9537 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9538 |
/* end confdefs.h. */ |
9539 |
|
9540 |
int |
9541 |
main () |
9542 |
{ |
9543 |
|
9544 |
; |
9545 |
return 0; |
9546 |
} |
9547 |
_ACEOF |
9548 |
if ac_fn_c_try_link "$LINENO"; then : |
9549 |
|
9550 |
lt_aix_libpath_sed=' |
9551 |
/Import File Strings/,/^$/ { |
9552 |
/^0/ { |
9553 |
s/^0 *\([^ ]*\) *$/\1/ |
9554 |
p |
9555 |
} |
9556 |
}' |
9557 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9558 |
# Check for a 64-bit object if we didn't find anything. |
9559 |
if test -z "$lt_cv_aix_libpath_"; then |
9560 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9561 |
fi |
9562 |
fi |
9563 |
rm -f core conftest.err conftest.$ac_objext \ |
9564 |
conftest$ac_exeext conftest.$ac_ext |
9565 |
if test -z "$lt_cv_aix_libpath_"; then |
9566 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
9567 |
fi |
9568 |
|
9569 |
fi |
9570 |
|
9571 |
aix_libpath=$lt_cv_aix_libpath_ |
9572 |
fi |
9573 |
|
9574 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9575 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
9576 |
else |
9577 |
if test "$host_cpu" = ia64; then |
9578 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
9579 |
allow_undefined_flag="-z nodefs" |
9580 |
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" |
9581 |
else |
9582 |
# Determine the default libpath from the value encoded in an |
9583 |
# empty executable. |
9584 |
if test "${lt_cv_aix_libpath+set}" = set; then |
9585 |
aix_libpath=$lt_cv_aix_libpath |
9586 |
else |
9587 |
if ${lt_cv_aix_libpath_+:} false; then : |
9588 |
$as_echo_n "(cached) " >&6 |
9589 |
else |
9590 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9591 |
/* end confdefs.h. */ |
9592 |
|
9593 |
int |
9594 |
main () |
9595 |
{ |
9596 |
|
9597 |
; |
9598 |
return 0; |
9599 |
} |
9600 |
_ACEOF |
9601 |
if ac_fn_c_try_link "$LINENO"; then : |
9602 |
|
9603 |
lt_aix_libpath_sed=' |
9604 |
/Import File Strings/,/^$/ { |
9605 |
/^0/ { |
9606 |
s/^0 *\([^ ]*\) *$/\1/ |
9607 |
p |
9608 |
} |
9609 |
}' |
9610 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9611 |
# Check for a 64-bit object if we didn't find anything. |
9612 |
if test -z "$lt_cv_aix_libpath_"; then |
9613 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9614 |
fi |
9615 |
fi |
9616 |
rm -f core conftest.err conftest.$ac_objext \ |
9617 |
conftest$ac_exeext conftest.$ac_ext |
9618 |
if test -z "$lt_cv_aix_libpath_"; then |
9619 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
9620 |
fi |
9621 |
|
9622 |
fi |
9623 |
|
9624 |
aix_libpath=$lt_cv_aix_libpath_ |
9625 |
fi |
9626 |
|
9627 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9628 |
# Warning - without using the other run time loading flags, |
9629 |
# -berok will link without error, but may produce a broken library. |
9630 |
no_undefined_flag=' ${wl}-bernotok' |
9631 |
allow_undefined_flag=' ${wl}-berok' |
9632 |
if test "$with_gnu_ld" = yes; then |
9633 |
# We only use this code for GNU lds that support --whole-archive. |
9634 |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
9635 |
else |
9636 |
# Exported symbols can be pulled into shared objects from archives |
9637 |
whole_archive_flag_spec='$convenience' |
9638 |
fi |
9639 |
archive_cmds_need_lc=yes |
9640 |
# This is similar to how AIX traditionally builds its shared libraries. |
9641 |
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' |
9642 |
fi |
9643 |
fi |
9644 |
;; |
9645 |
|
9646 |
amigaos*) |
9647 |
case $host_cpu in |
9648 |
powerpc) |
9649 |
# see comment about AmigaOS4 .so support |
9650 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9651 |
archive_expsym_cmds='' |
9652 |
;; |
9653 |
m68k) |
9654 |
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
9655 |
hardcode_libdir_flag_spec='-L$libdir' |
9656 |
hardcode_minus_L=yes |
9657 |
;; |
9658 |
esac |
9659 |
;; |
9660 |
|
9661 |
bsdi[45]*) |
9662 |
export_dynamic_flag_spec=-rdynamic |
9663 |
;; |
9664 |
|
9665 |
cygwin* | mingw* | pw32* | cegcc*) |
9666 |
# When not using gcc, we currently assume that we are using |
9667 |
# Microsoft Visual C++. |
9668 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
9669 |
# no search path for DLLs. |
9670 |
case $cc_basename in |
9671 |
cl*) |
9672 |
# Native MSVC |
9673 |
hardcode_libdir_flag_spec=' ' |
9674 |
allow_undefined_flag=unsupported |
9675 |
always_export_symbols=yes |
9676 |
file_list_spec='@' |
9677 |
# Tell ltmain to make .lib files, not .a files. |
9678 |
libext=lib |
9679 |
# Tell ltmain to make .dll files, not .so files. |
9680 |
shrext_cmds=".dll" |
9681 |
# FIXME: Setting linknames here is a bad hack. |
9682 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
9683 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
9684 |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
9685 |
else |
9686 |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
9687 |
fi~ |
9688 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
9689 |
linknames=' |
9690 |
# The linker will not automatically build a static lib if we build a DLL. |
9691 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
9692 |
enable_shared_with_static_runtimes=yes |
9693 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
9694 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9695 |
# Don't use ranlib |
9696 |
old_postinstall_cmds='chmod 644 $oldlib' |
9697 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
9698 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9699 |
case $lt_outputfile in |
9700 |
*.exe|*.EXE) ;; |
9701 |
*) |
9702 |
lt_outputfile="$lt_outputfile.exe" |
9703 |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
9704 |
;; |
9705 |
esac~ |
9706 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
9707 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
9708 |
$RM "$lt_outputfile.manifest"; |
9709 |
fi' |
9710 |
;; |
9711 |
*) |
9712 |
# Assume MSVC wrapper |
9713 |
hardcode_libdir_flag_spec=' ' |
9714 |
allow_undefined_flag=unsupported |
9715 |
# Tell ltmain to make .lib files, not .a files. |
9716 |
libext=lib |
9717 |
# Tell ltmain to make .dll files, not .so files. |
9718 |
shrext_cmds=".dll" |
9719 |
# FIXME: Setting linknames here is a bad hack. |
9720 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
9721 |
# The linker will automatically build a .lib file if we build a DLL. |
9722 |
old_archive_from_new_cmds='true' |
9723 |
# FIXME: Should let the user specify the lib program. |
9724 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9725 |
enable_shared_with_static_runtimes=yes |
9726 |
;; |
9727 |
esac |
9728 |
;; |
9729 |
|
9730 |
darwin* | rhapsody*) |
9731 |
|
9732 |
|
9733 |
archive_cmds_need_lc=no |
9734 |
hardcode_direct=no |
9735 |
hardcode_automatic=yes |
9736 |
hardcode_shlibpath_var=unsupported |
9737 |
if test "$lt_cv_ld_force_load" = "yes"; then |
9738 |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
9739 |
|
9740 |
else |
9741 |
whole_archive_flag_spec='' |
9742 |
fi |
9743 |
link_all_deplibs=yes |
9744 |
allow_undefined_flag="$_lt_dar_allow_undefined" |
9745 |
case $cc_basename in |
9746 |
ifort*) _lt_dar_can_shared=yes ;; |
9747 |
*) _lt_dar_can_shared=$GCC ;; |
9748 |
esac |
9749 |
if test "$_lt_dar_can_shared" = "yes"; then |
9750 |
output_verbose_link_cmd=func_echo_all |
9751 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9752 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
9753 |
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
9754 |
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
9755 |
|
9756 |
else |
9757 |
ld_shlibs=no |
9758 |
fi |
9759 |
|
9760 |
;; |
9761 |
|
9762 |
dgux*) |
9763 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9764 |
hardcode_libdir_flag_spec='-L$libdir' |
9765 |
hardcode_shlibpath_var=no |
9766 |
;; |
9767 |
|
9768 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9769 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
9770 |
# does not break anything, and helps significantly (at the cost of a little |
9771 |
# extra space). |
9772 |
freebsd2.2*) |
9773 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9774 |
hardcode_libdir_flag_spec='-R$libdir' |
9775 |
hardcode_direct=yes |
9776 |
hardcode_shlibpath_var=no |
9777 |
;; |
9778 |
|
9779 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9780 |
freebsd2.*) |
9781 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9782 |
hardcode_direct=yes |
9783 |
hardcode_minus_L=yes |
9784 |
hardcode_shlibpath_var=no |
9785 |
;; |
9786 |
|
9787 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9788 |
freebsd* | dragonfly*) |
9789 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9790 |
hardcode_libdir_flag_spec='-R$libdir' |
9791 |
hardcode_direct=yes |
9792 |
hardcode_shlibpath_var=no |
9793 |
;; |
9794 |
|
9795 |
hpux9*) |
9796 |
if test "$GCC" = yes; then |
9797 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
9798 |
else |
9799 |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
9800 |
fi |
9801 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9802 |
hardcode_libdir_separator=: |
9803 |
hardcode_direct=yes |
9804 |
|
9805 |
# hardcode_minus_L: Not really in the search PATH, |
9806 |
# but as the default location of the library. |
9807 |
hardcode_minus_L=yes |
9808 |
export_dynamic_flag_spec='${wl}-E' |
9809 |
;; |
9810 |
|
9811 |
hpux10*) |
9812 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9813 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9814 |
else |
9815 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9816 |
fi |
9817 |
if test "$with_gnu_ld" = no; then |
9818 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9819 |
hardcode_libdir_separator=: |
9820 |
hardcode_direct=yes |
9821 |
hardcode_direct_absolute=yes |
9822 |
export_dynamic_flag_spec='${wl}-E' |
9823 |
# hardcode_minus_L: Not really in the search PATH, |
9824 |
# but as the default location of the library. |
9825 |
hardcode_minus_L=yes |
9826 |
fi |
9827 |
;; |
9828 |
|
9829 |
hpux11*) |
9830 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9831 |
case $host_cpu in |
9832 |
hppa*64*) |
9833 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9834 |
;; |
9835 |
ia64*) |
9836 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9837 |
;; |
9838 |
*) |
9839 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9840 |
;; |
9841 |
esac |
9842 |
else |
9843 |
case $host_cpu in |
9844 |
hppa*64*) |
9845 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9846 |
;; |
9847 |
ia64*) |
9848 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9849 |
;; |
9850 |
*) |
9851 |
|
9852 |
# Older versions of the 11.00 compiler do not understand -b yet |
9853 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
9854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
9855 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
9856 |
if ${lt_cv_prog_compiler__b+:} false; then : |
9857 |
$as_echo_n "(cached) " >&6 |
9858 |
else |
9859 |
lt_cv_prog_compiler__b=no |
9860 |
save_LDFLAGS="$LDFLAGS" |
9861 |
LDFLAGS="$LDFLAGS -b" |
9862 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9863 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9864 |
# The linker can only warn and ignore the option if not recognized |
9865 |
# So say no if there are warnings |
9866 |
if test -s conftest.err; then |
9867 |
# Append any errors to the config.log. |
9868 |
cat conftest.err 1>&5 |
9869 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
9870 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9871 |
if diff conftest.exp conftest.er2 >/dev/null; then |
9872 |
lt_cv_prog_compiler__b=yes |
9873 |
fi |
9874 |
else |
9875 |
lt_cv_prog_compiler__b=yes |
9876 |
fi |
9877 |
fi |
9878 |
$RM -r conftest* |
9879 |
LDFLAGS="$save_LDFLAGS" |
9880 |
|
9881 |
fi |
9882 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
9883 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
9884 |
|
9885 |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
9886 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9887 |
else |
9888 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9889 |
fi |
9890 |
|
9891 |
;; |
9892 |
esac |
9893 |
fi |
9894 |
if test "$with_gnu_ld" = no; then |
9895 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9896 |
hardcode_libdir_separator=: |
9897 |
|
9898 |
case $host_cpu in |
9899 |
hppa*64*|ia64*) |
9900 |
hardcode_direct=no |
9901 |
hardcode_shlibpath_var=no |
9902 |
;; |
9903 |
*) |
9904 |
hardcode_direct=yes |
9905 |
hardcode_direct_absolute=yes |
9906 |
export_dynamic_flag_spec='${wl}-E' |
9907 |
|
9908 |
# hardcode_minus_L: Not really in the search PATH, |
9909 |
# but as the default location of the library. |
9910 |
hardcode_minus_L=yes |
9911 |
;; |
9912 |
esac |
9913 |
fi |
9914 |
;; |
9915 |
|
9916 |
irix5* | irix6* | nonstopux*) |
9917 |
if test "$GCC" = yes; then |
9918 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
9919 |
# Try to use the -exported_symbol ld option, if it does not |
9920 |
# work, assume that -exports_file does not work either and |
9921 |
# implicitly export all symbols. |
9922 |
# This should be the same for all languages, so no per-tag cache variable. |
9923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
9924 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
9925 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
9926 |
$as_echo_n "(cached) " >&6 |
9927 |
else |
9928 |
save_LDFLAGS="$LDFLAGS" |
9929 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
9930 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9931 |
/* end confdefs.h. */ |
9932 |
int foo (void) { return 0; } |
9933 |
_ACEOF |
9934 |
if ac_fn_c_try_link "$LINENO"; then : |
9935 |
lt_cv_irix_exported_symbol=yes |
9936 |
else |
9937 |
lt_cv_irix_exported_symbol=no |
9938 |
fi |
9939 |
rm -f core conftest.err conftest.$ac_objext \ |
9940 |
conftest$ac_exeext conftest.$ac_ext |
9941 |
LDFLAGS="$save_LDFLAGS" |
9942 |
fi |
9943 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
9944 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
9945 |
if test "$lt_cv_irix_exported_symbol" = yes; then |
9946 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
9947 |
fi |
9948 |
else |
9949 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
9950 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
9951 |
fi |
9952 |
archive_cmds_need_lc='no' |
9953 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9954 |
hardcode_libdir_separator=: |
9955 |
inherit_rpath=yes |
9956 |
link_all_deplibs=yes |
9957 |
;; |
9958 |
|
9959 |
netbsd*) |
9960 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9961 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9962 |
else |
9963 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
9964 |
fi |
9965 |
hardcode_libdir_flag_spec='-R$libdir' |
9966 |
hardcode_direct=yes |
9967 |
hardcode_shlibpath_var=no |
9968 |
;; |
9969 |
|
9970 |
newsos6) |
9971 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9972 |
hardcode_direct=yes |
9973 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9974 |
hardcode_libdir_separator=: |
9975 |
hardcode_shlibpath_var=no |
9976 |
;; |
9977 |
|
9978 |
*nto* | *qnx*) |
9979 |
;; |
9980 |
|
9981 |
openbsd*) |
9982 |
if test -f /usr/libexec/ld.so; then |
9983 |
hardcode_direct=yes |
9984 |
hardcode_shlibpath_var=no |
9985 |
hardcode_direct_absolute=yes |
9986 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9987 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9988 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
9989 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9990 |
export_dynamic_flag_spec='${wl}-E' |
9991 |
else |
9992 |
case $host_os in |
9993 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
9994 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9995 |
hardcode_libdir_flag_spec='-R$libdir' |
9996 |
;; |
9997 |
*) |
9998 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9999 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
10000 |
;; |
10001 |
esac |
10002 |
fi |
10003 |
else |
10004 |
ld_shlibs=no |
10005 |
fi |
10006 |
;; |
10007 |
|
10008 |
os2*) |
10009 |
hardcode_libdir_flag_spec='-L$libdir' |
10010 |
hardcode_minus_L=yes |
10011 |
allow_undefined_flag=unsupported |
10012 |
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
10013 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10014 |
;; |
10015 |
|
10016 |
osf3*) |
10017 |
if test "$GCC" = yes; then |
10018 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10019 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
10020 |
else |
10021 |
allow_undefined_flag=' -expect_unresolved \*' |
10022 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
10023 |
fi |
10024 |
archive_cmds_need_lc='no' |
10025 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10026 |
hardcode_libdir_separator=: |
10027 |
;; |
10028 |
|
10029 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
10030 |
if test "$GCC" = yes; then |
10031 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10032 |
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
10033 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10034 |
else |
10035 |
allow_undefined_flag=' -expect_unresolved \*' |
10036 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
10037 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
10038 |
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
10039 |
|
10040 |
# Both c and cxx compiler support -rpath directly |
10041 |
hardcode_libdir_flag_spec='-rpath $libdir' |
10042 |
fi |
10043 |
archive_cmds_need_lc='no' |
10044 |
hardcode_libdir_separator=: |
10045 |
;; |
10046 |
|
10047 |
solaris*) |
10048 |
no_undefined_flag=' -z defs' |
10049 |
if test "$GCC" = yes; then |
10050 |
wlarc='${wl}' |
10051 |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
10052 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10053 |
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10054 |
else |
10055 |
case `$CC -V 2>&1` in |
10056 |
*"Compilers 5.0"*) |
10057 |
wlarc='' |
10058 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10059 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10060 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10061 |
;; |
10062 |
*) |
10063 |
wlarc='${wl}' |
10064 |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10065 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10066 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10067 |
;; |
10068 |
esac |
10069 |
fi |
10070 |
hardcode_libdir_flag_spec='-R$libdir' |
10071 |
hardcode_shlibpath_var=no |
10072 |
case $host_os in |
10073 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10074 |
*) |
10075 |
# The compiler driver will combine and reorder linker options, |
10076 |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
10077 |
# but is careful enough not to reorder. |
10078 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10079 |
if test "$GCC" = yes; then |
10080 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
10081 |
else |
10082 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10083 |
fi |
10084 |
;; |
10085 |
esac |
10086 |
link_all_deplibs=yes |
10087 |
;; |
10088 |
|
10089 |
sunos4*) |
10090 |
if test "x$host_vendor" = xsequent; then |
10091 |
# Use $CC to link under sequent, because it throws in some extra .o |
10092 |
# files that make .init and .fini sections work. |
10093 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10094 |
else |
10095 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10096 |
fi |
10097 |
hardcode_libdir_flag_spec='-L$libdir' |
10098 |
hardcode_direct=yes |
10099 |
hardcode_minus_L=yes |
10100 |
hardcode_shlibpath_var=no |
10101 |
;; |
10102 |
|
10103 |
sysv4) |
10104 |
case $host_vendor in |
10105 |
sni) |
10106 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10107 |
hardcode_direct=yes # is this really true??? |
10108 |
;; |
10109 |
siemens) |
10110 |
## LD is ld it makes a PLAMLIB |
10111 |
## CC just makes a GrossModule. |
10112 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10113 |
reload_cmds='$CC -r -o $output$reload_objs' |
10114 |
hardcode_direct=no |
10115 |
;; |
10116 |
motorola) |
10117 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10118 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
10119 |
;; |
10120 |
esac |
10121 |
runpath_var='LD_RUN_PATH' |
10122 |
hardcode_shlibpath_var=no |
10123 |
;; |
10124 |
|
10125 |
sysv4.3*) |
10126 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10127 |
hardcode_shlibpath_var=no |
10128 |
export_dynamic_flag_spec='-Bexport' |
10129 |
;; |
10130 |
|
10131 |
sysv4*MP*) |
10132 |
if test -d /usr/nec; then |
10133 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10134 |
hardcode_shlibpath_var=no |
10135 |
runpath_var=LD_RUN_PATH |
10136 |
hardcode_runpath_var=yes |
10137 |
ld_shlibs=yes |
10138 |
fi |
10139 |
;; |
10140 |
|
10141 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10142 |
no_undefined_flag='${wl}-z,text' |
10143 |
archive_cmds_need_lc=no |
10144 |
hardcode_shlibpath_var=no |
10145 |
runpath_var='LD_RUN_PATH' |
10146 |
|
10147 |
if test "$GCC" = yes; then |
10148 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10149 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10150 |
else |
10151 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10152 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10153 |
fi |
10154 |
;; |
10155 |
|
10156 |
sysv5* | sco3.2v5* | sco5v6*) |
10157 |
# Note: We can NOT use -z defs as we might desire, because we do not |
10158 |
# link with -lc, and that would cause any symbols used from libc to |
10159 |
# always be unresolved, which means just about no library would |
10160 |
# ever link correctly. If we're not using GNU ld we use -z text |
10161 |
# though, which does catch some bad symbols but isn't as heavy-handed |
10162 |
# as -z defs. |
10163 |
no_undefined_flag='${wl}-z,text' |
10164 |
allow_undefined_flag='${wl}-z,nodefs' |
10165 |
archive_cmds_need_lc=no |
10166 |
hardcode_shlibpath_var=no |
10167 |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
10168 |
hardcode_libdir_separator=':' |
10169 |
link_all_deplibs=yes |
10170 |
export_dynamic_flag_spec='${wl}-Bexport' |
10171 |
runpath_var='LD_RUN_PATH' |
10172 |
|
10173 |
if test "$GCC" = yes; then |
10174 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10175 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10176 |
else |
10177 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10178 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10179 |
fi |
10180 |
;; |
10181 |
|
10182 |
uts4*) |
10183 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10184 |
hardcode_libdir_flag_spec='-L$libdir' |
10185 |
hardcode_shlibpath_var=no |
10186 |
;; |
10187 |
|
10188 |
*) |
10189 |
ld_shlibs=no |
10190 |
;; |
10191 |
esac |
10192 |
|
10193 |
if test x$host_vendor = xsni; then |
10194 |
case $host in |
10195 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10196 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
10197 |
;; |
10198 |
esac |
10199 |
fi |
10200 |
fi |
10201 |
|
10202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10203 |
$as_echo "$ld_shlibs" >&6; } |
10204 |
test "$ld_shlibs" = no && can_build_shared=no |
10205 |
|
10206 |
with_gnu_ld=$with_gnu_ld |
10207 |
|
10208 |
|
10209 |
|
10210 |
|
10211 |
|
10212 |
|
10213 |
|
10214 |
|
10215 |
|
10216 |
|
10217 |
|
10218 |
|
10219 |
|
10220 |
|
10221 |
|
10222 |
# |
10223 |
# Do we need to explicitly link libc? |
10224 |
# |
10225 |
case "x$archive_cmds_need_lc" in |
10226 |
x|xyes) |
10227 |
# Assume -lc should be added |
10228 |
archive_cmds_need_lc=yes |
10229 |
|
10230 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
10231 |
case $archive_cmds in |
10232 |
*'~'*) |
10233 |
# FIXME: we may have to deal with multi-command sequences. |
10234 |
;; |
10235 |
'$CC '*) |
10236 |
# Test whether the compiler implicitly links with -lc since on some |
10237 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
10238 |
# to ld, don't add -lc before -lgcc. |
10239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10240 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
10241 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10242 |
$as_echo_n "(cached) " >&6 |
10243 |
else |
10244 |
$RM conftest* |
10245 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10246 |
|
10247 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10248 |
(eval $ac_compile) 2>&5 |
10249 |
ac_status=$? |
10250 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10251 |
test $ac_status = 0; } 2>conftest.err; then |
10252 |
soname=conftest |
10253 |
lib=conftest |
10254 |
libobjs=conftest.$ac_objext |
10255 |
deplibs= |
10256 |
wl=$lt_prog_compiler_wl |
10257 |
pic_flag=$lt_prog_compiler_pic |
10258 |
compiler_flags=-v |
10259 |
linker_flags=-v |
10260 |
verstring= |
10261 |
output_objdir=. |
10262 |
libname=conftest |
10263 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
10264 |
allow_undefined_flag= |
10265 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
10266 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10267 |
ac_status=$? |
10268 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10269 |
test $ac_status = 0; } |
10270 |
then |
10271 |
lt_cv_archive_cmds_need_lc=no |
10272 |
else |
10273 |
lt_cv_archive_cmds_need_lc=yes |
10274 |
fi |
10275 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
10276 |
else |
10277 |
cat conftest.err 1>&5 |
10278 |
fi |
10279 |
$RM conftest* |
10280 |
|
10281 |
fi |
10282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10283 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
10284 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
10285 |
;; |
10286 |
esac |
10287 |
fi |
10288 |
;; |
10289 |
esac |
10290 |
|
10291 |
|
10292 |
|
10293 |
|
10294 |
|
10295 |
|
10296 |
|
10297 |
|
10298 |
|
10299 |
|
10300 |
|
10301 |
|
10302 |
|
10303 |
|
10304 |
|
10305 |
|
10306 |
|
10307 |
|
10308 |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 |
|
10314 |
|
10315 |
|
10316 |
|
10317 |
|
10318 |
|
10319 |
|
10320 |
|
10321 |
|
10322 |
|
10323 |
|
10324 |
|
10325 |
|
10326 |
|
10327 |
|
10328 |
|
10329 |
|
10330 |
|
10331 |
|
10332 |
|
10333 |
|
10334 |
|
10335 |
|
10336 |
|
10337 |
|
10338 |
|
10339 |
|
10340 |
|
10341 |
|
10342 |
|
10343 |
|
10344 |
|
10345 |
|
10346 |
|
10347 |
|
10348 |
|
10349 |
|
10350 |
|
10351 |
|
10352 |
|
10353 |
|
10354 |
|
10355 |
|
10356 |
|
10357 |
|
10358 |
|
10359 |
|
10360 |
|
10361 |
|
10362 |
|
10363 |
|
10364 |
|
10365 |
|
10366 |
|
10367 |
|
10368 |
|
10369 |
|
10370 |
|
10371 |
|
10372 |
|
10373 |
|
10374 |
|
10375 |
|
10376 |
|
10377 |
|
10378 |
|
10379 |
|
10380 |
|
10381 |
|
10382 |
|
10383 |
|
10384 |
|
10385 |
|
10386 |
|
10387 |
|
10388 |
|
10389 |
|
10390 |
|
10391 |
|
10392 |
|
10393 |
|
10394 |
|
10395 |
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 |
|
10402 |
|
10403 |
|
10404 |
|
10405 |
|
10406 |
|
10407 |
|
10408 |
|
10409 |
|
10410 |
|
10411 |
|
10412 |
|
10413 |
|
10414 |
|
10415 |
|
10416 |
|
10417 |
|
10418 |
|
10419 |
|
10420 |
|
10421 |
|
10422 |
|
10423 |
|
10424 |
|
10425 |
|
10426 |
|
10427 |
|
10428 |
|
10429 |
|
10430 |
|
10431 |
|
10432 |
|
10433 |
|
10434 |
|
10435 |
|
10436 |
|
10437 |
|
10438 |
|
10439 |
|
10440 |
|
10441 |
|
10442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10443 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10444 |
|
10445 |
if test "$GCC" = yes; then |
10446 |
case $host_os in |
10447 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
10448 |
*) lt_awk_arg="/^libraries:/" ;; |
10449 |
esac |
10450 |
case $host_os in |
10451 |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
10452 |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
10453 |
esac |
10454 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10455 |
case $lt_search_path_spec in |
10456 |
*\;*) |
10457 |
# if the path contains ";" then we assume it to be the separator |
10458 |
# otherwise default to the standard path separator (i.e. ":") - it is |
10459 |
# assumed that no part of a normal pathname contains ";" but that should |
10460 |
# okay in the real world where ";" in dirpaths is itself problematic. |
10461 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10462 |
;; |
10463 |
*) |
10464 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
10465 |
;; |
10466 |
esac |
10467 |
# Ok, now we have the path, separated by spaces, we can step through it |
10468 |
# and add multilib dir if necessary. |
10469 |
lt_tmp_lt_search_path_spec= |
10470 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10471 |
for lt_sys_path in $lt_search_path_spec; do |
10472 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
10473 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
10474 |
else |
10475 |
test -d "$lt_sys_path" && \ |
10476 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10477 |
fi |
10478 |
done |
10479 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10480 |
BEGIN {RS=" "; FS="/|\n";} { |
10481 |
lt_foo=""; |
10482 |
lt_count=0; |
10483 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
10484 |
if ($lt_i != "" && $lt_i != ".") { |
10485 |
if ($lt_i == "..") { |
10486 |
lt_count++; |
10487 |
} else { |
10488 |
if (lt_count == 0) { |
10489 |
lt_foo="/" $lt_i lt_foo; |
10490 |
} else { |
10491 |
lt_count--; |
10492 |
} |
10493 |
} |
10494 |
} |
10495 |
} |
10496 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
10497 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10498 |
}'` |
10499 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
10500 |
# for these hosts. |
10501 |
case $host_os in |
10502 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10503 |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
10504 |
esac |
10505 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10506 |
else |
10507 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10508 |
fi |
10509 |
library_names_spec= |
10510 |
libname_spec='lib$name' |
10511 |
soname_spec= |
10512 |
shrext_cmds=".so" |
10513 |
postinstall_cmds= |
10514 |
postuninstall_cmds= |
10515 |
finish_cmds= |
10516 |
finish_eval= |
10517 |
shlibpath_var= |
10518 |
shlibpath_overrides_runpath=unknown |
10519 |
version_type=none |
10520 |
dynamic_linker="$host_os ld.so" |
10521 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10522 |
need_lib_prefix=unknown |
10523 |
hardcode_into_libs=no |
10524 |
|
10525 |
# when you set need_version to no, make sure it does not cause -set_version |
10526 |
# flags to be left without arguments |
10527 |
need_version=unknown |
10528 |
|
10529 |
case $host_os in |
10530 |
aix3*) |
10531 |
version_type=linux # correct to gnu/linux during the next big refactor |
10532 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
10533 |
shlibpath_var=LIBPATH |
10534 |
|
10535 |
# AIX 3 has no versioning support, so we append a major version to the name. |
10536 |
soname_spec='${libname}${release}${shared_ext}$major' |
10537 |
;; |
10538 |
|
10539 |
aix[4-9]*) |
10540 |
version_type=linux # correct to gnu/linux during the next big refactor |
10541 |
need_lib_prefix=no |
10542 |
need_version=no |
10543 |
hardcode_into_libs=yes |
10544 |
if test "$host_cpu" = ia64; then |
10545 |
# AIX 5 supports IA64 |
10546 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
10547 |
shlibpath_var=LD_LIBRARY_PATH |
10548 |
else |
10549 |
# With GCC up to 2.95.x, collect2 would create an import file |
10550 |
# for dependence libraries. The import file would start with |
10551 |
# the line `#! .'. This would cause the generated library to |
10552 |
# depend on `.', always an invalid library. This was fixed in |
10553 |
# development snapshots of GCC prior to 3.0. |
10554 |
case $host_os in |
10555 |
aix4 | aix4.[01] | aix4.[01].*) |
10556 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10557 |
echo ' yes ' |
10558 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
10559 |
: |
10560 |
else |
10561 |
can_build_shared=no |
10562 |
fi |
10563 |
;; |
10564 |
esac |
10565 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
10566 |
# soname into executable. Probably we can add versioning support to |
10567 |
# collect2, so additional links can be useful in future. |
10568 |
if test "$aix_use_runtimelinking" = yes; then |
10569 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10570 |
# instead of lib<name>.a to let people know that these are not |
10571 |
# typical AIX shared libraries. |
10572 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10573 |
else |
10574 |
# We preserve .a as extension for shared libraries through AIX4.2 |
10575 |
# and later when we are not doing run time linking. |
10576 |
library_names_spec='${libname}${release}.a $libname.a' |
10577 |
soname_spec='${libname}${release}${shared_ext}$major' |
10578 |
fi |
10579 |
shlibpath_var=LIBPATH |
10580 |
fi |
10581 |
;; |
10582 |
|
10583 |
amigaos*) |
10584 |
case $host_cpu in |
10585 |
powerpc) |
10586 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
10587 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10588 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10589 |
;; |
10590 |
m68k) |
10591 |
library_names_spec='$libname.ixlibrary $libname.a' |
10592 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
10593 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
10594 |
;; |
10595 |
esac |
10596 |
;; |
10597 |
|
10598 |
beos*) |
10599 |
library_names_spec='${libname}${shared_ext}' |
10600 |
dynamic_linker="$host_os ld.so" |
10601 |
shlibpath_var=LIBRARY_PATH |
10602 |
;; |
10603 |
|
10604 |
bsdi[45]*) |
10605 |
version_type=linux # correct to gnu/linux during the next big refactor |
10606 |
need_version=no |
10607 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10608 |
soname_spec='${libname}${release}${shared_ext}$major' |
10609 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10610 |
shlibpath_var=LD_LIBRARY_PATH |
10611 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10612 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10613 |
# the default ld.so.conf also contains /usr/contrib/lib and |
10614 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10615 |
# libtool to hard-code these into programs |
10616 |
;; |
10617 |
|
10618 |
cygwin* | mingw* | pw32* | cegcc*) |
10619 |
version_type=windows |
10620 |
shrext_cmds=".dll" |
10621 |
need_version=no |
10622 |
need_lib_prefix=no |
10623 |
|
10624 |
case $GCC,$cc_basename in |
10625 |
yes,*) |
10626 |
# gcc |
10627 |
library_names_spec='$libname.dll.a' |
10628 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10629 |
postinstall_cmds='base_file=`basename \${file}`~ |
10630 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
10631 |
dldir=$destdir/`dirname \$dlpath`~ |
10632 |
test -d \$dldir || mkdir -p \$dldir~ |
10633 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
10634 |
chmod a+x \$dldir/$dlname~ |
10635 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10636 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10637 |
fi' |
10638 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10639 |
dlpath=$dir/\$dldll~ |
10640 |
$RM \$dlpath' |
10641 |
shlibpath_overrides_runpath=yes |
10642 |
|
10643 |
case $host_os in |
10644 |
cygwin*) |
10645 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10646 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10647 |
|
10648 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
10649 |
;; |
10650 |
mingw* | cegcc*) |
10651 |
# MinGW DLLs use traditional 'lib' prefix |
10652 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10653 |
;; |
10654 |
pw32*) |
10655 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
10656 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10657 |
;; |
10658 |
esac |
10659 |
dynamic_linker='Win32 ld.exe' |
10660 |
;; |
10661 |
|
10662 |
*,cl*) |
10663 |
# Native MSVC |
10664 |
libname_spec='$name' |
10665 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10666 |
library_names_spec='${libname}.dll.lib' |
10667 |
|
10668 |
case $build_os in |
10669 |
mingw*) |
10670 |
sys_lib_search_path_spec= |
10671 |
lt_save_ifs=$IFS |
10672 |
IFS=';' |
10673 |
for lt_path in $LIB |
10674 |
do |
10675 |
IFS=$lt_save_ifs |
10676 |
# Let DOS variable expansion print the short 8.3 style file name. |
10677 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
10678 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
10679 |
done |
10680 |
IFS=$lt_save_ifs |
10681 |
# Convert to MSYS style. |
10682 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
10683 |
;; |
10684 |
cygwin*) |
10685 |
# Convert to unix form, then to dos form, then back to unix form |
10686 |
# but this time dos style (no spaces!) so that the unix form looks |
10687 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
10688 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
10689 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
10690 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10691 |
;; |
10692 |
*) |
10693 |
sys_lib_search_path_spec="$LIB" |
10694 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10695 |
# It is most probably a Windows format PATH. |
10696 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
10697 |
else |
10698 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10699 |
fi |
10700 |
# FIXME: find the short name or the path components, as spaces are |
10701 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
10702 |
;; |
10703 |
esac |
10704 |
|
10705 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10706 |
postinstall_cmds='base_file=`basename \${file}`~ |
10707 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
10708 |
dldir=$destdir/`dirname \$dlpath`~ |
10709 |
test -d \$dldir || mkdir -p \$dldir~ |
10710 |
$install_prog $dir/$dlname \$dldir/$dlname' |
10711 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10712 |
dlpath=$dir/\$dldll~ |
10713 |
$RM \$dlpath' |
10714 |
shlibpath_overrides_runpath=yes |
10715 |
dynamic_linker='Win32 link.exe' |
10716 |
;; |
10717 |
|
10718 |
*) |
10719 |
# Assume MSVC wrapper |
10720 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
10721 |
dynamic_linker='Win32 ld.exe' |
10722 |
;; |
10723 |
esac |
10724 |
# FIXME: first we should search . and the directory the executable is in |
10725 |
shlibpath_var=PATH |
10726 |
;; |
10727 |
|
10728 |
darwin* | rhapsody*) |
10729 |
dynamic_linker="$host_os dyld" |
10730 |
version_type=darwin |
10731 |
need_lib_prefix=no |
10732 |
need_version=no |
10733 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
10734 |
soname_spec='${libname}${release}${major}$shared_ext' |
10735 |
shlibpath_overrides_runpath=yes |
10736 |
shlibpath_var=DYLD_LIBRARY_PATH |
10737 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
10738 |
|
10739 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10740 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10741 |
;; |
10742 |
|
10743 |
dgux*) |
10744 |
version_type=linux # correct to gnu/linux during the next big refactor |
10745 |
need_lib_prefix=no |
10746 |
need_version=no |
10747 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
10748 |
soname_spec='${libname}${release}${shared_ext}$major' |
10749 |
shlibpath_var=LD_LIBRARY_PATH |
10750 |
;; |
10751 |
|
10752 |
freebsd* | dragonfly*) |
10753 |
# DragonFly does not have aout. When/if they implement a new |
10754 |
# versioning mechanism, adjust this. |
10755 |
if test -x /usr/bin/objformat; then |
10756 |
objformat=`/usr/bin/objformat` |
10757 |
else |
10758 |
case $host_os in |
10759 |
freebsd[23].*) objformat=aout ;; |
10760 |
*) objformat=elf ;; |
10761 |
esac |
10762 |
fi |
10763 |
version_type=freebsd-$objformat |
10764 |
case $version_type in |
10765 |
freebsd-elf*) |
10766 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
10767 |
need_version=no |
10768 |
need_lib_prefix=no |
10769 |
;; |
10770 |
freebsd-*) |
10771 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
10772 |
need_version=yes |
10773 |
;; |
10774 |
esac |
10775 |
shlibpath_var=LD_LIBRARY_PATH |
10776 |
case $host_os in |
10777 |
freebsd2.*) |
10778 |
shlibpath_overrides_runpath=yes |
10779 |
;; |
10780 |
freebsd3.[01]* | freebsdelf3.[01]*) |
10781 |
shlibpath_overrides_runpath=yes |
10782 |
hardcode_into_libs=yes |
10783 |
;; |
10784 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10785 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
10786 |
shlibpath_overrides_runpath=no |
10787 |
hardcode_into_libs=yes |
10788 |
;; |
10789 |
*) # from 4.6 on, and DragonFly |
10790 |
shlibpath_overrides_runpath=yes |
10791 |
hardcode_into_libs=yes |
10792 |
;; |
10793 |
esac |
10794 |
;; |
10795 |
|
10796 |
gnu*) |
10797 |
version_type=linux # correct to gnu/linux during the next big refactor |
10798 |
need_lib_prefix=no |
10799 |
need_version=no |
10800 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10801 |
soname_spec='${libname}${release}${shared_ext}$major' |
10802 |
shlibpath_var=LD_LIBRARY_PATH |
10803 |
shlibpath_overrides_runpath=no |
10804 |
hardcode_into_libs=yes |
10805 |
;; |
10806 |
|
10807 |
haiku*) |
10808 |
version_type=linux # correct to gnu/linux during the next big refactor |
10809 |
need_lib_prefix=no |
10810 |
need_version=no |
10811 |
dynamic_linker="$host_os runtime_loader" |
10812 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10813 |
soname_spec='${libname}${release}${shared_ext}$major' |
10814 |
shlibpath_var=LIBRARY_PATH |
10815 |
shlibpath_overrides_runpath=yes |
10816 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
10817 |
hardcode_into_libs=yes |
10818 |
;; |
10819 |
|
10820 |
hpux9* | hpux10* | hpux11*) |
10821 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
10822 |
# link against other versions. |
10823 |
version_type=sunos |
10824 |
need_lib_prefix=no |
10825 |
need_version=no |
10826 |
case $host_cpu in |
10827 |
ia64*) |
10828 |
shrext_cmds='.so' |
10829 |
hardcode_into_libs=yes |
10830 |
dynamic_linker="$host_os dld.so" |
10831 |
shlibpath_var=LD_LIBRARY_PATH |
10832 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10833 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10834 |
soname_spec='${libname}${release}${shared_ext}$major' |
10835 |
if test "X$HPUX_IA64_MODE" = X32; then |
10836 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
10837 |
else |
10838 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
10839 |
fi |
10840 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10841 |
;; |
10842 |
hppa*64*) |
10843 |
shrext_cmds='.sl' |
10844 |
hardcode_into_libs=yes |
10845 |
dynamic_linker="$host_os dld.sl" |
10846 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
10847 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10848 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10849 |
soname_spec='${libname}${release}${shared_ext}$major' |
10850 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10851 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10852 |
;; |
10853 |
*) |
10854 |
shrext_cmds='.sl' |
10855 |
dynamic_linker="$host_os dld.sl" |
10856 |
shlibpath_var=SHLIB_PATH |
10857 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
10858 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10859 |
soname_spec='${libname}${release}${shared_ext}$major' |
10860 |
;; |
10861 |
esac |
10862 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
10863 |
postinstall_cmds='chmod 555 $lib' |
10864 |
# or fails outright, so override atomically: |
10865 |
install_override_mode=555 |
10866 |
;; |
10867 |
|
10868 |
interix[3-9]*) |
10869 |
version_type=linux # correct to gnu/linux during the next big refactor |
10870 |
need_lib_prefix=no |
10871 |
need_version=no |
10872 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10873 |
soname_spec='${libname}${release}${shared_ext}$major' |
10874 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10875 |
shlibpath_var=LD_LIBRARY_PATH |
10876 |
shlibpath_overrides_runpath=no |
10877 |
hardcode_into_libs=yes |
10878 |
;; |
10879 |
|
10880 |
irix5* | irix6* | nonstopux*) |
10881 |
case $host_os in |
10882 |
nonstopux*) version_type=nonstopux ;; |
10883 |
*) |
10884 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
10885 |
version_type=linux # correct to gnu/linux during the next big refactor |
10886 |
else |
10887 |
version_type=irix |
10888 |
fi ;; |
10889 |
esac |
10890 |
need_lib_prefix=no |
10891 |
need_version=no |
10892 |
soname_spec='${libname}${release}${shared_ext}$major' |
10893 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
10894 |
case $host_os in |
10895 |
irix5* | nonstopux*) |
10896 |
libsuff= shlibsuff= |
10897 |
;; |
10898 |
*) |
10899 |
case $LD in # libtool.m4 will add one of these switches to LD |
10900 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
10901 |
libsuff= shlibsuff= libmagic=32-bit;; |
10902 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
10903 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
10904 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
10905 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
10906 |
*) libsuff= shlibsuff= libmagic=never-match;; |
10907 |
esac |
10908 |
;; |
10909 |
esac |
10910 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
10911 |
shlibpath_overrides_runpath=no |
10912 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
10913 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
10914 |
hardcode_into_libs=yes |
10915 |
;; |
10916 |
|
10917 |
# No shared lib support for Linux oldld, aout, or coff. |
10918 |
linux*oldld* | linux*aout* | linux*coff*) |
10919 |
dynamic_linker=no |
10920 |
;; |
10921 |
|
10922 |
# This must be glibc/ELF. |
10923 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
10924 |
version_type=linux # correct to gnu/linux during the next big refactor |
10925 |
need_lib_prefix=no |
10926 |
need_version=no |
10927 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10928 |
soname_spec='${libname}${release}${shared_ext}$major' |
10929 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10930 |
shlibpath_var=LD_LIBRARY_PATH |
10931 |
shlibpath_overrides_runpath=no |
10932 |
|
10933 |
# Some binutils ld are patched to set DT_RUNPATH |
10934 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10935 |
$as_echo_n "(cached) " >&6 |
10936 |
else |
10937 |
lt_cv_shlibpath_overrides_runpath=no |
10938 |
save_LDFLAGS=$LDFLAGS |
10939 |
save_libdir=$libdir |
10940 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
10941 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
10942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10943 |
/* end confdefs.h. */ |
10944 |
|
10945 |
int |
10946 |
main () |
10947 |
{ |
10948 |
|
10949 |
; |
10950 |
return 0; |
10951 |
} |
10952 |
_ACEOF |
10953 |
if ac_fn_c_try_link "$LINENO"; then : |
10954 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
10955 |
lt_cv_shlibpath_overrides_runpath=yes |
10956 |
fi |
10957 |
fi |
10958 |
rm -f core conftest.err conftest.$ac_objext \ |
10959 |
conftest$ac_exeext conftest.$ac_ext |
10960 |
LDFLAGS=$save_LDFLAGS |
10961 |
libdir=$save_libdir |
10962 |
|
10963 |
fi |
10964 |
|
10965 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
10966 |
|
10967 |
# This implies no fast_install, which is unacceptable. |
10968 |
# Some rework will be needed to allow for fast_install |
10969 |
# before this can be enabled. |
10970 |
hardcode_into_libs=yes |
10971 |
|
10972 |
# Append ld.so.conf contents to the search path |
10973 |
if test -f /etc/ld.so.conf; then |
10974 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
10975 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10976 |
fi |
10977 |
|
10978 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
10979 |
# powerpc, because MkLinux only supported shared libraries with the |
10980 |
# GNU dynamic linker. Since this was broken with cross compilers, |
10981 |
# most powerpc-linux boxes support dynamic linking these days and |
10982 |
# people can always --disable-shared, the test was removed, and we |
10983 |
# assume the GNU/Linux dynamic linker is in use. |
10984 |
dynamic_linker='GNU/Linux ld.so' |
10985 |
;; |
10986 |
|
10987 |
netbsd*) |
10988 |
version_type=sunos |
10989 |
need_lib_prefix=no |
10990 |
need_version=no |
10991 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10992 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10993 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
10994 |
dynamic_linker='NetBSD (a.out) ld.so' |
10995 |
else |
10996 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10997 |
soname_spec='${libname}${release}${shared_ext}$major' |
10998 |
dynamic_linker='NetBSD ld.elf_so' |
10999 |
fi |
11000 |
shlibpath_var=LD_LIBRARY_PATH |
11001 |
shlibpath_overrides_runpath=yes |
11002 |
hardcode_into_libs=yes |
11003 |
;; |
11004 |
|
11005 |
newsos6) |
11006 |
version_type=linux # correct to gnu/linux during the next big refactor |
11007 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11008 |
shlibpath_var=LD_LIBRARY_PATH |
11009 |
shlibpath_overrides_runpath=yes |
11010 |
;; |
11011 |
|
11012 |
*nto* | *qnx*) |
11013 |
version_type=qnx |
11014 |
need_lib_prefix=no |
11015 |
need_version=no |
11016 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11017 |
soname_spec='${libname}${release}${shared_ext}$major' |
11018 |
shlibpath_var=LD_LIBRARY_PATH |
11019 |
shlibpath_overrides_runpath=no |
11020 |
hardcode_into_libs=yes |
11021 |
dynamic_linker='ldqnx.so' |
11022 |
;; |
11023 |
|
11024 |
openbsd*) |
11025 |
version_type=sunos |
11026 |
sys_lib_dlsearch_path_spec="/usr/lib" |
11027 |
need_lib_prefix=no |
11028 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
11029 |
case $host_os in |
11030 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
11031 |
*) need_version=no ;; |
11032 |
esac |
11033 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11034 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11035 |
shlibpath_var=LD_LIBRARY_PATH |
11036 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11037 |
case $host_os in |
11038 |
openbsd2.[89] | openbsd2.[89].*) |
11039 |
shlibpath_overrides_runpath=no |
11040 |
;; |
11041 |
*) |
11042 |
shlibpath_overrides_runpath=yes |
11043 |
;; |
11044 |
esac |
11045 |
else |
11046 |
shlibpath_overrides_runpath=yes |
11047 |
fi |
11048 |
;; |
11049 |
|
11050 |
os2*) |
11051 |
libname_spec='$name' |
11052 |
shrext_cmds=".dll" |
11053 |
need_lib_prefix=no |
11054 |
library_names_spec='$libname${shared_ext} $libname.a' |
11055 |
dynamic_linker='OS/2 ld.exe' |
11056 |
shlibpath_var=LIBPATH |
11057 |
;; |
11058 |
|
11059 |
osf3* | osf4* | osf5*) |
11060 |
version_type=osf |
11061 |
need_lib_prefix=no |
11062 |
need_version=no |
11063 |
soname_spec='${libname}${release}${shared_ext}$major' |
11064 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11065 |
shlibpath_var=LD_LIBRARY_PATH |
11066 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11067 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
11068 |
;; |
11069 |
|
11070 |
rdos*) |
11071 |
dynamic_linker=no |
11072 |
;; |
11073 |
|
11074 |
solaris*) |
11075 |
version_type=linux # correct to gnu/linux during the next big refactor |
11076 |
need_lib_prefix=no |
11077 |
need_version=no |
11078 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11079 |
soname_spec='${libname}${release}${shared_ext}$major' |
11080 |
shlibpath_var=LD_LIBRARY_PATH |
11081 |
shlibpath_overrides_runpath=yes |
11082 |
hardcode_into_libs=yes |
11083 |
# ldd complains unless libraries are executable |
11084 |
postinstall_cmds='chmod +x $lib' |
11085 |
;; |
11086 |
|
11087 |
sunos4*) |
11088 |
version_type=sunos |
11089 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11090 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11091 |
shlibpath_var=LD_LIBRARY_PATH |
11092 |
shlibpath_overrides_runpath=yes |
11093 |
if test "$with_gnu_ld" = yes; then |
11094 |
need_lib_prefix=no |
11095 |
fi |
11096 |
need_version=yes |
11097 |
;; |
11098 |
|
11099 |
sysv4 | sysv4.3*) |
11100 |
version_type=linux # correct to gnu/linux during the next big refactor |
11101 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11102 |
soname_spec='${libname}${release}${shared_ext}$major' |
11103 |
shlibpath_var=LD_LIBRARY_PATH |
11104 |
case $host_vendor in |
11105 |
sni) |
11106 |
shlibpath_overrides_runpath=no |
11107 |
need_lib_prefix=no |
11108 |
runpath_var=LD_RUN_PATH |
11109 |
;; |
11110 |
siemens) |
11111 |
need_lib_prefix=no |
11112 |
;; |
11113 |
motorola) |
11114 |
need_lib_prefix=no |
11115 |
need_version=no |
11116 |
shlibpath_overrides_runpath=no |
11117 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
11118 |
;; |
11119 |
esac |
11120 |
;; |
11121 |
|
11122 |
sysv4*MP*) |
11123 |
if test -d /usr/nec ;then |
11124 |
version_type=linux # correct to gnu/linux during the next big refactor |
11125 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
11126 |
soname_spec='$libname${shared_ext}.$major' |
11127 |
shlibpath_var=LD_LIBRARY_PATH |
11128 |
fi |
11129 |
;; |
11130 |
|
11131 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11132 |
version_type=freebsd-elf |
11133 |
need_lib_prefix=no |
11134 |
need_version=no |
11135 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11136 |
soname_spec='${libname}${release}${shared_ext}$major' |
11137 |
shlibpath_var=LD_LIBRARY_PATH |
11138 |
shlibpath_overrides_runpath=yes |
11139 |
hardcode_into_libs=yes |
11140 |
if test "$with_gnu_ld" = yes; then |
11141 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11142 |
else |
11143 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11144 |
case $host_os in |
11145 |
sco3.2v5*) |
11146 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
11147 |
;; |
11148 |
esac |
11149 |
fi |
11150 |
sys_lib_dlsearch_path_spec='/usr/lib' |
11151 |
;; |
11152 |
|
11153 |
tpf*) |
11154 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11155 |
version_type=linux # correct to gnu/linux during the next big refactor |
11156 |
need_lib_prefix=no |
11157 |
need_version=no |
11158 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11159 |
shlibpath_var=LD_LIBRARY_PATH |
11160 |
shlibpath_overrides_runpath=no |
11161 |
hardcode_into_libs=yes |
11162 |
;; |
11163 |
|
11164 |
uts4*) |
11165 |
version_type=linux # correct to gnu/linux during the next big refactor |
11166 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11167 |
soname_spec='${libname}${release}${shared_ext}$major' |
11168 |
shlibpath_var=LD_LIBRARY_PATH |
11169 |
;; |
11170 |
|
11171 |
*) |
11172 |
dynamic_linker=no |
11173 |
;; |
11174 |
esac |
11175 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11176 |
$as_echo "$dynamic_linker" >&6; } |
11177 |
test "$dynamic_linker" = no && can_build_shared=no |
11178 |
|
11179 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11180 |
if test "$GCC" = yes; then |
11181 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11182 |
fi |
11183 |
|
11184 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11185 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
11186 |
fi |
11187 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
11188 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
11189 |
fi |
11190 |
|
11191 |
|
11192 |
|
11193 |
|
11194 |
|
11195 |
|
11196 |
|
11197 |
|
11198 |
|
11199 |
|
11200 |
|
11201 |
|
11202 |
|
11203 |
|
11204 |
|
11205 |
|
11206 |
|
11207 |
|
11208 |
|
11209 |
|
11210 |
|
11211 |
|
11212 |
|
11213 |
|
11214 |
|
11215 |
|
11216 |
|
11217 |
|
11218 |
|
11219 |
|
11220 |
|
11221 |
|
11222 |
|
11223 |
|
11224 |
|
11225 |
|
11226 |
|
11227 |
|
11228 |
|
11229 |
|
11230 |
|
11231 |
|
11232 |
|
11233 |
|
11234 |
|
11235 |
|
11236 |
|
11237 |
|
11238 |
|
11239 |
|
11240 |
|
11241 |
|
11242 |
|
11243 |
|
11244 |
|
11245 |
|
11246 |
|
11247 |
|
11248 |
|
11249 |
|
11250 |
|
11251 |
|
11252 |
|
11253 |
|
11254 |
|
11255 |
|
11256 |
|
11257 |
|
11258 |
|
11259 |
|
11260 |
|
11261 |
|
11262 |
|
11263 |
|
11264 |
|
11265 |
|
11266 |
|
11267 |
|
11268 |
|
11269 |
|
11270 |
|
11271 |
|
11272 |
|
11273 |
|
11274 |
|
11275 |
|
11276 |
|
11277 |
|
11278 |
|
11279 |
|
11280 |
|
11281 |
|
11282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11283 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11284 |
hardcode_action= |
11285 |
if test -n "$hardcode_libdir_flag_spec" || |
11286 |
test -n "$runpath_var" || |
11287 |
test "X$hardcode_automatic" = "Xyes" ; then |
11288 |
|
11289 |
# We can hardcode non-existent directories. |
11290 |
if test "$hardcode_direct" != no && |
11291 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11292 |
# have to relink, otherwise we might link with an installed library |
11293 |
# when we should be linking with a yet-to-be-installed one |
11294 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
11295 |
test "$hardcode_minus_L" != no; then |
11296 |
# Linking always hardcodes the temporary library directory. |
11297 |
hardcode_action=relink |
11298 |
else |
11299 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
11300 |
hardcode_action=immediate |
11301 |
fi |
11302 |
else |
11303 |
# We cannot hardcode anything, or else we can only hardcode existing |
11304 |
# directories. |
11305 |
hardcode_action=unsupported |
11306 |
fi |
11307 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11308 |
$as_echo "$hardcode_action" >&6; } |
11309 |
|
11310 |
if test "$hardcode_action" = relink || |
11311 |
test "$inherit_rpath" = yes; then |
11312 |
# Fast installation is not supported |
11313 |
enable_fast_install=no |
11314 |
elif test "$shlibpath_overrides_runpath" = yes || |
11315 |
test "$enable_shared" = no; then |
11316 |
# Fast installation is not necessary |
11317 |
enable_fast_install=needless |
11318 |
fi |
11319 |
|
11320 |
|
11321 |
|
11322 |
|
11323 |
|
11324 |
|
11325 |
if test "x$enable_dlopen" != xyes; then |
11326 |
enable_dlopen=unknown |
11327 |
enable_dlopen_self=unknown |
11328 |
enable_dlopen_self_static=unknown |
11329 |
else |
11330 |
lt_cv_dlopen=no |
11331 |
lt_cv_dlopen_libs= |
11332 |
|
11333 |
case $host_os in |
11334 |
beos*) |
11335 |
lt_cv_dlopen="load_add_on" |
11336 |
lt_cv_dlopen_libs= |
11337 |
lt_cv_dlopen_self=yes |
11338 |
;; |
11339 |
|
11340 |
mingw* | pw32* | cegcc*) |
11341 |
lt_cv_dlopen="LoadLibrary" |
11342 |
lt_cv_dlopen_libs= |
11343 |
;; |
11344 |
|
11345 |
cygwin*) |
11346 |
lt_cv_dlopen="dlopen" |
11347 |
lt_cv_dlopen_libs= |
11348 |
;; |
11349 |
|
11350 |
darwin*) |
11351 |
# if libdl is installed we need to link against it |
11352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11353 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11354 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11355 |
$as_echo_n "(cached) " >&6 |
11356 |
else |
11357 |
ac_check_lib_save_LIBS=$LIBS |
11358 |
LIBS="-ldl $LIBS" |
11359 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11360 |
/* end confdefs.h. */ |
11361 |
|
11362 |
/* Override any GCC internal prototype to avoid an error. |
11363 |
Use char because int might match the return type of a GCC |
11364 |
builtin and then its argument prototype would still apply. */ |
11365 |
#ifdef __cplusplus |
11366 |
extern "C" |
11367 |
#endif |
11368 |
char dlopen (); |
11369 |
int |
11370 |
main () |
11371 |
{ |
11372 |
return dlopen (); |
11373 |
; |
11374 |
return 0; |
11375 |
} |
11376 |
_ACEOF |
11377 |
if ac_fn_c_try_link "$LINENO"; then : |
11378 |
ac_cv_lib_dl_dlopen=yes |
11379 |
else |
11380 |
ac_cv_lib_dl_dlopen=no |
11381 |
fi |
11382 |
rm -f core conftest.err conftest.$ac_objext \ |
11383 |
conftest$ac_exeext conftest.$ac_ext |
11384 |
LIBS=$ac_check_lib_save_LIBS |
11385 |
fi |
11386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11387 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11388 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11389 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11390 |
else |
11391 |
|
11392 |
lt_cv_dlopen="dyld" |
11393 |
lt_cv_dlopen_libs= |
11394 |
lt_cv_dlopen_self=yes |
11395 |
|
11396 |
fi |
11397 |
|
11398 |
;; |
11399 |
|
11400 |
*) |
11401 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11402 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
11403 |
lt_cv_dlopen="shl_load" |
11404 |
else |
11405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11406 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
11407 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
11408 |
$as_echo_n "(cached) " >&6 |
11409 |
else |
11410 |
ac_check_lib_save_LIBS=$LIBS |
11411 |
LIBS="-ldld $LIBS" |
11412 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11413 |
/* end confdefs.h. */ |
11414 |
|
11415 |
/* Override any GCC internal prototype to avoid an error. |
11416 |
Use char because int might match the return type of a GCC |
11417 |
builtin and then its argument prototype would still apply. */ |
11418 |
#ifdef __cplusplus |
11419 |
extern "C" |
11420 |
#endif |
11421 |
char shl_load (); |
11422 |
int |
11423 |
main () |
11424 |
{ |
11425 |
return shl_load (); |
11426 |
; |
11427 |
return 0; |
11428 |
} |
11429 |
_ACEOF |
11430 |
if ac_fn_c_try_link "$LINENO"; then : |
11431 |
ac_cv_lib_dld_shl_load=yes |
11432 |
else |
11433 |
ac_cv_lib_dld_shl_load=no |
11434 |
fi |
11435 |
rm -f core conftest.err conftest.$ac_objext \ |
11436 |
conftest$ac_exeext conftest.$ac_ext |
11437 |
LIBS=$ac_check_lib_save_LIBS |
11438 |
fi |
11439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11440 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11441 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
11442 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11443 |
else |
11444 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11445 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
11446 |
lt_cv_dlopen="dlopen" |
11447 |
else |
11448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11449 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11450 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11451 |
$as_echo_n "(cached) " >&6 |
11452 |
else |
11453 |
ac_check_lib_save_LIBS=$LIBS |
11454 |
LIBS="-ldl $LIBS" |
11455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11456 |
/* end confdefs.h. */ |
11457 |
|
11458 |
/* Override any GCC internal prototype to avoid an error. |
11459 |
Use char because int might match the return type of a GCC |
11460 |
builtin and then its argument prototype would still apply. */ |
11461 |
#ifdef __cplusplus |
11462 |
extern "C" |
11463 |
#endif |
11464 |
char dlopen (); |
11465 |
int |
11466 |
main () |
11467 |
{ |
11468 |
return dlopen (); |
11469 |
; |
11470 |
return 0; |
11471 |
} |
11472 |
_ACEOF |
11473 |
if ac_fn_c_try_link "$LINENO"; then : |
11474 |
ac_cv_lib_dl_dlopen=yes |
11475 |
else |
11476 |
ac_cv_lib_dl_dlopen=no |
11477 |
fi |
11478 |
rm -f core conftest.err conftest.$ac_objext \ |
11479 |
conftest$ac_exeext conftest.$ac_ext |
11480 |
LIBS=$ac_check_lib_save_LIBS |
11481 |
fi |
11482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11483 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11484 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11485 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11486 |
else |
11487 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11488 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11489 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
11490 |
$as_echo_n "(cached) " >&6 |
11491 |
else |
11492 |
ac_check_lib_save_LIBS=$LIBS |
11493 |
LIBS="-lsvld $LIBS" |
11494 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11495 |
/* end confdefs.h. */ |
11496 |
|
11497 |
/* Override any GCC internal prototype to avoid an error. |
11498 |
Use char because int might match the return type of a GCC |
11499 |
builtin and then its argument prototype would still apply. */ |
11500 |
#ifdef __cplusplus |
11501 |
extern "C" |
11502 |
#endif |
11503 |
char dlopen (); |
11504 |
int |
11505 |
main () |
11506 |
{ |
11507 |
return dlopen (); |
11508 |
; |
11509 |
return 0; |
11510 |
} |
11511 |
_ACEOF |
11512 |
if ac_fn_c_try_link "$LINENO"; then : |
11513 |
ac_cv_lib_svld_dlopen=yes |
11514 |
else |
11515 |
ac_cv_lib_svld_dlopen=no |
11516 |
fi |
11517 |
rm -f core conftest.err conftest.$ac_objext \ |
11518 |
conftest$ac_exeext conftest.$ac_ext |
11519 |
LIBS=$ac_check_lib_save_LIBS |
11520 |
fi |
11521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11522 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11523 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
11524 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11525 |
else |
11526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11527 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
11528 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
11529 |
$as_echo_n "(cached) " >&6 |
11530 |
else |
11531 |
ac_check_lib_save_LIBS=$LIBS |
11532 |
LIBS="-ldld $LIBS" |
11533 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11534 |
/* end confdefs.h. */ |
11535 |
|
11536 |
/* Override any GCC internal prototype to avoid an error. |
11537 |
Use char because int might match the return type of a GCC |
11538 |
builtin and then its argument prototype would still apply. */ |
11539 |
#ifdef __cplusplus |
11540 |
extern "C" |
11541 |
#endif |
11542 |
char dld_link (); |
11543 |
int |
11544 |
main () |
11545 |
{ |
11546 |
return dld_link (); |
11547 |
; |
11548 |
return 0; |
11549 |
} |
11550 |
_ACEOF |
11551 |
if ac_fn_c_try_link "$LINENO"; then : |
11552 |
ac_cv_lib_dld_dld_link=yes |
11553 |
else |
11554 |
ac_cv_lib_dld_dld_link=no |
11555 |
fi |
11556 |
rm -f core conftest.err conftest.$ac_objext \ |
11557 |
conftest$ac_exeext conftest.$ac_ext |
11558 |
LIBS=$ac_check_lib_save_LIBS |
11559 |
fi |
11560 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11561 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11562 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
11563 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11564 |
fi |
11565 |
|
11566 |
|
11567 |
fi |
11568 |
|
11569 |
|
11570 |
fi |
11571 |
|
11572 |
|
11573 |
fi |
11574 |
|
11575 |
|
11576 |
fi |
11577 |
|
11578 |
|
11579 |
fi |
11580 |
|
11581 |
;; |
11582 |
esac |
11583 |
|
11584 |
if test "x$lt_cv_dlopen" != xno; then |
11585 |
enable_dlopen=yes |
11586 |
else |
11587 |
enable_dlopen=no |
11588 |
fi |
11589 |
|
11590 |
case $lt_cv_dlopen in |
11591 |
dlopen) |
11592 |
save_CPPFLAGS="$CPPFLAGS" |
11593 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11594 |
|
11595 |
save_LDFLAGS="$LDFLAGS" |
11596 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11597 |
|
11598 |
save_LIBS="$LIBS" |
11599 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
11600 |
|
11601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11602 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11603 |
if ${lt_cv_dlopen_self+:} false; then : |
11604 |
$as_echo_n "(cached) " >&6 |
11605 |
else |
11606 |
if test "$cross_compiling" = yes; then : |
11607 |
lt_cv_dlopen_self=cross |
11608 |
else |
11609 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11610 |
lt_status=$lt_dlunknown |
11611 |
cat > conftest.$ac_ext <<_LT_EOF |
11612 |
#line $LINENO "configure" |
11613 |
#include "confdefs.h" |
11614 |
|
11615 |
#if HAVE_DLFCN_H |
11616 |
#include <dlfcn.h> |
11617 |
#endif |
11618 |
|
11619 |
#include <stdio.h> |
11620 |
|
11621 |
#ifdef RTLD_GLOBAL |
11622 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11623 |
#else |
11624 |
# ifdef DL_GLOBAL |
11625 |
# define LT_DLGLOBAL DL_GLOBAL |
11626 |
# else |
11627 |
# define LT_DLGLOBAL 0 |
11628 |
# endif |
11629 |
#endif |
11630 |
|
11631 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11632 |
find out it does not work in some platform. */ |
11633 |
#ifndef LT_DLLAZY_OR_NOW |
11634 |
# ifdef RTLD_LAZY |
11635 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11636 |
# else |
11637 |
# ifdef DL_LAZY |
11638 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11639 |
# else |
11640 |
# ifdef RTLD_NOW |
11641 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11642 |
# else |
11643 |
# ifdef DL_NOW |
11644 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11645 |
# else |
11646 |
# define LT_DLLAZY_OR_NOW 0 |
11647 |
# endif |
11648 |
# endif |
11649 |
# endif |
11650 |
# endif |
11651 |
#endif |
11652 |
|
11653 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
11654 |
correspondingly for the symbols needed. */ |
11655 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11656 |
int fnord () __attribute__((visibility("default"))); |
11657 |
#endif |
11658 |
|
11659 |
int fnord () { return 42; } |
11660 |
int main () |
11661 |
{ |
11662 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11663 |
int status = $lt_dlunknown; |
11664 |
|
11665 |
if (self) |
11666 |
{ |
11667 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11668 |
else |
11669 |
{ |
11670 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11671 |
else puts (dlerror ()); |
11672 |
} |
11673 |
/* dlclose (self); */ |
11674 |
} |
11675 |
else |
11676 |
puts (dlerror ()); |
11677 |
|
11678 |
return status; |
11679 |
} |
11680 |
_LT_EOF |
11681 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11682 |
(eval $ac_link) 2>&5 |
11683 |
ac_status=$? |
11684 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11685 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
11686 |
(./conftest; exit; ) >&5 2>/dev/null |
11687 |
lt_status=$? |
11688 |
case x$lt_status in |
11689 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
11690 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
11691 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
11692 |
esac |
11693 |
else : |
11694 |
# compilation failed |
11695 |
lt_cv_dlopen_self=no |
11696 |
fi |
11697 |
fi |
11698 |
rm -fr conftest* |
11699 |
|
11700 |
|
11701 |
fi |
11702 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11703 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
11704 |
|
11705 |
if test "x$lt_cv_dlopen_self" = xyes; then |
11706 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11707 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11708 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
11709 |
if ${lt_cv_dlopen_self_static+:} false; then : |
11710 |
$as_echo_n "(cached) " >&6 |
11711 |
else |
11712 |
if test "$cross_compiling" = yes; then : |
11713 |
lt_cv_dlopen_self_static=cross |
11714 |
else |
11715 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11716 |
lt_status=$lt_dlunknown |
11717 |
cat > conftest.$ac_ext <<_LT_EOF |
11718 |
#line $LINENO "configure" |
11719 |
#include "confdefs.h" |
11720 |
|
11721 |
#if HAVE_DLFCN_H |
11722 |
#include <dlfcn.h> |
11723 |
#endif |
11724 |
|
11725 |
#include <stdio.h> |
11726 |
|
11727 |
#ifdef RTLD_GLOBAL |
11728 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11729 |
#else |
11730 |
# ifdef DL_GLOBAL |
11731 |
# define LT_DLGLOBAL DL_GLOBAL |
11732 |
# else |
11733 |
# define LT_DLGLOBAL 0 |
11734 |
# endif |
11735 |
#endif |
11736 |
|
11737 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11738 |
find out it does not work in some platform. */ |
11739 |
#ifndef LT_DLLAZY_OR_NOW |
11740 |
# ifdef RTLD_LAZY |
11741 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11742 |
# else |
11743 |
# ifdef DL_LAZY |
11744 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11745 |
# else |
11746 |
# ifdef RTLD_NOW |
11747 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11748 |
# else |
11749 |
# ifdef DL_NOW |
11750 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11751 |
# else |
11752 |
# define LT_DLLAZY_OR_NOW 0 |
11753 |
# endif |
11754 |
# endif |
11755 |
# endif |
11756 |
# endif |
11757 |
#endif |
11758 |
|
11759 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
11760 |
correspondingly for the symbols needed. */ |
11761 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11762 |
int fnord () __attribute__((visibility("default"))); |
11763 |
#endif |
11764 |
|
11765 |
int fnord () { return 42; } |
11766 |
int main () |
11767 |
{ |
11768 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11769 |
int status = $lt_dlunknown; |
11770 |
|
11771 |
if (self) |
11772 |
{ |
11773 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11774 |
else |
11775 |
{ |
11776 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11777 |
else puts (dlerror ()); |
11778 |
} |
11779 |
/* dlclose (self); */ |
11780 |
} |
11781 |
else |
11782 |
puts (dlerror ()); |
11783 |
|
11784 |
return status; |
11785 |
} |
11786 |
_LT_EOF |
11787 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11788 |
(eval $ac_link) 2>&5 |
11789 |
ac_status=$? |
11790 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11791 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
11792 |
(./conftest; exit; ) >&5 2>/dev/null |
11793 |
lt_status=$? |
11794 |
case x$lt_status in |
11795 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
11796 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
11797 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
11798 |
esac |
11799 |
else : |
11800 |
# compilation failed |
11801 |
lt_cv_dlopen_self_static=no |
11802 |
fi |
11803 |
fi |
11804 |
rm -fr conftest* |
11805 |
|
11806 |
|
11807 |
fi |
11808 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11809 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
11810 |
fi |
11811 |
|
11812 |
CPPFLAGS="$save_CPPFLAGS" |
11813 |
LDFLAGS="$save_LDFLAGS" |
11814 |
LIBS="$save_LIBS" |
11815 |
;; |
11816 |
esac |
11817 |
|
11818 |
case $lt_cv_dlopen_self in |
11819 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
11820 |
*) enable_dlopen_self=unknown ;; |
11821 |
esac |
11822 |
|
11823 |
case $lt_cv_dlopen_self_static in |
11824 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
11825 |
*) enable_dlopen_self_static=unknown ;; |
11826 |
esac |
11827 |
fi |
11828 |
|
11829 |
|
11830 |
|
11831 |
|
11832 |
|
11833 |
|
11834 |
|
11835 |
|
11836 |
|
11837 |
|
11838 |
|
11839 |
|
11840 |
|
11841 |
|
11842 |
|
11843 |
|
11844 |
|
11845 |
striplib= |
11846 |
old_striplib= |
11847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11848 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11849 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11850 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
11851 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
11852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11853 |
$as_echo "yes" >&6; } |
11854 |
else |
11855 |
# FIXME - insert some real tests, host_os isn't really good enough |
11856 |
case $host_os in |
11857 |
darwin*) |
11858 |
if test -n "$STRIP" ; then |
11859 |
striplib="$STRIP -x" |
11860 |
old_striplib="$STRIP -S" |
11861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11862 |
$as_echo "yes" >&6; } |
11863 |
else |
11864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11865 |
$as_echo "no" >&6; } |
11866 |
fi |
11867 |
;; |
11868 |
*) |
11869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11870 |
$as_echo "no" >&6; } |
11871 |
;; |
11872 |
esac |
11873 |
fi |
11874 |
|
11875 |
|
11876 |
|
11877 |
|
11878 |
|
11879 |
|
11880 |
|
11881 |
|
11882 |
|
11883 |
|
11884 |
|
11885 |
|
11886 |
# Report which library types will actually be built |
11887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11888 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
11889 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
11890 |
$as_echo "$can_build_shared" >&6; } |
11891 |
|
11892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11893 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
11894 |
test "$can_build_shared" = "no" && enable_shared=no |
11895 |
|
11896 |
# On AIX, shared libraries and static libraries use the same namespace, and |
11897 |
# are all built from PIC. |
11898 |
case $host_os in |
11899 |
aix3*) |
11900 |
test "$enable_shared" = yes && enable_static=no |
11901 |
if test -n "$RANLIB"; then |
11902 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
11903 |
postinstall_cmds='$RANLIB $lib' |
11904 |
fi |
11905 |
;; |
11906 |
|
11907 |
aix[4-9]*) |
11908 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11909 |
test "$enable_shared" = yes && enable_static=no |
11910 |
fi |
11911 |
;; |
11912 |
esac |
11913 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11914 |
$as_echo "$enable_shared" >&6; } |
11915 |
|
11916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11917 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
11918 |
# Make sure either enable_shared or enable_static is yes. |
11919 |
test "$enable_shared" = yes || enable_static=yes |
11920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11921 |
$as_echo "$enable_static" >&6; } |
11922 |
|
11923 |
|
11924 |
|
11925 |
|
11926 |
fi |
11927 |
ac_ext=c |
11928 |
ac_cpp='$CPP $CPPFLAGS' |
11929 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11930 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11931 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11932 |
|
11933 |
CC="$lt_save_CC" |
11934 |
|
11935 |
|
11936 |
|
11937 |
|
11938 |
|
11939 |
|
11940 |
|
11941 |
|
11942 |
|
11943 |
|
11944 |
|
11945 |
|
11946 |
|
11947 |
|
11948 |
|
11949 |
ac_config_commands="$ac_config_commands libtool" |
11950 |
|
11951 |
|
11952 |
|
11953 |
|
11954 |
# Only expand once: |
11955 |
|
11956 |
|
11957 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
11958 |
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
11959 |
if ${libltdl_cv_shlibext+:} false; then : |
11960 |
$as_echo_n "(cached) " >&6 |
11961 |
else |
11962 |
|
11963 |
module=yes |
11964 |
eval libltdl_cv_shlibext=$shrext_cmds |
11965 |
module=no |
11966 |
eval libltdl_cv_shrext=$shrext_cmds |
11967 |
|
11968 |
fi |
11969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
11970 |
$as_echo "$libltdl_cv_shlibext" >&6; } |
11971 |
if test -n "$libltdl_cv_shlibext"; then |
11972 |
|
11973 |
cat >>confdefs.h <<_ACEOF |
11974 |
#define LT_MODULE_EXT "$libltdl_cv_shlibext" |
11975 |
_ACEOF |
11976 |
|
11977 |
fi |
11978 |
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
11979 |
|
11980 |
cat >>confdefs.h <<_ACEOF |
11981 |
#define LT_SHARED_EXT "$libltdl_cv_shrext" |
11982 |
_ACEOF |
11983 |
|
11984 |
fi |
11985 |
|
11986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
11987 |
$as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
11988 |
if ${lt_cv_module_path_var+:} false; then : |
11989 |
$as_echo_n "(cached) " >&6 |
11990 |
else |
11991 |
lt_cv_module_path_var="$shlibpath_var" |
11992 |
fi |
11993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
11994 |
$as_echo "$lt_cv_module_path_var" >&6; } |
11995 |
if test -n "$lt_cv_module_path_var"; then |
11996 |
|
11997 |
cat >>confdefs.h <<_ACEOF |
11998 |
#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
11999 |
_ACEOF |
12000 |
|
12001 |
fi |
12002 |
|
12003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
12004 |
$as_echo_n "checking for the default library search path... " >&6; } |
12005 |
if ${lt_cv_sys_dlsearch_path+:} false; then : |
12006 |
$as_echo_n "(cached) " >&6 |
12007 |
else |
12008 |
lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
12009 |
fi |
12010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
12011 |
$as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
12012 |
if test -n "$lt_cv_sys_dlsearch_path"; then |
12013 |
sys_dlsearch_path= |
12014 |
for dir in $lt_cv_sys_dlsearch_path; do |
12015 |
if test -z "$sys_dlsearch_path"; then |
12016 |
sys_dlsearch_path="$dir" |
12017 |
else |
12018 |
sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
12019 |
fi |
12020 |
done |
12021 |
|
12022 |
cat >>confdefs.h <<_ACEOF |
12023 |
#define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
12024 |
_ACEOF |
12025 |
|
12026 |
fi |
12027 |
|
12028 |
|
12029 |
LT_DLLOADERS= |
12030 |
|
12031 |
|
12032 |
ac_ext=c |
12033 |
ac_cpp='$CPP $CPPFLAGS' |
12034 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12035 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12036 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12037 |
|
12038 |
|
12039 |
LIBADD_DLOPEN= |
12040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
12041 |
$as_echo_n "checking for library containing dlopen... " >&6; } |
12042 |
if ${ac_cv_search_dlopen+:} false; then : |
12043 |
$as_echo_n "(cached) " >&6 |
12044 |
else |
12045 |
ac_func_search_save_LIBS=$LIBS |
12046 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12047 |
/* end confdefs.h. */ |
12048 |
|
12049 |
/* Override any GCC internal prototype to avoid an error. |
12050 |
Use char because int might match the return type of a GCC |
12051 |
builtin and then its argument prototype would still apply. */ |
12052 |
#ifdef __cplusplus |
12053 |
extern "C" |
12054 |
#endif |
12055 |
char dlopen (); |
12056 |
int |
12057 |
main () |
12058 |
{ |
12059 |
return dlopen (); |
12060 |
; |
12061 |
return 0; |
12062 |
} |
12063 |
_ACEOF |
12064 |
for ac_lib in '' dl; do |
12065 |
if test -z "$ac_lib"; then |
12066 |
ac_res="none required" |
12067 |
else |
12068 |
ac_res=-l$ac_lib |
12069 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12070 |
fi |
12071 |
if ac_fn_c_try_link "$LINENO"; then : |
12072 |
ac_cv_search_dlopen=$ac_res |
12073 |
fi |
12074 |
rm -f core conftest.err conftest.$ac_objext \ |
12075 |
conftest$ac_exeext |
12076 |
if ${ac_cv_search_dlopen+:} false; then : |
12077 |
break |
12078 |
fi |
12079 |
done |
12080 |
if ${ac_cv_search_dlopen+:} false; then : |
12081 |
|
12082 |
else |
12083 |
ac_cv_search_dlopen=no |
12084 |
fi |
12085 |
rm conftest.$ac_ext |
12086 |
LIBS=$ac_func_search_save_LIBS |
12087 |
fi |
12088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12089 |
$as_echo "$ac_cv_search_dlopen" >&6; } |
12090 |
ac_res=$ac_cv_search_dlopen |
12091 |
if test "$ac_res" != no; then : |
12092 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12093 |
|
12094 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12095 |
|
12096 |
if test "$ac_cv_search_dlopen" != "none required" ; then |
12097 |
LIBADD_DLOPEN="-ldl" |
12098 |
fi |
12099 |
libltdl_cv_lib_dl_dlopen="yes" |
12100 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12101 |
else |
12102 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12103 |
/* end confdefs.h. */ |
12104 |
#if HAVE_DLFCN_H |
12105 |
# include <dlfcn.h> |
12106 |
#endif |
12107 |
|
12108 |
int |
12109 |
main () |
12110 |
{ |
12111 |
dlopen(0, 0); |
12112 |
; |
12113 |
return 0; |
12114 |
} |
12115 |
_ACEOF |
12116 |
if ac_fn_c_try_link "$LINENO"; then : |
12117 |
|
12118 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12119 |
|
12120 |
libltdl_cv_func_dlopen="yes" |
12121 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12122 |
else |
12123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12124 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
12125 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
12126 |
$as_echo_n "(cached) " >&6 |
12127 |
else |
12128 |
ac_check_lib_save_LIBS=$LIBS |
12129 |
LIBS="-lsvld $LIBS" |
12130 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12131 |
/* end confdefs.h. */ |
12132 |
|
12133 |
/* Override any GCC internal prototype to avoid an error. |
12134 |
Use char because int might match the return type of a GCC |
12135 |
builtin and then its argument prototype would still apply. */ |
12136 |
#ifdef __cplusplus |
12137 |
extern "C" |
12138 |
#endif |
12139 |
char dlopen (); |
12140 |
int |
12141 |
main () |
12142 |
{ |
12143 |
return dlopen (); |
12144 |
; |
12145 |
return 0; |
12146 |
} |
12147 |
_ACEOF |
12148 |
if ac_fn_c_try_link "$LINENO"; then : |
12149 |
ac_cv_lib_svld_dlopen=yes |
12150 |
else |
12151 |
ac_cv_lib_svld_dlopen=no |
12152 |
fi |
12153 |
rm -f core conftest.err conftest.$ac_objext \ |
12154 |
conftest$ac_exeext conftest.$ac_ext |
12155 |
LIBS=$ac_check_lib_save_LIBS |
12156 |
fi |
12157 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12158 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
12159 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
12160 |
|
12161 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12162 |
|
12163 |
LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12164 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12165 |
fi |
12166 |
|
12167 |
fi |
12168 |
rm -f core conftest.err conftest.$ac_objext \ |
12169 |
conftest$ac_exeext conftest.$ac_ext |
12170 |
fi |
12171 |
|
12172 |
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12173 |
then |
12174 |
lt_save_LIBS="$LIBS" |
12175 |
LIBS="$LIBS $LIBADD_DLOPEN" |
12176 |
for ac_func in dlerror |
12177 |
do : |
12178 |
ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
12179 |
if test "x$ac_cv_func_dlerror" = xyes; then : |
12180 |
cat >>confdefs.h <<_ACEOF |
12181 |
#define HAVE_DLERROR 1 |
12182 |
_ACEOF |
12183 |
|
12184 |
fi |
12185 |
done |
12186 |
|
12187 |
LIBS="$lt_save_LIBS" |
12188 |
fi |
12189 |
|
12190 |
|
12191 |
LIBADD_SHL_LOAD= |
12192 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
12193 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
12194 |
|
12195 |
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
12196 |
|
12197 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12198 |
else |
12199 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12200 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
12201 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
12202 |
$as_echo_n "(cached) " >&6 |
12203 |
else |
12204 |
ac_check_lib_save_LIBS=$LIBS |
12205 |
LIBS="-ldld $LIBS" |
12206 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12207 |
/* end confdefs.h. */ |
12208 |
|
12209 |
/* Override any GCC internal prototype to avoid an error. |
12210 |
Use char because int might match the return type of a GCC |
12211 |
builtin and then its argument prototype would still apply. */ |
12212 |
#ifdef __cplusplus |
12213 |
extern "C" |
12214 |
#endif |
12215 |
char shl_load (); |
12216 |
int |
12217 |
main () |
12218 |
{ |
12219 |
return shl_load (); |
12220 |
; |
12221 |
return 0; |
12222 |
} |
12223 |
_ACEOF |
12224 |
if ac_fn_c_try_link "$LINENO"; then : |
12225 |
ac_cv_lib_dld_shl_load=yes |
12226 |
else |
12227 |
ac_cv_lib_dld_shl_load=no |
12228 |
fi |
12229 |
rm -f core conftest.err conftest.$ac_objext \ |
12230 |
conftest$ac_exeext conftest.$ac_ext |
12231 |
LIBS=$ac_check_lib_save_LIBS |
12232 |
fi |
12233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12234 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
12235 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
12236 |
|
12237 |
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
12238 |
|
12239 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12240 |
LIBADD_SHL_LOAD="-ldld" |
12241 |
fi |
12242 |
|
12243 |
fi |
12244 |
|
12245 |
|
12246 |
|
12247 |
case $host_os in |
12248 |
darwin[1567].*) |
12249 |
# We only want this for pre-Mac OS X 10.4. |
12250 |
ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
12251 |
if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : |
12252 |
|
12253 |
$as_echo "#define HAVE_DYLD 1" >>confdefs.h |
12254 |
|
12255 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
12256 |
fi |
12257 |
|
12258 |
;; |
12259 |
beos*) |
12260 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
12261 |
;; |
12262 |
cygwin* | mingw* | os2* | pw32*) |
12263 |
ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
12264 |
" |
12265 |
if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
12266 |
ac_have_decl=1 |
12267 |
else |
12268 |
ac_have_decl=0 |
12269 |
fi |
12270 |
|
12271 |
cat >>confdefs.h <<_ACEOF |
12272 |
#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
12273 |
_ACEOF |
12274 |
|
12275 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12276 |
;; |
12277 |
esac |
12278 |
|
12279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12280 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
12281 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
12282 |
$as_echo_n "(cached) " >&6 |
12283 |
else |
12284 |
ac_check_lib_save_LIBS=$LIBS |
12285 |
LIBS="-ldld $LIBS" |
12286 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12287 |
/* end confdefs.h. */ |
12288 |
|
12289 |
/* Override any GCC internal prototype to avoid an error. |
12290 |
Use char because int might match the return type of a GCC |
12291 |
builtin and then its argument prototype would still apply. */ |
12292 |
#ifdef __cplusplus |
12293 |
extern "C" |
12294 |
#endif |
12295 |
char dld_link (); |
12296 |
int |
12297 |
main () |
12298 |
{ |
12299 |
return dld_link (); |
12300 |
; |
12301 |
return 0; |
12302 |
} |
12303 |
_ACEOF |
12304 |
if ac_fn_c_try_link "$LINENO"; then : |
12305 |
ac_cv_lib_dld_dld_link=yes |
12306 |
else |
12307 |
ac_cv_lib_dld_dld_link=no |
12308 |
fi |
12309 |
rm -f core conftest.err conftest.$ac_objext \ |
12310 |
conftest$ac_exeext conftest.$ac_ext |
12311 |
LIBS=$ac_check_lib_save_LIBS |
12312 |
fi |
12313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12314 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
12315 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
12316 |
|
12317 |
$as_echo "#define HAVE_DLD 1" >>confdefs.h |
12318 |
|
12319 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
12320 |
fi |
12321 |
|
12322 |
|
12323 |
|
12324 |
|
12325 |
LT_DLPREOPEN= |
12326 |
if test -n "$LT_DLLOADERS" |
12327 |
then |
12328 |
for lt_loader in $LT_DLLOADERS; do |
12329 |
LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
12330 |
done |
12331 |
|
12332 |
$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
12333 |
|
12334 |
fi |
12335 |
|
12336 |
|
12337 |
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
12338 |
|
12339 |
|
12340 |
ac_ext=c |
12341 |
ac_cpp='$CPP $CPPFLAGS' |
12342 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12343 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12344 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12345 |
|
12346 |
|
12347 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12348 |
$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
12349 |
if ${lt_cv_sys_symbol_underscore+:} false; then : |
12350 |
$as_echo_n "(cached) " >&6 |
12351 |
else |
12352 |
lt_cv_sys_symbol_underscore=no |
12353 |
cat > conftest.$ac_ext <<_LT_EOF |
12354 |
void nm_test_func(){} |
12355 |
int main(){nm_test_func;return 0;} |
12356 |
_LT_EOF |
12357 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12358 |
(eval $ac_compile) 2>&5 |
12359 |
ac_status=$? |
12360 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12361 |
test $ac_status = 0; }; then |
12362 |
# Now try to grab the symbols. |
12363 |
ac_nlist=conftest.nm |
12364 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
12365 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
12366 |
ac_status=$? |
12367 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12368 |
test $ac_status = 0; } && test -s "$ac_nlist"; then |
12369 |
# See whether the symbols have a leading underscore. |
12370 |
if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
12371 |
lt_cv_sys_symbol_underscore=yes |
12372 |
else |
12373 |
if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
12374 |
: |
12375 |
else |
12376 |
echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
12377 |
fi |
12378 |
fi |
12379 |
else |
12380 |
echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
12381 |
fi |
12382 |
else |
12383 |
echo "configure: failed program was:" >&5 |
12384 |
cat conftest.c >&5 |
12385 |
fi |
12386 |
rm -rf conftest* |
12387 |
|
12388 |
fi |
12389 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12390 |
$as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
12391 |
sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
12392 |
|
12393 |
|
12394 |
if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12395 |
if test x"$libltdl_cv_func_dlopen" = xyes || |
12396 |
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
12397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
12398 |
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
12399 |
if ${libltdl_cv_need_uscore+:} false; then : |
12400 |
$as_echo_n "(cached) " >&6 |
12401 |
else |
12402 |
libltdl_cv_need_uscore=unknown |
12403 |
save_LIBS="$LIBS" |
12404 |
LIBS="$LIBS $LIBADD_DLOPEN" |
12405 |
if test "$cross_compiling" = yes; then : |
12406 |
libltdl_cv_need_uscore=cross |
12407 |
else |
12408 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12409 |
lt_status=$lt_dlunknown |
12410 |
cat > conftest.$ac_ext <<_LT_EOF |
12411 |
#line $LINENO "configure" |
12412 |
#include "confdefs.h" |
12413 |
|
12414 |
#if HAVE_DLFCN_H |
12415 |
#include <dlfcn.h> |
12416 |
#endif |
12417 |
|
12418 |
#include <stdio.h> |
12419 |
|
12420 |
#ifdef RTLD_GLOBAL |
12421 |
# define LT_DLGLOBAL RTLD_GLOBAL |
12422 |
#else |
12423 |
# ifdef DL_GLOBAL |
12424 |
# define LT_DLGLOBAL DL_GLOBAL |
12425 |
# else |
12426 |
# define LT_DLGLOBAL 0 |
12427 |
# endif |
12428 |
#endif |
12429 |
|
12430 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12431 |
find out it does not work in some platform. */ |
12432 |
#ifndef LT_DLLAZY_OR_NOW |
12433 |
# ifdef RTLD_LAZY |
12434 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12435 |
# else |
12436 |
# ifdef DL_LAZY |
12437 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
12438 |
# else |
12439 |
# ifdef RTLD_NOW |
12440 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12441 |
# else |
12442 |
# ifdef DL_NOW |
12443 |
# define LT_DLLAZY_OR_NOW DL_NOW |
12444 |
# else |
12445 |
# define LT_DLLAZY_OR_NOW 0 |
12446 |
# endif |
12447 |
# endif |
12448 |
# endif |
12449 |
# endif |
12450 |
#endif |
12451 |
|
12452 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
12453 |
correspondingly for the symbols needed. */ |
12454 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12455 |
int fnord () __attribute__((visibility("default"))); |
12456 |
#endif |
12457 |
|
12458 |
int fnord () { return 42; } |
12459 |
int main () |
12460 |
{ |
12461 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12462 |
int status = $lt_dlunknown; |
12463 |
|
12464 |
if (self) |
12465 |
{ |
12466 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12467 |
else |
12468 |
{ |
12469 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12470 |
else puts (dlerror ()); |
12471 |
} |
12472 |
/* dlclose (self); */ |
12473 |
} |
12474 |
else |
12475 |
puts (dlerror ()); |
12476 |
|
12477 |
return status; |
12478 |
} |
12479 |
_LT_EOF |
12480 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12481 |
(eval $ac_link) 2>&5 |
12482 |
ac_status=$? |
12483 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12484 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12485 |
(./conftest; exit; ) >&5 2>/dev/null |
12486 |
lt_status=$? |
12487 |
case x$lt_status in |
12488 |
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
12489 |
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
12490 |
x$lt_dlunknown|x*) ;; |
12491 |
esac |
12492 |
else : |
12493 |
# compilation failed |
12494 |
|
12495 |
fi |
12496 |
fi |
12497 |
rm -fr conftest* |
12498 |
|
12499 |
LIBS="$save_LIBS" |
12500 |
|
12501 |
fi |
12502 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
12503 |
$as_echo "$libltdl_cv_need_uscore" >&6; } |
12504 |
fi |
12505 |
fi |
12506 |
|
12507 |
if test x"$libltdl_cv_need_uscore" = xyes; then |
12508 |
|
12509 |
$as_echo "#define NEED_USCORE 1" >>confdefs.h |
12510 |
|
12511 |
fi |
12512 |
|
12513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12514 |
$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
12515 |
if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
12516 |
$as_echo_n "(cached) " >&6 |
12517 |
else |
12518 |
# PORTME does your system automatically load deplibs for dlopen? |
12519 |
# or its logical equivalent (e.g. shl_load for HP-UX < 11) |
12520 |
# For now, we just catch OSes we know something about -- in the |
12521 |
# future, we'll try test this programmatically. |
12522 |
lt_cv_sys_dlopen_deplibs=unknown |
12523 |
case $host_os in |
12524 |
aix3*|aix4.1.*|aix4.2.*) |
12525 |
# Unknown whether this is true for these versions of AIX, but |
12526 |
# we want this `case' here to explicitly catch those versions. |
12527 |
lt_cv_sys_dlopen_deplibs=unknown |
12528 |
;; |
12529 |
aix[4-9]*) |
12530 |
lt_cv_sys_dlopen_deplibs=yes |
12531 |
;; |
12532 |
amigaos*) |
12533 |
case $host_cpu in |
12534 |
powerpc) |
12535 |
lt_cv_sys_dlopen_deplibs=no |
12536 |
;; |
12537 |
esac |
12538 |
;; |
12539 |
darwin*) |
12540 |
# Assuming the user has installed a libdl from somewhere, this is true |
12541 |
# If you are looking for one http://www.opendarwin.org/projects/dlcompat |
12542 |
lt_cv_sys_dlopen_deplibs=yes |
12543 |
;; |
12544 |
freebsd* | dragonfly*) |
12545 |
lt_cv_sys_dlopen_deplibs=yes |
12546 |
;; |
12547 |
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
12548 |
# GNU and its variants, using gnu ld.so (Glibc) |
12549 |
lt_cv_sys_dlopen_deplibs=yes |
12550 |
;; |
12551 |
hpux10*|hpux11*) |
12552 |
lt_cv_sys_dlopen_deplibs=yes |
12553 |
;; |
12554 |
interix*) |
12555 |
lt_cv_sys_dlopen_deplibs=yes |
12556 |
;; |
12557 |
irix[12345]*|irix6.[01]*) |
12558 |
# Catch all versions of IRIX before 6.2, and indicate that we don't |
12559 |
# know how it worked for any of those versions. |
12560 |
lt_cv_sys_dlopen_deplibs=unknown |
12561 |
;; |
12562 |
irix*) |
12563 |
# The case above catches anything before 6.2, and it's known that |
12564 |
# at 6.2 and later dlopen does load deplibs. |
12565 |
lt_cv_sys_dlopen_deplibs=yes |
12566 |
;; |
12567 |
netbsd*) |
12568 |
lt_cv_sys_dlopen_deplibs=yes |
12569 |
;; |
12570 |
openbsd*) |
12571 |
lt_cv_sys_dlopen_deplibs=yes |
12572 |
;; |
12573 |
osf[1234]*) |
12574 |
# dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
12575 |
# it did *not* use an RPATH in a shared library to find objects the |
12576 |
# library depends on, so we explicitly say `no'. |
12577 |
lt_cv_sys_dlopen_deplibs=no |
12578 |
;; |
12579 |
osf5.0|osf5.0a|osf5.1) |
12580 |
# dlopen *does* load deplibs and with the right loader patch applied |
12581 |
# it even uses RPATH in a shared library to search for shared objects |
12582 |
# that the library depends on, but there's no easy way to know if that |
12583 |
# patch is installed. Since this is the case, all we can really |
12584 |
# say is unknown -- it depends on the patch being installed. If |
12585 |
# it is, this changes to `yes'. Without it, it would be `no'. |
12586 |
lt_cv_sys_dlopen_deplibs=unknown |
12587 |
;; |
12588 |
osf*) |
12589 |
# the two cases above should catch all versions of osf <= 5.1. Read |
12590 |
# the comments above for what we know about them. |
12591 |
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
12592 |
# is used to find them so we can finally say `yes'. |
12593 |
lt_cv_sys_dlopen_deplibs=yes |
12594 |
;; |
12595 |
qnx*) |
12596 |
lt_cv_sys_dlopen_deplibs=yes |
12597 |
;; |
12598 |
solaris*) |
12599 |
lt_cv_sys_dlopen_deplibs=yes |
12600 |
;; |
12601 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12602 |
libltdl_cv_sys_dlopen_deplibs=yes |
12603 |
;; |
12604 |
esac |
12605 |
|
12606 |
fi |
12607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
12608 |
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
12609 |
if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
12610 |
|
12611 |
$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
12612 |
|
12613 |
fi |
12614 |
|
12615 |
: |
12616 |
|
12617 |
for ac_header in argz.h |
12618 |
do : |
12619 |
ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
12620 |
" |
12621 |
if test "x$ac_cv_header_argz_h" = xyes; then : |
12622 |
cat >>confdefs.h <<_ACEOF |
12623 |
#define HAVE_ARGZ_H 1 |
12624 |
_ACEOF |
12625 |
|
12626 |
fi |
12627 |
|
12628 |
done |
12629 |
|
12630 |
|
12631 |
ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
12632 |
# include <argz.h> |
12633 |
#endif |
12634 |
" |
12635 |
if test "x$ac_cv_type_error_t" = xyes; then : |
12636 |
|
12637 |
cat >>confdefs.h <<_ACEOF |
12638 |
#define HAVE_ERROR_T 1 |
12639 |
_ACEOF |
12640 |
|
12641 |
|
12642 |
else |
12643 |
|
12644 |
$as_echo "#define error_t int" >>confdefs.h |
12645 |
|
12646 |
|
12647 |
$as_echo "#define __error_t_defined 1" >>confdefs.h |
12648 |
|
12649 |
fi |
12650 |
|
12651 |
|
12652 |
ARGZ_H= |
12653 |
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
12654 |
argz_next argz_stringify |
12655 |
do : |
12656 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12657 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12658 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12659 |
cat >>confdefs.h <<_ACEOF |
12660 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12661 |
_ACEOF |
12662 |
|
12663 |
else |
12664 |
ARGZ_H=argz.h; |
12665 |
|
12666 |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
12667 |
|
12668 |
fi |
12669 |
done |
12670 |
|
12671 |
|
12672 |
if test -z "$ARGZ_H"; then : |
12673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
12674 |
$as_echo_n "checking if argz actually works... " >&6; } |
12675 |
if ${lt_cv_sys_argz_works+:} false; then : |
12676 |
$as_echo_n "(cached) " >&6 |
12677 |
else |
12678 |
case $host_os in #( |
12679 |
*cygwin*) |
12680 |
lt_cv_sys_argz_works=no |
12681 |
if test "$cross_compiling" != no; then |
12682 |
lt_cv_sys_argz_works="guessing no" |
12683 |
else |
12684 |
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
12685 |
save_IFS=$IFS |
12686 |
IFS=-. |
12687 |
set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
12688 |
IFS=$save_IFS |
12689 |
lt_os_major=${2-0} |
12690 |
lt_os_minor=${3-0} |
12691 |
lt_os_micro=${4-0} |
12692 |
if test "$lt_os_major" -gt 1 \ |
12693 |
|| { test "$lt_os_major" -eq 1 \ |
12694 |
&& { test "$lt_os_minor" -gt 5 \ |
12695 |
|| { test "$lt_os_minor" -eq 5 \ |
12696 |
&& test "$lt_os_micro" -gt 24; }; }; }; then |
12697 |
lt_cv_sys_argz_works=yes |
12698 |
fi |
12699 |
fi |
12700 |
;; #( |
12701 |
*) lt_cv_sys_argz_works=yes ;; |
12702 |
esac |
12703 |
fi |
12704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
12705 |
$as_echo "$lt_cv_sys_argz_works" >&6; } |
12706 |
if test "$lt_cv_sys_argz_works" = yes; then : |
12707 |
|
12708 |
$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
12709 |
|
12710 |
else |
12711 |
ARGZ_H=argz.h |
12712 |
|
12713 |
|
12714 |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
12715 |
|
12716 |
fi |
12717 |
fi |
12718 |
|
12719 |
|
12720 |
|
12721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
12722 |
$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
12723 |
if ${libltdl_cv_preloaded_symbols+:} false; then : |
12724 |
$as_echo_n "(cached) " >&6 |
12725 |
else |
12726 |
if test -n "$lt_cv_sys_global_symbol_pipe"; then |
12727 |
libltdl_cv_preloaded_symbols=yes |
12728 |
else |
12729 |
libltdl_cv_preloaded_symbols=no |
12730 |
fi |
12731 |
|
12732 |
fi |
12733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
12734 |
$as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
12735 |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
12736 |
|
12737 |
$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
12738 |
|
12739 |
fi |
12740 |
|
12741 |
# Set options |
12742 |
|
12743 |
|
12744 |
|
12745 |
|
12746 |
|
12747 |
|
12748 |
|
12749 |
|
12750 |
|
12751 |
|
12752 |
|
12753 |
# Check whether --with-included_ltdl was given. |
12754 |
if test "${with_included_ltdl+set}" = set; then : |
12755 |
withval=$with_included_ltdl; |
12756 |
fi |
12757 |
|
12758 |
|
12759 |
if test "x$with_included_ltdl" != xyes; then |
12760 |
# We are not being forced to use the included libltdl sources, so |
12761 |
# decide whether there is a useful installed version we can use. |
12762 |
ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
12763 |
|
12764 |
" |
12765 |
if test "x$ac_cv_header_ltdl_h" = xyes; then : |
12766 |
ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
12767 |
#include <ltdl.h> |
12768 |
" |
12769 |
if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : |
12770 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
12771 |
$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
12772 |
if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
12773 |
$as_echo_n "(cached) " >&6 |
12774 |
else |
12775 |
ac_check_lib_save_LIBS=$LIBS |
12776 |
LIBS="-lltdl $LIBS" |
12777 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12778 |
/* end confdefs.h. */ |
12779 |
|
12780 |
/* Override any GCC internal prototype to avoid an error. |
12781 |
Use char because int might match the return type of a GCC |
12782 |
builtin and then its argument prototype would still apply. */ |
12783 |
#ifdef __cplusplus |
12784 |
extern "C" |
12785 |
#endif |
12786 |
char lt_dladvise_preload (); |
12787 |
int |
12788 |
main () |
12789 |
{ |
12790 |
return lt_dladvise_preload (); |
12791 |
; |
12792 |
return 0; |
12793 |
} |
12794 |
_ACEOF |
12795 |
if ac_fn_c_try_link "$LINENO"; then : |
12796 |
ac_cv_lib_ltdl_lt_dladvise_preload=yes |
12797 |
else |
12798 |
ac_cv_lib_ltdl_lt_dladvise_preload=no |
12799 |
fi |
12800 |
rm -f core conftest.err conftest.$ac_objext \ |
12801 |
conftest$ac_exeext conftest.$ac_ext |
12802 |
LIBS=$ac_check_lib_save_LIBS |
12803 |
fi |
12804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
12805 |
$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
12806 |
if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
12807 |
with_included_ltdl=no |
12808 |
else |
12809 |
with_included_ltdl=yes |
12810 |
fi |
12811 |
|
12812 |
else |
12813 |
with_included_ltdl=yes |
12814 |
fi |
12815 |
|
12816 |
else |
12817 |
with_included_ltdl=yes |
12818 |
fi |
12819 |
|
12820 |
|
12821 |
fi |
12822 |
|
12823 |
|
12824 |
|
12825 |
|
12826 |
# Check whether --with-ltdl_include was given. |
12827 |
if test "${with_ltdl_include+set}" = set; then : |
12828 |
withval=$with_ltdl_include; |
12829 |
fi |
12830 |
|
12831 |
|
12832 |
if test -n "$with_ltdl_include"; then |
12833 |
if test -f "$with_ltdl_include/ltdl.h"; then : |
12834 |
else |
12835 |
as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
12836 |
fi |
12837 |
else |
12838 |
with_ltdl_include=no |
12839 |
fi |
12840 |
|
12841 |
|
12842 |
# Check whether --with-ltdl_lib was given. |
12843 |
if test "${with_ltdl_lib+set}" = set; then : |
12844 |
withval=$with_ltdl_lib; |
12845 |
fi |
12846 |
|
12847 |
|
12848 |
if test -n "$with_ltdl_lib"; then |
12849 |
if test -f "$with_ltdl_lib/libltdl.la"; then : |
12850 |
else |
12851 |
as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
12852 |
fi |
12853 |
else |
12854 |
with_ltdl_lib=no |
12855 |
fi |
12856 |
|
12857 |
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
12858 |
,yes,no,no,) |
12859 |
case $enable_ltdl_convenience in |
12860 |
no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
12861 |
"") enable_ltdl_convenience=yes |
12862 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
12863 |
esac |
12864 |
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
12865 |
LTDLDEPS=$LIBLTDL |
12866 |
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
12867 |
|
12868 |
|
12869 |
|
12870 |
|
12871 |
|
12872 |
# For backwards non-gettext consistent compatibility... |
12873 |
INCLTDL="$LTDLINCL" |
12874 |
|
12875 |
|
12876 |
;; |
12877 |
,no,no,no,) |
12878 |
# If the included ltdl is not to be used, then use the |
12879 |
# preinstalled libltdl we found. |
12880 |
|
12881 |
$as_echo "#define HAVE_LTDL 1" >>confdefs.h |
12882 |
|
12883 |
LIBLTDL=-lltdl |
12884 |
LTDLDEPS= |
12885 |
LTDLINCL= |
12886 |
;; |
12887 |
,no*,no,*) |
12888 |
as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
12889 |
;; |
12890 |
*) with_included_ltdl=no |
12891 |
LIBLTDL="-L$with_ltdl_lib -lltdl" |
12892 |
LTDLDEPS= |
12893 |
LTDLINCL="-I$with_ltdl_include" |
12894 |
;; |
12895 |
esac |
12896 |
INCLTDL="$LTDLINCL" |
12897 |
|
12898 |
# Report our decision... |
12899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
12900 |
$as_echo_n "checking where to find libltdl headers... " >&6; } |
12901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
12902 |
$as_echo "$LTDLINCL" >&6; } |
12903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
12904 |
$as_echo_n "checking where to find libltdl library... " >&6; } |
12905 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
12906 |
$as_echo "$LIBLTDL" >&6; } |
12907 |
|
12908 |
|
12909 |
|
12910 |
# Check whether --enable-ltdl-install was given. |
12911 |
if test "${enable_ltdl_install+set}" = set; then : |
12912 |
enableval=$enable_ltdl_install; |
12913 |
fi |
12914 |
|
12915 |
|
12916 |
case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
12917 |
*yes*) ;; |
12918 |
*) enable_ltdl_convenience=yes ;; |
12919 |
esac |
12920 |
|
12921 |
if test x"${enable_ltdl_install-no}" != xno; then |
12922 |
INSTALL_LTDL_TRUE= |
12923 |
INSTALL_LTDL_FALSE='#' |
12924 |
else |
12925 |
INSTALL_LTDL_TRUE='#' |
12926 |
INSTALL_LTDL_FALSE= |
12927 |
fi |
12928 |
|
12929 |
if test x"${enable_ltdl_convenience-no}" != xno; then |
12930 |
CONVENIENCE_LTDL_TRUE= |
12931 |
CONVENIENCE_LTDL_FALSE='#' |
12932 |
else |
12933 |
CONVENIENCE_LTDL_TRUE='#' |
12934 |
CONVENIENCE_LTDL_FALSE= |
12935 |
fi |
12936 |
|
12937 |
|
12938 |
|
12939 |
|
12940 |
|
12941 |
|
12942 |
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
12943 |
# the user used. This is so that ltdl.h can pick up the parent projects |
12944 |
# config.h file, The first file in AC_CONFIG_HEADERS must contain the |
12945 |
# definitions required by ltdl.c. |
12946 |
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
12947 |
|
12948 |
|
12949 |
|
12950 |
for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
12951 |
do : |
12952 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12953 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
12954 |
" |
12955 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
12956 |
cat >>confdefs.h <<_ACEOF |
12957 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12958 |
_ACEOF |
12959 |
|
12960 |
fi |
12961 |
|
12962 |
done |
12963 |
|
12964 |
|
12965 |
for ac_func in closedir opendir readdir |
12966 |
do : |
12967 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12968 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12969 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12970 |
cat >>confdefs.h <<_ACEOF |
12971 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12972 |
_ACEOF |
12973 |
|
12974 |
else |
12975 |
|
12976 |
|
12977 |
_LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
12978 |
|
12979 |
fi |
12980 |
done |
12981 |
|
12982 |
for ac_func in strlcat strlcpy |
12983 |
do : |
12984 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12985 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12986 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12987 |
cat >>confdefs.h <<_ACEOF |
12988 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12989 |
_ACEOF |
12990 |
|
12991 |
else |
12992 |
|
12993 |
|
12994 |
_LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
12995 |
|
12996 |
fi |
12997 |
done |
12998 |
|
12999 |
|
13000 |
|
13001 |
cat >>confdefs.h <<_ACEOF |
13002 |
#define LT_LIBEXT "$libext" |
13003 |
_ACEOF |
13004 |
|
13005 |
|
13006 |
name= |
13007 |
eval "lt_libprefix=\"$libname_spec\"" |
13008 |
|
13009 |
cat >>confdefs.h <<_ACEOF |
13010 |
#define LT_LIBPREFIX "$lt_libprefix" |
13011 |
_ACEOF |
13012 |
|
13013 |
|
13014 |
name=ltdl |
13015 |
eval "LTDLOPEN=\"$libname_spec\"" |
13016 |
|
13017 |
|
13018 |
|
13019 |
|
13020 |
|
13021 |
|
13022 |
|
13023 |
|
13024 |
# Only expand once: |
13025 |
|
13026 |
|
13027 |
LIBTOOL="$LIBTOOL --silent" |
13028 |
|
13029 |
# Checks for libraries. |
13030 |
|
13031 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
13032 |
$as_echo_n "checking for library containing socket... " >&6; } |
13033 |
if ${ac_cv_search_socket+:} false; then : |
13034 |
$as_echo_n "(cached) " >&6 |
13035 |
else |
13036 |
ac_func_search_save_LIBS=$LIBS |
13037 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13038 |
/* end confdefs.h. */ |
13039 |
|
13040 |
/* Override any GCC internal prototype to avoid an error. |
13041 |
Use char because int might match the return type of a GCC |
13042 |
builtin and then its argument prototype would still apply. */ |
13043 |
#ifdef __cplusplus |
13044 |
extern "C" |
13045 |
#endif |
13046 |
char socket (); |
13047 |
int |
13048 |
main () |
13049 |
{ |
13050 |
return socket (); |
13051 |
; |
13052 |
return 0; |
13053 |
} |
13054 |
_ACEOF |
13055 |
for ac_lib in '' socket; do |
13056 |
if test -z "$ac_lib"; then |
13057 |
ac_res="none required" |
13058 |
else |
13059 |
ac_res=-l$ac_lib |
13060 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13061 |
fi |
13062 |
if ac_fn_c_try_link "$LINENO"; then : |
13063 |
ac_cv_search_socket=$ac_res |
13064 |
fi |
13065 |
rm -f core conftest.err conftest.$ac_objext \ |
13066 |
conftest$ac_exeext |
13067 |
if ${ac_cv_search_socket+:} false; then : |
13068 |
break |
13069 |
fi |
13070 |
done |
13071 |
if ${ac_cv_search_socket+:} false; then : |
13072 |
|
13073 |
else |
13074 |
ac_cv_search_socket=no |
13075 |
fi |
13076 |
rm conftest.$ac_ext |
13077 |
LIBS=$ac_func_search_save_LIBS |
13078 |
fi |
13079 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
13080 |
$as_echo "$ac_cv_search_socket" >&6; } |
13081 |
ac_res=$ac_cv_search_socket |
13082 |
if test "$ac_res" != no; then : |
13083 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13084 |
|
13085 |
else |
13086 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
13087 |
fi |
13088 |
|
13089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
13090 |
$as_echo_n "checking for library containing inet_ntoa... " >&6; } |
13091 |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13092 |
$as_echo_n "(cached) " >&6 |
13093 |
else |
13094 |
ac_func_search_save_LIBS=$LIBS |
13095 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13096 |
/* end confdefs.h. */ |
13097 |
|
13098 |
/* Override any GCC internal prototype to avoid an error. |
13099 |
Use char because int might match the return type of a GCC |
13100 |
builtin and then its argument prototype would still apply. */ |
13101 |
#ifdef __cplusplus |
13102 |
extern "C" |
13103 |
#endif |
13104 |
char inet_ntoa (); |
13105 |
int |
13106 |
main () |
13107 |
{ |
13108 |
return inet_ntoa (); |
13109 |
; |
13110 |
return 0; |
13111 |
} |
13112 |
_ACEOF |
13113 |
for ac_lib in '' nsl; do |
13114 |
if test -z "$ac_lib"; then |
13115 |
ac_res="none required" |
13116 |
else |
13117 |
ac_res=-l$ac_lib |
13118 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13119 |
fi |
13120 |
if ac_fn_c_try_link "$LINENO"; then : |
13121 |
ac_cv_search_inet_ntoa=$ac_res |
13122 |
fi |
13123 |
rm -f core conftest.err conftest.$ac_objext \ |
13124 |
conftest$ac_exeext |
13125 |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13126 |
break |
13127 |
fi |
13128 |
done |
13129 |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13130 |
|
13131 |
else |
13132 |
ac_cv_search_inet_ntoa=no |
13133 |
fi |
13134 |
rm conftest.$ac_ext |
13135 |
LIBS=$ac_func_search_save_LIBS |
13136 |
fi |
13137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
13138 |
$as_echo "$ac_cv_search_inet_ntoa" >&6; } |
13139 |
ac_res=$ac_cv_search_inet_ntoa |
13140 |
if test "$ac_res" != no; then : |
13141 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13142 |
|
13143 |
fi |
13144 |
|
13145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
13146 |
$as_echo_n "checking for library containing inet_aton... " >&6; } |
13147 |
if ${ac_cv_search_inet_aton+:} false; then : |
13148 |
$as_echo_n "(cached) " >&6 |
13149 |
else |
13150 |
ac_func_search_save_LIBS=$LIBS |
13151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13152 |
/* end confdefs.h. */ |
13153 |
|
13154 |
/* Override any GCC internal prototype to avoid an error. |
13155 |
Use char because int might match the return type of a GCC |
13156 |
builtin and then its argument prototype would still apply. */ |
13157 |
#ifdef __cplusplus |
13158 |
extern "C" |
13159 |
#endif |
13160 |
char inet_aton (); |
13161 |
int |
13162 |
main () |
13163 |
{ |
13164 |
return inet_aton (); |
13165 |
; |
13166 |
return 0; |
13167 |
} |
13168 |
_ACEOF |
13169 |
for ac_lib in '' resolv; do |
13170 |
if test -z "$ac_lib"; then |
13171 |
ac_res="none required" |
13172 |
else |
13173 |
ac_res=-l$ac_lib |
13174 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13175 |
fi |
13176 |
if ac_fn_c_try_link "$LINENO"; then : |
13177 |
ac_cv_search_inet_aton=$ac_res |
13178 |
fi |
13179 |
rm -f core conftest.err conftest.$ac_objext \ |
13180 |
conftest$ac_exeext |
13181 |
if ${ac_cv_search_inet_aton+:} false; then : |
13182 |
break |
13183 |
fi |
13184 |
done |
13185 |
if ${ac_cv_search_inet_aton+:} false; then : |
13186 |
|
13187 |
else |
13188 |
ac_cv_search_inet_aton=no |
13189 |
fi |
13190 |
rm conftest.$ac_ext |
13191 |
LIBS=$ac_func_search_save_LIBS |
13192 |
fi |
13193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
13194 |
$as_echo "$ac_cv_search_inet_aton" >&6; } |
13195 |
ac_res=$ac_cv_search_inet_aton |
13196 |
if test "$ac_res" != no; then : |
13197 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13198 |
|
13199 |
fi |
13200 |
|
13201 |
for ac_func in inet_aton inet_ntop inet_pton |
13202 |
do : |
13203 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13204 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
13205 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
13206 |
cat >>confdefs.h <<_ACEOF |
13207 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13208 |
_ACEOF |
13209 |
|
13210 |
fi |
13211 |
done |
13212 |
|
13213 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
13214 |
#include <sys/socket.h> |
13215 |
#include <netdb.h> |
13216 |
|
13217 |
" |
13218 |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
13219 |
|
13220 |
cat >>confdefs.h <<_ACEOF |
13221 |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
13222 |
_ACEOF |
13223 |
|
13224 |
|
13225 |
fi |
13226 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
13227 |
#include <sys/socket.h> |
13228 |
#include <netdb.h> |
13229 |
|
13230 |
" |
13231 |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
13232 |
|
13233 |
cat >>confdefs.h <<_ACEOF |
13234 |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
13235 |
_ACEOF |
13236 |
|
13237 |
|
13238 |
fi |
13239 |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
13240 |
#include <sys/socket.h> |
13241 |
#include <netdb.h> |
13242 |
|
13243 |
" |
13244 |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
13245 |
|
13246 |
cat >>confdefs.h <<_ACEOF |
13247 |
#define HAVE_STRUCT_ADDRINFO 1 |
13248 |
_ACEOF |
13249 |
|
13250 |
|
13251 |
fi |
13252 |
|
13253 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
13254 |
<sys/socket.h> |
13255 |
" |
13256 |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
13257 |
|
13258 |
cat >>confdefs.h <<_ACEOF |
13259 |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
13260 |
_ACEOF |
13261 |
|
13262 |
|
13263 |
fi |
13264 |
|
13265 |
|
13266 |
|
13267 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
13268 |
" |
13269 |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
13270 |
|
13271 |
$as_echo "#define IPV6 1" >>confdefs.h |
13272 |
|
13273 |
fi |
13274 |
|
13275 |
|
13276 |
|
13277 |
# Checks for typedefs, structures, and compiler characteristics. |
13278 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
13279 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
13280 |
if ${ac_cv_c_bigendian+:} false; then : |
13281 |
$as_echo_n "(cached) " >&6 |
13282 |
else |
13283 |
ac_cv_c_bigendian=unknown |
13284 |
# See if we're dealing with a universal compiler. |
13285 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13286 |
/* end confdefs.h. */ |
13287 |
#ifndef __APPLE_CC__ |
13288 |
not a universal capable compiler |
13289 |
#endif |
13290 |
typedef int dummy; |
13291 |
|
13292 |
_ACEOF |
13293 |
if ac_fn_c_try_compile "$LINENO"; then : |
13294 |
|
13295 |
# Check for potential -arch flags. It is not universal unless |
13296 |
# there are at least two -arch flags with different values. |
13297 |
ac_arch= |
13298 |
ac_prev= |
13299 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
13300 |
if test -n "$ac_prev"; then |
13301 |
case $ac_word in |
13302 |
i?86 | x86_64 | ppc | ppc64) |
13303 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
13304 |
ac_arch=$ac_word |
13305 |
else |
13306 |
ac_cv_c_bigendian=universal |
13307 |
break |
13308 |
fi |
13309 |
;; |
13310 |
esac |
13311 |
ac_prev= |
13312 |
elif test "x$ac_word" = "x-arch"; then |
13313 |
ac_prev=arch |
13314 |
fi |
13315 |
done |
13316 |
fi |
13317 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13318 |
if test $ac_cv_c_bigendian = unknown; then |
13319 |
# See if sys/param.h defines the BYTE_ORDER macro. |
13320 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13321 |
/* end confdefs.h. */ |
13322 |
#include <sys/types.h> |
13323 |
#include <sys/param.h> |
13324 |
|
13325 |
int |
13326 |
main () |
13327 |
{ |
13328 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
13329 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
13330 |
&& LITTLE_ENDIAN) |
13331 |
bogus endian macros |
13332 |
#endif |
13333 |
|
13334 |
; |
13335 |
return 0; |
13336 |
} |
13337 |
_ACEOF |
13338 |
if ac_fn_c_try_compile "$LINENO"; then : |
13339 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
13340 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13341 |
/* end confdefs.h. */ |
13342 |
#include <sys/types.h> |
13343 |
#include <sys/param.h> |
13344 |
|
13345 |
int |
13346 |
main () |
13347 |
{ |
13348 |
#if BYTE_ORDER != BIG_ENDIAN |
13349 |
not big endian |
13350 |
#endif |
13351 |
|
13352 |
; |
13353 |
return 0; |
13354 |
} |
13355 |
_ACEOF |
13356 |
if ac_fn_c_try_compile "$LINENO"; then : |
13357 |
ac_cv_c_bigendian=yes |
13358 |
else |
13359 |
ac_cv_c_bigendian=no |
13360 |
fi |
13361 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13362 |
fi |
13363 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13364 |
fi |
13365 |
if test $ac_cv_c_bigendian = unknown; then |
13366 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
13367 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13368 |
/* end confdefs.h. */ |
13369 |
#include <limits.h> |
13370 |
|
13371 |
int |
13372 |
main () |
13373 |
{ |
13374 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
13375 |
bogus endian macros |
13376 |
#endif |
13377 |
|
13378 |
; |
13379 |
return 0; |
13380 |
} |
13381 |
_ACEOF |
13382 |
if ac_fn_c_try_compile "$LINENO"; then : |
13383 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
13384 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13385 |
/* end confdefs.h. */ |
13386 |
#include <limits.h> |
13387 |
|
13388 |
int |
13389 |
main () |
13390 |
{ |
13391 |
#ifndef _BIG_ENDIAN |
13392 |
not big endian |
13393 |
#endif |
13394 |
|
13395 |
; |
13396 |
return 0; |
13397 |
} |
13398 |
_ACEOF |
13399 |
if ac_fn_c_try_compile "$LINENO"; then : |
13400 |
ac_cv_c_bigendian=yes |
13401 |
else |
13402 |
ac_cv_c_bigendian=no |
13403 |
fi |
13404 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13405 |
fi |
13406 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13407 |
fi |
13408 |
if test $ac_cv_c_bigendian = unknown; then |
13409 |
# Compile a test program. |
13410 |
if test "$cross_compiling" = yes; then : |
13411 |
# Try to guess by grepping values from an object file. |
13412 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13413 |
/* end confdefs.h. */ |
13414 |
short int ascii_mm[] = |
13415 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
13416 |
short int ascii_ii[] = |
13417 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
13418 |
int use_ascii (int i) { |
13419 |
return ascii_mm[i] + ascii_ii[i]; |
13420 |
} |
13421 |
short int ebcdic_ii[] = |
13422 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
13423 |
short int ebcdic_mm[] = |
13424 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
13425 |
int use_ebcdic (int i) { |
13426 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
13427 |
} |
13428 |
extern int foo; |
13429 |
|
13430 |
int |
13431 |
main () |
13432 |
{ |
13433 |
return use_ascii (foo) == use_ebcdic (foo); |
13434 |
; |
13435 |
return 0; |
13436 |
} |
13437 |
_ACEOF |
13438 |
if ac_fn_c_try_compile "$LINENO"; then : |
13439 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
13440 |
ac_cv_c_bigendian=yes |
13441 |
fi |
13442 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
13443 |
if test "$ac_cv_c_bigendian" = unknown; then |
13444 |
ac_cv_c_bigendian=no |
13445 |
else |
13446 |
# finding both strings is unlikely to happen, but who knows? |
13447 |
ac_cv_c_bigendian=unknown |
13448 |
fi |
13449 |
fi |
13450 |
fi |
13451 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13452 |
else |
13453 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13454 |
/* end confdefs.h. */ |
13455 |
$ac_includes_default |
13456 |
int |
13457 |
main () |
13458 |
{ |
13459 |
|
13460 |
/* Are we little or big endian? From Harbison&Steele. */ |
13461 |
union |
13462 |
{ |
13463 |
long int l; |
13464 |
char c[sizeof (long int)]; |
13465 |
} u; |
13466 |
u.l = 1; |
13467 |
return u.c[sizeof (long int) - 1] == 1; |
13468 |
|
13469 |
; |
13470 |
return 0; |
13471 |
} |
13472 |
_ACEOF |
13473 |
if ac_fn_c_try_run "$LINENO"; then : |
13474 |
ac_cv_c_bigendian=no |
13475 |
else |
13476 |
ac_cv_c_bigendian=yes |
13477 |
fi |
13478 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13479 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
13480 |
fi |
13481 |
|
13482 |
fi |
13483 |
fi |
13484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
13485 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
13486 |
case $ac_cv_c_bigendian in #( |
13487 |
yes) |
13488 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
13489 |
;; #( |
13490 |
no) |
13491 |
;; #( |
13492 |
universal) |
13493 |
|
13494 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
13495 |
|
13496 |
;; #( |
13497 |
*) |
13498 |
as_fn_error $? "unknown endianness |
13499 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
13500 |
esac |
13501 |
|
13502 |
|
13503 |
# Checks for library functions. |
13504 |
|
13505 |
|
13506 |
|
13507 |
for ac_func in $ac_func_list |
13508 |
do : |
13509 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13510 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
13511 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
13512 |
cat >>confdefs.h <<_ACEOF |
13513 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13514 |
_ACEOF |
13515 |
|
13516 |
fi |
13517 |
done |
13518 |
|
13519 |
|
13520 |
|
13521 |
|
13522 |
|
13523 |
|
13524 |
|
13525 |
|
13526 |
|
13527 |
|
13528 |
|
13529 |
|
13530 |
|
13531 |
# Checks for header files. |
13532 |
|
13533 |
|
13534 |
|
13535 |
for ac_header in $ac_header_list |
13536 |
do : |
13537 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13538 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
13539 |
" |
13540 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
13541 |
cat >>confdefs.h <<_ACEOF |
13542 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13543 |
_ACEOF |
13544 |
|
13545 |
fi |
13546 |
|
13547 |
done |
13548 |
|
13549 |
|
13550 |
|
13551 |
|
13552 |
|
13553 |
|
13554 |
|
13555 |
|
13556 |
|
13557 |
|
13558 |
|
13559 |
|
13560 |
|
13561 |
|
13562 |
|
13563 |
|
13564 |
|
13565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
13566 |
$as_echo_n "checking for library containing crypt... " >&6; } |
13567 |
if ${ac_cv_search_crypt+:} false; then : |
13568 |
$as_echo_n "(cached) " >&6 |
13569 |
else |
13570 |
ac_func_search_save_LIBS=$LIBS |
13571 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13572 |
/* end confdefs.h. */ |
13573 |
|
13574 |
/* Override any GCC internal prototype to avoid an error. |
13575 |
Use char because int might match the return type of a GCC |
13576 |
builtin and then its argument prototype would still apply. */ |
13577 |
#ifdef __cplusplus |
13578 |
extern "C" |
13579 |
#endif |
13580 |
char crypt (); |
13581 |
int |
13582 |
main () |
13583 |
{ |
13584 |
return crypt (); |
13585 |
; |
13586 |
return 0; |
13587 |
} |
13588 |
_ACEOF |
13589 |
for ac_lib in '' crypt; do |
13590 |
if test -z "$ac_lib"; then |
13591 |
ac_res="none required" |
13592 |
else |
13593 |
ac_res=-l$ac_lib |
13594 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13595 |
fi |
13596 |
if ac_fn_c_try_link "$LINENO"; then : |
13597 |
ac_cv_search_crypt=$ac_res |
13598 |
fi |
13599 |
rm -f core conftest.err conftest.$ac_objext \ |
13600 |
conftest$ac_exeext |
13601 |
if ${ac_cv_search_crypt+:} false; then : |
13602 |
break |
13603 |
fi |
13604 |
done |
13605 |
if ${ac_cv_search_crypt+:} false; then : |
13606 |
|
13607 |
else |
13608 |
ac_cv_search_crypt=no |
13609 |
fi |
13610 |
rm conftest.$ac_ext |
13611 |
LIBS=$ac_func_search_save_LIBS |
13612 |
fi |
13613 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
13614 |
$as_echo "$ac_cv_search_crypt" >&6; } |
13615 |
ac_res=$ac_cv_search_crypt |
13616 |
if test "$ac_res" != no; then : |
13617 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13618 |
|
13619 |
fi |
13620 |
|
13621 |
|
13622 |
# Check whether --enable-libpcre was given. |
13623 |
if test "${enable_libpcre+set}" = set; then : |
13624 |
enableval=$enable_libpcre; |
13625 |
else |
13626 |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
13627 |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
13628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
13629 |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
13630 |
if ${ac_cv_search_pcre_study+:} false; then : |
13631 |
$as_echo_n "(cached) " >&6 |
13632 |
else |
13633 |
ac_func_search_save_LIBS=$LIBS |
13634 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13635 |
/* end confdefs.h. */ |
13636 |
|
13637 |
/* Override any GCC internal prototype to avoid an error. |
13638 |
Use char because int might match the return type of a GCC |
13639 |
builtin and then its argument prototype would still apply. */ |
13640 |
#ifdef __cplusplus |
13641 |
extern "C" |
13642 |
#endif |
13643 |
char pcre_study (); |
13644 |
int |
13645 |
main () |
13646 |
{ |
13647 |
return pcre_study (); |
13648 |
; |
13649 |
return 0; |
13650 |
} |
13651 |
_ACEOF |
13652 |
for ac_lib in '' pcre; do |
13653 |
if test -z "$ac_lib"; then |
13654 |
ac_res="none required" |
13655 |
else |
13656 |
ac_res=-l$ac_lib |
13657 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13658 |
fi |
13659 |
if ac_fn_c_try_link "$LINENO"; then : |
13660 |
ac_cv_search_pcre_study=$ac_res |
13661 |
fi |
13662 |
rm -f core conftest.err conftest.$ac_objext \ |
13663 |
conftest$ac_exeext |
13664 |
if ${ac_cv_search_pcre_study+:} false; then : |
13665 |
break |
13666 |
fi |
13667 |
done |
13668 |
if ${ac_cv_search_pcre_study+:} false; then : |
13669 |
|
13670 |
else |
13671 |
ac_cv_search_pcre_study=no |
13672 |
fi |
13673 |
rm conftest.$ac_ext |
13674 |
LIBS=$ac_func_search_save_LIBS |
13675 |
fi |
13676 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
13677 |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
13678 |
ac_res=$ac_cv_search_pcre_study |
13679 |
if test "$ac_res" != no; then : |
13680 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13681 |
|
13682 |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
13683 |
|
13684 |
fi |
13685 |
|
13686 |
fi |
13687 |
|
13688 |
|
13689 |
fi |
13690 |
|
13691 |
|
13692 |
# Check whether --enable-openssl was given. |
13693 |
if test "${enable_openssl+set}" = set; then : |
13694 |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
13695 |
else |
13696 |
cf_enable_openssl="auto" |
13697 |
fi |
13698 |
|
13699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
13700 |
$as_echo_n "checking for OpenSSL... " >&6; } |
13701 |
if test "$cf_enable_openssl" != "no"; then |
13702 |
cf_openssl_basedir="" |
13703 |
if test "$cf_enable_openssl" != "auto" && |
13704 |
test "$cf_enable_openssl" != "yes"; then |
13705 |
cf_openssl_basedir="${cf_enable_openssl}" |
13706 |
else |
13707 |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
13708 |
/opt /opt/openssl /usr/local/openssl; do |
13709 |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
13710 |
cf_openssl_basedir="${dirs}" |
13711 |
break |
13712 |
fi |
13713 |
done |
13714 |
unset dirs |
13715 |
fi |
13716 |
|
13717 |
if test ! -z "$cf_openssl_basedir"; then |
13718 |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
13719 |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
13720 |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
13721 |
else |
13722 |
cf_openssl_basedir="" |
13723 |
fi |
13724 |
else |
13725 |
if test -f "/usr/include/openssl/opensslv.h"; then |
13726 |
cf_openssl_basedir="/usr" |
13727 |
fi |
13728 |
fi |
13729 |
|
13730 |
if test ! -z "$cf_openssl_basedir"; then |
13731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
13732 |
$as_echo "$cf_openssl_basedir" >&6; } |
13733 |
cf_enable_openssl="yes" |
13734 |
else |
13735 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
13736 |
$as_echo "not found. Please check your path." >&6; } |
13737 |
cf_enable_openssl="no" |
13738 |
fi |
13739 |
unset cf_openssl_basedir |
13740 |
else |
13741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
13742 |
$as_echo "disabled" >&6; } |
13743 |
fi |
13744 |
|
13745 |
if test "$cf_enable_openssl" != "no"; then : |
13746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
13747 |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
13748 |
if test "$cross_compiling" = yes; then : |
13749 |
cf_openssl_version_ok=no |
13750 |
else |
13751 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13752 |
/* end confdefs.h. */ |
13753 |
|
13754 |
|
13755 |
#include <openssl/opensslv.h> |
13756 |
#include <stdlib.h> |
13757 |
int |
13758 |
main () |
13759 |
{ |
13760 |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
13761 |
; |
13762 |
return 0; |
13763 |
} |
13764 |
_ACEOF |
13765 |
if ac_fn_c_try_run "$LINENO"; then : |
13766 |
cf_openssl_version_ok=yes |
13767 |
else |
13768 |
cf_openssl_version_ok=no |
13769 |
fi |
13770 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13771 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
13772 |
fi |
13773 |
|
13774 |
|
13775 |
if test "$cf_openssl_version_ok" = "yes"; then : |
13776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
13777 |
$as_echo "found" >&6; } |
13778 |
|
13779 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
13780 |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
13781 |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
13782 |
$as_echo_n "(cached) " >&6 |
13783 |
else |
13784 |
ac_check_lib_save_LIBS=$LIBS |
13785 |
LIBS="-lcrypto $LIBS" |
13786 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13787 |
/* end confdefs.h. */ |
13788 |
|
13789 |
/* Override any GCC internal prototype to avoid an error. |
13790 |
Use char because int might match the return type of a GCC |
13791 |
builtin and then its argument prototype would still apply. */ |
13792 |
#ifdef __cplusplus |
13793 |
extern "C" |
13794 |
#endif |
13795 |
char RSA_free (); |
13796 |
int |
13797 |
main () |
13798 |
{ |
13799 |
return RSA_free (); |
13800 |
; |
13801 |
return 0; |
13802 |
} |
13803 |
_ACEOF |
13804 |
if ac_fn_c_try_link "$LINENO"; then : |
13805 |
ac_cv_lib_crypto_RSA_free=yes |
13806 |
else |
13807 |
ac_cv_lib_crypto_RSA_free=no |
13808 |
fi |
13809 |
rm -f core conftest.err conftest.$ac_objext \ |
13810 |
conftest$ac_exeext conftest.$ac_ext |
13811 |
LIBS=$ac_check_lib_save_LIBS |
13812 |
fi |
13813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
13814 |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
13815 |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
13816 |
cat >>confdefs.h <<_ACEOF |
13817 |
#define HAVE_LIBCRYPTO 1 |
13818 |
_ACEOF |
13819 |
|
13820 |
LIBS="-lcrypto $LIBS" |
13821 |
|
13822 |
fi |
13823 |
|
13824 |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
13825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
13826 |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
13827 |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
13828 |
$as_echo_n "(cached) " >&6 |
13829 |
else |
13830 |
ac_check_lib_save_LIBS=$LIBS |
13831 |
LIBS="-lssl $LIBS" |
13832 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13833 |
/* end confdefs.h. */ |
13834 |
|
13835 |
/* Override any GCC internal prototype to avoid an error. |
13836 |
Use char because int might match the return type of a GCC |
13837 |
builtin and then its argument prototype would still apply. */ |
13838 |
#ifdef __cplusplus |
13839 |
extern "C" |
13840 |
#endif |
13841 |
char SSL_connect (); |
13842 |
int |
13843 |
main () |
13844 |
{ |
13845 |
return SSL_connect (); |
13846 |
; |
13847 |
return 0; |
13848 |
} |
13849 |
_ACEOF |
13850 |
if ac_fn_c_try_link "$LINENO"; then : |
13851 |
ac_cv_lib_ssl_SSL_connect=yes |
13852 |
else |
13853 |
ac_cv_lib_ssl_SSL_connect=no |
13854 |
fi |
13855 |
rm -f core conftest.err conftest.$ac_objext \ |
13856 |
conftest$ac_exeext conftest.$ac_ext |
13857 |
LIBS=$ac_check_lib_save_LIBS |
13858 |
fi |
13859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
13860 |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
13861 |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
13862 |
cat >>confdefs.h <<_ACEOF |
13863 |
#define HAVE_LIBSSL 1 |
13864 |
_ACEOF |
13865 |
|
13866 |
LIBS="-lssl $LIBS" |
13867 |
|
13868 |
fi |
13869 |
|
13870 |
fi |
13871 |
|
13872 |
else |
13873 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
13874 |
$as_echo "no - OpenSSL support disabled" >&6; } |
13875 |
cf_enable_openssl="no" |
13876 |
fi |
13877 |
fi |
13878 |
|
13879 |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
13880 |
ENABLE_SSL_TRUE= |
13881 |
ENABLE_SSL_FALSE='#' |
13882 |
else |
13883 |
ENABLE_SSL_TRUE='#' |
13884 |
ENABLE_SSL_FALSE= |
13885 |
fi |
13886 |
|
13887 |
|
13888 |
|
13889 |
# Check whether --enable-assert was given. |
13890 |
if test "${enable_assert+set}" = set; then : |
13891 |
enableval=$enable_assert; assert=$enableval |
13892 |
else |
13893 |
assert=no |
13894 |
fi |
13895 |
|
13896 |
|
13897 |
if test "$assert" = "no"; then : |
13898 |
|
13899 |
$as_echo "#define NDEBUG 1" >>confdefs.h |
13900 |
|
13901 |
fi |
13902 |
|
13903 |
|
13904 |
|
13905 |
$as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h |
13906 |
|
13907 |
|
13908 |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h |
13909 |
|
13910 |
|
13911 |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h |
13912 |
|
13913 |
|
13914 |
$as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h |
13915 |
|
13916 |
|
13917 |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h |
13918 |
|
13919 |
|
13920 |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h |
13921 |
|
13922 |
|
13923 |
$as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h |
13924 |
|
13925 |
|
13926 |
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
13927 |
|
13928 |
|
13929 |
$as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h |
13930 |
|
13931 |
|
13932 |
$as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h |
13933 |
|
13934 |
|
13935 |
$as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h |
13936 |
|
13937 |
|
13938 |
# Argument processing. |
13939 |
|
13940 |
desired_iopoll_mechanism="none" |
13941 |
# Check whether --enable-kqueue was given. |
13942 |
if test "${enable_kqueue+set}" = set; then : |
13943 |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
13944 |
fi |
13945 |
|
13946 |
# Check whether --enable-epoll was given. |
13947 |
if test "${enable_epoll+set}" = set; then : |
13948 |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
13949 |
fi |
13950 |
|
13951 |
# Check whether --enable-devpoll was given. |
13952 |
if test "${enable_devpoll+set}" = set; then : |
13953 |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
13954 |
fi |
13955 |
|
13956 |
# Check whether --enable-rtsigio was given. |
13957 |
if test "${enable_rtsigio+set}" = set; then : |
13958 |
enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio" |
13959 |
fi |
13960 |
|
13961 |
# Check whether --enable-poll was given. |
13962 |
if test "${enable_poll+set}" = set; then : |
13963 |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
13964 |
fi |
13965 |
|
13966 |
# Check whether --enable-select was given. |
13967 |
if test "${enable_select+set}" = set; then : |
13968 |
enableval=$enable_select; desired_iopoll_mechanism="select" |
13969 |
fi |
13970 |
|
13971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
13972 |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
13973 |
iopoll_mechanism_none=0 |
13974 |
|
13975 |
cat >>confdefs.h <<_ACEOF |
13976 |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
13977 |
_ACEOF |
13978 |
|
13979 |
iopoll_mechanism_kqueue=1 |
13980 |
|
13981 |
cat >>confdefs.h <<_ACEOF |
13982 |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
13983 |
_ACEOF |
13984 |
|
13985 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13986 |
/* end confdefs.h. */ |
13987 |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
13988 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
13989 |
#define kevent innocuous_kevent |
13990 |
|
13991 |
/* System header to define __stub macros and hopefully few prototypes, |
13992 |
which can conflict with char kevent (); below. |
13993 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13994 |
<limits.h> exists even on freestanding compilers. */ |
13995 |
|
13996 |
#ifdef __STDC__ |
13997 |
# include <limits.h> |
13998 |
#else |
13999 |
# include <assert.h> |
14000 |
#endif |
14001 |
|
14002 |
#undef kevent |
14003 |
|
14004 |
/* Override any GCC internal prototype to avoid an error. |
14005 |
Use char because int might match the return type of a GCC |
14006 |
builtin and then its argument prototype would still apply. */ |
14007 |
#ifdef __cplusplus |
14008 |
extern "C" |
14009 |
#endif |
14010 |
char kevent (); |
14011 |
/* The GNU C library defines this for functions which it implements |
14012 |
to always fail with ENOSYS. Some functions are actually named |
14013 |
something starting with __ and the normal name is an alias. */ |
14014 |
#if defined __stub_kevent || defined __stub___kevent |
14015 |
choke me |
14016 |
#endif |
14017 |
|
14018 |
int |
14019 |
main () |
14020 |
{ |
14021 |
return kevent (); |
14022 |
; |
14023 |
return 0; |
14024 |
} |
14025 |
_ACEOF |
14026 |
if ac_fn_c_try_link "$LINENO"; then : |
14027 |
is_kqueue_mechanism_available="yes" |
14028 |
else |
14029 |
is_kqueue_mechanism_available="no" |
14030 |
fi |
14031 |
rm -f core conftest.err conftest.$ac_objext \ |
14032 |
conftest$ac_exeext conftest.$ac_ext |
14033 |
iopoll_mechanism_epoll=2 |
14034 |
|
14035 |
cat >>confdefs.h <<_ACEOF |
14036 |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
14037 |
_ACEOF |
14038 |
|
14039 |
if test "$cross_compiling" = yes; then : |
14040 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
14041 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
14042 |
as_fn_error $? "cannot run test program while cross compiling |
14043 |
See \`config.log' for more details" "$LINENO" 5; } |
14044 |
else |
14045 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14046 |
/* end confdefs.h. */ |
14047 |
|
14048 |
#include <sys/epoll.h> |
14049 |
#include <sys/syscall.h> |
14050 |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
14051 |
#if !defined(__NR_epoll_create) |
14052 |
#if defined(__ia64__) |
14053 |
#define __NR_epoll_create 1243 |
14054 |
#elif defined(__x86_64__) |
14055 |
#define __NR_epoll_create 214 |
14056 |
#elif defined(__sparc64__) || defined(__sparc__) |
14057 |
#define __NR_epoll_create 193 |
14058 |
#elif defined(__s390__) || defined(__m68k__) |
14059 |
#define __NR_epoll_create 249 |
14060 |
#elif defined(__ppc64__) || defined(__ppc__) |
14061 |
#define __NR_epoll_create 236 |
14062 |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
14063 |
#define __NR_epoll_create 224 |
14064 |
#elif defined(__alpha__) |
14065 |
#define __NR_epoll_create 407 |
14066 |
#elif defined(__sh64__) |
14067 |
#define __NR_epoll_create 282 |
14068 |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
14069 |
#define __NR_epoll_create 254 |
14070 |
#else |
14071 |
#error No system call numbers defined for epoll family. |
14072 |
#endif |
14073 |
#endif |
14074 |
_syscall1(int, epoll_create, int, size) |
14075 |
#endif |
14076 |
|
14077 |
int |
14078 |
main () |
14079 |
{ |
14080 |
return epoll_create(256) == -1 ? 1 : 0 |
14081 |
; |
14082 |
return 0; |
14083 |
} |
14084 |
_ACEOF |
14085 |
if ac_fn_c_try_run "$LINENO"; then : |
14086 |
is_epoll_mechanism_available="yes" |
14087 |
else |
14088 |
is_epoll_mechanism_available="no" |
14089 |
fi |
14090 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14091 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
14092 |
fi |
14093 |
|
14094 |
iopoll_mechanism_devpoll=3 |
14095 |
|
14096 |
cat >>confdefs.h <<_ACEOF |
14097 |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
14098 |
_ACEOF |
14099 |
|
14100 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14101 |
/* end confdefs.h. */ |
14102 |
#include <devpoll.h> |
14103 |
int |
14104 |
main () |
14105 |
{ |
14106 |
|
14107 |
; |
14108 |
return 0; |
14109 |
} |
14110 |
_ACEOF |
14111 |
if ac_fn_c_try_compile "$LINENO"; then : |
14112 |
is_devpoll_mechanism_available="yes" |
14113 |
else |
14114 |
is_devpoll_mechanism_available="no" |
14115 |
fi |
14116 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14117 |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
14118 |
|
14119 |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
14120 |
|
14121 |
fi |
14122 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14123 |
/* end confdefs.h. */ |
14124 |
#include <sys/devpoll.h> |
14125 |
int |
14126 |
main () |
14127 |
{ |
14128 |
|
14129 |
; |
14130 |
return 0; |
14131 |
} |
14132 |
_ACEOF |
14133 |
if ac_fn_c_try_compile "$LINENO"; then : |
14134 |
is_devpoll_mechanism_available="yes" |
14135 |
else |
14136 |
is_devpoll_mechanism_available="no" |
14137 |
fi |
14138 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14139 |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
14140 |
|
14141 |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
14142 |
|
14143 |
fi |
14144 |
iopoll_mechanism_rtsigio=4 |
14145 |
|
14146 |
cat >>confdefs.h <<_ACEOF |
14147 |
#define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio |
14148 |
_ACEOF |
14149 |
|
14150 |
if test "$cross_compiling" = yes; then : |
14151 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
14152 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
14153 |
as_fn_error $? "cannot run test program while cross compiling |
14154 |
See \`config.log' for more details" "$LINENO" 5; } |
14155 |
else |
14156 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14157 |
/* end confdefs.h. */ |
14158 |
|
14159 |
#define _GNU_SOURCE |
14160 |
#include <fcntl.h> |
14161 |
static unsigned int have_f_setsig = 0; |
14162 |
|
14163 |
int |
14164 |
main () |
14165 |
{ |
14166 |
|
14167 |
#ifdef F_SETSIG |
14168 |
have_f_setsig = 1; |
14169 |
#endif |
14170 |
return have_f_setsig == 0; |
14171 |
|
14172 |
; |
14173 |
return 0; |
14174 |
} |
14175 |
_ACEOF |
14176 |
if ac_fn_c_try_run "$LINENO"; then : |
14177 |
is_rtsigio_mechanism_available="yes" |
14178 |
else |
14179 |
is_rtsigio_mechanism_available="no" |
14180 |
fi |
14181 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14182 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
14183 |
fi |
14184 |
|
14185 |
iopoll_mechanism_poll=5 |
14186 |
|
14187 |
cat >>confdefs.h <<_ACEOF |
14188 |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
14189 |
_ACEOF |
14190 |
|
14191 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14192 |
/* end confdefs.h. */ |
14193 |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
14194 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14195 |
#define poll innocuous_poll |
14196 |
|
14197 |
/* System header to define __stub macros and hopefully few prototypes, |
14198 |
which can conflict with char poll (); below. |
14199 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14200 |
<limits.h> exists even on freestanding compilers. */ |
14201 |
|
14202 |
#ifdef __STDC__ |
14203 |
# include <limits.h> |
14204 |
#else |
14205 |
# include <assert.h> |
14206 |
#endif |
14207 |
|
14208 |
#undef poll |
14209 |
|
14210 |
/* Override any GCC internal prototype to avoid an error. |
14211 |
Use char because int might match the return type of a GCC |
14212 |
builtin and then its argument prototype would still apply. */ |
14213 |
#ifdef __cplusplus |
14214 |
extern "C" |
14215 |
#endif |
14216 |
char poll (); |
14217 |
/* The GNU C library defines this for functions which it implements |
14218 |
to always fail with ENOSYS. Some functions are actually named |
14219 |
something starting with __ and the normal name is an alias. */ |
14220 |
#if defined __stub_poll || defined __stub___poll |
14221 |
choke me |
14222 |
#endif |
14223 |
|
14224 |
int |
14225 |
main () |
14226 |
{ |
14227 |
return poll (); |
14228 |
; |
14229 |
return 0; |
14230 |
} |
14231 |
_ACEOF |
14232 |
if ac_fn_c_try_link "$LINENO"; then : |
14233 |
is_poll_mechanism_available="yes" |
14234 |
else |
14235 |
is_poll_mechanism_available="no" |
14236 |
fi |
14237 |
rm -f core conftest.err conftest.$ac_objext \ |
14238 |
conftest$ac_exeext conftest.$ac_ext |
14239 |
iopoll_mechanism_select=6 |
14240 |
|
14241 |
cat >>confdefs.h <<_ACEOF |
14242 |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
14243 |
_ACEOF |
14244 |
|
14245 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14246 |
/* end confdefs.h. */ |
14247 |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
14248 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14249 |
#define select innocuous_select |
14250 |
|
14251 |
/* System header to define __stub macros and hopefully few prototypes, |
14252 |
which can conflict with char select (); below. |
14253 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14254 |
<limits.h> exists even on freestanding compilers. */ |
14255 |
|
14256 |
#ifdef __STDC__ |
14257 |
# include <limits.h> |
14258 |
#else |
14259 |
# include <assert.h> |
14260 |
#endif |
14261 |
|
14262 |
#undef select |
14263 |
|
14264 |
/* Override any GCC internal prototype to avoid an error. |
14265 |
Use char because int might match the return type of a GCC |
14266 |
builtin and then its argument prototype would still apply. */ |
14267 |
#ifdef __cplusplus |
14268 |
extern "C" |
14269 |
#endif |
14270 |
char select (); |
14271 |
/* The GNU C library defines this for functions which it implements |
14272 |
to always fail with ENOSYS. Some functions are actually named |
14273 |
something starting with __ and the normal name is an alias. */ |
14274 |
#if defined __stub_select || defined __stub___select |
14275 |
choke me |
14276 |
#endif |
14277 |
|
14278 |
int |
14279 |
main () |
14280 |
{ |
14281 |
return select (); |
14282 |
; |
14283 |
return 0; |
14284 |
} |
14285 |
_ACEOF |
14286 |
if ac_fn_c_try_link "$LINENO"; then : |
14287 |
is_select_mechanism_available="yes" |
14288 |
else |
14289 |
is_select_mechanism_available="no" |
14290 |
fi |
14291 |
rm -f core conftest.err conftest.$ac_objext \ |
14292 |
conftest$ac_exeext conftest.$ac_ext |
14293 |
optimal_iopoll_mechanism="none" |
14294 |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
14295 |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
14296 |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
14297 |
optimal_iopoll_mechanism="$mechanism" |
14298 |
break |
14299 |
fi |
14300 |
done |
14301 |
if test "$desired_iopoll_mechanism" = "none" ; then |
14302 |
if test "$optimal_iopoll_mechanism" = "none" ; then |
14303 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14304 |
$as_echo "none" >&6; } |
14305 |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
14306 |
else |
14307 |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
14308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14309 |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14310 |
fi |
14311 |
else |
14312 |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
14313 |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
14314 |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
14315 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14316 |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14317 |
else |
14318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14319 |
$as_echo "none" >&6; } |
14320 |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
14321 |
fi |
14322 |
fi |
14323 |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
14324 |
|
14325 |
cat >>confdefs.h <<_ACEOF |
14326 |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
14327 |
_ACEOF |
14328 |
|
14329 |
|
14330 |
|
14331 |
|
14332 |
# Check whether --with-nicklen was given. |
14333 |
if test "${with_nicklen+set}" = set; then : |
14334 |
withval=$with_nicklen; nicklen="$withval" |
14335 |
else |
14336 |
nicklen="9" |
14337 |
fi |
14338 |
|
14339 |
|
14340 |
cat >>confdefs.h <<_ACEOF |
14341 |
#define NICKLEN ($nicklen) |
14342 |
_ACEOF |
14343 |
|
14344 |
|
14345 |
|
14346 |
|
14347 |
# Check whether --with-topiclen was given. |
14348 |
if test "${with_topiclen+set}" = set; then : |
14349 |
withval=$with_topiclen; topiclen="$withval" |
14350 |
else |
14351 |
topiclen="160" |
14352 |
fi |
14353 |
|
14354 |
|
14355 |
cat >>confdefs.h <<_ACEOF |
14356 |
#define TOPICLEN ($topiclen) |
14357 |
_ACEOF |
14358 |
|
14359 |
|
14360 |
|
14361 |
# Check whether --enable-halfops was given. |
14362 |
if test "${enable_halfops+set}" = set; then : |
14363 |
enableval=$enable_halfops; halfops="$enableval" |
14364 |
else |
14365 |
halfops="no" |
14366 |
fi |
14367 |
|
14368 |
if test "$halfops" = "yes" ; then |
14369 |
|
14370 |
$as_echo "#define HALFOPS 1" >>confdefs.h |
14371 |
|
14372 |
fi |
14373 |
|
14374 |
|
14375 |
# Check whether --enable-debugging was given. |
14376 |
if test "${enable_debugging+set}" = set; then : |
14377 |
enableval=$enable_debugging; debugging="$enableval" |
14378 |
else |
14379 |
debugging="no" |
14380 |
fi |
14381 |
|
14382 |
if test "$debugging" = "yes" ; then |
14383 |
CFLAGS="-Wall -g -O0" |
14384 |
fi |
14385 |
|
14386 |
|
14387 |
# Check whether --enable-warnings was given. |
14388 |
if test "${enable_warnings+set}" = set; then : |
14389 |
enableval=$enable_warnings; warnings="$enableval" |
14390 |
else |
14391 |
warnings="no" |
14392 |
fi |
14393 |
|
14394 |
if test "$warnings" = "yes" ; then |
14395 |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
14396 |
fi |
14397 |
|
14398 |
|
14399 |
|
14400 |
prefix_NONE= |
14401 |
exec_prefix_NONE= |
14402 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14403 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14404 |
eval ac_define_dir="\"$prefix\"" |
14405 |
eval ac_define_dir="\"$ac_define_dir\"" |
14406 |
PREFIX="$ac_define_dir" |
14407 |
|
14408 |
|
14409 |
cat >>confdefs.h <<_ACEOF |
14410 |
#define PREFIX "$ac_define_dir" |
14411 |
_ACEOF |
14412 |
|
14413 |
test "$prefix_NONE" && prefix=NONE |
14414 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14415 |
|
14416 |
|
14417 |
prefix_NONE= |
14418 |
exec_prefix_NONE= |
14419 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14420 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14421 |
eval ac_define_dir="\"$sysconfdir\"" |
14422 |
eval ac_define_dir="\"$ac_define_dir\"" |
14423 |
SYSCONFDIR="$ac_define_dir" |
14424 |
|
14425 |
|
14426 |
cat >>confdefs.h <<_ACEOF |
14427 |
#define SYSCONFDIR "$ac_define_dir" |
14428 |
_ACEOF |
14429 |
|
14430 |
test "$prefix_NONE" && prefix=NONE |
14431 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14432 |
|
14433 |
|
14434 |
prefix_NONE= |
14435 |
exec_prefix_NONE= |
14436 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14437 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14438 |
eval ac_define_dir="\"$libdir\"" |
14439 |
eval ac_define_dir="\"$ac_define_dir\"" |
14440 |
LIBDIR="$ac_define_dir" |
14441 |
|
14442 |
|
14443 |
cat >>confdefs.h <<_ACEOF |
14444 |
#define LIBDIR "$ac_define_dir" |
14445 |
_ACEOF |
14446 |
|
14447 |
test "$prefix_NONE" && prefix=NONE |
14448 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14449 |
|
14450 |
|
14451 |
prefix_NONE= |
14452 |
exec_prefix_NONE= |
14453 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14454 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14455 |
eval ac_define_dir="\"$datadir\"" |
14456 |
eval ac_define_dir="\"$ac_define_dir\"" |
14457 |
DATADIR="$ac_define_dir" |
14458 |
|
14459 |
|
14460 |
cat >>confdefs.h <<_ACEOF |
14461 |
#define DATADIR "$ac_define_dir" |
14462 |
_ACEOF |
14463 |
|
14464 |
test "$prefix_NONE" && prefix=NONE |
14465 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14466 |
|
14467 |
|
14468 |
prefix_NONE= |
14469 |
exec_prefix_NONE= |
14470 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14471 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14472 |
eval ac_define_dir="\"$localstatedir\"" |
14473 |
eval ac_define_dir="\"$ac_define_dir\"" |
14474 |
LOCALSTATEDIR="$ac_define_dir" |
14475 |
|
14476 |
|
14477 |
cat >>confdefs.h <<_ACEOF |
14478 |
#define LOCALSTATEDIR "$ac_define_dir" |
14479 |
_ACEOF |
14480 |
|
14481 |
test "$prefix_NONE" && prefix=NONE |
14482 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14483 |
|
14484 |
|
14485 |
ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
14486 |
|
14487 |
|
14488 |
cat >confcache <<\_ACEOF |
14489 |
# This file is a shell script that caches the results of configure |
14490 |
# tests run on this system so they can be shared between configure |
14491 |
# scripts and configure runs, see configure's option --config-cache. |
14492 |
# It is not useful on other systems. If it contains results you don't |
14493 |
# want to keep, you may remove or edit it. |
14494 |
# |
14495 |
# config.status only pays attention to the cache file if you give it |
14496 |
# the --recheck option to rerun configure. |
14497 |
# |
14498 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
14499 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
14500 |
# following values. |
14501 |
|
14502 |
_ACEOF |
14503 |
|
14504 |
# The following way of writing the cache mishandles newlines in values, |
14505 |
# but we know of no workaround that is simple, portable, and efficient. |
14506 |
# So, we kill variables containing newlines. |
14507 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
14508 |
# and sets the high bit in the cache file unless we assign to the vars. |
14509 |
( |
14510 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
14511 |
eval ac_val=\$$ac_var |
14512 |
case $ac_val in #( |
14513 |
*${as_nl}*) |
14514 |
case $ac_var in #( |
14515 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
14516 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
14517 |
esac |
14518 |
case $ac_var in #( |
14519 |
_ | IFS | as_nl) ;; #( |
14520 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
14521 |
*) { eval $ac_var=; unset $ac_var;} ;; |
14522 |
esac ;; |
14523 |
esac |
14524 |
done |
14525 |
|
14526 |
(set) 2>&1 | |
14527 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14528 |
*${as_nl}ac_space=\ *) |
14529 |
# `set' does not quote correctly, so add quotes: double-quote |
14530 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
14531 |
sed -n \ |
14532 |
"s/'/'\\\\''/g; |
14533 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
14534 |
;; #( |
14535 |
*) |
14536 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
14537 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
14538 |
;; |
14539 |
esac | |
14540 |
sort |
14541 |
) | |
14542 |
sed ' |
14543 |
/^ac_cv_env_/b end |
14544 |
t clear |
14545 |
:clear |
14546 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14547 |
t end |
14548 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14549 |
:end' >>confcache |
14550 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
14551 |
if test -w "$cache_file"; then |
14552 |
if test "x$cache_file" != "x/dev/null"; then |
14553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14554 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
14555 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
14556 |
cat confcache >"$cache_file" |
14557 |
else |
14558 |
case $cache_file in #( |
14559 |
*/* | ?:*) |
14560 |
mv -f confcache "$cache_file"$$ && |
14561 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
14562 |
*) |
14563 |
mv -f confcache "$cache_file" ;; |
14564 |
esac |
14565 |
fi |
14566 |
fi |
14567 |
else |
14568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14569 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
14570 |
fi |
14571 |
fi |
14572 |
rm -f confcache |
14573 |
|
14574 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14575 |
# Let make expand exec_prefix. |
14576 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
14577 |
|
14578 |
DEFS=-DHAVE_CONFIG_H |
14579 |
|
14580 |
ac_libobjs= |
14581 |
ac_ltlibobjs= |
14582 |
U= |
14583 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14584 |
# 1. Remove the extension, and $U if already installed. |
14585 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14586 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
14587 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14588 |
# will be set to the directory where LIBOBJS objects are built. |
14589 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14590 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
14591 |
done |
14592 |
LIBOBJS=$ac_libobjs |
14593 |
|
14594 |
LTLIBOBJS=$ac_ltlibobjs |
14595 |
|
14596 |
|
14597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14598 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
14599 |
if test -n "$am_sleep_pid"; then |
14600 |
# Hide warnings about reused PIDs. |
14601 |
wait $am_sleep_pid 2>/dev/null |
14602 |
fi |
14603 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
14604 |
$as_echo "done" >&6; } |
14605 |
if test -n "$EXEEXT"; then |
14606 |
am__EXEEXT_TRUE= |
14607 |
am__EXEEXT_FALSE='#' |
14608 |
else |
14609 |
am__EXEEXT_TRUE='#' |
14610 |
am__EXEEXT_FALSE= |
14611 |
fi |
14612 |
|
14613 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
14614 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
14615 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14616 |
fi |
14617 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14618 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
14619 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14620 |
fi |
14621 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
14622 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
14623 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14624 |
fi |
14625 |
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
14626 |
as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
14627 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14628 |
fi |
14629 |
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
14630 |
as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
14631 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14632 |
fi |
14633 |
LT_CONFIG_H=config.h |
14634 |
|
14635 |
_ltdl_libobjs= |
14636 |
_ltdl_ltlibobjs= |
14637 |
if test -n "$_LT_LIBOBJS"; then |
14638 |
# Remove the extension. |
14639 |
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
14640 |
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
14641 |
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
14642 |
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
14643 |
done |
14644 |
fi |
14645 |
ltdl_LIBOBJS=$_ltdl_libobjs |
14646 |
|
14647 |
ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
14648 |
|
14649 |
|
14650 |
|
14651 |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
14652 |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
14653 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14654 |
fi |
14655 |
|
14656 |
: "${CONFIG_STATUS=./config.status}" |
14657 |
ac_write_fail=0 |
14658 |
ac_clean_files_save=$ac_clean_files |
14659 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
14660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14661 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
14662 |
as_write_fail=0 |
14663 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
14664 |
#! $SHELL |
14665 |
# Generated by $as_me. |
14666 |
# Run this file to recreate the current configuration. |
14667 |
# Compiler output produced by configure, useful for debugging |
14668 |
# configure, is in config.log if it exists. |
14669 |
|
14670 |
debug=false |
14671 |
ac_cs_recheck=false |
14672 |
ac_cs_silent=false |
14673 |
|
14674 |
SHELL=\${CONFIG_SHELL-$SHELL} |
14675 |
export SHELL |
14676 |
_ASEOF |
14677 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
14678 |
## -------------------- ## |
14679 |
## M4sh Initialization. ## |
14680 |
## -------------------- ## |
14681 |
|
14682 |
# Be more Bourne compatible |
14683 |
DUALCASE=1; export DUALCASE # for MKS sh |
14684 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
14685 |
emulate sh |
14686 |
NULLCMD=: |
14687 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
14688 |
# is contrary to our usage. Disable this feature. |
14689 |
alias -g '${1+"$@"}'='"$@"' |
14690 |
setopt NO_GLOB_SUBST |
14691 |
else |
14692 |
case `(set -o) 2>/dev/null` in #( |
14693 |
*posix*) : |
14694 |
set -o posix ;; #( |
14695 |
*) : |
14696 |
;; |
14697 |
esac |
14698 |
fi |
14699 |
|
14700 |
|
14701 |
as_nl=' |
14702 |
' |
14703 |
export as_nl |
14704 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
14705 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
14706 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
14707 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
14708 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
14709 |
# but without wasting forks for bash or zsh. |
14710 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
14711 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
14712 |
as_echo='print -r --' |
14713 |
as_echo_n='print -rn --' |
14714 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
14715 |
as_echo='printf %s\n' |
14716 |
as_echo_n='printf %s' |
14717 |
else |
14718 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
14719 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
14720 |
as_echo_n='/usr/ucb/echo -n' |
14721 |
else |
14722 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14723 |
as_echo_n_body='eval |
14724 |
arg=$1; |
14725 |
case $arg in #( |
14726 |
*"$as_nl"*) |
14727 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
14728 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
14729 |
esac; |
14730 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
14731 |
' |
14732 |
export as_echo_n_body |
14733 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
14734 |
fi |
14735 |
export as_echo_body |
14736 |
as_echo='sh -c $as_echo_body as_echo' |
14737 |
fi |
14738 |
|
14739 |
# The user is always right. |
14740 |
if test "${PATH_SEPARATOR+set}" != set; then |
14741 |
PATH_SEPARATOR=: |
14742 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
14743 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
14744 |
PATH_SEPARATOR=';' |
14745 |
} |
14746 |
fi |
14747 |
|
14748 |
|
14749 |
# IFS |
14750 |
# We need space, tab and new line, in precisely that order. Quoting is |
14751 |
# there to prevent editors from complaining about space-tab. |
14752 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
14753 |
# splitting by setting IFS to empty value.) |
14754 |
IFS=" "" $as_nl" |
14755 |
|
14756 |
# Find who we are. Look in the path if we contain no directory separator. |
14757 |
as_myself= |
14758 |
case $0 in #(( |
14759 |
*[\\/]* ) as_myself=$0 ;; |
14760 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14761 |
for as_dir in $PATH |
14762 |
do |
14763 |
IFS=$as_save_IFS |
14764 |
test -z "$as_dir" && as_dir=. |
14765 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14766 |
done |
14767 |
IFS=$as_save_IFS |
14768 |
|
14769 |
;; |
14770 |
esac |
14771 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
14772 |
# in which case we are not to be found in the path. |
14773 |
if test "x$as_myself" = x; then |
14774 |
as_myself=$0 |
14775 |
fi |
14776 |
if test ! -f "$as_myself"; then |
14777 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
14778 |
exit 1 |
14779 |
fi |
14780 |
|
14781 |
# Unset variables that we do not need and which cause bugs (e.g. in |
14782 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
14783 |
# suppresses any "Segmentation fault" message there. '((' could |
14784 |
# trigger a bug in pdksh 5.2.14. |
14785 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
14786 |
do eval test x\${$as_var+set} = xset \ |
14787 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
14788 |
done |
14789 |
PS1='$ ' |
14790 |
PS2='> ' |
14791 |
PS4='+ ' |
14792 |
|
14793 |
# NLS nuisances. |
14794 |
LC_ALL=C |
14795 |
export LC_ALL |
14796 |
LANGUAGE=C |
14797 |
export LANGUAGE |
14798 |
|
14799 |
# CDPATH. |
14800 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
14801 |
|
14802 |
|
14803 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
14804 |
# ---------------------------------------- |
14805 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14806 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
14807 |
# script with STATUS, using 1 if that was 0. |
14808 |
as_fn_error () |
14809 |
{ |
14810 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
14811 |
if test "$4"; then |
14812 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
14813 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
14814 |
fi |
14815 |
$as_echo "$as_me: error: $2" >&2 |
14816 |
as_fn_exit $as_status |
14817 |
} # as_fn_error |
14818 |
|
14819 |
|
14820 |
# as_fn_set_status STATUS |
14821 |
# ----------------------- |
14822 |
# Set $? to STATUS, without forking. |
14823 |
as_fn_set_status () |
14824 |
{ |
14825 |
return $1 |
14826 |
} # as_fn_set_status |
14827 |
|
14828 |
# as_fn_exit STATUS |
14829 |
# ----------------- |
14830 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
14831 |
as_fn_exit () |
14832 |
{ |
14833 |
set +e |
14834 |
as_fn_set_status $1 |
14835 |
exit $1 |
14836 |
} # as_fn_exit |
14837 |
|
14838 |
# as_fn_unset VAR |
14839 |
# --------------- |
14840 |
# Portably unset VAR. |
14841 |
as_fn_unset () |
14842 |
{ |
14843 |
{ eval $1=; unset $1;} |
14844 |
} |
14845 |
as_unset=as_fn_unset |
14846 |
# as_fn_append VAR VALUE |
14847 |
# ---------------------- |
14848 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
14849 |
# advantage of any shell optimizations that allow amortized linear growth over |
14850 |
# repeated appends, instead of the typical quadratic growth present in naive |
14851 |
# implementations. |
14852 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
14853 |
eval 'as_fn_append () |
14854 |
{ |
14855 |
eval $1+=\$2 |
14856 |
}' |
14857 |
else |
14858 |
as_fn_append () |
14859 |
{ |
14860 |
eval $1=\$$1\$2 |
14861 |
} |
14862 |
fi # as_fn_append |
14863 |
|
14864 |
# as_fn_arith ARG... |
14865 |
# ------------------ |
14866 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
14867 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
14868 |
# must be portable across $(()) and expr. |
14869 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
14870 |
eval 'as_fn_arith () |
14871 |
{ |
14872 |
as_val=$(( $* )) |
14873 |
}' |
14874 |
else |
14875 |
as_fn_arith () |
14876 |
{ |
14877 |
as_val=`expr "$@" || test $? -eq 1` |
14878 |
} |
14879 |
fi # as_fn_arith |
14880 |
|
14881 |
|
14882 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
14883 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14884 |
as_expr=expr |
14885 |
else |
14886 |
as_expr=false |
14887 |
fi |
14888 |
|
14889 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
14890 |
as_basename=basename |
14891 |
else |
14892 |
as_basename=false |
14893 |
fi |
14894 |
|
14895 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14896 |
as_dirname=dirname |
14897 |
else |
14898 |
as_dirname=false |
14899 |
fi |
14900 |
|
14901 |
as_me=`$as_basename -- "$0" || |
14902 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14903 |
X"$0" : 'X\(//\)$' \| \ |
14904 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14905 |
$as_echo X/"$0" | |
14906 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14907 |
s//\1/ |
14908 |
q |
14909 |
} |
14910 |
/^X\/\(\/\/\)$/{ |
14911 |
s//\1/ |
14912 |
q |
14913 |
} |
14914 |
/^X\/\(\/\).*/{ |
14915 |
s//\1/ |
14916 |
q |
14917 |
} |
14918 |
s/.*/./; q'` |
14919 |
|
14920 |
# Avoid depending upon Character Ranges. |
14921 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
14922 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
14923 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
14924 |
as_cr_digits='0123456789' |
14925 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
14926 |
|
14927 |
ECHO_C= ECHO_N= ECHO_T= |
14928 |
case `echo -n x` in #((((( |
14929 |
-n*) |
14930 |
case `echo 'xy\c'` in |
14931 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
14932 |
xy) ECHO_C='\c';; |
14933 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
14934 |
ECHO_T=' ';; |
14935 |
esac;; |
14936 |
*) |
14937 |
ECHO_N='-n';; |
14938 |
esac |
14939 |
|
14940 |
rm -f conf$$ conf$$.exe conf$$.file |
14941 |
if test -d conf$$.dir; then |
14942 |
rm -f conf$$.dir/conf$$.file |
14943 |
else |
14944 |
rm -f conf$$.dir |
14945 |
mkdir conf$$.dir 2>/dev/null |
14946 |
fi |
14947 |
if (echo >conf$$.file) 2>/dev/null; then |
14948 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
14949 |
as_ln_s='ln -s' |
14950 |
# ... but there are two gotchas: |
14951 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
14952 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
14953 |
# In both cases, we have to default to `cp -pR'. |
14954 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
14955 |
as_ln_s='cp -pR' |
14956 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
14957 |
as_ln_s=ln |
14958 |
else |
14959 |
as_ln_s='cp -pR' |
14960 |
fi |
14961 |
else |
14962 |
as_ln_s='cp -pR' |
14963 |
fi |
14964 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14965 |
rmdir conf$$.dir 2>/dev/null |
14966 |
|
14967 |
|
14968 |
# as_fn_mkdir_p |
14969 |
# ------------- |
14970 |
# Create "$as_dir" as a directory, including parents if necessary. |
14971 |
as_fn_mkdir_p () |
14972 |
{ |
14973 |
|
14974 |
case $as_dir in #( |
14975 |
-*) as_dir=./$as_dir;; |
14976 |
esac |
14977 |
test -d "$as_dir" || eval $as_mkdir_p || { |
14978 |
as_dirs= |
14979 |
while :; do |
14980 |
case $as_dir in #( |
14981 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
14982 |
*) as_qdir=$as_dir;; |
14983 |
esac |
14984 |
as_dirs="'$as_qdir' $as_dirs" |
14985 |
as_dir=`$as_dirname -- "$as_dir" || |
14986 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14987 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
14988 |
X"$as_dir" : 'X\(//\)$' \| \ |
14989 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
14990 |
$as_echo X"$as_dir" | |
14991 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14992 |
s//\1/ |
14993 |
q |
14994 |
} |
14995 |
/^X\(\/\/\)[^/].*/{ |
14996 |
s//\1/ |
14997 |
q |
14998 |
} |
14999 |
/^X\(\/\/\)$/{ |
15000 |
s//\1/ |
15001 |
q |
15002 |
} |
15003 |
/^X\(\/\).*/{ |
15004 |
s//\1/ |
15005 |
q |
15006 |
} |
15007 |
s/.*/./; q'` |
15008 |
test -d "$as_dir" && break |
15009 |
done |
15010 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
15011 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
15012 |
|
15013 |
|
15014 |
} # as_fn_mkdir_p |
15015 |
if mkdir -p . 2>/dev/null; then |
15016 |
as_mkdir_p='mkdir -p "$as_dir"' |
15017 |
else |
15018 |
test -d ./-p && rmdir ./-p |
15019 |
as_mkdir_p=false |
15020 |
fi |
15021 |
|
15022 |
|
15023 |
# as_fn_executable_p FILE |
15024 |
# ----------------------- |
15025 |
# Test if FILE is an executable regular file. |
15026 |
as_fn_executable_p () |
15027 |
{ |
15028 |
test -f "$1" && test -x "$1" |
15029 |
} # as_fn_executable_p |
15030 |
as_test_x='test -x' |
15031 |
as_executable_p=as_fn_executable_p |
15032 |
|
15033 |
# Sed expression to map a string onto a valid CPP name. |
15034 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
15035 |
|
15036 |
# Sed expression to map a string onto a valid variable name. |
15037 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
15038 |
|
15039 |
|
15040 |
exec 6>&1 |
15041 |
## ----------------------------------- ## |
15042 |
## Main body of $CONFIG_STATUS script. ## |
15043 |
## ----------------------------------- ## |
15044 |
_ASEOF |
15045 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
15046 |
|
15047 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15048 |
# Save the log message, to keep $0 and so on meaningful, and to |
15049 |
# report actual input values of CONFIG_FILES etc. instead of their |
15050 |
# values after options handling. |
15051 |
ac_log=" |
15052 |
This file was extended by ircd-hybrid $as_me 8.0.0, which was |
15053 |
generated by GNU Autoconf 2.69. Invocation command line was |
15054 |
|
15055 |
CONFIG_FILES = $CONFIG_FILES |
15056 |
CONFIG_HEADERS = $CONFIG_HEADERS |
15057 |
CONFIG_LINKS = $CONFIG_LINKS |
15058 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
15059 |
$ $0 $@ |
15060 |
|
15061 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15062 |
" |
15063 |
|
15064 |
_ACEOF |
15065 |
|
15066 |
case $ac_config_files in *" |
15067 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
15068 |
esac |
15069 |
|
15070 |
case $ac_config_headers in *" |
15071 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
15072 |
esac |
15073 |
|
15074 |
|
15075 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15076 |
# Files that config.status was made for. |
15077 |
config_files="$ac_config_files" |
15078 |
config_headers="$ac_config_headers" |
15079 |
config_commands="$ac_config_commands" |
15080 |
|
15081 |
_ACEOF |
15082 |
|
15083 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15084 |
ac_cs_usage="\ |
15085 |
\`$as_me' instantiates files and other configuration actions |
15086 |
from templates according to the current configuration. Unless the files |
15087 |
and actions are specified as TAGs, all are instantiated by default. |
15088 |
|
15089 |
Usage: $0 [OPTION]... [TAG]... |
15090 |
|
15091 |
-h, --help print this help, then exit |
15092 |
-V, --version print version number and configuration settings, then exit |
15093 |
--config print configuration, then exit |
15094 |
-q, --quiet, --silent |
15095 |
do not print progress messages |
15096 |
-d, --debug don't remove temporary files |
15097 |
--recheck update $as_me by reconfiguring in the same conditions |
15098 |
--file=FILE[:TEMPLATE] |
15099 |
instantiate the configuration file FILE |
15100 |
--header=FILE[:TEMPLATE] |
15101 |
instantiate the configuration header FILE |
15102 |
|
15103 |
Configuration files: |
15104 |
$config_files |
15105 |
|
15106 |
Configuration headers: |
15107 |
$config_headers |
15108 |
|
15109 |
Configuration commands: |
15110 |
$config_commands |
15111 |
|
15112 |
Report bugs to <bugs@ircd-hybrid.org>." |
15113 |
|
15114 |
_ACEOF |
15115 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15116 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
15117 |
ac_cs_version="\\ |
15118 |
ircd-hybrid config.status 8.0.0 |
15119 |
configured by $0, generated by GNU Autoconf 2.69, |
15120 |
with options \\"\$ac_cs_config\\" |
15121 |
|
15122 |
Copyright (C) 2012 Free Software Foundation, Inc. |
15123 |
This config.status script is free software; the Free Software Foundation |
15124 |
gives unlimited permission to copy, distribute and modify it." |
15125 |
|
15126 |
ac_pwd='$ac_pwd' |
15127 |
srcdir='$srcdir' |
15128 |
INSTALL='$INSTALL' |
15129 |
MKDIR_P='$MKDIR_P' |
15130 |
AWK='$AWK' |
15131 |
test -n "\$AWK" || AWK=awk |
15132 |
_ACEOF |
15133 |
|
15134 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15135 |
# The default lists apply if the user does not specify any file. |
15136 |
ac_need_defaults=: |
15137 |
while test $# != 0 |
15138 |
do |
15139 |
case $1 in |
15140 |
--*=?*) |
15141 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15142 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
15143 |
ac_shift=: |
15144 |
;; |
15145 |
--*=) |
15146 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15147 |
ac_optarg= |
15148 |
ac_shift=: |
15149 |
;; |
15150 |
*) |
15151 |
ac_option=$1 |
15152 |
ac_optarg=$2 |
15153 |
ac_shift=shift |
15154 |
;; |
15155 |
esac |
15156 |
|
15157 |
case $ac_option in |
15158 |
# Handling of the options. |
15159 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15160 |
ac_cs_recheck=: ;; |
15161 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15162 |
$as_echo "$ac_cs_version"; exit ;; |
15163 |
--config | --confi | --conf | --con | --co | --c ) |
15164 |
$as_echo "$ac_cs_config"; exit ;; |
15165 |
--debug | --debu | --deb | --de | --d | -d ) |
15166 |
debug=: ;; |
15167 |
--file | --fil | --fi | --f ) |
15168 |
$ac_shift |
15169 |
case $ac_optarg in |
15170 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15171 |
'') as_fn_error $? "missing file argument" ;; |
15172 |
esac |
15173 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
15174 |
ac_need_defaults=false;; |
15175 |
--header | --heade | --head | --hea ) |
15176 |
$ac_shift |
15177 |
case $ac_optarg in |
15178 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15179 |
esac |
15180 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
15181 |
ac_need_defaults=false;; |
15182 |
--he | --h) |
15183 |
# Conflict between --help and --header |
15184 |
as_fn_error $? "ambiguous option: \`$1' |
15185 |
Try \`$0 --help' for more information.";; |
15186 |
--help | --hel | -h ) |
15187 |
$as_echo "$ac_cs_usage"; exit ;; |
15188 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15189 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
15190 |
ac_cs_silent=: ;; |
15191 |
|
15192 |
# This is an error. |
15193 |
-*) as_fn_error $? "unrecognized option: \`$1' |
15194 |
Try \`$0 --help' for more information." ;; |
15195 |
|
15196 |
*) as_fn_append ac_config_targets " $1" |
15197 |
ac_need_defaults=false ;; |
15198 |
|
15199 |
esac |
15200 |
shift |
15201 |
done |
15202 |
|
15203 |
ac_configure_extra_args= |
15204 |
|
15205 |
if $ac_cs_silent; then |
15206 |
exec 6>/dev/null |
15207 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
15208 |
fi |
15209 |
|
15210 |
_ACEOF |
15211 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15212 |
if \$ac_cs_recheck; then |
15213 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15214 |
shift |
15215 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
15216 |
CONFIG_SHELL='$SHELL' |
15217 |
export CONFIG_SHELL |
15218 |
exec "\$@" |
15219 |
fi |
15220 |
|
15221 |
_ACEOF |
15222 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15223 |
exec 5>>config.log |
15224 |
{ |
15225 |
echo |
15226 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
15227 |
## Running $as_me. ## |
15228 |
_ASBOX |
15229 |
$as_echo "$ac_log" |
15230 |
} >&5 |
15231 |
|
15232 |
_ACEOF |
15233 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15234 |
# |
15235 |
# INIT-COMMANDS |
15236 |
# |
15237 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
15238 |
|
15239 |
|
15240 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
15241 |
# if CDPATH is set. |
15242 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
15243 |
|
15244 |
sed_quote_subst='$sed_quote_subst' |
15245 |
double_quote_subst='$double_quote_subst' |
15246 |
delay_variable_subst='$delay_variable_subst' |
15247 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
15248 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
15249 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
15250 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
15251 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
15252 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
15253 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
15254 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
15255 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
15256 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
15257 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
15258 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
15259 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
15260 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
15261 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
15262 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
15263 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
15264 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
15265 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
15266 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
15267 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
15268 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
15269 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
15270 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
15271 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
15272 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
15273 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
15274 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
15275 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
15276 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
15277 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
15278 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
15279 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
15280 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
15281 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
15282 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
15283 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
15284 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
15285 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
15286 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
15287 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
15288 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
15289 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
15290 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
15291 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
15292 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
15293 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
15294 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
15295 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
15296 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
15297 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
15298 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
15299 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
15300 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
15301 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
15302 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
15303 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
15304 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
15305 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
15306 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
15307 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
15308 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
15309 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
15310 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
15311 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
15312 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
15313 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
15314 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
15315 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
15316 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
15317 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
15318 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
15319 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
15320 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
15321 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
15322 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
15323 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
15324 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
15325 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
15326 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
15327 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
15328 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
15329 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
15330 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
15331 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
15332 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
15333 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
15334 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
15335 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
15336 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
15337 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
15338 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
15339 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
15340 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
15341 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
15342 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
15343 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
15344 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
15345 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
15346 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
15347 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
15348 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
15349 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
15350 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
15351 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
15352 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
15353 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
15354 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
15355 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
15356 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
15357 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
15358 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
15359 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
15360 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
15361 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
15362 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
15363 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
15364 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
15365 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
15366 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
15367 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
15368 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
15369 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
15370 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
15371 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
15372 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
15373 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
15374 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
15375 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
15376 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
15377 |
|
15378 |
LTCC='$LTCC' |
15379 |
LTCFLAGS='$LTCFLAGS' |
15380 |
compiler='$compiler_DEFAULT' |
15381 |
|
15382 |
# A function that is used when there is no print builtin or printf. |
15383 |
func_fallback_echo () |
15384 |
{ |
15385 |
eval 'cat <<_LTECHO_EOF |
15386 |
\$1 |
15387 |
_LTECHO_EOF' |
15388 |
} |
15389 |
|
15390 |
# Quote evaled strings. |
15391 |
for var in SHELL \ |
15392 |
ECHO \ |
15393 |
PATH_SEPARATOR \ |
15394 |
SED \ |
15395 |
GREP \ |
15396 |
EGREP \ |
15397 |
FGREP \ |
15398 |
LD \ |
15399 |
NM \ |
15400 |
LN_S \ |
15401 |
lt_SP2NL \ |
15402 |
lt_NL2SP \ |
15403 |
reload_flag \ |
15404 |
OBJDUMP \ |
15405 |
deplibs_check_method \ |
15406 |
file_magic_cmd \ |
15407 |
file_magic_glob \ |
15408 |
want_nocaseglob \ |
15409 |
DLLTOOL \ |
15410 |
sharedlib_from_linklib_cmd \ |
15411 |
AR \ |
15412 |
AR_FLAGS \ |
15413 |
archiver_list_spec \ |
15414 |
STRIP \ |
15415 |
RANLIB \ |
15416 |
CC \ |
15417 |
CFLAGS \ |
15418 |
compiler \ |
15419 |
lt_cv_sys_global_symbol_pipe \ |
15420 |
lt_cv_sys_global_symbol_to_cdecl \ |
15421 |
lt_cv_sys_global_symbol_to_c_name_address \ |
15422 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
15423 |
nm_file_list_spec \ |
15424 |
lt_prog_compiler_no_builtin_flag \ |
15425 |
lt_prog_compiler_pic \ |
15426 |
lt_prog_compiler_wl \ |
15427 |
lt_prog_compiler_static \ |
15428 |
lt_cv_prog_compiler_c_o \ |
15429 |
need_locks \ |
15430 |
MANIFEST_TOOL \ |
15431 |
DSYMUTIL \ |
15432 |
NMEDIT \ |
15433 |
LIPO \ |
15434 |
OTOOL \ |
15435 |
OTOOL64 \ |
15436 |
shrext_cmds \ |
15437 |
export_dynamic_flag_spec \ |
15438 |
whole_archive_flag_spec \ |
15439 |
compiler_needs_object \ |
15440 |
with_gnu_ld \ |
15441 |
allow_undefined_flag \ |
15442 |
no_undefined_flag \ |
15443 |
hardcode_libdir_flag_spec \ |
15444 |
hardcode_libdir_separator \ |
15445 |
exclude_expsyms \ |
15446 |
include_expsyms \ |
15447 |
file_list_spec \ |
15448 |
variables_saved_for_relink \ |
15449 |
libname_spec \ |
15450 |
library_names_spec \ |
15451 |
soname_spec \ |
15452 |
install_override_mode \ |
15453 |
finish_eval \ |
15454 |
old_striplib \ |
15455 |
striplib; do |
15456 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
15457 |
*[\\\\\\\`\\"\\\$]*) |
15458 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
15459 |
;; |
15460 |
*) |
15461 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15462 |
;; |
15463 |
esac |
15464 |
done |
15465 |
|
15466 |
# Double-quote double-evaled strings. |
15467 |
for var in reload_cmds \ |
15468 |
old_postinstall_cmds \ |
15469 |
old_postuninstall_cmds \ |
15470 |
old_archive_cmds \ |
15471 |
extract_expsyms_cmds \ |
15472 |
old_archive_from_new_cmds \ |
15473 |
old_archive_from_expsyms_cmds \ |
15474 |
archive_cmds \ |
15475 |
archive_expsym_cmds \ |
15476 |
module_cmds \ |
15477 |
module_expsym_cmds \ |
15478 |
export_symbols_cmds \ |
15479 |
prelink_cmds \ |
15480 |
postlink_cmds \ |
15481 |
postinstall_cmds \ |
15482 |
postuninstall_cmds \ |
15483 |
finish_cmds \ |
15484 |
sys_lib_search_path_spec \ |
15485 |
sys_lib_dlsearch_path_spec; do |
15486 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
15487 |
*[\\\\\\\`\\"\\\$]*) |
15488 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
15489 |
;; |
15490 |
*) |
15491 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15492 |
;; |
15493 |
esac |
15494 |
done |
15495 |
|
15496 |
ac_aux_dir='$ac_aux_dir' |
15497 |
xsi_shell='$xsi_shell' |
15498 |
lt_shell_append='$lt_shell_append' |
15499 |
|
15500 |
# See if we are running on zsh, and set the options which allow our |
15501 |
# commands through without removal of \ escapes INIT. |
15502 |
if test -n "\${ZSH_VERSION+set}" ; then |
15503 |
setopt NO_GLOB_SUBST |
15504 |
fi |
15505 |
|
15506 |
|
15507 |
PACKAGE='$PACKAGE' |
15508 |
VERSION='$VERSION' |
15509 |
TIMESTAMP='$TIMESTAMP' |
15510 |
RM='$RM' |
15511 |
ofile='$ofile' |
15512 |
|
15513 |
|
15514 |
|
15515 |
|
15516 |
_ACEOF |
15517 |
|
15518 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15519 |
|
15520 |
# Handling of arguments. |
15521 |
for ac_config_target in $ac_config_targets |
15522 |
do |
15523 |
case $ac_config_target in |
15524 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
15525 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
15526 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
15527 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15528 |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
15529 |
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
15530 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
15531 |
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
15532 |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
15533 |
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
15534 |
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
15535 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
15536 |
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
15537 |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
15538 |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
15539 |
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
15540 |
|
15541 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
15542 |
esac |
15543 |
done |
15544 |
|
15545 |
|
15546 |
# If the user did not use the arguments to specify the items to instantiate, |
15547 |
# then the envvar interface is used. Set only those that are not. |
15548 |
# We use the long form for the default assignment because of an extremely |
15549 |
# bizarre bug on SunOS 4.1.3. |
15550 |
if $ac_need_defaults; then |
15551 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
15552 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15553 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
15554 |
fi |
15555 |
|
15556 |
# Have a temporary directory for convenience. Make it in the build tree |
15557 |
# simply because there is no reason against having it here, and in addition, |
15558 |
# creating and moving files from /tmp can sometimes cause problems. |
15559 |
# Hook for its removal unless debugging. |
15560 |
# Note that there is a small window in which the directory will not be cleaned: |
15561 |
# after its creation but before its name has been assigned to `$tmp'. |
15562 |
$debug || |
15563 |
{ |
15564 |
tmp= ac_tmp= |
15565 |
trap 'exit_status=$? |
15566 |
: "${ac_tmp:=$tmp}" |
15567 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
15568 |
' 0 |
15569 |
trap 'as_fn_exit 1' 1 2 13 15 |
15570 |
} |
15571 |
# Create a (secure) tmp directory for tmp files. |
15572 |
|
15573 |
{ |
15574 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
15575 |
test -d "$tmp" |
15576 |
} || |
15577 |
{ |
15578 |
tmp=./conf$$-$RANDOM |
15579 |
(umask 077 && mkdir "$tmp") |
15580 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15581 |
ac_tmp=$tmp |
15582 |
|
15583 |
# Set up the scripts for CONFIG_FILES section. |
15584 |
# No need to generate them if there are no CONFIG_FILES. |
15585 |
# This happens for instance with `./config.status config.h'. |
15586 |
if test -n "$CONFIG_FILES"; then |
15587 |
|
15588 |
|
15589 |
ac_cr=`echo X | tr X '\015'` |
15590 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
15591 |
# But we know of no other shell where ac_cr would be empty at this |
15592 |
# point, so we can use a bashism as a fallback. |
15593 |
if test "x$ac_cr" = x; then |
15594 |
eval ac_cr=\$\'\\r\' |
15595 |
fi |
15596 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
15597 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
15598 |
ac_cs_awk_cr='\\r' |
15599 |
else |
15600 |
ac_cs_awk_cr=$ac_cr |
15601 |
fi |
15602 |
|
15603 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
15604 |
_ACEOF |
15605 |
|
15606 |
|
15607 |
{ |
15608 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
15609 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
15610 |
echo "_ACEOF" |
15611 |
} >conf$$subs.sh || |
15612 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15613 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
15614 |
ac_delim='%!_!# ' |
15615 |
for ac_last_try in false false false false false :; do |
15616 |
. ./conf$$subs.sh || |
15617 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15618 |
|
15619 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
15620 |
if test $ac_delim_n = $ac_delim_num; then |
15621 |
break |
15622 |
elif $ac_last_try; then |
15623 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15624 |
else |
15625 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15626 |
fi |
15627 |
done |
15628 |
rm -f conf$$subs.sh |
15629 |
|
15630 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15631 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
15632 |
_ACEOF |
15633 |
sed -n ' |
15634 |
h |
15635 |
s/^/S["/; s/!.*/"]=/ |
15636 |
p |
15637 |
g |
15638 |
s/^[^!]*!// |
15639 |
:repl |
15640 |
t repl |
15641 |
s/'"$ac_delim"'$// |
15642 |
t delim |
15643 |
:nl |
15644 |
h |
15645 |
s/\(.\{148\}\)..*/\1/ |
15646 |
t more1 |
15647 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
15648 |
p |
15649 |
n |
15650 |
b repl |
15651 |
:more1 |
15652 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15653 |
p |
15654 |
g |
15655 |
s/.\{148\}// |
15656 |
t nl |
15657 |
:delim |
15658 |
h |
15659 |
s/\(.\{148\}\)..*/\1/ |
15660 |
t more2 |
15661 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
15662 |
p |
15663 |
b |
15664 |
:more2 |
15665 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15666 |
p |
15667 |
g |
15668 |
s/.\{148\}// |
15669 |
t delim |
15670 |
' <conf$$subs.awk | sed ' |
15671 |
/^[^""]/{ |
15672 |
N |
15673 |
s/\n// |
15674 |
} |
15675 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
15676 |
rm -f conf$$subs.awk |
15677 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15678 |
_ACAWK |
15679 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
15680 |
for (key in S) S_is_set[key] = 1 |
15681 |
FS = "" |
15682 |
|
15683 |
} |
15684 |
{ |
15685 |
line = $ 0 |
15686 |
nfields = split(line, field, "@") |
15687 |
substed = 0 |
15688 |
len = length(field[1]) |
15689 |
for (i = 2; i < nfields; i++) { |
15690 |
key = field[i] |
15691 |
keylen = length(key) |
15692 |
if (S_is_set[key]) { |
15693 |
value = S[key] |
15694 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
15695 |
len += length(value) + length(field[++i]) |
15696 |
substed = 1 |
15697 |
} else |
15698 |
len += 1 + keylen |
15699 |
} |
15700 |
|
15701 |
print line |
15702 |
} |
15703 |
|
15704 |
_ACAWK |
15705 |
_ACEOF |
15706 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15707 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
15708 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
15709 |
else |
15710 |
cat |
15711 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15712 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
15713 |
_ACEOF |
15714 |
|
15715 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15716 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
15717 |
# trailing colons and then remove the whole line if VPATH becomes empty |
15718 |
# (actually we leave an empty line to preserve line numbers). |
15719 |
if test "x$srcdir" = x.; then |
15720 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15721 |
h |
15722 |
s/// |
15723 |
s/^/:/ |
15724 |
s/[ ]*$/:/ |
15725 |
s/:\$(srcdir):/:/g |
15726 |
s/:\${srcdir}:/:/g |
15727 |
s/:@srcdir@:/:/g |
15728 |
s/^:*// |
15729 |
s/:*$// |
15730 |
x |
15731 |
s/\(=[ ]*\).*/\1/ |
15732 |
G |
15733 |
s/\n// |
15734 |
s/^[^=]*=[ ]*$// |
15735 |
}' |
15736 |
fi |
15737 |
|
15738 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15739 |
fi # test -n "$CONFIG_FILES" |
15740 |
|
15741 |
# Set up the scripts for CONFIG_HEADERS section. |
15742 |
# No need to generate them if there are no CONFIG_HEADERS. |
15743 |
# This happens for instance with `./config.status Makefile'. |
15744 |
if test -n "$CONFIG_HEADERS"; then |
15745 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
15746 |
BEGIN { |
15747 |
_ACEOF |
15748 |
|
15749 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
15750 |
# here-document in config.status, that substitutes the proper values into |
15751 |
# config.h.in to produce config.h. |
15752 |
|
15753 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
15754 |
# handling of long lines. |
15755 |
ac_delim='%!_!# ' |
15756 |
for ac_last_try in false false :; do |
15757 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15758 |
if test -z "$ac_tt"; then |
15759 |
break |
15760 |
elif $ac_last_try; then |
15761 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
15762 |
else |
15763 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15764 |
fi |
15765 |
done |
15766 |
|
15767 |
# For the awk script, D is an array of macro values keyed by name, |
15768 |
# likewise P contains macro parameters if any. Preserve backslash |
15769 |
# newline sequences. |
15770 |
|
15771 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15772 |
sed -n ' |
15773 |
s/.\{148\}/&'"$ac_delim"'/g |
15774 |
t rset |
15775 |
:rset |
15776 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
15777 |
t def |
15778 |
d |
15779 |
:def |
15780 |
s/\\$// |
15781 |
t bsnl |
15782 |
s/["\\]/\\&/g |
15783 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15784 |
D["\1"]=" \3"/p |
15785 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
15786 |
d |
15787 |
:bsnl |
15788 |
s/["\\]/\\&/g |
15789 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15790 |
D["\1"]=" \3\\\\\\n"\\/p |
15791 |
t cont |
15792 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
15793 |
t cont |
15794 |
d |
15795 |
:cont |
15796 |
n |
15797 |
s/.\{148\}/&'"$ac_delim"'/g |
15798 |
t clear |
15799 |
:clear |
15800 |
s/\\$// |
15801 |
t bsnlc |
15802 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
15803 |
d |
15804 |
:bsnlc |
15805 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
15806 |
b cont |
15807 |
' <confdefs.h | sed ' |
15808 |
s/'"$ac_delim"'/"\\\ |
15809 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
15810 |
|
15811 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15812 |
for (key in D) D_is_set[key] = 1 |
15813 |
FS = "" |
15814 |
} |
15815 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
15816 |
line = \$ 0 |
15817 |
split(line, arg, " ") |
15818 |
if (arg[1] == "#") { |
15819 |
defundef = arg[2] |
15820 |
mac1 = arg[3] |
15821 |
} else { |
15822 |
defundef = substr(arg[1], 2) |
15823 |
mac1 = arg[2] |
15824 |
} |
15825 |
split(mac1, mac2, "(") #) |
15826 |
macro = mac2[1] |
15827 |
prefix = substr(line, 1, index(line, defundef) - 1) |
15828 |
if (D_is_set[macro]) { |
15829 |
# Preserve the white space surrounding the "#". |
15830 |
print prefix "define", macro P[macro] D[macro] |
15831 |
next |
15832 |
} else { |
15833 |
# Replace #undef with comments. This is necessary, for example, |
15834 |
# in the case of _POSIX_SOURCE, which is predefined and required |
15835 |
# on some systems where configure will not decide to define it. |
15836 |
if (defundef == "undef") { |
15837 |
print "/*", prefix defundef, macro, "*/" |
15838 |
next |
15839 |
} |
15840 |
} |
15841 |
} |
15842 |
{ print } |
15843 |
_ACAWK |
15844 |
_ACEOF |
15845 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15846 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
15847 |
fi # test -n "$CONFIG_HEADERS" |
15848 |
|
15849 |
|
15850 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
15851 |
shift |
15852 |
for ac_tag |
15853 |
do |
15854 |
case $ac_tag in |
15855 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
15856 |
esac |
15857 |
case $ac_mode$ac_tag in |
15858 |
:[FHL]*:*);; |
15859 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
15860 |
:[FH]-) ac_tag=-:-;; |
15861 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
15862 |
esac |
15863 |
ac_save_IFS=$IFS |
15864 |
IFS=: |
15865 |
set x $ac_tag |
15866 |
IFS=$ac_save_IFS |
15867 |
shift |
15868 |
ac_file=$1 |
15869 |
shift |
15870 |
|
15871 |
case $ac_mode in |
15872 |
:L) ac_source=$1;; |
15873 |
:[FH]) |
15874 |
ac_file_inputs= |
15875 |
for ac_f |
15876 |
do |
15877 |
case $ac_f in |
15878 |
-) ac_f="$ac_tmp/stdin";; |
15879 |
*) # Look for the file first in the build tree, then in the source tree |
15880 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
15881 |
# because $ac_f cannot contain `:'. |
15882 |
test -f "$ac_f" || |
15883 |
case $ac_f in |
15884 |
[\\/$]*) false;; |
15885 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
15886 |
esac || |
15887 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
15888 |
esac |
15889 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
15890 |
as_fn_append ac_file_inputs " '$ac_f'" |
15891 |
done |
15892 |
|
15893 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
15894 |
# use $as_me), people would be surprised to read: |
15895 |
# /* config.h. Generated by config.status. */ |
15896 |
configure_input='Generated from '` |
15897 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
15898 |
`' by configure.' |
15899 |
if test x"$ac_file" != x-; then |
15900 |
configure_input="$ac_file. $configure_input" |
15901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
15902 |
$as_echo "$as_me: creating $ac_file" >&6;} |
15903 |
fi |
15904 |
# Neutralize special characters interpreted by sed in replacement strings. |
15905 |
case $configure_input in #( |
15906 |
*\&* | *\|* | *\\* ) |
15907 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
15908 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
15909 |
*) ac_sed_conf_input=$configure_input;; |
15910 |
esac |
15911 |
|
15912 |
case $ac_tag in |
15913 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15914 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
15915 |
esac |
15916 |
;; |
15917 |
esac |
15918 |
|
15919 |
ac_dir=`$as_dirname -- "$ac_file" || |
15920 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15921 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
15922 |
X"$ac_file" : 'X\(//\)$' \| \ |
15923 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15924 |
$as_echo X"$ac_file" | |
15925 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15926 |
s//\1/ |
15927 |
q |
15928 |
} |
15929 |
/^X\(\/\/\)[^/].*/{ |
15930 |
s//\1/ |
15931 |
q |
15932 |
} |
15933 |
/^X\(\/\/\)$/{ |
15934 |
s//\1/ |
15935 |
q |
15936 |
} |
15937 |
/^X\(\/\).*/{ |
15938 |
s//\1/ |
15939 |
q |
15940 |
} |
15941 |
s/.*/./; q'` |
15942 |
as_dir="$ac_dir"; as_fn_mkdir_p |
15943 |
ac_builddir=. |
15944 |
|
15945 |
case "$ac_dir" in |
15946 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15947 |
*) |
15948 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
15949 |
# A ".." for each directory in $ac_dir_suffix. |
15950 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
15951 |
case $ac_top_builddir_sub in |
15952 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15953 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
15954 |
esac ;; |
15955 |
esac |
15956 |
ac_abs_top_builddir=$ac_pwd |
15957 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
15958 |
# for backward compatibility: |
15959 |
ac_top_builddir=$ac_top_build_prefix |
15960 |
|
15961 |
case $srcdir in |
15962 |
.) # We are building in place. |
15963 |
ac_srcdir=. |
15964 |
ac_top_srcdir=$ac_top_builddir_sub |
15965 |
ac_abs_top_srcdir=$ac_pwd ;; |
15966 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
15967 |
ac_srcdir=$srcdir$ac_dir_suffix; |
15968 |
ac_top_srcdir=$srcdir |
15969 |
ac_abs_top_srcdir=$srcdir ;; |
15970 |
*) # Relative name. |
15971 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
15972 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
15973 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
15974 |
esac |
15975 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
15976 |
|
15977 |
|
15978 |
case $ac_mode in |
15979 |
:F) |
15980 |
# |
15981 |
# CONFIG_FILE |
15982 |
# |
15983 |
|
15984 |
case $INSTALL in |
15985 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
15986 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15987 |
esac |
15988 |
ac_MKDIR_P=$MKDIR_P |
15989 |
case $MKDIR_P in |
15990 |
[\\/$]* | ?:[\\/]* ) ;; |
15991 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
15992 |
esac |
15993 |
_ACEOF |
15994 |
|
15995 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15996 |
# If the template does not know about datarootdir, expand it. |
15997 |
# FIXME: This hack should be removed a few years after 2.60. |
15998 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
15999 |
ac_sed_dataroot=' |
16000 |
/datarootdir/ { |
16001 |
p |
16002 |
q |
16003 |
} |
16004 |
/@datadir@/p |
16005 |
/@docdir@/p |
16006 |
/@infodir@/p |
16007 |
/@localedir@/p |
16008 |
/@mandir@/p' |
16009 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
16010 |
*datarootdir*) ac_datarootdir_seen=yes;; |
16011 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
16012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16013 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
16014 |
_ACEOF |
16015 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16016 |
ac_datarootdir_hack=' |
16017 |
s&@datadir@&$datadir&g |
16018 |
s&@docdir@&$docdir&g |
16019 |
s&@infodir@&$infodir&g |
16020 |
s&@localedir@&$localedir&g |
16021 |
s&@mandir@&$mandir&g |
16022 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
16023 |
esac |
16024 |
_ACEOF |
16025 |
|
16026 |
# Neutralize VPATH when `$srcdir' = `.'. |
16027 |
# Shell code in configure.ac might set extrasub. |
16028 |
# FIXME: do we really want to maintain this feature? |
16029 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16030 |
ac_sed_extra="$ac_vpsub |
16031 |
$extrasub |
16032 |
_ACEOF |
16033 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16034 |
:t |
16035 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
16036 |
s|@configure_input@|$ac_sed_conf_input|;t t |
16037 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
16038 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
16039 |
s&@srcdir@&$ac_srcdir&;t t |
16040 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
16041 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
16042 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
16043 |
s&@builddir@&$ac_builddir&;t t |
16044 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
16045 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
16046 |
s&@INSTALL@&$ac_INSTALL&;t t |
16047 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
16048 |
$ac_datarootdir_hack |
16049 |
" |
16050 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16051 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16052 |
|
16053 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
16054 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16055 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
16056 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
16057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
16058 |
which seems to be undefined. Please make sure it is defined" >&5 |
16059 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
16060 |
which seems to be undefined. Please make sure it is defined" >&2;} |
16061 |
|
16062 |
rm -f "$ac_tmp/stdin" |
16063 |
case $ac_file in |
16064 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16065 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
16066 |
esac \ |
16067 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16068 |
;; |
16069 |
:H) |
16070 |
# |
16071 |
# CONFIG_HEADER |
16072 |
# |
16073 |
if test x"$ac_file" != x-; then |
16074 |
{ |
16075 |
$as_echo "/* $configure_input */" \ |
16076 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16077 |
} >"$ac_tmp/config.h" \ |
16078 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16079 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
16080 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16081 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
16082 |
else |
16083 |
rm -f "$ac_file" |
16084 |
mv "$ac_tmp/config.h" "$ac_file" \ |
16085 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16086 |
fi |
16087 |
else |
16088 |
$as_echo "/* $configure_input */" \ |
16089 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16090 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
16091 |
fi |
16092 |
# Compute "$ac_file"'s index in $config_headers. |
16093 |
_am_arg="$ac_file" |
16094 |
_am_stamp_count=1 |
16095 |
for _am_header in $config_headers :; do |
16096 |
case $_am_header in |
16097 |
$_am_arg | $_am_arg:* ) |
16098 |
break ;; |
16099 |
* ) |
16100 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
16101 |
esac |
16102 |
done |
16103 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16104 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16105 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
16106 |
X"$_am_arg" : 'X\(//\)$' \| \ |
16107 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
16108 |
$as_echo X"$_am_arg" | |
16109 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16110 |
s//\1/ |
16111 |
q |
16112 |
} |
16113 |
/^X\(\/\/\)[^/].*/{ |
16114 |
s//\1/ |
16115 |
q |
16116 |
} |
16117 |
/^X\(\/\/\)$/{ |
16118 |
s//\1/ |
16119 |
q |
16120 |
} |
16121 |
/^X\(\/\).*/{ |
16122 |
s//\1/ |
16123 |
q |
16124 |
} |
16125 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
16126 |
;; |
16127 |
|
16128 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16129 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
16130 |
;; |
16131 |
esac |
16132 |
|
16133 |
|
16134 |
case $ac_file$ac_mode in |
16135 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
16136 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
16137 |
# are listed without --file. Let's play safe and only enable the eval |
16138 |
# if we detect the quoting. |
16139 |
case $CONFIG_FILES in |
16140 |
*\'*) eval set x "$CONFIG_FILES" ;; |
16141 |
*) set x $CONFIG_FILES ;; |
16142 |
esac |
16143 |
shift |
16144 |
for mf |
16145 |
do |
16146 |
# Strip MF so we end up with the name of the file. |
16147 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
16148 |
# Check whether this is an Automake generated Makefile or not. |
16149 |
# We used to match only the files named 'Makefile.in', but |
16150 |
# some people rename them; so instead we look at the file content. |
16151 |
# Grep'ing the first line is not enough: some people post-process |
16152 |
# each Makefile.in and add a new line on top of each file to say so. |
16153 |
# Grep'ing the whole file is not good either: AIX grep has a line |
16154 |
# limit of 2048, but all sed's we know have understand at least 4000. |
16155 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
16156 |
dirpart=`$as_dirname -- "$mf" || |
16157 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16158 |
X"$mf" : 'X\(//\)[^/]' \| \ |
16159 |
X"$mf" : 'X\(//\)$' \| \ |
16160 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
16161 |
$as_echo X"$mf" | |
16162 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16163 |
s//\1/ |
16164 |
q |
16165 |
} |
16166 |
/^X\(\/\/\)[^/].*/{ |
16167 |
s//\1/ |
16168 |
q |
16169 |
} |
16170 |
/^X\(\/\/\)$/{ |
16171 |
s//\1/ |
16172 |
q |
16173 |
} |
16174 |
/^X\(\/\).*/{ |
16175 |
s//\1/ |
16176 |
q |
16177 |
} |
16178 |
s/.*/./; q'` |
16179 |
else |
16180 |
continue |
16181 |
fi |
16182 |
# Extract the definition of DEPDIR, am__include, and am__quote |
16183 |
# from the Makefile without running 'make'. |
16184 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
16185 |
test -z "$DEPDIR" && continue |
16186 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
16187 |
test -z "am__include" && continue |
16188 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
16189 |
# Find all dependency output files, they are included files with |
16190 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
16191 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
16192 |
# expansion. |
16193 |
for file in `sed -n " |
16194 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
16195 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
16196 |
# Make sure the directory exists. |
16197 |
test -f "$dirpart/$file" && continue |
16198 |
fdir=`$as_dirname -- "$file" || |
16199 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16200 |
X"$file" : 'X\(//\)[^/]' \| \ |
16201 |
X"$file" : 'X\(//\)$' \| \ |
16202 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
16203 |
$as_echo X"$file" | |
16204 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16205 |
s//\1/ |
16206 |
q |
16207 |
} |
16208 |
/^X\(\/\/\)[^/].*/{ |
16209 |
s//\1/ |
16210 |
q |
16211 |
} |
16212 |
/^X\(\/\/\)$/{ |
16213 |
s//\1/ |
16214 |
q |
16215 |
} |
16216 |
/^X\(\/\).*/{ |
16217 |
s//\1/ |
16218 |
q |
16219 |
} |
16220 |
s/.*/./; q'` |
16221 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
16222 |
# echo "creating $dirpart/$file" |
16223 |
echo '# dummy' > "$dirpart/$file" |
16224 |
done |
16225 |
done |
16226 |
} |
16227 |
;; |
16228 |
"libtool":C) |
16229 |
|
16230 |
# See if we are running on zsh, and set the options which allow our |
16231 |
# commands through without removal of \ escapes. |
16232 |
if test -n "${ZSH_VERSION+set}" ; then |
16233 |
setopt NO_GLOB_SUBST |
16234 |
fi |
16235 |
|
16236 |
cfgfile="${ofile}T" |
16237 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
16238 |
$RM "$cfgfile" |
16239 |
|
16240 |
cat <<_LT_EOF >> "$cfgfile" |
16241 |
#! $SHELL |
16242 |
|
16243 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
16244 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
16245 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16246 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
16247 |
# |
16248 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
16249 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
16250 |
# Foundation, Inc. |
16251 |
# Written by Gordon Matzigkeit, 1996 |
16252 |
# |
16253 |
# This file is part of GNU Libtool. |
16254 |
# |
16255 |
# GNU Libtool is free software; you can redistribute it and/or |
16256 |
# modify it under the terms of the GNU General Public License as |
16257 |
# published by the Free Software Foundation; either version 2 of |
16258 |
# the License, or (at your option) any later version. |
16259 |
# |
16260 |
# As a special exception to the GNU General Public License, |
16261 |
# if you distribute this file as part of a program or library that |
16262 |
# is built using GNU Libtool, you may include this file under the |
16263 |
# same distribution terms that you use for the rest of that program. |
16264 |
# |
16265 |
# GNU Libtool is distributed in the hope that it will be useful, |
16266 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
16267 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16268 |
# GNU General Public License for more details. |
16269 |
# |
16270 |
# You should have received a copy of the GNU General Public License |
16271 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
16272 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
16273 |
# obtained by writing to the Free Software Foundation, Inc., |
16274 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
16275 |
|
16276 |
|
16277 |
# The names of the tagged configurations supported by this script. |
16278 |
available_tags="" |
16279 |
|
16280 |
# ### BEGIN LIBTOOL CONFIG |
16281 |
|
16282 |
# Which release of libtool.m4 was used? |
16283 |
macro_version=$macro_version |
16284 |
macro_revision=$macro_revision |
16285 |
|
16286 |
# Whether or not to build static libraries. |
16287 |
build_old_libs=$enable_static |
16288 |
|
16289 |
# Whether or not to build shared libraries. |
16290 |
build_libtool_libs=$enable_shared |
16291 |
|
16292 |
# What type of objects to build. |
16293 |
pic_mode=$pic_mode |
16294 |
|
16295 |
# Whether or not to optimize for fast installation. |
16296 |
fast_install=$enable_fast_install |
16297 |
|
16298 |
# Shell to use when invoking shell scripts. |
16299 |
SHELL=$lt_SHELL |
16300 |
|
16301 |
# An echo program that protects backslashes. |
16302 |
ECHO=$lt_ECHO |
16303 |
|
16304 |
# The PATH separator for the build system. |
16305 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
16306 |
|
16307 |
# The host system. |
16308 |
host_alias=$host_alias |
16309 |
host=$host |
16310 |
host_os=$host_os |
16311 |
|
16312 |
# The build system. |
16313 |
build_alias=$build_alias |
16314 |
build=$build |
16315 |
build_os=$build_os |
16316 |
|
16317 |
# A sed program that does not truncate output. |
16318 |
SED=$lt_SED |
16319 |
|
16320 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
16321 |
Xsed="\$SED -e 1s/^X//" |
16322 |
|
16323 |
# A grep program that handles long lines. |
16324 |
GREP=$lt_GREP |
16325 |
|
16326 |
# An ERE matcher. |
16327 |
EGREP=$lt_EGREP |
16328 |
|
16329 |
# A literal string matcher. |
16330 |
FGREP=$lt_FGREP |
16331 |
|
16332 |
# A BSD- or MS-compatible name lister. |
16333 |
NM=$lt_NM |
16334 |
|
16335 |
# Whether we need soft or hard links. |
16336 |
LN_S=$lt_LN_S |
16337 |
|
16338 |
# What is the maximum length of a command? |
16339 |
max_cmd_len=$max_cmd_len |
16340 |
|
16341 |
# Object file suffix (normally "o"). |
16342 |
objext=$ac_objext |
16343 |
|
16344 |
# Executable file suffix (normally ""). |
16345 |
exeext=$exeext |
16346 |
|
16347 |
# whether the shell understands "unset". |
16348 |
lt_unset=$lt_unset |
16349 |
|
16350 |
# turn spaces into newlines. |
16351 |
SP2NL=$lt_lt_SP2NL |
16352 |
|
16353 |
# turn newlines into spaces. |
16354 |
NL2SP=$lt_lt_NL2SP |
16355 |
|
16356 |
# convert \$build file names to \$host format. |
16357 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
16358 |
|
16359 |
# convert \$build files to toolchain format. |
16360 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
16361 |
|
16362 |
# An object symbol dumper. |
16363 |
OBJDUMP=$lt_OBJDUMP |
16364 |
|
16365 |
# Method to check whether dependent libraries are shared objects. |
16366 |
deplibs_check_method=$lt_deplibs_check_method |
16367 |
|
16368 |
# Command to use when deplibs_check_method = "file_magic". |
16369 |
file_magic_cmd=$lt_file_magic_cmd |
16370 |
|
16371 |
# How to find potential files when deplibs_check_method = "file_magic". |
16372 |
file_magic_glob=$lt_file_magic_glob |
16373 |
|
16374 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
16375 |
want_nocaseglob=$lt_want_nocaseglob |
16376 |
|
16377 |
# DLL creation program. |
16378 |
DLLTOOL=$lt_DLLTOOL |
16379 |
|
16380 |
# Command to associate shared and link libraries. |
16381 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
16382 |
|
16383 |
# The archiver. |
16384 |
AR=$lt_AR |
16385 |
|
16386 |
# Flags to create an archive. |
16387 |
AR_FLAGS=$lt_AR_FLAGS |
16388 |
|
16389 |
# How to feed a file listing to the archiver. |
16390 |
archiver_list_spec=$lt_archiver_list_spec |
16391 |
|
16392 |
# A symbol stripping program. |
16393 |
STRIP=$lt_STRIP |
16394 |
|
16395 |
# Commands used to install an old-style archive. |
16396 |
RANLIB=$lt_RANLIB |
16397 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
16398 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16399 |
|
16400 |
# Whether to use a lock for old archive extraction. |
16401 |
lock_old_archive_extraction=$lock_old_archive_extraction |
16402 |
|
16403 |
# A C compiler. |
16404 |
LTCC=$lt_CC |
16405 |
|
16406 |
# LTCC compiler flags. |
16407 |
LTCFLAGS=$lt_CFLAGS |
16408 |
|
16409 |
# Take the output of nm and produce a listing of raw symbols and C names. |
16410 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16411 |
|
16412 |
# Transform the output of nm in a proper C declaration. |
16413 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16414 |
|
16415 |
# Transform the output of nm in a C name address pair. |
16416 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16417 |
|
16418 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
16419 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
16420 |
|
16421 |
# Specify filename containing input files for \$NM. |
16422 |
nm_file_list_spec=$lt_nm_file_list_spec |
16423 |
|
16424 |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
16425 |
lt_sysroot=$lt_sysroot |
16426 |
|
16427 |
# The name of the directory that contains temporary libtool files. |
16428 |
objdir=$objdir |
16429 |
|
16430 |
# Used to examine libraries when file_magic_cmd begins with "file". |
16431 |
MAGIC_CMD=$MAGIC_CMD |
16432 |
|
16433 |
# Must we lock files when doing compilation? |
16434 |
need_locks=$lt_need_locks |
16435 |
|
16436 |
# Manifest tool. |
16437 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
16438 |
|
16439 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16440 |
DSYMUTIL=$lt_DSYMUTIL |
16441 |
|
16442 |
# Tool to change global to local symbols on Mac OS X. |
16443 |
NMEDIT=$lt_NMEDIT |
16444 |
|
16445 |
# Tool to manipulate fat objects and archives on Mac OS X. |
16446 |
LIPO=$lt_LIPO |
16447 |
|
16448 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
16449 |
OTOOL=$lt_OTOOL |
16450 |
|
16451 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
16452 |
OTOOL64=$lt_OTOOL64 |
16453 |
|
16454 |
# Old archive suffix (normally "a"). |
16455 |
libext=$libext |
16456 |
|
16457 |
# Shared library suffix (normally ".so"). |
16458 |
shrext_cmds=$lt_shrext_cmds |
16459 |
|
16460 |
# The commands to extract the exported symbol list from a shared archive. |
16461 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16462 |
|
16463 |
# Variables whose values should be saved in libtool wrapper scripts and |
16464 |
# restored at link time. |
16465 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
16466 |
|
16467 |
# Do we need the "lib" prefix for modules? |
16468 |
need_lib_prefix=$need_lib_prefix |
16469 |
|
16470 |
# Do we need a version for libraries? |
16471 |
need_version=$need_version |
16472 |
|
16473 |
# Library versioning type. |
16474 |
version_type=$version_type |
16475 |
|
16476 |
# Shared library runtime path variable. |
16477 |
runpath_var=$runpath_var |
16478 |
|
16479 |
# Shared library path variable. |
16480 |
shlibpath_var=$shlibpath_var |
16481 |
|
16482 |
# Is shlibpath searched before the hard-coded library search path? |
16483 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16484 |
|
16485 |
# Format of library name prefix. |
16486 |
libname_spec=$lt_libname_spec |
16487 |
|
16488 |
# List of archive names. First name is the real one, the rest are links. |
16489 |
# The last name is the one that the linker finds with -lNAME |
16490 |
library_names_spec=$lt_library_names_spec |
16491 |
|
16492 |
# The coded name of the library, if different from the real name. |
16493 |
soname_spec=$lt_soname_spec |
16494 |
|
16495 |
# Permission mode override for installation of shared libraries. |
16496 |
install_override_mode=$lt_install_override_mode |
16497 |
|
16498 |
# Command to use after installation of a shared archive. |
16499 |
postinstall_cmds=$lt_postinstall_cmds |
16500 |
|
16501 |
# Command to use after uninstallation of a shared archive. |
16502 |
postuninstall_cmds=$lt_postuninstall_cmds |
16503 |
|
16504 |
# Commands used to finish a libtool library installation in a directory. |
16505 |
finish_cmds=$lt_finish_cmds |
16506 |
|
16507 |
# As "finish_cmds", except a single script fragment to be evaled but |
16508 |
# not shown. |
16509 |
finish_eval=$lt_finish_eval |
16510 |
|
16511 |
# Whether we should hardcode library paths into libraries. |
16512 |
hardcode_into_libs=$hardcode_into_libs |
16513 |
|
16514 |
# Compile-time system search path for libraries. |
16515 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16516 |
|
16517 |
# Run-time system search path for libraries. |
16518 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16519 |
|
16520 |
# Whether dlopen is supported. |
16521 |
dlopen_support=$enable_dlopen |
16522 |
|
16523 |
# Whether dlopen of programs is supported. |
16524 |
dlopen_self=$enable_dlopen_self |
16525 |
|
16526 |
# Whether dlopen of statically linked programs is supported. |
16527 |
dlopen_self_static=$enable_dlopen_self_static |
16528 |
|
16529 |
# Commands to strip libraries. |
16530 |
old_striplib=$lt_old_striplib |
16531 |
striplib=$lt_striplib |
16532 |
|
16533 |
|
16534 |
# The linker used to build libraries. |
16535 |
LD=$lt_LD |
16536 |
|
16537 |
# How to create reloadable object files. |
16538 |
reload_flag=$lt_reload_flag |
16539 |
reload_cmds=$lt_reload_cmds |
16540 |
|
16541 |
# Commands used to build an old-style archive. |
16542 |
old_archive_cmds=$lt_old_archive_cmds |
16543 |
|
16544 |
# A language specific compiler. |
16545 |
CC=$lt_compiler |
16546 |
|
16547 |
# Is the compiler the GNU compiler? |
16548 |
with_gcc=$GCC |
16549 |
|
16550 |
# Compiler flag to turn off builtin functions. |
16551 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
16552 |
|
16553 |
# Additional compiler flags for building library objects. |
16554 |
pic_flag=$lt_lt_prog_compiler_pic |
16555 |
|
16556 |
# How to pass a linker flag through the compiler. |
16557 |
wl=$lt_lt_prog_compiler_wl |
16558 |
|
16559 |
# Compiler flag to prevent dynamic linking. |
16560 |
link_static_flag=$lt_lt_prog_compiler_static |
16561 |
|
16562 |
# Does compiler simultaneously support -c and -o options? |
16563 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
16564 |
|
16565 |
# Whether or not to add -lc for building shared libraries. |
16566 |
build_libtool_need_lc=$archive_cmds_need_lc |
16567 |
|
16568 |
# Whether or not to disallow shared libs when runtime libs are static. |
16569 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
16570 |
|
16571 |
# Compiler flag to allow reflexive dlopens. |
16572 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
16573 |
|
16574 |
# Compiler flag to generate shared objects directly from archives. |
16575 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
16576 |
|
16577 |
# Whether the compiler copes with passing no objects directly. |
16578 |
compiler_needs_object=$lt_compiler_needs_object |
16579 |
|
16580 |
# Create an old-style archive from a shared archive. |
16581 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
16582 |
|
16583 |
# Create a temporary old-style archive to link instead of a shared archive. |
16584 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
16585 |
|
16586 |
# Commands used to build a shared archive. |
16587 |
archive_cmds=$lt_archive_cmds |
16588 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
16589 |
|
16590 |
# Commands used to build a loadable module if different from building |
16591 |
# a shared archive. |
16592 |
module_cmds=$lt_module_cmds |
16593 |
module_expsym_cmds=$lt_module_expsym_cmds |
16594 |
|
16595 |
# Whether we are building with GNU ld or not. |
16596 |
with_gnu_ld=$lt_with_gnu_ld |
16597 |
|
16598 |
# Flag that allows shared libraries with undefined symbols to be built. |
16599 |
allow_undefined_flag=$lt_allow_undefined_flag |
16600 |
|
16601 |
# Flag that enforces no undefined symbols. |
16602 |
no_undefined_flag=$lt_no_undefined_flag |
16603 |
|
16604 |
# Flag to hardcode \$libdir into a binary during linking. |
16605 |
# This must work even if \$libdir does not exist |
16606 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
16607 |
|
16608 |
# Whether we need a single "-rpath" flag with a separated argument. |
16609 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
16610 |
|
16611 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16612 |
# DIR into the resulting binary. |
16613 |
hardcode_direct=$hardcode_direct |
16614 |
|
16615 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16616 |
# DIR into the resulting binary and the resulting library dependency is |
16617 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
16618 |
# library is relocated. |
16619 |
hardcode_direct_absolute=$hardcode_direct_absolute |
16620 |
|
16621 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
16622 |
# into the resulting binary. |
16623 |
hardcode_minus_L=$hardcode_minus_L |
16624 |
|
16625 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
16626 |
# into the resulting binary. |
16627 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
16628 |
|
16629 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
16630 |
# into the library and all subsequent libraries and executables linked |
16631 |
# against it. |
16632 |
hardcode_automatic=$hardcode_automatic |
16633 |
|
16634 |
# Set to yes if linker adds runtime paths of dependent libraries |
16635 |
# to runtime path list. |
16636 |
inherit_rpath=$inherit_rpath |
16637 |
|
16638 |
# Whether libtool must link a program against all its dependency libraries. |
16639 |
link_all_deplibs=$link_all_deplibs |
16640 |
|
16641 |
# Set to "yes" if exported symbols are required. |
16642 |
always_export_symbols=$always_export_symbols |
16643 |
|
16644 |
# The commands to list exported symbols. |
16645 |
export_symbols_cmds=$lt_export_symbols_cmds |
16646 |
|
16647 |
# Symbols that should not be listed in the preloaded symbols. |
16648 |
exclude_expsyms=$lt_exclude_expsyms |
16649 |
|
16650 |
# Symbols that must always be exported. |
16651 |
include_expsyms=$lt_include_expsyms |
16652 |
|
16653 |
# Commands necessary for linking programs (against libraries) with templates. |
16654 |
prelink_cmds=$lt_prelink_cmds |
16655 |
|
16656 |
# Commands necessary for finishing linking programs. |
16657 |
postlink_cmds=$lt_postlink_cmds |
16658 |
|
16659 |
# Specify filename containing input files. |
16660 |
file_list_spec=$lt_file_list_spec |
16661 |
|
16662 |
# How to hardcode a shared library path into an executable. |
16663 |
hardcode_action=$hardcode_action |
16664 |
|
16665 |
# ### END LIBTOOL CONFIG |
16666 |
|
16667 |
_LT_EOF |
16668 |
|
16669 |
case $host_os in |
16670 |
aix3*) |
16671 |
cat <<\_LT_EOF >> "$cfgfile" |
16672 |
# AIX sometimes has problems with the GCC collect2 program. For some |
16673 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
16674 |
# vanish in a puff of smoke. |
16675 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
16676 |
COLLECT_NAMES= |
16677 |
export COLLECT_NAMES |
16678 |
fi |
16679 |
_LT_EOF |
16680 |
;; |
16681 |
esac |
16682 |
|
16683 |
|
16684 |
ltmain="$ac_aux_dir/ltmain.sh" |
16685 |
|
16686 |
|
16687 |
# We use sed instead of cat because bash on DJGPP gets confused if |
16688 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
16689 |
# text mode, it properly converts lines to CR/LF. This bash problem |
16690 |
# is reportedly fixed, but why not run on old versions too? |
16691 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
16692 |
|| (rm -f "$cfgfile"; exit 1) |
16693 |
|
16694 |
if test x"$xsi_shell" = xyes; then |
16695 |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
16696 |
func_dirname ()\ |
16697 |
{\ |
16698 |
\ case ${1} in\ |
16699 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
16700 |
\ * ) func_dirname_result="${3}" ;;\ |
16701 |
\ esac\ |
16702 |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
16703 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16704 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16705 |
test 0 -eq $? || _lt_function_replace_fail=: |
16706 |
|
16707 |
|
16708 |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
16709 |
func_basename ()\ |
16710 |
{\ |
16711 |
\ func_basename_result="${1##*/}"\ |
16712 |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
16713 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16714 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16715 |
test 0 -eq $? || _lt_function_replace_fail=: |
16716 |
|
16717 |
|
16718 |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
16719 |
func_dirname_and_basename ()\ |
16720 |
{\ |
16721 |
\ case ${1} in\ |
16722 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
16723 |
\ * ) func_dirname_result="${3}" ;;\ |
16724 |
\ esac\ |
16725 |
\ func_basename_result="${1##*/}"\ |
16726 |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
16727 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16728 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16729 |
test 0 -eq $? || _lt_function_replace_fail=: |
16730 |
|
16731 |
|
16732 |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
16733 |
func_stripname ()\ |
16734 |
{\ |
16735 |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
16736 |
\ # positional parameters, so assign one to ordinary parameter first.\ |
16737 |
\ func_stripname_result=${3}\ |
16738 |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
16739 |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
16740 |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
16741 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16742 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16743 |
test 0 -eq $? || _lt_function_replace_fail=: |
16744 |
|
16745 |
|
16746 |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
16747 |
func_split_long_opt ()\ |
16748 |
{\ |
16749 |
\ func_split_long_opt_name=${1%%=*}\ |
16750 |
\ func_split_long_opt_arg=${1#*=}\ |
16751 |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
16752 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16753 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16754 |
test 0 -eq $? || _lt_function_replace_fail=: |
16755 |
|
16756 |
|
16757 |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
16758 |
func_split_short_opt ()\ |
16759 |
{\ |
16760 |
\ func_split_short_opt_arg=${1#??}\ |
16761 |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
16762 |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
16763 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16764 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16765 |
test 0 -eq $? || _lt_function_replace_fail=: |
16766 |
|
16767 |
|
16768 |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
16769 |
func_lo2o ()\ |
16770 |
{\ |
16771 |
\ case ${1} in\ |
16772 |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
16773 |
\ *) func_lo2o_result=${1} ;;\ |
16774 |
\ esac\ |
16775 |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
16776 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16777 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16778 |
test 0 -eq $? || _lt_function_replace_fail=: |
16779 |
|
16780 |
|
16781 |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
16782 |
func_xform ()\ |
16783 |
{\ |
16784 |
func_xform_result=${1%.*}.lo\ |
16785 |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
16786 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16787 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16788 |
test 0 -eq $? || _lt_function_replace_fail=: |
16789 |
|
16790 |
|
16791 |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
16792 |
func_arith ()\ |
16793 |
{\ |
16794 |
func_arith_result=$(( $* ))\ |
16795 |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
16796 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16797 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16798 |
test 0 -eq $? || _lt_function_replace_fail=: |
16799 |
|
16800 |
|
16801 |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
16802 |
func_len ()\ |
16803 |
{\ |
16804 |
func_len_result=${#1}\ |
16805 |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
16806 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16807 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16808 |
test 0 -eq $? || _lt_function_replace_fail=: |
16809 |
|
16810 |
fi |
16811 |
|
16812 |
if test x"$lt_shell_append" = xyes; then |
16813 |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
16814 |
func_append ()\ |
16815 |
{\ |
16816 |
eval "${1}+=\\${2}"\ |
16817 |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
16818 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16819 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16820 |
test 0 -eq $? || _lt_function_replace_fail=: |
16821 |
|
16822 |
|
16823 |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
16824 |
func_append_quoted ()\ |
16825 |
{\ |
16826 |
\ func_quote_for_eval "${2}"\ |
16827 |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
16828 |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
16829 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16830 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16831 |
test 0 -eq $? || _lt_function_replace_fail=: |
16832 |
|
16833 |
|
16834 |
# Save a `func_append' function call where possible by direct use of '+=' |
16835 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
16836 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16837 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16838 |
test 0 -eq $? || _lt_function_replace_fail=: |
16839 |
else |
16840 |
# Save a `func_append' function call even when '+=' is not available |
16841 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
16842 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16843 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16844 |
test 0 -eq $? || _lt_function_replace_fail=: |
16845 |
fi |
16846 |
|
16847 |
if test x"$_lt_function_replace_fail" = x":"; then |
16848 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
16849 |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
16850 |
fi |
16851 |
|
16852 |
|
16853 |
mv -f "$cfgfile" "$ofile" || |
16854 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
16855 |
chmod +x "$ofile" |
16856 |
|
16857 |
;; |
16858 |
|
16859 |
esac |
16860 |
done # for ac_tag |
16861 |
|
16862 |
|
16863 |
as_fn_exit 0 |
16864 |
_ACEOF |
16865 |
ac_clean_files=$ac_clean_files_save |
16866 |
|
16867 |
test $ac_write_fail = 0 || |
16868 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
16869 |
|
16870 |
|
16871 |
# configure is writing to config.log, and then calls config.status. |
16872 |
# config.status does its own redirection, appending to config.log. |
16873 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
16874 |
# by configure, so config.status won't be able to write to it; its |
16875 |
# output is simply discarded. So we exec the FD to /dev/null, |
16876 |
# effectively closing config.log, so it can be properly (re)opened and |
16877 |
# appended to by config.status. When coming back to configure, we |
16878 |
# need to make the FD available again. |
16879 |
if test "$no_create" != yes; then |
16880 |
ac_cs_success=: |
16881 |
ac_config_status_args= |
16882 |
test "$silent" = yes && |
16883 |
ac_config_status_args="$ac_config_status_args --quiet" |
16884 |
exec 5>/dev/null |
16885 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
16886 |
exec 5>>config.log |
16887 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
16888 |
# would make configure fail if this is the last instruction. |
16889 |
$ac_cs_success || as_fn_exit 1 |
16890 |
fi |
16891 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
16893 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
16894 |
fi |
16895 |
|